/* ADL Charger Robotics — one style file for every page.
   Change a color here and it changes everywhere. */

@font-face { font-family: "Oswald"; font-weight: 500; font-display: swap; src: url("fonts/oswald-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Oswald"; font-weight: 700; font-display: swap; src: url("fonts/oswald-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 400; font-display: swap; src: url("fonts/inter-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 600; font-display: swap; src: url("fonts/inter-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 700; font-display: swap; src: url("fonts/inter-latin-700-normal.woff2") format("woff2"); }

:root {
  --red: #C8102E;
  --red-dark: #9B0C23;
  --black: #111111;
  --white: #FFFFFF;
  --gray: #F3F3F3;
  --text-soft: #4A4A4A;
  --line: #DADADA;
  --head: "Oswald", "Arial Narrow", Impact, sans-serif;
  --body: "Inter", -apple-system, "Segoe UI", Arial, sans-serif;
  --wrap: 1080px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--white);
  color: var(--black);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.6;
}
img { max-width: 100%; display: block; }
a { color: var(--red); }
a:hover { color: var(--red-dark); }
:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; }

h1, h2, h3 { font-family: var(--head); font-weight: 700; line-height: 1.1; margin: 0 0 .5em; }
h2 { font-size: clamp(1.9rem, 4vw, 2.6rem); }
h3 { font-size: 1.4rem; font-weight: 500; }
p { margin: 0 0 1em; max-width: 65ch; }

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

/* ---------- Top bar ---------- */
.topbar { background: var(--black); color: var(--white); border-bottom: 4px solid var(--red); }
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 14px; padding-bottom: 14px; }
.brand { font-family: var(--head); font-weight: 700; font-size: 1.35rem; color: var(--white); text-decoration: none; letter-spacing: .01em; }
.brand:hover { color: var(--white); }
.brand span { color: var(--red); }
.nav { display: flex; flex-wrap: wrap; gap: 4px 20px; margin: 0; padding: 0; list-style: none; }
.nav a { color: #E6E6E6; text-decoration: none; font-weight: 600; font-size: .95rem; padding: 4px 0; border-bottom: 2px solid transparent; }
.nav a:hover { color: var(--white); border-bottom-color: var(--red); }
.nav a[aria-current="page"] { color: var(--white); border-bottom-color: var(--red); }

/* ---------- Home hero: black panel, red slash, photo ---------- */
.hero { background: var(--black); color: var(--white); display: grid; grid-template-columns: 1.1fr 1fr; min-height: 560px; }
.hero-text { padding: 64px 48px 64px max(20px, calc((100vw - var(--wrap)) / 2 + 20px)); display: flex; flex-direction: column; justify-content: center; }
.hero h1 { font-size: clamp(3.2rem, 7.5vw, 6.2rem); line-height: .92; margin-bottom: 28px; }
.hero h1 span { display: block; }
.hero h1 .charger { color: var(--red); }
.hero p { color: #D9D9D9; font-size: 1.15rem; max-width: 34ch; }
.hero-photo { position: relative; background: var(--red); clip-path: polygon(9% 0, 100% 0, 100% 100%, 0 100%); }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 35%; clip-path: polygon(16% 0, 100% 0, 100% 100%, 7% 100%); }

.buttons { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 12px; }
.btn { display: inline-block; font-family: var(--body); font-weight: 700; font-size: 1rem; text-decoration: none; padding: 13px 22px; border-radius: 3px; border: 2px solid var(--red); background: var(--red); color: var(--white); }
.btn:hover { background: var(--red-dark); border-color: var(--red-dark); color: var(--white); }
.btn-outline { background: transparent; border-color: var(--white); color: var(--white); }
.btn-outline:hover { background: var(--white); border-color: var(--white); color: var(--black); }
.btn-dark-outline { background: transparent; border-color: var(--black); color: var(--black); }
.btn-dark-outline:hover { background: var(--black); border-color: var(--black); color: var(--white); }

/* ---------- General sections ---------- */
.section { padding: 72px 0; }
.section-gray { background: var(--gray); }
.section-follow { padding-top: 0; }
.skills + p { margin-top: 20px; }
.progress { list-style: none; margin: 24px 0 0; padding: 0; max-width: 640px; border-top: 1px solid var(--line); }
.progress li { position: relative; display: flex; justify-content: space-between; gap: 16px; padding: 12px 0 12px 44px; border-bottom: 1px solid var(--line); font-weight: 600; }
.progress li::before { content: ""; position: absolute; left: 0; top: 50%; transform: translateY(-50%); width: 24px; height: 24px; box-sizing: border-box; border: 3px solid var(--black); border-radius: 3px; background: var(--white); }
.progress li.done::before { content: "\2713"; background: var(--red); border-color: var(--red); color: var(--white); font-size: 15px; line-height: 18px; text-align: center; }
.progress li:not(.done) { color: var(--text-soft); font-weight: 400; }
.progress li span { font-family: var(--head); color: var(--red); white-space: nowrap; }
.steps { margin: 16px 0 0; padding-left: 1.4em; }
.steps li { padding: 8px 0 8px 6px; font-size: 1.05rem; }
.steps li::marker { font-family: var(--head); font-weight: 700; color: var(--red); }
.event-strip { background: var(--gray); border-bottom: 1px solid var(--line); padding: 32px 0; }
.next-event { display: grid; grid-template-columns: auto 1fr; gap: 32px; align-items: center; }
.next-event-date { font-family: var(--head); font-weight: 700; font-size: 3.6rem; line-height: 1; color: var(--red); margin: 0; padding-right: 32px; border-right: 4px solid var(--red); white-space: nowrap; }
.next-event h2 { font-size: 1.5rem; margin-bottom: 6px; }
.next-event p:last-child { margin-bottom: 0; max-width: 62ch; }
@media (max-width: 560px) {
  .next-event { grid-template-columns: 1fr; gap: 12px; }
  .next-event-date { font-size: 2.8rem; padding-right: 0; border-right: 0; }
}
.page-head { background: var(--black); color: var(--white); padding: 56px 0 48px; }
.page-head h1 { font-size: clamp(2.6rem, 6vw, 4rem); margin-bottom: 12px; }
.page-head p { color: #D9D9D9; font-size: 1.15rem; margin: 0; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.split img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 3px; }
figure { margin: 0; }
figcaption { font-size: .9rem; color: var(--text-soft); margin-top: 8px; }

.facts { list-style: none; padding: 0; margin: 0 0 1em; }
.facts li { padding: 10px 0 10px 18px; border-bottom: 1px solid var(--line); position: relative; max-width: 60ch; }
.facts li::before { content: ""; position: absolute; left: 0; top: 19px; width: 8px; height: 8px; background: var(--red); }

/* Red band that points to Support Us */
.ask-band { background: var(--red); color: var(--white); padding: 56px 0; }
.ask-band .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px 48px; flex-wrap: wrap; }
.ask-band h2 { margin-bottom: 8px; }
.ask-band p { margin: 0; font-size: 1.1rem; }
.ask-band .btn { background: var(--black); border-color: var(--black); }
.ask-band .btn:hover { background: var(--white); border-color: var(--white); color: var(--black); }

/* Text-only blocks (Team & Robot page) */
.block { max-width: 720px; }
.block + .block { margin-top: 56px; padding-top: 56px; border-top: 1px solid var(--line); }

/* ---------- Build log (dated, so it is a timeline) ---------- */
.log { list-style: none; margin: 0; padding: 0; border-left: 4px solid var(--red); }
.log > li { position: relative; padding: 0 0 56px 36px; }
.log > li::before { content: ""; position: absolute; left: -12px; top: 6px; width: 20px; height: 20px; background: var(--black); border: 4px solid var(--red); border-radius: 50%; }
.log-entry { display: grid; grid-template-columns: 340px 1fr; gap: 32px; align-items: start; }
.log-entry img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 3px; }
.log-entry-wide { grid-template-columns: 460px 1fr; }
.log-entry-wide img { aspect-ratio: 4 / 3; }
.log-entry-nophoto { grid-template-columns: 1fr; }
.team-photo { margin: 28px 0 0; max-width: 460px; }
.team-photo img { width: 100%; border-radius: 3px; }
.log-date { font-family: var(--head); font-weight: 500; font-size: 1.1rem; color: var(--red); margin: 0 0 4px; }
.log-next { color: var(--text-soft); }
.log > li.log-next-item { padding-bottom: 0; }
.log > li.log-next-item::before { background: var(--white); }

/* ---------- Support Us: amounts list ---------- */
.amounts { border-top: 3px solid var(--black); margin-top: 32px; }
.amount { display: grid; grid-template-columns: 170px 1fr auto; gap: 16px 32px; align-items: center; padding: 28px 0; border-bottom: 1px solid var(--line); }
.amount-figure { font-family: var(--head); font-weight: 700; font-size: 3.2rem; line-height: 1; color: var(--red); }
.amount ul { margin: 0; padding-left: 20px; }
.amount li { margin: 2px 0; }
.amount .btn { padding: 11px 18px; font-size: .95rem; white-space: nowrap; }
.note { font-size: .9rem; color: var(--text-soft); margin-top: 16px; }

.sticker { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.sticker-box { background: var(--black); color: var(--white); padding: 36px; border-left: 8px solid var(--red); }
.sticker-box h2 { margin-bottom: 12px; }
.sticker-box p:last-child { margin-bottom: 0; }
.sticker-box a { color: var(--white); font-weight: 600; }
.sticker-box a:hover { color: #FFD0D7; }

/* Sponsor questions */
.faq { margin: 24px 0 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 48px; }
.faq > div { padding: 22px 0; border-top: 1px solid var(--line); }
.faq dt { font-family: var(--head); font-weight: 500; font-size: 1.35rem; line-height: 1.2; margin-bottom: 8px; }
.faq dd { margin: 0; max-width: 60ch; }
@media (max-width: 820px) { .faq { grid-template-columns: 1fr; } }

/* Everybot computer model */
.split img.cad-img { aspect-ratio: auto; object-fit: contain; background: var(--black); }
.cad-figure { margin: 24px 0 28px; }
.cad-figure img { width: 100%; border-radius: 3px; }

.lookup { background: var(--gray); border-left: 6px solid var(--red); padding: 14px 18px; }

/* What we learn (Team & Robot page) */
.skills { margin: 8px 0 0; }
.skills > div { display: grid; grid-template-columns: 170px 1fr; gap: 4px 24px; padding: 14px 0; border-top: 1px solid var(--line); }
.skills dt { font-family: var(--head); font-weight: 500; font-size: 1.25rem; color: var(--red); line-height: 1.3; }
.skills dd { margin: 0; }
@media (max-width: 560px) { .skills > div { grid-template-columns: 1fr; } }

/* Print button on Support Us */
.print-btn { margin-top: 20px; font: 600 .95rem var(--body); color: var(--white); background: transparent; border: 2px solid #8A8A8A; border-radius: 3px; padding: 9px 16px; cursor: pointer; }
.print-btn:hover { border-color: var(--white); }

/* ---------- Contact ---------- */
.email-big { font-family: var(--head); font-weight: 700; font-size: clamp(1.6rem, 5vw, 2.8rem); color: var(--red); text-decoration: none; word-break: break-word; border-bottom: 4px solid var(--red); }
.email-big:hover { color: var(--red-dark); border-bottom-color: var(--red-dark); }

/* ---------- Footer ---------- */
.footer { background: var(--black); color: #CFCFCF; padding: 36px 0; font-size: .95rem; border-top: 4px solid var(--red); }
.footer .wrap { display: flex; justify-content: space-between; gap: 12px 32px; flex-wrap: wrap; }
.footer p { margin: 0; }
.footer strong { color: var(--white); font-family: var(--head); font-weight: 700; font-size: 1.15rem; }
.footer a { color: var(--white); }

/* ---------- Phones and small screens ---------- */
@media (max-width: 820px) {
  .hero { grid-template-columns: 1fr; min-height: 0; }
  .hero-text { padding: 48px 20px 40px; }
  .hero-photo { height: 420px; clip-path: polygon(0 5%, 100% 0, 100% 100%, 0 100%); }
  .hero-photo img { clip-path: polygon(0 11%, 100% 5%, 100% 100%, 0 100%); }
  .split, .sticker { grid-template-columns: 1fr; gap: 32px; }
  .log-entry { grid-template-columns: 1fr; gap: 16px; }
  .amount { grid-template-columns: 1fr; gap: 10px; }
  .amount-figure { font-size: 2.6rem; }
  .section { padding: 52px 0; }
}
@media (max-width: 480px) {
  .topbar .wrap { flex-direction: column; align-items: flex-start; gap: 8px; }
  .nav { gap: 2px 16px; }
  .log > li { padding-left: 24px; }
}

/* ---------- Printing: one clean sheet, no black bars ---------- */
@media print {
  @page { size: letter; margin: 0.5in; }
  * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  body { font-size: 10.5pt; line-height: 1.4; color: #000; background: #fff; }
  .nav, .buttons, .btn, .print-btn, figure, .ask-band, .hero-photo { display: none !important; }
  .topbar, .page-head, .footer, .section-gray, .hero { background: #fff !important; color: #000 !important; }
  .topbar { border-bottom: 3px solid var(--red); }
  .topbar .wrap { padding: 0 0 6px; }
  .brand { color: #000; font-size: 16pt; }
  .wrap { max-width: none; padding: 0; }
  .page-head { padding: 10px 0 4px; }
  .page-head h1 { font-size: 22pt; margin-bottom: 2px; }
  .page-head p { color: #000; font-size: 11pt; }
  .section { padding: 8px 0; }
  h2 { font-size: 15pt; }
  p { max-width: none; }
  .amounts { margin-top: 8px; border-top-width: 2px; }
  .amount { grid-template-columns: 80pt 1fr; padding: 7px 0; gap: 4px 16px; break-inside: avoid; }
  .amount-figure { font-size: 22pt; }
  .note { margin-top: 4px; }
  .sticker { grid-template-columns: 1fr; gap: 0; }
  .sticker-box { background: #fff; color: #000; padding: 8px 12px; border: 2px solid var(--red); border-left-width: 6px; }
  .sticker-box a { color: #000; }
  .sticker-box h2 { margin-bottom: 4px; }
  .faq { grid-template-columns: repeat(2, 1fr); gap: 0 16px; margin-top: 4px; }
  .faq > div { padding: 6px 0; }
  .faq dt { font-size: 12pt; margin-bottom: 2px; }
  a { color: #000; text-decoration: none; }
  .footer { border-top: 2px solid var(--red); padding: 6px 0 0; margin-top: 8px; color: #000; font-size: 9.5pt; break-inside: avoid; }
  .footer strong { font-size: 10.5pt; }
  body { line-height: 1.32; }
  .amount { padding: 5px 0; }
  .amount li { margin: 0; }
  .sticker-box p { margin-bottom: 4px; }
  .section-gray { padding: 4px 0; }
  .page-head p, .section p { margin-bottom: 6px; }
  body { font-size: 9.8pt; line-height: 1.28; }
  .page-head h1 { font-size: 20pt; }
  h2 { font-size: 13.5pt; margin-bottom: 4px; }
  .amount-figure { font-size: 19pt; }
  .amount { padding: 3px 0; }
  .faq dt { font-size: 11pt; }
  .faq > div { padding: 4px 0; }
  .sticker-box { padding: 6px 12px; }
  a[href*="ftcscout.org"]::after { content: " (ftcscout.org/teams/37401)"; }
  .footer strong, .footer a { color: #000; }
  .split { display: block; }
  .amounts { display: grid; grid-template-columns: 1fr 1fr; column-gap: 24px; }
  .amount { border-bottom: 1px solid var(--line); }
  .steps { columns: 2; column-gap: 28px; margin: 2px 0 0; }
  .steps li { padding: 1px 0 1px 4px; font-size: inherit; break-inside: avoid; }
}

/* Build Log entry links and the pager on each entry's own page */
.log h3 a { color: inherit; text-decoration: none; }
.log h3 a:hover, .log h3 a:focus-visible { text-decoration: underline; }
.log-pager { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-top: 28px; font-weight: 600; }
.page-head p a { color: inherit; }

/* ---------- Phone and iPad polish ---------- */
/* Bigger tap targets in the menu and footer (about 44px tall) */
.nav a { display: block; padding: 11px 0; }
.footer a { display: inline-block; padding: 6px 0; }
.btn { min-height: 44px; }
/* Keep content out from under the iPhone's rounded corners in landscape */
.wrap { padding-left: max(20px, env(safe-area-inset-left)); padding-right: max(20px, env(safe-area-inset-right)); }

/* iPad portrait and big phones: photo beside the text, not a full-width photo */
@media (min-width: 641px) and (max-width: 820px) {
  .log-entry, .log-entry-wide { grid-template-columns: 260px 1fr; gap: 24px; }
  .log-entry-nophoto { grid-template-columns: 1fr; }
  .log-entry-wide img { aspect-ratio: 4 / 3; }
}

/* Phones: one tidy row of menu links, shorter hero photo */
@media (max-width: 480px) {
  .nav { width: 100%; flex-wrap: nowrap; justify-content: space-between; gap: 0 6px; }
  .nav a { font-size: .88rem; }
  .topbar .wrap { gap: 0; padding-top: 12px; padding-bottom: 2px; }
  .hero-photo { height: 300px; }
}
