/* SBARC front page (index_preview.php). Colourful, quick to scan: a welcome banner
   with hamster art, then cards. Quiz right/wrong uses blue / red with words too. */
.fp { --fp-blue: #1a4d8f; --fp-ink: #23272e; --fp-ink2: #5b6472; --fp-line: #e2e7ef; --fp-bg: #f4f6f9;
      --fp-1: #1a4d8f; --fp-2: #0e7c86; --fp-3: #c2410c; --fp-4: #6d28d9; --fp-5: #b45309; --fp-6: #be185d;
      max-width: 1180px; margin: 24px auto 40px; padding: 0 16px; font-family: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif; color: var(--fp-ink); }
.fp *, .fp *::before, .fp *::after { box-sizing: border-box; }
/* zero specificity, so the admin's picture classes (img-left-large etc.) still apply */
:where(.fp) :where(img) { max-width: 100%; height: auto; }
.fp-h { font-size: 24px; font-weight: 800; color: var(--fp-blue); margin: 30px 0 12px; }
.fp-muted { color: var(--fp-ink2); font-size: 14px; }
.fp-link { color: var(--fp-blue); font-weight: 700; font-size: 14.5px; text-decoration: none; }
.fp-link:hover { text-decoration: underline; }

/* Buttons */
.fp-btn { display: inline-block; border-radius: 999px; padding: 12px 22px; font-weight: 700; font-size: 16px; text-decoration: none; border: 0; cursor: pointer; transition: transform .1s; }
.fp-btn:hover { transform: translateY(-1px); }
.fp-btn-1 { background: #ffd34d; color: #3a2a00; }
.fp-btn-2 { background: #fff; color: var(--fp-blue); }
.fp-btn-3 { background: transparent; color: #fff; box-shadow: inset 0 0 0 2px rgba(255,255,255,.85); }
.fp-btn-sm { padding: 8px 16px; font-size: 14px; background: var(--fp-blue); color: #fff; }

/* 1. Welcome banner */
.fp-hero { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 28px; align-items: center;
           background: linear-gradient(135deg, #1a4d8f 0%, #0e7c86 100%); color: #fff; border-radius: 18px; padding: 30px; box-shadow: 0 6px 24px rgba(26,77,143,.25); }
.fp-kicker { display: inline-block; background: rgba(255,255,255,.16); border-radius: 999px; padding: 5px 12px; font-size: 13px; font-weight: 600; }
.fp-hero h1 { font-size: 44px; line-height: 1.1; font-weight: 800; margin: 14px 0 12px; color: #fff; }
.fp-hero p { font-size: 17px; line-height: 1.6; margin: 0 0 20px; color: rgba(255,255,255,.93); }
.fp-ctas { display: flex; flex-wrap: wrap; gap: 10px; }
.fp-hero-art { margin: 0; }
.fp-hero-art img { width: 100%; border-radius: 14px; display: block; box-shadow: 0 8px 22px rgba(0,0,0,.25); transform: rotate(1.2deg); }
.fp-hero-art figcaption { font-size: 13.5px; font-style: italic; color: rgba(255,255,255,.88); margin-top: 10px; text-align: right; }

/* Cards */
.fp-grid { display: grid; gap: 18px; margin-bottom: 18px; }
.fp-week { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) minmax(0, 1fr); }
.fp-two { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.fp-flyers { grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: start; }
.fp-card { background: #fff; border: 1px solid var(--fp-line); border-radius: 14px; padding: 18px 20px; box-shadow: 0 2px 10px rgba(0,0,0,.05); min-width: 0; overflow-wrap: break-word; }
.fp-tag { display: inline-block; color: #fff; font-size: 12.5px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; border-radius: 6px; padding: 4px 10px; margin-bottom: 12px; }
.fp-tag-1 { background: var(--fp-1); } .fp-tag-2 { background: var(--fp-2); } .fp-tag-3 { background: var(--fp-3); }
.fp-tag-4 { background: var(--fp-4); } .fp-tag-5 { background: var(--fp-5); } .fp-tag-6 { background: var(--fp-6); }

/* Next meeting: picture, title and a teaser; the whole write-up opens in a pop-up */
.fp-meetwhen { font-size: 15.5px; line-height: 1.4; margin: 0 0 10px; }
.fp-meetwhen small { color: var(--fp-ink2); font-size: 13px; }
.fp-meetimg { display: block; width: 100%; max-height: 180px; object-fit: contain; border-radius: 10px; background: #f6f8fb; }
.fp-meettitle { font-size: 18px; font-weight: 800; color: var(--fp-blue); line-height: 1.3; margin: 12px 0 6px; }
.fp-meettease { font-size: 14.5px; line-height: 1.55; margin: 0; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.fp-more { margin-top: 10px; background: none; border: 0; color: var(--fp-blue); font-weight: 700; font-size: 14.5px; cursor: pointer; padding: 0; font-family: inherit; }
.fp-dlg { position: fixed; inset: 0; margin: auto; height: fit-content; width: min(680px, calc(100vw - 32px)); max-height: calc(100vh - 48px); border: 0; border-radius: 16px; padding: 24px 26px; box-shadow: 0 20px 60px rgba(0,0,0,.35); font-family: "Poppins", system-ui, sans-serif; color: #23272e; font-size: 15.5px; line-height: 1.6; }
.fp-dlg::backdrop { background: rgba(20,30,50,.55); }
.fp-dlg p { margin: 0 0 12px; }
.fp-dlgimg { display: block; max-width: 100%; max-height: 260px; margin: 0 auto 14px; border-radius: 10px; }
.fp-dlgx { position: sticky; top: 0; float: right; margin: -8px -8px 0 10px; width: 36px; height: 36px; border-radius: 50%; border: 0; background: #eef2f8; color: #1a4d8f; font-size: 24px; line-height: 1; cursor: pointer; }

/* Coming up */
.fp-events { list-style: none; margin: 0; padding: 0; }
.fp-events li { display: flex; gap: 12px; align-items: center; padding: 7px 0; border-bottom: 1px solid var(--fp-line); font-size: 14.5px; line-height: 1.35; }
.fp-events li:last-child { border-bottom: 0; }
.fp-events small { color: var(--fp-ink2); }
.fp-date { flex: 0 0 48px; text-align: center; background: #eaf3f4; color: var(--fp-2); border-radius: 8px; font-size: 12px; font-weight: 700; text-transform: uppercase; padding: 4px 0; line-height: 1.1; }
.fp-date b { display: block; font-size: 20px; }

/* Nets */
.fp-big { font-size: 18px; margin: 0 0 10px; }
.fp-netlist { margin: 0 0 10px; padding-left: 18px; font-size: 14.5px; line-height: 1.55; }
.fp-netlist li { margin-bottom: 6px; }

/* Band conditions */
.fp-bcsum { font-size: 16.5px; line-height: 1.5; margin: 0 0 12px; }
.fp-bcbands { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-bottom: 10px; }
.fp-bcbands div { border-radius: 10px; padding: 10px 6px; text-align: center; }
.fp-bcbands span { display: block; font-size: 13px; font-weight: 600; }
.fp-bcbands b { font-size: 17px; }
.fp-bcdays { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 4px 0 12px; }
.fp-bcday { border: 1px solid var(--fp-line); border-left-width: 5px; border-radius: 8px; padding: 7px 10px; font-size: 13px; line-height: 1.35; }
.fp-bcday span { display: block; color: var(--fp-ink2); font-weight: 600; }
.fp-bcday b { display: block; font-size: 15.5px; }
.fp-bcday small { color: var(--fp-ink2); }
.fp-bcday.k-quiet { border-left-color: #1f6fd1; } .fp-bcday.k-unsettled, .fp-bcday.k-active { border-left-color: #d4ab00; } .fp-bcday.k-storm { border-left-color: #b3261e; }
.fp-sunrow { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 16px; align-items: center; margin: 4px 0 6px; }
.fp-sun { margin: 0; width: 236px; height: 236px; border-radius: 50%; overflow: hidden; background: #000; box-shadow: 0 0 30px rgba(255,170,40,.6); }
.fp-sun img { display: block; width: 100%; height: 100%; object-fit: cover; transform: scale(1.07); }   /* trims the black edge around the disc */
.fp-suncap { font-size: 13px; line-height: 1.45; color: var(--fp-ink2); margin: 10px 0 8px; }
.fp-suncap small { font-size: 11.5px; }
.fp-sunsw { display: inline-flex; vertical-align: middle; margin-right: 8px; border: 1px solid var(--fp-line); border-radius: 999px; overflow: hidden; }
.fp-sunsw button { border: 0; background: #fff; font: inherit; font-size: 12px; font-weight: 700; padding: 3px 10px; cursor: pointer; color: var(--fp-ink2); }
.fp-sunsw button.on { background: var(--fp-4); color: #fff; }
.fp-suntiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 1fr; gap: 10px; height: 236px; }
.fp-stile { display: flex; flex-direction: column; justify-content: center; }
.fp-stile { border: 1px solid var(--fp-line); border-top-width: 4px; border-radius: 10px; padding: 8px 10px; }
.fp-stile span { display: block; font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--fp-ink2); }
.fp-stile b { display: block; font-size: 24px; font-weight: 800; line-height: 1.2; }
.fp-stile small { font-size: 12.5px; color: var(--fp-ink2); }
.fp-stile.t2 { border-top-color: #1f6fd1; } .fp-stile.t1 { border-top-color: #d4ab00; } .fp-stile.t0 { border-top-color: #b3261e; }
.fp-bcnums { font-size: 13.5px; color: var(--fp-ink2); margin: 0 0 8px; }

/* Try a question */
.fp-qwrap { display: block; margin-bottom: 12px; }
.fp-qimg { display: block; width: 100%; height: 300px; object-fit: contain; border-radius: 10px; background: #f6f8fb; border: 1px solid var(--fp-line); margin-bottom: 12px; }
.fp-qcls { font-size: 12.5px; font-weight: 700; color: var(--fp-5); text-transform: uppercase; letter-spacing: .03em; }
.fp-qtext { font-size: 17px; font-weight: 600; line-height: 1.45; margin: 4px 0 0; }
.fp-qopts { display: grid; gap: 7px; }
.fp-qopt { display: flex; gap: 10px; align-items: flex-start; text-align: left; background: #f6f8fb; border: 2px solid var(--fp-line); border-radius: 10px; padding: 9px 12px; font: inherit; font-size: 14.5px; cursor: pointer; color: var(--fp-ink); }
.fp-qopt:hover:not(:disabled) { border-color: var(--fp-blue); }
.fp-qopt b { flex: 0 0 auto; color: var(--fp-blue); }
.fp-qopt:disabled { cursor: default; }
.fp-qopt.right { background: #dbe8fb; border-color: #1f6fd1; }
.fp-qopt.right::after { content: "\2713 Correct"; margin-left: auto; font-weight: 800; color: #1f6fd1; white-space: nowrap; }
.fp-qopt.wrong { background: #fbdcdc; border-color: #b3261e; }
.fp-qopt.wrong::after { content: "\2717"; margin-left: auto; font-weight: 800; color: #b3261e; }
.fp-qwhy { margin-top: 12px; font-size: 14.5px; line-height: 1.55; background: #fffaf0; border-radius: 10px; padding: 10px 14px; }
.fp-qwhy p { margin: 0 0 6px; }
.fp-qverdict { font-weight: 700; }
.fp-qverdict.right { color: #1f6fd1; }
.fp-qverdict.wrong { color: #b3261e; }
.fp-qfoot { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; margin-top: 14px; }

/* The club on the air: FT8 standings + this month's totals */
.fp-air { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); }
.fp-standt { width: 100%; border-collapse: collapse; font-size: 15px; margin-bottom: 10px; }
.fp-standt thead, .fp-standt thead tr { background: none; }
.fp-standt th { background: #eaf3f4; color: var(--fp-2); font-size: 12px; text-transform: uppercase; letter-spacing: .04em; padding: 8px 10px; text-align: left; white-space: nowrap; }
.fp-standt td { padding: 9px 10px; border-bottom: 1px solid #eee; white-space: nowrap; }
.fp-standt tbody tr:nth-child(even) { background: #f8f9fa; }
.fp-standt tbody tr:hover { background: inherit; }
.fp-standt tbody tr:first-child td { font-weight: 700; }
.fp-standt .pl { font-weight: 700; color: var(--fp-blue); width: 44px; }
.fp-standt .call { font-family: "SF Mono", Menlo, Consolas, monospace; font-weight: 700; color: var(--fp-blue); letter-spacing: .03em; }
.fp-standt .n { text-align: right; font-variant-numeric: tabular-nums; }
.fp-standt .big { font-size: 17px; font-weight: 800; color: var(--fp-2); }
.fp-mtiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-bottom: 10px; }
.fp-mtiles div { background: #fdf2f8; border-radius: 12px; padding: 14px 12px; text-align: center; }
.fp-mtiles b { display: block; font-size: 34px; font-weight: 800; color: var(--fp-6); line-height: 1.1; }
.fp-mtiles span { font-size: 13px; color: var(--fp-ink2); font-weight: 600; }
.fp-stand { overflow-x: auto; }
.fp-tag2 { margin-top: 14px; }
.fp-regt th { background: #fdeee6; color: var(--fp-3); }
.fp-regt .big { color: var(--fp-3); }
.fp-mtiles div:only-child, .fp-mtiles div:last-child:nth-child(odd) { grid-column: 1 / -1; }
.fp-lastnets { list-style: none; margin: 0 0 10px; padding: 0; font-size: 14.5px; line-height: 1.5; }
.fp-lastnets li { padding: 6px 0; border-bottom: 1px solid var(--fp-line); }
.fp-lastnets b { color: var(--fp-6); font-size: 17px; }

/* Flyers and the Tour card */
.fp-flyer { border-radius: 14px; overflow: hidden; box-shadow: 0 2px 10px rgba(0,0,0,.08); background: #fff; aspect-ratio: 2 / 3; }
.fp-flyer .image-only-box { margin: 0 !important; height: 100% !important; border-radius: 0 !important; }
.fp-flyer img { display: block; width: 100%; height: 100%; object-fit: cover; }
.fp-flyer a { display: block; height: 100%; }
.fp-tour { display: flex; flex-direction: column; text-decoration: none; color: var(--fp-ink); padding: 0; overflow: hidden; transition: transform .12s, box-shadow .12s; }
.fp-tour:hover { transform: translateY(-2px); box-shadow: 0 8px 22px rgba(0,0,0,.12); }
.fp-tour img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; display: block; }
.fp-tour .fp-tag, .fp-tour h3, .fp-tour p { margin-left: 18px; margin-right: 18px; }
.fp-tour .fp-tag { align-self: flex-start; margin-top: 14px; margin-bottom: 6px; }
.fp-tour h3 { font-size: 21px; font-weight: 800; color: var(--fp-6); margin-top: 2px; margin-bottom: 6px; }
.fp-tour p { font-size: 14.5px; line-height: 1.55; margin-top: 0; margin-bottom: 10px; }
.fp-tour .fp-act { background: #fdf2f8; border-radius: 8px; padding: 7px 10px; }
.fp-tour .fp-btn { align-self: flex-start; margin: auto 18px 18px; background: var(--fp-6); }

/* The admin boxes (their own HTML) inside cards */
.fp-boxed { font-size: 15px; line-height: 1.6; }
.fp-boxed img { border-radius: 10px; }
.fp-boxed img[class*="img-left"], .fp-boxed img[class*="img-right"] { max-width: 45%; }
/* In these half-width boxes a "large" picture floats beside the text at half the box's width */
.fp-boxed img.img-left-large, .fp-boxed img.img-left-xlarge { max-width: 50%; }
.fp-boxed img.img-right-large, .fp-boxed img.img-right-xlarge { max-width: 50%; }

/* The Mailchimp sign-up form inside its box: fit the box, and a normal-height button
   (Mailchimp's own stylesheet fixes the form at 600px and the button at 32px tall) */
.fp #mc_embed_signup { width: auto !important; max-width: 100%; font-family: inherit !important; background: transparent !important; }
.fp #mc_embed_signup form { padding: 0 !important; margin: 4px 0 0 !important; }
.fp #mc_embed_signup h2 { font-size: 19px; font-weight: 700; color: var(--fp-blue); margin: 0 0 4px; }
.fp #mc_embed_signup .mc-field-group { width: 100% !important; padding-bottom: 2px !important; min-height: 0 !important; }
.fp #mc_embed_signup .mc-field-group p { margin: 0 0 8px; }
.fp #mc_embed_signup .mc-field-group label { font-size: 14px; font-weight: 600; }
.fp #mc_embed_signup .mc-field-group input { width: 100% !important; box-sizing: border-box; padding: 9px 11px !important; border: 1px solid #cfd6e0 !important; border-radius: 8px !important; font: inherit; font-size: 15px; }
.fp #mc_embed_signup .optionalParent, .fp #mc_embed_signup .optionalParent .foot { display: block !important; width: 100% !important; padding: 0 !important; margin: 0 !important; }
.fp #mc_embed_signup .button { display: block !important; width: 100% !important; height: auto !important; line-height: 1.3 !important; padding: 13px 30px !important; margin: 8px 0 6px !important; font: inherit !important; font-size: 17px !important; font-weight: 700 !important; background-color: var(--fp-2) !important; border-radius: 999px !important; }
.fp #mc_embed_signup .button:hover { background-color: #0b6870 !important; }
.fp #mc_embed_signup .brandingLogo { text-align: center; margin: 0; }
.fp #mc_embed_signup .w3-right-align { font-size: 13px; }
.fp-boxed::after, .fp-article::after { content: ""; display: block; clear: both; }
.fp-boxed .w3-container { padding-left: 0; padding-right: 0; }
.fp-article { font-size: 15px; line-height: 1.6; }
.fp-article img { border-radius: 10px; }
.fp-netstoday table { font-size: 13.5px; width: 100%; }
.fp-netstoday td, .fp-netstoday th { white-space: nowrap; }
.fp-netstoday { overflow-x: auto; margin-bottom: 18px; }

@media (max-width: 960px) {
  .fp-air { grid-template-columns: 1fr; }
  .fp-week { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .fp-week .fp-meet { grid-column: 1 / -1; }
  .fp-flyers .fp-tour { grid-column: 1 / -1; }
}
@media (max-width: 720px) {
  .fp-hero { grid-template-columns: 1fr; padding: 22px 18px; }
  .fp-hero h1 { font-size: 32px; }
  .fp-hero-art img { transform: none; }
  .fp-week, .fp-two, .fp-air { grid-template-columns: 1fr; }
  .fp-flyers { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; }
  .fp-flyers > :nth-child(3) { display: none; }   /* phones: two flyers side by side */
  .fp-bcbands { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fp-qimg { height: 220px; }
  .fp-sunrow { grid-template-columns: 1fr; justify-items: center; }
  .fp-sun { width: 200px; height: 200px; }
  .fp-suntiles { width: 100%; height: auto; }
  .fp-card { padding: 16px; }
}

/* Tour-page look: each card a soft tint matching its label colour, deeper shadows,
   rounder corners; the white bits inside (tables, answers, tiles, fields) stand out */
.fp-hero { border-radius: 22px; box-shadow: 0 10px 30px rgba(16,42,92,.35); }
.fp-card { border: 0; border-radius: 20px; box-shadow: 0 6px 22px rgba(0,0,0,.09); }
.fp-t-blue   { background: #e8f1ff; }
.fp-t-teal   { background: #e3f5f3; }
.fp-t-orange { background: #fff0e4; }
.fp-t-purple { background: #f1ebff; }
.fp-t-gold   { background: #fff6d6; }
.fp-t-pink   { background: #fdebf3; }
.fp-t-green  { background: #eef3e2; }
.fp-t-sky    { background: #eaf4fb; }
.fp-date, .fp-qopt, .fp-stile, .fp-bcday, .fp-mtiles div, .fp-qwhy, .fp-meetimg, .fp-qimg { background: #fff; }
.fp-standt, .fp-netstoday table { background: #fff; border-radius: 10px; overflow: hidden; }
.fp-standt tbody tr:nth-child(even) { background: #f7f9fc; }
.fp-events li, .fp-lastnets li { border-bottom-color: rgba(0,0,0,.08); }
.fp-mtiles div { box-shadow: 0 2px 8px rgba(0,0,0,.05); }
.fp-flyer { border-radius: 20px; box-shadow: 0 6px 22px rgba(0,0,0,.14); }
