/* Template 77. Pine, paper and copper. Fonts are SIL Open Font License. */

@font-face {
  font-family: "Source Serif 4";
  font-style: normal;
  font-weight: 500 700;
  font-display: swap;
  src: url("fonts/source-serif-4-latin.woff2") format("woff2");
}

@font-face {
  font-family: "Source Sans 3";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("fonts/source-sans-3-latin.woff2") format("woff2");
}

:root {
  --pine: #142825;
  --pine-2: #1d3531;
  --paper: #f3efe7;
  --card: #fffdf9;
  --line: #e4d9cb;
  --text: #241f1b;
  --muted: #6b6259;
  --copper: #8e4128;
  --copper-2: #722f1c;
  --cream: #f6f1e7;
  --sand: #f7f1e8;
  --shadow: 0 12px 32px rgba(20, 40, 37, 0.06);
  --serif: "Source Serif 4", "Iowan Old Style", Palatino, Georgia, serif;
  --sans: "Source Sans 3", "Avenir Next", "Segoe UI", sans-serif;
  --wrap: 1080px;
}

* { box-sizing: border-box; }

html { height: 100%; color-scheme: light; }

body {
  margin: 0;
  color: var(--text);
  background: var(--paper);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.45;
}

input, select, textarea, button { font-family: var(--sans); font-size: 15px; }

