/* Nurseri Lestari — css/shell.css (A2, v2 "Rumah kaca malam"): Lenis classes, skip link, the floating glass header, the drawer
   sheet, the Moss-like footer, the WhatsApp FAB and the search overlay. Every colour is a token from base.css. */
@import url("components.css?v=ef2e29b"); /* the template only links shell.css; lead: link components.css in the template and this line goes */

/* ---- Lenis (smooth scroll classes) ---- */
html.lenis, html.lenis body { height: auto; }
.lenis:not(.lenis-autoToggle).lenis-stopped { overflow: clip; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-smooth iframe { pointer-events: none; }

/* ---- skip link ---- */
.skip-link { position: fixed; left: var(--gutter); top: var(--s-5); z-index: 300; padding: .625rem 1.125rem; background: var(--sage); color: var(--moss); border-radius: var(--radius-pill); font-weight: 600; translate: 0 -200%; opacity: 0; transition: translate var(--dur-2) var(--ease-out), opacity var(--dur-1); }
.skip-link:focus-visible { translate: 0 0; opacity: 1; }

/* ---- clearance: the header floats, so the first block of every page starts under it.
   --shell-clear = 1.25rem inset + the bar + 2.5rem of air (8.25rem / 132px); pages may use it in their own hero padding. ---- */
main { --shell-clear: calc(var(--header-h) + 3.75rem); }
main > :first-child { padding-top: var(--shell-clear); }

/* ---- header: one floating glass pill over whatever the page starts with (Plantio); it steps aside on the way down (main.js sets html.hdr-away) ---- */
.site-header { position: fixed; inset: var(--s-5) 0 auto; z-index: 100; pointer-events: none; transition: translate var(--dur-3) var(--ease-io); view-transition-name: site-header; }
html.hdr-away:not(.menu-open) .site-header { translate: 0 calc(-100% - var(--s-5) - .75rem); }
.hdr-bar { pointer-events: auto; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: var(--s-4); min-height: var(--header-h); padding: .5rem .5rem .5rem 1.25rem; border-radius: var(--radius-pill); }
/* the blur lives on the bar itself; the tints are light enough to show it because layout.js keeps the bar's tone matched to the band
   beneath it (sage on moss ≥ 13:1, ink on paper ≥ 13:1; over a photo the blur averages the backdrop under the text) */
.hdr-bar { -webkit-backdrop-filter: blur(20px) saturate(1.15); backdrop-filter: blur(20px) saturate(1.15); transition: background var(--dur-2), color var(--dur-2), border-color var(--dur-2); }
.hdr-bar.glass-dark { background: rgb(var(--moss-rgb) / .56); }
.hdr-bar.glass-light { background: rgb(var(--paper-2-rgb) / .62); }
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) { .hdr-bar.glass-dark { background: rgb(var(--moss-rgb) / .96); } .hdr-bar.glass-light { background: rgb(var(--paper-2-rgb) / .97); } }
.site-logo { justify-self: start; display: inline-flex; align-items: center; padding: .25rem 0; border-radius: var(--radius-pill); }
.site-logo-img { display: block; height: 3rem; width: auto; }   /* a fixed height: the emblem carries the lockup, the wordmark inside it stays small by the logo's own proportions */
/* both tones of the logo are in the bar from the start; the header's data-tone shows one (a swap of src aborted the in-flight image) */
[data-tone="light"] .site-logo .logo-dark, [data-tone="dark"] .site-logo .logo-light { display: none; }
@media (max-width: 899px) { .site-logo .site-logo-img { height: 2.6rem; } }   /* 640–899: the lockup a step smaller */
.nav-primary ul { display: flex; gap: var(--s-1); }
.nav-primary a { display: inline-block; padding: .5rem .75rem; font-size: var(--fs-sm); font-weight: 500; color: inherit; border-radius: var(--radius-pill); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .4em; text-decoration-color: transparent; transition: text-decoration-color var(--dur-2) var(--ease-out); }
@media (hover: hover) { .nav-primary a:hover { text-decoration-color: var(--olive); } }
.nav-primary a:focus-visible, .nav-primary a[aria-current="page"] { text-decoration-color: var(--olive); }
.nav-primary a[aria-current="page"] { font-weight: 600; text-decoration-thickness: 1px; }   /* the page you are on: bold, one thin olive line */
.hdr-right { justify-self: end; display: flex; align-items: center; gap: var(--s-1); }
.hdr-btn { display: inline-grid; place-items: center; width: 2.75rem; height: 2.75rem; border-radius: 50%; color: inherit; transition: background var(--dur-1); }
.hdr-btn .icon { width: 1.375rem; height: 1.375rem; }
@media (hover: hover) {
  [data-tone="dark"] .hdr-btn:hover, .nav-drawer .hdr-btn:hover { background: rgb(var(--sage-rgb) / .1); }
  [data-tone="light"] .hdr-btn:hover { background: rgb(var(--ink-rgb) / .07); }
}
.hdr-wa { margin-left: var(--s-1); gap: .4rem; }
.hdr-bar .btn:hover, .drawer-actions .btn:hover { box-shadow: none; }   /* v1 sticker hover edges (components.css) never reach the shell · taste-skill-ignore */
.hdr-menu { display: none; }
@media (max-width: 1023px) { .nav-primary { display: none; } .hdr-menu { display: inline-grid; } .hdr-bar { grid-template-columns: auto 1fr; } .hdr-right { grid-column: 2; } }
@media (max-width: 639px) {
  .site-header { inset: var(--s-3) 0 auto; }
  .hdr-bar { min-height: 3.75rem; padding: .375rem .375rem .375rem .75rem; gap: var(--s-2); }
  .site-logo .site-logo-img { height: 2.5rem; width: 2.5rem; }   /* ≤ 639: the emblem alone (the picture's phone source, 356×357) in a fixed square, so the bar never waits for the image to know its width: 12 + 40 + 8 + 140 px beside search + WhatsApp + menu fits 375px with room */

  .hdr-wa { width: 2.75rem; min-height: 2.75rem; padding: 0; margin: 0; } .hdr-wa-label { display: none; }
}

