:root {
  --raspberry: #c60252;
  --raspberry-dark: #b60143;
  --ink: #111111;
  --paper: #ffffff;
  --mist: #f2f4f6;
  --line: #c7c6c5;
  --brown: #7a4b35;
  --gold: #d8b45f;
  --max: 72rem;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font: 18px/1.65 Arial, sans-serif; }
body { overflow-wrap: break-word; }
a { color: var(--raspberry-dark); text-underline-offset: .18em; }
a:hover { color: var(--raspberry); }
a:focus-visible, button:focus-visible, input:focus-visible { outline: 3px solid #155de9; outline-offset: 3px; }
.site-header { border-top: .5rem solid var(--raspberry); border-bottom: 1px solid var(--line); background: var(--paper); }
.nav { max-width: var(--max); margin: auto; padding: .75rem 1.25rem; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.brand { min-width: 0; color: var(--ink); text-decoration: none; display: inline-flex; align-items: center; gap: .85rem; }
.brand img { width: 4.5rem; height: 4.38rem; object-fit: contain; flex: 0 0 auto; }
.brand span { display: grid; line-height: 1.15; }
.brand strong { font: 700 1.35rem Georgia, serif; }
.brand small { margin-top: .3rem; color: var(--brown); font: 600 .78rem/1.25 Arial, sans-serif; letter-spacing: .04em; }
.nav-links { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: .25rem .75rem; }
.nav-links a { min-height: 2.75rem; padding: .65rem .35rem; display: inline-flex; align-items: center; color: var(--brown); font-weight: 700; text-decoration: none; }
main { display: block; }
.hero { background: var(--mist); border-bottom: 1px solid var(--line); }
.hero-inner { max-width: var(--max); margin: auto; padding: clamp(3.5rem, 8vw, 6.5rem) 1.25rem; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(17rem, .8fr); gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.eyebrow { color: var(--raspberry-dark); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; font-size: .8rem; }
h1, h2, h3 { font-family: Georgia, serif; line-height: 1.15; }
h1 { font-size: clamp(2.35rem, 5vw, 4.7rem); margin: .4rem 0 1rem; }
h2 { font-size: clamp(1.7rem, 3vw, 2.6rem); margin-top: 2.8rem; }
h3 { font-size: 1.35rem; }
.hero-note { border-left: .35rem solid var(--raspberry); padding: 1.25rem 1.4rem; background: var(--paper); box-shadow: 0 1rem 2.5rem rgba(17,17,17,.07); }
.wrap { max-width: var(--max); margin: auto; padding: 4rem 1.25rem; }
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; }
.rubrics { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.rubric-card { border: 1px solid var(--line); border-left: .35rem solid var(--raspberry); padding: 1.1rem; display: flex; justify-content: space-between; gap: 1rem; text-decoration: none; color: var(--ink); }
.rubric-card span, .card-category { color: var(--brown); font-size: .9rem; font-weight: 700; }
.category-link { color: var(--raspberry-dark); font-weight: 700; }
.category-cards { margin-top: 3rem; }
.card { min-width: 0; border: 1px solid var(--line); border-radius: .25rem; overflow: hidden; background: var(--paper); display: flex; flex-direction: column; }
.card img { width: 100%; aspect-ratio: 16/9; object-fit: contain; background: var(--mist); }
.card-body { padding: 1.3rem; display: flex; flex-direction: column; flex: 1; }
.card h2 { margin: 0 0 .75rem; font-size: 1.55rem; }
.card p { margin: 0 0 1.2rem; }
.card a { margin-top: auto; font-weight: 700; }
.newsletter { background: var(--mist); border-block: 1px solid var(--line); }
.newsletter-inner { max-width: 52rem; margin: auto; padding: clamp(2rem, 5vw, 3rem) 1.25rem; }
.newsletter h2 { margin-top: 0; }
.newsletter a { color: var(--raspberry-dark); }
.signup { display: grid; gap: .9rem; }
.signup-row { display: grid; grid-template-columns: 1fr auto; gap: .7rem; }
label { font-weight: 700; }
input[type=email] { width: 100%; min-height: 3.2rem; border: 2px solid var(--brown); padding: .7rem .9rem; font: inherit; background: white; }
.consent { display: flex; align-items: flex-start; gap: .7rem; font-weight: 400; font-size: .95rem; }
.consent input { margin-top: .35rem; }
button, .button { border: 0; background: var(--ink); color: white; padding: .85rem 1.15rem; font: 700 1rem Arial, sans-serif; cursor: pointer; text-decoration: none; }
button:hover, .button:hover { background: var(--brown); color: white; }
.newsletter button { min-height: 3.2rem; background: var(--raspberry); }
.newsletter button:hover { background: var(--raspberry-dark); }
.status { min-height: 1.6em; font-weight: 700; }
.form-note { margin: 0; font-size: .88rem; opacity: .9; }
.article-shell { max-width: 76rem; margin: auto; padding: 2.5rem 1.25rem 5rem; }
.article-head { max-width: 58rem; margin: auto; }
.article-head h1 { font-size: clamp(2.2rem, 5vw, 4rem); }
.article-hero { display: block; width: 100%; aspect-ratio: 16/9; object-fit: contain; background: var(--mist); margin: 1.5rem 0 1.75rem; }
.article-body { max-width: 48rem; margin: auto; }
.article-body p, .article-body li { max-width: 72ch; }
.article-body { line-height: 1.6; }
.article-body p { margin: 0 0 .75rem; }
.article-body h2 { margin: 1.5rem 0 .6rem; }
.article-body h3, .article-body h4 { margin: 1.25rem 0 .5rem; }
.article-body > :first-child { margin-top: 0; }
.article-body ul, .article-body ol { margin: .5rem 0 .75rem; padding-left: 1.5rem; }
.article-body li { margin: 0 0 .3rem; }
.article-body li p { margin-bottom: .3rem; }
.article-body p:empty { display: none; }
.article-body table { width: 100%; border-collapse: collapse; margin: 1rem 0; font-size: .95rem; }
.article-body th, .article-body td { text-align: left; vertical-align: top; border: 1px solid var(--line); padding: .75rem; }
.article-body th { background: var(--mist); }
.article-body > h1 { display: none; }
.article-body img { max-width: 100%; height: auto; }
.article-body pre { max-width: 100%; overflow-x: auto; }
.article-source { font-size: .9rem; }
.download-card { margin-top: 1.5rem; padding: 1.5rem; border: 2px solid var(--raspberry); border-radius: .25rem; background: var(--mist); }
.download-card h2 { margin-top: 0; }
.footer { border-top: 1px solid var(--line); background: var(--mist); }
.footer-inner { max-width: var(--max); margin: auto; padding: 2rem 1.25rem; display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.staging-flag { position: fixed; right: 0; bottom: 0; z-index: 10; background: var(--gold); color: var(--ink); padding: .35rem .65rem; font-size: .75rem; font-weight: 700; }
@media (max-width: 780px) {
  body { font-size: 17px; }
  .hero-inner, .cards, .rubrics { grid-template-columns: 1fr; }
  .signup-row { grid-template-columns: 1fr; }
  .nav { align-items: stretch; flex-direction: column; gap: .5rem; }
  .brand { align-self: flex-start; }
  .brand img { width: 4rem; height: 3.9rem; }
  .nav-links { justify-content: flex-start; gap: 0 .5rem; border-top: 1px solid var(--line); padding-top: .25rem; }
  .nav-links a { padding-left: .25rem; padding-right: .25rem; }
  .article-body table { display: block; overflow-x: auto; }
  h1 { overflow-wrap: anywhere; }
  .rubric-card { flex-direction: column; }
}
@media (max-width: 390px) {
  body { font-size: 16px; }
  .nav, .wrap, .article-shell, .hero-inner { padding-left: 1rem; padding-right: 1rem; }
  .button { display: block; width: 100%; text-align: center; }
  .brand strong { font-size: 1.15rem; }
  .brand small { font-size: .72rem; }
  .nav-links { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; }
  .nav-links a { justify-content: center; padding-inline: .2rem; text-align: center; font-size: .88rem; }
  .staging-flag { position: static; display: block; text-align: center; }
}

/* TG m12675: original banner and motto from the main school website. */
.site-header { border-top: 0; border-bottom: 0; padding-top: 14px; }
.web-banner { display: block; width: min(980px, 100%); margin: 0 auto; }
.web-banner img { display: block; width: 100%; height: auto; }
.web-motto { max-width: 1200px; margin: 0 auto 10px; padding: 0 16px; text-align: center; font: 500 20px/2 Arial, sans-serif; letter-spacing: .1em; }
.site-header .nav { max-width: none; margin: 0 20px; padding: 14px 12px 0; border-block: 1px solid #111; justify-content: center; }
.site-header .nav-links { justify-content: center; gap: 0 20px; }
.site-header .nav-links a { color: #9e3200; font-size: 15px; font-weight: 400; letter-spacing: .06em; }
@media (max-width: 780px) {
 .site-header { padding-top: 8px; }
 .web-motto { margin-top: 6px; font-size: 14px; line-height: 1.6; letter-spacing: .06em; }
 .site-header .nav { flex-direction: row; margin: 0 12px; padding-top: 4px; }
 .site-header .nav-links { border: 0; padding: 0; gap: 0 10px; }
}
