@import url("melon-tokens.css?v=1704a0caf28d");

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
}

body {
  margin: 0;
  color: var(--text);
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  line-height: 1.55;
  background: var(--grad-page-bg) fixed;
  position: relative;
  min-height: 100%;
}

a {
  color: inherit;
}
h1,h2,h3{margin:0 0 .4em;font-weight:bold;color:var(--text)}
h1{font-size:var(--fs-h1);line-height:1.1}
h2{font-size:var(--fs-h2);line-height:1.25}
h3{font-size:var(--fs-h3)}
code,pre{font-family:var(--font-mono)}
button,input,select,textarea{font-family:var(--font-sans)}
.lead{font-size:var(--fs-lead);color:var(--muted)}
.meta{font-size:var(--fs-meta);color:var(--muted)}
.micro{font-size:var(--fs-micro);color:var(--muted)}
.guide-box{background:var(--accent-3);border:1px solid var(--line-green);border-radius:var(--r-lg);padding:18px}
.guide-highlight{border-left:4px solid var(--accent);padding-left:14px;margin:1em 0}

.site-topbar {
  background: var(--grad-topbar);
  color: #fff;
  border-bottom: 1px solid rgba(255,255,255,0.18);
  box-shadow: 0 2px 12px rgba(0,0,0,0.12);
}

.site-topbar .inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 12px 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  align-items: center;
}

.site-topbar a {
  color: #fff;
  text-decoration: none;
  font-weight: normal;
}

.site-topbar a:hover {
  text-decoration: underline;
}

.brand-link {
  margin-right: auto;
  white-space: nowrap;
}

.site-nav {
  font-size: 14px;
  display: flex;
  flex-wrap: nowrap;
  gap: 18px;
  align-items: center;
}


.content-page {
  max-width: 1120px;
  margin: 0 auto;
  padding: 24px;
}

.breadcrumbs {
  font-size: var(--fs-meta);
  color: var(--muted);
  margin-bottom: 16px;
}

.breadcrumbs a {
  color: var(--accent);
  text-decoration: none;
}

.breadcrumbs a:hover {
  text-decoration: underline;
}

.hero {
  background:
    linear-gradient(180deg, rgba(20,64,38,0.91), rgba(47,111,79,0.78)),
    radial-gradient(circle at top right, rgba(217,76,76,0.20), transparent 30%),
    repeating-linear-gradient(
      90deg,
      rgba(255,255,255,0.055) 0px,
      rgba(255,255,255,0.055) 16px,
      transparent 16px,
      transparent 36px
    );
  color: #fff;
  border-radius: 24px;
  padding: 38px 32px;
  box-shadow: 0 12px 34px rgba(0,0,0,0.12);
  border: 1px solid rgba(255,255,255,0.20);
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto -40px -70px auto;
  width: 220px;
  height: 220px;
  border-radius: 999px;
  background:
    radial-gradient(circle, rgba(217,76,76,0.28) 0 44%, rgba(255,255,255,0.22) 45% 49%, rgba(47,111,79,0.35) 50% 62%, transparent 63%);
  opacity: 0.55;
  pointer-events: none;
}

.hero--photo {
  background:
    linear-gradient(to bottom, rgba(15,40,25,0.22) 0%, rgba(15,40,25,0.42) 100%),
    url('/melon-review/assets/img/hero-watermelon-photo.jpg') 30% 100% / cover no-repeat;
}

.hero--photo::after {
  display: none;
}

