/* Blue Environmental — site styles
   Palette
   --ink      #102A3B  harbor navy (text, rules)
   --paper    #F3F6F7  concrete-tinted white (page)
   --blue     #1C8FCB  brand blue (links, primary action)
   --rain     #5F7480  rain grey (secondary text)
   --hiviz    #F2C230  hi-vis yellow (due markers only)
   --leaf     #5E9B34  logo leaf green (handled marks)
*/
:root {
  --ink: #102A3B;
  --paper: #F3F6F7;
  --white: #FFFFFF;
  --blue: #1C8FCB;
  --blue-deep: #146E9E;
  --rain: #5F7480;
  --line: #CCD6DB;
  --hiviz: #F2C230;
  --leaf: #5E9B34;
  --measure: 66ch;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --max: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Archivo", system-ui, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
  font-variation-settings: "wdth" 100;
}
img { max-width: 100%; display: block; }
a { color: var(--blue-deep); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--hiviz); outline-offset: 2px; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

/* Type scale (1.25 ratio) */
h1, h2, h3 { margin: 0; line-height: 1.08; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.3rem, 5.2vw, 4.1rem); font-weight: 800; font-variation-settings: "wdth" 112; }
h2 { font-size: clamp(1.65rem, 3vw, 2.35rem); font-weight: 750; font-variation-settings: "wdth" 108; }
h3 { font-size: 1.22rem; font-weight: 700; line-height: 1.25; }
p { margin: 0 0 1em; max-width: var(--measure); }
.lede { font-size: clamp(1.15rem, 1.7vw, 1.32rem); line-height: 1.5; color: var(--ink); max-width: 56ch; }
.muted { color: var(--rain); }

/* Skip link */
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 1rem; top: 1rem; background: var(--white); padding: .5rem 1rem; z-index: 10; }

/* Header */
.site-header { background: var(--white); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; gap: 2rem; min-height: 76px; }
.brand { display: flex; align-items: center; gap: .6rem; text-decoration: none; color: var(--ink); }
.brand-logo { height: 46px; width: auto; }
.brand-name { font-weight: 800; font-size: 1.12rem; font-variation-settings: "wdth" 118; letter-spacing: .01em; line-height: 1; }
.brand-name span { display: block; font-weight: 500; font-size: .74rem; color: var(--rain); font-variation-settings: "wdth" 100; letter-spacing: .02em; margin-top: .2rem; }
.nav { display: flex; gap: 1.5rem; margin-left: auto; align-items: center; }
.nav a { color: var(--ink); text-decoration: none; font-weight: 550; font-size: .98rem; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--blue-deep); text-decoration: underline; }
.header-phone { font-weight: 700; white-space: nowrap; color: var(--ink); text-decoration: none; }
.menu-toggle { display: none; }

/* Buttons */
.btn { display: inline-block; padding: .85rem 1.35rem; font-weight: 700; text-decoration: none; border-radius: 3px; font-size: 1rem; line-height: 1.2; }
.btn-primary { background: var(--blue); color: var(--white); }
.btn-primary:hover { background: var(--blue-deep); color: var(--white); }
.btn-plain { color: var(--ink); border: 1.5px solid var(--ink); }
.btn-plain:hover { background: var(--ink); color: var(--white); }
.actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.75rem; }

/* Hero */
.hero { padding: clamp(3rem, 7vw, 5.5rem) 0 clamp(2.5rem, 5vw, 4rem); }
.hero h1 { max-width: 17ch; margin-bottom: 1.4rem; }