/* ---- drawer: a full-height dark glass sheet (phones and tablets) ---- */
.nav-drawer { position: fixed; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; border-radius: 0; box-shadow: none; /* taste-skill-ignore */ background: rgb(var(--moss-rgb) / .86); color: var(--sage); overflow: clip; display: none; clip-path: inset(0 0 100% 0); transition: clip-path var(--dur-3) var(--ease-io), display var(--dur-3) allow-discrete, overlay var(--dur-3) allow-discrete; }
.nav-drawer[open] { display: block; clip-path: inset(0 0 0 0); }
@starting-style { .nav-drawer[open] { clip-path: inset(0 0 100% 0); } }
.nav-drawer::backdrop { background: transparent; }
.drawer-scroll { position: relative; z-index: 1; height: 100%; overflow: auto; overscroll-behavior: contain; display: flex; flex-direction: column; gap: var(--s-8); padding: var(--s-3) var(--gutter) calc(var(--s-8) + env(safe-area-inset-bottom)); }
.drawer-top { display: flex; align-items: center; justify-content: space-between; min-height: var(--header-h); }
.drawer-brand { display: inline-flex; } .drawer-brand .site-logo-img { height: 2.5rem; }
.drawer-close { color: var(--sage); }
.drawer-nav li { overflow: clip; }
.drawer-nav a { display: inline-flex; align-items: center; gap: .45em; padding: .12em 0; font-family: var(--font-display); font-weight: 600; font-size: clamp(2.5rem, 10vw, 3.75rem); line-height: 1.05; letter-spacing: -0.025em; color: var(--sage); translate: 0 110%; }
.nav-drawer[open] .drawer-nav a { animation: drawer-rise var(--dur-3) var(--ease-settle) calc(.18s + var(--i, 0) * .06s) both; }
@keyframes drawer-rise { from { translate: 0 110%; } to { translate: 0 0; } }
/* an olive dot settles in front of the page you are on */
.drawer-nav a::before { content: ""; width: .18em; height: .18em; border-radius: 50%; background: var(--olive); scale: 0; transition: scale var(--dur-3) var(--ease-out); }
.drawer-nav a[aria-current="page"], .drawer-nav a:focus-visible { color: var(--sage); }
.drawer-nav a[aria-current="page"]::before, .drawer-nav a:focus-visible::before { scale: 1; }
@media (hover: hover) { .drawer-nav a:hover { color: var(--sage-3); } .drawer-nav a:hover::before { scale: 1; } }
.drawer-actions, .drawer-info { opacity: 0; }
.nav-drawer[open] .drawer-actions, .nav-drawer[open] .drawer-info { animation: drawer-fade var(--dur-3) var(--ease-out) .55s both; }
.nav-drawer[open] .drawer-info { animation-delay: .65s; }
@keyframes drawer-fade { from { opacity: 0; translate: 0 .75rem; } to { opacity: 1; translate: 0 0; } }
.drawer-actions { display: flex; flex-wrap: wrap; gap: var(--s-3); }
.drawer-info { display: grid; gap: .375rem; font-size: var(--fs-sm); max-width: 24rem; }
.drawer-info p { color: var(--sage-2); }
html.reduced .nav-drawer { transition: none; } html.reduced .drawer-nav a, html.reduced .drawer-actions, html.reduced .drawer-info { animation: none; translate: 0 0; opacity: 1; }

