.page-hero {
  max-width:1120px;
  padding-top:68px;
  padding-bottom:36px
}
.page-hero h1 {
  max-width:860px;
  margin:12px 0;
  font:500 clamp(34px,4.6vw,54px)/1.16 Tahoma,Arial,sans-serif;
  letter-spacing:-.03em;
  color:#20372f
}
.page-hero p {
  max-width:820px;
  color:#66766e;
  font-size:15px;
  line-height:1.85
}
.page-content {
  max-width:1120px;
  padding-bottom:78px
}
.content-cards {
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:14px;
  margin:24px 0
}
.content-cards.three {
  grid-template-columns:repeat(3,minmax(0,1fr))
}
.content-card {
  display:flex;
  flex-direction:column;
  gap:7px;
  padding:23px;
  border:1px solid #e7e9df;
  border-radius:10px;
  background:#fff;
  box-shadow:0 10px 28px rgba(32,55,47,.035)
}
.content-card h2 {
  margin:2px 0;
  font:500 23px/1.3 Tahoma,Arial,sans-serif
}
.content-card p {
  margin:0 0 8px;
  color:#5c6a60;
  font-size:13px;
  line-height:1.8
}
.content-card>a {
  color:#20583f;
  font-size:12px;
  font-weight:700;
  margin-top:4px
}
.study-feature {
  display:grid;
  grid-template-columns:minmax(0,1.05fr) minmax(0,.95fr);
  align-items:center;
  gap:42px;
  padding-top:58px;
  padding-bottom:58px;
  border-top:1px solid #f0eee6
}
.study-feature-art {
  position:relative;
  overflow:hidden;
  min-height:290px;
  border-radius:12px;
  background:#f1eee2
}
.study-feature-art img {
  display:block;
  width:100%;
  min-height:290px;
  height:100%;
  object-fit:cover
}
.study-feature-art span {
  position:absolute;
  right:10px;
  bottom:10px;
  padding:6px 9px;
  border-radius:5px;
  background:#17231ccc;
  color:#fff;
  font-size:9px
}
.study-feature-copy h2 {
  margin:10px 0;
  font:500 clamp(27px,3vw,38px)/1.2 Tahoma,Arial,sans-serif;
  color:#20372f
}
.study-feature-copy>p {
  color:#66766e;
  font-size:13px;
  line-height:1.85
}
.study-feature-links {
  display:grid;
  gap:8px;
  margin-top:17px
}
.study-feature-links a {
  display:flex;
  justify-content:space-between;
  gap:12px;
  padding:10px 12px;
  border:1px solid #e7e9df;
  border-radius:7px;
  background:#fff;
  color:#20583f;
  font-size:11px;
  font-weight:700
}
.study-feature-links a:hover {
  border-color:#bdcdbd;
  background:#f8faf6
}
.timeline-list {
  position:relative;
  display:grid;
  gap:12px;
  margin:24px 0
}
.timeline-list:before {
  position:absolute;
  top:17px;
  bottom:17px;
  left:112px;
  width:1px;
  background:#dbe2d7;
  content:''
}
.timeline-item {
  position:relative;
  display:grid;
  grid-template-columns:92px minmax(0,1fr);
  gap:42px;
  padding:17px 20px;
  border:1px solid #e7e9df;
  border-radius:9px;
  background:#fff
}
.timeline-item:before {
  position:absolute;
  top:23px;
  left:107px;
  width:9px;
  height:9px;
  border:2px solid #fff;
  border-radius:50%;
  background:#9a7848;
  box-shadow:0 0 0 1px #c6d2c3;
  content:''
}
.timeline-date {
  padding-top:2px;
  color:#285541;
  font:600 13px/1.4 Tahoma,Arial,sans-serif
}
.timeline-item h2 {
  margin:4px 0 5px;
  color:#20372f;
  font:500 21px/1.3 Tahoma,Arial,sans-serif
}
.timeline-item p {
  margin:0;
  color:#5c6a60;
  font-size:12px;
  line-height:1.8
}
.timeline-item a {
  display:inline-block;
  margin-top:7px;
  color:#20583f;
  font-size:11px;
  font-weight:700
}
.topbar nav {
  position:relative
}
.topic-menu {
  position:relative;
  color:#526359;
  font-size:12px
}
.topic-menu summary {
  cursor:pointer;
  list-style:none
}
.topic-menu summary::-webkit-details-marker {
  display:none
}
.topic-menu summary:after {
  margin-left:5px;
  color:#9a7848;
  content:'⌄'
}
.topic-menu-panel {
  position:absolute;
  z-index:8;
  top:calc(100% + 12px);
  right:0;
  display:grid;
  width:250px;
  padding:8px;
  border:1px solid #e4e7dd;
  border-radius:9px;
  background:#fff;
  box-shadow:0 16px 38px #20372f1f
}
.topic-menu-panel a {
  padding:10px;
  border-radius:6px;
  color:#315442;
  font-size:11px
}
.topic-menu-panel a:hover {
  background:#f3f6f0
}
.notice-panel {
  margin:20px 0;
  padding:19px 22px;
  border-left:3px solid #c99b58;
  background:#f7f6ef;
  border-radius:0 8px 8px 0;
  color:#526359
}
.notice-panel b {
  font-family:Tahoma,Arial,sans-serif;
  font-weight:600;
  font-size:19px
}
.notice-panel p {
  margin:6px 0 0;
  font-size:13px;
  line-height:1.8
}
.empty-state {
  min-height:300px;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  text-align:center;
  padding:32px;
  border:1px dashed #d9dfd4;
  border-radius:10px;
  background:#fff
}
.empty-state h2 {
  max-width:700px;
  margin:10px 0 4px;
  font:500 25px/1.35 Tahoma,Arial,sans-serif
}
.empty-state p {
  max-width:710px;
  color:#6a776c;
  font-size:13px;
  line-height:1.8
}
.empty-state .button {
  margin-top:8px
}
.genealogy-reference,.library-consent {
  color:#6a776c;
  font-size:12px;
  line-height:1.8;
  margin:16px 0
}
.genealogy-reference a,.library-consent a,.auth-intro a {
  color:#20583f;
  text-decoration:underline;
  text-underline-offset:3px
}
.library-banner {
  margin:20px 0 26px;
  position:relative;
  overflow:hidden;
  border-radius:12px;
  background:#f3efe3
}
.library-banner img {
  display:block;
  width:100%;
  max-height:420px;
  object-fit:cover
}
.library-banner figcaption {
  position:absolute;
  right:12px;
  bottom:12px;
  padding:7px 10px;
  border-radius:5px;
  background:#17231ccc;
  color:white;
  font-size:10px
}
.auth-shell {
  max-width:700px;
  padding-top:45px;
  padding-bottom:75px
}
.auth-card {
  max-width:520px;
  margin:0 auto;
  padding:34px;
  border:1px solid #e7e9df;
  border-radius:12px;
  background:white;
  box-shadow:0 18px 55px rgba(32,55,47,.08)
}
.auth-card-wide {
  max-width:620px
}
.auth-card h1 {
  margin:8px 0 6px;
  font:500 36px/1.2 Tahoma,Arial,sans-serif
}
.auth-intro {
  color:#66766e;
  font-size:13px;
  line-height:1.75
}
.auth-card form>label:not(.check-line) {
  display:block;
  margin:16px 0 5px;
  font-size:12px;
  font-weight:700;
  color:#405548
}
.auth-card input:not([type=checkbox]),.auth-card select,.auth-card textarea {
  width:100%;
  border:1px solid #dfe4d9;
  border-radius:7px;
  padding:11px 12px;
  background:#fff;
  color:#20372f;
  font:inherit;
  font-size:14px
}
.auth-card textarea {
  resize:vertical
}
.auth-card input:focus,.auth-card select:focus,.auth-card textarea:focus {
  outline:2px solid #8eb39b;
  outline-offset:1px
}
.field-hint {
  display:block;
  margin:5px 0;
  color:#748075;
  font-size:11px;
  line-height:1.6
}
.field-error {
  display:block;
  color:#9d3e36;
  font-size:11px;
  margin-top:4px
}
.check-line {
  display:flex;
  align-items:center;
  gap:8px;
  margin:16px 0;
  color:#5d6a61;
  font-size:12px
}
.auth-submit {
  width:100%;
  margin-top:20px;
  min-height:46px
}
.auth-switch {
  text-align:center;
  color:#66766e;
  font-size:12px;
  margin:20px 0 0
}
.auth-switch a {
  color:#20583f;
  font-weight:700
}
.auth-social-note {
  margin:18px 0 0;
  padding:12px;
  background:#f6f6f0;
  border-radius:7px;
  color:#6c776e;
  font-size:11px;
  line-height:1.7
}
.form-status {
  margin:15px 0;
  padding:12px 15px;
  border:1px solid #d5e2d5;
  border-radius:7px;
  background:#f0f7ef;
  color:#365c42;
  font-size:13px;
  line-height:1.7
}
.form-errors {
  border-color:#ecd9d5;
  background:#fbf3f1;
  color:#85463e
}
.account-card {
  max-width:720px;
  padding:25px;
  border:1px solid #e7e9df;
  border-radius:10px;
  background:white
}
.account-card dl {
  margin:0 0 20px
}
.account-card dl>div {
  display:grid;
  grid-template-columns:210px 1fr;
  padding:12px 0;
  border-bottom:1px solid #edf0e8
}
.account-card dt {
  color:#748075;
  font-size:12px
}
.account-card dd {
  margin:0;
  font-weight:700;
  font-size:13px
}
.status-pill {
  display:inline-block;
  padding:4px 9px;
  border-radius:99px;
  background:#f5f1e4;
  color:#896532;
  font-size:11px
}
.status-verified {
  background:#e8f2e8;
  color:#2f6844
}
.status-rejected {
  background:#f7e9e7;
  color:#97473f
}
.account-submissions {
  margin:20px 0;
  padding:14px 16px;
  border:1px solid #e8dfce;
  border-radius:8px;
  background:#fbf8f1
}
.account-submissions h2 {
  margin:0 0 8px;
  color:#790d0b;
  font-size:16px
}
.account-submissions p {
  margin:8px 0;
  color:#625a51;
  font-size:12px
}
.review-card {
  display:flex;
  justify-content:space-between;
  gap:20px;
  margin:12px 0;
  padding:20px;
  border:1px solid #e7e9df;
  border-radius:9px;
  background:white
}
.review-card h2 {
  margin:0;
  font:500 20px Tahoma,Arial,sans-serif
}
.review-card p,.review-card small {
  color:#748075;
  font-size:12px
}
.review-card blockquote {
  margin:10px 0;
  padding-left:12px;
  border-left:2px solid #d8c59e;
  color:#526359;
  font-size:13px
}
.review-actions {
  display:flex;
  align-items:center;
  gap:8px
}
.review-actions .button {
  white-space:nowrap
}
.branch-review-actions {
  min-width:190px;
  flex-direction:column;
  align-items:stretch
}
.branch-review-actions form {
  display:grid;
  gap:6px
}
.branch-review-actions label {
  color:#4b0908;
  font-size:11px;
  font-weight:700
}
.branch-review-actions textarea {
  width:100%;
  border:1px solid #e8dfce;
  border-radius:6px;
  padding:8px;
  font:inherit;
  font-size:12px
}
.footer {
  margin-top:0
}
.topbar nav form {
  margin:0
}
.topbar nav form button {
  font-size:12px
}
.page-content .branch-grid {
  margin:10px 0 22px
}
.branch-directory-heading {
  display:flex;
  align-items:end;
  justify-content:space-between;
  gap:20px;
  margin:36px 0 12px
}
.branch-directory-heading h2 {
  margin:7px 0 0;
  color:#790d0b
}
.branch-search {
  display:flex;
  gap:7px;
  width:min(460px,100%)
}
.branch-search input {
  min-width:0;
  flex:1;
  border:1px solid #e8dfce;
  border-radius:7px;
  padding:10px 12px;
  font:inherit
}
.branch-submission-card {
  margin:24px auto 0
}
.branch-submission-form .check-line {
  align-items:flex-start;
  margin:19px 0 10px;
  line-height:1.65
}
.branch-submission-form .check-line input {
  flex:0 0 auto;
  margin-top:3px
}
.visually-hidden {
  position:absolute;
  width:1px;
  height:1px;
  padding:0;
  margin:-1px;
  overflow:hidden;
  clip:rect(0,0,0,0);
  white-space:nowrap;
  border:0
}
.page-content>.button {
  margin-top:10px
}
@media(max-width:900px) {
  .content-cards.three {
  grid-template-columns:repeat(2,minmax(0,1fr))
}
.page-hero {
  padding-top:50px
}
.topbar nav {
  gap:10px
}

}
@media(max-width:760px) {
.branch-directory-heading {
  align-items:stretch;
  flex-direction:column;
  gap:10px
}
.branch-search {
  width:100%
}
.timeline-list:before {
  left:16px
}
.timeline-item {
  grid-template-columns:1fr;
  gap:6px;
  padding:15px 14px 15px 38px
}
.timeline-item:before {
  left:11px
}
.study-feature {
  grid-template-columns:1fr;
  gap:20px;
  padding-top:40px;
  padding-bottom:40px
}
.study-feature-art,.study-feature-art img {
  min-height:210px
}
  .page-hero {
  padding:42px 5vw 22px
}
.page-hero h1 {
  font-size:34px
}
.page-hero p {
  font-size:13px
}
.page-content {
  padding:0 5vw 52px
}
.content-cards,.content-cards.three {
  grid-template-columns:1fr;
  gap:9px
}
.content-card {
  padding:18px
}
.content-card h2 {
  font-size:21px
}
.content-card p {
  font-size:12px
}
.notice-panel {
  padding:15px
}
.empty-state {
  min-height:260px;
  padding:24px 18px
}
.empty-state h2 {
  font-size:21px
}
.empty-state p {
  font-size:12px
}
.library-banner img {
  min-height:220px;
  object-fit:cover
}
.library-banner figcaption {
  font-size:8px
}
.auth-shell {
  padding:25px 5vw 48px
}
.auth-card {
  padding:23px 18px
}
.auth-card h1 {
  font-size:30px
}
.account-card {
  padding:18px
}
.account-card dl>div {
  grid-template-columns:1fr;
  gap:3px
}
.review-card {
  display:block
}
.review-actions {
  margin-top:15px
}
.review-actions form {
  flex:1
}
.review-actions .button {
  width:100%;
  padding:10px
}
.topbar nav .mobile-menu {
  display:block
}
.topbar nav .topic-menu {
  display:none
}
.topbar nav>a:not(.button),.topbar nav form {
  display:none
}

}

.source-gallery {
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:14px;
  margin:22px 0 26px;
}
.source-gallery-card {
  display:grid;
  grid-template-columns:minmax(105px,.42fr) minmax(0,1fr);
  gap:18px;
  align-items:center;
  padding:17px;
  border:1px solid #e7e9df;
  border-radius:10px;
  background:#fff;
}
.source-gallery-card figure { margin:0; }
.source-gallery-card img {
  display:block;
  width:100%;
  height:150px;
  object-fit:cover;
  border-radius:7px;
  background:#f6f4ed;
}
.source-gallery-card:first-child img { object-fit:contain; }
.source-gallery-card figcaption {
  margin-top:6px;
  color:#706a60;
  font-size:9px;
  line-height:1.5;
}
.source-gallery-card figcaption a,.source-gallery-card > div > a {
  color:#790d0b;
  font-weight:700;
}
.source-gallery-card h2 {
  margin:5px 0 7px;
  color:#790d0b;
  font-size:20px;
}
.source-gallery-card p {
  margin:0 0 8px;
  color:#625a51;
  font-size:12px;
  line-height:1.7;
}
@media(max-width:900px) {
  .source-gallery,.source-gallery-card { grid-template-columns:1fr; }
  .source-gallery-card img { height:190px; }
}
