/* Self-contained Archives layout. Artwork is stationary; only the paper scrolls. */
*{box-sizing:border-box}html,body.archives-page{margin:0;height:100%;background:#110906}body.archives-page{overflow:hidden!important;color:#392311}.archives-page .ministry-shell{position:relative!important;width:100%!important;max-width:none!important;height:100dvh!important;min-height:0!important;padding:0!important;overflow:hidden!important;display:flex;justify-content:center}.archives-scene{position:relative;width:min(100vw,56.28dvh);height:100dvh;flex:none;background:#1a0b07 url('../assets/archives-background.webp') center center/100% 100% no-repeat;filter:drop-shadow(0 0 22px #0008)}.archives-page .archives-brand{position:absolute!important;left:13%!important;top:1.5%!important;width:30%!important;height:12%!important;z-index:5!important;transform:none!important;background:none!important;border:0!important;box-shadow:none!important}.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}.archives-page .archives-menu{position:absolute!important;top:2.7%!important;right:5.4%!important;left:auto!important;transform:none!important;z-index:9!important;width:8%!important;aspect-ratio:1!important;height:auto!important;min-width:34px!important;min-height:34px!important;display:flex!important;align-items:center;justify-content:center;border:2px solid #dfae4e!important;border-radius:6px!important;background:#160c08!important;color:#eebf68!important;padding:4px!important;cursor:pointer}.archives-menu svg{width:72%;height:72%}.archives-paper{position:absolute;left:10.2%;top:38.7%;width:79.6%;height:52.5%;overflow-y:auto;overflow-x:hidden;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;scrollbar-width:thin;scrollbar-color:#ad7a38 transparent;background:radial-gradient(ellipse at 40% 10%,#fbe6b9 0%,#f2d49c 60%,#e8bd7c 100%);border:1px solid #a6773c;box-shadow:inset 0 0 26px #a16a3140;outline:none}.archives-paper:focus-visible{outline:2px solid #f4c66c}.citizen-registry{width:100%;padding:16px 5% 24px;text-align:center;font-family:Georgia,'Times New Roman',serif;color:#412b1b}.citizen-registry [hidden]{display:none!important}.registry-kicker{font:700 clamp(9px,1.3dvh,13px) Cinzel,Georgia,serif;letter-spacing:.13em;color:#815b32}.citizen-registry h1,.citizen-registry h2,.citizen-registry h3{font-family:Cinzel,Georgia,serif;color:#392514;line-height:1.2}.citizen-registry h1{font-size:clamp(22px,3.2dvh,40px);margin:6px 0}.citizen-registry h2{font-size:clamp(16px,2.2dvh,24px);margin:15px 0 9px}.citizen-registry h3{font-size:clamp(17px,2.3dvh,27px);margin:8px 0}.citizen-registry p{font-size:clamp(12px,1.7dvh,17px);line-height:1.43;margin:9px 0}.citizen-registry .registry-small{font-size:clamp(10px,1.3dvh,13px);color:#76512b}.registry-subtitle{font-weight:700;letter-spacing:.04em}.registry-rule{height:1px;width:90%;margin:15px auto;background:linear-gradient(90deg,transparent,#b68a50 20%,#7e5226 50%,#b68a50 80%,transparent)}.registry-benefits{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;margin:14px 0}.registry-benefits>div{padding:9px 5px;border:1px solid #bd935c;box-shadow:inset 0 0 0 1px #ffe7b480;background:#f8e0ae4d}.benefit-symbol{display:block;color:#926632;font-size:20px;margin-bottom:3px}.registry-benefits strong{display:block;font:700 clamp(9px,1.25dvh,13px) Cinzel,Georgia,serif}.registry-benefits small{display:block;font-size:clamp(10px,1.2dvh,12px);margin-top:4px}.citizen-registry button{max-width:100%;cursor:pointer;border:3px double #d9a955;outline:1px solid #5c3418;outline-offset:-6px;background:linear-gradient(#7a1512,#400906);color:#ffdfa1;font:700 clamp(11px,1.65dvh,16px) Cinzel,Georgia,serif;letter-spacing:.05em;padding:12px 16px;box-shadow:0 4px 8px #43220a55}.citizen-registry button:hover{background:linear-gradient(#9c2c21,#510c08)}.citizen-registry button.secondary{background:#ead0a0;color:#4b2c19}.citizen-registry button:disabled{opacity:.6;cursor:wait}.registry-privacy{line-height:1.5}.citizen-wallet-selector{margin:12px auto;padding:10px;border:1px solid #a77941;background:#fbe6bf;text-align:center}.citizen-wallet-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin:10px 0}.citizen-wallet-options .citizen-wallet-choice{padding:9px 5px;min-height:42px;font-size:11px}.citizen-wallet-options .citizen-wallet-choice:disabled{opacity:.5;cursor:not-allowed}.registry-number{font:700 clamp(28px,4dvh,52px) Cinzel,Georgia,serif;letter-spacing:.1em}.dossier-details{overflow-wrap:anywhere}#citizen-status{min-height:1em;overflow-wrap:anywhere;color:#75381f}.hierarchy-heading h2{margin-bottom:7px}.ministry-ranks{list-style:none;margin:12px 0;padding:0;display:grid;gap:7px;text-align:left}.ministry-ranks li{display:flex;align-items:center;gap:10px;padding:10px 9px;border:1px solid #b58a50;background:#fff0c34d;box-shadow:inset 0 0 0 1px #fff3cf}.rank-num{flex:0 0 24px;font:700 16px Cinzel,Georgia,serif;color:#946126;text-align:center}.ministry-ranks li>div{flex:1;min-width:0}.ministry-ranks strong{display:block;font:700 clamp(10px,1.45dvh,15px) Cinzel,Georgia,serif}.ministry-ranks small{display:block;font-size:clamp(10px,1.3dvh,13px);line-height:1.35;margin-top:4px;color:#725032}.rank-seal{font-size:21px;color:#92612a}.promotion-note{border-top:1px solid #bd955f;padding-top:11px}.archives-home{display:inline-block;margin:8px 0 0;color:#6d3c20;text-decoration:none;font:700 11px Cinzel,Georgia,serif;letter-spacing:.07em}.archives-home:hover{text-decoration:underline}@media(max-width:480px){.archives-paper{top:38.7%;height:52.5%}.citizen-registry{padding:10px 4% 18px}.registry-benefits small{display:none}.registry-benefits>div{padding:7px 4px}.citizen-registry p{font-size:clamp(11px,1.65dvh,14px)}.ministry-ranks li{padding:8px 5px;gap:6px}.rank-seal{font-size:16px}}@media(max-height:650px){.registry-benefits small{display:none}.citizen-registry{padding-top:7px}.citizen-registry h1{margin:3px 0}.registry-rule{margin:9px auto}}


/* The artwork itself supplies the parchment. Never paint a second paper panel. */
.archives-paper{left:9.1%!important;top:37.5%!important;width:81.8%!important;height:51.3%!important;overflow-y:auto!important;overflow-x:hidden!important;background:transparent!important;border:0!important;box-shadow:none!important;padding:0 2.2%!important;scrollbar-gutter:stable;scrollbar-width:thin;scrollbar-color:#a77436 transparent;}
.citizen-registry{padding:8px 2% 36px!important;}
.archives-paper,.archives-paper *{max-width:100%;}
/* The image already includes the logo and menu artwork; HTML provides hit targets. */
.archives-page .archives-brand{left:13%!important;top:1%!important;width:28%!important;height:12%!important;}
.archives-page .archives-menu{top:1.5%!important;right:4.1%!important;width:10%!important;min-width:36px!important;min-height:36px!important;background:transparent!important;border:0!important;box-shadow:none!important;outline:none!important;}
.archives-menu svg{opacity:0;}
.archives-menu:focus-visible{outline:2px solid #f6d28a!important;}
@media(max-width:480px){.archives-paper{left:9.1%!important;top:37.5%!important;width:81.8%!important;height:51.3%!important;padding:0 1%!important}.citizen-registry{padding:6px 1% 32px!important}.registry-benefits small{display:none}}

/* Inline scroll invitation: in the parchment flow, never overlaying the wallet button. */
.archives-scene .archives-scroll-cue {
  display:block;position:static!important;width:max-content;max-width:94%;
  margin:10px auto 16px;padding:5px 8px!important;
  border:0!important;outline:0!important;box-shadow:none!important;
  background:transparent!important;color:#79502a!important;
  font:700 clamp(10px,1.25dvh,13px) Cinzel,Georgia,serif!important;
  letter-spacing:.075em;line-height:1.5;text-align:center;
  text-decoration:none;cursor:pointer;
}
.archives-scene .archives-scroll-cue[hidden]{display:none!important}
.archives-scene .archives-scroll-cue:hover{text-decoration:underline;color:#512c13!important}
.archives-scene .archives-scroll-cue:focus-visible{outline:2px solid #94632e!important;outline-offset:2px!important}
.archives-cue-arrows{display:inline-block;margin-left:5px;font:700 20px Georgia,serif;vertical-align:-2px;animation:archives-nudge 1.8s ease-in-out infinite}
@keyframes archives-nudge{0%,100%{transform:translateY(-2px)}55%{transform:translateY(3px)}}
@media(prefers-reduced-motion:reduce){.archives-cue-arrows{animation:none}}

/* Fixed edge indicator: sibling of the scroll viewport, NOT inside its content.
   It is transparent, narrow and aligned to the inner right-hand gold frame. */
.archives-scene .archives-edge-cue {
  position:absolute!important;left:85.5%!important;top:78.5%!important;
  width:3.4%!important;height:8.2%!important;min-width:18px;
  z-index:6;display:flex;flex-direction:column;align-items:center;
  justify-content:flex-end;gap:3px;padding:0!important;margin:0!important;
  background:none!important;border:0!important;outline:0!important;
  box-shadow:none!important;color:#81501f!important;cursor:pointer;
  -webkit-tap-highlight-color:transparent;
}
.archives-scene .archives-edge-cue[hidden]{display:none!important}
.archives-edge-track{display:block;position:relative;flex:1;width:2px;min-height:18px;
  border-radius:3px;background:#98652d55;overflow:hidden}
.archives-edge-progress{display:block;position:absolute;left:0;top:0;width:100%;
  height:var(--scroll-progress,0%);background:#8b511e;border-radius:3px}
.archives-edge-chevrons{display:flex;flex-direction:column;align-items:center;
  font:bold 25px/0.48 Georgia,serif;text-shadow:0 1px 0 #ffe6ac;
  animation:archives-edge-nudge 1.8s ease-in-out infinite}
.archives-edge-chevrons span{display:block}
.archives-scene .archives-edge-cue:focus-visible{outline:2px solid #81501f!important;outline-offset:3px!important}
@keyframes archives-edge-nudge{0%,100%{transform:translateY(-2px)}50%{transform:translateY(2px)}}
@media(prefers-reduced-motion:reduce){.archives-edge-chevrons{animation:none}}

/* Reputation system: printed directly on the illustrated parchment, never a floating panel. */
.reputation-system{margin:8px auto 6px;text-align:center;color:#402817}
.reputation-system h2{font-size:clamp(17px,2.25dvh,25px);margin:8px 0 5px;letter-spacing:.025em}
.reputation-motto{font:700 clamp(10px,1.3dvh,14px) Cinzel,Georgia,serif!important;letter-spacing:.055em;color:#70421e!important;line-height:1.45!important}
.reputation-system>p:not(.registry-small){max-width:40em;margin:10px auto}
.reputation-principles{display:grid;gap:7px;margin:14px auto;text-align:left}
.reputation-principles article{display:flex;align-items:flex-start;gap:10px;padding:10px 11px;border:1px solid #b88a4d;background:#fff0c31c;box-shadow:inset 0 0 0 1px #fff1cb55}
.reputation-principles article>span{flex:0 0 26px;text-align:center;color:#85551f;font-size:22px;line-height:1.1}
.reputation-principles article>div{flex:1;min-width:0}
.reputation-principles strong{display:block;font:700 clamp(10px,1.4dvh,14px) Cinzel,Georgia,serif;line-height:1.4}
.reputation-principles small{display:block;margin-top:3px;font-size:clamp(10px,1.25dvh,13px);line-height:1.4;color:#674526}
.reputation-system .reputation-decree{font:700 clamp(10px,1.2dvh,13px) Cinzel,Georgia,serif!important;color:#7c321c!important;border-top:1px solid #bd955f;border-bottom:1px solid #bd955f;padding:9px 2px;margin:13px 0!important}
.reputation-status{line-height:1.5!important}

/* Archive entry order: decree for visitors, citizen passport for signed-in citizens. */
.citizen-registry.has-citizen-passport > #citizen-profile { display:block !important; }
.citizen-registry:not(.has-citizen-passport) > #citizen-profile { display:none !important; }
.citizen-registry.has-citizen-passport > .reputation-system { margin-top:1.25rem; }
.citizen-registry > .reputation-system { margin-top:0; }
.citizen-registry.has-citizen-passport > .registry-kicker,
.citizen-registry.has-citizen-passport > #registry-heading,
.citizen-registry.has-citizen-passport > .registry-subtitle { display:none; }

/* Four departments: engraved navigation printed on the original artwork parchment. */
.archive-department-intro{text-align:center;margin:0 0 12px;color:#482c1a}
.archive-department-intro h1{font:700 clamp(18px,2.45dvh,29px) Cinzel,Georgia,serif;margin:5px 0}
.archive-departments{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;margin:10px 0 15px}
.archive-dept-tab{min-width:0;min-height:80px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;
 padding:8px 4px;border:1px solid #aa814e;border-radius:3px;
 background:linear-gradient(145deg,rgba(255,237,194,.35),rgba(171,119,59,.10));
 color:#603a1c;box-shadow:inset 0 0 0 1px rgba(255,246,217,.55);
 cursor:pointer;text-align:center;white-space:normal}
.archive-dept-tab.is-active{border-color:#783f25;background:linear-gradient(145deg,rgba(141,68,36,.20),rgba(255,237,194,.40));box-shadow:inset 0 0 0 1px #d2ac71,0 2px 5px #4c281324}
.archive-dept-tab strong{font:700 clamp(9px,1.2dvh,13px) Cinzel,Georgia,serif;letter-spacing:.035em;line-height:1.2}
.archive-dept-tab small{font:400 clamp(9px,1.15dvh,12px) Georgia,serif;color:#795637;line-height:1.2}
.archive-engraving{display:block;width:24px;height:24px;color:#8c5b28;filter:drop-shadow(0 1px 0 #f7dfad)}
.archive-dept-tab.is-active .archive-engraving{color:#72391e}
.archive-dept-panel[hidden]{display:none!important}
.archive-dept-panel{min-width:0;animation:archive-reveal .22s ease-out}
.archive-panel-heading{text-align:center;margin:5px 0 14px;color:#53331f}
.archive-panel-heading>.archive-engraving{width:34px;height:34px;margin:0 auto 8px}
.archive-panel-heading h2{font:700 clamp(17px,2.1dvh,25px) Cinzel,Georgia,serif;margin:7px 0}
.archive-panel-heading p{margin:6px auto;font-size:clamp(11px,1.4dvh,14px);line-height:1.5}
.archive-dept-panel #citizen-profile[hidden],.archive-dept-panel #citizen-guest[hidden]{display:none!important}
.archive-dept-panel #citizen-profile:not([hidden]){display:block!important}
.archive-dept-panel .reputation-system{margin:0}
.archive-dept-panel .reputation-system>.registry-rule:first-child{display:none}
.honour-notice{text-align:center;padding:18px 10px;border-top:1px solid #ad854c;border-bottom:1px solid #ad854c}
.honour-notice h3{font:700 clamp(13px,1.65dvh,19px) Cinzel,Georgia,serif;color:#633d21}
.honour-notice p{font-size:clamp(11px,1.4dvh,14px);line-height:1.55}
.honour-seal{display:grid;place-items:center;margin:0 auto 12px;width:46px;height:46px;border:2px double #8a512c;border-radius:50%;font:700 26px Georgia,serif;color:#8a512c}
@keyframes archive-reveal{from{opacity:.5;transform:translateY(3px)}to{opacity:1;transform:translateY(0)}}
@media(prefers-reduced-motion:reduce){.archive-dept-panel{animation:none}}

/* Anchored department panels: leave space for heading at the top of the parchment. */
.archive-dept-panel{scroll-margin-top:10px}
.archive-dept-tab:focus-visible{outline:2px solid #743c20;outline-offset:2px}

/* Fixed four-plaque navigation: mounted to the illustrated scene, outside scrolling parchment. */
.archive-visually-hidden{position:absolute!important;width:1px!important;height:1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;padding:0!important;margin:0!important;border:0!important}
.archives-scene>.archive-departments{position:absolute!important;z-index:8!important;left:7.5%!important;top:29.5%!important;width:85%!important;height:8.2%!important;display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:0!important;margin:0!important;padding:0!important;align-items:center!important;overflow:visible!important;pointer-events:none}
.archives-scene>.archive-departments>.archive-dept-tab{all:unset;box-sizing:border-box!important;position:relative!important;display:flex!important;align-items:center!important;justify-content:center!important;width:100%!important;height:100%!important;min-width:0!important;min-height:0!important;padding:0!important;margin:0!important;border:0!important;outline:0!important;background:none!important;box-shadow:none!important;cursor:pointer!important;pointer-events:auto!important;-webkit-tap-highlight-color:transparent}
.archives-scene>.archive-departments>.archive-dept-tab img{display:block!important;width:119%!important;max-width:none!important;height:auto!important;max-height:100%!important;object-fit:contain!important;filter:drop-shadow(0 2px 2px #26100680);transition:filter .16s ease,transform .16s ease;pointer-events:none}
/* The provided passport artwork is already lit; mute it when another plaque is selected. */
.archives-scene>.archive-departments>.archive-dept-tab[data-department="passport"]:not(.is-active) img{filter:brightness(.68) saturate(.55) drop-shadow(0 2px 2px #26100680)}
.archives-scene>.archive-departments>.archive-dept-tab.is-active img{filter:brightness(1.13) saturate(1.16) drop-shadow(0 0 5px #ffb22c) drop-shadow(0 0 3px #ffcd62);transform:translateY(-2px) scale(1.035)}
.archives-scene>.archive-departments>.archive-dept-tab:hover img{filter:brightness(1.14) drop-shadow(0 0 4px #f5ae44)}
.archives-scene>.archive-departments>.archive-dept-tab:focus-visible{outline:2px solid #f7cf80!important;outline-offset:1px!important;border-radius:5px}
/* Keep the original gold-frame artwork and internal parchment scrolling. */
.archives-paper{z-index:2!important}
@media(max-width:480px){.archives-scene>.archive-departments{left:7%!important;width:86%!important;top:29.7%!important;height:8%!important}}

/* ROUND MINISTRY SEALS — replace plaque visuals without modifying artwork. */
.archives-scene>.archive-departments{
 left:8%!important;width:84%!important;top:28.0%!important;height:11.5%!important;
 display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;
 gap:1%!important;align-items:start!important;
}
.archives-scene>.archive-departments>.archive-round-tab{
 height:100%!important;display:flex!important;flex-direction:column!important;
 align-items:center!important;justify-content:flex-start!important;
 gap:0!important;overflow:visible!important;
}
.archive-seal-medallion{
 box-sizing:border-box;position:relative;display:grid;place-items:center;
 width:min(100%,10.2dvh);aspect-ratio:1;border-radius:50%;
 background:radial-gradient(circle at 36% 26%,#e5b75f 0%,#9c6427 39%,#3d1c0b 75%,#d7a04c 89%,#583014 96%);
 border:2px solid #9a5b1d;
 box-shadow:0 0 0 1px #f3d18b,0 3px 5px #2c100ab3,inset 0 0 0 2px #f2c578;
 transition:transform .2s,filter .2s,box-shadow .2s;
}
.archive-seal-medallion:before{
 content:"";position:absolute;inset:6%;border-radius:50%;
 border:1px solid #f3c873;box-shadow:inset 0 0 0 2px #56220e;
 background:radial-gradient(circle at 35% 22%,#9a372a 0%,#650d0d 55%,#320609 100%);
}
.archive-seal-medallion:after{
 content:"❧";position:absolute;bottom:3%;left:0;width:100%;
 text-align:center;color:#c79849;font:700 clamp(8px,1.5dvh,13px) Georgia,serif;
}
.archive-seal-inner{position:relative;z-index:1;width:53%;color:#e9c06b;
 filter:drop-shadow(1px 2px 0 #2e1009)}
.archive-seal-inner svg{display:block;width:100%;height:auto}
.archive-seal-label{
 box-sizing:border-box;display:block;position:relative;z-index:1;
 margin-top:-3px;padding:4px 3px 5px;width:115%;max-width:115%;
 text-align:center;white-space:nowrap;
 font:700 clamp(8px,1.14dvh,13px)/1.1 Cinzel,Georgia,serif;
 letter-spacing:-.025em;color:#4c2c16;
 background:linear-gradient(#ffe8b9,#dbb57b);
 border:1px solid #a36d33;border-radius:2px 2px 7px 7px;
 box-shadow:0 2px 3px #2e160a66,inset 0 0 0 1px #ffe7bd;
}
.archives-scene>.archive-departments>.archive-round-tab.is-active .archive-seal-medallion{
 transform:translateY(-3px);
 box-shadow:0 0 0 1px #ffe0a0,0 0 11px 3px #ffad31,0 4px 6px #38120abb,inset 0 0 0 2px #ffe09b;
 filter:brightness(1.22) saturate(1.25);
}
.archives-scene>.archive-departments>.archive-round-tab.is-active .archive-seal-label{
 color:#fff0c8;background:linear-gradient(#9a2c20,#5e0c0a);
 border-color:#f5c371;text-shadow:0 1px 2px #2e0c08;
}
.archives-scene>.archive-departments>.archive-round-tab:hover .archive-seal-medallion{filter:brightness(1.22)}
.archives-scene>.archive-departments>.archive-round-tab:focus-visible{outline:2px solid #ffd88a!important;outline-offset:3px!important}
@media(max-width:480px){
 .archives-scene>.archive-departments{left:7%!important;width:86%!important;top:28.3%!important;height:11.3%!important}
 .archive-seal-medallion{width:min(100%,9.5dvh)}
 .archive-seal-label{font-size:clamp(7px,1.02dvh,10px);letter-spacing:-.045em}
}

/* Refinement: smaller seals, narrow labels, clear parchment heading. */
.archives-scene>.archive-departments{
 left:10%!important;width:80%!important;top:26.8%!important;height:9.25%!important;
 gap:2%!important;align-items:start!important;
}
.archives-scene>.archive-departments>.archive-round-tab{height:100%!important}
.archive-seal-medallion{width:min(100%,7.6dvh)!important;border-width:1.5px!important}
.archive-seal-medallion:after{font-size:9px!important;bottom:2%!important}
.archive-seal-label{
 width:100%!important;max-width:100%!important;min-width:0!important;
 margin-top:-2px!important;padding:3px 1px 4px!important;
 font-size:clamp(7px,1.02dvh,10px)!important;letter-spacing:-.035em!important;
}
.archives-paper{padding-top:12px!important}
.archive-dept-panel{scroll-margin-top:12px!important}
.archives-scene>.archive-departments>.archive-round-tab.is-active .archive-seal-medallion{
 box-shadow:0 0 0 1px #ffe0a0,0 0 6px 2px #ffad31,0 3px 5px #38120abb,inset 0 0 0 2px #ffe09b!important;
}
@media(max-width:480px){
 .archives-scene>.archive-departments{left:9.5%!important;width:81%!important;top:26.9%!important;height:9.2%!important;gap:1.5%!important}
 .archive-seal-medallion{width:min(100%,7.3dvh)!important}
 .archive-seal-label{font-size:clamp(7px,.98dvh,9px)!important}
 .archives-paper{padding-top:12px!important}
}

/* User-approved staggered seal placement and parchment viewport. */
.archives-scene>.archive-departments>.archive-round-tab:nth-child(1),
.archives-scene>.archive-departments>.archive-round-tab:nth-child(4){top:40%!important}
.archives-scene>.archive-departments>.archive-round-tab:nth-child(2),
.archives-scene>.archive-departments>.archive-round-tab:nth-child(3){top:20%!important}
.archives-paper{top:43.5%!important;height:45.3%!important}

/* User-approved viewport: preserve staggered seals and framed paper. */
.archives-paper{top:41.5%!important;height:45.3%!important}
/* Connected Citizen Passport */
#citizen-profile{color:#4c2c19}
.passport-guest-heading:has(+ #citizen-guest[hidden]){display:none!important}
.passport-official-stamp{text-align:center;margin:10px 0;padding:8px 4px;border-top:1px solid #ad844e;border-bottom:1px solid #ad844e;color:#713b22;font:700 clamp(10px,1.4dvh,14px) Cinzel,Georgia,serif;letter-spacing:.07em}
.passport-official-stamp span{color:#9e682c}
.passport-actions{display:flex;flex-wrap:wrap;gap:7px;justify-content:center;margin:12px 0}
.passport-small-button,.passport-treasury-button{font:700 10px Cinzel,Georgia,serif!important;letter-spacing:.03em;border:1px solid #8d592d!important;border-radius:3px!important;padding:9px 8px!important;background:linear-gradient(#f7e2b5,#d7b780)!important;color:#55321b!important;cursor:pointer}
.passport-small-button{flex:1 1 120px}
.passport-treasury-button{display:block;width:100%;background:linear-gradient(#81321f,#4c160f)!important;color:#f8e1b7!important}
.passport-treasury-button:disabled{opacity:.65;cursor:wait}
.passport-divider{margin:18px 0 10px;text-align:center;border-bottom:1px solid #aa8252;padding-bottom:8px;font:700 clamp(10px,1.3dvh,13px) Cinzel,Georgia,serif;color:#734422;letter-spacing:.04em}
.passport-treasury{padding:0 4px}
.passport-balance-row{display:flex;gap:8px;justify-content:space-between;align-items:center;padding:10px 0;border-bottom:1px dotted #b88c58;font:11px Cinzel,Georgia,serif;color:#694322}
.passport-balance-row strong{font-size:12px;color:#4b2918;text-align:right;overflow-wrap:anywhere}
.passport-service{display:flex;align-items:center;gap:10px;margin:10px 0}
.passport-service strong{font:700 12px Cinzel,Georgia,serif;color:#63381d}
.passport-rank{display:grid;place-items:center;flex:0 0 46px;height:46px;border-radius:50%;border:3px double #b78a43;background:#651a16;color:#e5bc72;font:700 22px Georgia,serif}
.passport-footnote{text-align:center;font-style:italic;margin-top:16px}
