/* eatGPT public site. Neutral product styling — not hospital, retailer, or government branding. */
:root {
  --bg: #f3efe6;
  --bg-accent: #ece6d9;
  --ink: #161410;
  --muted: #6a655c;
  --line: #ddd6c8;
  --card: #fffcf6;
  --accent: #17382c;
  --accent-soft: #e4eee8;
  --save: #8a4b12;
  --warn-ink: #5c4a32;
  --danger: #8a2b2b;
  --danger-bg: #f8ecec;
  --shadow: 0 1px 2px rgba(22, 20, 16, 0.04), 0 12px 32px rgba(22, 20, 16, 0.05);
  --font-display: "Iowan Old Style", "Palatino Linotype", Palatino, "Songti TC", "Noto Serif CJK TC", "Noto Serif TC", Georgia, serif;
  --font-sans: "PingFang TC", "Hiragino Sans CNS", "Noto Sans TC", "Noto Sans CJK TC", "Source Han Sans TC", "Microsoft JhengHei", ui-sans-serif, system-ui, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  background:
    radial-gradient(1200px 420px at 10% -10%, #e7efe8 0%, transparent 55%),
    var(--bg);
  color: var(--ink);
  line-height: 1.6;
  min-height: 100vh;
}
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 3px; }
.site {
  position: sticky;
  top: 0;
  z-index: 20;
  background: color-mix(in srgb, var(--bg) 86%, white);
  backdrop-filter: saturate(1.2) blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-inner, .wrap, .foot-inner {
  width: min(1080px, calc(100% - 32px));
  margin: 0 auto;
}
.site-inner {
  display: flex;
  align-items: center;
  gap: 20px;
  min-height: 64px;
}
.wordmark {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: -0.03em;
  color: var(--ink);
  text-decoration: none;
}
.wordmark:hover { color: var(--accent); }
.nav {
  display: flex;
  gap: 4px;
  margin-right: auto;
}
.nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.94rem;
  padding: 8px 12px;
  border-radius: 999px;
}
.nav a:hover { color: var(--ink); background: var(--bg-accent); }
.nav a[aria-current="page"] {
  color: var(--accent);
  background: var(--accent-soft);
  font-weight: 600;
}
.lang { display: flex; gap: 6px; }
.lang button {
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--ink);
  border-radius: 999px;
  padding: 6px 11px;
  cursor: pointer;
  font: inherit;
  font-size: 13px;
}
.lang button[aria-pressed="true"] {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
main.wrap { padding: 36px 0 72px; }
.hero { max-width: 38rem; margin: 0 0 28px; }
.eyebrow {
  margin: 0 0 8px;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
}
h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.85rem);
  line-height: 1.15;
  letter-spacing: -0.03em;
  font-weight: 600;
  margin: 0 0 12px;
}
.lead { margin: 0; font-size: 1.08rem; color: #3f3b35; }
.confirm {
  margin: 0 0 28px;
  color: var(--warn-ink);
  font-size: 0.95rem;
}
.status {
  min-height: 1.4em;
  margin: 0 0 18px;
  font-size: 0.92rem;
  color: var(--muted);
}
.status.live { color: var(--accent); }
.status.unavailable, .unavailable-panel {
  color: var(--danger);
}
.unavailable-panel {
  background: var(--danger-bg);
  border: 1px solid #ebd2d2;
  border-radius: 14px;
  padding: 16px 18px;
  margin: 0 0 24px;
}
.hidden { display: none !important; }
.meta {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  margin: 0 0 28px;
}
.meta div {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px 16px;
  box-shadow: var(--shadow);
}
.meta dt { font-size: 12px; color: var(--muted); }
.meta dd {
  margin: 4px 0 0;
  font-family: var(--font-display);
  font-size: 1.28rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.controls {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 16px;
  align-items: flex-end;
  margin: 0 0 10px;
}
.controls label { display: flex; flex-direction: column; gap: 6px; font-size: 12px; color: var(--muted); }
.controls .check { flex-direction: row; align-items: center; gap: 8px; padding-bottom: 6px; color: var(--ink); font-size: 14px; }
.controls input[type="search"],
.controls select {
  font: inherit;
  font-size: 15px;
  color: var(--ink);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 11px 12px;
  min-width: 180px;
}
.controls input[type="search"]:focus,
.controls select:focus,
.lang button:focus-visible,
.pager button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.controls .search { flex: 1 1 260px; }
.controls .search input { width: 100%; min-width: 0; }
.count { margin: 0 0 12px; font-size: 13px; color: var(--muted); }
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--card);
  box-shadow: var(--shadow);
}
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 13px 16px; border-bottom: 1px solid var(--line); vertical-align: top; font-size: 15px; }
th {
  font-size: 12px;
  color: var(--muted);
  font-weight: 600;
  background: #f6f1e7;
  letter-spacing: 0.02em;
}
tr:last-child td { border-bottom: 0; }
tr:hover td { background: #faf7f1; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
td.cheaper { font-weight: 650; color: var(--accent); }
td.save-val { color: var(--save); font-weight: 650; }
td.obs { color: var(--muted); font-size: 13px; white-space: nowrap; }
.pager {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: center;
  margin: 18px 0 0;
  font-size: 14px;
}
.pager button {
  font: inherit;
  font-size: 13px;
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--ink);
  border-radius: 999px;
  padding: 7px 14px;
  cursor: pointer;
}
.pager button:disabled { opacity: 0.45; cursor: default; }
.site-foot {
  border-top: 1px solid var(--line);
  background: var(--bg-accent);
  padding: 36px 0 48px;
  color: var(--muted);
  font-size: 0.92rem;
}
.site-foot h2 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--ink);
  margin: 0 0 10px;
  font-weight: 600;
}
.site-foot ul { margin: 0 0 18px; padding-left: 1.15rem; max-width: 46rem; }
.site-foot li { margin: 0 0 6px; }
.legal { margin: 0; max-width: 46rem; }
.prep {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 28px 28px 32px;
  box-shadow: var(--shadow);
  max-width: 42rem;
}
.prep p { margin: 0 0 12px; }
.prep p:last-child { margin: 0; }
.skeleton td {
  color: transparent;
  background: linear-gradient(90deg, #f3eee4 25%, #faf7f1 50%, #f3eee4 75%);
  background-size: 200% 100%;
  animation: shine 1.2s ease-in-out infinite;
  border-radius: 0;
  user-select: none;
}
@keyframes shine {
  0% { background-position: 100% 0; }
  100% { background-position: -100% 0; }
}
.table-wrap[hidden],
.controls[hidden],
.pager[hidden],
.count[hidden],
.meta[hidden] { display: none !important; }
@media (max-width: 860px) {
  .meta { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .meta div:last-child { grid-column: 1 / -1; }
}
@media (max-width: 700px) {
  .site-inner, .wrap, .foot-inner { width: calc(100% - 24px); }
  .site-inner { flex-wrap: wrap; min-height: 0; padding: 10px 0; gap: 10px; }
  .nav { order: 3; width: 100%; margin: 0; }
  main.wrap { padding: 24px 0 56px; }
  thead { display: none; }
  table, tbody, tr, td { display: block; width: 100%; }
  tr {
    padding: 14px 14px 12px;
    border-bottom: 1px solid var(--line);
  }
  tr:hover td { background: transparent; }
  td {
    border: 0;
    padding: 3px 0;
    text-align: left;
    white-space: normal;
  }
  td::before {
    content: attr(data-label);
    display: block;
    font-size: 11px;
    color: var(--muted);
    margin-bottom: 1px;
  }
  td:first-child {
    font-weight: 650;
    font-size: 1.02rem;
    margin-bottom: 6px;
  }
  td:first-child::before { display: none; }
  td.num, td.obs { text-align: left; }
  .price-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px 16px;
  }
}
