/* Piano Quest landing page. Colours are sampled from the book covers; headings use
   Balsamiq Sans, the typeface printed in every book. */
:root {
  --navy: #142d49;
  --navy-2: #1f4069;
  --cream: #fff8eb;
  --cream-2: #fdf0d9;
  --paper: #ffffff;
  --coral: #e66d50;
  --coral-ink: #c4502f;
  --teal: #2a9d8f;
  --teal-ink: #1d7a6f;
  --mint: #e3f4f0;
  --sun: #f4c04f;
  --sun-soft: #fdf1cf;
  --ink: #1d2b3a;
  --muted: #566476;
  --line: #e8dfcf;
  --shadow: 0 1px 2px rgba(20, 45, 73, .06), 0 10px 30px -12px rgba(20, 45, 73, .28);
  --shadow-lg: 0 2px 4px rgba(20, 45, 73, .06), 0 24px 50px -18px rgba(20, 45, 73, .38);
  --r: 18px;
  --head: "Balsamiq Sans", "Comic Sans MS", system-ui, sans-serif;
  --body: "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
body { margin: 0; font-family: var(--body); font-size: 17px; line-height: 1.6; color: var(--ink); background: var(--paper); }
img, video { max-width: 100%; height: auto; display: block; }
a { color: var(--teal-ink); }
h1, h2, h3, h4 { font-family: var(--head); color: var(--navy); line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.005em; }
h1 { font-size: clamp(2.1rem, 4.6vw, 3.5rem); }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.45rem); }
h3 { font-size: 1.28rem; }
p { margin: 0 0 1em; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.container { width: min(1160px, 100% - 32px); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--navy); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 12px; }
:focus-visible { outline: 3px solid var(--sun); outline-offset: 3px; border-radius: 6px; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5em; font: 800 1rem/1.2 var(--body); text-decoration: none;
  padding: .85em 1.35em; border-radius: 999px; border: 2px solid transparent; cursor: pointer; transition: transform .15s, box-shadow .15s, background .15s; white-space: nowrap; }
