/* Award Leadwork - house stylesheet (spec sheet edition) */

:root {
  --blueprint: #16324f;
  --blueprint-deep: #0f243a;
  --sheet: #f7f6f2;
  --sheet-white: #ffffff;
  --lead-grey: #2b2e34;
  --copper: #b87333;
  --copper-deep: #a3622b;
  --copper-dark: #8a5526;
  --copper-lift: #dca06a;
  --steelline: #6b7a8a;
  --steeltext: #56636f;
  --ruling: rgba(22, 50, 79, 0.2);
  --ruling-soft: rgba(22, 50, 79, 0.1);

  --display: "Zilla Slab", Rockwell, Georgia, serif;
  --body: "Zilla Slab", Rockwell, Georgia, serif;
  --figures: "Zilla Slab", Rockwell, Georgia, serif;

  /* names shared with the awards publishing templates */
  --gold: #b87333;
  --steel: #8a5526;
  --navy: #16324f;
  --violet: #8a5526;
  --line: rgba(22, 50, 79, 0.2);
  --panel: #ffffff;
  --bg: #f7f6f2;
  --white: #ffffff;
  --white-soft: rgba(255, 255, 255, 0.86);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--lead-grey);
  background: var(--sheet);
  overflow-wrap: break-word;
}
img, svg { max-width: 100%; }
h1, h2, h3, h4, h5 {
  font-family: var(--display);
  font-weight: 700;
  color: var(--blueprint);
  line-height: 1.15;
  margin: 0 0 0.5em;
}
h1 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(1.6rem, 3vw, 2.25rem); }
h3 { font-size: 1.3rem; font-weight: 600; }
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; }
a { color: var(--copper-dark); text-underline-offset: 3px; }
a:hover { color: var(--blueprint); }
:focus-visible { outline: 3px solid var(--copper); outline-offset: 2px; }
table { border-collapse: collapse; }
.skip-link {
  position: absolute; left: 8px; top: -60px; z-index: 500;
  background: var(--sheet); color: var(--blueprint); padding: 8px 14px; font-weight: 600;
}
.skip-link:focus { top: 8px; }

