:root {
  --bg: #f7f5df;
  --bg-soft: #fffbea;
  --green: #0d6b4f;
  --green-deep: #063d30;
  --green-mid: #2ca96f;
  --mint: #bcead4;
  --lime: #d5f269;
  --yellow: #ffe66b;
  --orange: #ff9f43;
  --ink: #12342c;
  --muted: #5e746e;
  --line: rgba(13, 107, 79, 0.18);
  --card: rgba(255, 255, 246, 0.88);
  --shadow: 0 18px 50px rgba(7, 60, 47, 0.14);
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "M PLUS Rounded 1c", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 10%, rgba(213, 242, 105, .48), transparent 32%),
    radial-gradient(circle at 85% 5%, rgba(188, 234, 212, .72), transparent 35%),
    linear-gradient(180deg, #f9f4ce 0%, var(--bg) 42%, #edf7e6 100%);
  min-height: 100vh;
}

button, input, select { font: inherit; }
button { cursor: pointer; }

.site-shell { width: min(1480px, calc(100% - 32px)); margin: 0 auto; }
.hero { padding: 22px 0 34px; }
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 246, .65);
  backdrop-filter: blur(14px);
  position: sticky;
  top: 12px;
  z-index: 30;
}
.brand {
  color: var(--green-deep);
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 900;
  letter-spacing: .02em;
  min-width: 0;
}
.brand-logo {
  width: 56px;
  height: auto;
  display: block;
  flex: 0 0 auto;
}
.brand-text {
  font-size: 15px;
  line-height: 1.35;
  white-space: nowrap;
}
.nav-menu-toggle {
  display: none;
  border: 1px solid rgba(13, 107, 79, .24);
  background: white;
  color: var(--green-deep);
  border-radius: 999px;
  padding: 10px 14px;
  font-weight: 900;
}
.top-actions { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.ghost-button, .ghost-link {
  border: 1px solid rgba(13, 107, 79, .24);
  background: white;
  color: var(--green-deep);
  border-radius: 999px;
  padding: 10px 14px;
  font-weight: 800;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}
.ghost-button:hover, .ghost-link:hover { background: var(--lime); }

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(300px, .58fr);
  gap: 22px;
  align-items: stretch;
  padding-top: 42px;
}
.hero-copy {
  border-radius: 42px;
  padding: clamp(32px, 6vw, 76px);
  background:
    linear-gradient(135deg, rgba(255,255,246,.92), rgba(230,250,213,.72)),
    linear-gradient(90deg, transparent, rgba(255,230,107,.3));
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  overflow: hidden;
  position: relative;
}
.hero-copy::after {
  content: "";
  position: absolute;
  width: 340px;
  height: 340px;
  border-radius: 50%;
  right: -110px;
  bottom: -160px;
  background: radial-gradient(circle, var(--lime), transparent 68%);
  opacity: .8;
}
.eyebrow {
  margin: 0 0 14px;
  color: var(--green);
  font-weight: 900;
  letter-spacing: .08em;
}
h1 {
  margin: 0;
  font-size: clamp(48px, 6vw, 88px);
  line-height: .94;
  letter-spacing: -.06em;
  color: var(--green-deep);
  position: relative;
  z-index: 1;
}
.lead {
  margin: 26px 0 0;
  font-size: clamp(18px, 2.4vw, 30px);
  line-height: 1.65;
  font-weight: 800;
  max-width: 900px;
  position: relative;
  z-index: 1;
}
.benefit {
  margin: 22px 0 0;
  padding-left: 18px;
  border-left: 6px solid var(--lime);
  color: var(--green-deep);
  font-size: clamp(16px, 1.8vw, 22px);
  line-height: 1.75;
  font-weight: 900;
  position: relative;
  z-index: 1;
}
.hero-panel {
  border-radius: 34px;
  padding: 30px;
  background: var(--green-deep);
  color: white;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.panel-label {
  display: inline-flex;
  width: fit-content;
  padding: 7px 12px;
  border-radius: 999px;
  background: var(--lime);
  color: var(--green-deep);
  font-size: 13px;
  font-weight: 900;
}
.hero-panel ol { margin: 28px 0; padding-left: 1.4em; font-size: 18px; line-height: 1.9; font-weight: 800; }
.hero-panel p { color: rgba(255,255,255,.75); line-height: 1.8; margin: 0; }

.app-layout {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr) 360px;
  gap: 18px;
  align-items: start;
  padding: 10px 0 72px;
}
.control-panel, .detail-panel {
  position: sticky;
  top: 88px;
  max-height: calc(100vh - 106px);
}
.sticky-controls, .detail-inner {
  overflow: auto;
  max-height: calc(100vh - 106px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(255,255,246,.72);
  backdrop-filter: blur(16px);
  box-shadow: 0 12px 34px rgba(7,60,47,.08);
}
.sticky-controls { padding: 18px; }
.sticky-controls,
.detail-inner,
.share-drawer,
.category-list {
  scrollbar-width: thin;
  scrollbar-color: rgba(13,107,79,.42) rgba(13,107,79,.08);
}
.sticky-controls::-webkit-scrollbar,
.detail-inner::-webkit-scrollbar,
.share-drawer::-webkit-scrollbar,
.category-list::-webkit-scrollbar {
  width: 10px;
}
.sticky-controls::-webkit-scrollbar-track,
.detail-inner::-webkit-scrollbar-track,
.share-drawer::-webkit-scrollbar-track,
.category-list::-webkit-scrollbar-track {
  background: rgba(13,107,79,.06);
  border-radius: 999px;
  margin: 18px 0;
}
.sticky-controls::-webkit-scrollbar-thumb,
.detail-inner::-webkit-scrollbar-thumb,
.share-drawer::-webkit-scrollbar-thumb,
.category-list::-webkit-scrollbar-thumb {
  background: rgba(13,107,79,.42);
  border-radius: 999px;
  border: 3px solid rgba(255,255,246,.72);
}
.sticky-controls::-webkit-scrollbar-thumb:hover,
.detail-inner::-webkit-scrollbar-thumb:hover,
.share-drawer::-webkit-scrollbar-thumb:hover,
.category-list::-webkit-scrollbar-thumb:hover {
  background: rgba(13,107,79,.7);
}

.search-label, .sort-box label, .result-label {
  display: block;
  margin: 0 0 8px;
  font-size: 12px;
  font-weight: 900;
  color: var(--muted);
  letter-spacing: .08em;
}
.search-box input {
  width: 100%;
  border: 2px solid rgba(13, 107, 79, .18);
  border-radius: 16px;
  padding: 14px 15px;
  background: #fffef1;
  color: var(--ink);
  outline: none;
}
.search-box input:focus { border-color: var(--green-mid); box-shadow: 0 0 0 5px rgba(44,169,111,.13); }
.filter-menu-toggle {
  display: none;
  width: 100%;
  margin-top: 14px;
  border: 1px solid rgba(13,107,79,.22);
  border-radius: 999px;
  padding: 12px 14px;
  background: var(--green-deep);
  color: #fff;
  font-weight: 900;
  text-align: center;
}
.mobile-filter-body { display: block; }

.filter-block { margin-top: 22px; }
.filter-block h2 {
  margin: 0 0 10px;
  font-size: 14px;
  color: var(--green-deep);
}
.chip-list { display: flex; flex-wrap: wrap; gap: 8px; }
.chip, .category-button, .intent-strip button {
  border: 1px solid rgba(13,107,79,.2);
  background: white;
  color: var(--green-deep);
  border-radius: 999px;
  padding: 8px 10px;
  font-size: 12px;
  font-weight: 800;
}
.chip.is-active, .category-button.is-active, .intent-strip button.is-active {
  background: var(--green);
  color: white;
  border-color: var(--green);
}
.category-list { display: grid; gap: 6px; }
.category-button {
  text-align: left;
  border-radius: 12px;
  display: flex;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
}
.category-count { opacity: .65; }

.content-area { min-width: 0; }
.utility-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 14px;
  padding: 4px 4px 0;
}
.result-count {
  margin: 0;
  font-size: 30px;
  font-weight: 900;
  color: var(--green-deep);
}
.sort-box { display: flex; align-items: center; gap: 8px; }
.sort-box label { margin: 0; }
.sort-box select {
  border: 1px solid var(--line);
  background: white;
  border-radius: 999px;
  padding: 10px 12px;
  color: var(--ink);
  font-weight: 800;
}
.intent-strip {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(255,255,246,.55);
  margin-bottom: 16px;
}
.card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.word-card {
  min-height: 228px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 20px;
  background: var(--card);
  box-shadow: 0 10px 28px rgba(7,60,47,.08);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
  outline: none;
}
.word-card:hover, .word-card:focus, .word-card.is-selected {
  transform: translateY(-3px);
  box-shadow: 0 22px 45px rgba(7,60,47,.14);
  border-color: rgba(13,107,79,.45);
}
.card-head { display: flex; justify-content: space-between; gap: 10px; align-items: center; margin-bottom: 16px; }
.type-badge {
  display: inline-flex;
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--mint);
  color: var(--green-deep);
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}
.category-name { color: var(--muted); font-size: 12px; font-weight: 800; text-align: right; }
.word-card h3 {
  margin: 0 0 10px;
  font-size: 26px;
  line-height: 1.25;
  letter-spacing: -.04em;
  color: var(--green-deep);
}
.card-body {
  margin: 0;
  color: #345a51;
  line-height: 1.75;
  font-size: 14px;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.tag-row { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 16px; }
.tag {
  display: inline-flex;
  padding: 5px 8px;
  border-radius: 999px;
  background: rgba(213,242,105,.48);
  color: var(--green-deep);
  font-size: 11px;
  font-weight: 800;
}

.detail-inner { padding: 22px; }
.detail-empty { color: var(--muted); line-height: 1.8; margin: 0; }
.detail-type { display: inline-flex; padding: 7px 11px; border-radius: 999px; background: var(--lime); font-weight: 900; font-size: 12px; }
.detail-inner h2 { margin: 14px 0 10px; font-size: 32px; line-height: 1.25; letter-spacing: -.04em; color: var(--green-deep); }
.detail-category { margin: 0 0 18px; color: var(--muted); font-weight: 800; }
.detail-body { line-height: 1.95; font-size: 15px; color: #294c44; white-space: pre-line; }
.detail-meta { margin-top: 22px; display: grid; gap: 16px; }
.meta-block h3 { font-size: 13px; margin: 0 0 8px; color: var(--green-deep); }
.related-list, .detail-tags, .use-list { display: flex; flex-wrap: wrap; gap: 8px; }
.meta-pill {
  border: 1px solid rgba(13,107,79,.18);
  background: white;
  border-radius: 999px;
  padding: 7px 10px;
  font-size: 12px;
  font-weight: 800;
  color: var(--green-deep);
}
.copy-button {
  width: 100%;
  margin-top: 22px;
  border: 0;
  border-radius: 16px;
  padding: 14px 16px;
  background: var(--green);
  color: white;
  font-weight: 900;
}
.copy-button:hover { background: var(--green-deep); }

@media (max-width: 1180px) {
  .app-layout { grid-template-columns: 260px minmax(0, 1fr); }
  .detail-panel { grid-column: 1 / -1; position: static; max-height: none; }
  .detail-inner { max-height: none; }
}
@media (max-width: 860px) {
  .site-shell { width: min(100% - 20px, 720px); }
  .topbar {
    border-radius: 22px;
    align-items: center;
    position: sticky;
    top: 10px;
  }
  .brand-logo { width: 44px; }
  .brand-text { font-size: 14px; }
  .nav-menu-toggle { display: inline-flex; }
  .top-actions {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: min(260px, calc(100vw - 32px));
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: rgba(255,255,246,.96);
    box-shadow: 0 18px 48px rgba(7,60,47,.16);
    flex-direction: column;
    align-items: stretch;
  }
  .top-actions.is-open { display: flex; }
  .top-actions .ghost-button,
  .top-actions .ghost-link,
  .top-actions .share-button {
    justify-content: center;
    width: 100%;
  }
  .hero-grid, .app-layout { grid-template-columns: 1fr; }
  .hero-grid { padding-top: 22px; }
  .hero-copy { border-radius: 30px; padding: 32px 24px; }
  .hero-panel { border-radius: 26px; }
  .control-panel { position: static; max-height: none; z-index: auto; }
  .sticky-controls { max-height: none; padding: 14px; }
  .filter-menu-toggle { display: block; }
  .mobile-filter-body { display: none; }
  .mobile-filter-body.is-open { display: block; }
  .filter-block { margin-top: 18px; }
  .chip-list { gap: 7px; }
  .chip { padding: 9px 11px; font-size: 13px; }
  .category-list { max-height: 42vh; overflow: auto; padding-right: 4px; }
  .card-grid { grid-template-columns: 1fr; }
  .utility-row { align-items: flex-start; flex-direction: column; }
  h1 { font-size: clamp(44px, 15vw, 72px); }
}
@media (max-width: 520px) {
  .brand { gap: 8px; }
  .brand-text { display: inline; }
  .sort-box { width: 100%; justify-content: space-between; }
  .sort-box select { flex: 1; }
  .word-card { min-height: auto; }
  .hero-panel ol { font-size: 16px; }
}

.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  margin: 22px 0 0;
}
.pagination button,
.pagination span {
  min-width: 42px;
  height: 42px;
  border: 1px solid rgba(13,107,79,.22);
  border-radius: 999px;
  background: rgba(255,255,246,.86);
  color: var(--green-deep);
  display: inline-grid;
  place-items: center;
  padding: 0 12px;
  font-weight: 900;
}
.pagination button:hover { background: var(--lime); }
.pagination button.is-active {
  background: var(--green);
  color: white;
  border-color: var(--green);
}
.pagination button:disabled {
  opacity: .42;
  cursor: not-allowed;
}


.share-button {
  border: 0;
  background: var(--green-deep);
  color: white;
  border-radius: 999px;
  padding: 10px 14px;
  font-weight: 900;
  box-shadow: 0 8px 0 rgba(6,61,48,.08);
}
.share-button span,
.floating-cart strong {
  display: inline-grid;
  place-items: center;
  min-width: 22px;
  height: 22px;
  margin-left: 6px;
  border-radius: 999px;
  background: var(--lime);
  color: var(--green-deep);
  font-size: 12px;
}

.active-filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: -4px 0 16px;
}
.active-filter {
  border: 1px solid rgba(13,107,79,.22);
  background: rgba(255,255,246,.85);
  color: var(--green-deep);
  border-radius: 999px;
  padding: 8px 10px 8px 12px;
  font-size: 12px;
  font-weight: 900;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.active-filter:hover { background: var(--yellow); }

.tag-button,
.filter-pill,
.category-link {
  cursor: pointer;
  border: 0;
  font-family: inherit;
}
.tag-button:hover,
.filter-pill:hover,
.category-link:hover {
  background: var(--yellow);
  color: var(--green-deep);
}
.category-link {
  margin: 0 0 18px;
  color: var(--muted);
  font-weight: 900;
  background: transparent;
  padding: 0;
  text-align: left;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

.add-cart-button {
  width: 100%;
  margin-top: 18px;
  border: 1px solid rgba(13,107,79,.22);
  border-radius: 14px;
  padding: 10px 12px;
  background: #fffef1;
  color: var(--green-deep);
  font-size: 13px;
  font-weight: 900;
}
.add-cart-button:hover { background: var(--lime); }
.add-cart-button:disabled,
.cart-add-button:disabled,
.drawer-primary:disabled,
.drawer-secondary:disabled,
.drawer-subtle:disabled {
  opacity: .5;
  cursor: not-allowed;
}

.detail-actions { display: grid; gap: 10px; margin-top: 22px; }
.detail-actions .copy-button { margin-top: 0; }
.cart-add-button {
  width: 100%;
  border: 1px solid rgba(13,107,79,.22);
  border-radius: 16px;
  padding: 14px 16px;
  background: var(--lime);
  color: var(--green-deep);
  font-weight: 900;
}
.cart-add-button:hover { background: var(--yellow); }

.floating-cart {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 60;
  border: 0;
  border-radius: 999px;
  padding: 13px 16px;
  background: var(--green-deep);
  color: white;
  font-weight: 900;
  box-shadow: 0 18px 42px rgba(6,61,48,.24);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.floating-cart:hover { transform: translateY(-2px); }

.cart-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(6, 61, 48, .32);
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease;
  z-index: 70;
}
.cart-backdrop.is-open {
  opacity: 1;
  pointer-events: auto;
}
.share-drawer {
  position: fixed;
  top: 16px;
  right: 16px;
  bottom: 16px;
  width: min(460px, calc(100vw - 32px));
  z-index: 80;
  background: #fffef1;
  color: var(--ink);
  border: 1px solid rgba(13,107,79,.22);
  border-radius: 30px;
  box-shadow: 0 24px 80px rgba(6,61,48,.28);
  padding: 22px;
  overflow: auto;
  transform: translateX(calc(100% + 40px));
  transition: transform .24s ease;
}
.share-drawer.is-open { transform: translateX(0); }
.drawer-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
}
.drawer-label {
  margin: 0 0 4px;
  color: var(--green);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .08em;
}
.drawer-head h2 {
  margin: 0;
  font-size: 28px;
  letter-spacing: -.04em;
  color: var(--green-deep);
}
.drawer-close {
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: var(--green-deep);
  color: white;
  font-size: 22px;
  line-height: 1;
}
.drawer-note {
  margin: 16px 0 0;
  color: var(--muted);
  line-height: 1.8;
  font-size: 14px;
}
.drawer-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 9px;
  margin: 18px 0 22px;
}
.drawer-primary,
.drawer-secondary,
.drawer-subtle {
  border-radius: 15px;
  padding: 13px 14px;
  font-weight: 900;
}
.drawer-primary { border: 0; background: var(--green); color: white; }
.drawer-primary:hover { background: var(--green-deep); }
.drawer-secondary { border: 1px solid rgba(13,107,79,.22); background: var(--lime); color: var(--green-deep); }
.drawer-secondary:hover { background: var(--yellow); }
.drawer-subtle { border: 1px solid rgba(13,107,79,.16); background: white; color: var(--muted); }
.drawer-section {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}
.drawer-section h3 {
  margin: 0 0 10px;
  font-size: 14px;
  color: var(--green-deep);
}
.drawer-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.text-button {
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.drawer-list { display: grid; gap: 8px; }
.drawer-empty {
  margin: 0;
  color: var(--muted);
  line-height: 1.8;
  font-size: 14px;
}
.drawer-word {
  display: grid;
  grid-template-columns: 1fr 36px;
  gap: 8px;
  align-items: stretch;
}
.drawer-word-main {
  border: 1px solid rgba(13,107,79,.16);
  background: white;
  border-radius: 14px;
  padding: 11px 12px;
  text-align: left;
}
.drawer-word-title {
  display: block;
  color: var(--green-deep);
  font-weight: 900;
}
.drawer-word-meta {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}
.drawer-remove {
  border: 0;
  border-radius: 12px;
  background: rgba(13,107,79,.09);
  color: var(--green-deep);
  font-size: 18px;
  font-weight: 900;
}
.drawer-remove:hover { background: var(--yellow); }
.history-list { display: flex; flex-wrap: wrap; gap: 8px; }
.history-chip {
  border: 1px solid rgba(13,107,79,.18);
  background: white;
  color: var(--green-deep);
  border-radius: 999px;
  padding: 7px 9px;
  font-size: 12px;
  font-weight: 900;
}
.history-chip:hover { background: var(--lime); }

@media (max-width: 860px) {
  .floating-cart {
    right: 12px;
    bottom: 12px;
    padding: 12px 14px;
  }
  .share-drawer {
    inset: auto 10px 10px 10px;
    width: auto;
    max-height: calc(100vh - 20px);
    border-radius: 24px;
    transform: translateY(calc(100% + 40px));
  }
  .share-drawer.is-open { transform: translateY(0); }
}

.drawer-section-cart {
  margin-top: 18px;
}
.drawer-actions {
  padding-top: 18px;
  border-top: 1px solid var(--line);
}
.site-footer {
  width: min(1480px, calc(100% - 32px));
  margin: -34px auto 0;
  padding: 0 0 36px;
}
.footer-inner {
  border-top: 1px solid var(--line);
  padding-top: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}
.footer-inner p { margin: 0; }
.footer-inner a {
  color: var(--green-deep);
  text-decoration: none;
}
.footer-contact {
  border: 1px solid rgba(13,107,79,.22);
  background: rgba(255,255,246,.78);
  border-radius: 999px;
  padding: 9px 13px;
  font-weight: 900;
}
.footer-inner a:hover { background: var(--lime); color: var(--green-deep); }

@media (max-width: 520px) {
  .footer-inner { align-items: flex-start; flex-direction: column; }
}

/* v5 refinements */
@media (min-width: 861px) {
  .topbar { padding-left: 26px; }
  .brand { padding-left: 4px; }
}

.detail-inner-shell { position: relative; }
.detail-close { display: none; }
.detail-backdrop { display: none; }

.site-footer .footer-inner {
  justify-content: flex-start;
  gap: 14px;
}
.site-footer .footer-inner p { white-space: nowrap; }

@media (max-width: 860px) {
  .detail-backdrop {
    position: fixed;
    inset: 0;
    display: block;
    background: rgba(6, 61, 48, .34);
    opacity: 0;
    pointer-events: none;
    transition: opacity .2s ease;
    z-index: 63;
  }
  .detail-backdrop.is-open {
    opacity: 1;
    pointer-events: auto;
  }
  .detail-panel {
    position: fixed;
    inset: auto 10px 10px 10px;
    max-height: calc(100vh - 20px);
    z-index: 64;
    display: block;
    opacity: 0;
    pointer-events: none;
    transform: translateY(calc(100% + 40px));
    transition: transform .24s ease, opacity .2s ease;
  }
  .detail-panel.is-open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }
  .detail-inner-shell {
    position: relative;
    max-height: calc(100vh - 20px);
  }
  .detail-inner {
    max-height: calc(100vh - 20px);
    overflow: auto;
    border-radius: 24px;
    padding: 22px;
    padding-top: 64px;
    background: #fffef1;
    box-shadow: 0 24px 80px rgba(6,61,48,.28);
  }
  .detail-close {
    display: inline-grid;
    place-items: center;
    position: absolute;
    top: 14px;
    right: 14px;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 50%;
    background: var(--green-deep);
    color: white;
    font-size: 24px;
    line-height: 1;
    z-index: 2;
  }
  .detail-inner h2 { font-size: 36px; }
  .detail-body { font-size: 16px; }
}

@media (max-width: 520px) {
  .footer-inner {
    align-items: center;
    flex-direction: row;
    flex-wrap: wrap;
  }
}
