/* jao page specific styles - keep ahotml pmd clean */

/* Logo lockup - svg centered above text */
svg:has(circle[cx="50"]) {
  display: block;
  margin: 2rem auto 1.5rem;
}

img.stamp, svg.stamp {
  display: block;
  margin: 0.8rem auto 3rem;
  width: 120px;
  height: 14px;
}

logo, svg.logo {
  display: block;
  text-align: center;
  font-size: clamp(3rem, 12vw, 6rem);
  font-weight: 300;
  letter-spacing: -0.05em;
  margin: 0;
  line-height: 1;
}

slogan {
  display: block;
  text-align: center;
  font-size: clamp(0.9rem, 3vw, 1.2rem);
  color: #666;
  letter-spacing: 0.1em;
  margin-bottom: 3rem;
}

/* More space below love */
small.love {
  margin-bottom: 0.5rem;
}

/* Product grid */
.products {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin: 1.5rem 0;
  padding: 0 1rem;
}

.product {
  text-align: center;
  background: #fff;
  padding: 1rem;
  border-radius: 8px;
}

.product img {
  width: 100%;
  max-width: 280px;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 6px;
  margin-bottom: 0.5rem;
}

.price {
  color: #8b7355;
  font-weight: 500;
}

@media (max-width: 600px) {
  .products { grid-template-columns: 1fr; }
}

/* Steps */


.step .emoji {
  font-size: 2rem;
  display: block;
  margin-bottom: 0.5rem;
}

/* Order section */
.order-method {
  background: #f0eeeb;
  padding: 1.5rem;
  border-radius: 6px;
  margin: 1rem 0;
}

/* h2 styling */
h2 {
  margin-top: 2.5rem;
  padding-bottom: 0.3rem;
  border-bottom: 1px solid #ddd;
}

/* v6: top menu row (about faq contact, same-page) */
.topmenu { text-align: center; margin: 0 0 1.5rem; word-spacing: 1.2rem; }

