/* Pinnacle newsletter – Oak Tree Mobility */

@font-face { font-family: "Pinnacle Sans"; src: local("Euclid Circular A Light"), url("fonts/outfit-latin-300-normal.woff2") format("woff2"); font-weight: 300; font-display: swap; }
@font-face { font-family: "Pinnacle Sans"; src: local("Euclid Circular A"), url("fonts/outfit-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Pinnacle Sans"; src: local("Euclid Circular A Medium"), url("fonts/outfit-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Pinnacle Sans"; src: local("Euclid Circular A SemiBold"), url("fonts/outfit-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Pinnacle Sans"; src: local("Euclid Circular A Bold"), url("fonts/outfit-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Pinnacle Display"; src: url("fonts/plus-jakarta-sans-latin-800-normal.woff2") format("woff2"); font-weight: 800; font-display: swap; }

/* Single deliberate dark look with cream bands; every colour set explicitly. */
:root {
  color-scheme: dark;
  /* Oak Tree palette (Figma variables) */
  --dark-green-1: #17494d;
  --dark-green-2: #09595e;
  --dark-green-3: #188087;
  --dark-green-4: #94ccd0;
  --light-green: #e5fcff;
  --green: #00ad74;
  --trustpilot: #00b67a;
  --charcoal: #242320;
  --beige-1: #af9c85;
  --beige-3: #f2e7d5;
  --beige-4: #fff7f0;
  --yellow: #fec51d;
  --ink-deep: #061213;
  --navy: #272b5e;
  --navy-2: #2e3262;
  --red: #e13b26;
  --spoon: #aa6f5b;
  --spoon-2: #905744;
  --gold-1: #f6e78f;
  --gold-2: #c69c3c;
  --gold-dark: #3b2a07;

  --sidebar: 280px;
  --radius: 18px;
  --gutter: clamp(16px, 4vw, 48px);
  --font: "Pinnacle Sans", "Euclid Circular A", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --font-display: "Pinnacle Display", var(--font);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 16px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  font-family: var(--font);
  font-weight: 400;
  color: #fff;
  background: var(--ink-deep);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
table { border-collapse: collapse; width: 100%; }
h1, h2, h3, h4 { margin: 0; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: #fff; color: var(--charcoal); padding: 8px 12px; border-radius: 8px; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 2px; }

/* ---------- Sidebar ---------- */
.sidebar {
  position: fixed; inset: 0 auto 0 0; width: var(--sidebar); z-index: 40;
  background: linear-gradient(180deg, #0f3134, #0a2224);
  border-right: 1px solid rgba(148, 204, 208, .15);
  padding: calc(20px + env(safe-area-inset-top, 0px)) 16px calc(20px + env(safe-area-inset-bottom, 0px)) calc(16px + env(safe-area-inset-left, 0px)); overflow-y: auto;
}
.profile { display: flex; align-items: center; gap: 12px; padding: 0 4px 18px; border-bottom: 1px solid rgba(148, 204, 208, .2); }
.profile__name { font-weight: 600; font-size: 14px; text-transform: uppercase; letter-spacing: .04em; }
.profile__role { font-size: 11px; color: var(--dark-green-4); text-transform: uppercase; letter-spacing: .06em; }
.nav { list-style: none; margin: 18px 0 0; padding: 0; }
.nav a {
  display: block; padding: 7px 14px; border-radius: 999px; margin: 2px 0;
  color: var(--light-green); text-decoration: none; font-size: 13px; font-weight: 500;
  text-transform: uppercase; letter-spacing: .03em;
}
.nav a:hover { background: rgba(24, 128, 135, .35); }
.nav a[aria-current="true"] { background: linear-gradient(90deg, var(--dark-green-3), #1d9aa2); color: #fff; font-weight: 600; }

.nav-toggle { display: none; }
.scrim { position: fixed; inset: 0; background: rgba(0, 0, 0, .5); z-index: 35; }

/* ---------- Main ---------- */
.main { margin-left: var(--sidebar); min-height: 100vh; background: var(--ink-deep); }
.band { padding: clamp(40px, 6vw, 88px) var(--gutter); position: relative; overflow: hidden; }
.band > * { max-width: 1180px; margin-left: auto; margin-right: auto; }

.h2 {
  font-weight: 700; text-transform: uppercase; letter-spacing: .08em;
  font-size: clamp(24px, 3.2vw, 40px); text-align: center; margin-bottom: clamp(24px, 4vw, 48px);
}
.h2--left { text-align: left; margin-bottom: 18px; }
.accent { color: var(--green); }

.pill { display: inline-block; padding: 8px 24px; border-radius: 999px; font-weight: 700; text-transform: uppercase; font-size: 14px; letter-spacing: .04em; }
.pill--green { background: var(--green); color: var(--charcoal); }

.avatar { display: inline-grid; place-items: center; border-radius: 50%; overflow: hidden; background: var(--dark-green-1); color: #fff; flex: none; }
.avatar img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.avatar__initials { font-weight: 700; letter-spacing: .02em; }
.avatar--profile { width: 44px; height: 44px; background: var(--dark-green-4); color: var(--dark-green-2); font-size: 22px; font-weight: 700; }
.avatar--sm { width: 56px; height: 56px; font-size: 18px; }
.avatar--lg { width: clamp(120px, 14vw, 170px); height: clamp(120px, 14vw, 170px); font-size: 40px; }
.avatar--xl { width: clamp(150px, 18vw, 200px); height: clamp(150px, 18vw, 200px); font-size: 52px; }
.avatar--gold, .avatar--medal-1 { background: var(--yellow); color: var(--charcoal); }
.avatar--medal-2 { background: #e2e6e6; color: var(--charcoal); }
.avatar--medal-3 { background: #c98d74; color: #fff; }

/* ---------- Masthead & hero ---------- */
.masthead {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 30;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px;
  margin: 0 var(--gutter); padding: 14px clamp(16px, 3vw, 40px);
  border-radius: 0 0 24px 24px;
  background: rgba(195, 206, 207, .14); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, .12); border-top: 0;
  font-size: clamp(14px, 1.6vw, 22px);
}
.masthead__date { font-weight: 600; }
.masthead__logo { width: clamp(130px, 14vw, 190px); justify-self: center; }
.masthead__issue { justify-self: end; font-style: italic; font-weight: 300; text-transform: uppercase; }
.masthead__issue strong { font-style: normal; font-weight: 700; margin-left: 6px; }

.hero {
  padding: clamp(32px, 6vw, 80px) var(--gutter) clamp(24px, 4vw, 48px);
  background:
    url("img/watermark.png") right -60px top -40px / auto 120% no-repeat,
    radial-gradient(120% 90% at 70% 0%, #1c5155 0%, #0f3437 45%, #0a2224 100%);
  text-align: center;
}
.hero { background-blend-mode: soft-light, normal; }
.hero__title { width: min(100%, 900px); margin: 0 auto; }
.hero__sub { margin: 0; font-size: clamp(18px, 2.6vw, 34px); letter-spacing: .32em; text-transform: uppercase; font-weight: 300; color: var(--light-green); }

/* ---------- Top 3 ---------- */
.band--top3 { background: linear-gradient(180deg, #0a2224, #0b2a2c); }
.podium { list-style: none; margin: 0 auto; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(12px, 2vw, 28px); align-items: end; max-width: 900px; }
.podium__item {
  position: relative; display: flex; flex-direction: column; align-items: center; gap: 10px;
  background: var(--dark-green-2); border: 1px solid rgba(148, 204, 208, .35); border-radius: var(--radius);
  padding: clamp(20px, 3vw, 32px) 12px clamp(16px, 2vw, 24px); text-align: center;
}
.podium__item--1 { padding-top: clamp(28px, 4vw, 48px); padding-bottom: clamp(28px, 4vw, 40px); border-color: rgba(254, 197, 29, .45); }
.podium__rank { position: absolute; top: 6px; left: 14px; font-weight: 700; font-size: clamp(28px, 3.5vw, 48px); color: var(--dark-green-3); }
.podium__amount { font-weight: 700; font-size: clamp(24px, 3vw, 44px); line-height: 1; }
.podium__item--1 .podium__amount { color: var(--yellow); }
.podium__item--2 .podium__amount { color: #dfe7e7; }
.podium__item--3 .podium__amount { color: #c98d74; }
.podium__name { font-weight: 500; text-transform: uppercase; font-size: clamp(13px, 1.4vw, 18px); letter-spacing: .03em; }

/* ---------- Story ---------- */
.band--story { background: linear-gradient(180deg, #154246, #10373a); }
.story { display: grid; grid-template-columns: minmax(180px, 280px) 1fr; gap: clamp(24px, 5vw, 64px); align-items: start; }
.story__aside { display: flex; flex-direction: column; align-items: center; gap: 22px; }
.prose { font-size: 15px; line-height: 1.6; font-weight: 300; }
.prose strong { font-weight: 600; color: var(--yellow); }
.prose--center { text-align: center; }

/* ---------- Tables ---------- */
.table caption { caption-side: top; text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .12em; padding: 0 0 10px 4px; color: var(--light-green); }
.table th { font-size: 11px; text-transform: uppercase; letter-spacing: .1em; font-weight: 500; text-align: left; padding: 10px 14px; }
.table td { padding: 6px 14px; font-size: 14px; }
.table .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.table .rank { width: 48px; text-align: right; }

.band--record { background: linear-gradient(180deg, #0b2a2c, #061213); }
.record { display: grid; grid-template-columns: 1fr 1.4fr; gap: clamp(16px, 3vw, 32px); align-items: start; }
.table--white { background: #fff; color: var(--charcoal); border-radius: var(--radius); overflow: hidden; }
.table--white caption { color: var(--light-green); }
.table--white thead th { background: var(--dark-green-1); color: #fff; }
.table--white tbody tr + tr td { border-top: 1px solid #eef1f1; }
.table--white tr.is-top td { background: var(--green); color: #fff; font-weight: 600; }
.table--white tr.is-record td { background: var(--yellow); font-weight: 600; }
.table--best td:nth-child(n+2) { background: var(--trustpilot); color: #fff; }
.table--best tbody tr + tr td:nth-child(n+2) { border-top-color: rgba(255, 255, 255, .25); }
.legend { list-style: none; padding: 0; display: flex; gap: 28px; margin-top: 20px; font-size: 12px; text-transform: uppercase; letter-spacing: .12em; flex-wrap: wrap; }
.legend li { display: flex; align-items: center; gap: 10px; }
.swatch { width: 26px; height: 26px; border-radius: 6px; display: inline-block; }
.swatch--yellow { background: var(--yellow); }
.swatch--green { background: var(--green); }

/* ---------- League of champions ---------- */
.band--champions { background: linear-gradient(180deg, var(--dark-green-1), #0f3a3d); }
.banner {
  display: grid; place-items: center; text-align: center;
  max-width: 860px; min-height: clamp(64px, 9vw, 110px); padding: 0 40px; margin-bottom: 32px;
  background: url("img/banner.png") center / 100% 100% no-repeat;
  font-weight: 700; text-transform: uppercase; letter-spacing: .08em; font-size: clamp(20px, 3vw, 38px);
}
.panel { background: rgba(24, 128, 135, .45); border: 1px solid rgba(148, 204, 208, .25); border-radius: var(--radius); overflow: hidden; }
.panel--pad { padding: 24px; }
.panel__title { font-size: 13px; text-transform: uppercase; letter-spacing: .12em; font-weight: 500; text-align: center; margin-bottom: 14px; }
.band--champions > .panel { max-width: 760px; }
.table--teal thead th { color: var(--light-green); border-bottom: 1px solid rgba(255, 255, 255, .3); }
.table--teal tr.is-top td { background: rgba(255, 255, 255, .06); }
.table--teal td { font-weight: 400; }
.champ-extra { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; max-width: 760px; margin-top: 16px; }
.panel--prizes { padding: 20px 24px; }
.prizes { list-style: none; margin: 0; padding: 0; }
.prizes li { display: grid; grid-template-columns: 48px 1fr; padding: 4px 0; font-size: 16px; }
.prizes li span { font-weight: 700; text-align: center; }
.prizes li strong { text-align: center; }
.rules { display: grid; gap: 12px; }
.panel--rule { padding: 16px 20px; text-align: center; font-size: 14px; background: rgba(9, 89, 94, .55); }
.panel--rule p { margin: 0; }
.panel--rule strong { color: var(--yellow); font-weight: 600; }

/* ---------- Trustpilot ---------- */
.band--cream { background: var(--beige-4); color: var(--charcoal); }
.art { margin: 0 auto 32px; }
.art--tp { width: min(100%, 520px); }
.tp-prizes {
  display: grid; grid-template-columns: repeat(3, 1fr); max-width: 860px; margin-bottom: 32px;
  border: 6px solid transparent; border-radius: 28px;
  background: linear-gradient(#fff, #fff) padding-box, linear-gradient(120deg, #b88a2e, #f8e48a, #b88a2e) border-box;
  padding: clamp(14px, 2vw, 24px) 0;
}
.tp-prize { text-align: center; color: #c9962a; }
.tp-prize + .tp-prize { border-left: 2px solid rgba(36, 35, 32, .4); }
.tp-prize span { display: block; font-weight: 500; font-size: clamp(14px, 2vw, 26px); }
.tp-prize strong { font-size: clamp(32px, 6vw, 72px); line-height: 1; }
.tp-tables { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; align-items: start; max-width: 860px; }
.table--beige { background: var(--beige-3); border-radius: var(--radius); overflow: hidden; }
.table--beige caption { caption-side: top; background: #56c39f; color: var(--charcoal); text-align: center; font-weight: 700; padding: 16px 8px; border-radius: var(--radius) var(--radius) 0 0; }
.table--beige thead th { background: var(--green); color: #fff; }
.table--beige td { font-size: 13px; padding: 5px 14px; }
.table--spoon caption { background: var(--spoon); color: #fff; }
.table--spoon thead th { background: var(--spoon-2); }

.band--tpstar { border-top: 1px solid #eadfcf; }
.tp-badge { display: flex; justify-content: center; margin-bottom: -26px; position: relative; z-index: 1; }
.tp-badge img { background: #fff; border: 2px solid var(--trustpilot); border-radius: 999px; padding: 12px 28px; width: min(100%, 420px); box-sizing: content-box; }
.tp-message { background: #38a878; color: #fff; border-radius: 24px; padding: 44px clamp(20px, 5vw, 64px) 28px; text-align: center; max-width: 780px; font-weight: 400; }
.tp-star { display: grid; grid-template-columns: 1.3fr 1fr; gap: 24px; align-items: center; max-width: 780px; margin-top: 24px; }
.tp-reviews { display: grid; gap: 16px; }
.review { background: #fff; border-radius: 12px; padding: 14px 16px; box-shadow: 0 4px 16px rgba(0, 0, 0, .08); font-size: 13px; line-height: 1.5; }
.review__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.review__age { font-size: 11px; color: #6b6b6b; }
.review__title { font-size: 13px; font-weight: 600; margin-bottom: 6px; }
.stars { display: inline-flex; gap: 2px; }
.stars i { width: 18px; height: 18px; background: var(--trustpilot); display: inline-block;
  position: relative; }
.stars i::after { content: "★"; position: absolute; inset: 0; display: grid; place-items: center; color: #fff; font-size: 14px; line-height: 1; }
.tp-phone { width: min(100%, 300px); justify-self: center; }

/* ---------- Teams ---------- */
.band--team { background: radial-gradient(120% 120% at 100% 0%, #11555a 0%, #0a3335 50%, #092f31 100%); border-top: 1px solid rgba(148, 204, 208, .12); }
.team__head { display: flex; align-items: center; gap: clamp(16px, 3vw, 32px); margin-bottom: 28px; }
.avatar--team { width: clamp(110px, 14vw, 170px); height: clamp(110px, 14vw, 170px); border-radius: 22px; background: var(--dark-green-3); font-size: 40px; }
.team__name { font-weight: 700; font-size: clamp(30px, 5vw, 64px); letter-spacing: .08em; text-transform: uppercase; line-height: 1.05; margin-bottom: 10px; }
.shoutouts { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
.shoutout { background: #fff; color: var(--charcoal); border-radius: 22px; padding: 18px 22px; font-size: 14px; line-height: 1.55; }
.shoutout__head { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.shoutout__head h3 { font-size: 15px; font-weight: 600; }
.team__sub { margin: 36px auto 16px; font-size: 14px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.pictures { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.pictures figure { margin: 0; border-radius: 18px; overflow: hidden; background: rgba(255, 255, 255, .05); }
.pictures img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.pictures figcaption { padding: 8px 12px; font-size: 13px; }
.empty { color: var(--dark-green-4); font-size: 14px; font-style: italic; }

/* ---------- Top Gun ---------- */
.band--topgun {
  background: url("img/stripes.png") center top / cover no-repeat, var(--navy);
  background-blend-mode: soft-light, normal;
}
.topgun-hero { position: relative; max-width: 900px; margin-bottom: 32px; }
.topgun-hero__team { width: 72%; margin: 0 auto; }
.topgun-hero__logo { width: 92%; margin: -16% auto 0; position: relative; }
.topgun { display: grid; grid-template-columns: 1.25fr 1fr; gap: 24px; align-items: start; }
.panel--navy { background: var(--navy-2); border-color: rgba(255, 255, 255, .12); }
.table--navy thead th { color: #fff; }
.table--navy td { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; padding: 5px 14px; }
.table--navy tr.is-top td { background: var(--red); }
.table--navy tr.is-done td { background: var(--green); }
.topgun__side { display: grid; gap: 20px; }
.topgun__100k { border-radius: var(--radius); width: 100%; }
.prize-pot { text-align: center; font-weight: 700; text-transform: uppercase; font-size: clamp(16px, 2vw, 22px); line-height: 1.3; }
.prize-pot p { margin: 0; }
.prize-pot p + p::before { content: "–"; display: block; }
.prize-pot__lead { font-size: 1.15em; }

/* ---------- Hall of fame ---------- */
.band--hof { background: linear-gradient(135deg, #6b4f12 0%, #3b2a07 55%, #120d03 100%); text-align: center; }
.art--hof { width: min(100%, 640px); }
.art-heading { margin: 40px auto 20px; }
.art-heading img { margin: 0 auto; width: min(100%, 520px); }
.winners { max-width: 860px; margin: 0 auto 18px; background: linear-gradient(90deg, #f6e78f, #d9b75a); border-radius: 22px; padding: 14px 16px 18px; color: var(--gold-dark); }
.winners__month { font-weight: 800; font-family: var(--font-display); text-transform: uppercase; font-size: clamp(16px, 2.2vw, 26px); margin-bottom: 10px; }
.winners__list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.winners__list li { display: flex; flex-direction: column; align-items: center; gap: 6px; width: 92px; }
.avatar--winner { width: 84px; height: 84px; border-radius: 14px; background: #fff6d8; color: var(--gold-dark); font-size: 26px; }
.winners__name { font-size: 10px; font-weight: 700; text-transform: uppercase; background: #f2df8c; border-radius: 4px; padding: 2px 6px; line-height: 1.2; }
.table--hof { max-width: 720px; margin: 0 auto; background: var(--beige-3); color: var(--charcoal); border-radius: 22px; overflow: hidden; }
.table--hof thead th { background: linear-gradient(90deg, #f3e691, #d7b45a); color: var(--charcoal); font-weight: 700; text-align: center; padding: 16px; }
.table--hof td { text-align: center; text-transform: uppercase; font-size: 13px; padding: 6px 14px; }
.table--hof .num { text-align: center; }

/* ---------- Calendar ---------- */
.band--calendar { background: radial-gradient(120% 120% at 100% 0%, #15575c, #093336 60%); text-align: center; }
.art--cal { width: min(100%, 440px); margin-bottom: 8px; }
.cal-month { text-transform: uppercase; letter-spacing: .2em; font-weight: 600; margin-bottom: 24px; color: var(--light-green); }
.calendar { display: grid; grid-template-columns: repeat(7, 1fr); background: rgba(195, 206, 207, .85); color: var(--charcoal); border-radius: 28px; padding: 12px clamp(8px, 2vw, 16px) 20px; max-width: 900px; }
.calendar__dow { font-weight: 700; text-transform: uppercase; letter-spacing: .08em; padding: 14px 0; border-bottom: 2px solid #fff; font-size: clamp(11px, 1.4vw, 16px); }
.calendar__day { min-height: clamp(48px, 7vw, 86px); padding: 10px 4px; border-bottom: 2px solid rgba(255, 255, 255, .8); display: flex; flex-direction: column; align-items: center; gap: 4px; }
.calendar__num { font-weight: 700; font-size: clamp(13px, 1.6vw, 18px); }
.calendar__event { font-size: 11px; background: var(--dark-green-2); color: #fff; border-radius: 6px; padding: 2px 6px; }

.footer { padding: 28px var(--gutter) 40px; text-align: center; font-size: 12px; color: var(--dark-green-4); }
.error { margin: 16px var(--gutter); padding: 14px 18px; border-radius: 12px; background: #5a1a12; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .record, .topgun { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  :root { --sidebar: 0px; }
  .sidebar { width: min(300px, 85vw); transform: translateX(-100%); transition: transform .25s ease; }
  .sidebar.is-open { transform: none; }
  .nav-toggle {
    display: grid; place-items: center; position: fixed; z-index: 45; left: 10px; top: 10px;
    width: 44px; height: 44px; border-radius: 12px; left: calc(10px + env(safe-area-inset-left, 0px)); top: calc(10px + env(safe-area-inset-top, 0px)); border: 1px solid rgba(255, 255, 255, .2);
    background: rgba(9, 47, 49, .85); color: #fff; cursor: pointer;
  }
  .nav-toggle__bars, .nav-toggle__bars::before, .nav-toggle__bars::after { content: ""; display: block; width: 20px; height: 2px; background: currentColor; position: relative; }
  .nav-toggle__bars::before { position: absolute; top: -6px; }
  .nav-toggle__bars::after { position: absolute; top: 6px; }
  .masthead { padding-left: 60px; }
  .story { grid-template-columns: 1fr; }
  .tp-tables { grid-template-columns: 1fr; }
  .champ-extra, .tp-star { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .masthead { grid-template-columns: 1fr auto; margin: 0; border-radius: 0 0 16px 16px; }
  .masthead__logo { grid-column: 1 / -1; grid-row: 1; justify-self: center; }
  .masthead__date { font-size: 13px; }
  .masthead__issue { font-size: 13px; }
  .podium { grid-template-columns: 1fr; }
  .podium__item--1 { order: -1; }
  .team__head { flex-direction: column; align-items: flex-start; }
  .table td, .table th { padding-left: 10px; padding-right: 10px; }
  .table--navy td { font-size: 11px; }
  .winners__list li { width: 76px; }
  .avatar--winner { width: 68px; height: 68px; }
}

body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 50; background: #0a2224; }

/* ---------- Editing ---------- */
.btn {
  font: inherit; font-size: 14px; font-weight: 600; cursor: pointer;
  border: 1px solid #b9c7c8; background: #ffffff; color: #17494d;
  border-radius: 999px; padding: 9px 18px; line-height: 1.2;
}
.btn:hover { background: #e5fcff; }
.btn:disabled { opacity: .5; cursor: default; }
.btn--small { font-size: 13px; padding: 6px 12px; }
.btn--primary { background: #00ad74; border-color: #00ad74; color: #ffffff; }
.btn--primary:hover { background: #009865; }
.btn--ghost { background: transparent; border-color: transparent; color: #17494d; text-decoration: underline; }
.btn--ghost:hover { background: rgba(23, 73, 77, .08); }
.btn--light { background: #ffffff; color: #17494d; }
.btn--danger { background: #ffffff; border-color: #c0392b; color: #b03123; }
.btn--danger:hover { background: #fdecea; }
.btn-icon { border: 0; background: transparent; color: #7a8a8b; cursor: pointer; font-size: 14px; width: 32px; height: 32px; border-radius: 8px; }
.btn-icon:hover { background: #fdecea; color: #b03123; }
.fab {
  position: fixed; z-index: 47;
  right: calc(20px + env(safe-area-inset-right, 0px)); bottom: calc(20px + env(safe-area-inset-bottom, 0px));
  display: flex; flex-direction: column; align-items: flex-end; gap: 10px;
  max-width: calc(100vw - 32px - env(safe-area-inset-left, 0px) - env(safe-area-inset-right, 0px));
}
.fab__buttons { display: flex; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }
.fab__buttons .btn { box-shadow: 0 6px 20px rgba(0, 0, 0, .35); padding: 12px 22px; font-size: 15px; }
.fab__buttons .btn[hidden] { display: none !important; }
.import-confirm { width: min(440px, 100%); max-height: 60vh; overflow-y: auto; color: #242320; box-shadow: 0 10px 30px rgba(0, 0, 0, .35); font-size: 14px; }
.import-list { margin: 8px 0 0; padding-left: 18px; display: grid; gap: 2px; }
.is-editing .fab { bottom: calc(84px + env(safe-area-inset-bottom, 0px)); }
@media (max-width: 560px) { .is-editing .fab { bottom: calc(130px + env(safe-area-inset-bottom, 0px)); } }

.editor {
  max-width: 1180px; margin: 28px auto 0; position: relative; z-index: 2;
  background: #f4f7f7; color: #242320; border: 2px dashed #00ad74; border-radius: 18px;
  padding: 20px; text-align: left; font-size: 14px;
}
.editor--global { margin: 20px var(--gutter) 0; max-width: none; }
.editor__inner { display: grid; gap: 18px; }
.editor__title { font-size: 18px; font-weight: 700; color: #17494d; }
.editor__row { display: flex; flex-wrap: wrap; gap: 16px; align-items: flex-end; }
.editor__row > * { flex: 1 1 200px; min-width: 0; }
.editor__actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; }
.editor__note { margin: 0; color: #3c4a4b; line-height: 1.5; }
.editor__note strong { color: #17494d; }
.editor__more { border-top: 1px solid #d5dfe0; padding-top: 12px; }
.editor__more summary { cursor: pointer; font-weight: 600; color: #17494d; }
.editor__more[open] summary { margin-bottom: 12px; }
.field { display: grid; gap: 6px; }
.field__label { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: #17494d; }
.field__hint { font-size: 12px; color: #5b6a6b; }
.editor input[type="text"], .editor input[type="number"], .editor input[type="date"], .editor input[type="month"], .editor textarea, .editor select {
  font: inherit; font-size: 14px; color: #242320; background: #ffffff;
  border: 1px solid #b9c7c8; border-radius: 8px; padding: 8px 10px; width: 100%; min-width: 0;
}
.editor textarea { resize: vertical; line-height: 1.45; }
.editor input:focus, .editor textarea:focus, .editor select:focus { outline: 2px solid #00ad74; outline-offset: 0; border-color: #00ad74; }
.checks { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.check { display: inline-flex; gap: 8px; align-items: center; cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: #00ad74; }

.grid { display: grid; gap: 10px; min-width: 0; }
.grid__head { display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between; align-items: center; }
.grid__head h4 { font-size: 15px; font-weight: 700; color: #17494d; }
.grid__count { font-weight: 400; color: #5b6a6b; font-size: 13px; margin-left: 6px; }
.grid__tools { display: flex; flex-wrap: wrap; gap: 8px; }
.grid__scroll { overflow-x: auto; max-height: 420px; overflow-y: auto; border: 1px solid #d5dfe0; border-radius: 10px; background: #ffffff; }
.grid__table { min-width: 420px; }
.grid__table th { position: sticky; top: 0; background: #e8eeee; color: #17494d; font-size: 11px; text-transform: uppercase; letter-spacing: .06em; text-align: left; padding: 8px; z-index: 1; }
.grid__table td { padding: 4px 6px; border-top: 1px solid #eef2f2; vertical-align: top; }
.grid__table td input, .grid__table td textarea, .grid__table td select { border-color: transparent; background: transparent; padding: 6px 8px; }
.grid__table td input:hover, .grid__table td textarea:hover { border-color: #d5dfe0; }
.grid__del { width: 40px; text-align: center; }
.grid__confirm { background: #fff8e1; border: 1px solid #f0d48a; border-radius: 10px; padding: 12px 14px; display: grid; gap: 10px; }
.grid__confirm p { margin: 0; line-height: 1.5; }
.editor__grids { gap: 26px; }

.photo-field { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.photo-field__img { width: 56px; height: 56px; object-fit: cover; border-radius: 10px; }
.photo-field__none { font-size: 13px; color: #5b6a6b; }
.people-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; }
.person { display: flex; align-items: center; gap: 12px; background: #ffffff; border: 1px solid #d5dfe0; border-radius: 12px; padding: 10px 12px; }
.person__body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.person__actions { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.person .avatar--sm { width: 40px; height: 40px; font-size: 14px; }
.person__name { font-weight: 600; line-height: 1.25; }
.pic-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.pic-item { display: grid; gap: 8px; background: #ffffff; border: 1px solid #d5dfe0; border-radius: 12px; padding: 8px; }
.pic-item img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 8px; }

.is-editing .is-hidden-section { opacity: .45; }
.is-editing .is-hidden-section::before {
  content: "Hidden from readers"; position: absolute; top: 12px; left: 50%; transform: translateX(-50%); z-index: 3;
  background: #242320; color: #ffffff; font-size: 12px; font-weight: 600; padding: 4px 12px; border-radius: 999px;
}
.empty-row { text-align: center; font-style: italic; opacity: .7; padding: 14px !important; }
.table--best tr.is-new td:nth-child(n+2) { background: #fec51d; color: #242320; }

.editbar {
  position: fixed; z-index: 46; left: var(--sidebar); right: 0; bottom: 0;
  display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; justify-content: space-between;
  background: #17494d; color: #ffffff; border-top: 2px solid #00ad74;
  padding: 12px max(16px, env(safe-area-inset-right, 0px)) calc(12px + env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px));
}
.editbar__status { font-size: 14px; min-width: 0; }
.editbar__actions { display: flex; flex-wrap: wrap; gap: 8px; }
.editbar .btn--ghost { color: #ffffff; }
.is-editing .footer { padding-bottom: 120px; }
@media (max-width: 900px) { .editbar { left: 0; } }
.grid__check { text-align: center; }
.grid__table td.grid__check input[type="checkbox"] { appearance: none; -webkit-appearance: none; width: 22px; height: 22px; padding: 0; margin: 0; border: 2px solid #17494D; border-radius: 5px; background: #fff center / 16px no-repeat; cursor: pointer; vertical-align: middle; }
.grid__table td.grid__check input[type="checkbox"]:checked { background-color: #17494D; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 8.5l3 3 7-7' fill='none' stroke='%23fff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.grid__table td.grid__check input[type="checkbox"]:focus-visible { outline: 3px solid #fec51d; outline-offset: 2px; }

.merge { background: #ffffff; border: 1px solid #d5dfe0; border-radius: 12px; padding: 14px 16px; margin: 0 0 14px; }
.merge__title { margin: 0 0 4px; font-size: 16px; color: #17494D; }
.merge__suggest { background: #fff6dc; border-radius: 10px; padding: 10px 12px; margin: 10px 0; }
.merge__suggest ul, .merge__list { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 8px; }
.merge__suggest li, .merge__list li { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.merge__suggest li > span { font-weight: 600; margin-right: 4px; }
.merge__form { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px; margin-top: 10px; }
.merge__form .field { flex: 1 1 200px; margin: 0; }

/* ---------- Hover and highlight ---------- */
.table tbody tr > td, .podium__item, .shoutout, .review, .winners__list li, .pictures figure, .panel--rule, .prizes li,
.calendar__day, .calendar__event, .team__head, .story__aside { transition: background-color .15s ease, box-shadow .15s ease, transform .15s ease, opacity .15s ease; }
.is-person-hl > td, tr.is-person-hl > td { background-image: linear-gradient(rgba(254, 197, 29, .42), rgba(254, 197, 29, .42)); }
tr.is-person-hl > td:first-child, tr.is-person-hl > td:first-child + td:not(.num) { font-weight: 700; }
.podium__item.is-person-hl, .shoutout.is-person-hl, .winners__list li.is-person-hl, .team__head.is-person-hl, .story__aside.is-person-hl {
  box-shadow: 0 0 0 3px var(--yellow), 0 10px 24px rgba(0, 0, 0, .18); border-radius: 14px; }
.calendar__event.is-person-hl { background: var(--yellow); color: #242320; border-radius: 6px; }

@media (hover: hover) {
  .table tbody tr:hover > td { background-image: linear-gradient(rgba(254, 197, 29, .28), rgba(254, 197, 29, .28)); cursor: default; }
  .shoutout:hover, .review:hover, .pictures figure:hover, .panel--rule:hover, .podium__item:hover { transform: translateY(-3px); }
  .review:hover, .pictures figure:hover, .panel--rule:hover, .shoutout:hover:not(.is-person-hl), .podium__item:hover:not(.is-person-hl) { box-shadow: 0 12px 28px rgba(0, 0, 0, .18); }
  .prizes li:hover { background-color: rgba(254, 197, 29, .22); }
  .calendar__day:not(.is-empty):hover { box-shadow: inset 0 0 0 2px var(--yellow); }
  .winners__list li:hover { transform: translateY(-2px); }
}

.person-tip { position: fixed; z-index: 60; max-width: 300px; pointer-events: none; background: #ffffff; color: #242320;
  border: 1px solid #d5dfe0; border-left: 4px solid var(--yellow); border-radius: 12px; padding: 10px 12px; box-shadow: 0 14px 34px rgba(0, 0, 0, .22); font-size: 13px; }
.person-tip__head { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; font-size: 15px; color: #17494D; }
.person-tip__head .avatar--sm { width: 32px; height: 32px; font-size: 12px; }
.person-tip dl { display: grid; grid-template-columns: auto 1fr; gap: 3px 10px; margin: 0; }
.person-tip dt { color: #5b6a6b; }
.person-tip dd { margin: 0; font-weight: 600; }
.person-tip__hint { margin: 8px 0 0; color: #5b6a6b; font-size: 11px; }

@media (prefers-reduced-motion: reduce) {
  .shoutout:hover, .review:hover, .pictures figure:hover, .panel--rule:hover, .podium__item:hover, .winners__list li:hover { transform: none; }
}

/* ---------- Sign-in check ---------- */
.gate { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 24px 16px;
  background: radial-gradient(120% 90% at 20% 0%, #17494d 0%, #0b3033 55%, #061f21 100%); color: #fff; overflow: auto; }
.gate:not([hidden]) ~ .sidebar, .gate:not([hidden]) ~ .nav-toggle, .gate:not([hidden]) ~ .main, .gate:not([hidden]) ~ .app-shell, .gate:not([hidden]) ~ .scrim { display: none !important; }
.gate__card { width: min(460px, 100%); text-align: center; display: grid; justify-items: center; gap: 14px; }
.gate__logo { width: min(260px, 70vw); height: auto; margin-bottom: 12px; }
.gate__title { font: 600 clamp(22px, 3vw, 28px)/1.2 var(--font); margin: 0; }
.gate__text { margin: 0; color: rgba(255, 255, 255, .82); line-height: 1.55; }
.gate__spinner { width: 28px; height: 28px; border-radius: 50%; border: 3px solid rgba(255, 255, 255, .25); border-top-color: var(--yellow); animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .gate__spinner { animation-duration: 3s; } }
.btn--pill { border-radius: 999px; background: transparent; color: #fff; border: 1.5px solid #fff; padding: 10px 26px; }
.btn--pill:hover { background: rgba(255, 255, 255, .12); }
.footer__privacy { font-size: 13px; opacity: .75; max-width: 70ch; margin: 8px auto 0; }
.nav__sep { height: 1px; background: rgba(255, 255, 255, .18); margin: 10px 14px; }
.nav__admin { color: var(--yellow) !important; }

/* ---------- Control Centre and analytics pages ---------- */
.is-app .main, .is-app .sidebar, .is-app .nav-toggle, .is-app .scrim { display: none !important; }
.app-shell { min-height: 100vh; background: radial-gradient(120% 70% at 30% 0%, #17494d 0%, #0b3033 50%, #061f21 100%); color: #fff; }
.app { max-width: 1680px; margin: 0 auto; padding: clamp(20px, 3vw, 56px) clamp(16px, 3vw, 56px) 64px; display: grid; gap: 18px; }
.app__head { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.app__logo { width: clamp(170px, 18vw, 250px); height: auto; }
.app__title { margin: 0; font: 700 clamp(26px, 4vw, 56px)/1 var(--font-display); text-transform: uppercase; letter-spacing: .01em; }
.app__tabs { display: flex; flex-wrap: wrap; gap: 10px; margin: 10px 0 6px; }
.app__tab { display: inline-flex; align-items: center; min-height: 40px; padding: 0 20px; border-radius: 999px; border: 1.5px solid #fff; color: #fff; text-decoration: none; font-weight: 600; font-size: 14px; }
.app__tab:hover { background: rgba(255, 255, 255, .1); }
.app__tab[aria-current="page"] { background: var(--yellow); border-color: var(--yellow); color: #17494d; }
.app__flash { position: sticky; top: 12px; z-index: 5; margin: 0; justify-self: start; background: var(--yellow); color: #17494d; font-weight: 600; padding: 8px 14px; border-radius: 10px; }
.app-grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 520px), 1fr)); gap: 18px; }
.app-card { background: linear-gradient(180deg, rgba(48, 98, 100, .92), rgba(32, 76, 79, .92)); border: 1px solid rgba(255, 255, 255, .08); border-radius: 18px; padding: 18px 0 8px; overflow: hidden; box-shadow: 0 10px 30px rgba(0, 0, 0, .25); }
.app-card > :not(.app-table-wrap) { margin-left: 18px; margin-right: 18px; }
.app-card__eyebrow { margin: 0; color: #00d08a; font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.app-card__title { margin: 2px 0 12px; font: 700 clamp(18px, 2vw, 24px)/1.2 var(--font); text-transform: uppercase; }
.app-big { margin: 0 0 6px; font-size: 18px; font-weight: 600; overflow-wrap: anywhere; }
.app-note { color: rgba(255, 255, 255, .8); font-size: 14px; line-height: 1.5; margin: 6px 0 12px; }
.app-note ul { margin: 6px 0 0; padding-left: 20px; }
.app-note--warn { background: rgba(254, 197, 29, .16); border: 1px solid rgba(254, 197, 29, .5); border-radius: 12px; padding: 10px 14px; color: #fff; }
.app .field__label { color: rgba(255, 255, 255, .8); }
.app input[type="text"], .app input[type="search"], .app select { width: 100%; min-height: 40px; border-radius: 10px; border: 1px solid rgba(255, 255, 255, .25); background: rgba(255, 255, 255, .12); color: #fff; padding: 6px 12px; font: inherit; }
.app input::placeholder { color: rgba(255, 255, 255, .6); }
.app select option { color: #242320; }
.app .check { color: rgba(255, 255, 255, .9); display: flex; gap: 8px; align-items: flex-start; margin: 10px 0 12px; }
.app input[type="checkbox"] { width: 18px; height: 18px; accent-color: var(--yellow); }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 14px; }
.kpi { background: linear-gradient(180deg, #1b7d84, #165e63); border-radius: 18px; padding: 18px; display: grid; gap: 8px; align-content: space-between; min-height: 120px; box-shadow: 0 10px 24px rgba(0, 0, 0, .2); }
.kpi strong { color: var(--yellow); font: 700 clamp(30px, 4vw, 52px)/1 var(--font); }
.kpi--date strong { font-size: clamp(20px, 2vw, 28px); line-height: 1.15; }
.kpi span { color: rgba(255, 255, 255, .8); font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.app-table-wrap { overflow-x: auto; max-height: 520px; overflow-y: auto; }
.app-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.app-table thead th { position: sticky; top: 0; background: #1b7d84; color: rgba(255, 255, 255, .85); text-align: left; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; padding: 12px 18px; white-space: nowrap; }
.app-table td { padding: 10px 18px; border-top: 1px solid rgba(255, 255, 255, .07); vertical-align: middle; }
.app-table .num { text-align: right; font-variant-numeric: tabular-nums; }
.app-table tbody tr:hover td { background: rgba(254, 197, 29, .1); }
.app-table__empty { color: rgba(255, 255, 255, .65); font-style: italic; }
.app-table .app-input { min-width: 140px; min-height: 34px; }
.app-person { display: inline-flex; align-items: center; gap: 10px; min-width: 0; }
.app-person img { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; flex: none; }
.app-person span { display: grid; min-width: 0; }
.app-person small { color: rgba(255, 255, 255, .7); overflow-wrap: anywhere; }
.app-person-link { color: inherit; text-decoration: none; }
.app-person-link:hover strong { text-decoration: underline; color: var(--yellow); }
.badge { display: inline-block; padding: 3px 12px; border-radius: 999px; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; }
.badge--ok { background: #13775e; color: #9ff2cf; }
.badge--wait { background: #7d6b1c; color: #ffe27a; }
.badge--admin { background: var(--yellow); color: #17494d; }
.app-add { position: relative; margin-bottom: 14px; max-width: 640px; }
.app-add__results { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 4px; }
.app-add__hit { width: 100%; display: flex; align-items: center; gap: 10px; text-align: left; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .15); color: #fff; border-radius: 10px; padding: 6px 10px; cursor: pointer; font: inherit; }
.app-add__hit:hover, .app-add__hit:focus-visible { background: rgba(254, 197, 29, .2); }
.app-add__hit img { width: 30px; height: 30px; border-radius: 50%; }
.app-add__hit span { display: grid; flex: 1; min-width: 0; }
.app-add__hit small { color: rgba(255, 255, 255, .7); }
.app-add__hit em { font-style: normal; font-weight: 700; color: var(--yellow); font-size: 13px; }
.app-add__none { color: rgba(255, 255, 255, .7); font-size: 14px; padding: 6px 2px; }
.app-profile { display: flex; align-items: center; gap: 18px; padding: 18px; }
.app-profile > * { margin: 0 !important; }
.app-profile__img { width: 84px; height: 84px; border-radius: 50%; object-fit: cover; flex: none; display: grid; place-items: center; font-size: 30px; background: #1b7d84; }
.app-dl { display: grid; grid-template-columns: max-content 1fr; gap: 6px 18px; margin: 0 18px 12px; }
.app-dl dt { color: rgba(255, 255, 255, .7); }
.app-dl dd { margin: 0; font-weight: 600; }
.app .btn--ghost { color: #fff; border-color: rgba(255, 255, 255, .4); }
.app .btn--danger { background: #e13b26; color: #fff; border-color: #e13b26; }

/* ---------- Document protection ---------- */
.watermark { position: fixed; inset: 0; z-index: 90; pointer-events: none; background-repeat: repeat; background-position: 0 0; }
.gate:not([hidden]) ~ .watermark { display: none; }
.is-protected .main, .is-protected .app-shell { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
.is-protected .main img { -webkit-user-drag: none; }
.is-protected input, .is-protected textarea, .is-protected select { -webkit-user-select: text; user-select: text; }
.is-protected.is-obscured .main, .is-protected.is-obscured .app-shell, .is-protected.is-obscured .sidebar { filter: blur(18px) saturate(.6); }
.is-protected.is-obscured::after { content: "Pinnacle is hidden while this window isn’t active. Click here to carry on reading."; position: fixed; left: 50%; top: 45%; transform: translate(-50%, -50%);
  z-index: 95; background: rgba(6, 31, 33, .92); color: #fff; padding: 16px 22px; border-radius: 14px; font-weight: 600; text-align: center; max-width: min(520px, calc(100vw - 32px)); }
.protect-notice { position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%); z-index: 96; background: var(--yellow); color: #17494d; font-weight: 700; padding: 10px 18px; border-radius: 12px; box-shadow: 0 8px 24px rgba(0, 0, 0, .3); max-width: calc(100vw - 32px); text-align: center; }
.is-exporting .fab, .is-exporting .editbar, .is-exporting .person-tip { display: none !important; }
@media print {
  .is-protected > *:not(.watermark) { display: none !important; }
  body.is-protected { background: #fff !important; }
  .is-protected::before { content: "Printing is turned off for Pinnacle. Ask IT Support if you need a copy."; position: static; height: auto; display: block; padding: 40px; font: 600 18px/1.5 Arial, sans-serif; color: #000; background: none; }
  .watermark { position: fixed; }
}

/* ---------- Phones and tablets ---------- */
.tp-badge img { box-sizing: border-box; }
@media (pointer: coarse) {
  .nav a { padding: 12px 16px; font-size: 14px; }
  .btn { min-height: 44px; }
  .btn--small, .btn-icon { min-height: 40px; min-width: 40px; }
  .app-table a { display: inline-block; padding: 10px 0; }
  .app-table select, .app-table input:not([type="checkbox"]) { min-height: 44px; }
  .app-table input[type="checkbox"], .check input { width: 22px; height: 22px; }
}
@media (max-width: 640px) {
  /* Admin and analytics tables become one card per row. */
  .app-table-wrap { max-height: none; overflow: visible; }
  .app-table thead { display: none; }
  .app-table, .app-table tbody, .app-table tr, .app-table td { display: block; width: 100%; }
  .app-table tr { padding: 12px 16px; border-top: 1px solid rgba(255, 255, 255, .1); }
  .app-table td { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 6px 0; border: 0; text-align: right; }
  .app-table td.num { text-align: right; }
  .app-table td::before { content: attr(data-label); flex: none; max-width: 45%; text-align: left; color: rgba(255, 255, 255, .65); font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
  .app-table td[data-label=""]::before { content: none; }
  .app-table td:first-child { font-size: 16px; font-weight: 600; justify-content: flex-start; text-align: left; }
  .app-table td:first-child::before { content: none; }
  .app-table td.app-table__empty { display: block; text-align: left; }
  .app-table td > * { max-width: 60%; }
  .app-table td:first-child > * { max-width: none; }
  .app-table .app-input { min-width: 0; width: 100%; }
  .app-table tbody tr:hover td { background: none; }
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .kpi { min-height: 92px; padding: 14px; border-radius: 14px; }
  .kpi strong { font-size: 28px; }
  .kpi--date strong { font-size: 16px; }
  .kpi span { font-size: 11px; letter-spacing: .08em; }
}
@media (max-width: 560px) {
  /* The admin buttons sit in one compact row along the bottom. */
  .fab { left: calc(12px + env(safe-area-inset-left, 0px)); right: calc(12px + env(safe-area-inset-right, 0px)); bottom: calc(12px + env(safe-area-inset-bottom, 0px)); max-width: none; align-items: stretch; }
  .fab__buttons { flex-wrap: nowrap; gap: 6px; }
  .fab__buttons .btn { flex: 1 1 0; padding: 10px 8px; font-size: 13px; white-space: nowrap; min-height: 44px; }
  body:has(#edit-toggle:not([hidden])) .main { padding-bottom: 72px; }
  .import-confirm { width: 100%; }
  .editbar { padding: 10px 12px calc(10px + env(safe-area-inset-bottom, 0px)); gap: 6px; }
  .editbar__status { font-size: 13px; }
  .editbar__actions { flex-wrap: nowrap; gap: 6px; width: 100%; }
  .editbar__actions .btn { flex: 1 1 0; padding: 8px 6px; font-size: 13px; white-space: nowrap; }
  .is-editing .fab { bottom: calc(118px + env(safe-area-inset-bottom, 0px)); }
}

/* ---------- Paste from Excel ---------- */
.paste-box { width: 100%; font: 13px/1.4 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; border: 1px solid #b9c7c8; border-radius: 10px; padding: 10px 12px; background: #fff; color: #242320; resize: vertical; margin: 8px 0 4px; }
.paste-box:focus { outline: 2px solid #00ad74; outline-offset: 1px; }
.paste-box__summary { font-size: 13px; color: #17494d; min-height: 1.2em; margin: 0 0 6px; }
.grid__warn { background: #fff8e1; border: 1px solid #f0d48a; border-radius: 10px; padding: 12px 14px; display: grid; gap: 10px; justify-items: start; margin-bottom: 10px; font-size: 14px; }

/* ---------- People list ---------- */
.people-add { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; margin: 12px 0; }
.people-add .field { flex: 1 1 240px; margin: 0; }
.person__tag { font-size: 11px; font-weight: 600; color: #7a5a00; background: #fff1c2; border-radius: 999px; padding: 1px 8px; margin-left: 4px; white-space: nowrap; }
.person__access { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; margin-top: 8px; font-size: 12px; font-weight: 600; color: #4a5b5c; }
.person__access select { font: inherit; font-weight: 500; font-size: 13px; padding: 6px 8px; border: 1px solid #b9c7c8; border-radius: 8px; background: #fff; color: #242320; }
.person__linked { font-weight: 500; color: #00845a; }
.person__link { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 8px; font-size: 13px; background: #fff8e1; border: 1px solid #f0d48a; border-radius: 8px; padding: 8px 10px; }

/* ---------- Check before saving ---------- */
.checkp { position: fixed; inset: 0; z-index: 120; background: rgba(4, 22, 24, .6); display: grid; place-items: center; padding: 16px; }
.checkp[hidden] { display: none; }
.checkp__card { width: min(720px, 100%); max-height: calc(100vh - 32px); max-height: calc(100dvh - 32px); overflow: auto; background: #f4f7f7; color: #242320; border-radius: 18px; padding: 22px; box-shadow: 0 20px 50px rgba(0, 0, 0, .4); display: grid; gap: 12px; align-content: start; }
.checkp__title { font-size: 20px; font-weight: 700; color: #17494d; }
.checkp__note { font-size: 14px; margin: 0; }
.checkp__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.checkp__item { background: #fff; border: 1px solid #dbe4e4; border-radius: 12px; padding: 12px 14px; display: grid; gap: 8px; font-size: 14px; }
.checkp__item p { margin: 0; }
.checkp__where { display: block; font-size: 12px; color: #5b6d6e; margin-top: 2px; }
.checkp__actions { display: flex; flex-wrap: wrap; gap: 6px; }
.checkp__foot { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; position: sticky; bottom: -22px; background: #f4f7f7; padding: 10px 0 0; }

#people-panel .people-grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 270px), 1fr)); }
#people-panel .person { align-items: flex-start; }
.person__access { flex-wrap: nowrap; }
.person__access select { flex: 1; min-width: 0; }
.person__access + .person__linked, .person__access .person__linked { flex-basis: 100%; }
.person__access { flex-wrap: wrap; }
.person__access > span { flex: none; }

/* People and photos in the Control Centre */
.people-card { background: #f4f7f7; color: #242320; padding: 20px; display: grid; gap: 12px; }
.people-card > * { margin-left: 0 !important; margin-right: 0 !important; }
.people-card__title { font-size: 20px; font-weight: 700; color: #17494d; display: flex; align-items: baseline; gap: 10px; }
.people-card .editor__note { color: #3b4a4b; margin: 0; }
.people-card a { color: #00845a; }
.people-card .field__label { color: #4a5b5c; }
.people-card input[type="text"] { font: inherit; padding: 9px 12px; border: 1px solid #b9c7c8; border-radius: 10px; background: #fff; color: #242320; width: 100%; }
.app .people-card input[type="text"], .app .people-card input[type="search"], .app .people-card select { background: #fff; color: #242320; border: 1px solid #b9c7c8; }
.app .people-card input::placeholder { color: #7a8a8b; }
.app .people-card .field__label { color: #4a5b5c; }
.app .people-card .btn--ghost { color: #17494d; border-color: transparent; }
.app .people-card .btn--danger { background: #fff; color: #b03123; border-color: #c0392b; }
.app .people-card .person__access select { width: auto; min-height: 34px; }

/* ---------- Birthday cards ---------- */
/* In the calendar: a small version of the card on the day */
.cal-card { all: unset; box-sizing: border-box; cursor: pointer; display: flex; flex-direction: column; align-items: stretch; width: 100%; max-width: 116px; background: #fff7f0; border-radius: 10px; padding: 4px 4px 6px; box-shadow: 0 2px 3px rgba(0, 0, 0, .25); text-align: center; transition: transform .15s ease, box-shadow .15s ease; }
.cal-card:hover { transform: translateY(-2px); box-shadow: 0 6px 14px rgba(0, 0, 0, .25); }
.cal-card:focus-visible { outline: 3px solid var(--yellow); outline-offset: 2px; }
.cal-card__art { position: relative; display: block; aspect-ratio: 457 / 427; border-radius: 7px 7px 0 0; overflow: hidden; background: #fec51d; }
.cal-card__art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(254, 197, 29, 0) 17%, rgba(255, 255, 255, .55) 100%); }
.cal-card__pattern { position: absolute; inset: -4% -40% 0 -8%; display: flex; flex-direction: column; justify-content: space-between; font: 800 15px/1 var(--font); color: rgba(255, 255, 255, .3); white-space: nowrap; }
.cal-card__pattern span:nth-child(even) { transform: translateX(-12%); }
.cal-card__art img { position: absolute; left: 50%; bottom: 0; transform: translateX(-50%); width: 112%; height: 112%; object-fit: cover; object-position: center top; z-index: 1; }
.cal-card__initials { position: absolute; z-index: 1; left: 50%; top: 52%; transform: translate(-50%, -50%); width: 56%; aspect-ratio: 1; border-radius: 50%; background: #fff7f0; display: grid; place-items: center; font: 700 15px/1 var(--font); color: #09595e; }
.cal-card__hello, .cal-card__name { font: 700 9px/1.15 var(--font); text-transform: uppercase; letter-spacing: .02em; }
.cal-card__hello { color: #e0a800; margin-top: 4px; }
.cal-card__name { color: #09595e; overflow-wrap: anywhere; }
.cal-card__first { display: none; }
@media (max-width: 560px) {
  .cal-card { padding: 2px; border-radius: 6px; }
  .cal-card__art { border-radius: 4px; }
  .cal-card__hello, .cal-card__pattern { display: none; }
  .cal-card__name { font-size: 7px; margin-top: 2px; overflow-wrap: normal; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .cal-card__full { display: none; }
  .cal-card__first { display: inline; }
}
.calendar__day { min-width: 0; }
/* The full-size card, opened from the calendar */
.bday-dialog { position: fixed; inset: 0; z-index: 110; background: rgba(4, 22, 24, .7); display: grid; place-items: center; padding: 16px; }
.bday-dialog[hidden] { display: none; }
.bday-dialog__inner { width: min(360px, 100%); display: grid; gap: 14px; justify-items: center; }
.bday-dialog .bday-card { width: 100%; }
.bday-card { background: #fff7f0; border-radius: 22px; padding: 13px 13px 18px; box-shadow: 0 4px 4px rgba(0, 0, 0, .25); text-align: center; scroll-margin-top: 90px; }
.bday-card__art { position: relative; aspect-ratio: 457 / 427; border-radius: 16px 16px 0 0; overflow: hidden; background: #fec51d; }
.bday-card__art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(254, 197, 29, 0) 17%, rgba(255, 255, 255, .55) 100%); pointer-events: none; }
.bday-card__pattern { position: absolute; inset: -4% -30% 0 -8%; display: flex; flex-direction: column; justify-content: space-between; font: 800 clamp(34px, 4.6vw, 52px)/1 var(--font); letter-spacing: .01em; color: rgba(255, 255, 255, .3); white-space: nowrap; user-select: none; }
.bday-card__pattern span:nth-child(even) { transform: translateX(-12%); }
.bday-card__photo { position: absolute; left: 50%; bottom: 0; transform: translateX(-50%); width: 112%; height: 112%; object-fit: cover; object-position: center top; z-index: 1; }
.bday-card__initials { position: absolute; z-index: 1; left: 50%; top: 52%; transform: translate(-50%, -50%); width: 52%; aspect-ratio: 1; border-radius: 50%; background: #fff7f0; display: grid; place-items: center; font: 700 clamp(40px, 5vw, 64px)/1 var(--font); color: #09595e; box-shadow: 0 6px 18px rgba(0, 0, 0, .15); }
.bday-card__hello, .bday-card__name { font: 700 clamp(20px, 2.3vw, 28px)/1.15 var(--font); text-transform: uppercase; letter-spacing: .02em; margin: 0; }
.bday-card__hello { color: #fec51d; margin-top: 14px; }
.bday-card__name { color: #09595e; }
.bday-card__date { margin: 6px 0 0; font-size: 13px; font-weight: 600; color: rgba(9, 89, 94, .7); }
.bday-card.is-person-hl { box-shadow: 0 0 0 3px var(--yellow), 0 10px 24px rgba(0, 0, 0, .25); }

/* ---------- People & photos: views, birthdays and teams ---------- */
.people-tools { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: center; padding: 10px 0 2px; border-top: 1px solid #d5dfe0; }
.seg { display: inline-flex; border: 1px solid #b9c7c8; border-radius: 10px; overflow: hidden; background: #fff; }
.seg__btn { font: inherit; font-size: 14px; font-weight: 600; padding: 8px 14px; border: 0; background: transparent; color: #17494d; cursor: pointer; min-height: 38px; }
.seg__btn + .seg__btn { border-left: 1px solid #b9c7c8; }
.seg__btn[aria-pressed="true"] { background: #17494d; color: #fff; }
.seg__btn:focus-visible { outline: 3px solid #f5b800; outline-offset: -3px; }
.people-tools__search { flex: 1 1 200px; max-width: 320px; }
.app .people-card .people-tools__search input { width: 100%; font: inherit; padding: 8px 12px; border-radius: 10px; min-height: 38px; }
.people-tools__sort { display: flex; align-items: center; gap: 8px; white-space: nowrap; font-size: 13px; font-weight: 600; color: #4a5b5c; }
.app .people-card .people-tools__sort select { font: inherit; font-size: 14px; padding: 7px 8px; border-radius: 8px; min-height: 38px; }
.people-tools__status { font-size: 13px; color: #4a5b5c; }

.person__details { display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: center; font-size: 12px; font-weight: 600; color: #4a5b5c; }
.person__bday { border: 0; padding: 0; margin: 0; display: flex; align-items: center; gap: 4px; min-width: 0; }
.person__bday legend { float: left; margin-right: 4px; padding: 0; }
.person__team { display: flex; align-items: center; gap: 6px; min-width: 0; }
.app .people-card .person__details select { font: inherit; font-weight: 500; font-size: 13px; padding: 5px 6px; border-radius: 8px; min-height: 32px; max-width: 100%; }
.person__warn { flex-basis: 100%; color: #8a5a00; font-weight: 500; }
.person[hidden] { display: none !important; }

/* List: one compact row per person */
#people-panel .people-grid--list { grid-template-columns: 1fr; gap: 0; border: 1px solid #d5dfe0; border-radius: 12px; overflow: hidden; background: #fff; }
.people-grid--list .person { border: 0; border-radius: 0; border-bottom: 1px solid #e3eaea; align-items: center; padding: 8px 12px; }
.people-grid--list .person:last-child { border-bottom: 0; }
.people-grid--list .person__body { display: grid; grid-template-columns: minmax(150px, 1.1fr) minmax(0, 2fr) auto; gap: 6px 14px; align-items: center; }
.people-grid--list .person__access, .people-grid--list .person__link { grid-column: 1 / -1; margin-top: 0; }
.people-grid--list .person__actions { justify-content: flex-end; }
@media (min-width: 1100px) {
  .people-grid--list .person__body { grid-template-columns: minmax(150px, 1fr) minmax(0, 2fr) auto minmax(200px, auto); }
  .people-grid--list .person__access { grid-column: auto; }
}

/* Columns: one column per team */
.people-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 12px; align-items: start; }
.people-col { background: #e9efef; border-radius: 12px; padding: 10px; display: grid; gap: 8px; min-width: 0; }
.people-col[hidden] { display: none; }
.people-col__head h3 { margin: 0; font-size: 16px; color: #17494d; display: flex; gap: 8px; align-items: baseline; }
.people-col__head p { margin: 2px 0 0; font-size: 13px; color: #4a5b5c; }
#people-panel .people-grid--col { grid-template-columns: 1fr; gap: 8px; }
.people-col__empty { margin: 0; font-size: 13px; color: #5b6a6b; }

/* Import birthdays */
.people-import { background: #fff; border: 1px solid #d5dfe0; border-radius: 12px; padding: 14px; display: grid; gap: 10px; }
.people-import p { margin: 0; }
.app .people-card .people-import textarea { width: 100%; font: 13px/1.4 ui-monospace, Menlo, Consolas, monospace; padding: 8px 10px; border: 1px solid #b9c7c8; border-radius: 10px; background: #fff; color: #242320; }
.people-import__sum { font-weight: 600; }
.people-import__list { list-style: none; margin: 0; padding: 0; max-height: 320px; overflow: auto; border: 1px solid #e3eaea; border-radius: 10px; }
.people-import__list li { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr); gap: 2px 10px; padding: 6px 10px; border-bottom: 1px solid #eef2f2; font-size: 14px; }
.people-import__list li:last-child { border-bottom: 0; }
.people-import__list li.is-flagged { background: #fff8e1; }
.people-import__list small { grid-column: 1 / -1; color: #6b5200; }
.people-import .grid__warn ul { margin: 0; padding-left: 18px; }

@media (max-width: 640px) {
  .people-grid--list .person__body { grid-template-columns: 1fr; }
  .people-grid--list .person__actions { justify-content: flex-start; }
  .people-tools__search { max-width: none; flex-basis: 100%; }
  .people-import__list li { grid-template-columns: 1fr 1fr; }
  .people-import__list li > span:first-child { grid-column: 1 / -1; font-weight: 600; }
}
.app .people-card .person__details select[data-people-month] { min-width: 5.2em; }