/* ---- footer (S2): the dark corner — one sentence and the two admin pills, the two shops as quiet rows, one row of link pills, one legal line ---- */
.site-footer { padding-block: calc(var(--section-y) * .6) var(--s-8); }   /* the page above already ends with its own section padding; the footer only needs a breath (client, 1 Nov) */
/* when the page ends on a moss band (tentang, tips-detail, index closing), the two dark blocks would merge into one tall void: a hairline marks the seam and the footer pulls in further */
main:has(> .band-moss:last-child, > .band-moss-grad:last-child, > .on-dark:last-child) + .site-footer { padding-top: calc(var(--section-y) * .4); border-top: var(--stroke) solid var(--line-dark); }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: var(--s-12) var(--s-16); align-items: start; }
.footer-title { font-size: var(--fs-h2); max-width: 26ch; margin-bottom: var(--s-8); }
.footer-title .alt { display: block; color: var(--sage-2); }
.footer-wa { display: flex; flex-wrap: wrap; gap: var(--s-3); }
.footer-shops { display: grid; border-top: var(--stroke) solid var(--line-dark); }
.footer-shop { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: var(--s-4) var(--s-6); padding-block: var(--s-5); border-bottom: var(--stroke) solid var(--line-dark); }
.footer-shop-name { font-size: var(--fs-h4); color: var(--sage); }
.footer-shop-hours { margin-top: .125rem; font-size: var(--fs-sm); color: var(--sage-2); }
.footer-shop .btn { white-space: nowrap; }
.footer-links { display: flex; flex-wrap: wrap; gap: var(--s-2); margin-top: var(--s-12); }
.footer-links .tag { min-height: 2.75rem; padding-inline: 1rem; }   /* quiet pills, 44 px tap targets */
.footer-legal { display: flex; flex-wrap: wrap; align-items: center; gap: .25rem .625rem; margin-top: var(--s-10); padding-top: var(--s-5); border-top: var(--stroke) solid var(--line-dark); font-size: var(--fs-xs); color: var(--sage-2); }
.footer-sep { color: var(--olive); }
.footer-legal a { display: inline-flex; align-items: center; min-height: 2.75rem; padding-inline: .25rem; margin-inline: -.25rem; color: var(--sage); }   /* 44 px tap target for the credit link */
@media (max-width: 899px) { .footer-grid { grid-template-columns: minmax(0, 1fr); gap: var(--s-10); } }
@media (max-width: 639px) {
  .site-footer { padding-top: var(--s-12); }
  .footer-wa { flex-direction: column; } .footer-wa .btn, .footer-shop .btn { width: 100%; }
  .footer-shop { grid-template-columns: minmax(0, 1fr); }
  .footer-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); } .footer-links .tag { justify-content: center; }
}

/* ---- WhatsApp FAB: a small dark glass disc (the phone header only carries the icon) ---- */
.wa-fab { position: fixed; right: var(--s-5); bottom: calc(var(--s-5) + env(safe-area-inset-bottom)); z-index: 90; display: grid; place-items: center; width: 3.5rem; height: 3.5rem; border-radius: 50%; background: rgb(var(--moss-rgb) / .7); color: var(--sage); view-transition-name: wa-fab; animation: fab-in var(--dur-4) var(--ease-settle) .5s backwards; transition: translate var(--dur-2) var(--ease-out), background var(--dur-2), opacity var(--dur-2), scale var(--dur-3) var(--ease-out); }
@keyframes fab-in { from { scale: 0; } }
.wa-fab .icon { width: 1.625rem; height: 1.625rem; }
@media (hover: hover) { .wa-fab:hover { translate: 0 -2px; background: rgb(var(--moss-rgb) / .86); } }
.wa-fab:active { translate: 0 0; }
.wa-fab.is-hidden { opacity: 0; scale: .5; pointer-events: none; }
body.is-playing .wa-fab, body[data-fab="off"] .wa-fab { display: none; } /* game page and pages with their own sticky bar */
@media (max-width: 639px) { .wa-fab { width: 3.25rem; height: 3.25rem; right: var(--s-4); bottom: calc(var(--s-4) + env(safe-area-inset-bottom)); } }

