/* Document preview (document.php, inc/docview.php): sheets of paper on a grey desk, a bar with the original in view. */
.dv {
  --red: #a22631; --red-ink: #8c1f29; --ink: #1d1d1f; --muted: #6e6e73; --line: #d2d2d7; --desk: #e9eaee;
  --mark: #ffe58a; --mark-now: #ff9f1c; --sheet: 816px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Inter, Roboto, "Helvetica Neue", Arial, sans-serif;
  font-family: var(--font); color: var(--ink); font-size: 16px; line-height: 1.5; letter-spacing: -.005em;
  -webkit-font-smoothing: antialiased; background: var(--desk);
}
.dv *, .dv *::before, .dv *::after { box-sizing: border-box; }
:where(.dv) :where(h1, h2, h3, p, ul, ol) { margin: 0; padding: 0; font-family: inherit; color: inherit; text-transform: none; letter-spacing: inherit; }
:where(.dv) ul { list-style: none; }
:where(.dv) a { color: var(--red); text-decoration: none; }
:where(.dv) a:hover { text-decoration: underline; }
.dv svg { width: 18px; height: 18px; flex: none; }
.dv mark { background: var(--mark); color: inherit; padding: 0 .06em; border-radius: 2px; }
.dv mark.dv-now { background: var(--mark-now); box-shadow: 0 0 0 2px var(--mark-now); }
.dv-sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---- the bar --------------------------------------------------------------------------------------------------- */
/* a floating glass pill under the main menu's pill, the same width (--nmm-pill, mainmenu.js) and shape, in light glass;
   the strip around it is see-through */
