/*


 */

:root {
  color-scheme: light;
  --ink: #18332f;
  --muted: #667773;
  --green: #147d64;
  --line: #dce8e3;
  --surface: #ffffff;
  --wash: #f4f8f6;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--wash);
  color: var(--ink);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

a { color: var(--green); text-decoration: none; }
a:hover { text-decoration: underline; }

.container { width: min(1040px, calc(100% - 32px)); margin: 0 auto; }
.site-header { background: var(--surface); border-bottom: 1px solid var(--line); }
.header-content { min-height: 68px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 8px; color: var(--green); font-size: 28px; font-weight: 800; letter-spacing: -0.04em; line-height: 32px; }
.brand span { position: relative; top: 1px; }
.brand:hover { text-decoration: none; }
.brand-icon { display: block; flex: 0 0 32px; }
nav { display: flex; gap: 8px; }
nav a { padding: 9px 13px; border-radius: 999px; color: var(--muted); font-weight: 650; }
nav a.active, nav a:hover { background: #e8f4ef; color: var(--green); text-decoration: none; }

main { padding: 42px 0 56px; }
.eyebrow { color: var(--green); font-size: .78rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
h1 { margin: 4px 0 8px; font-size: clamp(2rem, 5vw, 3rem); letter-spacing: -.055em; line-height: 1.1; }
h2 { margin: 0 0 12px; font-size: 1.2rem; letter-spacing: -.02em; }
.intro { max-width: 660px; margin: 0 0 26px; color: var(--muted); }
.page-heading { margin-bottom: 28px; }
.search-form { display: flex; flex-wrap: wrap; gap: 10px; margin: 24px 0 18px; }
input[type="search"], select { min-height: 44px; border: 1px solid var(--line); border-radius: 9px; background: white; color: var(--ink); padding: 0 13px; font: inherit; }
input[type="search"] { flex: 1 1 260px; }
select { flex: 0 1 220px; }
button, .button { display: inline-flex; min-height: 42px; align-items: center; justify-content: center; border: 0; border-radius: 9px; background: var(--green); color: white; padding: 0 16px; font: inherit; font-weight: 700; cursor: pointer; }
button:hover, .button:hover { background: #0e6652; color: white; text-decoration: none; }
.result-count { margin: 0 0 12px; color: var(--muted); font-size: .9rem; }
.card-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.card { display: block; border: 1px solid var(--line); border-radius: 13px; background: var(--surface); padding: 18px; color: var(--ink); box-shadow: 0 2px 8px rgb(24 51 47 / 3%); }
.card:hover { border-color: #a7cfc0; text-decoration: none; transform: translateY(-1px); }
.card h2 { margin-bottom: 5px; }
.program-card-summary { display: flex; flex-direction: column; margin-top: 18px; }
.card .program-card-summary p { font-size: 1rem; }
.card .program-card-summary h2 { margin: 0; color: var(--ink); font-size: 1.2rem; font-weight: 700; }
.program-card-summary strong { color: var(--ink); font-weight: 700; }
.card p, .muted { margin: 0; color: var(--muted); font-size: .92rem; }
.store-logo { display: block; max-width: 120px; width: auto; height: 48px; object-fit: contain; object-position: left center; margin-bottom: 12px; }
.store-title { display: flex; align-items: center; gap: 12px; margin: 4px 0 8px; }
.store-title h1 { min-width: 0; margin: 0; }
.store-title .store-logo { flex: 0 0 auto; max-width: 72px; height: 36px; margin: 0; }
.program-logo { display: block; max-width: 100px; width: auto; height: 32px; object-fit: contain; object-position: left center; margin-bottom: 8px; }
.detail-panel { border: 1px solid var(--line); border-radius: 13px; background: var(--surface); padding: 22px; margin: 20px 0; }
.offer-list { display: grid; gap: 12px; }
.offer-note { margin-bottom: 18px; }
.offer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; border-bottom: 1px solid var(--line); padding: 15px 0; }
.offer:last-child { border-bottom: 0; padding-bottom: 0; }
.offer:first-child { padding-top: 0; }
.empty-state { border: 1px dashed #b6ccc3; border-radius: 12px; padding: 24px; color: var(--muted); background: var(--surface); }
.back-link { display: inline-block; margin-bottom: 16px; font-size: .92rem; font-weight: 700; }
.site-footer { border-top: 1px solid var(--line); padding: 22px 0; color: var(--muted); font-size: .86rem; }

@media (max-width: 520px) {
  .header-content { min-height: 60px; }
  nav { gap: 0; }
  nav a { padding: 8px 9px; }
  main { padding-top: 30px; }
  .offer { align-items: flex-start; }
}
