/* ==========================================================================
   KuduDoc v6 — contact.html in the v6 language (loaded after theme.css).
   v5 CSS sits in the lower layer (v5), so plain rules here beat it; theme.css is unlayered,
   so rules that change what it sets carry the same `html body` prefix (later file wins ties).
   24 Sep 2026: rebuilt as hero → one mailbox directory → a closing of self-serve links (the three-step strip,
   the limits panel, the stat cards, the disclosure and mail-note sections and the Terms band were cut).
   ========================================================================== */

html body .ct-page {
  --v6-card-shadow: inset 0 0 0 1px rgba(16, 45, 73, .07), 0 1px 2px rgba(16, 45, 73, .05), 0 16px 40px -24px rgba(16, 45, 73, .32);
  --v6-card-shadow-on-blue: 0 2px 4px rgba(6, 22, 42, .1), 0 24px 56px -24px rgba(6, 22, 42, .5);
  --v6-on-blue-text: rgba(236, 244, 252, .86);
  --v6-on-blue-line: rgba(191, 227, 255, .28);
}

/* the landing's 1200px column (as on emergency access), so the opening, the directory, the closing and the footer share one left edge */
html body .ct-page .ct-wrap { max-width: 1280px; }

/* ---------------------------------------------------------------- 1 · the opening: the landing blue, the mark as a flat poster,
   left-aligned like the landing's fold, easing into the pale ground over its last 150px */