/* wrappers */
.bay, .container { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.bay--narrow { max-width: 780px; }

/* site header */
.titleblock { background: var(--blueprint); border-bottom: 4px solid var(--copper); color: #fff; }
.titleblock-row {
  max-width: 1120px; margin: 0 auto; padding: 12px 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 10px 28px; flex-wrap: wrap;
}
.house-mark {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--display); font-weight: 700; font-size: 1.4rem; color: #fff; text-decoration: none; line-height: 1;
}
.house-mark svg { width: 40px; height: 40px; flex: none; }
.house-mark:hover { color: #fff; }
.house-mark small {
  display: block; font-family: var(--body); font-weight: 400; font-size: 0.72rem; letter-spacing: 0.04em;
  color: var(--white-soft); margin-top: 4px;
}
.titleblock-nav { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 22px; }
.titleblock-nav > a, .titleblock-nav .nav-cats-toggle {
  color: rgba(255, 255, 255, 0.9); text-decoration: none; font-size: 0.95rem; padding: 6px 0;
  border-bottom: 2px solid transparent;
}
.titleblock-nav > a:hover, .titleblock-nav .nav-cats-toggle:hover,
.titleblock-nav > a[aria-current="page"] { color: #fff; border-bottom-color: var(--copper-lift); }
.titleblock-nav > a.nav-cta {
  background: var(--copper-deep); color: #fff; padding: 9px 16px; font-weight: 600; border: 0;
}
.titleblock-nav > a.nav-cta:hover { background: var(--copper-dark); }

/* site footer */
.sheet-foot { background: var(--blueprint-deep); color: var(--white-soft); font-size: 0.95rem; }
.sheet-foot a { color: #fff; text-decoration: none; }
.sheet-foot a:hover { color: var(--copper-lift); text-decoration: underline; }
.sheet-foot-grid {
  max-width: 1120px; margin: 0 auto; padding: 48px 24px 32px;
  display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 32px;
}
.sheet-foot-grid h2 { font-size: 1.05rem; font-weight: 600; color: var(--copper-lift); margin-bottom: 12px; }
.sheet-foot-grid ul { list-style: none; margin: 0; padding: 0; }
.sheet-foot-grid li { margin-bottom: 7px; }
.sheet-foot-name { font-family: var(--display); font-size: 1.35rem; font-weight: 700; color: #fff; display: inline-block; margin-bottom: 8px; }
.sheet-foot-base {
  max-width: 1120px; margin: 0 auto; padding: 16px 24px 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  display: flex; flex-wrap: wrap; gap: 6px 24px; justify-content: space-between; font-size: 0.85rem;
}

/* drawing plate: the blueprint-ruled lead area on every page */
.plate {
  background-color: var(--blueprint);
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.09) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.09) 1px, transparent 1px),
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 120px 120px, 120px 120px, 24px 24px, 24px 24px;
  color: #fff;
  padding: 72px 0 64px;
  border-bottom: 1px solid var(--blueprint-deep);
}
.plate h1 { color: #fff; max-width: 17em; }
.plate p { color: var(--white-soft); }
.plate a:not(.job-btn) { color: var(--copper-lift); }
.plate-intro { font-size: 1.15rem; max-width: 36em; }
.plate-split { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 48px; align-items: center; }
.plate-seal { justify-self: center; width: 100%; max-width: 300px; }
.plate-seal svg { display: block; width: 100%; height: auto; transform: rotate(-6deg); }
.plate--short { padding: 56px 0 48px; }
.plate-ref { font-family: var(--figures); font-size: 0.85rem; color: var(--white-soft); margin: 0 0 14px; font-variant-numeric: tabular-nums; }

.job-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.job-btn, .btn {
  display: inline-block; background: var(--copper-deep); color: #fff; text-decoration: none;
  font-family: var(--body); font-weight: 600; font-size: 1rem; line-height: 1.2;
  padding: 14px 22px; border: 2px solid var(--copper-deep); cursor: pointer;
}
.job-btn:hover, .btn:hover { background: var(--copper-dark); border-color: var(--copper-dark); color: #fff; }
.job-btn--line { background: transparent; border-color: rgba(255, 255, 255, 0.7); color: #fff; }
.job-btn--line:hover { background: rgba(255, 255, 255, 0.1); border-color: #fff; }
.course .job-btn--line { border-color: var(--blueprint); color: var(--blueprint); }
.course .job-btn--line:hover { background: var(--blueprint); color: #fff; }

/* content courses */
.course { padding: 72px 0; }
.course--white { background: var(--sheet-white); border-top: 1px solid var(--ruling-soft); border-bottom: 1px solid var(--ruling-soft); }
.course--navy { background: var(--blueprint); color: var(--white-soft); }
.course--navy h2, .course--navy h3 { color: #fff; }
.course--navy a:not(.job-btn) { color: var(--copper-lift); }
.course-head { max-width: 46em; margin-bottom: 32px; }
.course-head p { font-size: 1.08rem; }
.two-up { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; align-items: start; }
.two-up--form { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }

/* dimension line: a ruled divider with end ticks and a measured label */
.dimension {
  display: flex; align-items: center; gap: 14px; margin: 0 0 28px;
  font-family: var(--figures); font-size: 0.82rem; color: var(--steeltext); font-variant-numeric: tabular-nums;
}
.dimension::before, .dimension::after {
  content: ""; flex: 1; height: 9px;
  border-top: 0; background:
    linear-gradient(var(--steelline), var(--steelline)) center / 100% 1px no-repeat;
  border-left: 1px solid var(--steelline);
}
.dimension::after { border-left: 0; border-right: 1px solid var(--steelline); }
.course--navy .dimension { color: var(--white-soft); }
.course--navy .dimension::before, .course--navy .dimension::after {
  background: linear-gradient(rgba(255,255,255,.5), rgba(255,255,255,.5)) center / 100% 1px no-repeat;
  border-color: rgba(255, 255, 255, 0.5);
}

/* spec tables */
.spec-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 2px solid var(--blueprint); background: var(--sheet-white); }
.spec { width: 100%; font-size: 0.97rem; font-variant-numeric: tabular-nums; }
.spec caption { text-align: left; padding: 12px 16px; font-family: var(--display); font-weight: 600; font-size: 1.1rem; color: #fff; background: var(--blueprint); }
.spec th, .spec td { padding: 12px 16px; text-align: left; vertical-align: top; border: 1px solid var(--ruling); }
.spec thead th {
  font-family: var(--figures); font-weight: 500; font-size: 0.82rem;
  color: var(--steeltext); background: #eef0f1; white-space: nowrap;
}
.spec tbody th { font-family: var(--display); font-weight: 600; font-size: 1.05rem; color: var(--blueprint); white-space: nowrap; }
.spec td.fig, .spec th.fig { font-family: var(--figures); text-align: right; white-space: nowrap; }
.spec tfoot td, .spec tfoot th { background: #eef0f1; font-weight: 600; border-top: 2px solid var(--blueprint); }
.spec tfoot th { font-family: var(--display); color: var(--blueprint); }
.spec-note { font-size: 0.9rem; color: var(--steeltext); margin-top: 12px; }

/* grade cell markers */
.grade { font-family: var(--figures); font-size: 0.85rem; white-space: nowrap; }
.grade--d { color: var(--copper-dark); font-weight: 700; }

/* 0 to 12 scale with mark bands */
.scale { margin: 8px 0 0; }
.scale-bands { display: grid; grid-template-columns: repeat(13, minmax(0, 1fr)); border: 2px solid var(--blueprint); background: var(--sheet-white); }
.scale-band { padding: 12px 6px; text-align: center; font-size: 0.85rem; font-weight: 600; color: var(--blueprint); border-left: 1px solid var(--ruling); line-height: 1.25; }
.scale-band:first-child { border-left: 0; }
.scale-band--none { grid-column: span 6; color: var(--steeltext); font-weight: 400; background: repeating-linear-gradient(135deg, transparent 0 7px, rgba(22,50,79,.06) 7px 8px); }
.scale-band--bronze { grid-column: span 2; background: #f1e2d3; }
.scale-band--silver { grid-column: span 2; background: #e4e8ec; }
.scale-band--gold { grid-column: span 2; background: #f0e3bf; }
.scale-band--master { grid-column: span 1; background: var(--blueprint); color: #fff; }
.scale-ticks { display: grid; grid-template-columns: repeat(13, minmax(0, 1fr)); list-style: none; margin: 0; padding: 0; }
.scale-ticks li {
  font-family: var(--figures); font-size: 0.78rem; color: var(--steeltext); text-align: center; padding-top: 10px; position: relative;
  font-variant-numeric: tabular-nums;
}
.scale-ticks li::before { content: ""; position: absolute; top: 0; left: 50%; width: 1px; height: 7px; background: var(--steelline); }

/* stamped seals */
.stamps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; list-style: none; margin: 0; padding: 0; }
.stamp { text-align: center; }
.stamp svg { width: 100%; max-width: 190px; height: auto; display: block; margin: 0 auto 14px; }
.stamp:nth-child(odd) svg { transform: rotate(-5deg); }
.stamp:nth-child(even) svg { transform: rotate(4deg); }
.stamp h3 { margin-bottom: 2px; }
.stamp p { margin: 0; font-family: var(--figures); font-size: 0.88rem; color: var(--steeltext); font-variant-numeric: tabular-nums; }
.course--navy .stamp p { color: var(--white-soft); }

/* worked example sheet */
.worked { border: 2px solid var(--blueprint); background: var(--sheet-white); }
.worked-top {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; align-items: baseline;
  padding: 14px 18px; border-bottom: 1px solid var(--ruling); background: #eef0f1;
}
.worked-top h3 { margin: 0; }
.worked-flag { font-family: var(--figures); font-size: 0.8rem; color: var(--copper-dark); border: 1px solid var(--copper-dark); padding: 3px 8px; }
.worked-body { padding: 18px; }
.worked .spec-wrap { border-width: 1px; }
.worked-result { display: flex; align-items: center; gap: 18px; margin-top: 18px; }
.worked-result svg { width: 96px; height: 96px; flex: none; transform: rotate(-6deg); }
.worked-result p { margin: 0; }

/* honours schedule */
.schedule { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--blueprint); }
.schedule > li { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.7fr); gap: 8px 32px; padding: 24px 0; border-bottom: 1px solid var(--ruling); }
.schedule h3 { margin: 0; }
.schedule p { margin: 0 0 0.6em; }
.schedule p:last-child { margin-bottom: 0; }
.schedule .evidence { font-size: 0.93rem; color: var(--steeltext); }

/* terms of entry: label/value sheet */
.terms-sheet { margin: 0; border-top: 2px solid var(--blueprint); }
.terms-sheet div { display: grid; grid-template-columns: minmax(0, 13em) minmax(0, 1fr); gap: 4px 24px; padding: 13px 0; border-bottom: 1px solid var(--ruling); }
.terms-sheet dt { font-weight: 600; color: var(--blueprint); }
.terms-sheet dd { margin: 0; }
.course--navy .terms-sheet { border-top-color: var(--copper); }
.course--navy .terms-sheet div { border-bottom-color: rgba(255, 255, 255, 0.18); }
.course--navy .terms-sheet dt { color: #fff; }

/* standards list on the method page */
.standard-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; border-top: 2px solid var(--blueprint); border-left: 1px solid var(--ruling); }
.standard-list li { padding: 22px 22px 18px; border-right: 1px solid var(--ruling); border-bottom: 1px solid var(--ruling); background: var(--sheet-white); }
.standard-list h3 { margin-bottom: 6px; }
.standard-list p { margin: 0; font-size: 0.97rem; }

/* plain prose blocks */
.prose { max-width: 42em; }
.prose h2 { margin-top: 1.6em; }
.prose h2:first-child { margin-top: 0; }
.aside-note { border-left: 4px solid var(--copper); padding: 4px 0 4px 18px; margin: 28px 0; }

/* legal clauses */
.clauses { max-width: 46em; padding-left: 0; list-style: none; counter-reset: clause; margin: 0; border-top: 2px solid var(--blueprint); }
.clauses li { counter-increment: clause; display: grid; grid-template-columns: 3em minmax(0, 1fr); gap: 12px; padding: 18px 0; border-bottom: 1px solid var(--ruling); }
.clauses li::before { content: counter(clause) "."; font-family: var(--figures); color: var(--steeltext); padding-top: 2px; }
.clauses p { margin: 0; }
.legal-contact { margin-top: 28px; }

/* nomination request form */
.request-form { max-width: 820px; }
.request-form fieldset { border: 2px solid var(--blueprint); background: var(--sheet-white); margin: 0 0 22px; padding: 0 20px 20px; min-width: 0; }
.request-form legend { font-family: var(--display); font-weight: 600; font-size: 1.2rem; color: #fff; background: var(--blueprint); padding: 6px 14px; margin-left: -6px; }
.request-form .hint { font-size: 0.92rem; color: var(--steeltext); margin: 14px 0 0; }
.field-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 20px; }
.field { margin-top: 16px; }
.field label, .field-label { display: block; font-weight: 600; font-size: 0.95rem; color: var(--blueprint); margin-bottom: 6px; }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--lead-grey); background: var(--sheet);
  border: 1px solid var(--steelline); border-radius: 0; padding: 11px 12px;
}
.field textarea { resize: vertical; min-height: 120px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 3px solid var(--copper); outline-offset: 0; border-color: var(--blueprint); }
.ticks { list-style: none; margin: 14px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--ruling); }
.ticks li { border-bottom: 1px solid var(--ruling); }
.ticks label { display: flex; gap: 12px; align-items: flex-start; padding: 11px 4px; cursor: pointer; font-size: 0.97rem; }
.ticks label span { display: block; }
.ticks label small { display: block; color: var(--steeltext); font-size: 0.85rem; }
.ticks input { width: 20px; height: 20px; margin: 3px 0 0; accent-color: var(--blueprint); flex: none; }
.form-end { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; margin-top: 6px; }
.form-end p { margin: 0; font-size: 0.92rem; color: var(--steeltext); max-width: 34em; }

/* ------------------------------------------------------------------
   Vocabulary used by award posts and category listing pages that the
   awards publisher generates. They inherit this file through the head
   links, so these rules must stand on their own.
------------------------------------------------------------------ */
.section { padding: 72px 0; }
.section-light { background: var(--sheet-white); border-top: 1px solid var(--ruling-soft); border-bottom: 1px solid var(--ruling-soft); }
.section-dark { background: var(--blueprint); color: var(--white-soft); }
.section-black { background: var(--blueprint-deep); color: var(--white-soft); }
.section-dark h2, .section-dark h3, .section-black h2, .section-black h3 { color: #fff; }
.section-dark p, .section-black p { color: var(--white-soft); }
.section-dark a:not(.btn), .section-black a:not(.btn) { color: var(--copper-lift); }
.section-intro { max-width: 760px; margin: 0 auto; text-align: center; }
.section-intro h2 { margin-bottom: 14px; }
.kicker {
  display: block; font-family: var(--figures); font-size: 0.82rem; font-weight: 500; letter-spacing: 0.04em;
  color: var(--copper-dark); margin: 0 0 12px;
}
.section-dark .kicker, .section-black .kicker, .hero .kicker, .hero-inner .kicker { color: var(--copper-lift); }
.meta { font-family: var(--figures); font-size: 0.8rem; letter-spacing: 0.03em; color: var(--steeltext); }
.cta-band { text-align: center; }
.cta-band h2 { margin-bottom: 18px; }
.cta-band p { max-width: 640px; margin: 0 auto 26px; }
.hero, .hero-inner {
  background-color: var(--blueprint);
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.09) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.09) 1px, transparent 1px),
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 120px 120px, 120px 120px, 24px 24px, 24px 24px;
  color: #fff;
  padding: 72px 24px 64px;
}
.hero h1, .hero-inner h1, .hero h2, .hero-inner h2 { color: #fff; }
.hero p, .hero-inner p { color: var(--white-soft); }
.hero-inner > :not(.container) { max-width: 1072px; margin-left: auto; margin-right: auto; }
.hero-inner > .container { padding: 0; }
.hero .sub { font-size: 1.12rem; max-width: 40em; }
.award-hero { text-align: center; }
.award-hero .sub { margin-left: auto; margin-right: auto; }
.cat-list { max-width: 860px; margin: 0 auto; padding: 0 24px; }
a.cat-item {
  display: block; text-decoration: none; color: var(--lead-grey); background: var(--sheet-white);
  border: 1px solid var(--ruling); border-left: 4px solid var(--copper); border-radius: 0;
  padding: 22px 24px; margin-bottom: 14px;
}
a.cat-item:hover { border-color: var(--blueprint); border-left-color: var(--copper); }
a.cat-item h3 { color: var(--blueprint); margin-bottom: 6px; }
a.cat-item .meta { opacity: 1; text-transform: none; letter-spacing: 0.03em; }

/* small screens */
@media (max-width: 900px) {
  .plate-split, .two-up, .two-up--form { grid-template-columns: minmax(0, 1fr); }
  .plate-seal { max-width: 220px; justify-self: start; }
  .stamps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .schedule > li { grid-template-columns: minmax(0, 1fr); }
  .sheet-foot-grid { grid-template-columns: 1fr 1fr; }
  .sheet-foot-grid > :first-child { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .plate { padding: 48px 0 44px; }
  .course, .section { padding: 52px 0; }
  .titleblock-row { padding: 10px 16px; }
  .titleblock-nav { gap: 2px 16px; }
  .house-mark { font-size: 1.2rem; }
  .house-mark svg { width: 34px; height: 34px; }
  .bay, .container { padding: 0 16px; }
  .hero, .hero-inner { padding: 48px 16px 44px; }
  .standard-list, .ticks, .field-row { grid-template-columns: minmax(0, 1fr); }
  .terms-sheet div { grid-template-columns: minmax(0, 1fr); }
  .spec th, .spec td { padding: 10px 10px; }
  .scale-band { font-size: 0.72rem; padding: 10px 2px; }
  .scale-band--none { font-size: 0.75rem; }
  .worked-result { align-items: flex-start; }
  .worked-result svg { width: 72px; height: 72px; }
  .sheet-foot-grid { padding: 40px 16px 28px; }
  .sheet-foot-base { padding: 16px 16px 24px; }
}

/* keep the honours dropdown level with the other header links */
.titleblock-nav .nav-cats { display: flex; align-items: center; }

/* wide sheets read row by row on phones */
@media (max-width: 640px) {
  .spec--stack thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .spec--stack, .spec--stack tbody, .spec--stack tfoot { display: block; }
  .spec--stack caption { display: block; }
  .spec--stack tr { display: block; padding: 12px 14px; border-bottom: 1px solid var(--ruling); }
  .spec--stack tfoot tr { border-top: 2px solid var(--blueprint); border-bottom: 0; }
  .spec--stack th, .spec--stack td, .spec--stack tfoot th, .spec--stack tfoot td { display: block; border: 0; padding: 2px 0; text-align: left; white-space: normal; background: none; }
  .spec--stack tbody th { margin-bottom: 4px; }
  .spec--stack td.fig { text-align: left; }
  .spec--stack td[data-label]::before {
    content: attr(data-label); font-family: var(--figures); font-size: 0.78rem; color: var(--steeltext); margin-right: 8px;
  }
  .scale-bands { min-height: 78px; }
  .scale-band:not(.scale-band--none) { writing-mode: vertical-rl; transform: rotate(180deg); padding: 8px 0; display: flex; align-items: center; justify-content: center; font-size: 0.78rem; }
}
