/* The Adam W. Moore Awards: registrar's honor roll stylesheet */
:root {
  --crimson: #8c1d18;
  --crimson-deep: #6a1511;
  --folio: #fbf7ef;
  --folio-white: #fffdf8;
  --folio-shade: #f3ecdc;
  --slate: #2d2a26;
  --slate-soft: #5a534a;
  --old-gold: #b58b2b;
  --gold-text: #7f5d12;
  --gilt-light: #e2c37a;
  --ledger-line: rgba(45, 42, 38, 0.2);
  --ledger-line-soft: rgba(45, 42, 38, 0.1);
  --face: "Crimson Pro", Georgia, serif;

  /* vocabulary shared with award posts and category pages */
  --gold: #7f5d12;
  --steel: #5a534a;
  --navy: #8c1d18;
  --violet: #6a1511;
  --line: rgba(45, 42, 38, 0.2);
  --panel: #fffdf8;
  --bg: #fbf7ef;
  --white: #ffffff;
  --white-soft: rgba(251, 247, 239, 0.88);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--face);
  font-size: 19px;
  line-height: 1.6;
  color: var(--slate);
  background: var(--folio);
  font-variant-numeric: lining-nums;
}
img, svg { max-width: 100%; }
h1, h2, h3, h4 { font-family: var(--face); line-height: 1.15; color: var(--slate); margin: 0 0 0.5em; font-weight: 600; }
h1 { font-size: clamp(2.3rem, 5.4vw, 3.6rem); font-weight: 700; letter-spacing: -0.005em; }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.3rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; }
a { color: var(--crimson); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--crimson-deep); text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--old-gold); outline-offset: 2px; }
strong { font-weight: 700; }

