/* Konzept 3 — "Galerie" in izakaya spirit: slim nav · quiet list · large stage with a hanging menu tag (o-shinagaki).
   Demo only, layered on styles.css. Red appears only as the hanko seal and its marks. */
:root {
  --navh: 3.75rem; --slow: 700ms; --ease: cubic-bezier(0.22, 0.7, 0.2, 1);
  --sumi: #0f0d0c;                 /* ink-black for the stage surface */
  --wood: #1b1613;                 /* dark-stained wood */
  --hinoki: #d8c6a3;               /* pale cypress for the menu tag */
  --hair: rgb(239 232 220 / 0.09);
  --jp: "Hiragino Mincho ProN", "Yu Mincho", "YuMincho", "Noto Serif JP", var(--serif);
  --r: 0.625rem; --ink-3: #6f675d;
}

.k3-body { background: var(--bg); }
.k3 { padding-top: var(--navh); }
.k3-kj { font: 500 1em/1 var(--jp); }

/* ---------- heading ---------- */
.k3-head { display: flex; align-items: flex-start; gap: 0.9rem; margin-bottom: 0.9rem; }
.k3-oshi { writing-mode: vertical-rl; font: 500 0.875rem/1 var(--jp); letter-spacing: 0.35em; color: var(--ink-2); padding: 0.15rem 0.55rem 0.1rem 0; border-right: 1px solid color-mix(in srgb, var(--brand) 70%, transparent); }
.k3-title { font: 500 1.75rem/1.05 var(--serif); letter-spacing: -0.01em; margin: 0.1rem 0 0; }
.k3-tagline { margin: 0.5rem 0 0; color: var(--ink-2); font: 400 0.8125rem/1.4 var(--sans); }
.k3-tagline span { display: block; margin-bottom: 0.15rem; font: 500 1rem/1.3 var(--jp); letter-spacing: 0.3em; color: var(--ink); }
.k3-sub { color: var(--ink-2); font-size: 0.875rem; line-height: 1.6; margin: 0 0 2.5rem; }

/* ---------- list ---------- */
.k3-sec { padding-bottom: 2.25rem; }
.k3-sec-head { padding: 1.5rem 0 0.9rem; background: var(--bg); z-index: 2; }
.k3-eyebrow { display: flex; align-items: baseline; gap: 0.6rem; font: 500 0.75rem/1 var(--sans); letter-spacing: 0.2em; text-transform: uppercase; color: var(--ink-2); margin-bottom: 0.6rem; }
.k3-eyebrow .k3-kj { font-size: 1.0625rem; letter-spacing: 0.15em; color: var(--ink); text-transform: none; }
.k3-sec-head h2 { font: 500 1.625rem/1.15 var(--serif); letter-spacing: -0.005em; margin: 0; }
.k3-sec-head p { margin: 0.45rem 0 0; color: var(--ink-2); font-size: 0.875rem; line-height: 1.5; max-width: 28rem; }
.k3-sec ul { list-style: none; margin: 0; padding: 0; }
.k3-sec li + li { }

