*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif; background: #F4F7F3; color: #2D2D2D; -webkit-font-smoothing: antialiased; }
h1, h2, h3, .font-display { font-family: Georgia, 'Noto Serif', 'Times New Roman', serif; }
a { color: inherit; text-decoration: none; }

.header { position: sticky; top: 0; z-index: 100; background: #fff; box-shadow: 0 4px 40px rgba(0,0,0,.03); height: 64px; }
.header-inner { max-width: 1200px; margin: 0 auto; padding: 0 32px; display: flex; align-items: center; height: 100%; }
.logo { display: flex; align-items: center; gap: 8px; font-family: Georgia, 'Noto Serif', serif; font-size: 20px; font-weight: 500; letter-spacing: -0.5px; flex-shrink: 0; }
.logo-img { width: 22px; height: 22px; object-fit: cover; border-radius: 6px; }
.logo-icon { color: #7C9070; }
.nav-wrap { display: flex; align-items: center; gap: 32px; justify-content: center; flex: 1; }
.nav-wrap a { font-size: 13px; font-weight: 500; color: #6B6B6B; transition: color .2s; }
.nav-wrap a:hover { color: #2D2D2D; }
.nav-wrap .active { background: rgba(124,144,112,.09); color: #7C9070; font-weight: 600; padding: 6px 14px; border-radius: 8px; }
.h-right { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.lang-selector { position: relative; }
.lang-btn { display: flex; align-items: center; gap: 6px; background: transparent; border: 1px solid #E5E7EB; border-radius: 8px; padding: 7px 12px; font-size: 12px; font-weight: 500; color: #6B6B6B; cursor: pointer; font-family: inherit; transition: all .2s; }
.lang-btn:hover { border-color: #7C9070; color: #2D2D2D; }
.lang-btn i { width: 14px; height: 14px; pointer-events: none; }
.lang-dropdown { position: absolute; top: calc(100% + 6px); right: 0; background: #fff; border: 1px solid #E5E7EB; border-radius: 10px; box-shadow: 0 8px 24px rgba(0,0,0,.1); min-width: 150px; padding: 6px 0; display: none; z-index: 200; }
.lang-dropdown.open { display: block; }
.lang-option { display: flex; align-items: center; gap: 8px; padding: 9px 16px; font-size: 13px; color: #2D2D2D; cursor: pointer; transition: background .15s; width: 100%; border: none; background: none; font-family: inherit; text-align: left; text-decoration: none; }
.lang-option:hover { background: #F7F6F3; }
.lang-option.active { color: #7C9070; font-weight: 600; }
.lang-option .lang-flag { font-size: 16px; }
.cta-btn { display: inline-flex; align-items: center; gap: 8px; background: #7C9070; color: #fff; font-size: 12px; font-weight: 600; padding: 12px 22px; border-radius: 10px; border: none; cursor: pointer; white-space: nowrap; }
.cta-btn:hover { background: #6B7F60; }
.hamburger { display: none; cursor: pointer; color: #2D2D2D; }

.content { max-width: 1020px; margin: 0 auto; padding: 32px 0; display: flex; flex-direction: column; gap: 24px; }

.breadcrumb { display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 500; }
.breadcrumb a { color: #7C9070; }
.breadcrumb span { color: #6B6B6B; }
.breadcrumb svg { color: #C7C7CC; width: 18px; height: 18px; }

.hero-search { background: #fff; border-radius: 16px; padding: 48px 64px; box-shadow: 0 4px 30px rgba(0,0,0,.024); text-align: center; display: flex; flex-direction: column; align-items: center; gap: 20px; }
.hero-search h1 { font-size: 36px; font-weight: 500; letter-spacing: -1px; }
.hero-search > p { font-size: 15px; color: #6B6B6B; }
.search-row { display: flex; width: 560px; max-width: 100%; border: 1px solid #E5E7EB; border-radius: 12px; overflow: hidden; }
.search-input { flex: 1; display: flex; align-items: center; gap: 8px; padding: 14px 16px; font-size: 14px; color: #8E8E93; }
.search-input i { width: 18px; height: 18px; flex-shrink: 0; }
.search-input input { border: none; outline: none; font-size: 14px; font-family: inherit; width: 100%; background: transparent; }
.search-btn { background: #7C9070; color: #fff; border: none; padding: 14px 24px; font-size: 14px; font-weight: 600; cursor: pointer; font-family: inherit; }
.search-btn:hover { background: #6B7F60; }
.stats-row { display: flex; align-items: center; gap: 32px; font-size: 13px; color: #8E8E93; }

.filter-bar { display: flex; align-items: center; gap: 12px; width: 100%; }
.tabs { display: flex; gap: 8px; flex: 1; flex-wrap: wrap; }
.tab { padding: 8px 18px; border-radius: 20px; font-size: 13px; font-weight: 500; cursor: pointer; border: 1px solid #E5E7EB; background: #fff; color: #6B6B6B; transition: all .2s; white-space: nowrap; }
.tab:hover { border-color: #7C9070; color: #7C9070; }
.tab.active { background: #7C9070; color: #fff; border-color: #7C9070; font-weight: 600; }
.tab.danger { color: #D4845E; }
.sort-btn { display: flex; align-items: center; gap: 6px; background: #fff; border: 1px solid #E5E7EB; border-radius: 8px; padding: 8px 14px; font-size: 12px; font-weight: 500; color: #6B6B6B; cursor: pointer; white-space: nowrap; flex-shrink: 0; }
.sort-btn:hover { border-color: #7C9070; }

.plant-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.plant-card { background: #fff; border-radius: 12px; box-shadow: 0 2px 12px rgba(0,0,0,.024); overflow: hidden; transition: transform .2s, box-shadow .2s; cursor: pointer; }
.plant-card:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,.06); }
.plant-card img { width: 100%; height: 160px; object-fit: cover; }
.plant-card-placeholder { width: 100%; height: 160px; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, #E8F0E4, #D4E4CE); }
.plant-card-body { padding: 16px; display: flex; flex-direction: column; gap: 8px; }
.plant-card-body h3 { font-family: inherit; font-size: 15px; font-weight: 600; }
.plant-card-body .latin { font-size: 12px; color: #8E8E93; font-style: italic; }
.plant-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.plant-tag { display: inline-block; padding: 3px 8px; border-radius: 4px; font-size: 11px; font-weight: 500; }
.plant-tag.orange { background: rgba(212,132,94,.09); color: #D4845E; }
.plant-tag.red { background: rgba(212,53,21,.09); color: #D43515; }
.plant-tag.green { background: rgba(124,144,112,.09); color: #7C9070; }
.plant-tag.blue { background: rgba(91,155,213,.06); color: #5B9BD5; }
.plant-tag.green-light { background: rgba(124,144,112,.04); color: #7C9070; }

.load-more { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 16px 0; }
.load-btn { display: inline-flex; align-items: center; gap: 8px; background: #fff; border: 1px solid #E5E7EB; border-radius: 24px; padding: 12px 40px; font-size: 14px; font-weight: 500; color: #7C9070; cursor: pointer; font-family: inherit; transition: all .2s; }
.load-btn:hover { border-color: #7C9070; background: #F0F5EE; }
.load-hint { font-size: 12px; color: #8E8E93; }

footer.footer { all: unset; display: block; }

/* Tailwind-like footer utility support */
.footer.bg-gray-900 { background: #0A1730; color: #fff; padding: 48px 0; }
.footer.bg-gray-900 .container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 16px; }
.footer.bg-gray-900 .grid { display: grid; }
.footer.bg-gray-900 .grid-cols-1 { grid-template-columns: 1fr; }
.footer.bg-gray-900 .gap-8 { gap: 32px; }
.footer.bg-gray-900 .mb-8 { margin-bottom: 32px; }
.footer.bg-gray-900 .flex { display: flex; }
.footer.bg-gray-900 .items-center { align-items: center; }
.footer.bg-gray-900 .space-x-3 > * + * { margin-left: 12px; }
.footer.bg-gray-900 .mb-4 { margin-bottom: 16px; }
.footer.bg-gray-900 .h-10 { height: 40px; }
.footer.bg-gray-900 .w-auto { width: auto; }
.footer.bg-gray-900 .text-2xl { font-size: 40px; line-height: 1; }
.footer.bg-gray-900 .font-bold { font-weight: 700; }
.footer.bg-gray-900 .text-gray-400 { color: #9CA3AF; }
.footer.bg-gray-900 .text-sm { font-size: 14px; line-height: 1.55; }
.footer.bg-gray-900 ul { list-style: none; margin: 0; padding: 0; }
.footer.bg-gray-900 .space-y-2 > li + li { margin-top: 8px; }
.footer.bg-gray-900 a { color: #9CA3AF; text-decoration: none; }
.footer.bg-gray-900 .text-green-400 { color: #4ADE80; }
.footer.bg-gray-900 .hover\:text-white:hover { color: #fff; }
.footer.bg-gray-900 .transition-colors { transition: color .2s ease; }
.footer.bg-gray-900 .inline-block { display: inline-block; }
.footer.bg-gray-900 .hover\:opacity-80:hover { opacity: .8; }
.footer.bg-gray-900 .transition-opacity { transition: opacity .2s ease; }
.footer.bg-gray-900 .h-12 { height: 48px; width: auto; }
.footer.bg-gray-900 .border-t { border-top: 1px solid; }
.footer.bg-gray-900 .border-gray-800 { border-color: #1F2937; }
.footer.bg-gray-900 .pt-8 { padding-top: 32px; }
.footer.bg-gray-900 .text-center { text-align: center; }
@media (min-width: 768px) {
  .footer.bg-gray-900 .md\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* ─── Inline CTA ─── */
.inline-cta { display: flex; align-items: center; gap: 12px; padding: 14px 20px; background: linear-gradient(135deg, #F0F5EE 0%, #E8F0E4 100%); border-radius: 12px; border: 1px solid rgba(124,144,112,.15); }
.inline-cta i { color: #7C9070; }
.inline-cta span { flex: 1; font-size: 14px; font-weight: 500; color: #2D2D2D; }
.inline-cta-btn { flex-shrink: 0; background: #7C9070; color: #fff; padding: 8px 18px; border-radius: 20px; font-size: 13px; font-weight: 600; text-decoration: none; transition: background .2s; }
.inline-cta-btn:hover { background: #6A7D60; color: #fff; }

/* ─── Wiki Tags ─── */
.wiki-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.wiki-tag { display: inline-flex; align-items: center; gap: 6px; padding: 8px 16px; background: #fff; border: 1px solid #E5E7EB; border-radius: 20px; font-size: 13px; font-weight: 500; color: #6B6B6B; text-decoration: none; transition: all .2s; }
.wiki-tag:hover { border-color: #7C9070; color: #7C9070; background: #f8faf7; }
.wiki-tag i { color: #999; transition: color .2s; }
.wiki-tag:hover i { color: #7C9070; }
.wiki-tag-main { background: #7C9070; color: #fff; border-color: #7C9070; font-weight: 600; }
.wiki-tag-main i { color: #fff; }
.wiki-tag-main:hover { background: #6A7D60; border-color: #6A7D60; color: #fff; }
.wiki-tag-main:hover i { color: #fff; }

/* ─── Web-to-app (all screens) ─── */
.web-to-app { position: fixed; bottom: 0; left: 0; right: 0; z-index: 200; display: flex; align-items: center; gap: 12px; padding: 10px 24px; background: rgba(255,255,255,.97); border-top: 1px solid #E5E7EB; box-shadow: 0 -2px 16px rgba(0,0,0,.06); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); transform: translateY(100%); animation: wta-slide-up .4s ease .8s forwards; }
@keyframes wta-slide-up { to { transform: translateY(0); } }
.wta-icon { flex-shrink: 0; }
.wta-info { flex: 1; }
.wta-info h4 { font-family: Georgia, 'Noto Serif', serif; font-size: 15px; font-weight: 600; margin: 0; }
.wta-info p { font-size: 12px; color: #6B6B6B; margin: 0; }
.wta-btn { flex-shrink: 0; background: #7C9070; color: #fff; border: none; padding: 9px 22px; border-radius: 20px; font-size: 13px; font-weight: 600; cursor: pointer; text-decoration: none; transition: background .2s; }
.wta-btn:hover { background: #6A7D60; color: #fff; }

@media (min-width: 769px) {
  .web-to-app { max-width: 520px; left: 50%; right: auto; transform: translateX(-50%) translateY(100%); border-radius: 14px 14px 0 0; padding: 12px 24px; }
  @keyframes wta-slide-up { to { transform: translateX(-50%) translateY(0); } }
}

@media (max-width: 768px) {
  .header-inner { padding: 0 16px; height: 56px; }
  .nav-wrap, .h-right, .lang-selector { display: none; }
  .hamburger { display: block; }
  .logo { flex: 1; }
  .content { padding: 16px; gap: 20px; padding-bottom: 80px; }
  .hero-search { padding: 32px 20px; gap: 16px; }
  .hero-search h1 { font-size: 26px; letter-spacing: -0.5px; }
  .hero-search > p { font-size: 14px; }
  .stats-row { flex-direction: column; gap: 8px; align-items: flex-start; font-size: 12px; }
  .filter-bar { flex-direction: column; align-items: flex-start; gap: 10px; }
  .tabs { gap: 6px; }
  .tab { padding: 6px 14px; font-size: 12px; }
  .plant-grid { grid-template-columns: 1fr; gap: 12px; }
  .footer { display: none; }
  .inline-cta { padding: 12px 14px; gap: 10px; }
  .inline-cta span { font-size: 13px; }
}

/* Detail page specific styles */
.card { background: #fff; border-radius: 16px; padding: 32px; box-shadow: 0 4px 30px rgba(0,0,0,.024); }

.hero .title-row { margin-bottom: 20px; }
.hero h1 { font-size: 40px; font-weight: 500; letter-spacing: -1px; line-height: 1.15; }
.meta-row { display: flex; align-items: center; gap: 16px; margin-top: 8px; font-size: 12px; color: #8E8E93; }
.meta-row .meta-item { display: flex; align-items: center; gap: 5px; }
.meta-row .sep { color: #D1D1D6; }
.name-meta-row { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 18px; margin-top: 10px; }
.name-meta-item { display: inline-flex; align-items: baseline; gap: 8px; font-size: 13px; color: #555; line-height: 1.6; }
.name-meta-label { font-size: 12px; color: #8E8E93; font-weight: 600; letter-spacing: .2px; }
.alias-inline { max-width: 100%; }
.alias-inline span:last-child { word-break: break-word; }
.content-row { display: flex; gap: 24px; }
.plant-image { width: 215px; height: 202px; border-radius: 16px; object-fit: cover; flex-shrink: 0; }
.plant-image-placeholder { width: 215px; height: 202px; border-radius: 16px; flex-shrink: 0; background: linear-gradient(145deg, #EAF0E6 0%, #D5DFD0 100%); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; }
.placeholder-latin { font-size: 12px; color: #7C9070; opacity: .7; text-align: center; padding: 0 16px; line-height: 1.4; }
.key-takeaways { flex: 1; background: #F7F6F3; border-radius: 12px; padding: 24px; display: flex; flex-direction: column; gap: 16px; }
.kp-item { display: flex; gap: 12px; }
.kp-num { width: 28px; height: 28px; border-radius: 50%; background: #7C9070; color: #fff; display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 600; flex-shrink: 0; }
.kp-content p { font-size: 14px; color: #4A4A4A; line-height: 1.65; }

.section-title { font-size: 20px; font-weight: 500; margin-bottom: 20px; }

.faq-list { display: flex; flex-direction: column; }
.faq-item { padding: 20px 0; }
.faq-item:first-child { padding-top: 0; }
.faq-q { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.faq-icon { display: flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 8px; background: rgba(124,144,112,.1); color: #7C9070; flex-shrink: 0; }
.faq-icon svg { width: 18px; height: 18px; }
.faq-q h3 { font-family: inherit; font-size: 16px; font-weight: 600; color: #2D2D2D; margin: 0; line-height: 1.4; }
.faq-a { padding-left: 44px; }
.faq-a p { font-size: 14px; color: #5C5C5C; line-height: 1.6; }
.faq-sep { height: 1px; background: #F0F0F0; width: 100%; }

.tox-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.tox-card { background: #F7F6F3; border-radius: 12px; padding: 20px; display: flex; flex-direction: column; gap: 12px; }
.tox-card .tox-header { display: flex; align-items: center; gap: 8px; }
.tox-card .tox-header i { color: #D4845E; width: 18px; height: 18px; }
.tox-card .tox-header span { font-family: Georgia, 'Noto Serif', serif; font-size: 18px; font-weight: 500; }
.tox-badge { display: inline-block; background: rgba(212,132,94,.09); color: #D4845E; font-size: 12px; font-weight: 600; padding: 6px 12px; border-radius: 20px; width: fit-content; }
.tox-card .tox-sym { font-size: 13px; color: #6B6B6B; line-height: 1.5; }
.tox-card .tox-src { font-size: 12px; color: #8E8E93; }

.snap-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.snap-item { background: #F7F6F3; border-radius: 12px; padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.snap-item i { color: #7C9070; width: 20px; height: 20px; }
.snap-item .snap-label { font-size: 11px; font-weight: 500; color: #8E8E93; }
.snap-item .snap-value { font-size: 14px; font-weight: 600; }

.cta-compact { background: #F0F5EE; border-radius: 16px; padding: 32px 48px; text-align: center; border: 1px solid rgba(124,144,112,.15); }
.cta-compact h3 { font-size: 22px; font-weight: 600; margin-bottom: 14px; }
.cta-compact p { font-size: 14px; color: #6B6B6B; margin-bottom: 14px; }
.cta-compact .btn-dl { display: inline-flex; align-items: center; gap: 8px; background: #7C9070; color: #fff; font-size: 14px; font-weight: 600; padding: 12px 32px; border-radius: 24px; border: none; cursor: pointer; }

.em-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.em-card { border-radius: 12px; padding: 20px; display: flex; flex-direction: column; gap: 12px; }
.em-card.orange { background: rgba(212,132,94,.03); border: 1px solid rgba(212,132,94,.19); }
.em-card.blue { background: rgba(91,155,213,.03); border: 1px solid rgba(91,155,213,.19); }
.em-card.green { background: rgba(124,144,112,.03); border: 1px solid rgba(124,144,112,.19); }
.em-card h3 { font-size: 18px; font-weight: 500; }
.em-card .em-icon { width: 24px; height: 24px; }
.em-card .em-icon.orange { color: #D4845E; }
.em-card .em-icon.blue { color: #5B9BD5; }
.em-card .em-icon.green { color: #7C9070; }
.em-card ul { list-style: none; display: flex; flex-direction: column; gap: 4px; }
.em-card ul li { font-size: 13px; color: #6B6B6B; line-height: 1.5; }

.cli-header-compact { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; padding-bottom: 16px; border-bottom: 1px solid #E5E7EB; flex-wrap: wrap; gap: 12px; }
.cli-header-compact .cli-basic-info { display: flex; align-items: baseline; gap: 16px; flex: 1; }
.cli-header-compact .cli-source { font-size: 12px; color: #8E8E93; display: flex; align-items: center; gap: 6px; }
.cli-header-compact .cli-source i { width: 14px; height: 14px; color: #7C9070; }
.cli-basic-info .label { font-size: 12px; color: #8E8E93; font-weight: 600; margin-right: 4px; }
.cli-basic-info .value { font-size: 14px; color: #2D2D2D; }
.cli-basic-info .sep { color: #E5E7EB; font-size: 12px; }

@media (max-width: 768px) {
  .cli-header-compact { flex-direction: column; align-items: flex-start; gap: 8px; }
  .cli-basic-info { flex-direction: column; align-items: flex-start; gap: 4px; }
  .cli-basic-info .sep { display: none; }
}

.cli-sub { display: flex; align-items: center; gap: 8px; font-size: 12px; color: #8E8E93; margin-bottom: 24px; }
.cli-sub i { color: #7C9070; width: 14px; height: 14px; }
.cli-top-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 24px; }
.cli-card { background: #F7F6F3; border-radius: 12px; padding: 20px; display: flex; flex-direction: column; gap: 12px; }
.cli-card-title { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; }
.cli-card-title i { color: #7C9070; width: 18px; height: 18px; }
.grade-grid-2x2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.grade-row { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.grade-row .grade-label { color: #6B6B6B; min-width: 40px; flex-shrink: 0; }
.grade-badge { display: inline-block; padding: 3px 10px; border-radius: 6px; font-size: 12px; font-weight: 600; }
.grade-badge.orange { background: rgba(212,132,94,.09); color: #D4845E; }
.grade-badge.green { background: rgba(124,144,112,.09); color: #7C9070; }
.organ-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.organ-tag { padding: 6px 14px; border-radius: 8px; background: #fff; font-size: 13px; font-weight: 500; }
.cli-section { background: #F7F6F3; border-radius: 12px; padding: 20px; margin-bottom: 24px; }
.cli-section:last-child { margin-bottom: 0; }
.cli-section-title { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; margin-bottom: 12px; }
.cli-section-title i { width: 18px; height: 18px; }
.cli-section-title i.green { color: #7C9070; }
.cli-section-title i.orange { color: #D4845E; }
.comp-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.comp-card { background: #fff; border-radius: 10px; padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.comp-card .comp-name { font-size: 14px; font-weight: 600; }
.comp-card .comp-desc { font-size: 13px; color: #5C5C5C; line-height: 1.6; }
.comp-desc-lines p { margin: 0 0 6px 0; font-size: 13px; color: #5C5C5C; line-height: 1.65; }
.comp-desc-lines p:last-child { margin-bottom: 0; }
.cli-note { font-size: 13px; color: #6B6B6B; margin-bottom: 12px; }
.risk-list { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 8px; }
.risk-list li { font-size: 14px; color: #363636; line-height: 1.6; }
.risk-list-animals { padding-left: 0; list-style: none; }
.risk-list-animals li { display: flex; gap: 10px; align-items: flex-start; }
.animal-chip { display: inline-block; min-width: 36px; padding: 2px 8px; border-radius: 999px; background: rgba(124,144,112,.12); color: #567251; font-size: 12px; font-weight: 600; line-height: 1.5; flex-shrink: 0; text-align: center; }
.mech-item { font-size: 13px; color: #6B6B6B; line-height: 1.5; margin-bottom: 12px; }
.mech-item:last-child { margin-bottom: 0; }
.oa-small .oa-item { font-size: 12px; line-height: 1.5; }
.oa-small .oa-species { font-size: 12px; }
.oa-small .oa-risk { font-size: 12px; }

.rel-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.rel-card { background: #F7F6F3; border-radius: 12px; padding: 16px; display: flex; flex-direction: column; gap: 12px; text-decoration: none; transition: box-shadow .2s; }
.rel-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,.06); }
.rel-card-disabled { cursor: default; opacity: .65; }
.rel-card-disabled:hover { box-shadow: none; }
.rel-card .rel-img { width: 56px; height: 56px; border-radius: 10px; background: #E8E6E3; }
.rel-img-photo { width: 100%; height: 120px; border-radius: 10px; object-fit: cover; }
.rel-img-placeholder { width: 100%; height: 120px; border-radius: 10px; background: linear-gradient(145deg, #EAF0E6 0%, #D5DFD0 100%); display: flex; align-items: center; justify-content: center; }
.rel-card .rel-name { font-family: Georgia, 'Noto Serif', serif; font-size: 18px; font-weight: 500; }
.rel-card .rel-latin { font-size: 13px; color: #6B6B6B; font-style: italic; }
.rel-card .rel-tag { display: inline-block; background: rgba(212,132,94,.09); color: #D4845E; font-size: 12px; font-weight: 500; padding: 4px 8px; border-radius: 8px; width: fit-content; }

.cta-feature { background: #F0F5EE; border-radius: 16px; padding: 32px 48px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 24px; }
.cta-feature h3 { font-size: 24px; font-weight: 600; color: #7C9070; }
.cta-feature > p { font-size: 15px; color: #6B6B6B; }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; width: 100%; text-align: left; }
.feature-item { display: flex; gap: 12px; }
.feature-icon { width: 40px; height: 40px; border-radius: 20px; background: rgba(124,144,112,.09); display: flex; align-items: center; justify-content: center; flex-shrink: 0; color: #7C9070; }
.feature-item h4 { font-family: inherit; font-size: 13px; font-weight: 600; margin-bottom: 2px; }
.feature-item p { font-size: 12px; color: #6B6B6B; line-height: 1.4; }
.app-store-btn { display: inline-flex; align-items: center; gap: 10px; background: #1C1C1E; color: #fff; padding: 10px 24px; border-radius: 12px; border: none; cursor: pointer; }
.app-store-btn .btn-sub { font-size: 10px; color: rgba(255,255,255,.8); }
.app-store-btn .btn-main { font-size: 18px; font-weight: 700; }

.ref-list { display: flex; flex-direction: column; gap: 8px; }
.ref-list p { font-size: 14px; color: #6B6B6B; line-height: 1.5; }
.ref-list a { color: #7C9070; text-decoration: underline; text-underline-offset: 2px; }
.ref-list a:hover { color: #567251; }
.disclaimer { display: flex; gap: 12px; background: rgba(212,132,94,.03); border: 1px solid rgba(212,132,94,.19); border-radius: 12px; padding: 16px; }
.disclaimer i { color: #D4845E; width: 24px; height: 24px; flex-shrink: 0; }
.disclaimer p { font-size: 13px; color: #6B6B6B; line-height: 1.5; }

/* ─── Footer ─── */
.site-footer { background: #1a1a2e; color: #fff; padding: 48px 0 24px; }
.footer-inner { max-width: 720px; margin: 0 auto; padding: 0 24px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; margin-bottom: 32px; }
.footer-brand { display: flex; flex-direction: column; gap: 12px; }
.footer-logo { display: flex; align-items: center; gap: 10px; font-size: 20px; font-weight: 700; }
.footer-logo img { border-radius: 8px; }
.footer-brand p { font-size: 13px; color: rgba(255,255,255,.55); line-height: 1.6; }
.footer-links { display: flex; flex-direction: column; gap: 8px; }
.footer-links h4 { font-size: 14px; font-weight: 600; margin-bottom: 4px; }
.footer-links a { font-size: 13px; color: rgba(255,255,255,.5); text-decoration: none; transition: color .2s; }
.footer-links a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding-top: 24px; text-align: center; }
.footer-bottom p { font-size: 12px; color: rgba(255,255,255,.4); }

/* ─── Language selector link-based ─── */
.lang-dropdown a.lang-option { display: flex; align-items: center; gap: 8px; padding: 8px 12px; font-size: 13px; color: #333; text-decoration: none; border-radius: 6px; transition: background .15s; }
.lang-dropdown a.lang-option:hover { background: #F0F5EE; }
.lang-dropdown a.lang-option.active { background: #E8F0E4; font-weight: 600; color: #7C9070; }

@media (max-width: 768px) {
  .card { padding: 20px; }
  .hero h1 { font-size: 28px; letter-spacing: -0.5px; }
  .content-row { flex-direction: column; gap: 16px; }
  .plant-image { width: 100%; height: 200px; border-radius: 12px; }
  .plant-image-placeholder { width: 100%; height: 160px; border-radius: 12px; }
  .key-takeaways { padding: 16px; gap: 12px; }
  .tox-grid { grid-template-columns: 1fr; gap: 12px; }
  .snap-grid { grid-template-columns: 1fr; gap: 10px; }
  .em-grid { grid-template-columns: 1fr; gap: 12px; }
  .cli-top-grid { grid-template-columns: 1fr; }
  .comp-grid { grid-template-columns: 1fr; }
  .rel-grid { grid-template-columns: 1fr; gap: 12px; }
  .feature-grid { grid-template-columns: 1fr; gap: 16px; }
  .cta-compact { padding: 24px 20px; }
  .cta-feature { padding: 24px 20px; }
  .cta-feature h3 { font-size: 20px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
}