/* Compliance year — the signature element */
.year { margin-left: 0; margin-right: 0; margin-bottom: 0; margin-top: clamp(2.5rem, 5vw, 3.75rem); background: var(--white); border: 1px solid var(--line); padding: clamp(1.1rem, 2.5vw, 1.75rem); }
.year-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 2rem; align-items: baseline; margin-bottom: 1.1rem; }
.year-head h2 { font-size: 1.18rem; font-variation-settings: "wdth" 100; font-weight: 700; letter-spacing: 0; }
.year-head p { margin: 0; color: var(--rain); font-size: .95rem; }
.year-scroll { overflow-x: auto; }
.year-grid { display: grid; grid-template-columns: minmax(10.5rem, 13rem) repeat(12, minmax(2.6rem, 1fr)); min-width: 720px; font-size: .9rem; }
.year-grid > div { border-top: 1px solid var(--line); padding: .55rem .25rem; min-height: 2.6rem; display: flex; align-items: center; }
.ms { display: none; }
.year-grid .m { border-top: none; color: var(--rain); font-weight: 600; justify-content: center; font-size: .82rem; }
.year-grid .q-start { border-left: 1px solid var(--line); }
.year-grid .row-label { font-weight: 650; padding-right: 1rem; }
.year-grid .cell { justify-content: center; }
.dot { width: 11px; height: 11px; border-radius: 50%; background: var(--blue); }
.bar { height: 10px; width: 100%; background: var(--blue); opacity: .28; }
.bar-end { height: 10px; width: 100%; background: var(--blue); opacity: .28; border-radius: 0 5px 5px 0; }
.bar-start { height: 10px; width: 100%; background: var(--blue); opacity: .28; border-radius: 5px 0 0 5px; }
.due { background: var(--hiviz); color: var(--ink); font-weight: 750; font-size: .74rem; padding: .18rem .4rem; border-radius: 2px; white-space: nowrap; }
.year-foot { margin-top: 1rem; display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; font-size: .9rem; color: var(--rain); }
.year-foot strong { color: var(--ink); }

/* Sections */
.section { padding: clamp(3rem, 6vw, 5rem) 0; }
.section + .section { border-top: 1px solid var(--line); }
.section-white { background: var(--white); }
.section-head { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 1.5rem 3rem; margin-bottom: 2.25rem; align-items: end; }
.section-head p { margin: 0; color: var(--rain); }

/* Permit register (table-like rows, not cards) */
.register { border-top: 2px solid var(--ink); }
.register a.row { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 5fr) auto; gap: 1rem 2.5rem; padding: 1.35rem 0; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--ink); align-items: baseline; }
.register a.row:hover h3 { color: var(--blue-deep); text-decoration: underline; }
.register .code { font-weight: 600; color: var(--rain); font-size: .9rem; white-space: nowrap; }
.register p { margin: 0; color: var(--ink); }
.register h3 small { display: block; font-weight: 500; color: var(--rain); font-size: .9rem; margin-top: .25rem; }

/* Service list: two columns of plain entries */
.services { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 3.5rem; }
.service { padding: 1.4rem 0; border-top: 1px solid var(--line); }
.service h3 { margin-bottom: .45rem; }
.service p { margin: 0; color: #2D4656; }

/* Plain list with ticks */
.ticks { list-style: none; padding: 0; margin: 0; }
.ticks li { padding: .5rem 0 .5rem 1.7rem; position: relative; border-bottom: 1px solid var(--line); max-width: var(--measure); }
.ticks li::before { content: ""; position: absolute; left: .15rem; top: .95rem; width: .7rem; height: .38rem; border-left: 2.5px solid var(--leaf); border-bottom: 2.5px solid var(--leaf); transform: rotate(-45deg); }
.cols-2 { columns: 2; column-gap: 3.5rem; }
.cols-2 li { break-inside: avoid; }

/* Two-up text layout */
.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 2rem 4rem; }

