/* Quiet editorial shell and one shared search-page rhythm for KidsMeow. */
body[data-kids-shell="editorial-shell-v2"] {
  --shell-bg: #f8f6f0;
  --shell-card: #fffdf8;
  --shell-ink: #30463b;
  --shell-muted: #68736d;
  --shell-line: #d9ded6;
  --shell-primary: #30463b;
  --shell-soft: #edf0e8;
  background: var(--shell-bg);
  color: var(--shell-ink);
}
body[data-kids-shell] .site-header {
  position: sticky; top: 0; z-index: 40;
  border-bottom: 1px solid var(--shell-line);
  background: color-mix(in srgb, var(--shell-bg) 94%, transparent);
  box-shadow: none; backdrop-filter: blur(14px);
}
body[data-kids-shell] .site-header > .wrap {
  display: flex; min-height: 76px; height: auto; align-items: center;
  gap: 28px; padding-block: 12px;
}
body[data-kids-shell] .brand {
  display: inline-flex; align-items: center; color: var(--shell-ink);
  font-family: "Iowan Old Style", "Songti TC", "Noto Serif TC", serif;
  font-size: 24px; font-weight: 650; letter-spacing: -.025em; white-space: nowrap;
}
body[data-kids-shell] .kia-brand-mark { margin-right: 7px; font-size: .82em; }
body[data-kids-shell] .main-nav {
  display: flex; align-items: center; gap: 28px; margin-left: auto;
}
body[data-kids-shell] .main-nav > div { display: flex; align-items: center; gap: 28px; }
body[data-kids-shell] .main-nav .kia-nav-secondary {
  padding-left: 28px; border-left: 1px solid var(--shell-line);
}
body[data-kids-shell] .main-nav .kia-nav-utility { display: none; }
body[data-kids-shell] .main-nav a {
  border: 0; padding: 6px 0; color: var(--shell-muted);
  font-size: 15px; font-weight: 600; text-decoration: none;
}
body[data-kids-shell] .main-nav a:hover,
body[data-kids-shell] .main-nav a:focus-visible { color: var(--shell-ink); }
body[data-kids-shell] .kia-header-search,
body[data-kids-shell] .kia-menu { display: none; }
body[data-kids-shell] .theme-toggle {
  flex: 0 0 auto; width: 40px; height: 40px;
  border: 1px solid var(--shell-line); border-radius: 12px;
  background: var(--shell-card); color: var(--shell-ink); box-shadow: none;
}
body[data-kids-shell] .breadcrumb { color: var(--shell-muted); }
body[data-kids-shell] .block,
body[data-kids-shell] .calc-form,
body[data-kids-shell] .item-card,
body[data-kids-shell] .tile {
  border-color: var(--shell-line); border-radius: 14px;
  background: var(--shell-card); box-shadow: none;
}
body[data-kids-shell] .site-footer { margin-top: 72px; }

