:root{--green:#4e5633;--cream:#f7f4ea;--ink:#2f331f;--line:rgba(78,86,51,.2)}*{box-sizing:border-box}body{margin:0;background:var(--cream);color:var(--ink);font-family:Jost,Arial,sans-serif}main{width:min(1100px,calc(100% - 28px));margin:auto;padding:18px 0 34px}.utility{text-align:center;padding:8px 0 14px;font-size:12px;letter-spacing:.15em;color:var(--green)}.shell{overflow:hidden;background:#fffdf7;box-shadow:0 18px 48px #2f331f20}.hero{background:var(--green);color:var(--cream);padding:26px 30px;text-align:center}h1{margin:0;font:400 clamp(32px,5vw,48px)/1.1 'Bodoni Moda',Georgia,serif}.hero p{margin:12px auto 0;line-height:1.5}.toolbar{padding:14px 18px;background:#e4dbbc;text-align:center;border-bottom:1px solid var(--line)}.nav-label{font:24px 'Bodoni Moda',Georgia,serif;margin-bottom:12px}.nav-actions{display:flex;justify-content:center;gap:9px;flex-wrap:wrap}.button,button{display:inline-flex;justify-content:center;align-items:center;min-height:44px;padding:10px 18px;border:1px solid var(--line);background:#fffdf7;color:var(--green);font:600 12px Jost,Arial,sans-serif;letter-spacing:.08em;text-transform:uppercase;text-decoration:none;cursor:pointer}.button[aria-current],.button:hover,button:hover{background:var(--green);color:var(--cream)}:focus-visible{outline:3px solid #c1735f;outline-offset:3px}.pdf-frame{display:block;width:100%;height:78vh;min-height:560px;border:0;background:#eee}.fallback{text-align:center;padding:18px 22px;margin:0;font-size:14px;line-height:1.6}a{color:var(--green)}.admin-content{padding:24px}.resource-card{padding:24px 0;border-bottom:1px solid var(--line)}h2{font:400 30px 'Bodoni Moda',Georgia,serif;margin:0 0 12px}.resource-card form{display:flex;align-items:center;flex-wrap:wrap;gap:12px;margin-top:18px}input{max-width:100%;font:inherit}button:disabled{opacity:.5;cursor:wait}.status{min-height:1.5em;line-height:1.5}.admin-links{display:flex;gap:12px;justify-content:center;margin-top:20px}@media(max-width:620px){main{width:100%;padding-top:0}.nav-actions{display:grid;grid-template-columns:1fr;width:100%}.hero{padding:24px 18px}.pdf-frame{height:72vh;min-height:440px}.admin-content{padding:18px}}
/* Keep public PDF previews within the available screen height. */
body[data-resource] main{height:100vh;height:100dvh;display:flex;flex-direction:column;padding:8px 0 12px}
body[data-resource] .utility{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:4px 0 8px;font-size:11px;flex-shrink:0}
.back-link{letter-spacing:0;font-size:12px;text-underline-offset:3px}
body[data-resource] .shell{display:flex;flex-direction:column;flex:1;min-height:360px}
body[data-resource] .hero{padding:10px 20px;flex-shrink:0}
body[data-resource] h1{font-size:clamp(26px,3vw,34px)}
body[data-resource] .hero p{margin:4px auto 0;font-size:13px;line-height:1.35}
body[data-resource] .toolbar{display:flex;align-items:center;justify-content:center;gap:18px;padding:8px 14px;flex-shrink:0}
body[data-resource] .nav-label{font-size:18px;margin:0;white-space:nowrap}
body[data-resource] .nav-actions{display:flex;gap:6px;flex-wrap:wrap}
body[data-resource] .button{min-height:36px;padding:7px 12px;font-size:11px}
body[data-resource] .preview-area{flex:1;min-height:180px}
body[data-resource] .pdf-frame{height:100%;min-height:0}
body[data-resource] .pdf-frame[hidden]{display:none}
body[data-resource] .fallback{padding:8px 12px;font-size:12px;flex-shrink:0}
@media(max-width:620px){
 body[data-resource] main{padding:0 0 6px}
 body[data-resource] .utility{padding:6px 12px;font-size:10px;letter-spacing:.06em}
 body[data-resource] .hero{padding:8px 12px}
 body[data-resource] .toolbar{flex-direction:column;gap:5px;padding:6px 8px}
 body[data-resource] .nav-label{font-size:16px}
 body[data-resource] .nav-actions{width:100%;justify-content:center;gap:5px}
 body[data-resource] .button{padding:7px 8px;font-size:10px;letter-spacing:.02em}
 body[data-resource] .fallback{font-size:11px;padding:6px 10px}
}