.eyebrow {
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.92;
  margin-bottom: 10px;
  color: var(--accent-dark);
  font-weight: bold;
}
.hero .eyebrow{color:#fff}

.hero h1 {
  color: #fff;
  margin: 0;
  font-size: clamp(34px, 6vw, 64px);
  line-height: 1.02;
}

.page-title{margin:0;font-size:var(--fs-h1);line-height:1.1}

.hero p,
.dek {
  max-width: 820px;
  font-size: 18px;
  margin: 16px 0 0;
  color: var(--muted);
}

.hero p {
  color: rgba(255,255,255,0.96);
}

.panel,
.card,
.page-shell {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(2px);
}

.card {
  overflow: hidden;
}

.page-shell {
  padding: 24px;
}

.section {
  margin-top: 28px;
}

.section-head {
  margin-bottom: 14px;
}

.section-head h2 {
  margin: 0 0 6px;
  font-size: 28px;
}

.section-head p {
  margin: 0;
  color: var(--muted);
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}

.split {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 16px;
}

.btn {
  display: inline-block;
  padding: 11px 18px;
  font-family: var(--font-sans);
  font-size: 14px;
  border-radius: var(--r-pill);
  text-decoration: none;
  font-weight: bold;
  transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease;
}

.btn:hover {
  transform: translateY(-1px);
}
.db-browse button,.add-btn,.focal-actions button,.focal-readout button{transition:transform .12s ease}
.db-browse button:hover,.add-btn:hover,.focal-actions button:hover,.focal-readout button:hover{transform:translateY(-1px)}

.btn-primary {
  background: var(--accent);
  color: #fff;
  border: 1px solid transparent;
}
.hero .btn-primary{background:#fff;color:var(--accent-dark);border-color:rgba(255,255,255,.35)}

.btn-secondary {
  color: var(--accent-dark);
  background: transparent;
  border: 1px solid var(--line-green);
}
.hero .btn-secondary{color:#fff;background:rgba(255,255,255,.13);border-color:rgba(255,255,255,.28)}

.muted {
  color: var(--muted);
}

.footer-note {
  margin-top: 18px;
  padding: 0 4px 10px;
  color: var(--muted);
  font-size: var(--fs-meta);
}

@media (max-width: 760px) {
  .site-topbar .inner,
  .content-page {
    padding-left: 14px;
    padding-right: 14px;
  }

  .brand-link {
    margin-right: 0;
    width: 100%;
  }

.brand-logo {
  display: block;
  height: 28px;
  width: auto;
}

@media (max-width: 760px) {
  .brand-logo { height: 24px; }
}


  .hero {
    padding: 26px 20px;
    border-radius: 18px;
  }

  .hero::after {
    width: 150px;
    height: 150px;
    right: -45px;
    bottom: -55px;
  }

  .split {
    grid-template-columns: 1fr;
  }
}

@media print {
  .site-topbar,
  .breadcrumbs,
  .footer-note {
    display: none !important;
  }

  body {
    background: #fff;
    font-size: 11pt;
  }

  .hero::after {
    display: none !important;
  }

  .content-page {
    max-width: none;
    padding: 0;
  }

  .page-shell,
  .panel,
  .card {
    box-shadow: none;
    background: #fff;
    backdrop-filter: none;
  }

  a {
    color: #000;
    text-decoration: none;
  }
}

/* ---------- News pages (news.php, news_post.php) ---------- */

.news-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 18px;
  margin-top: 20px;
}

.news-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 22px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(216, 221, 227, 0.95);
  border-radius: 18px;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.045);
  transition: box-shadow 0.15s ease, transform 0.15s ease;
}

.news-card h2 {
  margin: 0;
  font-size: var(--fs-h3);
  line-height: 1.35;
}

.news-card h2 a {
  color: var(--text);
  text-decoration: none;
}

.news-card h2 a:hover {
  color: var(--accent);
}

.news-card .meta {
  font-size: var(--fs-meta);
  color: var(--muted);
  margin: 0;
}

.news-card p {
  margin: 0;
  font-size: var(--fs-body);
  line-height: 1.55;
  color: var(--text);
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: auto;
}

.tag {
  display: inline-block;
  padding: 3px 10px;
  font-size: var(--fs-meta);
  font-weight: 600;
  color: var(--accent-dark);
  background: var(--accent-3);
  font-family: var(--font-mono);
  border: 1px solid var(--line-green);
  border-radius: 999px;
}

.news-card .tags {
  margin-top: 8px;
}

.article-card {
  padding: 28px;
}

.article-card .breadcrumb {
  font-size: var(--fs-meta);
  color: var(--muted);
  margin: 0 0 14px;
}

.article-card .breadcrumb a {
  color: var(--muted);
  text-decoration: none;
}

.article-card .breadcrumb a:hover {
  color: var(--accent);
}

.article-card h1 {
  margin: 0 0 6px;
  font-size: var(--fs-h1);
  line-height: 1.25;
}

.article-card .meta {
  font-size: var(--fs-meta);
  color: var(--muted);
  margin: 0 0 10px;
}