/* Working terms (definition list) */
.terms { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 3.5rem; margin: 0; }
.terms div { border-top: 1px solid var(--line); padding: 1.2rem 0; }
.terms dt { font-weight: 700; margin-bottom: .35rem; }
.terms dd { margin: 0; color: #2D4656; }

/* Client names */
.clients { display: flex; flex-wrap: wrap; gap: .4rem 0; list-style: none; padding: 0; margin: 0; font-size: 1.02rem; }
.clients li::after { content: "/"; color: var(--line); margin: 0 .7rem; }
.clients li:last-child::after { content: none; }

/* Team roster */
.roster { border-top: 2px solid var(--ink); }
.person { display: grid; grid-template-columns: 112px minmax(0, 4fr) minmax(0, 7fr); align-items: start; gap: .5rem 3rem; padding: 1.4rem 0; border-bottom: 1px solid var(--line); }
.person h3 small { display: block; font-weight: 500; color: var(--rain); font-size: .95rem; margin-top: .25rem; }
.person p { margin: 0; }

/* FAQ */
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-of-type { border-top: 2px solid var(--ink); }
.faq summary { cursor: pointer; padding: 1.2rem 2.5rem 1.2rem 0; font-weight: 700; font-size: 1.08rem; list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: .25rem; top: 1rem; font-size: 1.5rem; font-weight: 400; color: var(--blue-deep); }
.faq details[open] summary::after { content: "–"; }
.faq .answer { padding: 0 0 1.25rem; }

/* Callout band */
.band { background: var(--ink); color: var(--white); padding: clamp(2.5rem, 5vw, 3.75rem) 0; }
.band .wrap { display: flex; flex-wrap: wrap; gap: 1.5rem 3rem; align-items: center; justify-content: space-between; }
.band h2 { color: var(--white); max-width: 22ch; }
.band p { color: #C9D6DD; margin: .6rem 0 0; }
.band .btn-plain { color: var(--white); border-color: var(--white); }
.band .btn-plain:hover { background: var(--white); color: var(--ink); }
.band .actions { margin-top: 0; }

/* Page header for inner pages */
.page-head { padding: clamp(2.5rem, 6vw, 4.25rem) 0 clamp(2rem, 4vw, 3rem); border-bottom: 1px solid var(--line); background: var(--white); }
.page-head h1 { font-size: clamp(2rem, 4.4vw, 3.3rem); max-width: 20ch; margin-bottom: 1rem; }
.crumb { font-size: .92rem; margin-bottom: 1.25rem; color: var(--rain); }
.crumb a { color: var(--rain); }

/* Facts table */
.facts { width: 100%; border-collapse: collapse; margin: 0; font-size: 1rem; }
.facts th, .facts td { text-align: left; padding: .9rem 1rem .9rem 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.facts th { width: 34%; font-weight: 700; }
.facts tr:first-child th, .facts tr:first-child td { border-top: 2px solid var(--ink); }

/* Contact */
.contact-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem 3rem; }
.contact-grid h3 { margin-bottom: .5rem; }
.contact-grid p { margin: 0; }
.big-link { font-size: clamp(1.4rem, 2.6vw, 1.9rem); font-weight: 750; text-decoration: none; color: var(--ink); font-variation-settings: "wdth" 108; }
.big-link:hover { color: var(--blue-deep); }

/* Footer */
.site-footer { background: var(--white); border-top: 1px solid var(--line); padding: 3rem 0 2.25rem; font-size: .95rem; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 5fr) repeat(3, minmax(0, 3fr)); gap: 2rem 3rem; }
.site-footer h2 { font-size: 1rem; font-variation-settings: "wdth" 100; margin-bottom: .75rem; letter-spacing: 0; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: .4rem; }
.site-footer a { color: var(--ink); text-decoration: none; }
.site-footer a:hover { color: var(--blue-deep); text-decoration: underline; }
.footer-base { margin-top: 2.5rem; padding-top: 1.25rem; border-top: 1px solid var(--line); color: var(--rain); display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 2rem; }

/* Responsive */
@media (max-width: 980px) {
  .nav { display: none; }
  .menu-toggle { display: inline-block; margin-left: auto; background: none; border: 1.5px solid var(--ink); padding: .5rem .8rem; font: inherit; font-weight: 700; color: var(--ink); border-radius: 3px; cursor: pointer; }
  .header-phone { display: none; }
  .nav.open { display: flex; flex-direction: column; align-items: flex-start; position: absolute; top: 76px; left: 0; right: 0; background: var(--white); padding: 1rem var(--gutter) 1.5rem; border-bottom: 1px solid var(--line); gap: .9rem; z-index: 5; }
  .site-header { position: relative; }
  .section-head, .split { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .services, .terms, .contact-grid { grid-template-columns: 1fr; gap: 0; }
  .contact-grid > div { padding: 1rem 0; border-top: 1px solid var(--line); }
  .register a.row { grid-template-columns: 1fr; gap: .4rem; }
  .person { grid-template-columns: 1fr; }
  .cols-2 { columns: 1; }
  .footer-grid { grid-template-columns: 1fr; }
  .facts th { width: 40%; }
}
@media (max-width: 720px) {
  .year-grid { grid-template-columns: 5.6rem repeat(12, minmax(0, 1fr)); min-width: 0; font-size: .78rem; }
  .year-grid .row-label { padding-right: .4rem; line-height: 1.2; }
  .year-grid .m { font-size: .72rem; }
  .mf { display: none; } .ms { display: inline; }
  .year-grid > div { padding: .45rem .1rem; }
  .dot { width: 8px; height: 8px; }
  .due { font-size: 0; padding: 0; width: 12px; height: 12px; border-radius: 2px; display: inline-block; }
  .year { padding: 1rem .75rem; }
}
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; } }
@media print { .site-header, .site-footer, .band { display: none; } }