a:link, a:visited { color: var(--copper); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover, a:active { color: var(--copper-2); }

img { max-width: 100%; height: auto; }

h1, h2, h3, h4,
.header, .plainheader, .subhead {
  font-family: var(--serif);
  font-weight: 560;
  color: var(--pine);
  letter-spacing: -0.02em;
}

h1 { font-size: 28px; line-height: 1.2; margin: 0 0 8px; }
h2 { font-size: 22px; line-height: 1.25; }
h3 { font-size: 18px; }

.t77-wrap {
  width: min(var(--wrap), calc(100% - 40px));
  margin: 0 auto;
}

.t77-mast {
  background: var(--pine);
  color: var(--cream);
  border-bottom: 2px solid #6e8b82;
}

.t77-mast a,
.t77-mast a:link,
.t77-mast a:visited { color: var(--cream); text-decoration: none; }
.t77-mast a:hover { color: #fff; }

.t77-utility {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  padding-top: 2px;
  font-size: 13px;
  font-family: var(--sans);
  font-weight: 600;
}

.t77-utility form { margin: 0; padding: 0; }

.t77-utility select,
.t77-mast-slim .t77-utility select {
  background: transparent;
  color: var(--cream);
  border: 1px solid rgba(246, 241, 231, 0.35);
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 14px;
}

.t77-mast .t77-wrap {
  height: 150px;
  display: flex;
  align-items: center;
}

.t77-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: 100%;
  height: 150px;
  padding: 0;
}

.t77-hero-copy {
  align-self: flex-start;
  margin-top: 28px;
}

.t77-kicker {
  margin: 5px 0 0;
  color: #d9cfc3;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.t77-hero h1 a,
.t77-hero h1 a:link,
.t77-hero h1 a:visited {
  color: #f6f1e7;
  font-size: inherit;
  letter-spacing: inherit;
  text-decoration: none;
}

.t77-hero h1,
.t77-brand {
  margin: 0;
  font-family: var(--serif);
  font-weight: 560;
  font-size: clamp(30px, 3vw, 36px);
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--cream);
}

.t77-brand {
  font-size: 30px;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.t77-lineage {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 22px;
}

.t77-pill {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 16px;
  border: 1px solid rgba(246, 241, 231, 0.4);
  border-radius: 999px;
  color: var(--cream);
  font-family: var(--sans);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0;
}

.t77-pill:hover,
.t77-mast a.t77-pill:hover {
  background: var(--cream);
  color: var(--pine);
}

.t77-quiet {
  font-family: var(--sans);
  font-weight: 700;
  letter-spacing: 0;
  padding: 0 6px;
}

.t77-hero-photo {
  width: auto;
  max-width: 48%;
  max-height: 150px;
  height: 150px;
  flex: 0 0 auto;
  object-fit: contain;
  object-position: right bottom;
  filter: drop-shadow(0 8px 14px rgba(0, 0, 0, 0.22));
}

.t77-hnav {
  background: #1d3531;
  border-bottom: 2px solid #6e8b82;
}

nav.t77-hnav ul,
nav.t77-hnav li,
nav.t77-vmenu ul,
nav.t77-vmenu li {
  list-style: none !important;
}

.t77-hnav ul {
  display: flex !important;
  flex-wrap: wrap;
  gap: 0;
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
}

.t77-hnav a,
.t77-hnav a:link,
.t77-hnav a:visited {
  display: block;
  padding: 0 16px;
  height: 25px;
  line-height: 25px;
  color: #f6f1e7 !important;
  text-decoration: none;
  font-family: var(--sans);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.t77-hnav a:hover,
.t77-hnav a:focus {
  background: var(--copper);
  color: #fff !important;
}

.t77-hnav-lang {
  margin-left: auto;
  display: flex;
  align-items: center;
}

.t77-hnav-lang form { margin: 0; }

.t77-hnav select {
  background: transparent;
  color: var(--cream);
  border: 1px solid rgba(246, 241, 231, 0.35);
  border-radius: 999px;
  height: 22px;
  padding: 0 8px;
  font-size: 13px;
}

.t77-home {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr) 270px;
  grid-template-areas: "menu main side";
  gap: 22px;
  align-items: start;
  padding: 28px 0 48px;
}

.t77-vmenu { grid-area: menu; }
.t77-main { grid-area: main; }
.t77-side { grid-area: side; }

.t77-vmenu ul {
  margin: 0;
  padding: 8px 0;
  list-style: none;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
}

.t77-vmenu a,
.t77-vmenu a:link,
.t77-vmenu a:visited {
  display: block;
  padding: 9px 16px;
  color: var(--pine);
  text-decoration: none;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.t77-vmenu a:hover,
.t77-vmenu a:focus {
  background: var(--sand);
  color: var(--copper);
}

.t77-mast-slim .t77-slim {
  display: flex;
  align-items: center;
  gap: 28px;
  min-height: 76px;
}

.t77-mast-slim nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-right: auto;
}

.t77-mast-slim nav a {
  font-family: var(--sans);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0;
}

.t77-mast-slim .t77-utility { padding: 0; }

.t77-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
  padding: 18px 20px;
}

.t77-card h2 { margin: 0 0 12px; font-size: 26px; line-height: 1.15; }
.t77-card h3 { margin: 0 0 12px; }
.t77-card p { margin: 0 0 14px; }
.t77-card ul, .t77-links { margin: 0; padding: 0; list-style: none; }
.t77-card li + li { margin-top: 8px; }
.t77-card li a, .t77-links a { font-weight: 700; text-decoration: none; }
.t77-card li a:hover, .t77-links a:hover { text-decoration: underline; }

.t77-welcome {
  display: flex;
  gap: 22px;
  align-items: flex-start;
}

.t77-welcome-copy {
  flex: 1 1 12em;
  min-width: 12em;
}

.t77-portrait {
  float: none;
  flex: 0 0 168px;
  width: 168px;
  margin: 0;
  border-radius: 4px;
  box-shadow: 0 8px 20px rgba(20, 40, 37, 0.12);
}

.t77-note {
  clear: both;
  margin-top: 8px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.t77-note h3 { margin: 0 0 6px; }
.t77-note p { margin: 0; }

.t77-side { display: flex; flex-direction: column; gap: 16px; }
.t77-side .t77-card { padding: 22px; }

.t77-search label {
  display: block;
  margin: 10px 0 4px;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}

.t77-search input[type="text"] {
  width: 100%;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0 12px;
  background: #fff;
  color: var(--text);
}

.t77-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin-top: 14px;
}

.t77-explore { padding-bottom: 48px; }
.t77-explore h2 { margin: 8px 0 14px; font-size: 28px; }

.t77-directory {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.t77-directory > div { display: flex; flex-direction: column; }

.t77-directory h3 {
  margin: 0 0 10px;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.t77-directory ul {
  flex: 1;
  margin: 0;
  padding: 18px 18px 10px;
  list-style: none;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
}

.t77-directory li { margin: 0 0 8px; }

.t77-directory a,
.t77-directory a:link,
.t77-directory a:visited {
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
}

.t77-directory a:hover { color: var(--copper); }

.t77-sheet {
  margin: 22px auto 40px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow);
  padding: 0 0 22px;
}

.t77-sheet > :not(.menucontainer) {
  margin-left: 22px;
  margin-right: 22px;
}

.t77-sheet > h1:first-child,
.t77-content > h1:first-child { margin-top: 8px; }

.menucontainer { margin: 0 0 12px; }

div.innercontainer {
  display: flex !important;
  align-items: center !important;
  flex-wrap: wrap;
  gap: 4px 8px;
  height: auto !important;
  min-height: 42px;
  padding: 4px 16px !important;
  background: var(--sand) !important;
  background-image: none !important;
  border-bottom: 1px solid var(--line);
  border-radius: 16px 16px 0 0;
  box-shadow: none !important;
}

div.innercontainer > div[style] {
  display: flex !important;
  align-items: center !important;
}

.icons, .icons-rt {
  display: flex !important;
  align-items: center !important;
  float: none !important;
  gap: 2px;
  height: auto !important;
  margin: 0 !important;
  padding: 0 !important;
}

.icons-rt, .icons-rt.in-bar {
  margin-left: auto !important;
  margin-top: 0 !important;
  padding-top: 0 !important;
}

a.tngsmallicon,
a.tngsmallicon:link,
a.tngsmallicon:visited,
div.icons-rt a,
div.icons-rt a:link {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center;
  float: none !important;
  height: 36px !important;
  margin: 0 !important;
  padding: 0 12px !important;
  background: none !important;
  background-image: none !important;
  width: auto !important;
  text-indent: 0 !important;
  color: var(--pine) !important;
  text-decoration: none;
  font-family: var(--sans);
  font-weight: 700;
  font-size: 15px !important;
  line-height: 1 !important;
}

a.tngsmallicon:hover,
div.icons-rt a:hover { color: var(--copper) !important; }

ul.tngdd {
  display: flex !important;
  align-items: center !important;
  flex-wrap: wrap;
  float: none !important;
  gap: 0;
  margin: 0 !important;
  padding: 0 !important;
  min-width: 0 !important;
  list-style: none !important;
  font-size: 15px;
}

ul.tngdd > li {
  position: relative;
  display: flex !important;
  align-items: center !important;
  float: none !important;
  margin: 0;
  padding: 0;
}

ul.tngdd .menulink,
ul.tngdd .menulink:link {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px;
  height: 36px !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 12px !important;
  border: 0;
  border-radius: 8px;
  background: transparent !important;
  background-image: none !important;
  color: var(--pine) !important;
  text-decoration: none;
  font-family: var(--sans);
  font-weight: 700;
  font-size: 15px !important;
  line-height: 1 !important;
}

ul.tngdd .menulink::after {
  content: "";
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  width: 6px;
  height: 6px;
  transform: translateY(-2px) rotate(45deg);
}

ul.tngdd > li:hover > .menulink,
ul.tngdd .menulink:hover,
ul.tngdd .menuhover {
  background: #fff;
  color: var(--copper);
}

ul.tngdd ul {
  display: none;
  position: absolute;
  z-index: 30;
  top: calc(100% - 2px);
  left: 0;
  min-width: 220px;
  margin: 0;
  padding: 8px;
  list-style: none;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 16px 32px rgba(20, 40, 37, 0.1);
}

ul.tngdd li:hover > ul,
ul.tngdd li.menuhover > ul,
ul.tngdd li:focus-within > ul { display: block; }

ul.tngdd ul a,
ul.tngdd ul a:link,
ul.tngdd ul a:visited {
  display: block;
  padding: 8px 10px;
  border-radius: 8px;
  background: transparent;
  color: var(--text);
  text-decoration: none;
  text-indent: 0;
  font-weight: 700;
  font-size: 15px;
}

ul.tngdd ul a:hover { background: var(--sand); color: var(--copper); }

.icons-rt select,
.innercontainer select {
  font-size: 14px !important;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--text);
  padding: 4px 10px;
}

input[type="text"],
input[type="password"],
input[type="email"],
input[type="search"],
input[type="number"],
textarea,
select {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 7px 10px;
  background: #fff;
  color: var(--text);
}

input[type="submit"],
input[type="button"],
input[type="reset"],
button,
.btn,
a.btn {
  background: var(--copper);
  color: #fff !important;
  border: 0;
  border-radius: 10px;
  padding: 8px 16px;
  font-family: var(--sans);
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}

input[type="submit"]:hover,
input[type="button"]:hover,
button:hover,
.btn:hover,
a.btn:hover { background: var(--copper-2); color: #fff !important; }

.t77-search button {
  margin-top: 14px;
  height: 42px;
  padding: 0 18px;
}

table.t77-table,
table.white {
  width: 100%;
  border-collapse: collapse;
}

.fieldnameback,
td.fieldnameback,
th.fieldnameback,
tr.fieldnameback td,
.tablesaw-cell-label,
.bar {
  background-color: var(--pine-2);
  color: #f7f3ec;
}

.fieldnameback .fieldname,
td.fieldnameback .fieldname,
td.fieldnameback span,
#mapcontainer + .fieldname,
.maptitle {
  color: #f7f3ec !important;
}

td.fieldnameback,
td.databack,
td.databackalt,
th.fieldnameback,
tr.fieldnameback > td,
tr.databack > td,
tr.databackalt > td {
  padding: 4px 8px;
  font-size: 14px;
  line-height: 1.35;
  text-align: left;
  vertical-align: top;
}

.fieldnameback a,
.fieldnameback a:link,
.fieldnameback a:visited,
tr.fieldnameback a,
tr.fieldnameback a:link,
.tablesaw-cell-label a {
  color: var(--cream);
}

.databack,
td.databack,
tr.databack td,
.lightback,
.fambackground { background-color: var(--sand); }

.databackalt,
td.databackalt,
tr.databackalt td { background-color: #fff; }

.snlink {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  min-height: 32px;
  margin: 0 4px 6px 0;
  padding: 0 6px;
  border: 0;
  border-radius: 8px;
  background: var(--sand);
  color: var(--pine) !important;
  text-decoration: none;
  font-weight: 700;
}

a.snlink:hover,
.snlinkact,
.adminnav .snlinkact {
  background: var(--pine);
  color: var(--cream) !important;
}

#log-smicon { display: none !important; }

#tngnav {
  margin: 0 !important;
  padding: 0 !important;
}

#tngnav::after {
  content: "";
  display: block;
  clear: both;
  height: 0;
  line-height: 0;
  font-size: 0;
}

#tngnav + br,
#pub-innermenu + br,
#tngnav + #pub-innermenu + br {
  display: none !important;
}