.article-card .summary {
  font-size: var(--fs-lead);
  line-height: 1.55;
  color: var(--text);
  border-left: 3px solid var(--accent-light);
  padding-left: 14px;
  margin: 12px 0;
}

.article-body {
  margin-top: 18px;
  font-size: var(--fs-body);
  line-height: 1.55;
}

.article-body p {
  margin: 0 0 14px;
}

.article-body h2,
.article-body h3 {
  margin: 22px 0 8px;
}

.article-body a {
  color: var(--accent);
}

.article-body pre,
.article-body code {
  font-family: var(--font-mono);
  font-size: var(--fs-meta);
  background: rgba(216, 221, 227, 0.25);
  border-radius: 6px;
}

.article-body pre {
  padding: 12px 14px;
  overflow-x: auto;
}

.article-body pre code {
  background: none;
}

/* Collection usability, October 2026. */
.guide-table-scroll { max-width:100%; overflow-x:auto; overscroll-behavior-inline:contain; }
.guide-table-scroll:focus-visible { outline:3px solid var(--accent-dark); outline-offset:3px; }
main { min-width: 0; }
a:focus-visible, button:focus-visible, input:focus-visible,
select:focus-visible, summary:focus-visible {
  outline: 3px solid var(--accent-dark);
  outline-offset: 3px;
}
.site-topbar a:focus-visible, .hero a:focus-visible { outline-color: #fff; }
.skip-link {
  position: fixed; top: 8px; left: 16px; z-index: 10000;
  transform: translateY(-180%); padding: 10px 16px;
  background: #fff; color: var(--accent-dark); border: 2px solid var(--accent-dark);
  border-radius: var(--r-sm); font-weight: 700;
}
.skip-link:focus { transform: translateY(0); }
.site-nav { flex-wrap: wrap; gap: 4px 12px; min-width: 0; }
.site-nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 4px 2px; }
.site-nav a[aria-current="page"] { text-decoration: underline; text-underline-offset: 6px; }
.section-head--row { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: end; justify-content: space-between; }
.section-head--row h2 { margin-bottom: 0; }
.text-link { color: var(--accent-dark); text-decoration-thickness: 1px; text-underline-offset: 3px; font-weight: 700; }
.home-page .hero--photo {
  background: linear-gradient(100deg, rgba(15,40,25,.94), rgba(15,40,25,.78) 60%, rgba(15,40,25,.56)),
    url('/melon-review/assets/img/hero-watermelon-photo.jpg') 50% 80% / cover no-repeat;
}
.home-page .hero .eyebrow { text-transform: none; }
.home-page .hero h1 { font-size: clamp(34px, 5.4vw, 60px); max-width: 15ch; }
.home-page .hero p { max-width: 65ch; }
.latest-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 20px; }
.latest-card { min-width: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 18px; background: var(--panel); }
.latest-image { display: block; aspect-ratio: 4 / 3; background: var(--accent-2); }
.latest-image img { display: block; width: 100%; height: 100%; object-fit: contain; }
.latest-placeholder { padding: 24px; color: var(--muted); }
.latest-body { padding: 18px; }
.latest-body h3 { margin: 6px 0 10px; line-height: 1.3; }
.latest-body p { margin: 8px 0; }
.entry-date { font-size: var(--fs-meta); color: var(--muted); }
.latest-rating { font-size: .92rem; }
.home-feature { padding: 22px; min-width: 0; }
.home-feature h2, .home-feature h3 { margin-top: 0; }
.home-feature p { max-width: 65ch; }
.home-guides { grid-template-columns: repeat(3, minmax(0,1fr)); }
.news-list { grid-template-columns: repeat(auto-fit,minmax(min(100%,280px),1fr)); }
.article-body, .article-card { overflow-wrap: anywhere; }
@media (max-width: 720px) {
  .site-topbar .inner { padding: 10px 18px; gap: 6px 16px; }
  .site-nav { width: 100%; gap: 2px 14px; }
  .content-page { padding: 20px 16px; }
  .latest-grid, .home-guides { grid-template-columns: minmax(0,1fr); }
  .home-page .hero { padding: 26px 22px; }
  .home-page .cta-row { align-items: stretch; }
  .home-page .cta-row a { text-align: center; }
  .home-feature { padding: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}

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


