/* Comprehenthemind - shared stylesheet
   Palette and type roles carried over from the recovered index.html:
   Georgia serif identity, #222 masthead band, #1a5276 link navy,
   #a04000 favicon burnt orange. */

:root {
  --canvas: #ffffff;
  --surface: #eef3f6;
  --notice: #fdf3ec;
  --text: #222222;
  --muted: #4a5a63;
  --accent: #1a5276;
  --tab: #a04000;
  --rule: #d5dde2;
  --shell: 1160px;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--canvas);
  color: var(--text);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
}

.shell {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 0 24px;
}

a { color: var(--accent); }
a:hover { color: #123d58; }

:focus-visible {
  outline: 2px solid var(--tab);
  outline-offset: 2px;
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: #ffffff;
  color: var(--text);
  padding: 10px 16px;
  border: 2px solid var(--tab);
  z-index: 20;
}
.skip:focus { left: 8px; top: 8px; }

/* ---------------------------------------------------------------- masthead */

.masthead {
  background: var(--text);
  color: #ffffff;
  border-bottom: 3px solid var(--tab);
}

.masthead-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  padding: 18px 0 14px;
}

.wordmark {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.875rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: #ffffff;
  text-decoration: none;
}
.wordmark:hover { color: #ffffff; text-decoration: underline; }

.masthead-utility {
  font-size: 0.8125rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #d8dee2;
}

.tabs {
  border-top: 1px solid #3d3d3d;
}
.tabs ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  list-style: none;
  margin: 0;
  padding: 0;
}
.tabs a {
  display: block;
  padding: 12px 18px 12px 0;
  margin-right: 18px;
  color: #ffffff;
  text-decoration: none;
  font-size: 0.9375rem;
  border-bottom: 3px solid transparent;
}
.tabs a:hover { color: #ffffff; border-bottom-color: #6f7d85; }
.tabs a[aria-current="page"] {
  border-bottom-color: var(--tab);
  font-weight: 700;
}

/* ------------------------------------------------------------- task band */

.taskband {
  background: var(--surface);
  border-bottom: 1px solid var(--rule);
  padding: 20px 0 22px;
}

.taskband h2 {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 12px;
  font-weight: 700;
}

.taskband ul {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.taskband a {
  display: block;
  min-height: 56px;
  padding: 12px 14px;
  background: #ffffff;
  border: 1px solid var(--rule);
  border-left: 4px solid var(--tab);
  color: var(--accent);
  text-decoration: none;
  font-size: 0.9375rem;
  line-height: 1.35;
}
.taskband a:hover { background: #ffffff; border-color: var(--accent); }

/* ------------------------------------------------------------ page grids */

main { display: block; }

.opening {
  display: grid;
  grid-template-columns: 7fr 5fr;
  gap: 32px;
  padding: 40px 0 8px;
}

.detail {
  display: grid;
  grid-template-columns: 8fr 4fr;
  gap: 32px;
  padding: 28px 0 8px;
}

/* The utility ledger ends where its facts end; it is not stretched to match the
   introduction column. */
.opening > .panel,
.detail > .rail { align-self: start; }

section { margin: 0 0 40px; }

/* ------------------------------------------------------------- headings */

h1 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2.25rem;
  line-height: 1.2;
  font-weight: 700;
  margin: 0 0 12px;
}

.section-heading,
h2.tabbed {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.5rem;
  line-height: 1.25;
  margin: 0 0 16px;
  padding-left: 18px;
  position: relative;
}

.section-heading::before,
h2.tabbed::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.28em;
  width: 8px;
  height: 22px;
  background: var(--tab);
}

h3 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.1875rem;
  margin: 0 0 6px;
}

p { margin: 0 0 16px; max-width: 70ch; }

.standfirst { font-size: 1.125rem; color: var(--muted); }

/* ----------------------------------------------------------- breadcrumb */

.breadcrumb {
  border-bottom: 1px solid var(--rule);
  padding: 14px 0 12px;
  font-size: 0.8125rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.breadcrumb ol {
  list-style: none;
  margin: 0;
  padding: 0 0 0 18px;
  position: relative;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.breadcrumb ol::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1px;
  width: 8px;
  height: 16px;
  background: var(--tab);
}
.breadcrumb li::after { content: " /"; color: var(--muted); }
.breadcrumb li:last-child::after { content: ""; }
.breadcrumb li[aria-current="page"] { color: var(--muted); }

/* --------------------------------------------------------- utility panel */

.panel {
  background: var(--surface);
  border: 1px solid var(--rule);
  padding: 20px 22px 6px;
}
.panel h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.3125rem;
  margin: 0 0 14px;
}
.panel h3 {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 6px;
}
.panel p { font-size: 0.9375rem; max-width: none; }
.panel ol, .panel ul { margin: 0 0 16px; padding-left: 20px; font-size: 0.9375rem; }
.panel li { margin-bottom: 4px; }

.notice {
  background: var(--notice);
  border-top: 3px solid var(--tab);
  border-bottom: 1px solid var(--rule);
  padding: 14px 16px;
  margin: 0 -22px;
}
.notice p { margin: 0; font-size: 1rem; }
.notice strong { display: block; }

.standalone-notice {
  background: var(--notice);
  border-top: 3px solid var(--tab);
  border-bottom: 1px solid var(--rule);
  padding: 14px 16px;
  margin: 0 0 20px;
}
.standalone-notice p { margin: 0; font-size: 1rem; max-width: none; }

/* ------------------------------------------------------------- directory */

.group { margin: 0 0 26px; }

.group-label {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 700;
  margin: 0 0 8px;
  padding-bottom: 6px;
  border-bottom: 2px solid var(--text);
}

