:root{
  --paper:#f6eddb;
  --paper2:#ead8b7;
  --ink:#1e1710;
  --brown:#2a2016;
  --brown2:#44301d;
  --gold:#a87b35;
  --line:#c7a66c;
  --soft:#fffaf0;
  --green:#50613f;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  color:var(--ink);
  font-family:Georgia,'Times New Roman',serif;
  background:
   radial-gradient(circle at 20% 0%,rgba(182,143,78,.12),transparent 25rem),
   linear-gradient(#f8f1e3,#f3e5ca);
  min-height:100vh;
}
a{color:inherit}
img{max-width:100%}
.banner{width:100%;background:#d4bd91;line-height:0;overflow:hidden}
.banner img{display:block;width:100%;height:auto;object-fit:contain}
.banner-slices,.jst-banner-slices{display:flex;width:100%;line-height:0;overflow:hidden}
.banner-slices img{display:block;width:20%;height:auto;flex:0 0 20%}
.jst-banner-slices{border:1px solid #b58b50;background:#d8c29b}
.jst-banner-slices img{display:block;width:33.333333%;height:auto;flex:0 0 33.333333%}
.topnav{background:linear-gradient(90deg,#16130f,#2a2119);color:#fff;border-bottom:2px solid var(--gold);box-shadow:0 5px 18px #0003;position:relative;z-index:5}
.nav-inner{max-width:1180px;margin:auto;display:flex;align-items:stretch;justify-content:center;min-height:58px}
.topnav a{display:flex;align-items:center;padding:0 1.35rem;text-decoration:none;font-weight:700;text-transform:uppercase;font-size:.9rem;border-bottom:3px solid transparent}
.topnav a:hover,.topnav a.active{background:#38291b;border-bottom-color:#c69a4d}
.home-icon{font-size:1.1rem}
main{max-width:1180px;margin:auto;padding:2rem 1.2rem 4rem}
.section-title{display:flex;align-items:center;justify-content:center;gap:1rem;margin:0 auto 1.35rem;text-align:center;font-size:clamp(1.7rem,3vw,2.6rem);text-transform:uppercase}
.section-title::before,.section-title::after{content:'';height:1px;background:linear-gradient(90deg,transparent,var(--line));width:min(16vw,150px)}
.section-title::after{background:linear-gradient(90deg,var(--line),transparent)}
.section-title span::before,.section-title span::after{content:'◇';color:var(--gold);font-size:.75em;padding:0 .55rem}
.search-section{padding-top:.3rem}
.search-box{max-width:780px;margin:auto}
.search-row{display:flex;box-shadow:0 7px 20px #755b3822;border-radius:.42rem;overflow:hidden}
.search-row input{flex:1;border:1px solid #b68e55;border-right:0;background:#fffdf8;padding:1rem 1.15rem;font:1.05rem Georgia,serif;min-width:0}
.search-row button,.collection-button,.small-btn,.action{border:0;background:linear-gradient(#4d3925,#2c1f13);color:#fff;padding:0 1.35rem;font-weight:700;font-family:Georgia,serif;text-decoration:none;cursor:pointer;display:inline-flex;align-items:center;justify-content:center;border-radius:.25rem}
.search-row button{border-radius:0;font-size:1rem}
.search-row button:hover,.collection-button:hover,.small-btn:hover,.action:hover{filter:brightness(1.18)}
.search-filters{margin-top:.85rem;border:1px solid #c9a46b;background:#fff9ed;border-radius:.45rem;padding:.8rem;display:grid;grid-template-columns:1fr 1fr;gap:.7rem}
.search-filters select{width:100%;padding:.75rem;border:1px solid #c39b62;border-radius:.3rem;background:#fffaf1;font:1rem Georgia,serif;color:var(--ink)}
#searchStatus{text-align:center;margin:1rem 0;color:#67533c;font-style:italic}
.search-results{max-width:900px;margin:1rem auto 2rem;display:grid;gap:.75rem}
.result{background:#fffaf0;border:1px solid #d1b17d;border-radius:.5rem;padding:1rem 1.1rem;box-shadow:0 4px 12px #60481e12}
.result h3{margin:.1rem 0 .4rem;font-size:1.17rem}
.result-meta{color:#7a6245;font-size:.92rem;margin-bottom:.55rem}
.snippet{line-height:1.55;border-left:3px solid #b88d4c;padding-left:.8rem;margin:.7rem 0}
.result-actions{display:flex;gap:.5rem;flex-wrap:wrap}
.small-btn{padding:.6rem .85rem;font-size:.88rem}.small-btn.alt{background:#765734}
.hidden{display:none!important}
.paper-list{padding-top:.7rem}
.newspaper-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:1rem}
.newspaper-card{border:1px solid #c8a66f;border-radius:.4rem;background:#fffaf0;overflow:hidden;box-shadow:0 5px 13px #4d371722;display:flex;flex-direction:column}
.masthead-wrap{height:102px;display:flex;align-items:center;justify-content:center;background:linear-gradient(#c8b186,#a99165);border-bottom:1px solid #9b794a;padding:.5rem}
.masthead-wrap img{max-height:100%;width:100%;object-fit:contain;filter:sepia(.32) contrast(1.15)}
.newspaper-card .body{padding:1rem;display:flex;flex-direction:column;flex:1}
.newspaper-card h3{font-size:1.08rem;margin:.05rem 0 .7rem}
.card-meta{color:#66533d;margin-bottom:.75rem;font-size:.93rem}
.card-status{font-size:.89rem;min-height:2.2em;margin-bottom:.85rem}
.collection-button{align-self:center;padding:.65rem 1.15rem;margin-top:auto;min-width:135px;font-size:.9rem}
.footer{border-top:2px solid #5d452a;background:#f0dfc1;padding:1.5rem 1rem .65rem}
.footer-grid{max-width:1180px;margin:auto;display:grid;grid-template-columns:1.25fr .75fr 1.05fr;align-items:center;gap:1.5rem}
.footer strong{display:block}.footer p{margin:.28rem 0}.footer-logo{text-align:center;border-left:1px solid #d0b785;border-right:1px solid #d0b785;padding:0 1.4rem}.footer-logo img{max-height:80px;object-fit:contain}.footer-contact a{display:block;text-decoration:none;margin:.48rem 0}.copyright{max-width:1180px;margin:1rem auto 0;border-top:1px solid #c3a46f;padding-top:.75rem;text-align:center;color:#765f42;font-size:.86rem}
.content-page{max-width:1020px}.content-page h1{font-size:clamp(2rem,5vw,3.2rem);margin:.2rem 0 1rem}.lead{font-size:1.12rem;line-height:1.65;color:#493b2c}.panel{background:#fffaf0;border:1px solid #cba875;border-radius:.45rem;padding:1.25rem;margin:1rem 0}.panel h2{margin-top:.1rem}.panel li{margin:.45rem 0;line-height:1.55}.quote{border-left:5px solid #a47b3d;padding:1rem 1.2rem;background:#eee0c8;font-size:1.04rem;line-height:1.6}
.breadcrumbs{font-size:.88rem;color:#806843;margin-bottom:1rem}.breadcrumbs a{text-decoration:none}.breadcrumbs a:hover{text-decoration:underline}
.collection-hero{display:grid;grid-template-columns:1.2fr .8fr;gap:1.2rem;align-items:center;background:#fffaf0;border:1px solid #caa56c;border-radius:.5rem;padding:1.2rem;margin-bottom:1.5rem}.collection-hero h1{margin:.2rem 0;font-size:clamp(2rem,5vw,3.2rem)}.collection-hero .period{font-size:1.65rem;font-weight:700;margin:.6rem 0}.collection-hero img{width:100%;max-height:255px;object-fit:contain;background:#d8c29b;border:1px solid #b58b50}.collection-hero .badge{display:inline-block;border:1px solid #89966c;background:#e8ecd9;color:#435137;border-radius:99px;padding:.25rem .65rem;font-weight:700;font-size:.88rem}
.year-grid{display:grid;grid-template-columns:repeat(5,1fr);gap:.75rem;margin:1rem 0}.year-card{background:#fffaf0;border:1px solid #c9a66f;border-radius:.4rem;padding:1rem;text-align:center}.year-card strong{font-size:1.5rem;display:block}.year-card a{display:inline-block;margin-top:.6rem;text-decoration:none;background:#382718;color:#fff;padding:.55rem .85rem;border-radius:.3rem}.year-card a:hover{background:#604225}
.construction{text-align:center;padding:3rem 1rem;background:#fffaf0;border:1px solid #c9a66f;border-radius:.55rem}.construction .latin{font-size:clamp(2.3rem,7vw,4.6rem);letter-spacing:.08em;font-weight:700;margin:.5rem 0;color:#342415}.construction .portuguese{font-style:italic;color:#786146;font-size:1.1rem}
.contact-list{display:grid;gap:.8rem}.contact-item{border:1px solid #c9a66f;background:#fffaf0;border-radius:.4rem;padding:1rem}.contact-item a{text-decoration:none;font-weight:700}
.callout{background:#efe1c8;border:1px solid #c9a66f;border-radius:.45rem;padding:1rem;line-height:1.55}
/* Ano JST integrado */
.year-page{max-width:1180px}.year-head{background:#fff8ea;border:1px solid #c7a268;border-radius:.5rem;padding:1.3rem;margin-bottom:1rem}.year-head h1{margin:.1rem 0 .35rem;font-size:clamp(2rem,5vw,3.25rem)}.year-stats{display:flex;gap:.75rem;flex-wrap:wrap;margin-top:.9rem}.year-stats div{border:1px solid #ccb080;background:#f1e3c9;border-radius:.4rem;padding:.55rem .85rem;min-width:125px}.year-stats strong{font-size:1.25rem;display:block}.year-stats span{font-size:.8rem;color:#6f593d}.edition-grid-vox{display:grid;grid-template-columns:repeat(auto-fit,minmax(245px,1fr));gap:.8rem}.edition-card-vox{background:#fffaf0;border:1px solid #ccb07b;border-radius:.45rem;overflow:hidden;box-shadow:0 4px 12px #5c421b15}.edition-card-head{padding:1rem}.edition-card-head h2{font-size:1.28rem;margin:.4rem 0}.edition-card-head p{color:#765f42;margin:.25rem 0}.edition-badge{display:inline-block;background:#e6d2ad;color:#513b20;border-radius:99px;padding:.17rem .5rem;font-size:.76rem;font-weight:700}.edition-card-actions{display:flex;gap:.45rem;flex-wrap:wrap;padding:0 1rem 1rem}.action{padding:.58rem .8rem;font-size:.84rem}.action.alt{background:#745335}
.reader-dialog{width:min(96vw,1050px);height:90vh;border:0;border-radius:.5rem;padding:0;background:#fff}.reader-dialog::backdrop{background:#000c}.reader-head{height:55px;display:flex;align-items:center;justify-content:space-between;background:#261b12;color:#fff;padding:0 .8rem}.reader-head button{background:#eee2cc;border:0;border-radius:.3rem;padding:.5rem .7rem;cursor:pointer}.reader-tabs{height:52px;display:flex;align-items:center;gap:.5rem;padding:.5rem .75rem;background:#efe3ce;border-bottom:1px solid #ccb386}.reader-tab,.reader-copy{border:1px solid #af8950;background:#fff8ec;color:#3b2b1a;border-radius:.3rem;padding:.5rem .75rem;font-weight:700;cursor:pointer}.reader-tab.active{background:#3c2b1b;color:#fff}.reader-copy{margin-left:auto}.reader-pane{height:calc(100% - 107px);overflow:auto;background:#1e1e1e}.reader-pane iframe{width:100%;height:100%;border:0}.ocr-text{background:#f9f3e7;min-height:100%;padding:1rem}.ocr-page{max-width:850px;margin:0 auto .8rem;background:#fff;border:1px solid #d7c19e;border-radius:.4rem;padding:1rem}.ocr-page h3{margin:.1rem 0 .7rem;color:#4e351e}.ocr-page div{white-space:pre-wrap;font:16px/1.6 Georgia,serif}
@media(max-width:900px){.newspaper-grid{grid-template-columns:repeat(2,1fr)}.year-grid{grid-template-columns:repeat(3,1fr)}.footer-grid{grid-template-columns:1fr}.footer-logo{border:0;border-top:1px solid #d0b785;border-bottom:1px solid #d0b785;padding:1rem}.collection-hero{grid-template-columns:1fr}.nav-inner{justify-content:flex-start;overflow-x:auto}.topnav a{white-space:nowrap;padding:0 1rem}}
@media(max-width:600px){main{padding:1.2rem .75rem 3rem}.search-row{display:grid}.search-row input{border-right:1px solid #b68e55}.search-row button{padding:.85rem}.search-filters{grid-template-columns:1fr}.newspaper-grid{grid-template-columns:1fr}.year-grid{grid-template-columns:repeat(2,1fr)}.section-title{gap:.4rem}.section-title::before,.section-title::after{width:30px}.footer{padding-left:.75rem;padding-right:.75rem}.reader-dialog{width:100vw;height:100vh;max-height:none;border-radius:0}.reader-copy{font-size:.76rem;padding:.45rem}.collection-hero{padding:.8rem}}
