/* Notice page (/notices/<id>) and its PDF viewer. Loaded only on that page. */
.notice-page{padding:32px 0 64px}
.notice-page>.wrap{display:flex;flex-direction:column;gap:20px}
.notice-summary{max-width:760px;font-size:16px;line-height:1.65;color:var(--ink-2)}
.notice-back{align-self:flex-start}

.pdfv{border:1px solid var(--line);border-radius:12px;background:#E9E6DD}
.pdfv-bar{position:sticky;top:0;z-index:5;display:flex;align-items:center;justify-content:space-between;gap:8px;flex-wrap:wrap;padding:8px 10px;background:var(--white);border-bottom:1px solid var(--line);border-radius:12px 12px 0 0;box-shadow:0 6px 16px -12px rgba(12,51,37,.35)}
.pdfv-group{display:flex;align-items:center;gap:4px}
.pdfv-group[hidden]{display:none}
.pdfv-btn{min-width:44px;height:44px;padding:0 10px;border-radius:8px;display:inline-flex;align-items:center;justify-content:center;gap:8px;background:var(--sand);color:var(--green-800);border:1px solid var(--line);text-decoration:none;font:600 14px var(--sans);cursor:pointer;white-space:nowrap}
.pdfv-btn:hover:not(:disabled){background:var(--green-800);color:var(--white);border-color:var(--green-800)}
.pdfv-btn:disabled{opacity:.4;cursor:default}
.pdfv-pct{min-width:64px;font-variant-numeric:tabular-nums}
.pdfv-dl{background:var(--green-800);color:var(--white);border-color:var(--green-800)}
.pdfv-dl:hover{background:var(--green-900)!important}
.pdfv-pageno{display:inline-flex;align-items:center;gap:6px;font-size:14px;color:var(--muted);padding:0 4px}
.pdfv-pageno input{width:52px;height:40px;border:1px solid #D5D0C3;border-radius:8px;text-align:center;font:600 15px var(--sans);color:var(--ink);background:var(--white);-moz-appearance:textfield}
.pdfv-pageno input::-webkit-inner-spin-button,.pdfv-pageno input::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}
.pdfv-pageno b{color:var(--ink);font-weight:600}
.pdfv-pageno span{white-space:nowrap}

.pdfv-stage{overflow-x:auto;overflow-y:hidden;padding:24px;min-height:60vh;border-radius:0 0 12px 12px;-webkit-overflow-scrolling:touch}
.pdfv-stage:focus{outline:none}
.pdfv-stage:focus-visible{outline:3px solid var(--amber);outline-offset:-3px}
.pdfv-sheets{width:max-content;min-width:100%;display:flex;flex-direction:column;gap:20px}
.pdfv-sheet{position:relative;margin-inline:auto;background:var(--white);box-shadow:0 1px 3px rgba(0,0,0,.12),0 8px 24px -8px rgba(12,51,37,.25)}
.pdfv-sheet canvas{position:absolute;inset:0;width:100%;height:100%;display:block}

.pdfv-status{min-height:50vh;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:16px;text-align:center;color:var(--muted);font-size:15px}
.pdfv-status[hidden]{display:none}
.pdfv-spin{width:32px;height:32px;border-radius:50%;border:3px solid var(--line);border-top-color:var(--green-800);animation:pdfv-spin .8s linear infinite}
@keyframes pdfv-spin{to{transform:rotate(360deg)}}
@media (prefers-reduced-motion:reduce){.pdfv-spin{animation-duration:2.4s}}

@media (max-width:760px){
  .notice-page{padding:16px 0 40px}
  .notice-page>.wrap{gap:16px}
  .pdfv{margin-inline:calc(-1 * var(--gutter));border-radius:0;border-inline:0}
  .pdfv-bar{border-radius:0;padding:6px 8px;gap:4px;flex-wrap:nowrap}
  .pdfv-btn{min-width:40px;height:40px;padding:0 8px}
  .pdfv-pct{min-width:54px;font-size:13px}
  .pdfv-pageno{padding:0 2px;gap:4px;font-size:13px}
  .pdfv-pageno input{width:40px;height:36px;font-size:16px}
  .pdfv-stage{padding:8px;border-radius:0}
  .pdfv-sheets{gap:8px}
}
@media (max-width:440px){
  .pdfv-back{display:none}
  .pdfv-bar{gap:2px;padding:6px}
  .pdfv-group{gap:2px}
  .pdfv-btn{min-width:36px;padding:0 4px}
  .pdfv-pct{min-width:46px;font-size:12px}
  .pdfv-pageno input{width:34px}
}
