:root{
  --forest:#174c3d;--pine:#246554;--ink:#173047;--heritage-blue:#2d628c;
  --paper:#fbfaf7;--parchment:#f6f1e7;--sand:#eadfcd;--rose:#f1e1dc;
  --line:#ded9cf;--muted:#65717a;--white:#fff;--shadow:0 12px 32px rgba(26,47,43,.09);
  --radius-sm:7px;--radius:10px;--radius-lg:14px;--content:1180px;
  --font-serif:Georgia,"Times New Roman",serif;--font-sans:Inter,Arial,Helvetica,sans-serif
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;color:#26363d;background:var(--paper);font-family:var(--font-sans);line-height:1.55}
img{display:block;max-width:100%}
a{color:inherit;text-decoration:none}
button,input,select,textarea{font:inherit}
.container{width:min(var(--content),calc(100% - 40px));margin-inline:auto}
.sr-only{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}
.skip-link{position:fixed;left:12px;top:-60px;z-index:999;padding:10px 14px;color:#fff;background:var(--forest);border-radius:0 0 6px 6px}
.skip-link:focus{top:0}

/* Header */
.site-header{position:sticky;top:0;z-index:50;background:rgba(255,255,255,.97);border-bottom:1px solid #e8e3da;backdrop-filter:blur(12px)}
.header-inner{min-height:66px;display:flex;align-items:center;gap:20px}
.brand{display:flex;align-items:center;gap:10px;flex:0 0 auto}
.brand img{width:49px;height:49px;object-fit:contain;filter:none}
.brand-copy{display:block;line-height:1}
.brand-copy strong{display:block;color:var(--forest);font:700 1.55rem/1 var(--font-serif);letter-spacing:-.03em}
.brand-copy small{display:block;margin-top:5px;color:#59645f;font-size:.48rem;letter-spacing:.14em;text-transform:uppercase}
.primary-nav{margin-left:auto;display:flex;align-items:center;gap:17px}
.primary-nav>a,.more-menu>summary{position:relative;padding:23px 0 20px;color:#1f3541;font-size:.80rem;white-space:nowrap;cursor:pointer;list-style:none}
.primary-nav>a.active,.primary-nav>a:hover,.more-menu>summary:hover{color:var(--forest)}
.primary-nav>a.active::after{content:"";position:absolute;left:0;right:0;bottom:0;height:3px;background:var(--forest)}
.more-menu{position:relative}
.more-menu>summary::-webkit-details-marker{display:none}
.more-menu-panel{position:absolute;right:0;top:52px;min-width:210px;padding:8px;background:#fff;border:1px solid #e6e0d6;border-radius:8px;box-shadow:var(--shadow)}
.more-menu-panel a{display:block;padding:9px 10px;border-radius:5px;font-size:.78rem}
.more-menu-panel a:hover{background:#f2f5f3;color:var(--forest)}
.nav-toggle{display:none;margin-left:auto;border:0;background:none;color:var(--ink);font-size:1.4rem;cursor:pointer}

/* Hero */
.hero{--hero-image:none;min-height:525px;display:flex;align-items:flex-end;color:#fff;background:linear-gradient(90deg,rgba(7,27,25,.82) 0%,rgba(9,35,31,.62) 35%,rgba(9,28,27,.22) 68%,rgba(0,0,0,.12)),var(--hero-image) center/cover no-repeat}
.hero-content{padding-block:76px 52px}
.eyebrow{margin:0 0 8px;color:#eadbb9;font-size:.72rem;font-weight:800;letter-spacing:.16em;text-transform:uppercase}
.eyebrow.dark{color:#7d6745}
.hero h1{margin:0;font:700 clamp(3.1rem,7vw,5.1rem)/.95 var(--font-serif);letter-spacing:-.04em}
.hero h2{margin:12px 0 18px;font:400 clamp(1.55rem,3vw,2.35rem)/1.05 var(--font-serif)}
.hero-lede{max-width:630px;margin:0 0 27px;color:#f3f4ef;font-size:1.04rem}
.button-row{display:flex;gap:11px;flex-wrap:wrap}
.button{display:inline-flex;align-items:center;justify-content:center;min-height:45px;padding:0 19px;border:1px solid rgba(255,255,255,.66);border-radius:var(--radius-sm);font-weight:750;font-size:.9rem}
.button-primary{background:var(--pine);border-color:var(--pine)}
.button-primary:hover{background:var(--forest)}
.button-secondary{background:rgba(8,22,20,.22)}
.button-secondary:hover{background:rgba(8,22,20,.36)}
.form-button{background:var(--forest);border-color:var(--forest);color:#fff}

/* Homepage cards */
.quick-links{display:grid;grid-template-columns:repeat(4,1fr);gap:15px;margin-block:27px 8px}
.quick-card{min-height:142px;padding:22px;border:1px solid #ebe6dd;border-radius:var(--radius);display:flex;flex-direction:column;justify-content:flex-end;transition:transform .18s ease,box-shadow .18s ease}
.quick-card:hover{transform:translateY(-3px);box-shadow:var(--shadow)}
.quick-genealogy{background:#e8f1e9}.quick-history{background:#f1e8dc}.quick-gallery{background:#e4eef5}.quick-publications{background:#f4e3df}
.quick-icon{margin-bottom:16px;color:var(--ink);font-size:1.8rem}
.quick-card strong{color:var(--ink);font:700 1.28rem var(--font-serif)}
.quick-card small{margin-top:4px;color:#5e696a;font-size:.78rem}

.section{padding-block:36px 18px}
.section-heading{display:flex;align-items:flex-end;justify-content:space-between;gap:20px;margin-bottom:15px}
.section-heading h2{margin:0;color:var(--ink);font:700 1.85rem/1.08 var(--font-serif)}
.section-heading>a{color:var(--heritage-blue);font-size:.78rem;font-weight:650}
.feature-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:15px}
.feature-card{overflow:hidden;background:#fff;border:1px solid #e6e1d8;border-radius:var(--radius);transition:transform .18s ease,box-shadow .18s ease}
.feature-card:hover{transform:translateY(-2px);box-shadow:var(--shadow)}
.feature-card>img{width:100%;height:182px;object-fit:cover;background:#ece7df}
.feature-body{padding:15px 15px 17px}
.kicker{margin:0;color:#80643e;font-size:.63rem;font-weight:850;letter-spacing:.09em;text-transform:uppercase}
.feature-body h3{margin:5px 0 8px;color:var(--ink);font:700 1.2rem/1.17 var(--font-serif)}
.feature-body>p:not(.kicker){margin:0 0 12px;color:#687276;font-size:.79rem}
.feature-body>a,.text-link{color:var(--heritage-blue);font-size:.78rem;font-weight:750}

/* Genealogy homepage panel */
.genealogy-panel{margin-block:30px 26px;padding:25px;border:1px solid #e1dbd0;border-radius:var(--radius-lg);background:#f2efe8;display:grid;grid-template-columns:1.45fr .72fr;gap:28px}
.genealogy-main{display:grid;grid-template-columns:126px 1fr;gap:21px;align-items:center}
.genealogy-image{width:126px;height:126px;object-fit:cover;border-radius:8px;filter:sepia(.12)}
.genealogy-panel h2{margin:0 0 6px;color:var(--ink);font:700 1.75rem/1.1 var(--font-serif)}
.genealogy-panel p{margin:0 0 14px;color:#6d7474;font-size:.86rem}
.genealogy-links{padding-left:25px;border-left:1px solid #d7d1c7}
.genealogy-links h3{margin:0 0 8px;color:var(--ink);font:700 1.18rem var(--font-serif)}
.acervo-home-cta p{font-size:.78rem}
.external-acervo-button{display:inline-flex;align-items:center;justify-content:center;padding:10px 14px;border-radius:6px;background:var(--heritage-blue);color:#fff!important;font-weight:800!important}
.external-acervo-button.large{padding:13px 18px;font-size:.88rem}

.two-column-section{display:grid;grid-template-columns:1fr 1fr;gap:31px;padding-block:28px 20px}
.list-story{display:grid;grid-template-columns:96px 1fr;gap:14px;padding:13px 0;border-top:1px solid var(--line)}
.list-story img{width:96px;height:78px;object-fit:cover;border-radius:4px}
.list-story h3{margin:0 0 3px;color:var(--ink);font:700 1rem var(--font-serif)}
.list-story small{color:#827c72;font-size:.68rem}
.list-story p{margin:5px 0 0;color:#687276;font-size:.75rem}
.gallery-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}
.gallery-grid img{width:100%;height:128px;object-fit:cover;border-radius:5px;background:#eae5dc}

/* Generic pages */
.page-hero{background:linear-gradient(180deg,#f3eee4 0%,#fbfaf7 100%);border-bottom:1px solid #e6dfd4}
.page-hero.compact{padding:58px 0 48px}
.page-hero h1{margin:0;color:var(--ink);font:700 clamp(2.8rem,5vw,4.3rem)/1 var(--font-serif);letter-spacing:-.035em}
.page-hero p:not(.eyebrow){max-width:760px;margin:16px 0 0;color:#536166;font:400 1.08rem/1.6 var(--font-serif)}
.content-section{padding-block:46px}
.migration-placeholder{padding:28px;border:1px dashed #cfc6b8;border-radius:10px;background:#fff}
.migration-placeholder h2{margin:4px 0 9px;color:var(--ink);font:700 1.5rem var(--font-serif)}
.migration-placeholder p{max-width:720px;color:#657074}
.migration-badge{display:inline-block;padding:5px 9px;border-radius:999px;background:#f2eee7;color:#796e61;font-size:.68rem}

/* Genealogia */
.genealogy-hero{padding:54px 0 46px;background:linear-gradient(180deg,#f3eee4 0%,#fbfaf7 100%);border-bottom:1px solid #e7e0d5}
.genealogy-hero-grid{display:grid;grid-template-columns:1.02fr .98fr;gap:56px;align-items:center}
.breadcrumbs{display:flex;gap:8px;align-items:center;margin-bottom:26px;color:#74807d;font-size:.75rem}
.breadcrumbs a{color:var(--heritage-blue)}
.genealogy-hero h1{margin:0;color:var(--ink);font:700 clamp(3rem,5vw,4.7rem)/.95 var(--font-serif);letter-spacing:-.04em}
.genealogy-intro{max-width:640px;margin:20px 0 12px;color:#394a4f;font:400 1.23rem/1.55 var(--font-serif)}
.source-note{max-width:620px;margin:0;color:#697471;font-size:.83rem}
.genealogy-hero-photo{margin:0}
.genealogy-hero-photo img{width:100%;height:400px;object-fit:cover;border-radius:12px;box-shadow:0 16px 36px rgba(45,50,40,.13)}
.genealogy-hero-photo figcaption{margin-top:8px;color:#7b7770;font-size:.7rem}

.genealogy-search-section{padding-top:30px}
.search-panel{padding:27px;border:1px solid #d8ddd6;border-radius:13px;background:#edf4ef}
.search-panel-heading{display:flex;align-items:end;gap:18px;margin-bottom:19px}
.search-panel-heading .kicker{min-width:132px;margin-bottom:5px}
.search-panel-heading h2{margin:0;color:var(--ink);font:700 1.85rem/1.05 var(--font-serif)}
.search-panel-heading>p:last-child{margin:0 0 2px auto;max-width:370px;color:#67716f;font-size:.78rem;text-align:right}
.portal-genealogy-search{display:grid;grid-template-columns:1fr auto;gap:10px;max-width:780px;align-items:end}
.field label{display:block;margin:0 0 5px;color:#52605d;font-size:.68rem;font-weight:750}
.field input{width:100%;height:45px;padding:0 12px;border:1px solid #c7d0ca;border-radius:6px;background:#fff}
.search-submit{height:45px;padding:0 23px;border:0;border-radius:6px;background:var(--forest);color:#fff;font-weight:780}

.acervo-callout{margin-top:42px;padding:30px;border-radius:14px;background:#173047;color:#fff;display:grid;grid-template-columns:1.35fr .65fr;gap:38px;align-items:center}
.acervo-callout .kicker{color:#d6bc8e}
.acervo-callout h2{margin:5px 0 11px;color:#fff;font:700 1.9rem/1.12 var(--font-serif)}
.acervo-callout-copy>p:not(.kicker){max-width:690px;color:#dce4e8;font-size:.87rem}
.acervo-callout-side{padding-left:30px;border-left:1px solid rgba(255,255,255,.2)}
.acervo-callout-side strong{display:block;font:700 1.25rem var(--font-serif)}
.acervo-callout-side>span{color:#bfcbd0;font-size:.7rem}
.acervo-callout-side ul{margin:15px 0 0;padding-left:18px;color:#e7ecee;font-size:.77rem}

.genealogy-families-band{margin-top:54px;padding:48px 0;background:#f1ece2;border-block:1px solid #e3dcd0}
.family-layout{display:grid;grid-template-columns:1.25fr .75fr;gap:22px}
.family-feature{display:grid;grid-template-columns:1.05fr .95fr;overflow:hidden;border-radius:12px;background:#fff;border:1px solid #e2dcd2}
.family-feature>img{width:100%;height:100%;min-height:345px;object-fit:cover}
.family-feature-copy{padding:29px;align-self:center}
.family-feature-copy h3{margin:5px 0 10px;color:var(--ink);font:700 1.65rem var(--font-serif)}
.family-feature-copy p:not(.kicker){color:#667174;font-size:.84rem}
.family-feature-copy a,.person-row a{color:var(--heritage-blue);font-size:.77rem;font-weight:750}
.people-stack{display:grid;gap:17px}
.person-row{display:grid;grid-template-columns:145px 1fr;overflow:hidden;border:1px solid #e2dcd2;border-radius:10px;background:#fff}
.person-row img{width:145px;height:160px;object-fit:cover}
.person-row>div{padding:18px;align-self:center}
.person-row h3{margin:4px 0 6px;color:var(--ink);font:700 1.12rem var(--font-serif)}
.person-row p:not(.kicker){margin:0 0 8px;color:#687274;font-size:.75rem}

.genealogy-context{display:grid;grid-template-columns:1.18fr .82fr;gap:42px;padding-top:55px;padding-bottom:25px}
.context-copy h2{margin:5px 0 17px;color:var(--ink);font:700 1.85rem var(--font-serif)}
.context-copy>p:not(.kicker){color:#586568;font:400 1rem/1.75 var(--font-serif)}
.source-card{overflow:hidden;border:1px solid #e3ddd4;border-radius:11px;background:#fff}
.source-card>img{width:100%;height:178px;object-fit:cover;filter:sepia(.12)}
.source-card>div{padding:20px}
.source-card h3{margin:4px 0 8px;color:var(--ink);font:700 1.25rem var(--font-serif)}
.source-card p:not(.kicker){color:#687274;font-size:.78rem}

/* People/families */
.people-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:20px}
.profile-card{display:grid;grid-template-columns:190px 1fr;overflow:hidden;border:1px solid #e3ded4;border-radius:10px;background:#fff}
.profile-card img{width:190px;height:250px;object-fit:cover}
.profile-card>div{padding:23px;align-self:center}
.profile-card h2{margin:4px 0 8px;color:var(--ink);font:700 1.45rem var(--font-serif)}
.profile-card p:not(.kicker){color:#687274;font-size:.82rem}
.family-index-feature{display:grid;grid-template-columns:1fr 1fr;overflow:hidden;border:1px solid #e3ded4;border-radius:12px;background:#fff}
.family-index-feature img{width:100%;height:390px;object-fit:cover}
.family-index-feature>div{padding:38px;align-self:center}
.family-index-feature h2{margin:4px 0 10px;color:var(--ink);font:700 1.8rem var(--font-serif)}

/* Contact */
.contact-form{max-width:760px;display:grid;gap:15px}
.contact-form label{display:grid;gap:6px;color:#53615e;font-size:.78rem;font-weight:700}
.contact-form input,.contact-form textarea{width:100%;padding:12px;border:1px solid #d0d0ca;border-radius:6px;background:#fff}
.contact-form .button{justify-self:start}

/* Footer */
.site-footer{margin-top:46px;background:#123f34;color:#edf2ee}
.footer-grid{min-height:172px;display:grid;grid-template-columns:1fr 1fr 1fr;gap:30px;align-items:center}
.footer-brand{display:flex;gap:11px;align-items:center}
.footer-brand img{width:53px;height:53px;object-fit:contain;filter:none}
.footer-brand strong{display:block;font:700 1.45rem var(--font-serif)}
.footer-brand small{font-size:.49rem;letter-spacing:.11em;text-transform:uppercase}
.footer-motto{text-align:center;font:italic .95rem var(--font-serif)}
.footer-motto small{font:normal .70rem var(--font-sans)}
.footer-nav{text-align:right}
.footer-nav a{margin-left:14px;color:#dfe7e3;font-size:.74rem}

a:focus-visible,button:focus-visible,input:focus-visible,summary:focus-visible,textarea:focus-visible{outline:3px solid #e0b96e;outline-offset:3px}

@media(max-width:1040px){
  .primary-nav{gap:12px}
  .primary-nav>a,.more-menu>summary{font-size:.74rem}
}
@media(max-width:900px){
  .nav-toggle{display:block}
  .primary-nav{display:none;position:absolute;left:0;right:0;top:66px;padding:13px 20px 20px;background:#fff;border-bottom:1px solid #e8e3da;box-shadow:0 16px 28px rgba(0,0,0,.08);flex-direction:column;align-items:stretch;gap:0}
  .primary-nav.is-open{display:flex}
  .primary-nav>a,.more-menu>summary{padding:11px 4px}
  .more-menu-panel{position:static;box-shadow:none;border:0;padding-left:12px}
  .quick-links,.feature-grid{grid-template-columns:repeat(2,1fr)}
  .genealogy-panel,.genealogy-hero-grid,.genealogy-context{grid-template-columns:1fr}
  .genealogy-links{padding:20px 0 0;border-left:0;border-top:1px solid #d7d1c7}
  .two-column-section{grid-template-columns:1fr}
  .family-layout{grid-template-columns:1fr}
  .people-grid{grid-template-columns:1fr}
  .acervo-callout{grid-template-columns:1fr}
  .acervo-callout-side{padding:20px 0 0;border-left:0;border-top:1px solid rgba(255,255,255,.2)}
}
@media(max-width:640px){
  .container{width:min(var(--content),calc(100% - 24px))}
  .header-inner{min-height:61px}.brand img{width:44px;height:44px}.brand-copy strong{font-size:1.32rem}.primary-nav{top:61px}
  .hero{min-height:500px}.hero-content{padding-block:64px 39px}
  .quick-links,.feature-grid{grid-template-columns:1fr}
  .genealogy-main{grid-template-columns:1fr}.genealogy-image{width:100%;height:175px}
  .genealogy-hero-photo img{height:270px}
  .search-panel-heading{display:block}.search-panel-heading>p:last-child{text-align:left;margin-top:8px}
  .portal-genealogy-search{grid-template-columns:1fr}
  .family-feature,.family-index-feature{grid-template-columns:1fr}
  .family-feature>img{min-height:240px;height:260px}
  .person-row{grid-template-columns:105px 1fr}.person-row img{width:105px;height:145px}
  .profile-card{grid-template-columns:1fr}.profile-card img{width:100%;height:auto;max-height:440px;object-fit:contain;background:#eee}
  .gallery-grid img{height:112px}
  .footer-grid{grid-template-columns:1fr;text-align:center;padding-block:29px}.footer-brand{justify-content:center}.footer-nav{text-align:center}.footer-nav a{margin-inline:7px}
}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important;transition:none!important}}


/* =========================================================
   Content Migration Batch 1 — Genealogia editorial
   ========================================================= */
.index-toolbar{
  display:flex;align-items:center;justify-content:space-between;gap:20px;
  margin-bottom:20px;padding-bottom:14px;border-bottom:1px solid var(--line);
  color:#66716f;font-size:.78rem
}
.index-toolbar a{color:var(--heritage-blue);font-weight:750}

.migrated-index-grid{
  display:grid;grid-template-columns:repeat(3,1fr);gap:16px
}
.migrated-index-card{
  overflow:hidden;border:1px solid #e4dfd6;border-radius:10px;background:#fff
}
.migrated-index-card>img{
  width:100%;height:235px;object-fit:cover;background:#eee
}
.migrated-index-card>div{padding:18px}
.migrated-index-card h2{
  margin:5px 0 8px;color:var(--ink);font:700 1.2rem/1.18 var(--font-serif)
}
.migrated-index-card p:not(.kicker){color:#687274;font-size:.78rem}
.migrated-index-card a{color:var(--heritage-blue);font-size:.77rem;font-weight:800}

.site-search-form{
  display:grid;grid-template-columns:1fr auto;gap:10px;max-width:780px;margin-bottom:28px
}
.site-search-form input{
  min-width:0;height:46px;padding:0 13px;border:1px solid #cfd2cd;border-radius:6px;background:#fff
}
.site-search-form button{
  padding:0 20px;border:0;border-radius:6px;background:var(--forest);color:#fff;font-weight:800
}
.result-count{color:#6e7775;font-size:.78rem}
.search-results{display:grid;gap:12px}
.search-result{
  padding:18px 20px;border:1px solid #e3ded5;border-radius:8px;background:#fff
}
.search-result h2{margin:4px 0 7px;font:700 1.25rem var(--font-serif);color:var(--ink)}
.search-result>p:not(.kicker){margin:0 0 8px;color:#687274;font-size:.8rem}

.article-heading-grid{display:grid;grid-template-columns:1fr auto;gap:30px;align-items:center}
.article-portrait{width:190px;height:240px;object-fit:cover;border-radius:8px;border:1px solid #ddd6cb}
.article-categories{font-size:.75rem!important;color:#7b7770!important}
.article-layout{display:grid;grid-template-columns:minmax(0,1fr) 300px;gap:44px;padding-block:45px}
.legacy-content{min-width:0}
.prose{font-family:var(--font-serif);color:#3d484b}
.prose p,.prose li{font-size:1rem;line-height:1.75}
.prose a{color:var(--heritage-blue);text-decoration:underline;text-underline-offset:2px}
.prose img{height:auto;max-width:100%;margin:18px 0}
.prose figure{margin:22px 0}
.prose figcaption{font-family:var(--font-sans);font-size:.7rem;color:#797871}
.preservation-note{
  margin-bottom:26px;padding:14px 16px;border-left:3px solid var(--forest);
  background:#eef5f1;color:#4d5e57;font-family:var(--font-sans);font-size:.75rem
}
.legacy-source-link{margin-top:34px!important;padding-top:15px;border-top:1px solid var(--line);font-family:var(--font-sans)}
.article-sidebar{display:grid;align-content:start;gap:16px}
.sidebar-card{padding:20px;border:1px solid #e3ded5;border-radius:9px;background:#fff}
.sidebar-card h2{margin:5px 0 10px;color:var(--ink);font:700 1.15rem var(--font-serif)}
.sidebar-card p:not(.kicker){color:#687274;font-size:.76rem}
.sidebar-card form{display:grid;gap:8px}
.sidebar-card input{width:100%;padding:10px;border:1px solid #cfd2cd;border-radius:5px}
.sidebar-card button{padding:9px;border:0;border-radius:5px;background:var(--forest);color:#fff;font-weight:750}
.acervo-sidebar{background:#f1f5f7;border-color:#d7e0e5}

@media(max-width:900px){
  .migrated-index-grid{grid-template-columns:repeat(2,1fr)}
  .article-layout{grid-template-columns:1fr}
}
@media(max-width:640px){
  .migrated-index-grid{grid-template-columns:1fr}
  .site-search-form{grid-template-columns:1fr}
  .site-search-form button{height:44px}
  .article-heading-grid{grid-template-columns:1fr}
  .article-portrait{width:150px;height:190px}
}


/* Article body rendering hardening */
.legacy-body{display:block;color:#3d484b}
.legacy-body>*{max-width:100%}
.legacy-body p,.legacy-body li{visibility:visible;opacity:1}
.article-heading h1{color:var(--ink)!important;visibility:visible;opacity:1}


/* =========================================================
   Content Migration Batch 1B — História & Patrimônio
   ========================================================= */
.history-section-hero{
  background:
    linear-gradient(180deg,rgba(243,238,228,.96),rgba(251,250,247,.98)),
    url("../../media/cidade/igreja_velha_rio_espera.jpg") center/cover
}
.history-feature{
  display:grid;grid-template-columns:210px 1fr;gap:28px;align-items:center;
  margin-bottom:48px;padding:28px;border:1px solid #dfd8cd;border-radius:12px;background:#fff
}
.history-feature img{
  width:210px;height:280px;object-fit:cover;border-radius:7px;background:#ece6dd
}
.history-feature h2{
  margin:5px 0 10px;color:var(--ink);font:700 1.8rem var(--font-serif)
}
.history-feature p:not(.kicker){max-width:760px;color:#617074;font-size:.88rem}
.history-list-heading{margin-top:8px}
.compact-section-search{display:flex;gap:7px}
.compact-section-search input{
  width:220px;padding:9px 10px;border:1px solid #cfd2cd;border-radius:5px;background:#fff
}
.compact-section-search button{
  border:0;border-radius:5px;padding:0 13px;background:var(--forest);color:#fff;font-weight:750
}
.history-index-grid .migrated-index-card{min-height:225px}
.history-index-grid .migrated-index-card>div{height:100%;display:flex;flex-direction:column}
.history-index-grid .migrated-index-card a{margin-top:auto}

.legacy-gallery-pending{
  margin:22px 0;padding:15px 17px;border:1px dashed #b9ad9a;border-radius:7px;
  background:#f5f0e7;color:#675d50;font-family:var(--font-sans);font-size:.78rem
}
.legacy-video-link,.legacy-external-reference{
  margin:20px 0!important;padding:13px 15px;border-left:3px solid var(--heritage-blue);
  background:#f0f5f8;font-family:var(--font-sans)!important
}
.legacy-video-link a,.legacy-external-reference a{
  font-weight:800;text-decoration:none!important
}
.legacy-body figcaption{
  margin-top:-10px;margin-bottom:18px;color:#77736c;
  font-family:var(--font-sans);font-size:.72rem
}

/* Reading-width refinement confirmed after Genealogia test */
.legacy-content.prose{max-width:820px}
.article-layout{grid-template-columns:minmax(0,820px) 300px;justify-content:space-between}
.article-heading h1{font-size:clamp(2.5rem,5vw,4.1rem)}
.legacy-body blockquote{
  margin:24px 0;padding:16px 20px;border-left:3px solid #b7a27d;
  background:#f7f3eb;color:#4f5555
}

@media(max-width:900px){
  .article-layout{grid-template-columns:1fr}
  .legacy-content.prose{max-width:none}
}
@media(max-width:700px){
  .history-feature{grid-template-columns:1fr}
  .history-feature img{width:100%;height:280px;object-fit:contain}
  .history-list-heading{display:block}
  .compact-section-search{margin-top:15px}
  .compact-section-search input{width:100%}
}


/* =========================================================
   Content Migration Batch 1C — Cultura & Memória
   ========================================================= */
.culture-section-hero{
  background:
    linear-gradient(180deg,rgba(243,238,228,.95),rgba(251,250,247,.98)),
    url("../../media/legacy/2018/04/banda1987.jpg") center/cover
}
.culture-feature{
  display:grid;grid-template-columns:320px 1fr;gap:30px;align-items:center;
  margin-bottom:48px;padding:28px;border:1px solid #dfd8cd;border-radius:12px;background:#fff
}
.culture-feature img{
  width:320px;height:245px;object-fit:cover;border-radius:7px;background:#ece6dd
}
.culture-feature h2{
  margin:5px 0 10px;color:var(--ink);font:700 1.8rem var(--font-serif)
}
.culture-feature p:not(.kicker){max-width:720px;color:#617074;font-size:.88rem}
.culture-list-heading{margin-top:8px}
.culture-index-grid .migrated-index-card{min-height:225px}
.culture-index-grid .migrated-index-card>div{height:100%;display:flex;flex-direction:column}
.culture-index-grid .migrated-index-card a{margin-top:auto}

.legacy-video-figure{
  margin:24px 0;padding:14px;border:1px solid #ded8ce;border-radius:8px;background:#f7f4ee
}
.legacy-video-figure video,
.legacy-body video{
  display:block;width:min(100%,760px);height:auto;max-height:560px;margin:0 auto;
  background:#111;border-radius:6px
}
.legacy-video-figure figcaption,
.legacy-body video + figcaption{
  margin-top:8px;color:#77736c;font-family:var(--font-sans);font-size:.72rem
}
.legacy-body > img{
  border-radius:4px
}

/* Long essays such as "Onde estão as coisas dos pobres" */
.legacy-body h2,.legacy-body h3{
  color:var(--ink);font-family:var(--font-serif);line-height:1.2
}
.legacy-body h2{margin-top:32px;font-size:1.55rem}
.legacy-body h3{margin-top:26px;font-size:1.25rem}

@media(max-width:700px){
  .culture-feature{grid-template-columns:1fr}
  .culture-feature img{width:100%;height:260px}
  .culture-list-heading{display:block}
}


/* =========================================================
   Content Migration Batch 1D — Pessoas & Homenagens
   ========================================================= */
.people-section-hero{
  background:linear-gradient(180deg,#f2ede4 0%,#fbfaf7 100%)
}
.people-intro-grid{
  display:grid;grid-template-columns:1fr auto;gap:35px;align-items:end;
  margin-bottom:28px
}
.people-intro-grid h2{
  margin:5px 0 9px;color:var(--ink);font:700 1.7rem var(--font-serif)
}
.people-intro-grid>div>p:not(.kicker){
  max-width:720px;margin-bottom:0;color:#657174;font-size:.84rem
}

.people-honors-grid{
  display:grid;grid-template-columns:repeat(2,1fr);gap:18px
}
.honoree-card{
  overflow:hidden;border:1px solid #e2ddd4;border-radius:10px;background:#fff;
  min-height:270px
}
.honoree-card.has-image{
  display:grid;grid-template-columns:175px 1fr
}
.honoree-card>img{
  width:175px;height:100%;min-height:270px;object-fit:cover;background:#ece8e0
}
.honoree-card>div{
  padding:22px;display:flex;flex-direction:column;align-items:flex-start
}
.honoree-card.text-only>div{padding:25px}
.honoree-card h2{
  margin:5px 0 6px;color:var(--ink);font:700 1.35rem/1.13 var(--font-serif)
}
.person-nickname{
  margin:0 0 9px!important;color:#846d4c!important;
  font:italic .86rem var(--font-serif)!important
}
.honoree-card p:not(.kicker):not(.person-nickname){
  color:#687274;font-size:.79rem
}
.honoree-card a{
  margin-top:auto;color:var(--heritage-blue);font-size:.78rem;font-weight:800
}

.people-genealogy-note{
  margin-top:38px;padding:23px 26px;border:1px solid #d6dfd9;border-radius:10px;
  background:#edf4ef;display:flex;justify-content:space-between;gap:30px;align-items:center
}
.people-genealogy-note h2{
  margin:4px 0 5px;color:var(--ink);font:700 1.3rem var(--font-serif)
}
.people-genealogy-note p:not(.kicker){
  margin:0;max-width:700px;color:#657174;font-size:.78rem
}
.people-genealogy-button{white-space:nowrap;background:var(--forest)}

.legacy-byline{
  color:#7a746b;font-family:var(--font-sans)!important;
  font-size:.75rem!important;font-style:italic
}
.legacy-nickname{
  margin-top:-4px!important;color:#806d51!important;
  font-size:.95rem!important;font-style:italic
}

@media(max-width:900px){
  .people-honors-grid{grid-template-columns:1fr}
}
@media(max-width:700px){
  .people-intro-grid{grid-template-columns:1fr}
  .honoree-card.has-image{grid-template-columns:120px 1fr}
  .honoree-card>img{width:120px;min-height:235px}
  .people-genealogy-note{display:block}
  .people-genealogy-button{margin-top:15px}
}
@media(max-width:480px){
  .honoree-card.has-image{grid-template-columns:1fr}
  .honoree-card>img{width:100%;height:auto;max-height:380px;object-fit:contain}
}


/* =========================================================
   Content Migration Batch 1E — Curated Gallery / Media
   ========================================================= */
.gallery-section-hero,
.gallery-detail-hero{
  background:linear-gradient(180deg,#f2ede4 0%,#fbfaf7 100%)
}

.gallery-section-heading{
  display:grid;
  grid-template-columns:1fr auto;
  gap:32px;
  align-items:end;
  margin-bottom:28px
}
.gallery-section-heading h2{
  margin:5px 0 8px;
  color:var(--ink);
  font:700 1.7rem var(--font-serif)
}
.gallery-section-heading>div>p:not(.kicker){
  margin:0;
  max-width:760px;
  color:#647174;
  font-size:.84rem
}

.gallery-collection-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:18px
}
.gallery-collection-card{
  overflow:hidden;
  border:1px solid #dfdbd2;
  border-radius:10px;
  background:#fff
}
.gallery-card-image{
  display:block;
  aspect-ratio:4/3;
  overflow:hidden;
  background:#e9e6df
}
.gallery-card-image img{
  width:100%;
  height:100%;
  object-fit:cover;
  transition:transform .25s ease
}
.gallery-card-image:hover img{transform:scale(1.025)}
.gallery-card-placeholder{
  display:flex;
  width:100%;
  height:100%;
  align-items:center;
  justify-content:center;
  color:#8a948f;
  font:700 2.1rem var(--font-serif);
  letter-spacing:.08em
}
.gallery-card-copy{
  padding:19px 20px 21px
}
.gallery-card-copy h2{
  margin:5px 0 8px;
  font:700 1.25rem/1.15 var(--font-serif)
}
.gallery-card-copy h2 a{
  color:var(--ink);
  text-decoration:none
}
.gallery-card-copy>p:not(.kicker){
  min-height:52px;
  color:#667275;
  font-size:.78rem
}
.gallery-card-copy .text-link{
  font-size:.78rem;
  font-weight:800
}

.gallery-toolbar{
  display:flex;
  justify-content:space-between;
  gap:25px;
  align-items:center;
  margin-bottom:18px;
  color:#657174;
  font-size:.78rem
}
.gallery-toolbar p{margin:0}
.gallery-source-note{
  padding:7px 10px;
  border-radius:5px;
  background:#f4efe5;
  color:#796d5c
}

.photo-grid{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:10px
}
.photo-tile{
  position:relative;
  overflow:hidden;
  aspect-ratio:4/3;
  padding:0;
  border:0;
  border-radius:5px;
  background:#e8e5df;
  cursor:zoom-in
}
.photo-tile img{
  display:block;
  width:100%;
  height:100%;
  object-fit:cover;
  transition:transform .2s ease,filter .2s ease
}
.photo-tile:hover img,
.photo-tile:focus-visible img{
  transform:scale(1.025);
  filter:brightness(.94)
}
.photo-tile:focus-visible{
  outline:3px solid var(--heritage-blue);
  outline-offset:2px
}
.gallery-back-row{
  margin-top:28px;
  padding-top:20px;
  border-top:1px solid #e2ddd5
}

.photo-lightbox[hidden]{display:none}
.photo-lightbox{
  position:fixed;
  z-index:9999;
  inset:0;
  display:grid;
  grid-template-columns:70px minmax(0,1fr) 70px;
  align-items:center;
  padding:34px 16px;
  background:rgba(12,18,17,.94)
}
.photo-lightbox figure{
  margin:0;
  display:flex;
  min-width:0;
  min-height:0;
  flex-direction:column;
  align-items:center;
  justify-content:center
}
.photo-lightbox img{
  max-width:min(1200px,100%);
  max-height:calc(100vh - 110px);
  width:auto;
  height:auto;
  object-fit:contain;
  box-shadow:0 14px 50px rgba(0,0,0,.35)
}
.photo-lightbox figcaption{
  margin-top:9px;
  color:#e7ece9;
  font-size:.76rem
}
.photo-lightbox-close,
.photo-lightbox-nav{
  border:0;
  color:#fff;
  background:transparent;
  cursor:pointer
}
.photo-lightbox-close{
  position:absolute;
  top:13px;
  right:18px;
  font-size:2.3rem;
  line-height:1
}
.photo-lightbox-nav{
  font-size:3rem;
  opacity:.8
}
.photo-lightbox-nav:hover,
.photo-lightbox-nav:focus{opacity:1}
body.lightbox-open{overflow:hidden}

.gallery-related-callout{
  margin:24px 0;
  padding:17px 19px;
  border:1px solid #d9d3c8;
  border-left:4px solid var(--forest);
  border-radius:6px;
  background:#f7f4ed
}
.gallery-related-callout strong{
  display:block;
  margin-bottom:5px;
  color:var(--ink)
}
.gallery-related-callout a{
  font-weight:800;
  text-decoration:none
}

code{
  font-size:.9em;
  word-break:break-word
}

@media(max-width:980px){
  .gallery-collection-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .photo-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
}
@media(max-width:700px){
  .gallery-section-heading{grid-template-columns:1fr}
  .gallery-toolbar{display:block}
  .gallery-source-note{display:inline-block;margin-top:8px!important}
  .photo-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .photo-lightbox{grid-template-columns:42px minmax(0,1fr) 42px}
}
@media(max-width:520px){
  .gallery-collection-grid{grid-template-columns:1fr}
  .photo-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}
  .photo-lightbox{grid-template-columns:34px minmax(0,1fr) 34px;padding:40px 4px 18px}
  .photo-lightbox-nav{font-size:2.3rem}
}


/* =========================================================
   Content Migration Batch 1F — Publicações
   ========================================================= */
.publications-section-hero,
.publication-detail-hero{
  background:linear-gradient(180deg,#f2ede4 0%,#fbfaf7 100%)
}

.publication-series-intro{
  display:flex;
  justify-content:space-between;
  gap:35px;
  align-items:center;
  margin-bottom:26px;
  padding:25px 28px;
  border:1px solid #ddd7cc;
  border-radius:10px;
  background:#fff
}
.publication-series-intro h2{
  margin:5px 0 8px;
  color:var(--ink);
  font:700 1.75rem var(--font-serif)
}
.publication-series-intro>div:first-child>p:not(.kicker){
  max-width:760px;
  margin-bottom:0;
  color:#657174;
  font-size:.84rem
}
.publication-series-stat{
  min-width:145px;
  padding-left:25px;
  border-left:1px solid #ddd7cc;
  text-align:center
}
.publication-series-stat strong{
  display:block;
  color:var(--forest);
  font:700 2.3rem var(--font-serif)
}
.publication-series-stat span{
  color:#6d7778;
  font-size:.72rem
}

.publication-filter-panel{
  margin-bottom:34px;
  padding:17px 20px;
  border:1px solid #e0dbd2;
  border-radius:8px;
  background:#f8f6f1
}
.publication-filter-panel form{
  display:flex;
  gap:12px;
  align-items:end;
  flex-wrap:wrap
}
.publication-filter-panel label{
  display:grid;
  gap:5px;
  color:#5f6c70;
  font-size:.68rem;
  font-weight:750;
  text-transform:uppercase;
  letter-spacing:.04em
}
.publication-filter-panel label:first-child{flex:1 1 300px}
.publication-filter-panel input,
.publication-filter-panel select{
  min-height:39px;
  padding:8px 10px;
  border:1px solid #cfd3cf;
  border-radius:5px;
  background:#fff;
  color:#26363d;
  font:400 .82rem var(--font-sans);
  text-transform:none;
  letter-spacing:0
}
.publication-filter-panel button{
  min-height:39px;
  padding:0 15px;
  border:0;
  border-radius:5px;
  background:var(--forest);
  color:#fff;
  font-weight:800
}
.publication-clear-filter{
  padding:10px 3px;
  color:#6c7474;
  font-size:.75rem
}

.publication-year-section{margin:0 0 36px}
.publication-year-heading{
  display:flex;
  justify-content:space-between;
  align-items:baseline;
  margin-bottom:13px;
  padding-bottom:8px;
  border-bottom:1px solid #dcd7ce
}
.publication-year-heading h2{
  margin:0;
  color:var(--ink);
  font:700 2rem var(--font-serif)
}
.publication-year-heading span{
  color:#788081;
  font-size:.72rem
}

.publication-issue-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:13px
}
.publication-issue-card{
  display:grid;
  grid-template-columns:54px 1fr;
  gap:14px;
  min-height:150px;
  padding:17px;
  border:1px solid #e0dcd4;
  border-radius:8px;
  background:#fff
}
.publication-issue-icon{
  display:flex;
  width:54px;
  height:68px;
  align-items:center;
  justify-content:center;
  border-radius:4px;
  background:#efe9de;
  color:#815e3b;
  font-size:.64rem;
  font-weight:900;
  letter-spacing:.08em
}
.publication-issue-card h3{
  margin:4px 0 6px;
  font:700 1.05rem/1.15 var(--font-serif)
}
.publication-issue-card h3 a{
  color:var(--ink);
  text-decoration:none
}
.publication-issue-card p:not(.kicker){
  margin:0;
  color:#747c7c;
  font-size:.72rem
}
.publication-card-actions{
  display:flex;
  gap:13px;
  flex-wrap:wrap;
  margin-top:13px
}
.publication-card-actions a{
  color:var(--heritage-blue);
  font-size:.72rem;
  font-weight:800
}

.publication-preservation-note{
  margin-top:16px;
  padding:17px 19px;
  border-left:3px solid #b5a079;
  background:#f7f3ea
}
.publication-preservation-note p{margin:0}
.publication-preservation-note p:not(.kicker){
  color:#666f70;
  font-size:.78rem
}

.publication-reader-section{max-width:1180px}
.publication-reader-toolbar{
  display:flex;
  justify-content:space-between;
  gap:22px;
  align-items:center;
  margin-bottom:13px;
  padding:13px 15px;
  border:1px solid #ded9d0;
  border-radius:7px;
  background:#fff
}
.publication-reader-toolbar>div:first-child{
  display:grid;
  gap:2px
}
.publication-reader-toolbar strong{
  color:var(--ink);
  font-size:.82rem
}
.publication-reader-toolbar span{
  color:#737d7d;
  font-size:.72rem
}
.publication-reader-actions{
  display:flex;
  gap:8px;
  flex-wrap:wrap
}
.publication-reader-actions a{
  padding:8px 11px;
  border:1px solid #cfd7d2;
  border-radius:5px;
  color:var(--forest);
  background:#f7faf8;
  font-size:.72rem;
  font-weight:800;
  text-decoration:none
}

.publication-source-note{
  margin:0 0 12px;
  padding:10px 12px;
  border-radius:5px;
  background:#f4efe5;
  color:#756955;
  font-size:.74rem
}
.publication-pdf-frame{
  height:min(78vh,920px);
  min-height:620px;
  overflow:hidden;
  border:1px solid #d7d4ce;
  border-radius:7px;
  background:#e9e9e9
}
.publication-pdf-frame iframe{
  display:block;
  width:100%;
  height:100%;
  border:0
}
.publication-back-row{
  margin-top:20px;
  padding-top:17px;
  border-top:1px solid #e1ddd5
}

@media(max-width:950px){
  .publication-issue-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:700px){
  .publication-series-intro{display:block}
  .publication-series-stat{
    margin-top:18px;
    padding:15px 0 0;
    border-left:0;
    border-top:1px solid #ddd7cc;
    text-align:left
  }
  .publication-issue-grid{grid-template-columns:1fr}
  .publication-reader-toolbar{display:block}
  .publication-reader-actions{margin-top:12px}
  .publication-pdf-frame{min-height:520px}
}


/* =========================================================
   Content Migration Batch 1G — A Cidade
   ========================================================= */
.city-section-hero{
  background:linear-gradient(180deg,#f2ede4 0%,#fbfaf7 100%)
}

.city-intro-section{padding-bottom:24px}
.city-welcome-grid{
  display:grid;
  grid-template-columns:minmax(0,1.15fr) minmax(300px,.85fr);
  gap:38px;
  align-items:center
}
.city-welcome-copy h2{
  margin:5px 0 10px;
  max-width:760px;
  color:var(--ink);
  font:700 2rem/1.08 var(--font-serif)
}
.city-lead{
  margin:0 0 20px;
  color:#5f6c6d;
  font:italic 1.05rem/1.55 var(--font-serif)
}
.city-preservation-note{margin-top:22px}
.city-feature-image{
  margin:0;
  overflow:hidden;
  border-radius:9px;
  box-shadow:0 14px 35px rgba(38,54,61,.12)
}
.city-feature-image img{
  display:block;
  width:100%;
  min-height:310px;
  object-fit:cover
}

.city-story-section{
  padding-top:12px;
  padding-bottom:46px
}
.city-story-block{
  display:grid;
  grid-template-columns:minmax(0,1.15fr) minmax(300px,.85fr);
  gap:34px;
  align-items:center;
  padding:34px 0;
  border-top:1px solid #e0dbd2
}
.city-story-block.reverse{
  grid-template-columns:minmax(300px,.85fr) minmax(0,1.15fr)
}
.city-story-copy p:first-child{margin-top:0}
.city-story-copy p:last-child{margin-bottom:0}
.city-story-image{
  margin:0;
  overflow:hidden;
  border-radius:7px;
  background:#eeeae3
}
.city-story-image img{
  display:block;
  width:100%;
  max-height:430px;
  object-fit:cover
}
.city-story-image figcaption{
  padding:9px 11px;
  color:#747b7b;
  background:#f6f3ed;
  font-size:.7rem
}

.city-history-cta{
  display:flex;
  justify-content:space-between;
  gap:28px;
  align-items:center;
  margin-top:10px;
  padding:23px 25px;
  border:1px solid #d8d3c8;
  border-left:4px solid var(--forest);
  border-radius:7px;
  background:#f7f4ed
}
.city-history-cta h2{
  margin:5px 0 7px;
  color:var(--ink);
  font:700 1.45rem var(--font-serif)
}
.city-history-cta p:not(.kicker){
  max-width:760px;
  margin:0;
  color:#677172;
  font-size:.8rem
}
.city-history-cta .text-link{white-space:nowrap}

.city-explore-section{
  padding:48px 0 55px;
  background:#f4f0e8
}
.city-link-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:14px
}
.city-link-card{
  min-height:145px;
  padding:21px 22px;
  border:1px solid #ddd7cc;
  border-radius:8px;
  background:#fff;
  color:inherit;
  text-decoration:none;
  transition:transform .16s ease,box-shadow .16s ease
}
.city-link-card:hover{
  transform:translateY(-2px);
  box-shadow:0 10px 25px rgba(38,54,61,.08)
}
.city-link-card span{
  display:block;
  margin-bottom:8px;
  color:var(--ink);
  font:700 1.18rem var(--font-serif)
}
.city-link-card p{
  margin:0;
  color:#687273;
  font-size:.77rem;
  line-height:1.55
}

.city-source-row{
  padding-top:18px;
  padding-bottom:28px
}
.city-source-row p{
  margin:0;
  font-size:.72rem
}
.city-source-row a{color:#687273}

@media(max-width:900px){
  .city-welcome-grid,
  .city-story-block,
  .city-story-block.reverse{
    grid-template-columns:1fr
  }
  .city-story-block.reverse .city-story-image{order:2}
  .city-link-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .city-history-cta{display:block}
  .city-history-cta .text-link{display:inline-block;margin-top:14px}
}
@media(max-width:600px){
  .city-welcome-copy h2{font-size:1.6rem}
  .city-feature-image img{min-height:230px}
  .city-link-grid{grid-template-columns:1fr}
}


/* =========================================================
   Content Migration Batch 1H — Visite & Região
   ========================================================= */
.tourism-section-hero{
  background:linear-gradient(180deg,#f2ede4 0%,#fbfaf7 100%)
}

.tourism-intro-grid{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  gap:32px;
  align-items:end;
  margin-bottom:18px
}
.tourism-intro-grid h2{
  margin:5px 0 8px;
  color:var(--ink);
  font:700 1.75rem var(--font-serif)
}
.tourism-intro-grid>div>p:not(.kicker){
  max-width:780px;
  margin:0;
  color:#657174;
  font-size:.84rem
}
.tourism-section-note{margin:0 0 35px}

.tourism-group{margin:0 0 40px}
.tourism-group-heading{
  display:flex;
  justify-content:space-between;
  align-items:baseline;
  margin-bottom:14px;
  padding-bottom:8px;
  border-bottom:1px solid #ddd8cf
}
.tourism-group-heading h2{
  margin:0;
  color:var(--ink);
  font:700 1.75rem var(--font-serif)
}
.tourism-group-heading span{
  color:#798182;
  font-size:.72rem
}

.tourism-card-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:16px
}
.tourism-card{
  overflow:hidden;
  border:1px solid #dfdbd3;
  border-radius:9px;
  background:#fff
}
.tourism-card-media{
  display:block;
  aspect-ratio:16/10;
  overflow:hidden;
  background:#ebe8e1
}
.tourism-card-media img{
  display:block;
  width:100%;
  height:100%;
  object-fit:cover;
  transition:transform .2s ease
}
.tourism-card-media:hover img{transform:scale(1.025)}
.tourism-card-placeholder{
  display:flex;
  width:100%;
  height:100%;
  align-items:center;
  justify-content:center;
  color:#8b938f;
  font:700 2rem var(--font-serif)
}
.tourism-card-copy{padding:18px 19px 20px}
.tourism-card-copy h3{
  margin:5px 0 8px;
  font:700 1.18rem/1.18 var(--font-serif)
}
.tourism-card-copy h3 a{
  color:var(--ink);
  text-decoration:none
}
.tourism-card-copy>p:not(.kicker){
  min-height:60px;
  margin-bottom:13px;
  color:#687273;
  font-size:.77rem
}

.tourism-source-image{
  margin:24px auto;
  max-width:820px
}
.tourism-source-image img{
  display:block;
  width:auto;
  max-width:100%;
  max-height:650px;
  margin:0 auto;
  border-radius:5px
}
.tourism-source-image figcaption{
  margin-top:7px;
  color:#737c7c;
  font-size:.72rem;
  text-align:center
}

.tourism-article-image-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:10px;
  margin-top:25px
}
.tourism-article-image-grid .tourism-source-image{
  margin:0;
  display:flex;
  min-height:210px;
  align-items:center;
  justify-content:center;
  background:#f2efe9;
  border-radius:6px
}
.tourism-article-image-grid .tourism-source-image img{
  width:100%;
  height:100%;
  max-height:320px;
  object-fit:contain
}

.video-link-callout{
  margin:24px 0;
  padding:18px 20px;
  border:1px solid #d9d3c8;
  border-left:4px solid var(--heritage-blue);
  border-radius:6px;
  background:#f5f7f6
}
.video-link-callout strong{
  display:block;
  margin-bottom:6px
}
.video-link-callout a{
  font-weight:800;
  text-decoration:none
}

.historic-event-list{
  columns:2;
  column-gap:32px;
  margin:20px 0 24px;
  padding-left:20px
}
.historic-event-list li{
  break-inside:avoid;
  margin:0 0 8px
}
.tourism-date-note{margin-bottom:22px}

.tourism-archive-note{
  margin-top:14px;
  padding:19px 20px;
  border-left:3px solid #b6a17b;
  background:#f7f3ea
}
.tourism-archive-note p{margin:0}
.tourism-archive-note p:not(.kicker){
  color:#666f70;
  font-size:.78rem
}

@media(max-width:950px){
  .tourism-card-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:700px){
  .tourism-intro-grid{grid-template-columns:1fr}
  .tourism-card-grid{grid-template-columns:1fr}
  .tourism-article-image-grid{grid-template-columns:1fr}
  .historic-event-list{columns:1}
}


/* =========================================================
   Content Migration Batch 1I — Notícias & Arquivo
   ========================================================= */
.archive-section-hero{
  background:linear-gradient(180deg,#f2ede4 0%,#fbfaf7 100%)
}

.archive-intro{
  display:flex;
  justify-content:space-between;
  gap:35px;
  align-items:center;
  margin-bottom:18px;
  padding:24px 27px;
  border:1px solid #ddd8cf;
  border-radius:9px;
  background:#fff
}
.archive-intro h2{
  margin:5px 0 8px;
  color:var(--ink);
  font:700 1.7rem var(--font-serif)
}
.archive-intro>div:first-child>p:not(.kicker){
  max-width:780px;
  margin:0;
  color:#667172;
  font-size:.82rem
}
.archive-count{
  min-width:145px;
  padding-left:24px;
  border-left:1px solid #ddd8cf;
  text-align:center
}
.archive-count strong{
  display:block;
  color:var(--forest);
  font:700 2.3rem var(--font-serif)
}
.archive-count span{
  color:#737d7e;
  font-size:.7rem
}

.archive-main-note{margin-bottom:25px}

.archive-filter-panel{
  margin-bottom:34px;
  padding:17px 20px;
  border:1px solid #dfdad1;
  border-radius:8px;
  background:#f8f6f1
}
.archive-filter-panel form{
  display:flex;
  gap:12px;
  align-items:end;
  flex-wrap:wrap
}
.archive-filter-panel label{
  display:grid;
  gap:5px;
  color:#5f6c70;
  font-size:.68rem;
  font-weight:750;
  text-transform:uppercase;
  letter-spacing:.04em
}
.archive-filter-panel label:first-child{flex:1 1 320px}
.archive-filter-panel input,
.archive-filter-panel select{
  min-height:39px;
  padding:8px 10px;
  border:1px solid #cfd3cf;
  border-radius:5px;
  background:#fff;
  color:#26363d;
  font:400 .82rem var(--font-sans);
  text-transform:none;
  letter-spacing:0
}
.archive-filter-panel button{
  min-height:39px;
  padding:0 15px;
  border:0;
  border-radius:5px;
  background:var(--forest);
  color:#fff;
  font-weight:800
}
.archive-clear-filter{
  padding:10px 3px;
  color:#6d7677;
  font-size:.75rem
}

.archive-year-section{margin-bottom:42px}
.archive-year-heading{
  display:flex;
  justify-content:space-between;
  align-items:baseline;
  margin-bottom:14px;
  padding-bottom:8px;
  border-bottom:1px solid #dcd7ce
}
.archive-year-heading h2{
  margin:0;
  color:var(--ink);
  font:700 2rem var(--font-serif)
}
.archive-year-heading span{
  color:#798182;
  font-size:.72rem
}

.archive-card-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:16px
}
.archive-card{
  overflow:hidden;
  border:1px solid #dfdbd3;
  border-radius:9px;
  background:#fff
}
.archive-card-media{
  display:block;
  aspect-ratio:16/10;
  overflow:hidden;
  background:#ece8e0
}
.archive-card-media img{
  display:block;
  width:100%;
  height:100%;
  object-fit:cover;
  transition:transform .2s ease
}
.archive-card-media:hover img{transform:scale(1.025)}
.archive-card-placeholder{
  display:flex;
  width:100%;
  height:100%;
  align-items:center;
  justify-content:center;
  color:#8a928f;
  font-size:.67rem;
  font-weight:900;
  letter-spacing:.12em
}
.archive-card-copy{padding:18px 19px 20px}
.archive-date{
  margin:0 0 5px;
  color:#7b8383;
  font-size:.68rem
}
.archive-card-copy h3{
  margin:5px 0 8px;
  font:700 1.15rem/1.18 var(--font-serif)
}
.archive-card-copy h3 a{
  color:var(--ink);
  text-decoration:none
}
.archive-card-copy>p:not(.kicker):not(.archive-date){
  min-height:62px;
  color:#687273;
  font-size:.76rem
}

.archive-source-date{
  margin:9px 0 0;
  color:#697374;
  font-size:.74rem
}
.archive-preservation-note{border-left-color:#9a7b50}
.archive-source-quote{
  margin:22px 0;
  padding:20px 23px;
  border-left:4px solid #b3a079;
  background:#f7f3ea
}
.archive-source-quote p:first-child{margin-top:0}
.archive-source-quote p:last-child{margin-bottom:0}

.archive-body-image{
  margin:0 auto 24px;
  max-width:820px
}
.archive-body-image img{
  display:block;
  width:auto;
  max-width:100%;
  max-height:780px;
  margin:0 auto;
  border-radius:6px
}
.archive-video-callout{
  margin:22px 0;
  padding:18px 20px;
  border:1px solid #d8d3c9;
  border-left:4px solid var(--heritage-blue);
  border-radius:6px;
  background:#f5f7f6
}
.archive-video-callout p{margin:0 0 7px}
.archive-video-callout p:last-child{margin-bottom:0}
.archive-link-note{margin-bottom:20px}

.archive-boundary-note{
  margin-top:10px;
  padding:19px 20px;
  border-left:3px solid #b6a17b;
  background:#f7f3ea
}
.archive-boundary-note p{margin:0}
.archive-boundary-note p:not(.kicker){
  color:#666f70;
  font-size:.78rem
}

@media(max-width:950px){
  .archive-card-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:700px){
  .archive-intro{display:block}
  .archive-count{
    margin-top:18px;
    padding:15px 0 0;
    border-left:0;
    border-top:1px solid #ddd8cf;
    text-align:left
  }
  .archive-card-grid{grid-template-columns:1fr}
}


/* =========================================================
   Batch 1J — Site-wide Search + Homepage Finalization
   ========================================================= */
.global-search-hero{
  background:linear-gradient(180deg,#f2ede4 0%,#fbfaf7 100%)
}
.global-search-section{max-width:1050px}
.global-search-form{
  display:grid;
  grid-template-columns:minmax(0,1fr) 230px auto;
  gap:9px;
  margin-bottom:28px;
  padding:16px;
  border:1px solid #dcd8d0;
  border-radius:8px;
  background:#f8f6f1
}
.global-search-form input,
.global-search-form select{
  width:100%;
  min-height:45px;
  padding:9px 12px;
  border:1px solid #cbd0cc;
  border-radius:5px;
  background:#fff;
  color:#26363d;
  font:400 .86rem var(--font-sans)
}
.global-search-form button{
  min-height:45px;
  padding:0 18px;
  border:0;
  border-radius:5px;
  background:var(--forest);
  color:#fff;
  font-weight:800
}

.search-start-panel{
  padding:28px;
  border:1px solid #dfdad1;
  border-radius:9px;
  background:#fff
}
.search-start-panel h2{
  margin:5px 0 9px;
  color:var(--ink);
  font:700 1.65rem var(--font-serif)
}
.search-start-panel>p:not(.kicker){
  max-width:760px;
  color:#687273;
  font-size:.82rem
}
.search-suggestions{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin-top:18px
}
.search-suggestions a{
  padding:7px 11px;
  border:1px solid #d6d7d2;
  border-radius:999px;
  background:#faf9f6;
  color:var(--forest);
  font-size:.73rem;
  font-weight:750;
  text-decoration:none
}

.global-search-summary{
  display:flex;
  justify-content:space-between;
  gap:25px;
  align-items:end;
  margin-bottom:15px;
  padding-bottom:12px;
  border-bottom:1px solid #ded9d1
}
.global-search-summary h2{
  margin:4px 0 0;
  color:var(--ink);
  font:700 1.45rem var(--font-serif)
}
.global-search-summary>p{
  margin:0;
  color:#717b7b;
  font-size:.75rem
}

.global-search-results{
  display:grid;
  gap:10px
}
.global-search-result{
  padding:18px 20px;
  border:1px solid #e0dcd4;
  border-radius:7px;
  background:#fff
}
.global-search-result-meta{
  display:flex;
  justify-content:space-between;
  gap:15px;
  margin-bottom:4px
}
.global-search-result-meta span{
  color:#8a633b;
  font-size:.65rem;
  font-weight:850;
  letter-spacing:.06em;
  text-transform:uppercase
}
.global-search-result-meta small{
  color:#7b8383;
  font-size:.67rem
}
.global-search-result h2{
  margin:4px 0 7px;
  font:700 1.18rem/1.2 var(--font-serif)
}
.global-search-result h2 a{
  color:var(--ink);
  text-decoration:none
}
.global-search-result p{
  margin:0 0 8px;
  color:#697374;
  font-size:.78rem;
  line-height:1.55
}
.search-pagination{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:15px;
  margin-top:24px;
  padding-top:16px;
  border-top:1px solid #dedad2;
  font-size:.76rem
}
.search-pagination a{
  color:var(--forest);
  font-weight:800;
  text-decoration:none
}
.search-pagination span{color:#737d7d}

/* Finalized homepage */
.finalized-home-hero{
  background-position:center 42%
}
.home-search-panel{
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(330px,.8fr);
  gap:32px;
  align-items:center;
  margin:30px 0 18px;
  padding:24px 27px;
  border:1px solid #d9d5cd;
  border-radius:9px;
  background:#f5f1e9
}
.home-search-panel h2{
  margin:5px 0 7px;
  color:var(--ink);
  font:700 1.55rem var(--font-serif)
}
.home-search-panel>div>p:not(.kicker){
  margin:0;
  color:#677273;
  font-size:.8rem
}
.home-search-panel form{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  gap:8px
}
.home-search-panel input{
  min-height:43px;
  padding:8px 11px;
  border:1px solid #cbd0cc;
  border-radius:5px;
  background:#fff;
  color:#26363d;
  font:400 .82rem var(--font-sans)
}
.home-search-panel button{
  padding:0 15px;
  border:0;
  border-radius:5px;
  background:var(--forest);
  color:#fff;
  font-weight:800
}

.finalized-feature-grid .feature-card h3 a{
  color:inherit;
  text-decoration:none
}
.feature-card-image-link{
  display:block;
  overflow:hidden
}
.feature-card-image-link img{
  transition:transform .2s ease
}
.feature-card-image-link:hover img{transform:scale(1.025)}

.finalized-genealogy-panel .genealogy-canonical-portrait{
  object-fit:contain;
  object-position:center;
  background:#eeeae2
}
.home-genealogy-actions{
  display:flex;
  flex-wrap:wrap;
  gap:16px;
  margin-top:9px
}

.home-publication-list{
  display:grid;
  gap:10px
}
.home-publication-row{
  display:grid;
  grid-template-columns:52px minmax(0,1fr);
  gap:13px;
  align-items:center;
  padding:14px 15px;
  border:1px solid #e0dcd4;
  border-radius:7px;
  background:#fff
}
.home-publication-mark{
  display:flex;
  width:52px;
  height:62px;
  align-items:center;
  justify-content:center;
  border-radius:4px;
  background:#efe9de;
  color:#815e3b;
  font-size:.61rem;
  font-weight:900;
  letter-spacing:.08em
}
.home-publication-row small{
  display:block;
  margin-bottom:2px;
  color:#7b8282;
  font-size:.68rem
}
.home-publication-row h3{
  margin:0 0 5px;
  font:700 1rem var(--font-serif)
}
.home-publication-row h3 a{
  color:var(--ink);
  text-decoration:none
}

.home-gallery-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:8px
}
.home-gallery-tile{
  position:relative;
  display:block;
  aspect-ratio:1/1;
  overflow:hidden;
  border-radius:6px;
  background:#ebe8e1
}
.home-gallery-tile img{
  width:100%;
  height:100%;
  object-fit:cover;
  transition:transform .2s ease
}
.home-gallery-tile:hover img{transform:scale(1.04)}
.home-gallery-tile span{
  position:absolute;
  right:0;
  bottom:0;
  left:0;
  padding:16px 8px 7px;
  background:linear-gradient(transparent,rgba(17,31,35,.78));
  color:#fff;
  font-size:.64rem;
  font-weight:750
}

.home-explore-more{
  margin:8px 0 50px
}
.home-explore-grid{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:10px
}
.home-explore-grid a{
  display:grid;
  gap:5px;
  min-height:112px;
  padding:17px;
  border:1px solid #ddd9d1;
  border-radius:7px;
  background:#fff;
  color:inherit;
  text-decoration:none
}
.home-explore-grid strong{
  color:var(--ink);
  font:700 1rem var(--font-serif)
}
.home-explore-grid span{
  color:#6d7677;
  font-size:.72rem;
  line-height:1.5
}

@media(max-width:900px){
  .global-search-form{
    grid-template-columns:1fr 190px
  }
  .global-search-form button{
    grid-column:1/-1
  }
  .home-search-panel{
    grid-template-columns:1fr
  }
  .home-explore-grid{
    grid-template-columns:repeat(2,minmax(0,1fr))
  }
}
@media(max-width:620px){
  .global-search-form{
    grid-template-columns:1fr
  }
  .global-search-form button{
    grid-column:auto
  }
  .global-search-summary{
    display:block
  }
  .global-search-summary>p{
    margin-top:7px
  }
  .home-search-panel form{
    grid-template-columns:1fr
  }
  .home-gallery-grid{
    grid-template-columns:repeat(2,minmax(0,1fr))
  }
  .home-explore-grid{
    grid-template-columns:1fr
  }
}


/* José Dias Nogueira duplicate merge */
.merged-source-section{
  margin:30px 0;
  padding-top:22px;
  border-top:1px solid #ded9d0
}
.merged-source-section h2{
  margin-top:0
}
.merged-source-section figure{
  margin:18px auto;
  max-width:900px
}
.merged-source-section figure img{
  display:block;
  width:auto;
  max-width:100%;
  height:auto;
  margin:0 auto
}


/* =========================================================
   Functional contact form
   ========================================================= */
.contact-layout{max-width:920px}
.contact-intro{max-width:760px;margin-bottom:22px}
.contact-intro p{color:#657071;font-size:.82rem;line-height:1.65}
.contact-privacy-note{padding:10px 13px;border-left:3px solid #b6c8c0;background:#f5f7f5}
.contact-form{position:relative}
.contact-form input,.contact-form textarea{font:inherit;color:#26363d}
.contact-form textarea{resize:vertical;min-height:170px}
.contact-field-help{color:#7a8280;font-size:.68rem;font-weight:400}
.contact-notice{max-width:760px;margin:0 0 22px;padding:15px 17px;border-left:4px solid #174c3d;border-radius:3px;background:#eef5f2;color:#32413f}
.contact-notice strong{display:block;margin-bottom:4px}
.contact-notice p{margin:0}
.contact-notice ul{margin:7px 0 0;padding-left:20px}
.contact-error{border-left-color:#9a3b34;background:#fbefed}
.contact-honeypot{position:absolute!important;left:-10000px!important;top:auto!important;width:1px!important;height:1px!important;overflow:hidden!important}


/* =========================================================
   História — Freguezia da Espera / contemporary transcription
   ========================================================= */
.history-source-intro{
  margin-bottom:34px
}
.history-lead{
  margin:0 0 22px;
  max-width:900px;
  color:#445154;
  font:400 1.12rem/1.75 var(--font-serif)
}
.history-editorial-note{
  margin:22px 0;
  padding:18px 20px;
  border-left:4px solid var(--forest);
  background:#edf4ef;
  color:#4e5c5d
}
.history-editorial-note.compact{
  margin-top:20px
}
.history-editorial-note strong{
  display:block;
  margin-bottom:5px;
  color:var(--ink)
}
.history-editorial-note p{
  margin:0;
  font-size:.84rem;
  line-height:1.6
}
.history-source-download{
  display:inline-flex;
  align-items:center;
  gap:8px;
  margin-top:4px;
  padding:11px 15px;
  border:1px solid #c8d6d1;
  border-radius:7px;
  background:#f8faf8;
  color:var(--heritage-blue);
  font-size:.78rem;
  font-weight:800;
  text-decoration:none
}
.history-source-download:hover{
  background:#edf4ef
}
.history-chronology{
  margin-top:30px
}
.history-period{
  display:grid;
  grid-template-columns:118px minmax(0,1fr);
  gap:28px;
  padding:32px 0;
  border-top:1px solid #ddd7cc
}
.history-year{
  color:#936936;
  font-size:.76rem;
  font-weight:900;
  letter-spacing:.08em;
  text-transform:uppercase
}
.history-period-body{
  max-width:900px
}
.history-period-body h2{
  margin:0 0 16px;
  color:var(--ink);
  font:700 1.7rem/1.15 var(--font-serif)
}
.history-period-body p{
  margin:0 0 15px;
  color:#586568;
  font:400 .98rem/1.72 var(--font-serif)
}
.history-document-highlight{
  margin:22px 0 6px;
  padding:18px 20px;
  border:1px solid #e1d8ca;
  border-radius:10px;
  background:#f7f2e9
}
.history-document-highlight span{
  display:block;
  margin-bottom:5px;
  color:#8b6230;
  font-size:.72rem;
  font-weight:900;
  letter-spacing:.06em;
  text-transform:uppercase
}
.history-document-highlight p{
  margin:0
}
.history-source-quote{
  margin:20px 0;
  padding:18px 22px;
  border-left:4px solid #9b7849;
  background:#f6f1e9
}
.history-source-quote p{
  margin:0;
  color:#3f4a4b;
  font-style:italic
}
.history-meaning{
  margin:36px 0;
  padding:28px 30px;
  border-radius:12px;
  background:#17364d;
  color:#fff
}
.history-meaning .kicker{
  color:#f0c98a
}
.history-meaning h2{
  margin:5px 0 14px;
  color:#fff;
  font:700 1.8rem/1.15 var(--font-serif)
}
.history-meaning p{
  max-width:940px;
  color:#eef3f4;
  font-size:.88rem;
  line-height:1.68
}
.history-source-box{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:28px;
  margin:34px 0 18px;
  padding:23px 25px;
  border:1px solid #ddd7cd;
  border-radius:10px;
  background:#fff
}
.history-source-box h3{
  margin:4px 0 6px;
  color:var(--ink);
  font:700 1.35rem var(--font-serif)
}
.history-source-box p:not(.kicker){
  margin:0;
  max-width:680px;
  color:#687274;
  font-size:.8rem;
  line-height:1.55
}
.history-source-box>a{
  flex:0 0 auto;
  color:var(--heritage-blue);
  font-size:.78rem;
  font-weight:850
}

@media(max-width:760px){
  .history-period{
    grid-template-columns:1fr;
    gap:8px;
    padding:26px 0
  }
  .history-period-body h2{
    font-size:1.5rem
  }
  .history-source-box{
    display:block
  }
  .history-source-box>a{
    display:inline-block;
    margin-top:14px
  }
}


/* =========================================================
   História — memória visual da antiga Matriz (1926)
   ========================================================= */
.history-visual-memory{
  margin:34px 0 40px;
  padding:28px;
  border:1px solid #ddd7cd;
  border-radius:12px;
  background:#fbf8f2
}
.history-visual-memory-heading{
  max-width:900px;
  margin-bottom:22px
}
.history-visual-memory-heading h2{
  margin:5px 0 14px;
  color:var(--ink);
  font:700 1.8rem/1.15 var(--font-serif)
}
.history-visual-memory-heading p:not(.kicker){
  color:#586568;
  font:400 .96rem/1.7 var(--font-serif)
}
.history-photo-grid{
  display:grid;
  grid-template-columns:1.15fr .85fr;
  gap:20px;
  align-items:start
}
.history-photo{
  margin:0
}
.history-photo img{
  display:block;
  width:100%;
  height:auto;
  border-radius:8px;
  background:#eee8df
}
.history-photo figcaption{
  margin-top:8px;
  color:#746f68;
  font-size:.74rem;
  line-height:1.5
}
.history-photo-note{
  margin:18px 0 0;
  padding-top:14px;
  border-top:1px solid #e1dbd1;
  color:#77726c;
  font-size:.74rem;
  line-height:1.55
}
@media(max-width:760px){
  .history-visual-memory{
    padding:20px
  }
  .history-photo-grid{
    grid-template-columns:1fr
  }
}


/* =========================================================
   Comentários históricos — memória digital
   ========================================================= */
.historical-comments-hero{
  background:linear-gradient(180deg,#f0ebe0 0%,#fbfaf7 100%)
}
.historical-comments-intro{
  display:grid;
  grid-template-columns:1fr 220px;
  gap:34px;
  padding-block:42px 24px
}
.historical-comments-note h2{
  margin:5px 0 12px;
  color:var(--ink);
  font:700 1.8rem/1.12 var(--font-serif)
}
.historical-comments-note>p:not(.kicker){
  max-width:840px;
  margin:0 0 12px;
  color:#5e696b;
  font-size:.86rem;
  line-height:1.68
}
.historical-comments-stats{
  align-self:start;
  padding:22px;
  border:1px solid #dfd8cd;
  border-radius:12px;
  background:#fff
}
.historical-comments-stats strong{
  display:block;
  color:var(--ink);
  font:700 2.5rem/1 var(--font-serif)
}
.historical-comments-stats span,
.historical-comments-stats small{
  display:block;
  margin-top:6px;
  color:#697274
}
.historical-comments-stats span{font-size:.8rem;font-weight:750}
.historical-comments-stats small{font-size:.7rem}

.historical-comments-tools{
  padding-block:20px 28px;
  border-top:1px solid #e0dbd2;
  border-bottom:1px solid #e0dbd2
}
.historical-comments-search{
  max-width:720px
}
.historical-comments-search label{
  display:block;
  margin-bottom:7px;
  color:#586366;
  font-size:.72rem;
  font-weight:750
}
.historical-comments-search>div{
  display:grid;
  grid-template-columns:1fr auto;
  gap:8px
}
.historical-comments-search input{
  min-width:0;
  padding:11px 12px;
  border:1px solid #cfd5d2;
  border-radius:6px;
  background:#fff
}
.historical-comments-search button{
  padding:0 18px;
  border:0;
  border-radius:6px;
  background:var(--forest);
  color:#fff;
  font-weight:800;
  cursor:pointer
}
.historical-year-filter{
  display:flex;
  flex-wrap:wrap;
  gap:7px;
  margin-top:16px
}
.historical-year-filter a{
  display:inline-flex;
  align-items:center;
  gap:7px;
  padding:8px 11px;
  border:1px solid #d9d5cc;
  border-radius:999px;
  background:#fff;
  color:#526063;
  font-size:.73rem;
  font-weight:750
}
.historical-year-filter a span{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:22px;
  height:22px;
  padding:0 5px;
  border-radius:999px;
  background:#f0ede6;
  font-size:.64rem
}
.historical-year-filter a.active{
  border-color:var(--forest);
  background:var(--forest);
  color:#fff
}
.historical-year-filter a.active span{
  background:rgba(255,255,255,.16)
}

.historical-comments-results{
  padding-block:34px 52px
}
.historical-comments-result-count{
  margin:0 0 22px;
  color:#7a817f;
  font-size:.74rem
}
.historical-comments-year{
  margin-bottom:46px
}
.historical-comments-year-heading{
  display:flex;
  align-items:baseline;
  gap:13px;
  margin-bottom:15px;
  padding-bottom:8px;
  border-bottom:1px solid #ddd8cf
}
.historical-comments-year-heading h2{
  margin:0;
  color:var(--ink);
  font:700 2.15rem var(--font-serif)
}
.historical-comments-year-heading span{
  color:#8a8379;
  font-size:.72rem
}
.historical-comments-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:16px
}
.historical-comment-card{
  min-width:0;
  padding:21px 22px;
  border:1px solid #e1dcd4;
  border-radius:10px;
  background:#fff
}
.historical-comment-card header{
  padding-bottom:12px;
  border-bottom:1px solid #eee9e1
}
.historical-comment-card h3{
  margin:0;
  color:var(--ink);
  font:700 1.14rem/1.2 var(--font-serif)
}
.historical-comment-title{
  margin:0 0 5px;
  color:#8a6535;
  font-size:.66rem;
  font-weight:850;
  letter-spacing:.08em;
  text-transform:uppercase
}
.historical-comment-meta{
  margin:5px 0 0;
  color:#7a827f;
  font-size:.68rem
}
.historical-comment-body{
  padding-top:13px
}
.historical-comment-body p{
  margin:0 0 11px;
  color:#566366;
  font-size:.82rem;
  line-height:1.65
}
.historical-comment-body p:last-child{
  margin-bottom:0
}
.historical-admin-reply{
  margin-top:16px;
  padding:13px 15px;
  border-left:3px solid var(--heritage-blue);
  background:#f0f5f8
}
.historical-admin-reply strong{
  display:block;
  margin-bottom:6px;
  color:var(--ink);
  font-size:.7rem
}
.historical-admin-reply p{
  margin:0 0 8px;
  color:#58666b;
  font-size:.76rem;
  line-height:1.55
}
.historical-comment-source-note{
  margin-top:14px;
  padding-top:10px;
  border-top:1px dashed #ddd7cd;
  color:#8a847a;
  font-size:.64rem;
  line-height:1.5
}
.historical-comments-empty{
  padding:28px;
  border:1px dashed #cec7bb;
  border-radius:10px;
  background:#fff
}
.historical-comments-empty h2{
  margin:0 0 7px;
  color:var(--ink);
  font:700 1.45rem var(--font-serif)
}
.historical-comments-empty p{
  color:#687274
}
.historical-comments-empty a{
  color:var(--heritage-blue);
  font-weight:800
}
.historical-comments-context{
  margin-bottom:52px;
  padding:30px;
  border-radius:12px;
  background:#17364d;
  color:#fff
}
.historical-comments-context .kicker{
  color:#efc889
}
.historical-comments-context h2{
  margin:4px 0 12px;
  color:#fff;
  font:700 1.75rem var(--font-serif)
}
.historical-comments-context p{
  max-width:940px;
  color:#eef3f3;
  font-size:.84rem;
  line-height:1.68
}

.historical-comments-culture-callout{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:26px;
  margin:0 0 34px;
  padding:24px 26px;
  border:1px solid #ddd7ce;
  border-radius:12px;
  background:#f2eee6
}
.historical-comments-culture-callout h2{
  margin:5px 0 7px;
  color:var(--ink);
  font:700 1.45rem/1.15 var(--font-serif)
}
.historical-comments-culture-callout p:not(.kicker){
  max-width:760px;
  margin:0;
  color:#657073;
  font-size:.8rem
}
.historical-comments-culture-callout>a{
  flex:0 0 auto;
  color:var(--heritage-blue);
  font-size:.78rem;
  font-weight:800
}

@media(max-width:850px){
  .historical-comments-intro{
    grid-template-columns:1fr
  }
  .historical-comments-stats{
    max-width:240px
  }
  .historical-comments-grid{
    grid-template-columns:1fr
  }
  .historical-comments-culture-callout{
    display:block
  }
  .historical-comments-culture-callout>a{
    display:inline-block;
    margin-top:14px
  }
}
@media(max-width:600px){
  .historical-comments-search>div{
    grid-template-columns:1fr
  }
  .historical-comments-search button{
    min-height:42px
  }
  .historical-comment-card{
    padding:18px
  }
}
