/* ─── Plant Terminal ─────────────────────────────────────────────── */
:root {
  --green-950: #0f2e1d;
  --green-900: #14532d;
  --green-700: #15803d;
  --green-600: #16a34a;
  --green-100: #dcfce7;
  --green-50:  #f0fdf4;
  --cream:     #fbfaf6;
  --ink:       #1c2a22;
  --ink-soft:  #4b5c52;
  --line:      #e4e9e4;
  --amber-50:  #fffbeb;
  --amber-600: #b45309;
  --radius:    14px;
  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 24px; }

h1, h2, h3 { font-family: var(--font-display); color: var(--green-950); line-height: 1.15; }

a { color: var(--green-700); }

/* ─── Header ─── */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251, 250, 246, .92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand {
  font-family: var(--font-display); font-weight: 700; font-size: 1.25rem;
  color: var(--green-950); text-decoration: none; letter-spacing: -.01em;
}
.brand-accent { color: var(--green-600); }
.brand-leaf { margin-right: 2px; }
.nav a {
  margin-left: 22px; text-decoration: none; color: var(--ink-soft);
  font-weight: 500; font-size: .95rem;
}
.nav a:hover { color: var(--green-700); }

/* ─── Hero ─── */
.hero {
  background:
    radial-gradient(1000px 500px at 85% -10%, var(--green-100), transparent 60%),
    linear-gradient(180deg, var(--green-50), var(--cream));
  padding: 88px 0 72px;
  border-bottom: 1px solid var(--line);
}
.hero-kicker {
  text-transform: uppercase; letter-spacing: .18em; font-size: .78rem;
  font-weight: 600; color: var(--green-600); margin-bottom: 14px;
}
.hero h1 { font-size: clamp(2.4rem, 6vw, 4rem); font-weight: 700; margin-bottom: 18px; }
.hero-sub { font-size: 1.15rem; color: var(--ink-soft); max-width: 560px; margin-bottom: 30px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }

.btn {
  display: inline-block; padding: 12px 24px; border-radius: 999px;
  text-decoration: none; font-weight: 600; font-size: .95rem;
  transition: transform .15s ease, box-shadow .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--green-900); color: #fff; box-shadow: 0 6px 18px rgba(20, 83, 45, .25); }
.btn-ghost { border: 1.5px solid var(--green-900); color: var(--green-900); }

/* ─── Sections ─── */
.section { padding: 56px 0; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 26px; }
.section-head h2 { font-size: 1.7rem; }
.see-all { font-weight: 600; font-size: .92rem; text-decoration: none; }

.grid { display: grid; gap: 18px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* ─── Cards ─── */
.card {
  display: block; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); padding: 24px; text-decoration: none; color: var(--ink);
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: 0 12px 28px rgba(15, 46, 29, .1); border-color: var(--green-600); }
.card h3 { font-size: 1.2rem; margin-bottom: 2px; }
.card-icon { font-size: 2rem; margin-bottom: 12px; }
.latin { font-style: italic; color: var(--ink-soft); font-size: .85rem; margin-bottom: 10px; }
.latin-lg { font-size: 1rem; }
.card-tagline { font-size: .92rem; color: var(--ink-soft); margin-bottom: 14px; }
.card-cta { font-weight: 600; font-size: .88rem; color: var(--green-700); }
.card .mini-tags { margin-bottom: 12px; }

.card-mini { display: flex; gap: 14px; align-items: center; padding: 16px 18px; }
.card-mini h3 { font-size: 1.02rem; }
.card-icon-sm { font-size: 1.6rem; }
.mini-tags { font-size: .78rem; color: var(--ink-soft); }