/* v6: wabi cart — buy path per product */
a.buy { display: inline-block; margin-top: 0.5rem; padding: 0.35rem 0.9rem; border: 1px solid #8b7355; border-radius: 6px; background: #f7f4ef; }

.order-note { text-align: center; color: #666; margin: 0 1rem 1.5rem; }

/* v6: breathing room before with-love */
small.love { margin-top: 2.5rem; }

/* v6.1 dark theme — product cards, slogan, cart (transparent PNGs land after his judgment) */
@media (prefers-color-scheme: dark) {
  slogan { color: #aaa; }
  .product { background: #2a2a2a; }
  .price { color: #c9a86a; }
  a.buy { background: #2a2a2a; border-color: #8b7355; }
  .order-note { color: #999; }
  h2 { border-bottom-color: #333; }
}

/* batch-3: steps grid — 2 cols mobile up to 4 desktop */
.steps {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin: 1.5rem 0;
}
.step {
  background: #fff;
  padding: 1rem;
  border-radius: 8px;
  text-align: center;
}
.step .emoji { font-size: 1.6rem; display: block; margin-bottom: 0.3rem; }
@media (min-width: 900px) {
  .steps { grid-template-columns: repeat(4, 1fr); }
}

/* batch-3: un-center page prose (logo/products keep their centered design) */
pmd { text-align: left; }
.step b { display: inline-block; margin-top: 0.2rem; }

/* batch-3: transparent renders stay readable on dark cards */
@media (prefers-color-scheme: dark) {
  .product img {
    background: #f7f4ef;
    border-radius: 12px;
    padding: 6px;
  }
  .step { background: #2a2a2a; }
}

/* batch-3b: real h2s from ## lines (jao.js), self-link + top arrow */
pmd h2 { border-bottom: 1px solid #ddd; margin-top: 2.2rem; }
pmd h2 .self { color: inherit; text-decoration: none; }
pmd h2 .self:hover { text-decoration: underline; }
/* round-6: the '# ' section titles are the page's primary headings —
   promoted above the FAQ items, in the FAQ's plain (non-link) colour. */
pmd a.sect {
  color: inherit;
  text-decoration: none;
  font-family: Arimo, Helvetica, sans-serif;
  font-weight: 800;
  font-size: 1.5rem;
  line-height: 1.2;
  border-bottom: 1px solid #ddd;
  padding-bottom: 0.2rem;
}
pmd a.sect:hover { text-decoration: underline; }
/* round-6: one simple top arrow everywhere, with a bigger tap gap after the title. */
pmd .totop { font-size: 0.7em; opacity: 0.45; text-decoration: none; margin-left: 1rem; padding: 0.15rem 0.4rem; }
pmd .totop:hover { opacity: 1; }
@media (prefers-color-scheme: dark) {
  pmd h2 { border-bottom-color: #333; }
  pmd a.sect { border-bottom-color: #333; }
}

/* batch-3b: version nav */
.version-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.6rem;
  margin: 0.8rem 0;
  font-size: 0.85rem;
}
.version-nav b { font-weight: normal; opacity: 0.7; }

/* batch-3b: video placeholder */
.video-soon { margin: 1.5rem 0; }
.video-soon img { max-width: 100%; border-radius: 8px; display: block; }

/* batch-3b: pwspa in-app release view */
#pwspa { margin: 0; }
#pwspa .pwspa-nav { border-top: 1px solid #ddd; border-bottom: 1px solid #ddd; padding: 0.5rem 0; }
#pwspa .pwspa-page { padding: 1rem 0; }
@media (prefers-color-scheme: dark) {
  #pwspa .pwspa-nav { border-color: #333; }
}

/* round-5: clearly-marked swap points (sandra placeholders etc.) */
.swap-tk { border-bottom: 2px dashed #b3392f; }

/* batch views: stable swap, no layout shift */
.batch-view{margin:0;padding:0}

/* W1 close 2026-09-26: real photos replace renders (batch 22 sept 2026) */
.real-photos { display: flex; flex-wrap: wrap; gap: 0.6rem; margin: 1rem 0; }
.real-photos a { flex: 1 1 140px; min-width: 0; max-width: 100%; }
.real-photos img { width: 100%; border-radius: 8px; display: block; }

/* --- print model (2026-10-11 r15): press print and you get the page itself,
   then the two extra pages acauema supplied — his hangtag file (ht) and his
   20qr file, both used verbatim, one page each. on a batch / ingredients view
   the 20qr leads, then the ht, then the rest of the page. the two extras are
   the .tagsheet and .posqr blocks; jao.js points them at the page language and
   orders them in the dom (invisible on screen). --- */
.tagsheet, .posqr { display: none; }

@media print {
  @page { size: A4 portrait; margin: 10mm; }
  body { margin: 0 !important; padding: 0 !important; max-width: none !important; }
  /* interface-only chrome, gone on paper */
  .menu, #menu, #toggle-menu, h1, .viewtoggle, small.love,
  .pwspa-prev, .pwspa-next, .totop { display: none !important; }
  /* pmd is an unknown (inline) element; make it block so page breaks land */
  pmd { display: block; }
  /* a mailto button prints as a button, never as a url */
  a[href^="mailto:"]:after { content: none !important; }

  /* the two extra pages: acauema's own files, one page each, nothing redrawn */
  .tagsheet, .posqr { display: block; text-align: center;
    margin: 0 !important; padding: 0 !important;
    page-break-before: always; page-break-inside: avoid; }
  .tagsheet img, .posqr img { width: 185mm !important; height: 185mm !important;
    max-width: none !important; display: inline-block; }

  body.print-batch .posqr { page-break-before: avoid; }
  body.print-batch .tagsheet { page-break-before: always; }
  body.print-batch pmd { page-break-before: always; }
}

svg.logo { margin: 0 auto; }
svg.logo{display:block;width:140px;margin-left:auto !important;margin-right:auto !important}

.faq-feedback{background:transparent;border:1px solid currentColor;font-weight:400}
.batch-feedback{font-weight:700}
.chain{font-size:.85em;opacity:.75}
.chain-nav{font-size:.85em;opacity:.75;margin:.3em 0;display:flex;gap:.6em;align-items:baseline}
.chain-nav span{flex:1}
.batch-hist{display:block;font-size:.85em;opacity:.8;margin:.4em 0}

/* round-8: pwspa section navigation — one section at a time (js enhancement).
   without js every section stays visible and the page is one normal scroll. */
.pwspa-prev, .pwspa-next { display: none; font-size: 0.85em; opacity: 0.75; text-decoration: none; }
.pwspa-prev { margin: 0.2em 0 1.2em; }
.pwspa-next { margin: 1.8em 0 0.2em; }
.pwspa-prev:hover, .pwspa-next:hover { opacity: 1; }
/* section prev/next links only exist in the SPA (one-section) mode */
.js-pwspa .pwspa-prev, .js-pwspa .pwspa-next { display: block; }
.js-pwspa .pwspa-view { display: none; }
.js-pwspa .pwspa-view.on { display: block; }

/* round-10: SPA / MPA toggle — a small control on the right of the hero. */
.viewtoggle { display: block; text-align: right; font-size: 1.3rem; line-height: 1;
  margin: 0.2rem 0.3rem 0.6rem; text-decoration: none; opacity: 0.75; }
.viewtoggle:hover { opacity: 1; }

/* round-9: batch history — each batch view carries only previous/next, and the
   full list lives in its own lonely view (linked from every batch view). */
.batch-nav { display: block; font-size: 0.85em; opacity: 0.75; text-decoration: none; }
.batch-nav:hover { opacity: 1; }
.batch-nav.batch-prev { margin: 0.2em 0 1em; }
.batch-nav.batch-next { margin: 1.2em 0 0.2em; }
.batch-history-view { margin: 0.5em 0 1em; }
.batch-history-view h2 { margin: 0.4rem 0 1rem; }
.batch-history-view a { display: block; margin: 0.8em 0; text-decoration: none; }
.batch-history-view a:hover { text-decoration: underline; }
/* the history is a lonely view: while it is open the batches and the shared
   tail (batch notes + feedback) step aside so only the list shows. */
.batch-history-on .batch-view, .batch-history-on .batch-tail { display: none; }

/* round-9: proper spacing between a feedback button and the link underneath. */
.fb-actions { display: flex; flex-direction: column; align-items: flex-start; gap: 1.8em; margin: 1em 0 0.2em; }
/* round-15 (2026-10-11, acauema): the batch dtts stamp sits just below and
   outside the feedback button, smaller than the label. */
.fb-btnwrap { display: flex; flex-direction: column; align-items: flex-start; gap: 0.25em; }
.fb-dtts { font-size: 0.78em; opacity: 0.7; }

/* round-12 (2026-10-11): the section top arrows sit beside the section titles
   in the full-page view only (acauema: spa = the full page). the paged
   one-section view (.js-pwspa) drops them. */
html.js-pwspa pmd .totop { display: none; }

/* item 7 (2026-10-11): batch-history dtts stamps in a fixed-width font so they
   compare visually. */
.dtts { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace; }

/* round-14 (2026-10-11, acauema): the anchored-link offset is gone. with the
   menu moving to the RIGHT the fixed hamburger no longer sits over a section
   title, so a # target needs no scroll offset — the round-13
   unchanged. (the same rule lives in the shared /nav.css; it comes out there
   too.) */

/* round-14 (2026-10-11): the first menu option shares a line with the close ✖
   — the ✖ floats right and "top" reads on the same row, the rest below. */
#menu .menu { float: right; }

/* round-14: the fixed hamburger sits top-right (acauema's right-side nav). the
   shared /nav.css still carries it on the left, so the jao stage brings the
   move itself; the site-wide nav.css takes it over once it lands. */
label.menu { left: auto; right: 0; }

/* round-13: the "what" photo collage — one frame spans the top, a tall frame
   sits at the left, two frames stack at the right (acauema's arrangement). */
.photo-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.6rem; margin: 1rem 0; }
.photo-grid > a { display: block; height: 100%; }
.photo-grid img { width: 100%; height: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 8px; display: block; }
.photo-grid > a:first-child { grid-column: 1 / -1; }
.photo-grid > a:nth-child(2) { grid-column: 1; grid-row: 2 / span 2; }
.photo-grid > a:nth-child(2) img { aspect-ratio: auto; }
