/* TeachSupplyList — design tokens, ported from the Claude Design export.
   Source of truth for look and feel. Plain CSS, no build step. */
@import url('https://fonts.googleapis.com/css2?family=Jost:wght@400;500;600;700&display=swap');
@import url('https://fonts.googleapis.com/css?family=Muli:300,400,600,700');

:root {
  --color-bg: #F3F5F8;
  --color-surface: #fbeee7;
  --color-surface-navy: #eef2f7;
  --color-text: #16233b;
  --color-accent: #1b3a63;
  --color-accent-2: #ff6b52;
  --color-divider: color-mix(in srgb, #16233b 13%, transparent);

  --color-neutral-100: #f6f5f2;
  --color-neutral-200: #ebe8e2;
  --color-neutral-300: #d7d2c8;
  --color-neutral-400: #b7b0a1;
  --color-neutral-500: #948c7c;
  --color-neutral-600: #726a5b;
  --color-neutral-700: #544d41;
  --color-neutral-800: #38332b;
  --color-neutral-900: #201c17;

  --color-accent-100: #e7ecf2;
  --color-accent-200: #c4d0de;
  --color-accent-300: #93a8c2;
  --color-accent-400: #5c7ba0;
  --color-accent-500: #1b3a63;
  --color-accent-600: #152e4f;
  --color-accent-700: #10233d;
  --color-accent-800: #0b1929;
  --color-accent-900: #060e17;

  --color-accent-2-100: #ffece7;
  --color-accent-2-200: #ffd0c4;
  --color-accent-2-300: #ffab97;
  --color-accent-2-400: #ff8a70;
  --color-accent-2-500: #ff6b52;
  --color-accent-2-600: #de4f37;
  --color-accent-2-700: #b23a26;
  --color-accent-2-800: #7c2819;
  --color-accent-2-900: #4a170e;

  --font-heading: "Jost", system-ui, sans-serif;
  --font-heading-weight: 600;
  --font-body: "Muli", system-ui, sans-serif;

  --space-1: 4.4px;
  --space-2: 8.8px;
  --space-3: 13.2px;
  --space-4: 17.6px;
  --space-6: 26.4px;
  --space-8: 35.2px;

  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 28px;

  --shadow-sm: 0 1px 2px color-mix(in srgb, #16233b 8%, transparent);
  --shadow-md: 0 3px 10px color-mix(in srgb, #16233b 10%, transparent);
  --shadow-lg: 0 12px 32px color-mix(in srgb, #16233b 16%, transparent);
}

body { background: var(--color-bg); color: var(--color-text); font-family: var(--font-body); }
h1, h2, h3, h4 { font-family: var(--font-heading); font-weight: var(--font-heading-weight); }

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; font-size: 15px; line-height: 1.55; font-weight: 400; }
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading); font-weight: var(--font-heading-weight);
  line-height: 1.12; letter-spacing: -0.015em; margin: 0 0 var(--space-2);
}
h1 { font-size: 42px; }
h2 { font-size: 32px; }
h3 { font-size: 25px; }
h4 { font-size: 20px; }
h5 { font-size: 16px; }
h6 { font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; }
p { margin: 0 0 var(--space-3); }
a { color: var(--color-accent); text-underline-offset: 3px; }
img { display: block; max-width: 100%; }
.text-muted { color: color-mix(in srgb, var(--color-text) 55%, transparent); }
:focus { outline: none; }
:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 2px; }
::selection { background: color-mix(in srgb, var(--color-accent) 30%, transparent); }

.hr { height: 1px; border: 0; margin: var(--space-4) 0; background: var(--color-divider); }

