/* Public site: the same look as the portal and the bot dashboard (admin.css): light blue page, white bar
   with the logo, white cards, Anton headings, League Spartan text, black buttons.
   Fonts are served from here (the CSP allows nothing external); both are SIL Open Font License, see OFL-fonts.txt. */
@font-face { font-family: "Anton"; font-style: normal; font-weight: 400; font-display: swap;
             src: url("/assets/anton-latin.woff2") format("woff2"); }
@font-face { font-family: "League Spartan"; font-style: normal; font-weight: 100 900; font-display: swap;
             src: url("/assets/league-spartan-latin.woff2") format("woff2"); }

:root {
  --bg: #cfe7fe;
  --card: #ffffff;
  --text: #000000;
  --muted: #475569;
  --line: #e2e8f0;
  --head: #f8fafc;
  --brand: #000000;
  --brand-hover: #1f2937;
  --link: #4338ca;
  --ok: #065f46;
  --ok-bg: #d1fae5;
  --pend: #92400e;
  --pend-bg: #fef3c7;
  --display: "Anton", Impact, "Arial Narrow", sans-serif;
  --shadow: 0 1px 2px rgba(15, 23, 42, .06);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text);
       font: 17px/1.55 "League Spartan", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
a { color: var(--link); }
.wrap { max-width: 960px; margin: 0 auto; padding: 0 16px; }

.top { background: var(--card); border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
       position: sticky; top: 0; z-index: 10; }
.top .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 20px;
             padding-top: 10px; padding-bottom: 10px; }
.top .brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none;
              font-family: var(--display); font-size: 1.35rem; letter-spacing: .12em; text-transform: uppercase; }
.top .brand img { width: 36px; height: 36px; object-fit: contain; }
.top nav { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.top nav a { color: var(--muted); font-weight: 600; text-decoration: none; padding: 2px 0;
             border-bottom: 2px solid transparent; }
.top nav a:hover { color: var(--link); }
.top nav a[aria-current="page"] { color: var(--text); border-bottom-color: currentColor; }

main.wrap { padding-top: 28px; padding-bottom: 40px; min-height: 60vh; }
h1 { font-family: var(--display); font-weight: 400; font-size: 2.1rem; line-height: 1.15; letter-spacing: .06em;
     text-transform: uppercase; margin: 4px 0 16px; }
h2 { font-family: var(--display); font-weight: 400; font-size: 1.2rem; letter-spacing: .06em; text-transform: uppercase;
     margin: 0 0 8px; }
.lead { margin: -6px 0 16px; color: var(--muted); }

.card { background: var(--card); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow);
        padding: 20px 24px; }
.prose > :first-child { margin-top: 0; }
.prose > :last-child { margin-bottom: 0; }
.prose h2 { margin: 26px 0 8px; }
.prose p, .prose li { max-width: 68ch; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: 4px; }

.cta { margin: 20px 0 0; }
.button { display: inline-block; background: var(--brand); color: #fff; border: 1px solid var(--brand); text-decoration: none;
          padding: 11px 20px; border-radius: 12px; font-weight: 700; overflow-wrap: anywhere; }
.button:hover { background: var(--brand-hover); border-color: var(--brand-hover); }
.soon, .status-note { display: inline-block; background: var(--pend-bg); color: var(--pend); border: 1px solid #fde68a;
                      border-radius: 14px; padding: 12px 16px; margin: 0; }
.status-note strong { color: inherit; }

.partners { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
/* The logo is square (1:1, re-encoded on upload): a 240 px column beside the text, full width on phones. */
.partner { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 24px; align-items: start; }
.partner.no-logo { grid-template-columns: minmax(0, 1fr); }
.partner .logo { display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: contain; background: #fff;
                 border: 1px solid var(--line); border-radius: 12px; }
.partner h2 a { color: var(--text); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.partner h2 a:hover { color: var(--link); }
.partner p { margin: 4px 0; }
.partner p + p { margin-top: 10px; }
.partner ul { margin: 6px 0; padding-left: 1.3em; }
.partner .benefit { margin-top: 12px; background: var(--ok-bg); color: var(--ok); border: 1px solid #a7f3d0;
                    border-radius: 12px; padding: 8px 12px; }
.partner .benefit a { color: inherit; }

footer { color: var(--muted); font-size: .9rem; }
footer .wrap { padding-top: 8px; padding-bottom: 28px; }
footer p { margin: 2px 0; }
.socials { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.socials a { display: inline-flex; align-items: center; gap: 6px; color: inherit; font-weight: 600; }
.socials a:hover { color: var(--link); }
.socials img { display: block; flex: none; }
.socials-big { gap: 12px; margin-top: 12px; }
.socials-big a { gap: 8px; }
.button.secondary { background: var(--card); color: var(--text); border-color: #cbd5e1; }
.button.secondary:hover { background: var(--bg, #f1f5f9); color: var(--link); border-color: var(--link); }

/* Only in the portal's preview of a partner (never on the public site). */
.preview-bar { background: var(--pend-bg); color: var(--pend); border-bottom: 1px solid #fde68a; }
.preview-bar .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; padding-top: 10px; padding-bottom: 10px; }
.preview-bar p { margin: 0; flex: 1 1 320px; }
.preview-bar form { margin: 0; }
.preview-bar button, .preview-bar a.back { font: inherit; font-weight: 700; padding: 8px 16px; border-radius: 12px; cursor: pointer;
                                           border: 1px solid var(--brand); text-decoration: none; display: inline-block; }
.preview-bar button { background: var(--brand); color: #fff; }
.preview-bar a.back { background: var(--card); color: var(--text); border-color: #cbd5e1; }

/* Phones: the links become a drop-down (the "Menu" button, <details>) beside the logo. */
.menu { display: none; position: relative; }
.menu summary { list-style: none; cursor: pointer; font-weight: 700; padding: 7px 14px; border: 1px solid var(--line);
                border-radius: 12px; background: var(--card); color: var(--text); user-select: none; white-space: nowrap; }
.menu summary::-webkit-details-marker { display: none; }
.menu[open] summary { border-color: var(--text); }
.top .menu-links { position: absolute; right: 0; top: calc(100% + 8px); z-index: 20; min-width: 210px;
                   display: flex; flex-direction: column; gap: 2px; padding: 8px; background: var(--card);
                   border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); }
.top .menu-links a { color: var(--text); padding: 10px 12px; border-radius: 10px; border-bottom: 0; }
.top .menu-links a:hover { background: var(--bg); color: var(--text); }
.top .menu-links a[aria-current="page"] { background: var(--bg); }

@media (max-width: 640px) {
  .top .wrap { flex-wrap: nowrap; }
  .top .brand { font-size: 1.1rem; letter-spacing: .08em; }
  .top .nav-full { display: none; }
  .menu { display: block; }
  h1 { font-size: 1.6rem; }
  .card { padding: 16px; }
  .partner { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .partner .logo { max-width: 360px; }
}