body[data-kids-shell] .ia-search-page { max-width: 1120px; padding-top: 0; }
body[data-kids-shell] .ia-search-start {
  max-width: 880px; margin-inline: auto; padding: 56px 0 44px;
}
body[data-kids-shell] .ia-search-start h1 {
  margin: 0; font-family: "Iowan Old Style", "Songti TC", "Noto Serif TC", serif;
  font-size: clamp(38px, 5vw, 56px); font-weight: 600; line-height: 1.3;
  letter-spacing: -.035em; text-align: center;
}
body[data-kids-shell] .ia-search-lead {
  margin: 8px 0 30px; color: var(--shell-muted); font-size: 19px; text-align: center;
}
body[data-kids-shell] .ia-search-form {
  display: block; margin: 0; padding: 0; border: 0;
  background: transparent; box-shadow: none;
}
body[data-kids-shell] .ia-primary-search > label {
  display: block; margin-bottom: 8px; color: var(--shell-muted);
  font-size: 14px; font-weight: 700;
}
body[data-kids-shell] .ia-primary-search > div {
  display: grid; grid-template-columns: 1fr auto; gap: 10px;
}
body[data-kids-shell] .ia-primary-search input {
  width: 100%; min-width: 0; min-height: 58px; box-sizing: border-box;
  padding: 14px 17px; border: 1px solid var(--shell-line); border-radius: 12px;
  background: var(--shell-card); color: var(--shell-ink); font: inherit; font-size: 17px;
}
body[data-kids-shell] .ia-primary-search button,
body[data-kids-shell] .ia-show-results {
  min-height: 52px; padding: 11px 22px;
  border: 1px solid var(--shell-primary); border-radius: 12px;
  background: var(--shell-primary); color: #fffdf8;
  font: inherit; font-weight: 700; cursor: pointer;
}
body[data-kids-shell] .ia-location-action {
  display: flex; width: fit-content; min-height: 46px; align-items: center;
  margin: 12px auto 0; padding: 8px 10px; border: 0; background: transparent;
  color: var(--shell-ink); font: inherit; font-size: 15px; font-weight: 650;
  text-decoration: underline; text-underline-offset: 5px; cursor: pointer;
}
body[data-kids-shell] .ia-kind-section { margin-top: 42px; }
body[data-kids-shell] .ia-kind-section h2 {
  margin: 0 0 16px;
  font-family: "Iowan Old Style", "Songti TC", "Noto Serif TC", serif;
  font-size: 25px; font-weight: 600;
}
body[data-kids-shell] .ia-kind-grid,
body[data-kids-shell] .ia-medical-grid {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px; margin: 0;
}
body[data-kids-shell] .family-attractions-page .ia-kind-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
body[data-kids-shell] .ia-kind-grid a,
body[data-kids-shell] .ia-medical-grid a {
  display: flex; min-height: 104px; flex-direction: column; justify-content: space-between;
  padding: 18px; border: 1px solid var(--shell-line); border-radius: 12px;
  background: var(--shell-card); color: var(--shell-ink); text-decoration: none; box-shadow: none;
}
body[data-kids-shell] .ia-kind-grid a:hover,
body[data-kids-shell] .ia-medical-grid a:hover,
body[data-kids-shell] .ia-kind-grid a[aria-current="page"] {
  border-color: #809083; background: var(--shell-soft);
}
body[data-kids-shell] .ia-kind-grid strong,
body[data-kids-shell] .ia-medical-grid strong { font-size: 17px; line-height: 1.45; }
body[data-kids-shell] .ia-kind-grid span,
body[data-kids-shell] .ia-medical-grid span {
  margin-top: 8px; color: var(--shell-muted); font-size: 13px; line-height: 1.5;
}
body[data-kids-shell] .ia-filter-stage {
  margin-top: 42px; padding-top: 28px; border-top: 1px solid var(--shell-line);
}
body[data-kids-shell] .ia-basic-filters,
body[data-kids-shell] .ia-more-filter-grid {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px;
}
body[data-kids-shell] .find-field,
body[data-kids-shell] .ia-field { display: flex; flex-direction: column; gap: 6px; }
body[data-kids-shell] .find-field label,
body[data-kids-shell] .ia-field label {
  color: var(--shell-muted); font-size: 13px; font-weight: 700;
}
body[data-kids-shell] .find-field select,
body[data-kids-shell] .ia-field select {
  width: 100%; min-height: 48px; box-sizing: border-box; padding: 9px 12px;
  border: 1px solid var(--shell-line); border-radius: 12px;
  background: var(--shell-card); color: var(--shell-ink); font: inherit;
}
body[data-kids-shell] .ia-more-filters { margin-top: 16px; }
body[data-kids-shell] .ia-more-filters > summary {
  width: fit-content; min-height: 44px; padding: 9px 2px; font-weight: 700; cursor: pointer;
}
body[data-kids-shell] .ia-more-filter-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 15px; padding: 20px;
  border: 1px solid var(--shell-line); border-radius: 12px; background: var(--shell-card);
}
body[data-kids-shell] .find-check {
  display: flex; min-height: 48px; align-items: center; gap: 8px; font-size: 14px;
}
body[data-kids-shell] .ia-show-results { margin-top: 18px; }
body[data-kids-shell] .ia-data-note {
  grid-column: 1 / -1; margin: 14px 0 0;
  color: var(--shell-muted); font-size: 13px; line-height: 1.7;
}
body[data-kids-shell] .ia-results-stage {
  padding: 42px 0 20px; border-top: 1px solid var(--shell-line);
}
body[data-kids-shell] .ia-result-head {
  display: flex; align-items: end; justify-content: space-between;
  gap: 18px; margin: 0 0 18px;
}
body[data-kids-shell] .ia-result-head h2 {
  margin: 0; font-family: "Iowan Old Style", "Songti TC", "Noto Serif TC", serif;
  font-size: 30px; font-weight: 600;
}
body[data-kids-shell] .ia-result-head p {
  margin: 6px 0 0; color: var(--shell-muted); font-size: 14px;
}
body[data-kids-shell] .ia-result-head > button {
  min-height: 44px; padding: 8px 12px; border: 1px solid var(--shell-line);
  border-radius: 12px; background: var(--shell-card); color: var(--shell-ink); font: inherit;
}
body[data-kids-shell] .filter-summary { margin-bottom: 16px; }
body[data-kids-shell] .filter-summary-items {
  display: flex; flex-wrap: wrap; gap: 7px; color: var(--shell-muted); font-size: 13px;
}
body[data-kids-shell] .filter-summary-items span {
  padding: 5px 9px; border-radius: 999px; background: var(--shell-soft);
}
body[data-kids-shell] .find-shell {
  display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 18px;
}
body[data-kids-shell] .find-map {
  min-height: 560px; border: 1px solid var(--shell-line); border-radius: 12px; overflow: hidden;
}
body[data-kids-shell] #findList { display: grid; gap: 10px; }
body[data-kids-shell] .find-card {
  position: relative; display: flex; min-height: 132px; flex-direction: column;
  padding: 17px 18px; border: 1px solid var(--shell-line); border-radius: 12px;
  background: var(--shell-card); color: var(--shell-ink); text-decoration: none;
}
body[data-kids-shell] .find-card:hover { border-color: #809083; background: var(--shell-soft); }
body[data-kids-shell] .find-card .cat { color: var(--shell-muted); font-size: 12px; }
body[data-kids-shell] .find-card strong {
  margin-top: 4px; padding-right: 58px; font-size: 17px; line-height: 1.5;
}
body[data-kids-shell] .find-card .meta {
  margin-top: 5px; color: var(--shell-muted); font-size: 13px;
}
body[data-kids-shell] .find-card .mini {
  display: flex; flex-wrap: wrap; gap: 5px 10px;
  margin-top: 12px; color: var(--shell-muted); font-size: 12px;
}
body[data-kids-shell] .find-card-go {
  position: absolute; top: 17px; right: 17px; font-size: 13px; font-weight: 700;
}
body[data-kids-shell] .ia-results {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px;
}
body[data-kids-shell] .ia-result-card {
  display: flex; min-height: 164px; flex-direction: column; padding: 18px;
  border: 1px solid var(--shell-line); border-radius: 12px;
  background: var(--shell-card); color: var(--shell-ink); text-decoration: none;
}
body[data-kids-shell] .ia-result-card:hover {
  border-color: #809083; background: var(--shell-soft);
}
body[data-kids-shell] .ia-result-card strong { font-size: 17px; line-height: 1.5; }
body[data-kids-shell] .ia-result-card .meta {
  margin-top: 7px; color: var(--shell-muted); font-size: 12px; line-height: 1.6;
}
body[data-kids-shell] .ia-result-card .reason {
  margin-top: 10px; font-size: 13px; line-height: 1.65;
}
body[data-kids-shell] .ia-result-card .go {
  margin-top: auto; padding-top: 14px; font-size: 13px; font-weight: 700;
}
body[data-kids-shell] [hidden] { display: none !important; }

@media (max-width: 900px) {
  body[data-kids-shell] .ia-results { grid-template-columns: 1fr 1fr; }
  body[data-kids-shell] .family-attractions-page .ia-kind-grid { grid-template-columns: 1fr 1fr; }
  body[data-kids-shell] .find-shell { grid-template-columns: 1fr; }
  body[data-kids-shell] .find-map { min-height: 360px; }
}
@media (max-width: 760px) {
  body[data-kids-shell] .site-header > .wrap {
    position: relative; min-height: 64px; flex-wrap: nowrap;
    gap: 8px; padding: 10px 20px;
  }
  body[data-kids-shell] .brand { order: 0; margin-right: auto; font-size: 21px; }
  body[data-kids-shell] .kia-header-search,
  body[data-kids-shell] .kia-menu {
    display: inline-flex; width: 42px; height: 42px; flex: 0 0 42px;
    align-items: center; justify-content: center;
    border: 1px solid var(--shell-line); border-radius: 12px;
    background: var(--shell-card); color: var(--shell-ink);
    font-size: 21px; text-decoration: none;
  }
  body[data-kids-shell] .kia-menu { font: inherit; font-size: 19px; }
  body[data-kids-shell] .kia-header-search { order: 1; }
  body[data-kids-shell] .kia-menu { order: 2; }
  body[data-kids-shell] .theme-toggle { display: none; }
  body[data-kids-shell] .main-nav {
    display: none; position: absolute; left: 14px; right: 14px;
    top: calc(100% + 5px); max-height: calc(100vh - 96px); overflow: auto;
    margin: 0; padding: 12px; border: 1px solid var(--shell-line);
    border-radius: 14px; background: var(--shell-card);
    box-shadow: 0 18px 42px rgba(28,39,33,.14);
  }
  body[data-kids-shell] .main-nav.kia-open { display: block; }
  body[data-kids-shell] .main-nav > div { display: grid; gap: 0; }
  body[data-kids-shell] .main-nav .kia-nav-secondary,
  body[data-kids-shell] .main-nav .kia-nav-utility {
    display: grid; margin-top: 8px; padding: 8px 0 0;
    border-top: 1px solid var(--shell-line); border-left: 0;
  }
  body[data-kids-shell] .main-nav a,
  body[data-kids-shell] .kia-theme-menu {
    display: flex; min-height: 48px; align-items: center;
    padding: 7px 10px; color: var(--shell-ink);
  }
  body[data-kids-shell] .kia-theme-menu {
    border: 0; background: transparent; font: inherit; text-align: left;
  }
  body[data-kids-shell] .ia-search-page { padding-inline: 22px; }
  body[data-kids-shell] .ia-search-start { padding: 34px 0 30px; }
  body[data-kids-shell] .ia-search-start h1 { font-size: 36px; }
  body[data-kids-shell] .ia-search-lead { margin-bottom: 24px; font-size: 17px; }
  body[data-kids-shell] .ia-primary-search > div { grid-template-columns: 1fr; gap: 8px; }
  body[data-kids-shell] .ia-primary-search input { min-height: 55px; font-size: 16px; }
  body[data-kids-shell] .ia-primary-search button { width: 100%; min-height: 48px; }
  body[data-kids-shell] .ia-kind-section { margin-top: 34px; }
  body[data-kids-shell] .ia-kind-section h2 { font-size: 23px; }
  body[data-kids-shell] .ia-kind-grid,
  body[data-kids-shell] .ia-medical-grid { grid-template-columns: 1fr 1fr; }
  body[data-kids-shell] .ia-kind-grid a,
  body[data-kids-shell] .ia-medical-grid a { min-height: 92px; padding: 16px; }
  body[data-kids-shell] .ia-kind-grid a:last-child:nth-child(odd) { grid-column: 1 / -1; }
  body[data-kids-shell] .ia-basic-filters { grid-template-columns: 1fr 1fr; }
  body[data-kids-shell] .ia-basic-filters > :first-child { grid-column: 1 / -1; }
  body[data-kids-shell] .ia-more-filter-grid { grid-template-columns: 1fr; padding: 16px; }
  body[data-kids-shell] .ia-show-results { width: 100%; }
  body[data-kids-shell] .ia-results-stage { padding-top: 32px; }
  body[data-kids-shell] .ia-result-head { align-items: start; }
  body[data-kids-shell] .ia-result-head h2 { font-size: 27px; }
  body[data-kids-shell] .ia-results { grid-template-columns: 1fr; }
  body[data-kids-shell] .find-map { min-height: 280px; }
}
@media (max-width: 380px) {
  body[data-kids-shell] .ia-kind-grid,
  body[data-kids-shell] .ia-medical-grid,
  body[data-kids-shell] .family-attractions-page .ia-kind-grid { grid-template-columns: 1fr; }
  body[data-kids-shell] .ia-kind-grid a:last-child:nth-child(odd) { grid-column: auto; }
}
html[data-theme="dark"] body[data-kids-shell="editorial-shell-v2"],
body[data-kids-shell="editorial-shell-v2"][data-theme="dark"] {
  --shell-bg: #1e2d25; --shell-card: #293a30; --shell-ink: #e4eadd;
  --shell-muted: #b6c2b3; --shell-line: #526052;
  --shell-primary: #d5e1cc; --shell-soft: #324639;
  color-scheme: dark;
}
html[data-theme="dark"] body[data-kids-shell] .ia-primary-search button,
html[data-theme="dark"] body[data-kids-shell] .ia-show-results { color: #223529; }
@media (forced-colors: active) {
  body[data-kids-shell] .site-header,
  body[data-kids-shell] .theme-toggle,
  body[data-kids-shell] .ia-kind-grid a,
  body[data-kids-shell] .ia-result-card { border-color: CanvasText; }
}
