/* site-nav.css: the top menu on every course page (MN 2026-10-06: "a programs menu at the top,
   and when you drop down, the three programs come up"). Uses each page's own colour tokens. */
.sn { border-bottom: 1px solid var(--line, #d9d9de); background: var(--paper, #fcfcfc); position: relative; z-index: 30; }
.sn-in { max-width: 1180px; margin: 0 auto; padding-inline: clamp(18px, 4vw, 40px); display: flex; align-items: center; justify-content: space-between; gap: 18px; min-height: 64px; }
.sn-brand { font-family: var(--f-mono, ui-monospace, Menlo, monospace); font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase; font-weight: 500; text-decoration: none; color: var(--ink, #111); white-space: nowrap; }
.sn-menu { display: flex; align-items: center; gap: clamp(18px, 2.4vw, 30px); list-style: none; margin: 0; padding: 0; }
.sn-menu > li > a { font: 500 15px/1 var(--f-sans, system-ui, sans-serif); color: var(--ink, #111); text-decoration: none; padding-block: 22px; display: inline-flex; align-items: center; gap: 6px; border-bottom: 2px solid transparent; }
.sn-menu > li > a:hover { border-bottom-color: var(--line, #d9d9de); }
.sn-menu > li > a[aria-current="page"], .sn-menu > li > a.here { border-bottom-color: var(--ink, #111); }
.sn-caret { font-size: 11px; transition: transform .15s ease; }
.sn-apply { font: 600 14px/1 var(--f-sans, system-ui, sans-serif); text-decoration: none; background: var(--accent, #e3b500); color: var(--accent-ink, #241c00); padding: 11px 16px; border-radius: 4px; white-space: nowrap; }
.sn-apply:hover { filter: brightness(0.96); }

/* The Programs dropdown */
.sn-dd { position: relative; }
.sn-panel { display: none; position: absolute; top: calc(100% - 6px); left: -22px; width: 360px; background: var(--paper, #fcfcfc); border: 2px solid var(--ink, #111); border-radius: 6px; padding: 8px; box-shadow: 0 14px 30px rgba(0, 0, 0, 0.10); }
.sn-panel::before { content: ""; position: absolute; left: 0; right: 0; top: -14px; height: 14px; }
.sn-dd:hover .sn-panel, .sn-dd:focus-within .sn-panel, .sn-dd.open .sn-panel { display: grid; gap: 2px; }
.sn-dd:hover .sn-caret, .sn-dd:focus-within .sn-caret, .sn-dd.open .sn-caret { transform: rotate(180deg); }
.sn-item { display: grid; gap: 3px; padding: 12px 14px; border-radius: 4px; text-decoration: none; color: var(--ink, #111); }
.sn-item b { font: 600 16px/1.2 var(--f-sans, system-ui, sans-serif); }
.sn-item span { font-size: 13.5px; color: var(--muted, #555); }
.sn-item:hover, .sn-item:focus-visible, .sn-item[aria-current="page"] { background: var(--paper-2, #f3f2ee); }
.sn-item[aria-current="page"] b::after { content: "  ·  you're here"; font-family: var(--f-mono, monospace); font-size: 10.5px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted, #555); }
.sn-all { font: 500 13.5px/1 var(--f-mono, monospace); letter-spacing: 0.04em; padding: 12px 14px 8px; color: var(--muted, #555); text-decoration: none; border-top: 1px solid var(--line, #d9d9de); margin-top: 4px; }
.sn-all:hover { color: var(--ink, #111); }

/* Phones and small tablets: one "Menu" button, everything in a panel */
.sn-burger { display: none; font: 600 14px/1 var(--f-sans, system-ui, sans-serif); background: transparent; color: var(--ink, #111); border: 2px solid var(--ink, #111); border-radius: 4px; padding: 10px 14px; cursor: pointer; }
.sn-mobile { display: none; }
@media (max-width: 900px) {
  .sn-menu { display: none; }
  .sn-burger { display: inline-flex; align-items: center; gap: 8px; }
  .sn.open .sn-mobile { display: grid; gap: 4px; padding: 6px clamp(18px, 4vw, 40px) 20px; border-top: 1px solid var(--line, #d9d9de); background: var(--paper, #fcfcfc); }
  .sn-mobile .sn-h { font-family: var(--f-mono, monospace); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted, #555); padding: 14px 0 4px; }
  .sn-mobile .sn-item { padding: 12px 0; border-radius: 0; border-bottom: 1px solid var(--line, #d9d9de); }
  .sn-mobile .sn-item:hover { background: transparent; }
  .sn-mobile .sn-link { font: 600 17px/1.2 var(--f-sans, system-ui, sans-serif); color: var(--ink, #111); text-decoration: none; padding: 14px 0; border-bottom: 1px solid var(--line, #d9d9de); }
  .sn-mobile .sn-apply { justify-self: start; margin-top: 14px; font-size: 16px; padding: 14px 20px; }
}
@media (prefers-reduced-motion: reduce) { .sn-caret { transition: none; } }
.sn-dd.shut .sn-panel { display: none !important; }
.sn-menu > li > a.sn-apply { padding: 11px 16px; border-bottom: 0; }
.sn-caret { display: inline-block; width: 10px; height: 10px; }
.sn-caret svg { display: block; width: 10px; height: 10px; }
/* The chosen logo (option 4): the two-line site sign with legs */
.sn-brand img { display: block; height: 72px; width: auto; }
.sn-in { padding-block: 8px; }
@media (max-width: 420px) { .sn-brand img { height: 56px; } }

/* MN 10-07: tap-to-call beside the Menu button on phones (the desktop bar shows the full number) */
.sn-callm { display: none; font: 700 14px/1 var(--f-sans, system-ui, sans-serif); text-decoration: none; background: var(--accent, #FFC20E); color: var(--accent-ink, #161616); padding: 11px 14px; border-radius: 4px; white-space: nowrap; }
@media (max-width: 900px) { .sn-callm { display: inline-flex; align-items: center; margin-left: auto; margin-right: 8px; } }

/* MN 10-07: a hamburger icon instead of the word "Menu", with the Call button right beside it */
.sn-burger { width: 46px; height: 42px; padding: 0; justify-content: center; }
.sn-burger .sn-bl { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.sn-icon { display: grid; gap: 4px; width: 22px; }
.sn-icon i { display: block; height: 2.5px; border-radius: 2px; background: currentColor; transition: transform .2s ease, opacity .2s ease; }
.sn.open .sn-icon i:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.sn.open .sn-icon i:nth-child(2) { opacity: 0; }
.sn.open .sn-icon i:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }
@media (max-width: 900px) { .sn-in { gap: 8px; } .sn-callm { margin-left: auto; margin-right: 0; height: 42px; } }
@media (prefers-reduced-motion: reduce) { .sn-icon i { transition: none; } }

/* MN 10-08 (option B): Courses opens one panel, New Build (hi-vis yellow) beside Renovation (blueprint blue).
   Fixed colours, so both tracks look the same on every page. */
.sn-dd .sn-panel.sn-two { width: 680px; grid-template-columns: 1fr 1fr; gap: 10px; padding: 10px; }
.sn-col { border-radius: 5px; padding: 6px; display: grid; gap: 2px; align-content: start; }
.sn-col.nb { background: #FFF6D6; border-top: 5px solid #FFC20E; }
.sn-col.rn { background: #E7F0FD; border-top: 5px solid #1E63D6; }
.sn-ch { font: 800 19px/1.1 'Barlow Semi Condensed', var(--f-sans, system-ui, sans-serif); padding: 8px 14px 6px; color: var(--ink, #111); }
.sn-col.rn .sn-ch { color: #0E3A86; }
.sn-ch small { display: block; font: 500 13px/1.3 var(--f-sans, system-ui, sans-serif); color: var(--muted, #555); margin-top: 3px; }
.sn-col .sn-item:hover, .sn-col .sn-item:focus-visible, .sn-col .sn-item[aria-current="page"] { background: rgba(255, 255, 255, 0.75); }
.sn-two .sn-all { grid-column: 1 / -1; margin-top: 0; }
@media (max-width: 900px) {
  .sn-grp { border-radius: 6px; padding: 2px 12px 4px; margin-top: 6px; }
  .sn-grp.nb { background: #FFF6D6; border-left: 5px solid #FFC20E; }
  .sn-grp.rn { background: #E7F0FD; border-left: 5px solid #1E63D6; }
  .sn-gh { display: block; font: 800 18px/1.1 'Barlow Semi Condensed', var(--f-sans, system-ui, sans-serif); padding: 12px 0 2px; }
  .sn-grp.rn .sn-gh { color: #0E3A86; }
  .sn-mobile .sn-grp .sn-item { border-bottom-color: rgba(0, 0, 0, 0.08); }
  .sn-mobile .sn-grp .sn-item:last-child { border-bottom: 0; }
}