/* ---- search overlay: a paper card dropped from the header ---- */
.search-overlay { width: min(44rem, calc(100% - 2 * var(--gutter))); max-height: min(80dvh, 42rem); margin: clamp(1rem, 9vh, 6rem) auto auto; padding: 0; border: var(--stroke) solid var(--line); border-radius: var(--radius-lg); background: var(--paper-2); color: var(--ink); box-shadow: var(--shadow-soft); /* a real overlay · taste-skill-ignore */ overflow: hidden; display: none; flex-direction: column; opacity: 0; translate: 0 -.75rem; scale: .98; transition: opacity var(--dur-2) var(--ease-out), translate var(--dur-3) var(--ease-out), scale var(--dur-3) var(--ease-out), display var(--dur-2) allow-discrete, overlay var(--dur-2) allow-discrete; }
.search-overlay[open] { display: flex; opacity: 1; translate: 0 0; scale: 1; }
@starting-style { .search-overlay[open] { opacity: 0; translate: 0 -.75rem; scale: .98; } }
.search-overlay::backdrop { background: rgb(var(--moss-rgb) / 0); transition: background var(--dur-2); }
.search-overlay[open]::backdrop { background: rgb(var(--moss-rgb) / .55); }
@starting-style { .search-overlay[open]::backdrop { background: rgb(var(--moss-rgb) / 0); } }
.search-form { display: flex; align-items: center; gap: .625rem; padding: .625rem .75rem .625rem 1.25rem; border-bottom: 2px solid var(--line); transition: border-color var(--dur-1); }
.search-form:focus-within { border-bottom-color: var(--olive); }
.search-form > .icon { width: 1.375rem; height: 1.375rem; color: var(--mute); }
.search-input { flex: 1; min-width: 0; padding: .625rem 0; border: 0; background: none; font-size: 1.125rem; appearance: none; outline: none; }
.search-input::-webkit-search-cancel-button, .search-input::-webkit-search-decoration { display: none; }
.search-input::placeholder { color: var(--mute); }
.search-close { flex: 0 0 auto; height: 2.25rem; padding: 0 .875rem; border: var(--stroke) solid var(--line); border-radius: var(--radius-pill); font-size: var(--fs-xs); font-weight: 600; color: var(--ink-2); transition: border-color var(--dur-1), color var(--dur-1); }
@media (hover: hover) { .search-close:hover { border-color: var(--ink); color: var(--ink); } }
.search-hint { padding: .75rem 1.25rem 0; font-size: var(--fs-sm); font-weight: 500; color: var(--mute); }
.search-results { overflow: auto; padding: .5rem; display: grid; gap: .125rem; }
.search-hit { display: grid; grid-template-columns: 3.25rem minmax(0, 1fr) auto; align-items: center; gap: .75rem; padding: .5rem .75rem; border-radius: var(--radius); color: var(--ink); transition: background var(--dur-1); }
.search-hit:focus-visible { outline-offset: -3px; }
@media (hover: hover) { .search-hit:hover { background: var(--paper-3); } }
.search-hit img { width: 3.25rem; height: 3.25rem; object-fit: cover; border-radius: var(--radius); background: var(--paper-3); }
.search-hit-body { display: grid; gap: .1rem; min-width: 0; }
.search-hit-name { font-family: var(--font-display); font-weight: 600; font-size: 1.0625rem; line-height: 1.25; overflow-wrap: anywhere; }
.search-hit-name mark { background: var(--olive-2); color: inherit; border-radius: 2px; padding: 0 .05em; }
.search-hit .meta { display: flex; flex-wrap: wrap; align-items: center; gap: .375rem; font-size: var(--fs-xs); }
.search-hit .price { font-size: 1.0625rem; white-space: nowrap; }
.search-empty { padding: 1.25rem 1rem 1.5rem; display: grid; gap: .75rem; justify-items: start; color: var(--ink-2); }
.search-empty strong { font-family: var(--font-display); font-weight: 600; font-size: var(--fs-h4); color: var(--ink); }
.search-foot { display: flex; justify-content: space-between; align-items: center; gap: .75rem; padding: .625rem 1.25rem; border-top: var(--stroke) solid var(--line); font-size: var(--fs-sm); color: var(--mute); }
.search-foot a { display: inline-flex; align-items: center; gap: .375rem; font-weight: 600; color: var(--ink); }
.search-foot a .icon { width: 1rem; height: 1rem; transition: translate var(--dur-2) var(--ease-out); }
@media (hover: hover) { .search-foot a:hover .icon { translate: 3px 0; } }
.search-foot kbd { font-family: inherit; font-size: var(--fs-xs); padding: .1rem .35rem; border: var(--stroke) solid var(--line); border-radius: 4px; }
@media (max-width: 639px) {
  .search-overlay { width: calc(100% - 1rem); max-height: calc(100dvh - 1rem); margin: .5rem auto auto; }
  .search-hit { grid-template-columns: 2.75rem minmax(0, 1fr); } .search-hit img { width: 2.75rem; height: 2.75rem; }
  .search-hit .price { grid-column: 2; justify-self: start; font-size: 1rem; }
  .search-foot kbd { display: none; }
}