.rows { list-style: none; margin: 0; padding: 0; }

.rows > li {
  display: grid;
  grid-template-columns: 20rem 1fr;
  gap: 20px;
  padding: 12px 0;
  border-bottom: 1px solid var(--rule);
}
.rows > li > :first-child { font-weight: 700; }
.rows > li p { margin: 0; font-size: 0.9375rem; color: var(--muted); max-width: none; }

.typed-rows { list-style: none; margin: 0; padding: 0; }
.typed-rows > li {
  display: grid;
  grid-template-columns: 7rem 1fr;
  gap: 20px;
  padding: 11px 0;
  border-bottom: 1px solid var(--rule);
  align-items: baseline;
}

.type-tag {
  font-size: 0.6875rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--tab);
  border: 1px solid var(--rule);
  background: var(--surface);
  padding: 3px 8px;
  display: inline-block;
}

/* --------------------------------------------------------- role records */

.records {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0 32px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.records > li {
  padding: 16px 0;
  border-top: 1px solid var(--rule);
}
.records p { margin: 0; font-size: 0.9375rem; max-width: none; }
.records .role-note {
  margin-top: 6px;
  font-size: 0.8125rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ------------------------------------------------------------- factsheet */

.facts {
  margin: 0;
  border-top: 1px solid var(--rule);
}
.facts > div {
  display: grid;
  grid-template-columns: 12rem 1fr;
  gap: 16px;
  padding: 10px 0;
  border-bottom: 1px solid var(--rule);
}
.facts dt {
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 700;
}
.facts dd { margin: 0; }

/* ---------------------------------------------------------------- figure */

figure { margin: 24px 0 0; }
figure img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--rule);
  background: #ffffff;
}
figcaption {
  font-size: 0.875rem;
  color: var(--muted);
  padding: 10px 2px 0;
  border-bottom: 1px solid var(--rule);
  padding-bottom: 12px;
}

/* ------------------------------------------------------------- fact rail */

.rail { font-size: 0.9375rem; }
.rail > * + * { margin-top: 24px; }
.rail h2 {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 700;
  margin: 0 0 8px;
  padding-bottom: 6px;
  border-bottom: 2px solid var(--text);
}
.rail ul { list-style: none; margin: 0; padding: 0; }
.rail li { padding: 7px 0; border-bottom: 1px solid var(--rule); }
.rail p { max-width: none; font-size: 0.875rem; }

.rail-scope {
  background: var(--surface);
  border: 1px solid var(--rule);
  padding: 14px 16px;
}
.rail-scope p:last-child { margin-bottom: 0; }

/* --------------------------------------------------------------- content */

.body-copy h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.4375rem;
  margin: 32px 0 12px;
  padding-top: 20px;
  border-top: 1px solid var(--rule);
}
.body-copy h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.body-copy ul, .body-copy ol { max-width: 70ch; padding-left: 22px; }
.body-copy li { margin-bottom: 8px; }

.entry {
  padding: 24px 0;
  border-top: 1px solid var(--rule);
}
.entry:first-of-type { border-top: 2px solid var(--text); }
.entry h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.4375rem;
  margin: 0 0 10px;
}
.entry .facts { margin-top: 14px; }
.entry .facts > div:last-child { border-bottom: 0; }

.checklist { list-style: none; margin: 0 0 20px; padding: 0; max-width: 70ch; }
.checklist li {
  padding: 10px 0 10px 22px;
  border-bottom: 1px solid var(--rule);
  position: relative;
}
.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1.05em;
  width: 10px;
  height: 10px;
  border: 1px solid var(--muted);
  background: #ffffff;
}

/* ---------------------------------------------------------------- footer */

.site-footer {
  background: var(--text);
  color: #e4e8ea;
  border-top: 3px solid var(--tab);
  margin-top: 24px;
  padding: 32px 0 28px;
}
.site-footer a { color: #ffffff; }
.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px 32px;
}
.site-footer h2 {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #b6c0c5;
  font-weight: 700;
  margin: 0 0 10px;
}
.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 20px;
}
.site-footer p { font-size: 0.875rem; color: #c7cfd3; margin: 0 0 8px; max-width: 70ch; }
.footer-legal {
  border-top: 1px solid #3d3d3d;
  margin-top: 22px;
  padding-top: 16px;
  font-size: 0.8125rem;
  color: #aab4b9;
}

/* --------------------------------------------------------------- mobile */

@media (max-width: 1000px) {
  .taskband ul { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 900px) {
  .opening, .detail { grid-template-columns: 1fr; gap: 28px; padding-top: 28px; }
  .records { grid-template-columns: 1fr; }
  .rows > li { grid-template-columns: 1fr; gap: 4px; }
  .facts > div { grid-template-columns: 1fr; gap: 2px; }
  .footer-grid { grid-template-columns: 1fr; }
  h1 { font-size: 1.875rem; }
}

@media (max-width: 640px) {
  body { font-size: 1rem; }
  .shell { padding: 0 16px; }
  .masthead-top { display: block; padding-bottom: 10px; }
  .masthead-utility { display: block; margin-top: 6px; }
  .wordmark { font-size: 1.625rem; }
  .tabs a { padding: 10px 0; margin-right: 16px; }
  .taskband ul { grid-template-columns: 1fr; }
  .taskband a { min-height: 48px; }
  .typed-rows > li { grid-template-columns: 1fr; gap: 6px; }
  h1 { font-size: 1.6875rem; }
  .section-heading, h2.tabbed { font-size: 1.3125rem; }
  .notice { margin: 0 -22px; }
}