#tngnav ~ table,
#pub-innermenu ~ table,
#tngnav ~ .rounded20,
#pub-innermenu ~ .rounded20,
#tngnav ~ .rounded10,
#pub-innermenu ~ .rounded10,
#tngnav ~ .top-rounded-headline,
#pub-innermenu ~ .top-rounded-headline {
  margin-top: 0 !important;
  border-top-left-radius: 0 !important;
  border-top-right-radius: 0 !important;
}

#tngnav ~ table tr:first-child > td,
#tngnav ~ table tr:first-child > th,
#pub-innermenu ~ table tr:first-child > td,
#pub-innermenu ~ table tr:first-child > th,
#pub-innermenu + div > table tr:first-child > td,
#pub-innermenu + div > table tr:first-child > th {
  border-top-left-radius: 0 !important;
  border-top-right-radius: 0 !important;
}

#pub-innermenu + div,
#pub-innermenu + table,
#tngnav + #pub-innermenu + div,
#tngnav + #pub-innermenu + table {
  margin-top: 0 !important;
  border-top-left-radius: 0 !important;
  border-top-right-radius: 0 !important;
}

/* Keep the profile photo and the name beside it the same distance apart. */
.t77-sheet td.indleftcol:has(img),
.t77-sheet td:has(img):has(+ td #nameheader),
.t77-sheet td:has(img):has(+ td > .header),
.t77-sheet td:has(img):has(+ td > h1.header) {
  width: 1px !important;
  white-space: nowrap;
  padding: 0 16px 0 0 !important;
  vertical-align: top;
}

.t77-sheet td.indleftcol:has(img) .media-img,
.t77-sheet td:has(img):has(+ td #nameheader) .media-img,
.t77-sheet td:has(img):has(+ td > .header) .media-img,
.t77-sheet td:has(img):has(+ td > h1.header) .media-img {
  width: auto !important;
  height: auto !important;
  margin: 0 !important;
  display: inline-block;
}

.t77-sheet td.indleftcol:has(img) img,
.t77-sheet td:has(img):has(+ td #nameheader) img,
.t77-sheet td:has(img):has(+ td > .header) img,
.t77-sheet td:has(img):has(+ td > h1.header) img {
  margin: 0 !important;
  max-width: none !important;
}

.t77-sheet td:has(#nameheader),
.t77-sheet td.indleftcol:has(img) + td,
.t77-sheet td:has(img):has(+ td #nameheader) + td,
.t77-sheet td:has(img):has(+ td > .header) + td,
.t77-sheet td:has(img):has(+ td > h1.header) + td {
  padding-left: 0 !important;
}

#tngnav a,
#tabs a {
  color: var(--text);
  background: var(--sand);
  border: 0;
  border-right: 1px solid var(--line);
  border-radius: 8px 8px 0 0;
}

#tngnav a:hover,
#tabs a:hover,
#tngnav a.here,
#tabs a.here,
#tabs .here {
  background: var(--pine);
  color: var(--cream);
}

td.calDay,
td.calToday,
table.calendar { border-color: var(--line); }

td.calToday,
.calToday { box-shadow: inset 0 0 0 2px var(--copper); }

.sideback,
td.sideback {
  background: var(--pine);
  background-image: none;
  color: var(--cream);
}

.sideback a,
a.admincell,
a.admincell:link { color: var(--cream); }

a.admincell:hover,
a.leftlink:hover {
  background: var(--copper);
  color: #fff;
}

.t77-footer {
  background: var(--pine);
  color: #d9cfc3;
  padding: 28px 0 32px;
  font-size: 14px;
  text-align: center;
}

.t77-footer p { margin: 0 0 6px; }

.t77-footer a,
.t77-footer a:link,
.t77-footer a:visited,
.t77-footer .footer {
  color: #f0e2d4;
  font-weight: 700;
  text-decoration: none;
}

.t77-footer a:hover,
.t77-footer .footer:hover { color: #fff; }

.t77-rss {
  display: inline-block;
  margin-bottom: 8px;
  letter-spacing: 0.12em;
  font-size: 12px;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 2px solid var(--copper);
  outline-offset: 2px;
}

#pub-innermenu { display: none !important; }

#tngnav { clear: both; }
#tngnav::after { content: ""; display: block; clear: both; }

@media (max-width: 1100px) {
  .t77-home {
    grid-template-columns: 220px minmax(0, 1fr);
    grid-template-areas: "menu main" "menu side";
  }
}

@media (max-width: 760px) {
  .t77-wrap { width: min(var(--wrap), calc(100% - 28px)); }
  .t77-home {
    grid-template-columns: 1fr;
    grid-template-areas: "main" "side" "menu";
  }
  .t77-welcome { display: block; }
  .t77-portrait { margin: 0 0 16px; }
  .t77-directory { grid-template-columns: 1fr; }
  .t77-mast .t77-wrap { height: auto; }
  .t77-hero { height: auto; flex-direction: column; align-items: flex-start; }
  .t77-hero-copy { align-self: auto; margin-top: 0; }
  .t77-hero-photo { height: auto; max-height: 120px; max-width: 100%; }
  .t77-mast-slim .t77-slim { flex-wrap: wrap; min-height: 0; padding: 14px 0; gap: 10px 16px; }
  .t77-mast-slim nav { order: 3; width: 100%; margin: 0; }
  .t77-card { padding: 18px 16px; }
  .t77-sheet { padding: 0 0 18px; }
  .t77-sheet > :not(.menucontainer) { margin-left: 14px; margin-right: 14px; }
  .menucontainer { margin: 0 0 12px; }
  div.innercontainer { padding: 4px 12px !important; border-radius: 16px 16px 0 0; }
  .icons-rt, .icons-rt.in-bar { margin-left: 0; }
}