/* ─── Value band ─── */
.band { background: var(--green-950); color: #e8f3ec; padding: 56px 0; }
.band-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.band-item h3 { color: #fff; font-size: 1.05rem; margin-bottom: 8px; font-family: var(--font-body); font-weight: 600; }
.band-item p { font-size: .9rem; color: #b7cfc0; }

/* ─── Page heads ─── */
.page-head {
  background: linear-gradient(180deg, var(--green-50), var(--cream));
  border-bottom: 1px solid var(--line);
  padding: 56px 0 40px;
}
.page-head h1 { font-size: clamp(1.9rem, 4vw, 2.7rem); margin-bottom: 10px; }
.page-sub { color: var(--ink-soft); font-size: 1.08rem; max-width: 640px; }

/* ─── Article ─── */
.crumbs { font-size: .85rem; margin-bottom: 18px; color: var(--ink-soft); }
.crumbs a { text-decoration: none; }
.article-title { display: flex; gap: 18px; align-items: center; margin-bottom: 14px; }
.article-icon { font-size: 3rem; }
.tag-row { margin-top: 16px; }
.tag {
  display: inline-block; background: var(--green-100); color: var(--green-900);
  font-size: .78rem; font-weight: 600; padding: 4px 12px; border-radius: 999px; margin-right: 8px;
}

.article-body { max-width: 780px; padding-bottom: 72px; }

.toc {
  display: flex; flex-wrap: wrap; gap: 6px 18px; align-items: center;
  font-size: .88rem; padding: 14px 18px; margin: 28px 0 8px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
}
.toc-label { font-weight: 600; color: var(--ink-soft); }
.toc a { text-decoration: none; font-weight: 500; }

.article-section { margin-top: 44px; }
.article-section h2 { font-size: 1.55rem; margin-bottom: 16px; }
.article-section p { margin-bottom: 14px; color: #2a3a30; }

.benefit-list { display: flex; flex-direction: column; gap: 18px; }
.benefit {
  display: flex; gap: 16px; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); padding: 20px 22px;
}
.benefit-num {
  flex: 0 0 34px; height: 34px; border-radius: 50%;
  background: var(--green-100); color: var(--green-900);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-family: var(--font-display);
}
.benefit h3 { font-size: 1.08rem; margin-bottom: 6px; }
.benefit p { margin: 0; font-size: .95rem; }

.howto-list { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.howto {
  background: var(--green-50); border: 1px solid #d8ecdf;
  border-radius: var(--radius); padding: 20px;
}
.howto h3 { font-size: 1.02rem; margin-bottom: 8px; }
.howto p { font-size: .92rem; margin: 0; }

.callout { border-radius: var(--radius); padding: 24px 26px; }
.callout-warn { background: var(--amber-50); border: 1px solid #fde68a; }
.callout-warn h2 { color: var(--amber-600); font-size: 1.3rem; margin-bottom: 12px; }
.callout ul { padding-left: 20px; }
.callout li { margin-bottom: 8px; font-size: .95rem; }
.callout-note { font-size: .85rem; color: var(--ink-soft); margin-top: 14px; margin-bottom: 0 !important; }

.faq { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 10px; padding: 0; }
.faq summary {
  cursor: pointer; font-weight: 600; padding: 16px 20px; list-style: none;
  display: flex; justify-content: space-between; align-items: center;
}
.faq summary::after { content: '+'; font-size: 1.3rem; color: var(--green-600); font-weight: 400; }
.faq[open] summary::after { content: '–'; }
.faq p { padding: 0 20px 16px; margin: 0; font-size: .95rem; }

.plain-list { padding-left: 20px; margin-bottom: 16px; }
.plain-list li { margin-bottom: 8px; }

/* ─── Footer ─── */
.site-footer { background: var(--green-950); color: #b7cfc0; margin-top: 40px; }
.footer-inner {
  display: flex; justify-content: space-between; align-items: flex-start;
  gap: 32px; padding: 48px 24px 24px; flex-wrap: wrap;
}
.brand-footer { color: #fff; }
.footer-tag { font-size: .9rem; max-width: 420px; margin-top: 10px; }
.footer-links { display: flex; flex-direction: column; gap: 8px; }
.footer-links a { color: #b7cfc0; text-decoration: none; font-size: .92rem; }
.footer-links a:hover { color: #fff; }
.disclaimer {
  border-top: 1px solid rgba(255, 255, 255, .12);
  padding-top: 20px; padding-bottom: 28px; font-size: .8rem; color: #8fb09b;
}
.disclaimer .copyright { margin-top: 12px; }

/* ─── Tag filter ─── */
.filter-row { margin-top: 20px; display: flex; flex-wrap: wrap; gap: 8px; }
.filter {
  text-decoration: none; font-size: .84rem; font-weight: 500; color: var(--ink-soft);
  background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 5px 14px;
}
.filter span { color: var(--green-600); font-weight: 600; }
.filter:hover { border-color: var(--green-600); color: var(--green-900); }
.filter.active { background: var(--green-900); color: #fff; border-color: var(--green-900); }
.filter.active span { color: #86efac; }

/* ─── Covers ─── */
.card-cover {
  width: calc(100% + 48px); margin: -24px -24px 14px; height: 150px; object-fit: cover;
  border-radius: var(--radius) var(--radius) 0 0; display: block;
}
.article-cover {
  width: 120px; height: 120px; object-fit: cover; border-radius: 18px;
  border: 1px solid var(--line); box-shadow: 0 8px 20px rgba(15,46,29,.12);
}
.cover-credit { font-size: .78rem; color: var(--ink-soft); margin-top: 10px; }
.cover-credit a { color: var(--ink-soft); text-decoration: underline; }
.cover-credit a:hover { color: var(--green-700); }
.zoomable { cursor: zoom-in; }

/* ─── Lightbox ─── */
.lightbox {
  position: fixed; inset: 0; z-index: 200;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px;
  padding: 24px; background: rgba(15, 46, 29, .92);
  opacity: 0; visibility: hidden; transition: opacity .2s ease;
}
.lightbox.open { opacity: 1; visibility: visible; }
.lightbox img {
  max-width: min(1000px, 92vw); max-height: 82vh; object-fit: contain;
  border-radius: 10px; box-shadow: 0 24px 70px rgba(0, 0, 0, .5); background: #fff;
}
.lightbox-cap { color: #e8f3ec; font-size: .84rem; text-align: center; max-width: 90vw; }
.lightbox-cap a { color: #cfe3d6; }
.lightbox-close {
  position: absolute; top: 14px; right: 22px; width: 44px; height: 44px;
  background: none; border: 0; color: #fff; font-size: 2.2rem; line-height: 1; cursor: pointer;
}
.lightbox-close:hover { color: #86efac; }

/* ─── Comments ─── */
.comment { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 20px; margin-bottom: 12px; }
.comment-head { display: flex; justify-content: space-between; margin-bottom: 6px; }
.comment-date { color: var(--ink-soft); font-size: .84rem; }
.comment p { margin: 0; font-size: .95rem; }
.comment-form { background: var(--green-50); border: 1px solid #d8ecdf; border-radius: var(--radius); padding: 22px; margin-top: 20px; }
.comment-form h3 { margin-bottom: 6px; }
.comment-note { font-size: .85rem; color: var(--ink-soft); margin-bottom: 14px; }
.comment-form label { display: block; font-weight: 500; margin-bottom: 12px; }
.comment-form input[type=text], .comment-form textarea {
  width: 100%; padding: 10px 12px; border: 1px solid #cfd8d1; border-radius: 8px; font: inherit; margin-top: 4px; background: #fff;
}
.comment-form input:focus, .comment-form textarea:focus { outline: 2px solid var(--green-600); border-color: var(--green-600); }
.comment-form .btn { border: 0; cursor: pointer; font: inherit; }
.hp-field { position: absolute !important; left: -9999px !important; height: 0; overflow: hidden; }
.notice { border-radius: 10px; padding: 12px 16px; margin-bottom: 16px; font-weight: 500; }
.notice-ok { background: var(--green-100); color: var(--green-900); border: 1px solid #86efac; }
.notice-err { background: #fee2e2; color: #b91c1c; border: 1px solid #fca5a5; }

/* ─── Preview banner ─── */
.preview-banner {
  background: #fef3c7; color: #92400e; border-bottom: 1px solid #fcd34d;
  padding: 10px 24px; font-size: .9rem; font-weight: 500; text-align: center;
}

/* ─── Header tools: search + language switcher ─── */
.header-inner { gap: 16px; }
.header-tools { display: flex; align-items: center; gap: 12px; margin-left: auto; }
.site-search input {
  width: 150px; padding: 7px 12px; border: 1px solid var(--line); border-radius: 999px;
  font: inherit; font-size: .9rem; background: #fff;
}
.site-search input:focus { outline: 2px solid var(--green-600); border-color: var(--green-600); width: 190px; }
.lang-switch { position: relative; }
.lang-current {
  background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 7px 12px;
  font: inherit; font-size: .85rem; font-weight: 600; color: var(--ink); cursor: pointer;
}
.lang-current:hover { border-color: var(--green-600); }
.lang-menu {
  position: absolute; right: 0; top: calc(100% + 6px); background: #fff; border: 1px solid var(--line);
  border-radius: 10px; box-shadow: 0 12px 28px rgba(15,46,29,.12); list-style: none; padding: 6px;
  min-width: 130px; opacity: 0; visibility: hidden; transform: translateY(-4px); transition: all .15s ease; z-index: 60;
}
.lang-switch:hover .lang-menu, .lang-switch:focus-within .lang-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.lang-menu a { display: block; padding: 8px 12px; border-radius: 7px; text-decoration: none; color: var(--ink); font-size: .9rem; }
.lang-menu a:hover { background: var(--green-50); }
.lang-menu a.active { background: var(--green-100); color: var(--green-900); font-weight: 600; }

/* ─── Reading time + translate notice ─── */
.reading-time { font-size: .82rem; color: var(--ink-soft); margin-top: 4px; }
.translate-notice {
  background: #eff6ff; border: 1px solid #bfdbfe; color: #1e40af;
  border-radius: 10px; padding: 10px 14px; font-size: .88rem; margin-top: 14px;
}

/* ─── Share row ─── */
.share-row { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin: 4px 0 8px; }
.share-label { font-size: .85rem; color: var(--ink-soft); font-weight: 600; }
.share-btn {
  font-size: .82rem; font-weight: 600; text-decoration: none; cursor: pointer;
  background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; color: var(--green-800, #166534);
}
.share-btn:hover { border-color: var(--green-600); background: var(--green-50); }

/* ─── Search results ─── */
.search-page-form { display: flex; gap: 10px; margin-top: 16px; max-width: 560px; }
.search-page-form input {
  flex: 1; padding: 11px 16px; border: 1px solid #cfd8d1; border-radius: 999px; font: inherit; background: #fff;
}
.search-page-form input:focus { outline: 2px solid var(--green-600); border-color: var(--green-600); }
.search-page-form .btn { border: 0; cursor: pointer; }
.search-empty { color: var(--ink-soft); }
.search-results { display: flex; flex-direction: column; gap: 12px; }
.search-hit {
  display: flex; gap: 16px; align-items: flex-start; text-decoration: none; color: var(--ink);
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 20px;
}
.search-hit:hover { border-color: var(--green-600); box-shadow: 0 8px 20px rgba(15,46,29,.08); }
.hit-icon { font-size: 1.8rem; flex: 0 0 auto; width: 44px; text-align: center; }
.hit-icon img { width: 44px; height: 44px; object-fit: cover; border-radius: 8px; }
.hit-name { font-family: var(--font-display); font-weight: 600; font-size: 1.1rem; color: var(--green-950); display: block; }
.hit-latin { font-style: italic; font-weight: 400; font-size: .85rem; color: var(--ink-soft); }
.hit-snippet { display: block; font-size: .9rem; color: var(--ink-soft); margin-top: 4px; }
.hit-snippet mark { background: var(--green-100); color: var(--green-900); padding: 0 2px; border-radius: 3px; }

/* ─── Responsive ─── */
@media (max-width: 900px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .band-grid { grid-template-columns: repeat(2, 1fr); }
  .site-search input { width: 110px; }
}
@media (max-width: 580px) {
  .grid-3, .grid-4, .howto-list, .band-grid { grid-template-columns: 1fr; }
  .hero { padding: 56px 0 48px; }
  .header-inner { flex-wrap: wrap; }
  .nav a { margin-left: 14px; font-size: .88rem; }
  .header-tools { gap: 8px; }
  .site-search { display: none; }
  .article-title { gap: 12px; }
  .article-icon { font-size: 2.2rem; }
  .footer-inner { flex-direction: column; }
}