.skip-link { position: absolute; left: 12px; top: -60px; z-index: 500; background: var(--crimson); color: #fff; padding: 8px 14px; text-decoration: none; }
.skip-link:focus { top: 10px; color: #fff; }

.container { width: min(1080px, calc(100% - 48px)); margin: 0 auto; }

/* site header */
.office-head { background: var(--folio); border-bottom: 4px double var(--old-gold); position: relative; z-index: 200; }
.office-head-row {
  width: min(1080px, calc(100% - 48px)); margin: 0 auto; padding: 14px 0;
  display: flex; align-items: center; justify-content: space-between; gap: 10px 28px; flex-wrap: wrap;
}
.office-name {
  display: inline-flex; align-items: center; gap: 12px; text-decoration: none;
  color: var(--crimson); font-family: var(--face); font-weight: 700; font-size: 1.35rem; line-height: 1.1;
}
.office-name:hover { color: var(--crimson-deep); text-decoration: none; }
.office-name svg { width: 46px; height: 46px; flex: none; }
.office-name small { display: block; font-weight: 400; font-style: italic; font-size: 0.95rem; color: var(--slate-soft); }
.office-nav { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 22px; font-size: 1.05rem; }
.office-nav > a, .office-nav .nav-cats-toggle { color: var(--slate); text-decoration: none; padding: 4px 0; }
.office-nav > a:hover, .office-nav .nav-cats-toggle:hover { color: var(--crimson); text-decoration: underline; }
.office-nav .nav-cta {
  color: var(--folio); background: var(--crimson); padding: 7px 16px; border: 1px solid var(--crimson-deep);
  font-weight: 600; text-decoration: none;
}
.office-nav .nav-cta:hover { background: var(--crimson-deep); color: #fff; text-decoration: none; }

/* buttons */
.btn {
  display: inline-block; font-family: var(--face); font-size: 1.08rem; font-weight: 600; line-height: 1.2;
  background: var(--crimson); color: var(--folio); border: 1px solid var(--crimson-deep);
  padding: 12px 24px; text-decoration: none; cursor: pointer; border-radius: 0;
}
.btn:hover { background: var(--crimson-deep); color: #fff; text-decoration: none; }
.btn-plain { background: transparent; color: var(--crimson); border-color: var(--crimson); }
.btn-plain:hover { background: var(--folio-shade); color: var(--crimson-deep); }

/* homepage notice */
.notice { padding: 64px 0 56px; border-bottom: 1px solid var(--ledger-line); }
.notice-grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 48px; align-items: center; }
.notice h1 { color: var(--crimson); max-width: 14em; }
.notice .sub { font-size: 1.25rem; max-width: 34em; }
.notice-free { font-style: italic; color: var(--slate-soft); }
.notice-actions { display: flex; flex-wrap: wrap; gap: 12px 16px; margin-top: 26px; }
.notice-seal { justify-self: center; width: min(300px, 100%); }
.notice-seal svg { display: block; width: 100%; height: auto; }

/* page openings on inner pages */
.leaf-head { padding: 52px 0 40px; border-bottom: 1px solid var(--ledger-line); }
.leaf-head h1 { color: var(--crimson); margin-bottom: 0.3em; }
.leaf-head p { font-size: 1.2rem; max-width: 36em; color: var(--slate-soft); margin: 0; }
.leaf-head .leaf-mark { display: flex; align-items: center; gap: 18px; }
.leaf-head .leaf-mark svg { width: 64px; height: 64px; flex: none; }

/* page bodies */
.term { padding: 64px 0; }
.term + .term { border-top: 1px solid var(--ledger-line-soft); }
.term-shade { background: var(--folio-shade); }
.term-intro { max-width: 40em; margin-bottom: 30px; }
.term-intro p:last-child { margin-bottom: 0; }
.prose { max-width: 40em; }
.prose h2 { margin-top: 1.4em; }
.prose h2:first-child { margin-top: 0; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: 0.4em; }
.two-col { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 44px; align-items: start; }

/* transcript tables */
.transcript-wrap { overflow-x: auto; }
.transcript { width: 100%; border-collapse: collapse; background: var(--folio-white); border: 1px solid var(--ledger-line); border-top: 3px solid var(--crimson); font-variant-numeric: tabular-nums lining-nums; }
.transcript caption { caption-side: top; text-align: left; font-style: italic; color: var(--slate-soft); padding: 0 0 10px; font-size: 1rem; }
.transcript th, .transcript td { padding: 10px 14px; border-bottom: 1px solid var(--ledger-line-soft); text-align: left; vertical-align: top; }
.transcript thead th { font-size: 0.92rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--slate-soft); border-bottom: 1px solid var(--old-gold); }
.transcript tbody th { font-weight: 600; }
.transcript .fig { text-align: right; white-space: nowrap; }
.transcript .grade { font-weight: 700; color: var(--crimson); white-space: nowrap; width: 4.5em; }
.transcript tfoot th, .transcript tfoot td { border-bottom: 0; border-top: 1px solid var(--ledger-line); font-weight: 600; }
.transcript tfoot tr:first-child th, .transcript tfoot tr:first-child td { border-top: 3px double var(--old-gold); }
.transcript tfoot .gpa td, .transcript tfoot .gpa th { font-size: 1.2rem; color: var(--crimson); }
.transcript td p { margin: 0; }
.transcript-note { font-size: 1rem; color: var(--slate-soft); margin-top: 12px; }

.standing-list { list-style: none; margin: 0; padding: 0; border-top: 3px double var(--old-gold); }
.standing-list li { display: flex; justify-content: space-between; gap: 16px; padding: 12px 2px; border-bottom: 1px solid var(--ledger-line); font-variant-numeric: tabular-nums lining-nums; }
.standing-list b { color: var(--crimson); font-weight: 700; }
.standing-list span { color: var(--slate-soft); white-space: nowrap; }
.standing-list .standing-none b { color: var(--slate-soft); font-weight: 600; }

/* register of categories */
.registers { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--old-gold); }
.registers li { display: grid; grid-template-columns: minmax(0, 15em) minmax(0, 1fr); gap: 6px 32px; padding: 18px 0; border-bottom: 1px solid var(--ledger-line); }
.registers h3 { margin: 0; color: var(--crimson); font-size: 1.25rem; }
.registers p { margin: 0; }

/* sequence of a review */
.sequence { list-style: none; counter-reset: stage; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--old-gold); border-bottom: 1px solid var(--old-gold); }
.sequence li { counter-increment: stage; padding: 20px 20px 22px; border-left: 1px solid var(--ledger-line); }
.sequence li:first-child { border-left: 0; padding-left: 0; }
.sequence h3 { font-size: 1.2rem; margin-bottom: 6px; }
.sequence h3::before { content: "Stage " counter(stage, upper-roman) ". "; color: var(--gold-text); font-weight: 400; font-style: italic; }
.sequence p { margin: 0; font-size: 1.02rem; }

/* registrar's letter */
.letter { max-width: 40em; margin: 0 auto; background: var(--folio-white); border: 1px solid var(--ledger-line); padding: 40px 44px; }
.letter h2 { color: var(--crimson); }
.letter-sign { margin-top: 1.4em; font-style: italic; }
.letter-sign span { display: block; font-style: normal; color: var(--slate-soft); }

