/* notice_view.php: one notice, laid out like the madrasa's own letter. Shared look: Styles/site.css */

.nv { max-width: 820px; margin: 0 auto; padding: 28px 16px 72px; }

/* where you are */
.nv-crumb ol { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; padding: 0; margin: 0 0 18px; font-size: 14px; color: var(--text-light); }
.nv-crumb li + li::before { content: '›'; margin-inline-end: 6px; color: var(--text-light); }
.nv-crumb a { color: var(--text-mid); text-decoration: none; }
.nv-crumb a:hover { color: var(--primary); text-decoration: underline; }

/* the letter: one gold rule across the top is the only ornament */
.nv-paper {
    background: var(--white);
    border: 1px solid rgba(0, 14, 44, .08);
    border-top: 3px solid var(--gold);
    border-radius: 12px;
    box-shadow: 0 1px 2px rgba(0, 14, 44, .04), 0 14px 36px rgba(0, 14, 44, .06);
    padding: clamp(22px, 5vw, 56px);
}

.nv-letterhead { display: none; } /* printed only: the paper says who issued it */
.nv-kicker { display: flex; align-items: center; gap: 10px; margin: 0 0 10px; font-size: 14px; font-weight: 600; color: var(--gold-ink); }
.nv-pill { font-size: 13px; font-weight: 600; color: var(--error); background: #f6eded; border-radius: 999px; padding: 2px 10px; }
.nv-title { font-size: clamp(24px, 4vw, 34px); line-height: 1.45; font-weight: 700; color: var(--primary); margin: 0 0 18px; }

/* reference, date, validity: one group, read at a glance */
.nv-meta { display: flex; flex-wrap: wrap; gap: 10px 32px; margin: 0; padding: 14px 0; border-block: 1px solid var(--line); }
.nv-meta div { display: flex; flex-direction: column; gap: 2px; }
.nv-meta dt { font-size: 13px; color: var(--text-light); }
.nv-meta dd { margin: 0; font-size: 16px; color: var(--text-dark); font-variant-numeric: tabular-nums; }

.nv-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.nv-btn {
    display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 18px;
    border: 1.5px solid rgba(0, 14, 44, .22); border-radius: 999px; background: var(--white);
    color: var(--primary); font: 600 15px var(--font-bn); text-decoration: none; cursor: pointer;
}
.nv-btn:hover { border-color: var(--primary); background: var(--cream); }
.nv-btn i { font-size: 16px; }

.nv-note { margin: 24px 0 0; padding: 12px 16px; background: var(--cream); border-inline-start: 3px solid var(--gold); border-radius: 4px; font-size: 15px; color: var(--text-mid); }
.nv-note a { color: var(--primary); font-weight: 600; }

/* the text itself: long Bengali lines need room between them */
.nv-body { margin-top: 28px; font-size: 18px; line-height: 1.95; color: var(--text-dark); overflow-wrap: anywhere; }
.nv-body > * { margin: 0 0 .9em; }
.nv-body > :last-child { margin-bottom: 0; }
.nv-body .c { text-align: center; }
.nv-body strong, .nv-body b { font-weight: 700; color: var(--primary); }
.nv-body :is(em, i):lang(bn) { font-style: normal; } /* Bengali has no italic; the browser would only slant it */
.nv-body ul, .nv-body ol { padding-inline-start: 1.4em; }
.nv-body li { margin-bottom: .35em; }
.nv-body h3, .nv-body h4 { font-size: 1.1em; color: var(--primary); margin-top: 1.2em; }
.nv-body a { color: var(--primary); text-decoration: underline; text-underline-offset: 3px; }
.nv-body img { max-width: 100%; height: auto; border-radius: 8px; }
.nv-body table { display: block; max-width: 100%; overflow-x: auto; border-collapse: collapse; font-size: 16px; }
.nv-body td, .nv-body th { border: 1px solid var(--line); padding: 8px 12px; vertical-align: top; }
.nv-body blockquote { border-inline-start: 3px solid var(--line); padding-inline-start: 16px; color: var(--text-mid); }

/* who issued it, where a signature would be */
.nv-sign { margin-top: 44px; text-align: end; }
.nv-sign p { margin: 0; }
.nv-sign-name { font-size: 17px; font-weight: 700; color: var(--primary); }
.nv-sign-role { font-size: 15px; color: var(--text-mid); }

/* the office's English version, when there is one */
.nv-en { margin-top: 44px; padding-top: 28px; border-top: 1px solid var(--line); }
.nv-en h2 { font-family: Georgia, 'Times New Roman', serif; font-size: 24px; line-height: 1.35; color: var(--primary); margin: 0; }
.nv-en .nv-body { font-family: Georgia, 'Times New Roman', serif; font-size: 17px; line-height: 1.7; margin-top: 16px; }

/* more notices */
.nv-more { margin-top: 40px; }
.nv-more h2 { font-size: 20px; color: var(--primary); margin: 0 0 8px; }
.nv-more ul { list-style: none; margin: 0; padding: 0; }
.nv-more li a { display: flex; flex-direction: column; gap: 2px; padding: 14px 4px; border-bottom: 1px solid var(--line); text-decoration: none; }
.nv-more li a time { font-size: 13px; color: var(--text-light); }
.nv-more li a span { font-size: 16px; line-height: 1.6; color: var(--primary); }
.nv-more li a:hover span { color: var(--gold-ink); text-decoration: underline; }
.nv-all { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; margin-top: 8px; color: var(--primary); font-weight: 600; text-decoration: none; }
.nv-all:hover { color: var(--gold-ink); }

.nv-missing p { font-size: 17px; line-height: 1.8; color: var(--text-mid); margin: 0 0 16px; }

.nv a:focus-visible, .nv button:focus-visible { outline: 2px solid var(--gold-ink); outline-offset: 2px; }

@media (max-width: 600px) {
    .nv { padding-top: 16px; }
    .nv-body { font-size: 17px; line-height: 1.9; }
    .nv-meta { gap: 10px 22px; }
}

/* printed: only the notice, on plain paper */
@media print {
    .skip-link, .sh-top, .sh, .sh-drawer, .sh-dock, .sf, .nv-crumb, .nv-actions, .nv-more { display: none !important; }
    body { background: #fff; }
    .nv { max-width: none; padding: 0; }
    .nv-paper { border: 0; box-shadow: none; padding: 0; }
    .nv-body, .nv-body strong, .nv-title, .nv-sign-name { color: #000; }
    .nv-note { border: 1px solid #999; background: none; }
    .nv-letterhead { display: block; margin: 0 0 18px; padding-bottom: 10px; border-bottom: 2px solid #000; font-size: 13px; font-weight: 700; color: #000; text-align: center; }
}