.person img { width: 112px; height: 112px; object-fit: cover; border-radius: 2px; }
.gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.75rem 1.5rem; }
.gallery-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 2rem; }
.gallery figure { margin: 0; }
.gallery img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }
.gallery figcaption { margin-top: .55rem; font-size: .95rem; font-weight: 600; }
.side-photo { margin-top: 2rem; width: 100%; max-width: 300px; height: auto; }
@media (max-width: 980px) { .gallery-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .side-photo { display: none; } }
@media (max-width: 720px) { .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem 1rem; } .person { grid-template-columns: 84px 1fr; } .person img { width: 84px; height: 84px; } .person p { grid-column: 1 / -1; } }

.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 3rem; align-items: end; }
.hero-photo { width: 300px; height: 400px; object-fit: cover; object-position: center 30%; }
@media (max-width: 980px) { .hero-grid { grid-template-columns: 1fr; } .hero-photo { display: none; } }

/* Deadline banner */
.deadline { background: var(--hiviz); color: var(--ink); font-size: .95rem; padding: .55rem 0; }
.deadline a { color: var(--ink); font-weight: 700; }
/* Credentials strip */
.creds { background: var(--ink); color: var(--white); padding: 1.6rem 0; }
.creds .wrap { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.25rem 2rem; }
.creds strong { display: block; font-size: 1.35rem; font-variation-settings: "wdth" 112; font-weight: 800; }
.creds span { color: #C9D6DD; font-size: .92rem; line-height: 1.4; display: block; margin-top: .2rem; }
/* Testimonials */
.quotes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem 3rem; }
.quote { margin: 0; border-left: 3px solid var(--blue); padding-left: 1.25rem; }
.quote blockquote { margin: 0 0 .75rem; font-size: 1.15rem; }
.quote figcaption { color: var(--rain); font-size: .95rem; }
/* Updates */
.updates { list-style: none; padding: 0; margin: 0; border-top: 2px solid var(--ink); }
.updates li { padding: 1.3rem 0; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 9rem 1fr; gap: .25rem 2rem; }
.updates time { color: var(--rain); font-size: .92rem; padding-top: .2rem; }
.updates h3, .updates p { grid-column: 2; margin: 0; }
.article { max-width: 68ch; }
.article h2 { font-size: 1.5rem; margin: 2rem 0 .75rem; }
.service h3 a { color: var(--ink); text-decoration: none; }
.service h3 a:hover { color: var(--blue-deep); text-decoration: underline; }
@media (max-width: 980px) { .creds .wrap { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 720px) { .quotes { grid-template-columns: 1fr; } .updates li { grid-template-columns: 1fr; } .updates h3, .updates p { grid-column: 1; } }

.examples { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 2.5rem; border-top: 2px solid var(--ink); }
.ex { padding: 1.3rem 0; border-bottom: 1px solid var(--line); }
.ex h3 { font-size: 1.08rem; margin-bottom: .2rem; }
.ex-where { color: var(--rain); font-size: .92rem; margin: 0 0 .5rem; }
.ex p:last-child { margin: 0; font-size: .98rem; color: #2D4656; }
@media (max-width: 980px) { .examples { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 720px) { .examples { grid-template-columns: 1fr; } }

/* Training app */
.tform { display: grid; gap: 1rem; max-width: 34rem; }
.tform label { display: grid; gap: .35rem; font-weight: 650; }
.tform input, .tform select { font: inherit; padding: .7rem .8rem; border: 1.5px solid var(--line); border-radius: 3px; background: var(--white); color: var(--ink); }
.tform input:focus, .tform select:focus { border-color: var(--blue); outline: none; box-shadow: 0 0 0 3px rgba(28,143,203,.2); }
.form-error { color: #B3261E; min-height: 1.2em; margin: 0; }
.notice { background: var(--white); border-left: 3px solid var(--leaf); padding: .8rem 1rem; max-width: 60ch; }
.course-list { list-style: none; padding: 0; margin: 0; border-top: 2px solid var(--ink); }
.course-list li { padding: 1.1rem 0; border-bottom: 1px solid var(--line); }
.course-list h3 { margin-bottom: .3rem; }
.course-list p { margin: 0 0 .3rem; }
.player { display: grid; grid-template-columns: 17rem minmax(0, 1fr); gap: 3rem; align-items: start; }
.outline { position: sticky; top: 1rem; max-height: calc(100vh - 2rem); overflow: auto; font-size: .95rem; }
.outline ul { list-style: none; padding: 0; margin: 0 0 1.25rem; }
.outline li a { display: block; padding: .35rem 0 .35rem 1.2rem; color: var(--ink); text-decoration: none; position: relative; }
.outline li a::before { content: ""; position: absolute; left: 0; top: .8rem; width: .55rem; height: .55rem; border-radius: 50%; border: 1.5px solid var(--rain); }
.outline li a.done::before { background: var(--leaf); border-color: var(--leaf); }
.outline li a.locked { color: var(--rain); }
.outline .nav-section { font-weight: 750; margin-top: 1rem; padding-bottom: .2rem; border-bottom: 1px solid var(--line); }
.lesson { padding: 0 0 2.5rem; margin-bottom: 2.5rem; border-bottom: 1px solid var(--line); }
.lesson h2 { margin-bottom: 1rem; font-size: 1.6rem; }
.lesson audio, .lesson video { width: 100%; margin: .75rem 0; }
.lesson img { margin: .75rem 0; }
.lesson .pdf { width: 100%; aspect-ratio: 4 / 3; border: 1px solid var(--line); background: var(--white); margin-top: .75rem; }
.lesson-text { max-width: 68ch; }
.is-locked { opacity: .55; }
.quiz { background: var(--white); border: 1px solid var(--line); padding: 1.25rem 1.5rem; margin-top: 1.25rem; }
.quiz fieldset { border: 0; padding: 0; margin: 0 0 1.1rem; }
.quiz legend { font-weight: 700; margin-bottom: .5rem; }
.quiz label { display: block; padding: .25rem 0; }
.quiz-result { margin: .75rem 0 0; font-weight: 650; }
@media (max-width: 900px) { .player { grid-template-columns: 1fr; } .outline { position: static; max-height: none; } }

/* Rolling compliance calendar */
.cal { display: grid; grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); gap: 0 2rem; }
.cal-month { border-top: 1px solid var(--line); padding: .9rem 0 1.1rem; }
.cal-month:first-child h3 { color: var(--blue); }
.cal-month h3 { font-size: 1rem; font-weight: 700; margin: 0 0 .5rem; }
.cal-month ul { list-style: none; margin: 0; padding: 0; font-size: .93rem; }
.cal-month li { padding: .2rem 0; line-height: 1.4; }
.cal-month time { display: inline-block; min-width: 3.6rem; font-weight: 700; background: var(--hiviz); color: var(--ink); padding: 0 .35rem; margin-right: .35rem; font-size: .85rem; }
.cal-month li.ongoing { color: var(--rain); }
.cal-source { margin-top: 1.25rem; font-size: .88rem; }

/* Home service finder */
.hero-find h1 { max-width: 24ch; }
.hero-find .lede { max-width: 60ch; }
.find-box { margin: 2rem 0 1.5rem; max-width: 40rem; }
.find-box label { display: block; font-weight: 700; margin-bottom: .5rem; }
.find-box input { width: 100%; font: inherit; font-size: 1.05rem; padding: .85rem 1rem; border: 2px solid var(--ink); background: var(--white); color: var(--ink); border-radius: 0; }
.find-box input:focus { outline: 3px solid var(--blue); outline-offset: 2px; }
.find-none { margin: 0 0 1rem; }
.finder { columns: 3 15rem; column-gap: 2.25rem; }
.find-group { break-inside: avoid; }
.find-group[hidden] { display: none; }
.find-group h3 { font-size: 1rem; font-weight: 700; padding: 0 0 .6rem; border-bottom: 2px solid var(--ink); margin: 1.5rem 0 0; }
.finder .find-group:first-child h3 { margin-top: 0; }
.find-group ul { list-style: none; margin: 0; padding: 0; }
.find-group li a { display: block; padding: .7rem 0; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--ink); }
.find-group li a strong { display: block; font-size: .98rem; }
.find-group li a span { display: block; color: var(--rain); font-size: .86rem; line-height: 1.4; margin-top: .15rem; }
.find-group li a:hover strong, .find-group li a:focus-visible strong { color: var(--blue); text-decoration: underline; }
/* Requirement block on service pages */
.req-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; }
.req-grid h2 { font-size: 1.25rem; margin-bottom: .6rem; }
.req-grid p { max-width: 60ch; }
@media (max-width: 760px) { .req-grid { grid-template-columns: 1fr; gap: 1.5rem; } }

/* Page-head photo */
.ph-grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 3rem; align-items: center; }
.ph-photo { width: 360px; height: 270px; object-fit: cover; }
@media (max-width: 900px) { .ph-grid { grid-template-columns: 1fr; gap: 1.5rem; } .ph-photo { width: 100%; height: 200px; } }