html body #hero.ct-hero {
  padding: 168px 0 168px !important; color: #fff;
  background-color: #2a64a0;   /* read by site.js: the nav turns light-on-dark here */
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 80 72'%3E%3Cg transform='translate(40 36) rotate(-8) skewX(-14) translate(-31 -32)' stroke-linecap='round' stroke-width='6.5'%3E%3Cpath d='M13 14V50' stroke='%23004e99' stroke-opacity='.16'/%3E%3Cpath d='M25 9V55' stroke='%23004e99' stroke-opacity='.22'/%3E%3Cpath d='M37 13V51' stroke='%23004e99' stroke-opacity='.13'/%3E%3Cpath d='M49 18V46' stroke='%23004e99' stroke-opacity='.18'/%3E%3C/g%3E%3C/svg%3E"),
    linear-gradient(180deg, #2a64a0 0, #2a64a0 calc(100% - 150px), rgba(42, 100, 160, 0) 100%),
    linear-gradient(transparent, transparent);
  /* the solid colour is for site.js (it reads the section's background-color to give the nav its dark tone);
     the empty bottom layer clips that colour to the content box, so the ease in the bottom padding shows the ground */
  background-clip: border-box, border-box, content-box;
  /* the ease ends transparent (not #dcebf8) so it meets whatever shade the ground has at this depth — no seam;
     the poster whole and on the right: at 720px tall its lowest stroke ends about 600px down, inside the hero */
  background-position: right -4vw top -40px, 0 0, 0 0;
  background-size: auto 720px, 100% 100%, 100% 100%;
  background-repeat: no-repeat;
}
html body .ct-hero-copy { text-align: left; }
html body .ct-hero .eyebrow {
  display: flex; align-items: center; margin-bottom: 0; color: #d6eeff;
  font: 600 12.5px/1 var(--font-sans); letter-spacing: .15em; text-transform: uppercase;
}
html body .ct-hero .eyebrow::before { content: ""; width: 3px; height: 13px; margin-right: 10px; border-radius: 2px; background: var(--orange); transform: skewX(-14deg) translateY(1px); }
html body .ct-hero h1 { margin-top: 24px; font: 650 clamp(46px, 6vw, 86px)/.98 var(--font-display); letter-spacing: -.038em; color: #fff; }
html body .ct-hero .kd-rule { margin: 26px 0 22px; background: var(--orange); }
/* "We don't have a call centre." — the quiet second phrase, in the landing's sky */
html body .ct-hero-promise { font: 650 clamp(24px, 2.6vw, 36px)/1.15 var(--font-display); letter-spacing: -.03em; color: #a9dcff; }
html body .ct-hero .ct-lead { margin-top: 14px; font-size: clamp(18px, 1.6vw, 21px); line-height: 1.45; color: var(--v6-on-blue-text); }
html body .ct-hero-actions { justify-content: flex-start; margin-top: 30px; }
html body .ct-hero .btn-secondary { background: transparent; color: #fff; box-shadow: inset 0 0 0 1.5px rgba(191, 227, 255, .45); }
html body .ct-hero .btn-secondary:hover { background: rgba(191, 227, 255, .1); }

/* ---------------------------------------------------------------- 2 · mailboxes: one directory card, a row per mailbox */
html body #mailboxes.ct-section { background: transparent; }
html body #mailboxes .ct-title .kd-h2 { font-weight: 650; letter-spacing: -.032em; }
html body #mailboxes .ct-lead { color: #56697f; }
html body .ct-directory { border-radius: 22px; background: #fff; box-shadow: var(--v6-card-shadow); padding: 4px 36px; }
html body .ct-directory .ct-mail.ct-row {
  display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 10px 48px; align-items: center;
  padding: 26px 0; border: 0; border-top: 1px solid rgba(16, 45, 73, .08); border-radius: 0; background: none; box-shadow: none;
}
html body .ct-directory .ct-row:first-child { border-top: 0; }
html body .ct-row h3 { margin: 0 0 6px; font: 650 19px/1.3 var(--font-display); letter-spacing: -.02em; color: #102d49; }
html body .ct-row p { margin: 0; font-size: 15px; line-height: 1.55; color: #56697f; }
html body .ct-row p a { color: #006bcb; font-weight: 600; white-space: nowrap; }
html body .ct-row p a:hover { text-decoration: underline; text-underline-offset: 3px; }
html body .ct-row-contact { min-width: 0; }
html body .ct-row address { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; font-style: normal; }
html body .ct-addr { display: flex; align-items: center; flex-wrap: wrap; gap: 0 16px; }
html body .ct-addr a { font: 600 17px/1.35 var(--font-sans); letter-spacing: -.01em; color: #006bcb; overflow-wrap: anywhere; }
html body .ct-addr a:hover { text-decoration: underline; text-underline-offset: 3px; }
html body .ct-addr .ct-copy { min-height: 36px; padding: 6px 0; color: #56697f; font-weight: 600; }
html body .ct-addr .ct-copy:hover { color: #006bcb; }
html body .ct-row .ct-mail-status { display: block; min-height: 0; font-size: 13px; color: #56697f; }
html body .ct-under { margin-top: 20px; font-size: 14px; color: #3f5470; }
/* the company behind the mailboxes (ECT Act s43): a card in the directory's style, label/value rows. Until Daniel's
   details arrive the {{CO_…}} placeholders show as dashed chips (nav.css draws them for the dark footer). */
html body .ct-company { margin-top: 36px; padding: 28px 36px 26px; border-radius: 22px; background: #fff; box-shadow: var(--v6-card-shadow); }
html body .ct-company h3 { margin: 0 0 14px; font: 650 19px/1.3 var(--font-display); letter-spacing: -.02em; color: #102d49; }
html body .ct-company dl { margin: 0; border-top: 1px solid rgba(16, 45, 73, .08); }
html body .ct-company dl > div { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 6px 48px; padding: 13px 0; border-bottom: 1px solid rgba(16, 45, 73, .08); }
html body .ct-company dt { color: #56697f; font-size: 15px; line-height: 1.5; }
html body .ct-company dd { margin: 0; color: #102d49; font: 500 15px/1.5 var(--font-sans); overflow-wrap: anywhere; }
html body .ct-company p { margin: 16px 0 0; font-size: 14px; line-height: 1.55; color: #3f5470; }
html body .ct-company p a { color: #006bcb; font-weight: 600; text-underline-offset: 3px; }
html body .ct-page .ct-company .ph { border-color: rgba(0, 107, 203, .45); color: #0b4f8f; background: rgba(0, 107, 203, .06); white-space: normal; }

/* ---------------------------------------------------------------- 3 · closing: the blue band, self-serve links, straight into the footer */
html body #closing.ct-closing { padding: 104px 40px 96px !important; background: #2a64a0; color: #fff; }
html body #closing.ct-closing > .ct-wrap { max-width: 1200px; margin: 0 auto; padding: 0; }
html body #closing.ct-closing h2 { color: #fff; font-weight: 650; }
html body .ct-shortcuts {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 40px;
  margin: 44px 0 0; padding: 0; list-style: none;
}
/* five shortcuts: three, then two; each carries its own rule so the second row reads as part of the list */
html body .ct-shortcuts li { border-top: 1px solid var(--v6-on-blue-line); }
html body .ct-shortcuts a { display: block; padding: 26px 0 30px; color: #fff; }
html body .ct-shortcuts b { display: block; font: 650 21px/1.3 var(--font-display); letter-spacing: -.02em; }
html body .ct-shortcuts a > span { display: block; margin-top: 8px; font-size: 15px; line-height: 1.5; color: var(--v6-on-blue-text); }
html body .ct-shortcuts a:hover b { text-decoration: underline; text-decoration-color: rgba(191, 227, 255, .6); text-underline-offset: 4px; }

/* ---------------------------------------------------------------- phone */
@media (max-width: 900px) {
  html body #closing.ct-closing { padding: 88px 20px 80px !important; }
}
@media (max-width: 760px) {
  html body .ct-directory { padding: 4px 22px; }
  html body .ct-directory .ct-mail.ct-row { grid-template-columns: minmax(0, 1fr); gap: 12px; padding: 22px 0; }
  html body .ct-directory .ct-row > * { grid-column: 1; grid-row: auto; }
  html body .ct-shortcuts { grid-template-columns: minmax(0, 1fr); margin-top: 32px; }
  html body .ct-company { padding: 22px 22px 20px; }
  html body .ct-company dl > div { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  html body .ct-shortcuts a { padding: 20px 0; }
}
@media (max-width: 600px) {
  html body #hero.ct-hero { padding: 128px 0 160px !important; background-size: auto 620px, 100% 100%, 100% 100%; background-position: right -34vw top 40px, 0 0, 0 0; }
  html body .ct-hero h1 { font-size: 46px; max-width: none; }
  html body .ct-hero .eyebrow { font-size: 11.5px; }
  html body .ct-hero-promise { font-size: 24px; }
  html body .ct-hero-actions .btn { width: 100%; }
  html body .ct-directory { padding: 2px 18px; border-radius: 20px; }
  html body .ct-company { padding: 20px 18px 18px; border-radius: 20px; }
  html body .ct-row h3 { font-size: 18px; }
  html body .ct-addr a { font-size: 16px; }
  html body #closing.ct-closing { padding: 72px 20px 64px !important; }
  html body .ct-shortcuts b { font-size: 19px; }
}