.k3-row {
  -webkit-appearance: none; appearance: none; border: 0; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer;
  width: 100%; display: grid; grid-template-columns: 2.5rem minmax(0, 1fr) auto; gap: 1rem; align-items: center;
  padding: 0.85rem 0.6rem; margin: 0 -0.35rem; width: calc(100% + 0.7rem); position: relative;
}
.k3-row-name { display: block; font-weight: 500; font-size: 1rem; line-height: 1.3; transition: color 400ms ease; }
.k3-row-desc { display: block; margin-top: 0.2rem; color: var(--ink-2); font-size: 0.9375rem; line-height: 1.45; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; opacity: 0.85; }
.k3-row:hover .k3-row-name { color: #fff; }
.k3-row:focus-visible { outline: 1px solid color-mix(in srgb, var(--ink) 45%, transparent); outline-offset: 2px; }
/* current dish: a quiet hinoki hairline frame, nothing louder */
.k3-row[aria-current="true"] { box-shadow: inset 0 0 0 1px rgb(216 198 163 / 0.4); border-radius: 0.6rem; background: rgb(216 198 163 / 0.04); }
.k3-row[aria-current="true"] .k3-row-name { color: #fff; }
.k3-slot {
  width: 2.5rem; height: 2.5rem; position: relative; display: grid; place-items: center; border-radius: 0.4rem;
  color: var(--ink-2); font: 400 0.9375rem/1 var(--serif); font-variant-numeric: oldstyle-nums;
}
.k3-slot img { width: 100%; height: 100%; object-fit: cover; border-radius: 0.4rem; }
.k3-slot img.k3-slot-seal { width: 1.1rem; height: 1.1rem; opacity: 0.28; filter: grayscale(1); }
.k3-row-main { min-width: 0; }
.k3-row-price { font: 400 1rem/1 var(--serif); font-variant-numeric: lining-nums tabular-nums; white-space: nowrap; }
.k3-row-price small, .k3-price small { color: var(--ink-2); font: 400 0.75rem var(--sans); letter-spacing: 0.04em; margin-right: 0.35em; }
.k3-flag { color: var(--ink-2); font-weight: 500; font-size: 0.6875rem; letter-spacing: 0.1em; margin-left: 0.45rem; white-space: nowrap; }

.k3-key { padding: 2.5rem 0.25rem 1rem; color: var(--ink-2); font-size: 0.875rem; }
.k3-key h2 { font: 500 1.25rem/1.2 var(--serif); color: var(--ink); margin: 0 0 1rem; }
.k3-key dl { display: grid; grid-template-columns: 1.75rem 1fr; gap: 0.35rem 0.5rem; margin: 0 0 1.75rem; }
.k3-key dt { color: var(--ink); font-family: var(--serif); }
.k3-key dd { margin: 0; }
.k3-key .k3-legal a { color: var(--ink-2); }

/* ---------- stage ---------- */
.k3-stage { position: relative; container-type: size; overflow: hidden; }
.k3-frame { position: absolute; inset: 0; display: flex; flex-direction: column; opacity: 0; transition: opacity var(--slow) var(--ease); }
.k3-frame.in { opacity: 1; }
.k3-photo {
  -webkit-appearance: none; appearance: none; border: 0; padding: 0; margin: 0; font: inherit; color: inherit;
  flex: none; position: relative; width: 100%; height: min(56.25cqw, 60cqh);
  border-radius: var(--r); overflow: hidden; background: var(--card);
}
button.k3-photo { cursor: zoom-in; }
.k3-photo img.k3-shot { width: 100%; height: 100%; object-fit: cover; transform: scale(1.04); transition: transform 1800ms var(--ease); }
.k3-frame.in .k3-photo img.k3-shot { transform: none; }
.k3-photo.is-fit img.k3-shot { object-fit: contain; }
.k3-zoom {
  position: absolute; right: 1rem; bottom: 1rem; padding: 0.4rem 0.75rem; border-radius: 2px;
  font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink);
  background: rgb(15 13 12 / 0.6); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  opacity: 0; transition: opacity 300ms ease;
}
button.k3-photo:hover .k3-zoom, button.k3-photo:focus-visible .k3-zoom { opacity: 1; }
button.k3-photo:focus-visible { outline: 1px solid color-mix(in srgb, var(--ink) 50%, transparent); outline-offset: 4px; }

/* placeholder: dark wood wall with one hanging o-shinagaki tag, placed off-centre */
.k3-photo.is-card {
  background:
    radial-gradient(70% 90% at 72% 40%, rgb(216 198 163 / 0.07), transparent 65%),
    repeating-linear-gradient(90deg, rgb(255 255 255 / 0.012) 0 2px, transparent 2px 9px, rgb(0 0 0 / 0.05) 9px 10px, transparent 10px 23px),
    linear-gradient(var(--wood), var(--sumi));
  box-shadow: inset 0 0 0 1px var(--hair);
}
.k3-card-kj { position: absolute; left: 8%; top: 12%; writing-mode: vertical-rl; font: 400 clamp(3rem, 11cqh, 6.5rem)/1 var(--jp); letter-spacing: 0.12em; color: rgb(239 232 220 / 0.13); }
.k3-card-sec { position: absolute; left: calc(8% + clamp(3rem, 11cqh, 6.5rem) + 1.25rem); top: 12.5%; writing-mode: vertical-rl; font: 500 0.75rem/1 var(--sans); letter-spacing: 0.25em; text-transform: uppercase; color: var(--ink-2); opacity: 0.8; }
.k3-tag {
  position: absolute; left: 66%; top: 11%; bottom: 9%; width: clamp(4.5rem, 11cqw, 6.5rem); transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; padding: 1.1rem 0 1rem; gap: 0.9rem;
  color: #1a1411; border-radius: 2px;
  background:
    repeating-linear-gradient(180deg, rgb(120 90 50 / 0.06) 0 1px, transparent 1px 7px, rgb(120 90 50 / 0.04) 7px 9px, transparent 9px 17px),
    linear-gradient(90deg, #cdb994, var(--hinoki) 30%, #e2d2b2 60%, #cbb690);
  box-shadow: 0 18px 40px rgb(0 0 0 / 0.55), 0 2px 4px rgb(0 0 0 / 0.4);
}
.k3-tag::before { content: ""; position: absolute; bottom: 100%; left: 50%; width: 1px; height: 30cqh; background: rgb(239 232 220 / 0.18); }   /* the string it hangs from */
.k3-tag-no { font: 500 0.8125rem/1 var(--serif); letter-spacing: 0.1em; color: rgb(26 20 17 / 0.6); min-height: 0.8125rem; }
.k3-tag-name {
  flex: 1; min-height: 0; margin: 0; writing-mode: vertical-rl; text-orientation: mixed;
  font: 500 clamp(1.5rem, 4.4cqw, 2.4rem)/1.15 var(--serif); letter-spacing: 0.06em; overflow: hidden;
}
.k3-tag-seal { width: 1.9rem; height: 1.9rem; flex: none; transform: rotate(-6deg); filter: saturate(1.1); }

.k3-info { flex: 1; min-height: 0; overflow-y: auto; padding: 1.9rem 0.25rem 1rem; scrollbar-width: thin; scrollbar-color: var(--hair) transparent; }
.k3-info .k3-eyebrow { margin-bottom: 0.8rem; }
.k3-info-head { display: flex; align-items: baseline; gap: 1.5rem; padding-bottom: 1rem; border-bottom: 1px solid var(--hair); }
.k3-info h2 { flex: 1; font: 500 clamp(1.75rem, 3.2cqw, 2.375rem)/1.1 var(--serif); letter-spacing: -0.01em; margin: 0; }
.k3-price { font: 400 1.375rem/1 var(--serif); font-variant-numeric: lining-nums tabular-nums; white-space: nowrap; }
.k3-desc { color: var(--ink-2); font-size: 1.0625rem; line-height: 1.65; margin: 1rem 0 0; max-width: 40rem; }
.k3-note { color: var(--ink-2); font: italic 0.9375rem var(--serif); margin: 0.6rem 0 0; }
.k3-variants { list-style: none; padding: 0; margin: 1.3rem 0 0; max-width: 40rem; }
.k3-variants li { display: flex; align-items: baseline; gap: 0.75rem; padding: 0.6rem 0; font-size: 0.9375rem; }
.k3-variants li + li { }
.k3-variants span:first-child { flex: 1; }
.k3-variants span:last-child { font: 400 1rem var(--serif); font-variant-numeric: lining-nums tabular-nums; white-space: nowrap; }
/* allergens as quiet text, tags as small stamped labels */
.k3-chips { display: flex; flex-wrap: wrap; gap: 0.5rem 1.25rem; margin: 1.4rem 0 0; padding: 0; list-style: none; font-size: 0.8125rem; color: var(--ink-2); }
.k3-chips li b { color: var(--ink); font: 500 0.875rem var(--serif); margin-right: 0.35em; }
.k3-chips li.is-tag { display: inline-flex; align-items: center; gap: 0.45rem; color: var(--hinoki); background: rgb(216 198 163 / 0.07); border: 1px solid rgb(216 198 163 / 0.3); padding: 0.3rem 0.8rem 0.3rem 0.65rem; border-radius: 999px; font-size: 0.8125rem; letter-spacing: 0.05em; }
.k3-chips li.is-tag::before { content: ""; width: 0.4rem; height: 0.4rem; border-radius: 50%; background: currentColor; opacity: 0.8; }

.k3-close, .k3-grab, .k3-pick-wrap { display: none; }

/* ---------- desktop: three zones, one screen ---------- */
@media (min-width: 60rem) {
  .k3-body { overflow: hidden; }
  .k3 {
    height: 100svh; max-width: 120rem; margin: 0 auto;
    display: grid; grid-template-columns: 13.5rem clamp(22rem, 29vw, 30rem) minmax(0, 1fr);
    gap: clamp(2rem, 3.5vw, 4.5rem); padding: calc(var(--navh) + 2rem) clamp(1.5rem, 3vw, 3rem) 2rem;
  }
  .k3-side { display: flex; flex-direction: column; overflow: hidden; }
  .k3-side > * { flex: none; }
  /* the filter stays pinned under the categories; a long category list scrolls above it */
  .k3-side > .k3-cats { flex: 0 1 auto; min-height: 0; overflow-y: auto; scrollbar-width: thin; scrollbar-color: var(--hair) transparent; }
  .k3-cats ol { list-style: none; margin: 0; padding: 0; }
  .k3-cats > ol > li { margin-bottom: 0.2rem; }
  .k3-cats a { display: block; text-decoration: none; transition: color 300ms ease; }
  .k3-cat { display: grid !important; grid-template-columns: 2.75rem 1fr; align-items: baseline; padding: 0.35rem 0; font: 400 1rem/1.3 var(--serif); color: var(--ink-2); position: relative; }
  .k3-cat .k3-kj { font-size: 1.0625rem; letter-spacing: 0.08em; }
  .k3-cats ol ol { margin: 0.15rem 0 0.8rem 2.75rem; padding-left: 0.9rem; border-left: 1px solid var(--hair); }
  .k3-cats ol ol a { font-size: 0.875rem; padding: 0.28rem 0; color: var(--ink-2); position: relative; }
  .k3-cats a:hover { color: var(--ink); }
  .k3-cats li.is-on > .k3-cat { color: var(--ink); }
  .k3-cats li.is-on > .k3-cat .k3-kj { color: var(--accent-text); }
  .k3-cats ol ol a[aria-current="true"] { color: var(--ink); }
  .k3-cats ol ol a[aria-current="true"]::before { content: ""; position: absolute; left: calc(-0.9rem - 1px); top: 0.3rem; bottom: 0.3rem; width: 1px; background: var(--brand); }
  .k3-cats li:not(.is-on) > ol, .k3-cats li.is-collapsed > ol { display: none; }
  .k3-cats li.is-on > .k3-cat::after { content: ""; position: absolute; right: 0.4rem; top: 50%; width: 0.4rem; height: 0.4rem; margin-top: -0.35rem; border: solid var(--ink-2); border-width: 0 1px 1px 0; transform: rotate(45deg); transition: transform 250ms ease; }
  .k3-cats li.is-on.is-collapsed > .k3-cat::after { transform: rotate(-45deg); margin-top: -0.2rem; }

  .k3-list { overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: var(--hair) transparent; padding: 0 0.75rem 0 1rem; margin-left: -1rem; }
  .k3-sec-head { position: sticky; top: 0; box-shadow: 0 1px 0 var(--hair); margin-bottom: 0.25rem; }
  .k3-sec:first-child .k3-sec-head { padding-top: 0.2rem; }
  /* mounted like a print: a hairline frame a few px outside the photo */
  .k3-photo { outline: 1px solid var(--hair); outline-offset: 0.6rem; }
  .k3-frame { padding: 0.65rem; }
  .k3-photo { height: min(56.25cqw, 54cqh); }
  /* long details fade out instead of being cut by the stage edge */
  .k3-info { -webkit-mask-image: linear-gradient(#000 calc(100% - 2.5rem), transparent); mask-image: linear-gradient(#000 calc(100% - 2.5rem), transparent); padding-bottom: 2.5rem; }
}

/* ---------- phone / small tablet: list first, stage becomes a sheet ---------- */
@media (max-width: 59.99rem) {
  .k3 { padding: calc(var(--navh) + 1.75rem) 1.25rem 3rem; }
  .k3-cats { display: none; }
  .k3-title { font-size: 2.25rem; }
  .k3-oshi { font-size: 0.9375rem; }
  .k3-sub { margin-bottom: 1.25rem; }
  .k3-pick-wrap { display: block; position: sticky; top: var(--navh); z-index: 5; margin: 0 -1.25rem; padding: 0.25rem 1.25rem 0; background: var(--bg); }
  .k3-pick-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .k3-pick {
    -webkit-appearance: none; appearance: none; width: 100%; cursor: pointer;
    font: 400 1.0625rem/1.2 var(--serif); color: var(--ink); padding: 0.85rem 2rem 0.85rem 0; border: 0; border-radius: 0;
    border-bottom: 1px solid var(--line);
    background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%23a49b8f' stroke-width='1.4' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat right 0.25rem center;
  }
  .k3-pick option, .k3-pick optgroup { background: var(--card); color: var(--ink); }
  .k3-sec-head { padding-top: 2rem; }
  .k3-row[aria-current="true"]::before { display: none; }
  .k3-row-desc { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; font-size: 0.875rem; }

  .k3-stage {
    position: fixed; z-index: 20; left: 0; right: 0; bottom: 0; top: calc(env(safe-area-inset-top) + 0.75rem);
    background: var(--bg); border-radius: 0.75rem 0.75rem 0 0; box-shadow: var(--sheet-shadow);
    transform: translateY(105%); visibility: hidden;
    transition: transform 560ms var(--ease), visibility 0s linear 560ms;
  }
  .k3-stage.open { transform: none; visibility: visible; transition: transform 560ms var(--ease), visibility 0s; }
  .k3-stage.dragging { transition: none; }
  .k3-photo { height: min(56.25cqw, 50cqh); border-radius: 0.75rem 0.75rem 0 0; touch-action: none; }
  .k3-photo.is-card { height: min(78cqw, 52cqh); box-shadow: none; }
  .k3-tag { left: 64%; width: clamp(4rem, 19cqw, 5rem); }
  .k3-tag-name { font-size: clamp(1.4rem, 7cqw, 1.9rem); }
  .k3-info { padding: 1.5rem 1.25rem calc(2rem + env(safe-area-inset-bottom)); }
  .k3-info-head { flex-wrap: wrap; gap: 0.4rem 1rem; }
  .k3-zoom { opacity: 1; }
  .k3-grab { display: block; position: absolute; z-index: 3; top: 0.5rem; left: 50%; width: 2.25rem; height: 0.25rem; margin-left: -1.125rem; border-radius: 1rem; background: rgb(255 255 255 / 0.5); pointer-events: none; }
  .k3-close { display: grid; position: absolute; z-index: 3; top: 0.85rem; right: 0.85rem; background: rgb(15 13 12 / 0.55); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
  .k3-scrim { position: fixed; inset: 0; z-index: 15; background: rgb(0 0 0 / 0.55); animation: k3-fade 450ms ease; }
}
@keyframes k3-fade { from { opacity: 0; } }

@media (prefers-reduced-motion: reduce) {
  .k3-frame, .k3-stage, .k3-stage.open, .k3-row-name, .k3-cats a { transition-duration: 1ms !important; }
  .k3-photo img.k3-shot { transform: none; transition: none; }
  .k3-scrim { animation: none; }
}

/* ---------- filter bar (konzept-3a: chips from konzept 1 · konzept-3b: search + ring toggles from konzept 2) ---------- */
[hidden] { display: none !important; }
.k3-filter { margin: 1.5rem 0 0; padding-top: 1.25rem; border-top: 1px solid var(--hair); display: flex; flex-direction: column; align-items: flex-start; gap: 0.75rem; }
.k3-fbtns { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; }
.k3-fbtns button { -webkit-appearance: none; appearance: none; cursor: pointer; touch-action: manipulation; font: 500 0.875rem/1 var(--sans); color: var(--ink-2); }
.k3-fbtns button:focus-visible, .k3-empty button:focus-visible { outline: 3px solid color-mix(in srgb, var(--accent) 55%, transparent); outline-offset: 2px; }
.k3-fcount { font-size: 0.8125rem; color: var(--ink-2); }
.k3-fcount:empty { display: none; }
/* a: filled chips */
.k3-filter-a .k3-fbtns button { padding: 0.6rem 0.95rem; border-radius: 0.5rem; background: transparent; border: 1px solid var(--line); letter-spacing: 0.02em; transition: background 150ms ease, color 150ms ease, border-color 150ms ease; }
.k3-filter-a .k3-fbtns button:hover { color: var(--ink); border-color: rgb(239 232 220 / 0.25); }
.k3-filter-a .k3-fbtns button[aria-pressed="true"] { background: var(--hinoki); color: var(--sumi); border-color: var(--hinoki); }
/* b: underline search + quiet ring toggles */
.k3-filter-b { gap: 0.4rem; }
.k3-search { align-self: stretch; display: flex; align-items: center; gap: 0.75rem; height: 2.5rem; border-bottom: 1px solid var(--ink-3); transition: border-color 200ms ease; }
.k3-search:focus-within { border-color: var(--ink); }
.k3-search svg { width: 1.05rem; height: 1.05rem; flex: none; fill: none; stroke: var(--ink-2); stroke-width: 1.6; stroke-linecap: round; }
.k3-search input { flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; background: none; color: var(--ink); font: 1.0625rem var(--serif); }
.k3-search input:focus { border: 0; box-shadow: none; }   /* styles.css gives every focused input a red glow */
.k3-search input::placeholder { color: var(--ink-2); font-style: italic; }
.k3-search input::-webkit-search-cancel-button { appearance: none; }
.k3-filter-b .k3-fbtns { gap: 0 1rem; }
.k3-filter-b .k3-fbtns button { display: flex; align-items: center; gap: 0.5rem; border: 0; background: none; padding: 0.5rem 0; transition: color 150ms ease; }
.k3-filter-b .k3-fbtns button:hover, .k3-filter-b .k3-fbtns button[aria-pressed="true"] { color: var(--ink); }
.k3-filter-b .k3-fbtns button::before { content: ""; width: 0.55rem; height: 0.55rem; border-radius: 50%; box-shadow: inset 0 0 0 1px var(--ink-2); transition: background 150ms ease, box-shadow 150ms ease; }
.k3-filter-b .k3-fbtns button[aria-pressed="true"]::before { background: var(--accent); box-shadow: none; }

.k3-empty { padding: 2rem 0.25rem; color: var(--ink-2); }
.k3-empty button { cursor: pointer; font: 500 0.875rem var(--sans); color: var(--ink); background: none; border: 1px solid var(--line); border-radius: 0.5rem; padding: 0.6rem 0.95rem; }
@media (min-width: 60rem) { .k3-side .k3-sub { margin-bottom: 1.5rem; } .k3-filter { margin-top: 0.75rem; padding-top: 1rem; } }
/* short screens: pull everything up, drop the intro line, so the sidebar (categories + open sub-list + filter) never needs to scroll */
@media (min-width: 60rem) {
  .k3 { padding-top: calc(var(--navh) + 0.75rem); }
  .k3-head { margin-bottom: 0.6rem; }
}
@media (min-width: 60rem) and (max-height: 56rem) { .k3-side .k3-sub { display: none; } .k3-side .k3-head { margin-bottom: 1.25rem; } }

/* rows never paint over the sticky section head; keyboard / hover scrolling leaves room for it */
.k3-sec ul { position: relative; z-index: 0; }
.k3-sec-head { z-index: 4; }
.k3-row { scroll-margin-top: 7rem; }
/* the monthly special has no photo: its seal shows in full colour instead of the dimmed placeholder */
.k3-slot img.k3-slot-seal.is-lit { width: 1.75rem; height: 1.75rem; opacity: 1; filter: none; }
/* guest favourites: a small hinoki star next to the dish name and the section title */
.k3-name-star { margin-left: 0.45rem; color: var(--hinoki); font-size: 0.8em; }
.k3-star-h { margin-left: 0.55rem; font: 400 0.9em/1 var(--sans); color: var(--hinoki); }

/* sidebar: categories sit a little lower; legend at the bottom on every screen height; on tall screens the lunch hours, allergy note and reserve button follow */
.k3-legend { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.35rem; font-size: 0.8125rem; color: var(--ink-2); }
.k3-legend b { display: inline-block; min-width: 2rem; margin-right: 0.35rem; font: 500 0.75rem/1 var(--sans); letter-spacing: 0.08em; color: var(--ink); }
.k3-lg-star, .k3-nav-star { color: var(--hinoki); }
.k3-nav-star { margin-left: 0.4rem; font-size: 0.8em; }
@media (min-width: 60rem) {
  .k3-side .k3-cats { margin-top: 1.5rem; }
  .k3-side .k3-legend { order: 9; margin-top: auto; padding-top: 1rem; }
}
@media (min-width: 60rem) and (min-height: 56.01rem) {
  .k3-side .k3-sub { display: block; order: 10; margin: 1.1rem 0 0; font-size: 0.8125rem; }
  .k3-side .k3-res { order: 11; margin-top: 0.9rem; }
}
@media (max-height: 56rem), (max-width: 59.99rem) { .k3-res { display: none; } }
@media (max-width: 59.99rem) { .k3-legend { display: none; } }

/* ---------- premium touches: same slow-zoom language as the start page (700ms, 1.05) ---------- */
.k3-row { transition: background 350ms ease, box-shadow 350ms ease, transform 150ms ease; }
.k3-row:active { transform: scale(0.99); }
.k3-slot { overflow: visible; }
.k3-slot img:not(.k3-slot-seal) { transition: transform 700ms cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 400ms ease; }
.k3-row-price { transition: color 300ms ease; }
.k3-fbtns button, .k3-cats a { transition: color 200ms ease, background 200ms ease, border-color 200ms ease, transform 150ms ease; }
.k3-fbtns button:active { transform: scale(0.96); }
@media (hover: hover) {
  .k3-row:hover { background: rgb(216 198 163 / 0.045); }
  .k3-row:hover .k3-slot img:not(.k3-slot-seal) { transform: scale(1.12); box-shadow: 0 6px 16px rgb(0 0 0 / 0.45); }
  .k3-row:hover .k3-row-price, .k3-row[aria-current="true"] .k3-row-price { color: var(--hinoki); }
  .k3-frame.in button.k3-photo:hover img.k3-shot { transform: scale(1.05); transition-duration: 900ms; }
  .k3-frame.in button.k3-photo:hover { outline-color: rgb(216 198 163 / 0.3); }
}
.k3-row[aria-current="true"] .k3-slot img:not(.k3-slot-seal) { box-shadow: 0 0 0 1px rgb(216 198 163 / 0.5); }
.k3-photo { transition: outline-color 500ms ease; }
@media (prefers-reduced-motion: reduce) {
  .k3-row, .k3-slot img, .k3-photo { transition: none !important; }
  .k3-row:hover .k3-slot img, .k3-frame.in button.k3-photo:hover img.k3-shot { transform: none; }
}

/* desktop: the section headings in the list become screen-reader-only; one pinned headline shows the current section */
.k3-now { display: none; }
@media (min-width: 60rem) {
  .k3-sec { position: relative; }
  .k3-sec-head { position: absolute; width: 1px; height: 1px; padding: 0; margin: 0; overflow: hidden; clip-path: inset(50%); box-shadow: none; }
  .k3-sec + .k3-sec { border-top: 1px solid var(--hair); margin-top: 1.25rem; padding-top: 1.25rem; }
  .k3-listwrap { display: flex; flex-direction: column; min-height: 0; }
  .k3-listwrap > .k3-list { flex: 1; min-height: 0; padding-top: 0.75rem; }
  .k3-now { display: block; flex: none; padding: 0.2rem 0 1rem; border-bottom: 1px solid var(--hair); }
  .k3-now .k3-eyebrow { margin-bottom: 0.6rem; }
  .k3-now-title { font: 500 1.625rem/1.15 var(--serif); letter-spacing: -0.005em; margin: 0; }
  .k3-now-note { margin: 0.45rem 0 0; min-height: 3em; color: var(--ink-2); font-size: 0.875rem; line-height: 1.5; max-width: 28rem; }
}
@media (max-width: 59.99rem) { .k3-listwrap { display: contents; } }

/* filter: one row of symbol buttons (same symbols as the legend right below it); legend sits directly under it */
.k3-fbtns { flex-wrap: nowrap; gap: 0.4rem; }
.k3-filter-a .k3-fbtns button { padding: 0.55rem 0.8rem; min-width: 2.6rem; text-align: center; }
.k3-filter-b .k3-fbtns { gap: 0 0.9rem; }
.k3-lg-nofish { display: none; }
body[data-filter="b"] .k3-lg-nofish { display: list-item; }
@media (min-width: 60rem) {
  .k3-side .k3-legend { margin-top: 0.9rem; padding-top: 0; border-top: 0; }
}
@media (min-width: 60rem) and (min-height: 56.01rem) { .k3-side .k3-sub { margin-top: auto; } }
.k3-legend .k3-lg-nofish b { min-width: 3.4rem; white-space: nowrap; }
.k3-cats li.is-empty > .k3-cat, .k3-cats li.is-empty > a { opacity: 0.4; }
.k3-cats ol ol li.is-empty { opacity: 0.4; }

/* sidebar bottom: no hours / allergy text any more; on tall screens only the reserve button anchors the bottom */
@media (min-width: 60rem) {
  .k3-side .k3-sub { display: none; }
  .k3-side .k3-res { margin-top: auto; }
}

/* opening hours between the greeting and the categories */
.k3-hours { margin: 1.1rem 0 0; color: var(--ink-2); font-size: 0.8125rem; line-height: 1.55; letter-spacing: 0.02em; font-variant-numeric: lining-nums; }
.k3-hours span { margin-right: 0.35rem; color: var(--ink); font: 500 0.875rem var(--jp); letter-spacing: 0.12em; }

/* sidebar: no visible scrollbar (it only scrolls on very short windows) */
.k3-side > .k3-cats { scrollbar-width: none; }
.k3-side > .k3-cats::-webkit-scrollbar { display: none; }
/* hours placement variants: a = two lines, b = one quiet line right under the greeting (default), c = pinned to the foot of the sidebar */
.hrs-a .k3-hours { margin-top: 0.8rem; }
.hrs-b .k3-hours { margin: 0.5rem 0 0; font-size: 0.6875rem; letter-spacing: 0; white-space: nowrap; opacity: 0.85; }
.hrs-b .k3-hours .h-lat, .hrs-b .k3-hours br { display: none; }
.hrs-b .k3-hours span { font-size: 0.75rem; letter-spacing: 0.06em; }
@media (min-width: 60rem) {
  .hrs-c .k3-side .k3-hours { order: 12; margin: auto 0 0; padding-top: 0.8rem; border-top: 1px solid var(--hair); font-size: 0.6875rem; }
  .hrs-c .k3-side .k3-legend { margin-bottom: 1rem; }
}
.k3-hours .h-lat { margin: 0; font: inherit; letter-spacing: inherit; color: inherit; }
/* hours (variant c) sit right under the legend, not pinned to the bottom */
@media (min-width: 60rem) {
  .hrs-c .k3-side .k3-hours { margin: 0.9rem 0 0; }
  .hrs-c .k3-side .k3-legend { margin-bottom: 0; }
}

/* stars in gold; chilis are colour emoji (red, green stem) */
:root { --gold: #e3b53f; }
.k3-name-star, .k3-star-h, .k3-nav-star, .k3-lg-star, .k3-gold { color: var(--gold); }
.k3-lg-star { font-size: 0.85rem; }
.k3-chips li.is-tag .k3-gold { margin-right: 0.1rem; }
.k3-legend .k3-lg-star { color: var(--gold); }

/* ---------- phone: compact header + sticky category tabs instead of a <select> ---------- */
@media (max-width: 59.99rem) {
  .k3 { padding-top: calc(var(--navh) + 0.9rem); }
  .k3-title { font-size: 1.85rem; }
  .k3-head { margin-bottom: 0.4rem; }
  .k3-tagline { margin-top: 0.3rem; }
  .k3-tagline span { font-size: 0.875rem; letter-spacing: 0.22em; margin-bottom: 0; }
  .k3-hours { margin: 0.5rem 0 0; font-size: 0.75rem; }
  .k3-hours br { display: none; }
  .k3-sub { display: none; }
  .k3-pick-wrap { padding: 0.5rem 1.25rem 0; }
  .k3-pick { display: none; }
  .k3-tabs { display: flex; gap: 0.45rem; margin: 0 -1.25rem; padding: 0 1.25rem 0.65rem; overflow-x: auto; scrollbar-width: none; border-bottom: 1px solid var(--line); -webkit-overflow-scrolling: touch; }
  .k3-tabs::-webkit-scrollbar { display: none; }
  .k3-tabs button { flex: none; display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.5rem 0.85rem; border: 1px solid var(--line); border-radius: 999px; background: none; color: var(--ink-2); font: 400 0.8125rem/1 var(--sans); white-space: nowrap; cursor: pointer; }
  .k3-tabs button.is-on { color: var(--ink); border-color: rgb(216 198 163 / 0.6); background: rgb(216 198 163 / 0.1); }
  .k3-tabs .k3-kj { color: var(--accent-text); }
  .k3-sec-head { padding-top: 1.5rem; }
}
@media (min-width: 60rem) { .k3-tabs { display: none; } }
/* vegetarian / vegan marker: a quiet green badge instead of a bare letter (08.11.26) */
.k3-row .k3-flag.k3-veg, .k3-info-head .k3-flag.k3-veg { color: #9cc58a; border: 1px solid rgb(156 197 138 / 0.55); border-radius: 0.3rem; padding: 0 0.3em; font-size: 0.625rem; letter-spacing: 0.05em; line-height: 1.4; vertical-align: 0.1em; }