/* — buttons — */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  cursor: pointer; text-decoration: none;
  font-family: var(--font-heading); font-weight: var(--font-heading-weight);
  font-size: 14px; line-height: 1.2; color: var(--color-text);
  background: transparent; border: 1px solid transparent;
  padding: var(--space-2) calc(var(--space-3) * 1.2);
  border-radius: var(--radius-md);
}
.btn svg { display: block; }
.btn:disabled { opacity: 0.45; cursor: not-allowed; }
.btn-primary { background: var(--color-accent); color: #fff; }
.btn-primary:hover { background: var(--color-accent-600); }
.btn-primary:active { background: var(--color-accent-700); }
.btn-secondary { border-color: var(--color-divider); }
.btn-secondary:hover { background: color-mix(in srgb, var(--color-text) 7%, transparent); }
.btn-secondary:active { background: color-mix(in srgb, var(--color-text) 14%, transparent); }
.btn-ghost { color: var(--color-accent); padding-inline: var(--space-1); }
.btn-ghost:hover { background: color-mix(in srgb, var(--color-accent) 10%, transparent); }
.btn-ghost:active { background: color-mix(in srgb, var(--color-accent) 18%, transparent); }
.btn-icon { width: 36px; height: 36px; padding: 0; }
.btn-block { width: 100%; margin-top: var(--space-2); }
.btn-sm { padding: 5px 14px; font-size: 13px; }

/* — Amazon-style button for generic template items — */
.btn-amazon {
  background: var(--color-accent-2-500);
  color: #fff;
  border-color: var(--color-accent-2-500);
  white-space: nowrap;
}
.btn-amazon:hover { background: var(--color-accent-2-600); border-color: var(--color-accent-2-600); }

/* — forms — */
.field > label { display: block; font-size: 12px; margin-bottom: 5px; color: color-mix(in srgb, var(--color-text) 70%, transparent); }
.input {
  width: 100%; min-height: 36px; padding: 6px 10px; font: inherit;
  font-size: 14px; color: var(--color-text); caret-color: var(--color-accent);
  background: var(--color-surface);
  border: 1px solid var(--color-divider); border-radius: var(--radius-md);
}
.input:hover { border-color: color-mix(in srgb, var(--color-text) 45%, transparent); }
.input:focus-visible { border-color: var(--color-accent); outline-offset: 0; }
textarea.input { min-height: 90px; resize: vertical; }

/* — cards — */
.card { display: flex; flex-direction: column; gap: var(--space-2); padding: var(--space-3); border-radius: var(--radius-md); background: var(--color-surface); }
.card-kicker { font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--color-accent); }
.card-title { font-family: var(--font-heading); font-weight: var(--font-heading-weight); font-size: 17px; line-height: 1.2; }
.card-body { margin: 0; font-size: 13px; opacity: 0.8; flex: 1; }
.card-meta { display: flex; align-items: center; gap: 6px; font-size: 11px; color: color-mix(in srgb, var(--color-text) 50%, transparent); }
.elev-sm { box-shadow: var(--shadow-sm); }
.elev-md { box-shadow: var(--shadow-md); }
.elev-lg { box-shadow: var(--shadow-lg); }

/* — this page's white content cards use a smaller, subtler radius than the
   site-wide default (which runs large/chunky) — matches the reference. — */