.dv-bar { position: sticky; top: 0; z-index: 50; padding: 10px 0 0; pointer-events: none; transition: top .15s; }
.dv-bar-in {
  display: flex; align-items: center; gap: 12px; width: calc(100% - 32px); height: 58px; margin: 0 auto; padding: 0 10px 0 18px;
  border-radius: 22px; pointer-events: auto; background: rgba(255, 255, 255, .72);
  -webkit-backdrop-filter: blur(14px) saturate(180%); backdrop-filter: blur(14px) saturate(180%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .7), inset 1.8px 3px 0 -2px rgba(255, 255, 255, .95), inset -2px -2px 0 -2px rgba(255, 255, 255, .8),
    inset 0 -1px 3px 0 rgba(0, 0, 0, .06), 0 0 0 1px rgba(0, 0, 0, .05), 0 1px 5px 0 rgba(0, 0, 0, .08), 0 10px 28px -6px rgba(0, 0, 0, .2);
}
@media (min-width: 1100px) {
  .dv-bar-in { width: var(--nmm-pill, 1040px); max-width: calc(100vw - 32px); }
}
.dv .dv-back { display: inline-flex; align-items: center; gap: 2px; flex: none; max-width: 200px; font-size: 15px; font-weight: 500; }
.dv-back span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dv .dv-bar-title { margin: 0 !important; display: flex; align-items: center; gap: 8px; flex: 1 1 auto; min-width: 0; font-size: 15px; font-weight: 600; opacity: 0; transition: opacity .2s; }
.dv-bar-title > span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dv.is-scrolled .dv-bar-title { opacity: 1; }
.dv-bar-ico { color: var(--red); display: inline-flex; }
.dv-find { position: relative; display: flex; align-items: center; gap: 2px; flex: none; margin: 0; }
.dv-find > svg { position: absolute; left: 11px; width: 16px; height: 16px; color: var(--muted); pointer-events: none; }
.dv-find input {
  width: 220px; height: 38px; margin: 0; padding: 0 62px 0 34px; border: 1px solid transparent; border-radius: 12px; background: rgba(0, 0, 0, .06);
  font: inherit; font-size: 15px; color: var(--ink); -webkit-appearance: none; appearance: none;
}
.dv-find input:focus { outline: none; background: #fff; border-color: var(--line); box-shadow: 0 0 0 3px rgba(162, 38, 49, .14); }
.dv-find-n { position: absolute; right: 78px; font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; pointer-events: none; }
.dv-ib { display: grid; place-items: center; width: 34px; height: 34px; margin: 0; padding: 0; border: 0; border-radius: 8px; background: transparent; color: var(--ink); cursor: pointer; }
.dv-ib:hover { background: #ececf0; }
.dv-ib:disabled { opacity: .35; cursor: default; background: transparent; }
.dv .dv-open {
  display: inline-flex; align-items: center; gap: 7px; flex: none; height: 38px; padding: 0 16px; border-radius: 999px;
  background: var(--red); color: #fff; font-size: 15px; font-weight: 600; white-space: nowrap;
}
.dv .dv-open:hover { background: var(--red-ink); text-decoration: none; }
.dv-open svg { width: 16px; height: 16px; }

/* ---- the card above the sheets -------------------------------------------------------------------------------- */
.dv-desk { width: min(var(--sheet), calc(100% - 32px)); margin: 0 auto; padding: 36px 0 80px; }
.dv-card { margin-bottom: 28px; }
.dv-kind { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: var(--red); }
.dv-kind-ico { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--red); color: #fff; }
.dv-kind-ico svg { width: 16px; height: 16px; }
.dv-kind-sec { font-weight: 500; color: var(--muted); }
.dv-kind-sec::before { content: "·"; margin-right: 8px; }
.dv .dv-title { margin-top: 12px; font-size: clamp(28px, 4vw, 40px); line-height: 1.12; font-weight: 700; letter-spacing: -.025em; overflow-wrap: anywhere; }
.dv-meta { display: flex; flex-wrap: wrap; gap: 6px 22px; margin-top: 12px !important; font-size: 15px; }
.dv-meta span { color: var(--muted); }

.dv-notice { display: flex; gap: 14px; margin-top: 22px; padding: 18px 20px; border-radius: 16px; background: #fff; box-shadow: 0 1px 2px rgba(0, 0, 0, .05); font-size: 15px; color: #424245; }
.dv-notice strong { color: var(--ink); }
.dv-notice-ico { display: inline-flex; color: var(--red); padding-top: 2px; }
.dv-notice-acts { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px !important; }
.dv .dv-btn {
  display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 20px; border-radius: 999px; background: #f0f0f3;
  color: var(--ink); font-size: 16px; font-weight: 600; white-space: nowrap;
}
.dv .dv-btn:hover { background: #e6e6ea; text-decoration: none; }
.dv .dv-btn--red { background: var(--red); color: #fff; }
.dv .dv-btn--red:hover { background: var(--red-ink); }
.dv-btn-sub { font-weight: 500; opacity: .65; font-size: 14px; }
.dv-file { margin-top: 12px !important; font-size: 13px; color: var(--muted); overflow-wrap: anywhere; }

.dv-found { margin-top: 14px; padding: 14px 20px; border-radius: 16px; background: #fff8dc; font-size: 15px; }
.dv-found-pages { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px !important; }
.dv .dv-pgchip { display: grid; place-items: center; min-width: 36px; height: 30px; padding: 0 8px; border-radius: 8px; background: #fff; color: var(--ink); font-size: 14px; font-weight: 600; font-variant-numeric: tabular-nums; }
.dv .dv-pgchip:hover { background: var(--ink); color: #fff; text-decoration: none; }
.dv-found-more { align-self: center; font-size: 13px; color: var(--muted); }


/* ---- the sheets ---------------------------------------------------------------------------------------------- */
.dv-sheets { display: grid; grid-template-columns: minmax(0, 1fr); gap: 22px; }   /* a wide laid-out page scrolls inside its sheet, never widens it */
.dv-sheet {
  position: relative; min-height: 420px; padding: 64px 72px 28px; background: #fff; border-radius: 3px; scroll-margin-top: 200px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .06), 0 8px 28px rgba(0, 0, 0, .08); display: flex; flex-direction: column;
}
.dv-text { flex: 1 1 auto; font-family: var(--font); font-size: 16px; line-height: 1.6; color: #2b2b2e; overflow-wrap: anywhere; }
.dv-text p + p, .dv-text p + .dv-li, .dv-text .dv-li + p { margin-top: .85em; }
.dv-text .dv-li + .dv-li { margin-top: .45em; }
.dv-text .dv-h { font-family: var(--font); color: var(--ink); letter-spacing: -.01em; }
.dv-text h2.dv-h { margin: 1.3em 0 .55em; font-size: 24px; line-height: 1.22; font-weight: 700; }
.dv-text h3.dv-h { margin: 1.4em 0 .45em; font-size: 18px; line-height: 1.3; font-weight: 650; }
.dv-text > .dv-h:first-child { margin-top: 0; }
.dv-li { --lv: 0; padding-left: calc(1.9em + var(--lv) * 1.6em); text-indent: -1.9em; }
.dv-mk { display: inline-block; min-width: 1.9em; text-indent: 0; font-variant-numeric: tabular-nums; color: #555; }
.dv-noimg { font-family: var(--font); font-size: 15px; color: var(--muted); }
/* A page in columns or a table, kept as laid out in the PDF (tools/docindex/structure.py COLS): fixed width so every word stays in its line and column; it scrolls sideways inside the sheet when wider. */
.dv-laid-note { margin: 0 0 14px; padding: 10px 14px; border-radius: 12px; background: #f5f5f7; font-family: var(--font); font-size: 14px; line-height: 1.45; color: var(--muted); }
.dv-laid-note a { color: var(--red, #a22631); font-weight: 500; }
.dv-laid { margin: 0; overflow-x: auto; font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: 12px; line-height: 1.55; color: #2b2b2e; white-space: pre; tab-size: 8; overflow-wrap: normal; -webkit-text-size-adjust: none; }
.dv-sheet, .dv-text { min-width: 0; }
@media (min-width: 768px) { .dv-sheet:has(.dv-laid) { padding-left: 48px; padding-right: 48px; } }   /* room for the widest line */
.dv .dv-laid { max-width: 100%; padding: 0 0 6px; border: 0; border-radius: 0; background: none; }   /* not the theme's boxed <pre> */
.dv-laid:focus-visible { outline: 2px solid var(--red, #a22631); outline-offset: 4px; border-radius: 4px; }
@media (max-width: 600px) { .dv-laid { font-size: 10.5px; } }
.dv-sheet-foot {
  display: flex; justify-content: space-between; gap: 12px; margin-top: 36px; padding-top: 14px; border-top: 1px solid #efeff2;
  font-size: 13px; color: #86868b;
}
.dv-sheet-foot a { display: inline-flex; align-items: center; gap: 5px; color: #86868b; }
.dv-sheet-foot a:hover { color: var(--red); }
.dv-sheet-foot svg { width: 13px; height: 13px; }

/* letterhead on page 1 */
.dv-letterhead { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; margin-bottom: 34px; padding-bottom: 14px; border-bottom: 2px solid var(--red); }
.dv-lh-brand { display: flex; align-items: center; gap: 14px; min-width: 0; }
.dv-lh-seal { flex: none; width: 44px; height: auto; }   /* the college seal (img/nmc-seal.svg): the mark of an official document */
.dv-lh-org, .dv-lh-kind { display: flex; flex-direction: column; gap: 2px; }
.dv-lh-kind { align-items: flex-end; text-align: right; }
.dv-lh-name { font-size: 17px; font-weight: 700; color: var(--red); letter-spacing: -.01em; }
.dv-lh-sub, .dv-lh-val { font-size: 13px; color: var(--muted); }
.dv-lh-label { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink); }
.dv-lh-draft { margin-top: 4px; padding: 1px 8px; border: 1.5px solid var(--red); border-radius: 4px; color: var(--red); font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }

@media (max-width: 480px) { .dv-lh-seal { width: 36px; } .dv-lh-brand { gap: 10px; } }

/* kinds */
.dv--policy .dv-letterhead, .dv--solicitation .dv-letterhead { border-bottom-width: 3px; }
.dv--policy .dv-lh-val, .dv--solicitation .dv-lh-val { font-size: 15px; font-weight: 700; color: var(--ink); }
.dv--minutes .dv-text h3.dv-h, .dv--agenda .dv-text h3.dv-h { font-size: 15px; text-transform: uppercase; letter-spacing: .05em; color: var(--red); }
.dv--form .dv-notice { background: #fff3f3; box-shadow: inset 0 0 0 1.5px rgba(162, 38, 49, .35); }
.dv--bulletin .dv-letterhead { border-bottom-style: double; border-bottom-width: 4px; }

/* scanned */
.dv-sheet--empty { align-items: center; justify-content: center; gap: 10px; text-align: center; min-height: 520px; font-size: 16px; color: var(--muted); }
.dv-big-ico { display: grid; place-items: center; width: 72px; height: 72px; border-radius: 50%; background: #f0f0f3; color: var(--muted); }
.dv-big-ico svg { width: 34px; height: 34px; }
.dv-empty-h { font-size: 22px; font-weight: 700; color: var(--ink); }

.dv .dv-gap {
  display: flex; align-items: center; justify-content: center; gap: 6px; padding: 14px; border: 1.5px dashed #c7c7cc; border-radius: 12px;
  color: var(--muted); font-size: 14px; font-weight: 500;
}
.dv .dv-gap:hover { color: var(--red); border-color: var(--red); text-decoration: none; }
.dv-gap svg { width: 14px; height: 14px; }
.dv-end-h { font-size: 20px; font-weight: 700; color: var(--ink); }
.dv-end { margin-top: 22px; padding: 34px 20px; border-radius: 16px; background: #fff; text-align: center; font-size: 15px; color: var(--muted); }
.dv-end p + p { margin-top: 4px !important; }
.dv-end .dv-notice-acts { justify-content: center; }

@media (max-width: 900px) {
  .dv-find input { width: 160px; }
}
@media (max-width: 700px) {
  .dv-bar-in { gap: 8px; height: 54px; padding: 0 8px 0 10px; border-radius: 20px; }
  .dv .dv-bar-title { display: none; }
  .dv .dv-back { max-width: 40px; }
  .dv-back span { display: none; }
  .dv-find { flex: 1 1 auto; }
  .dv-find input { width: 100%; padding-right: 56px; }
  .dv-find-n { right: 74px; }
  .dv-ib { width: 30px; }
  .dv .dv-open { width: 38px; padding: 0; justify-content: center; }
  .dv-open span { display: none; }
  .dv-desk { width: calc(100% - 20px); padding-top: 24px; }
  .dv-card { padding: 0 6px; }
  .dv-sheet { padding: 30px 22px 18px; min-height: 0; }
  .dv-text { font-size: 15.5px; line-height: 1.58; }
  .dv-letterhead { flex-direction: column; align-items: flex-start; gap: 8px; margin-bottom: 24px; }
  .dv-lh-kind { align-items: flex-start; text-align: left; }
  .dv-sheet-foot { flex-direction: column; gap: 4px; }
  .dv-li { padding-left: calc(1.7em + var(--lv) * 1em); text-indent: -1.7em; }
  .dv-mk { min-width: 1.7em; }
  .dv .dv-btn { height: 42px; padding: 0 16px; font-size: 15px; }
}
@media print {
  .dv-bar, .dv-notice, .dv-found, .dv-gap, .dv-end, .dv-sheet-foot a { display: none !important; }
  .dv, .dv-desk { background: #fff; width: auto; padding: 0; }
  .dv-sheet { box-shadow: none; padding: 0; break-after: page; }
}