.btn svg { width: 1.15em; height: 1.15em; flex: none; }
.btn:hover { transform: translateY(-1px); }
.btn-coral { background: var(--coral); color: #fff; box-shadow: 0 8px 20px -8px rgba(230, 109, 80, .7); }
.btn-coral:hover { background: var(--coral-ink); }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--navy-2); }
.btn-sun { background: var(--sun); color: var(--navy); }
.btn-ghost { background: #fff; color: var(--navy); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--navy); }
.btn-outline-light { color: #fff; border-color: rgba(255, 255, 255, .45); background: transparent; }
.btn-outline-light:hover { border-color: #fff; }
.btn-sm { font-size: .9rem; padding: .6em 1em; }

/* ---------- top bars ---------- */
.utility { background: var(--navy); color: #dbe5f0; font-size: .85rem; }
.utility .container { display: flex; gap: 22px; justify-content: center; flex-wrap: wrap; padding: 8px 0; }
.utility span { display: inline-flex; align-items: center; gap: 7px; }
.utility span::before { content: "★"; color: var(--sun); font-size: .8em; }
@media (max-width: 600px) { .utility span + span { display: none; } }
.masthead { position: sticky; top: 0; z-index: 40; background: rgba(255, 255, 255, .94); backdrop-filter: saturate(1.4) blur(8px); border-bottom: 1px solid var(--line); }
.masthead .container { display: flex; align-items: center; gap: 20px; min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--navy); }
.brand svg { width: 40px; height: 40px; flex: none; }
.brand b { font: 700 1.35rem/1 var(--head); letter-spacing: .01em; display: block; }
.brand small { display: block; font: 700 .64rem/1.4 var(--body); letter-spacing: .16em; color: var(--muted); }
.nav { display: flex; gap: 4px; margin-left: auto; align-items: center; }
.nav a { color: var(--ink); text-decoration: none; font-weight: 700; font-size: .95rem; padding: 8px 12px; border-radius: 10px; }
.nav a:hover { background: var(--cream); }
.nav .btn { margin-left: 8px; }
.menu-btn { display: none; margin-left: auto; background: none; border: 0; padding: 8px; color: var(--navy); cursor: pointer; }
.menu-btn svg { width: 28px; height: 28px; }
@media (max-width: 920px) {
  .menu-btn { display: block; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; background: #fff; padding: 10px 16px 18px; border-bottom: 1px solid var(--line); box-shadow: var(--shadow); }
  .nav.open { display: flex; }
  .nav a { padding: 12px; }
  .nav .btn { margin: 8px 0 0; }
}

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; background: var(--cream); padding: clamp(40px, 7vw, 84px) 0 clamp(56px, 8vw, 96px); }
.sky { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.hero .container { position: relative; display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font: 800 .8rem/1 var(--body); letter-spacing: .14em; text-transform: uppercase; color: var(--coral-ink); }
.eyebrow.pill { background: var(--paper); border: 1px solid var(--line); padding: 8px 14px; border-radius: 999px; color: var(--navy); }
.hero h1 { margin: 18px 0 18px; }
.hero h1 em { font-style: normal; color: var(--teal); }
.lead { font-size: 1.16rem; color: #33475b; max-width: 36em; }
.ctas { display: flex; gap: 12px; flex-wrap: wrap; margin: 26px 0 14px; }
.fine { font-size: .9rem; color: var(--muted); }
.fan { position: relative; height: 470px; }
.fan a { position: absolute; width: 56%; border-radius: 10px; box-shadow: var(--shadow-lg); transition: transform .25s; }
.fan img { border-radius: 10px; width: 100%; height: auto; }
.fan .c1 { left: 0; top: 40px; transform: rotate(-8deg); }
.fan .c2 { right: 0; top: 40px; transform: rotate(7deg); }
.fan .c3 { left: 22%; top: 0; z-index: 2; }
.fan a:hover { transform: translateY(-6px) rotate(0); z-index: 3; }
.badge-float { position: absolute; z-index: 4; right: 4%; bottom: 6px; background: var(--sun); color: var(--navy); font: 700 1rem/1.15 var(--head); text-align: center;
  width: 118px; height: 118px; border-radius: 50%; display: grid; place-items: center; padding: 14px; box-shadow: var(--shadow); transform: rotate(8deg); }
@media (max-width: 880px) {
  .hero .container { grid-template-columns: 1fr; }
  .fan { height: 360px; max-width: 420px; width: 100%; margin: 8px auto 0; }
}
@media (max-width: 420px) { .fan { height: 300px; } .badge-float { width: 96px; height: 96px; font-size: .85rem; } }

/* ---------- stats strip ---------- */
.stats { background: var(--paper); border-block: 1px solid var(--line); }
.stats .container { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; }
.stats div { padding: 22px 14px; text-align: center; }
.stats div + div { border-left: 1px solid var(--line); }
.stats b { display: block; font: 700 1.6rem/1.1 var(--head); color: var(--navy); }
.stats span { font-size: .88rem; color: var(--muted); }
@media (max-width: 760px) {
  .stats .container { grid-template-columns: repeat(2, 1fr); }
  .stats div:nth-child(odd) { border-left: 0; }
  .stats div { border-top: 1px solid var(--line); }
  .stats div:last-child { grid-column: 1 / -1; }
}

/* ---------- sections ---------- */
.block { padding: clamp(56px, 8vw, 96px) 0; }
.block.tint { background: var(--cream); }
.block.mint { background: var(--mint); }
.section-head { max-width: 760px; margin: 0 auto 40px; text-align: center; }
.section-head p { color: var(--muted); font-size: 1.08rem; margin: 0; }
.section-head.left { margin-left: 0; text-align: left; }

/* problems */
.problems { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.prob { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); padding: 24px 24px 22px; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.prob .q { font: 700 1.12rem/1.3 var(--head); color: var(--coral-ink); margin: 0 0 12px; display: flex; gap: 10px; }
.prob .q::before { content: "“"; font-size: 2.2rem; line-height: .8; color: var(--coral); opacity: .5; }
.prob .a { margin: 0; color: #33475b; }
.prob .a b { color: var(--navy); }
.prob .where { margin-top: auto; padding-top: 14px; font-size: .82rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--teal-ink); }
@media (max-width: 960px) { .problems { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .problems { grid-template-columns: 1fr; } }

.kids { display: grid; grid-template-columns: .9fr 1.1fr; gap: 48px; align-items: center; margin-top: 64px; }
.kids ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.kids li { display: grid; grid-template-columns: 44px 1fr; gap: 14px; align-items: start; }
.kids li i { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; font-style: normal; font-size: 1.3rem; background: var(--sun-soft); }
.kids li b { display: block; font-family: var(--head); font-size: 1.08rem; color: var(--navy); }
.kids li span { color: #33475b; }
.pagepair { position: relative; height: 470px; }
.pagepair figure { position: absolute; margin: 0; width: 62%; background: #fff; border-radius: 8px; box-shadow: var(--shadow-lg); overflow: hidden; }
.pagepair figure:first-child { left: 0; top: 0; transform: rotate(-3deg); }
.pagepair figure:last-child { right: 0; top: 50px; transform: rotate(3deg); }
@media (max-width: 880px) { .kids { grid-template-columns: 1fr; } .pagepair { height: 420px; max-width: 520px; width: 100%; margin: 0 auto; } }
@media (max-width: 460px) { .pagepair { height: 330px; } }

/* how it works */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; counter-reset: step; }
.step { background: var(--paper); border-radius: var(--r); box-shadow: var(--shadow); overflow: hidden; display: flex; flex-direction: column; border: 1px solid var(--line); }
.step button { all: unset; cursor: zoom-in; display: block; background: #f4f1ea; padding: 18px 18px 0; }
.step button:focus-visible { outline: 3px solid var(--sun); outline-offset: -3px; }
.step img { border-radius: 6px 6px 0 0; box-shadow: 0 -2px 14px rgba(0, 0, 0, .08); aspect-ratio: 612 / 600; object-fit: cover; object-position: top; width: 100%; height: auto; }
.step .txt { padding: 18px 20px 22px; }
.step h3 { display: flex; gap: 10px; align-items: center; font-size: 1.12rem; }
.step h3::before { counter-increment: step; content: counter(step); flex: none; width: 30px; height: 30px; border-radius: 50%; background: var(--navy); color: #fff; display: grid; place-items: center; font-size: .95rem; }
.step p { margin: 0; color: #33475b; font-size: .96rem; }
@media (max-width: 980px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }
.routine { margin: 34px auto 0; max-width: 820px; background: var(--paper); border: 2px dashed #cfe7e1; border-radius: var(--r); padding: 18px 22px; display: flex; flex-wrap: wrap; gap: 10px 22px; justify-content: center; align-items: center; }
.routine b { font-family: var(--head); color: var(--navy); }
.routine span { display: inline-flex; align-items: center; gap: 8px; font-weight: 800; color: var(--teal-ink); }
.routine span i { font-style: normal; width: 26px; height: 26px; border-radius: 50%; border: 2px solid var(--teal); display: grid; place-items: center; font-size: .82rem; }

/* video */
.video-wrap { display: grid; grid-template-columns: 1.35fr .65fr; gap: 40px; align-items: center; }
.video-frame { position: relative; border-radius: 22px; overflow: hidden; box-shadow: var(--shadow-lg); background: var(--navy); aspect-ratio: 16 / 9; }
.video-frame video { width: 100%; height: 100%; object-fit: cover; }
.video-side ul { padding-left: 1.1em; margin: 0 0 1.2em; }
.video-side li { margin-bottom: 6px; }
@media (max-width: 880px) { .video-wrap { grid-template-columns: 1fr; } }

/* free sample */
.sample-band { background: var(--navy); color: #dbe5f0; position: relative; overflow: hidden; }
.sample-band h2 { color: #fff; }
.sample-band .section-head p { color: #c3d1e0; }
.downloads { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.dl { background: #fff; color: var(--ink); border-radius: 22px; padding: 26px; display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 24px; align-items: start; box-shadow: var(--shadow-lg); }
.dl img { border-radius: 8px; box-shadow: var(--shadow); width: 100%; height: auto; }
.dl h3 { margin-bottom: 6px; }
.dl .meta { font-size: .86rem; font-weight: 800; color: var(--teal-ink); letter-spacing: .04em; text-transform: uppercase; margin-bottom: 10px; }
.dl ul { margin: 0 0 18px; padding-left: 1.1em; font-size: .95rem; color: #33475b; }
.dl .btn { width: 100%; }
.dl .peek { all: unset; display: block; margin-top: 10px; text-align: center; font-weight: 800; font-size: .9rem; color: var(--teal-ink); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.sample-note { text-align: center; margin: 28px 0 0; color: #c3d1e0; }
@media (max-width: 920px) { .downloads { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 480px) { .dl { grid-template-columns: minmax(0, 1fr); padding: 20px; } .dl img { max-width: 170px; } }
@media (max-width: 420px) { .btn { white-space: normal; text-align: center; } }

/* books */
.track-head { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; margin: 0 0 18px; }
.track-head h3 { font-size: 1.45rem; margin: 0; }
.track-head p { margin: 0; color: var(--muted); }
.track-head .set { margin-left: auto; }
.books { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; margin-bottom: 56px; }
.book { --accent: var(--navy); --tint: var(--cream); background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); display: flex; flex-direction: column; overflow: hidden; }
.book .cv { all: unset; cursor: zoom-in; display: block; background: var(--tint); padding: 18px 18px 0; }
.book .cv:focus-visible { outline: 3px solid var(--sun); outline-offset: -3px; }
.book .cv img { border-radius: 6px 6px 0 0; box-shadow: 0 -2px 14px rgba(0, 0, 0, .12); width: 100%; height: auto; }
.book .bd { padding: 16px 16px 18px; display: flex; flex-direction: column; flex: 1; }
.book .num { align-self: flex-start; font: 800 .7rem/1 var(--body); letter-spacing: .12em; color: #fff; background: var(--accent); padding: 6px 10px; border-radius: 999px; margin-bottom: 10px; }
.book h4 { font-size: 1.08rem; margin: 0 0 6px; }
.book .trains { font-size: .9rem; color: #33475b; margin: 0 0 10px; }
.book .start { font-size: .82rem; color: var(--muted); margin: 0 0 14px; padding: 8px 10px; background: var(--tint); border-radius: 10px; }
.book .start b { color: var(--ink); }
.book .act { margin-top: auto; display: grid; gap: 8px; }
.book .act a, .book .act button { font: 800 .86rem/1.2 var(--body); text-align: center; padding: 9px 10px; border-radius: 999px; text-decoration: none; cursor: pointer; }
.book .act .look { background: #fff; color: var(--navy); border: 2px solid var(--line); }
.book .act .look:hover { border-color: var(--accent); }
.book .act .buy { background: var(--accent); color: #fff; border: 2px solid var(--accent); }
.book .act .pb { font-weight: 700; font-size: .8rem; color: var(--muted); padding: 2px; }
.book .act .pb:hover { color: var(--ink); }
@media (max-width: 1100px) { .books { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 720px) { .books { grid-template-columns: repeat(2, 1fr); gap: 12px; } .book .bd { padding: 14px 12px 14px; } }
@media (max-width: 720px) { .book .num { font-size: .6rem; letter-spacing: .05em; padding: 5px 8px; } }
@media (max-width: 360px) { .books { grid-template-columns: 1fr; } }

/* teachers */
.teach { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: start; }
.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); padding: 26px; box-shadow: var(--shadow); }
.card + .card { margin-top: 24px; }
.week { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.week li { display: grid; grid-template-columns: 104px 1fr; gap: 14px; align-items: baseline; }
.week li b { font: 700 .8rem/1.3 var(--body); text-transform: uppercase; letter-spacing: .08em; color: var(--coral-ink); }
.place { width: 100%; border-collapse: collapse; font-size: .95rem; }
.place th, .place td { text-align: left; padding: 11px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.place th { font-weight: 700; color: #33475b; }
.place td { font-weight: 800; color: var(--navy); white-space: nowrap; }
.place tr:last-child th, .place tr:last-child td { border-bottom: 0; }
.licence { background: var(--sun-soft); border-color: #f1dca2; }
.licence h3 { display: flex; gap: 10px; align-items: center; }
.price-row { display: flex; gap: 12px; flex-wrap: wrap; margin: 14px 0 6px; }
.price { background: #fff; border-radius: 14px; padding: 12px 16px; border: 1px solid #f1dca2; flex: 1 1 140px; }
.price b { display: block; font: 700 1.5rem/1.1 var(--head); color: var(--navy); }
.price span { font-size: .85rem; color: var(--muted); }
@media (max-width: 880px) { .teach { grid-template-columns: 1fr; } }
@media (max-width: 420px) { .week li { grid-template-columns: 1fr; gap: 2px; } .place td { white-space: normal; } }

/* christmas */
.xmas { background: linear-gradient(180deg, #123b2e 0%, #0f3127 100%); color: #e3efe9; position: relative; overflow: hidden; }
.xmas h2, .xmas h3 { color: #fff; }
.xmas .eyebrow { color: #f6c9b9; }
.xmas-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 48px; align-items: center; position: relative; }
.xmas-cover { all: unset; cursor: zoom-in; display: block; max-width: 360px; justify-self: center; }
.xmas-cover img { border-radius: 10px; box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .6); width: 100%; height: auto; }
.xmas ul.ticks { list-style: none; padding: 0; margin: 18px 0 24px; display: grid; gap: 8px; }
.xmas ul.ticks li { padding-left: 30px; position: relative; }
.xmas ul.ticks li::before { content: "★"; position: absolute; left: 4px; color: var(--sun); }
.xmas .carols { font-size: .9rem; color: #b9d0c5; margin-top: 18px; }
.xmas .recital { background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .14); border-radius: 16px; padding: 16px 18px; margin: 0 0 22px; }
.xmas .recital b { color: #fff; }
.duet { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 48px; }
.duet button { all: unset; cursor: zoom-in; display: block; background: #fff; border-radius: 8px; overflow: hidden; box-shadow: 0 20px 40px -18px rgba(0, 0, 0, .6); }
.duet button:focus-visible { outline: 3px solid var(--sun); }
.duet img { aspect-ratio: 612 / 520; object-fit: cover; object-position: top; width: 100%; height: auto; }
.duet-cap { grid-column: 1 / -1; text-align: center; font-size: .9rem; color: #b9d0c5; margin: 0; }
@media (max-width: 880px) { .xmas-grid { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .duet { grid-template-columns: 1fr; } }

/* worksheets */
.ws { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; }
.ws a { text-decoration: none; color: var(--ink); background: #fff; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; box-shadow: var(--shadow); transition: transform .15s; }
.ws a:hover { transform: translateY(-3px); }
.ws img { width: 100%; height: auto; aspect-ratio: 612 / 792; object-fit: cover; }
.ws span { display: block; padding: 10px 12px 12px; font-weight: 800; font-size: .88rem; line-height: 1.3; }
@media (max-width: 900px) { .ws { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 520px) { .ws { grid-template-columns: repeat(2, 1fr); } }

/* where to buy */
.buy-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; max-width: 960px; margin: 0 auto; }
.buy-card { background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 28px; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.buy-card.best { border: 2px solid var(--teal); position: relative; }
.buy-card.best::before { content: "Best for teachers"; position: absolute; top: -13px; left: 24px; background: var(--teal); color: #fff; font: 800 .74rem/1 var(--body); letter-spacing: .08em; text-transform: uppercase; padding: 7px 12px; border-radius: 999px; }
.buy-card .big { font: 700 2.2rem/1 var(--head); color: var(--navy); margin: 6px 0 4px; }
.buy-card .big small { font: 700 1rem var(--body); color: var(--muted); }
.buy-card ul { padding-left: 1.1em; margin: 14px 0 22px; color: #33475b; }
.buy-card .btn { margin-top: auto; }
@media (max-width: 760px) { .buy-grid { grid-template-columns: 1fr; } }

/* faq */
.faq { max-width: 820px; margin: 0 auto; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 14px; margin-bottom: 12px; padding: 0 20px; }
.faq summary { cursor: pointer; list-style: none; padding: 18px 30px 18px 0; font: 700 1.08rem/1.35 var(--head); color: var(--navy); position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: 14px; font: 800 1.5rem/1 var(--body); color: var(--coral); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: #33475b; margin: 0 0 18px; }

/* final cta */
.final { text-align: center; background: var(--cream); position: relative; overflow: hidden; }
.final .sky { opacity: .4; }
.final .ctas { justify-content: center; }

/* footer */
footer.site { background: var(--navy); color: #b7c6d6; font-size: .92rem; padding: 48px 0 30px; }
footer.site .container { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
footer.site .brand { display: inline-flex; color: #fff; margin-bottom: 12px; }
footer.site .brand svg rect { fill: #24507f; }
footer.site .brand small { color: #9fb2c6; }
footer.site h4 { color: #fff; font-size: 1rem; margin-bottom: 10px; }
footer.site a { color: #dbe5f0; text-decoration: none; display: block; padding: 3px 0; }
footer.site a:hover { color: #fff; text-decoration: underline; }
footer.site .legal { grid-column: 1 / -1; border-top: 1px solid rgba(255, 255, 255, .14); padding-top: 18px; font-size: .82rem; color: #93a6ba; }
@media (max-width: 760px) { footer.site .container { grid-template-columns: 1fr; } }

/* lightbox */
.lb { position: fixed; inset: 0; z-index: 100; background: rgba(10, 22, 36, .88); display: none; align-items: center; justify-content: center; padding: 16px; }
.lb.open { display: flex; }
.lb figure { margin: 0; max-width: min(760px, 100%); max-height: 100%; display: flex; flex-direction: column; align-items: center; }
.lb img { max-height: calc(100vh - 130px); width: auto; max-width: 100%; border-radius: 8px; background: #fff; box-shadow: 0 30px 80px rgba(0, 0, 0, .5); }
.lb figcaption { color: #e6edf5; text-align: center; margin-top: 12px; font-size: .95rem; }
.lb figcaption b { color: #fff; font-family: var(--head); }
.lb .x, .lb .nav-b { position: absolute; background: rgba(255, 255, 255, .14); color: #fff; border: 0; width: 48px; height: 48px; border-radius: 50%; font-size: 1.6rem; cursor: pointer; display: grid; place-items: center; }
.lb .x:hover, .lb .nav-b:hover { background: rgba(255, 255, 255, .28); }
.lb .x { top: 14px; right: 14px; }
.lb .prev { left: 14px; top: 50%; transform: translateY(-50%); }
.lb .next { right: 14px; top: 50%; transform: translateY(-50%); }
.lb .lb-cta { margin-top: 12px; display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
@media (max-width: 600px) { .lb .prev, .lb .next { top: auto; bottom: 14px; transform: none; } .lb img { max-height: calc(100vh - 190px); } }
body.lb-open { overflow: hidden; }