.card-white { background: #fff !important; border-radius: var(--radius-sm) !important; }

/* — tags — */
.tag { display: inline-flex; align-items: center; font-size: 11px; letter-spacing: 0.02em; padding: 3px 10px; border-radius: calc(var(--radius-md) * 0.75); text-decoration: none; }
.tag-accent { background: var(--color-accent-100); color: var(--color-accent-800); }
.tag-accent-2 { background: var(--color-accent-2-100); color: var(--color-accent-2-800); }
.tag-neutral { background: var(--color-neutral-100); color: var(--color-neutral-800); }
.tag-outline { border: 1px solid var(--color-accent); color: var(--color-accent); }

/* — navigation — */
.nav { display: flex; align-items: center; gap: var(--space-4); padding: var(--space-3) var(--space-4); border-bottom: none; }
.nav-brand { font-family: var(--font-heading); font-weight: var(--font-heading-weight); font-size: 18px; margin-right: auto; }
.nav a { color: inherit; text-decoration: none; font-size: 14px; }
.nav a:hover, .nav a[aria-current='page'] { color: var(--color-accent-2-500); }

/* — tables — */
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th { text-align: left; font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: color-mix(in srgb, var(--color-text) 60%, transparent); padding: var(--space-2); border-bottom: 1px solid var(--color-divider); }
.table td { padding: var(--space-2); border-bottom: 1px solid color-mix(in srgb, var(--color-text) 8%, transparent); }
.table tbody tr:hover { background: color-mix(in srgb, var(--color-text) 4%, transparent); }

/* — generic supply-list table (school.php fallback content) — white
   background, light-gray grid lines, warm row hover. Scoped so it doesn't
   affect the admin tables or list.php's real table. — */
.supply-list-card { background: #fff; overflow: hidden; border-radius: var(--radius-sm) !important; }
.supply-list-card .table { table-layout: fixed; border-collapse: collapse; }
.supply-list-card .table th, .supply-list-card .table td { border: none; border-bottom: 1px solid #efefef; padding: var(--space-3); }
.supply-list-card .table th:first-child, .supply-list-card .table td:first-child { width: 90px; }
.supply-list-card .table th:last-child, .supply-list-card .table td:last-child { width: 170px; text-align: right; }
.supply-list-card tbody tr:hover { background: #F2E5DF; }

/* — secondary orange disclaimer card — */
.note-card { background: #fff; border-radius: var(--radius-sm) !important; padding: var(--space-4); }
.note-card .note-label { color: var(--color-text); font-weight: 700; }
.note-card p { color: var(--color-accent-2-600); margin: 0; }

/* — disclaimer note — */
.disclaimer-note {
  background: var(--color-neutral-100);
  border: 1px solid var(--color-divider);
  border-radius: var(--radius-sm);
  padding: var(--space-2) var(--space-3);
  font-size: 12.5px;
  color: var(--color-neutral-700);
}

/* — thin-bordered white wrapper around a whole section (pills + list +
   disclaimer together), matching the reference site's card border pattern — */
.bordered-section {
  background: #fff;
  border: 1px solid #e7eaec;
  border-radius: 0.4rem;
  overflow: hidden;
}

/* — rounded frame: everything softens, small controls go pill — */
.card { border-radius: calc(var(--radius-lg) * 1.15); }
.btn, .tag, .input { border-radius: 999px; }
.input { padding-inline: 14px; }

/* — layout helpers used across pages — */
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 var(--space-6); }
.wrap-narrow { max-width: 900px; margin: 0 auto; padding: 0 var(--space-6); }
.icon-badge {
  width: 48px; height: 48px; border-radius: 999px;
  background: var(--color-accent-100); color: var(--color-accent-700);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: var(--space-3);
}

/* — full-bleed photo hero — swap the background-image on .hero-photo for
   a real photo when you have one; the striped gradient is a stand-in. — */
.hero-photo {
  position: relative;
  min-height: 560px;
  display: flex;
  align-items: center;
  background:
    linear-gradient(90deg, rgba(27,58,99,0.8) 15%, rgba(27,58,99,0.45) 55%, rgba(27,58,99,0.15) 100%),
    repeating-linear-gradient(135deg, var(--color-accent-600), var(--color-accent-600) 16px, var(--color-accent-500) 16px, var(--color-accent-500) 32px);
  background-size: cover;
  background-position: center;
}
.hero-photo .hero-inner {
  position: relative; z-index: 1; width: 100%;
  display: flex; justify-content: space-between; align-items: center;
  gap: var(--space-8); flex-wrap: wrap;
}
.hero-photo .hero-copy h1, .hero-photo .hero-copy p { color: #fff; }
.hero-photo .hero-copy p { opacity: 0.88; }
.ph-tag {
  position: absolute; top: var(--space-3); left: var(--space-3); z-index: 2;
  background: rgba(255,255,255,0.85); color: var(--color-neutral-700);
  font-size: 10.5px; letter-spacing: 0.06em; text-transform: uppercase; font-weight: 700;
  padding: 4px 10px; border-radius: 999px;
}

/* — shorter page-header banner (school/state pages), left-aligned — */
.page-header-photo {
  position: relative;
  min-height: 200px;
  display: flex;
  align-items: flex-end;
  background:
    linear-gradient(0deg, rgba(27,58,99,0.85) 15%, rgba(27,58,99,0.35) 100%),
    repeating-linear-gradient(135deg, var(--color-accent-500), var(--color-accent-500) 16px, var(--color-accent-400) 16px, var(--color-accent-400) 32px);
  background-size: cover;
  background-position: center;
}
.page-header-photo .wrap { position: relative; z-index: 1; width: 100%; padding-top: var(--space-6); padding-bottom: var(--space-4); text-align: left; }
.page-header-photo nav, .page-header-photo nav a { color: rgba(255,255,255,0.8); }
.page-header-photo h1 { color: #fff; margin-bottom: 4px; }
.page-header-photo p { color: rgba(255,255,255,0.85); margin: 0; }

/* — icon-circle cards (Featured categories) — */
.icon-circle-card { text-align: center; background: #fff; border: 1px solid var(--color-divider); border-radius: var(--radius-md); padding: var(--space-4) var(--space-3); }
.icon-circle {
  width: 56px; height: 56px; border-radius: 999px; margin: 0 auto var(--space-2);
  display: flex; align-items: center; justify-content: center; font-size: 22px;
}
.icon-circle-card h4 { font-size: 15px; margin-bottom: 2px; }
.icon-circle-card p { font-size: 12.5px; margin: 0; opacity: 0.7; }

/* — location / trending photo cards — */
.location-card {
  position: relative; border-radius: var(--radius-md); overflow: hidden;
  min-height: 190px; display: flex; align-items: flex-end;
  background:
    linear-gradient(0deg, rgba(27,58,99,0.75) 0%, rgba(27,58,99,0.05) 60%),
    repeating-linear-gradient(135deg, var(--color-accent-400), var(--color-accent-400) 14px, var(--color-accent-300) 14px, var(--color-accent-300) 28px);
  color: #fff; text-decoration: none;
}
.location-card:hover { text-decoration: none; }
.location-card .lc-body { position: relative; z-index: 1; padding: var(--space-3); width: 100%; display: flex; justify-content: space-between; align-items: flex-end; }
.location-card .lc-title { font-family: var(--font-heading); font-weight: 600; font-size: 16px; }
.location-card .lc-sub { font-size: 11.5px; opacity: 0.85; }
.location-card .lc-arrow {
  width: 30px; height: 30px; border-radius: 999px; background: rgba(255,255,255,0.25);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}

/* — finder bar (hero search, horizontal) — */
.finder-bar {
  background: #fff; border-radius: 999px; padding: 6px;
  display: flex; align-items: center; gap: 6px; box-shadow: var(--shadow-lg);
  max-width: 640px; flex-wrap: nowrap;
}
.finder-bar select {
  border: none; background: transparent; font-family: var(--font-body); font-size: 13.5px;
  color: var(--color-text); padding: 8px 10px; min-width: 0; flex: 1;
}
.finder-bar select:focus { outline: none; }
.finder-bar .divider { width: 1px; height: 24px; background: var(--color-divider); flex-shrink: 0; }
.finder-bar .btn { flex-shrink: 0; }
@media (max-width: 720px) {
  .finder-bar { flex-wrap: wrap; border-radius: var(--radius-md); }
  .finder-bar .divider { display: none; }
  .finder-bar select, .finder-bar .btn { width: 100%; }
}

/* — tinted band sections (alternating photo/text rows) — */
.band-section { background: var(--color-surface-navy); }
.info-band { background: #F3F5F8; }

/* — FAQ accordion (native details/summary, no JS needed) — */
.faq-item { border-bottom: 1px solid var(--color-divider); }
.faq-item summary {
  list-style: none; cursor: pointer; padding: var(--space-3) 0;
  display: flex; justify-content: space-between; align-items: center;
  font-family: var(--font-heading); font-weight: 600; font-size: 15px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; font-size: 20px; color: var(--color-accent); flex-shrink: 0; margin-left: var(--space-2); }
.faq-item[open] summary::after { content: '\2212'; }
.faq-item p { padding-bottom: var(--space-3); margin: 0; }

/* — filter pills (small, distinct from action buttons) — */
.pill-row { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.pill {
  display: inline-flex; align-items: center; gap: 4px;
  font-family: var(--font-body); font-weight: 600; font-size: 12.5px;
  padding: 5px 13px; border-radius: 999px; cursor: pointer; text-decoration: none;
  border: 1px solid var(--color-divider); color: var(--color-text); background: transparent;
}
.pill:hover { text-decoration: none; border-color: var(--color-accent); }
.pill.is-active { background: var(--color-accent); border-color: var(--color-accent); color: #fff; }

/* — photo placeholders — stand-ins for real photography later — */
.photo-placeholder {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 8px; text-align: center; padding: var(--space-4);
  background: repeating-linear-gradient(135deg, var(--color-neutral-100), var(--color-neutral-100) 10px, var(--color-neutral-200) 10px, var(--color-neutral-200) 20px);
  border: 1.5px dashed var(--color-neutral-400);
  border-radius: var(--radius-lg);
  color: var(--color-neutral-600);
  min-height: 200px;
}
.photo-placeholder .ph-icon {
  width: 40px; height: 40px; border-radius: 999px;
  background: color-mix(in srgb, var(--color-neutral-900) 6%, transparent);
  display: flex; align-items: center; justify-content: center;
}
.photo-placeholder span { font-size: 12px; max-width: 26ch; }

/* — footer — */
.site-footer { border-top: none; background: var(--color-accent-900); color: rgba(255,255,255,0.72); }
.site-footer .nav-brand { color: #fff; }
.site-footer .text-muted { color: rgba(255,255,255,0.55); }
.site-footer .wrap { padding-top: var(--space-8); padding-bottom: var(--space-6); }
.footer-cols { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: var(--space-4); }
.footer-cols h6 { color: rgba(255,255,255,0.45); margin-bottom: var(--space-2); }
.footer-cols a { display: block; color: rgba(255,255,255,0.78); opacity: 1; font-size: 13.5px; padding: 3px 0; text-decoration: none; }
.footer-cols a:hover { color: var(--color-accent-2-400); }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: var(--space-2);
  margin-top: var(--space-6); padding-top: var(--space-4); border-top: 1px solid rgba(255,255,255,0.12);
  font-size: 12px; color: rgba(255,255,255,0.5);
}
.footer-badge { font-size: 9px; font-weight: 700; padding: 1px 6px; border-radius: 999px; margin-left: 6px; text-transform: uppercase; }
.footer-badge.new { background: var(--color-accent-2-500); color: #fff; }
.footer-badge.popular { background: #f2b705; color: #4a3600; }

@media (max-width: 900px) {
  .grid-3 { grid-template-columns: 1fr !important; }
  .grid-2 { grid-template-columns: 1fr !important; }
  .grid-4 { grid-template-columns: repeat(2,1fr) !important; }
  #cityGrid { columns: 2 !important; }
}
@media (max-width: 560px) {
  #cityGrid { columns: 1 !important; }
}
@media (max-width: 780px) {
  .footer-cols { grid-template-columns: 1fr 1fr; }
}

@media print {
  .no-print { display: none !important; }
}