/* recommendation band */
.recommend-band { background: var(--crimson); color: var(--folio); padding: 60px 0; border-top: 4px double var(--old-gold); }
.recommend-band h2 { color: #fff; }
.recommend-band p { color: var(--white-soft); max-width: 36em; }
.recommend-band .btn { background: var(--folio); color: var(--crimson); border-color: var(--gilt-light); }
.recommend-band .btn:hover { background: #fff; color: var(--crimson-deep); }

/* letter of recommendation form */
.letter-form { display: grid; gap: 18px; }
.field label { display: block; font-weight: 600; margin-bottom: 4px; }
.field .hint { display: block; font-weight: 400; font-style: italic; color: var(--slate-soft); font-size: 0.95rem; }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 1.05rem; color: var(--slate); background: var(--folio-white);
  border: 1px solid var(--ledger-line); border-bottom: 2px solid var(--slate-soft); border-radius: 0; padding: 10px 12px;
}
.field textarea { min-height: 220px; resize: vertical; line-height: 1.5; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 3px solid var(--old-gold); outline-offset: 0; border-bottom-color: var(--crimson); }
.field-pair { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px; }
.form-close { font-size: 1rem; color: var(--slate-soft); }
.aside-rule { border-top: 3px double var(--old-gold); padding-top: 18px; }
.aside-rule h2 { font-size: 1.4rem; }
.aside-rule dl { margin: 0; }
.aside-rule dt { font-weight: 700; color: var(--crimson); margin-top: 12px; }
.aside-rule dd { margin: 2px 0 0; }

/* formula line */
.formula { font-size: 1.2rem; background: var(--folio-white); border: 1px solid var(--ledger-line); border-left: 0; border-right: 0; padding: 14px 0; text-align: center; }

/* legal pages */
.legal { max-width: 40em; }
.legal h2 { font-size: 1.35rem; margin-top: 1.6em; }
.legal h2:first-child { margin-top: 0; }

/* site footer */
.office-foot { background: var(--slate); color: var(--white-soft); border-top: 4px double var(--old-gold); font-family: var(--face); }
.office-foot-row { width: min(1080px, calc(100% - 48px)); margin: 0 auto; padding: 44px 0 28px; display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr); gap: 28px; }
.office-foot-seal { display: flex; gap: 16px; align-items: flex-start; }
.office-foot-seal svg { width: 56px; height: 56px; flex: none; }
.office-foot-seal p { margin: 0; color: var(--white-soft); font-size: 1.02rem; }
.office-foot-seal strong { color: #fff; font-size: 1.15rem; }
.office-foot h2 { font-size: 0.95rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--gilt-light); margin: 0 0 10px; font-weight: 600; }
.office-foot ul { list-style: none; margin: 0; padding: 0; }
.office-foot li { margin: 0 0 6px; }
.office-foot a { color: var(--folio); text-decoration: none; }
.office-foot a:hover { color: #fff; text-decoration: underline; }
.office-foot-base { width: min(1080px, calc(100% - 48px)); margin: 0 auto; padding: 16px 0 26px; border-top: 1px solid rgba(251, 247, 239, 0.2); font-size: 0.95rem; color: rgba(251, 247, 239, 0.78); }

/* Award posts and category pages load this file through the copied head links and use the rules below. */
.section { padding: 64px 0; }
.section > :not(.container) { width: min(1080px, calc(100% - 48px)); margin-left: auto; margin-right: auto; }
.section-light { background: var(--folio-white); border-top: 1px solid var(--ledger-line-soft); border-bottom: 1px solid var(--ledger-line-soft); }
.section-dark, .section-black, .hero, .hero-inner {
  --gold: #e2c37a; --steel: #e6dccb; --navy: #fbf7ef; --violet: #f1d9d7;
  --line: rgba(251, 247, 239, 0.28); --panel: rgba(255, 255, 255, 0.07); --bg: transparent;
}
.section-dark { background: var(--crimson); color: var(--white-soft); }
.section-black { background: var(--slate); color: var(--white-soft); }
.section-dark h1, .section-dark h2, .section-dark h3, .section-black h1, .section-black h2, .section-black h3 { color: #fff; }
.section-dark p, .section-black p, .section-dark li, .section-black li { color: var(--white-soft); }
.section-dark a:not(.btn), .section-black a:not(.btn) { color: var(--gilt-light); }
.section-dark .btn, .section-black .btn, .hero .btn, .hero-inner .btn { background: var(--folio); color: var(--crimson); border-color: var(--gilt-light); }
.section-dark .btn:hover, .section-black .btn:hover, .hero .btn:hover, .hero-inner .btn:hover { background: #fff; color: var(--crimson-deep); }
.section-intro { max-width: 760px; margin: 0 auto 28px; text-align: center; }
.section-intro h2 { margin-bottom: 12px; }
.kicker { display: block; font-style: italic; font-size: 1.05rem; color: var(--gold-text); margin: 0 0 10px; }
.section-dark .kicker, .section-black .kicker, .hero .kicker, .hero-inner .kicker { color: var(--gilt-light); }
.meta { font-size: 0.95rem; font-style: italic; color: var(--slate-soft); }
.section-dark .meta, .section-black .meta, .hero .meta, .hero-inner .meta { color: var(--white-soft); }
.sub { font-size: 1.2rem; }
.cta-band { text-align: center; }
.cta-band h2 { margin-bottom: 14px; }
.cta-band p { max-width: 36em; margin: 0 auto 24px; }
.hero, .hero-inner { background: var(--crimson); color: #fff; padding: 64px 0 56px; border-bottom: 4px double var(--old-gold); }
.hero-inner > :not(.container), .hero > :not(.container) { width: min(1080px, calc(100% - 48px)); margin-left: auto; margin-right: auto; }
.hero h1, .hero-inner h1, .hero h2, .hero-inner h2 { color: #fff; }
.hero p, .hero-inner p { color: var(--white-soft); }
.hero .sub, .hero-inner .sub { max-width: 36em; }
.award-hero { text-align: center; }
.award-hero .sub, .award-hero p { margin-left: auto; margin-right: auto; }
.win-badge {
  display: inline-block; font-family: var(--face); font-weight: 700; font-size: 0.95rem; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--crimson); background: var(--folio); border: 3px double var(--old-gold); padding: 6px 16px; margin: 0 0 16px;
}
.cat-list { max-width: 860px; margin: 0 auto; border-top: 1px solid var(--old-gold); }
.section > .cat-list { width: min(860px, calc(100% - 48px)); }
a.cat-item, .cat-item {
  display: block; text-decoration: none; color: var(--slate); background: transparent;
  border: 0; border-bottom: 1px solid var(--ledger-line); padding: 18px 4px; border-radius: 0;
}
a.cat-item:hover { background: var(--folio-white); }
a.cat-item h3, .cat-item h3 { color: var(--crimson); margin-bottom: 4px; }
a.cat-item:hover h3 { text-decoration: underline; text-underline-offset: 3px; }
.cat-item p { margin: 0; }

.container.prose, .container.legal { max-width: none; }
.container.prose > *, .container.legal > * { max-width: 40em; }

/* small screens */
@media (max-width: 900px) {
  .notice-grid, .two-col { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .notice-seal { order: -1; justify-self: start; width: 150px; }
  .sequence { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sequence li:nth-child(3) { border-left: 0; padding-left: 0; border-top: 1px solid var(--ledger-line); }
  .sequence li:nth-child(4) { border-top: 1px solid var(--ledger-line); }
  .office-foot-row { grid-template-columns: 1fr 1fr; }
  .office-foot-row > :first-child { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  body { font-size: 18px; }
  .container, .section > :not(.container), .hero-inner > :not(.container), .hero > :not(.container) { width: calc(100% - 32px); }
  .office-head-row, .office-foot-row, .office-foot-base { width: calc(100% - 32px); }
  .office-name { font-size: 1.15rem; }
  .office-name svg { width: 38px; height: 38px; }
  .office-nav { gap: 4px 16px; font-size: 1rem; }
  .notice { padding: 40px 0 40px; }
  .notice .sub { font-size: 1.12rem; }
  .term { padding: 46px 0; }
  .section { padding: 46px 0; }
  .hero, .hero-inner { padding: 44px 0 40px; }
  .registers li { grid-template-columns: minmax(0, 1fr); }
  .sequence { grid-template-columns: minmax(0, 1fr); }
  .sequence li, .sequence li:nth-child(3) { border-left: 0; padding: 16px 0; border-top: 1px solid var(--ledger-line); }
  .sequence li:first-child { border-top: 0; }
  .letter { padding: 28px 20px; }
  .field-pair { grid-template-columns: minmax(0, 1fr); }
  .transcript th, .transcript td { padding: 9px 8px; }
  .transcript-hide-sm { display: none; }
  .standing-list li { flex-direction: column; gap: 0; }
}