/* Next deadline strip */
.nextdue { background: var(--ink); color: var(--white); padding: 1.1rem 0 .9rem; }
.nd-grid { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem 2rem; }
.nd-label { display: block; font-size: .8rem; color: var(--hiviz); font-weight: 700; margin-bottom: .2rem; }
.nd-what { margin: 0; font-size: 1.15rem; }
.nd-date { background: var(--hiviz); color: var(--ink); padding: .05rem .45rem; margin-right: .35rem; }
.nd-left { display: inline-block; margin-left: .5rem; font-size: .9rem; font-weight: 700; color: var(--hiviz); }
.nd-later { margin: .25rem 0 0; font-size: .85rem; color: #b9c6ce; }
.nd-kind { display: inline-block; margin-left: .4rem; padding: 0 .4rem; border: 1px solid currentColor; border-radius: 3px; font-weight: 600; font-size: .72rem; }
.nd-missed { margin: .5rem 0 0; font-size: .85rem; color: #fff; background: rgba(255,255,255,.08); border-left: 3px solid var(--hiviz); padding: .35rem .6rem; }
.w-mo li em { font-style: normal; font-weight: 600; }
.nd-btn { white-space: nowrap; }
.nextdue .up-full { margin-top: .6rem; }
.nextdue .up-full summary { cursor: pointer; font-size: .85rem; color: #b9c6ce; text-decoration: underline; }
.nextdue .up-full[open] { background: var(--white); color: var(--ink); padding: 1rem 1.25rem; margin-top: .75rem; }
.nextdue .up-full[open] summary { color: var(--blue); margin-bottom: .75rem; }

/* Training landing (Teachable-style) */
.t-hero { background: #2f2f2f url(/images/training-hero-bg.webp) center / cover; color: var(--white); text-align: center; padding: clamp(3.5rem, 8vw, 6rem) 0; }
.t-hero h1 { color: var(--white); max-width: none; margin: 0 auto .75rem; font-size: clamp(2rem, 4.5vw, 3.2rem); }
.t-sub { font-size: clamp(1.1rem, 2vw, 1.45rem); margin: 0 auto 1.75rem; max-width: none; }
.t-cta { border-radius: 999px; padding-left: 1.6rem; padding-right: 1.6rem; }
.t-hero .notice { margin-top: 1.25rem; } .t-hero .notice a { color: var(--hiviz); }
.t-instructor .wrap { max-width: 46rem; }
.t-instructor h2 { font-weight: 500; margin-bottom: 1.25rem; }
.t-bio { display: grid; grid-template-columns: 7.5rem 1fr; gap: 1.5rem; align-items: start; }
.t-bio figure { margin: 0; text-align: center; }
.t-bio img { width: 7.5rem; height: 9.5rem; object-fit: cover; border-radius: 50%; }
.t-bio figcaption { font-weight: 700; font-size: .9rem; margin-top: .4rem; }
.t-bio p { margin: 0; }
@media (max-width: 560px) { .t-bio { grid-template-columns: 1fr; justify-items: center; text-align: left; } }

/* Wall calendar (full 12 months) */
.w { display: grid; grid-template-columns: repeat(auto-fill, minmax(13rem, 1fr)); gap: 1.5rem 2rem; }
.w-mo h4 { font-size: .95rem; margin: 0 0 .4rem; }
.w-days { display: grid; grid-template-columns: repeat(7, 1fr); font-size: .78rem; text-align: center; }
.w-days i { font-style: normal; color: var(--rain); font-weight: 600; padding-bottom: .2rem; }
.w-days span { padding: .2rem 0; }
.w-days .w-hit { background: var(--hiviz); font-weight: 700; }
.w-mo ul { list-style: none; margin: .5rem 0 0; padding: 0; font-size: .82rem; }
.w-mo li b { display: inline-block; min-width: 1.4rem; }
.w-mo li.w-rec { color: var(--rain); }
.w-every { margin: 0 0 1rem; color: var(--rain); }

/* Home (trust-focused) */
.home-hero { background: var(--ink); color: var(--white); padding: clamp(3rem, 7vw, 5.5rem) 0; }
.hh-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 3.5rem; align-items: center; }
.hh-kicker { color: var(--hiviz); font-weight: 700; font-size: .95rem; margin: 0 0 .9rem; }
.home-hero h1 { color: var(--white); max-width: 17ch; margin: 0 0 1.2rem; }
.hh-lede { font-size: 1.15rem; line-height: 1.55; color: #D6E0E6; max-width: 56ch; margin: 0 0 1.9rem; }
.btn-ghost { background: transparent; color: var(--white); border: 2px solid rgba(255,255,255,.7); }
.btn-ghost:hover { background: var(--white); color: var(--ink); }
.trusted { padding: 1.6rem 0 1.8rem; }
.trusted-label { margin: 0 0 .7rem; font-weight: 700; color: var(--rain); font-size: .92rem; }
.trusted .clients { font-size: .95rem; color: var(--ink); }
.finder.compact .find-group li a span { display: none; }
.finder.compact .find-group li a { padding: .5rem 0; }
.home-team { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 1.25rem; }
.home-team figure { margin: 0; }
.home-team img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.home-team b { display: block; margin-top: .55rem; font-size: .95rem; }
.home-team span { color: var(--rain); font-size: .85rem; }
@media (max-width: 900px) { .home-team { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* Next-obligation strip under the page title, and the 12-month agenda */
.nd-inline { margin: 1rem 0 1.25rem; padding: .9rem 1rem; border-radius: 4px; max-width: 40rem; }
.nd-inline .nd-what { font-size: 1.02rem; line-height: 1.45; }
.nd-acts { margin: .7rem 0 0; display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1rem; }
.nd-acts .btn { padding: .55rem .9rem; font-size: .9rem; }
.nd-all { color: #d6e2e8; font-size: .9rem; }
.nd-site .nd-date { background: transparent; color: var(--hiviz); padding: 0; }
.cal-full { background: var(--white); border-bottom: 1px solid #dde3e7; }
.cal-full details { padding: .9rem 0; }
.cal-full summary { cursor: pointer; font-weight: 700; color: var(--blue); }
.agenda { display: grid; grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); gap: 1rem 1.5rem; margin: 1rem 0; }
.ag-mo h3 { font-size: .95rem; margin: 0 0 .35rem; border-bottom: 2px solid var(--ink); padding-bottom: .2rem; }
.ag-mo ul { list-style: none; margin: 0; padding: 0; font-size: .88rem; }
.ag-mo li { padding: .25rem 0; border-bottom: 1px solid #e6ebee; }
.ag-mo time { font-weight: 700; margin-right: .25rem; }
.ag-mo em { font-style: normal; font-size: .72rem; font-weight: 700; padding: 0 .3rem; border-radius: 3px; margin-right: .25rem; background: #e8eef2; }
.ag-mo .k-file em { background: #ffe58a; }
.ag-mo .k-sample em { background: #cfe8f7; }
.ag-mo .k-event em { background: #f4d6d6; }
.ag-mo .k-none { color: #6b7a84; }
@media (max-width: 760px) { .wall-wrap { display: none; } .ph-grid .ph-photo { max-height: 160px; width: 100%; object-fit: cover; } }

/* Training form fits phones */
.split > * { min-width: 0; }
.tform { width: 100%; min-width: 0; }
.tform label, .tform input, .tform select { min-width: 0; max-width: 100%; width: 100%; box-sizing: border-box; }
.tform select { text-overflow: ellipsis; }
.tform .btn { width: 100%; }
.t-reqcode { margin-top: 1rem; }
.btn-ghost-dark { border: 1.5px solid var(--ink); color: var(--ink); background: transparent; }
@media (min-width: 640px) { .tform .btn { width: auto; justify-self: start; } }

/* Homepage: promise, copyable address, common requests, project proof */
.copy-mail code { font-family: inherit; font-weight: 700; }
.copy-btn { font: inherit; font-size: .8rem; padding: .15rem .5rem; border: 1px solid currentColor; background: transparent; color: inherit; border-radius: 3px; cursor: pointer; }
.project-proof { border-left: 4px solid var(--blue); padding: .5rem 0 .5rem 1rem; margin-bottom: 2rem; max-width: 52rem; }
.project-proof p { margin: 0; }
.pp-label { font-size: .8rem; font-weight: 700; color: var(--blue); }
.nd-site .nd-what .nd-text { font-size: 1.02rem; line-height: 1.45; }
.nd-send { margin: .35rem 0 0; font-weight: 600; }
.finder + .project-proof { margin: 2rem 0 0; }
h3.pp-label { font-size: 1rem; margin: 0 0 .35rem; color: var(--ink); }
.ph-m { display: none; }
@media (max-width: 760px) {
  .has-nd .ph-photo { display: none; }
  .ph-m { display: block; margin-top: 1rem; }
  .ph-photo-m { width: 100%; height: 160px; object-fit: cover; display: block; }
}
.t-jump { margin: 0 0 1.5rem; }

/* Home hero, Nov 2026 redo */
.hh-grid { align-items: start; }
.home-hero .actions { margin-top: 1.5rem; }
.hh-promise { margin: 1rem 0 0; font-size: .95rem; color: #c9d6dd; display: flex; flex-wrap: wrap; gap: .35rem .75rem; align-items: center; }
.hh-tasks { margin-top: 2rem; border-top: 1px solid rgba(255,255,255,.18); padding-top: 1.1rem; max-width: 34rem; }
.hh-tasks h2 { font-size: .95rem; font-weight: 600; color: #c9d6dd; margin: 0 0 .4rem; }
.hh-tasks ul { list-style: none; margin: 0; padding: 0; }
.hh-tasks li + li { border-top: 1px solid rgba(255,255,255,.12); }
.hh-tasks a { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: .7rem 0; color: var(--white); text-decoration: none; font-weight: 600; }
.hh-tasks a::after { content: "\203A"; font-size: 1.4rem; line-height: 1; color: var(--hiviz); }
.hh-tasks a:hover, .hh-tasks a:focus-visible { color: var(--hiviz); }
.hh-figure { margin: 0; }
.hh-photo { display: block; width: 320px; height: 420px; object-fit: cover; }
.hh-figure figcaption { font-size: .8rem; color: #9fb2bd; margin-top: .5rem; }
.proof { background: var(--white); border-bottom: 1px solid var(--line); padding: 1.25rem 0; }
.proof-grid { list-style: none; margin: 0 auto; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .75rem 2rem; color: var(--rain); font-size: .92rem; line-height: 1.35; }
.proof-grid b { display: block; font-size: 1.3rem; color: var(--ink); }
@media (max-width: 900px) {
  .home-hero { padding: 2.25rem 0 2rem; }
  .hh-grid { grid-template-columns: 1fr; gap: 1.75rem; }
  .hh-photo { width: 100%; height: auto; aspect-ratio: 4 / 3; }
  .hh-tasks { margin-top: 1.5rem; }
}
@media (max-width: 760px) {
  .home-hero .actions .btn { flex: 1 1 100%; text-align: center; }
  .proof-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem 1.25rem; font-size: .85rem; }
  .proof-grid b { font-size: 1.1rem; }
}
.hh-promise a { color: inherit; }
.tform textarea { font: inherit; padding: .7rem .8rem; border: 1.5px solid var(--line); border-radius: 3px; background: var(--white); color: var(--ink); width: 100%; box-sizing: border-box; resize: vertical; }
.tform textarea:focus { border-color: var(--blue); outline: none; box-shadow: 0 0 0 3px rgba(28,143,203,.2); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.hh-promise a { color: var(--white); text-decoration: underline; }
