/* ==========================================================================
   "Chỉnh sửa v5" (Linh, 26 Nov 2026). Loaded last (after desktop.css).
   Sizes and spacing in the spec are for phones; the PC footer follows the PC layout (≥1024px).
   ========================================================================== */

/* ---------- 1. Footer on every page: closing words + BOOK A SESSION, FIND US, contact, © ---------- */
.design-b .ft.ft5 { padding: 48px 24px 64px; }
.ft5__in { max-width: 560px; margin-inline: auto; }
.ft5 p, .ft5 dl, .ft5 dd, .ft5 h2 { margin: 0; }
.ft5 a { color: inherit; }

/* "Bring nothing / but your hands": 32/40 italic, left; line 2 indented .9em */
.design-b .ft5__line { font-family: var(--ft-serif); font-weight: 300; font-style: italic; font-size: 32px; line-height: 40px; letter-spacing: 0; color: var(--ft-cream); }
.ft5__l1, .ft5__l2 { display: block; }
.ft5__l2 { margin-left: .9em; }
/* BOOK A SESSION: same button as before (48px, Montserrat 11px .22em, 28px sides, gold frame), its right edge on the 24px margin */
.ft5__end { display: flex; flex-direction: column; }
.design-b .ft5__btn { align-self: flex-end; display: inline-flex; align-items: center; height: 48px; margin-top: 24px; padding: 0 calc(28px - .22em) 0 28px; border: 1px solid var(--ft-gold); border-radius: 0; background: none;
	font-family: var(--ft-label); font-weight: 400; font-size: 11px; letter-spacing: .22em; text-transform: uppercase; color: var(--ft-cream); text-decoration: none; transition: border-color .3s ease; }
.design-b .ft5__btn:hover { border-color: var(--ft-cream); color: var(--ft-cream); }
:lang(vi) .design-b .ft5__btn { text-transform: none; letter-spacing: .08em; font-size: 12px; padding-right: calc(28px - .08em); }

/* FIND US, 44px under the button, no rule */
.ft5__find { margin-top: 44px; }
.design-b .ft5__label { font-family: var(--ft-label); font-weight: 400; font-style: normal; font-size: 11px; line-height: 16px; letter-spacing: .14em; text-transform: uppercase; color: var(--ft-gold); }
:lang(vi) .design-b .ft5__label { text-transform: none; letter-spacing: .04em; font-size: 12px; }
.design-b .ft5__place { margin-top: 10px; font-family: var(--ft-serif); font-weight: 400; font-size: 20px; line-height: 28px; color: var(--ft-cream); }
/* "Map": underlined like Discover's Map, a 44px tap area that does not move the words */
.ft5 .ft5__map { display: inline-block; padding: 8px 0; margin: -8px 0; text-decoration: underline; text-decoration-color: var(--ft-gold); text-decoration-thickness: 1px; text-underline-offset: 4px; }
.ft5 .ft5__map:hover { color: #FFFFFF; }
.design-b .ft5__addr { font-family: var(--ft-serif); font-weight: 400; font-size: 16px; line-height: 24px; color: rgba(244, 239, 230, .75); font-variant-numeric: lining-nums; }
.design-b .ft5__place + .ft5__addr { margin-top: 6px; }
.design-b .ft5__addr--ja { font-family: 'Shippori Mincho', var(--ft-serif); font-size: 15px; }

/* Email / Instagram, 28px under the address: two columns so both addresses line up (labels 92px, 60%) */
.design-b .ft5__contact { margin-top: 28px; }
.ft5__row { display: grid; grid-template-columns: 92px 1fr; align-items: baseline; }
.design-b .ft5__row dt, .design-b .ft5__row dd { font-family: var(--ft-serif); font-weight: 400; font-size: 17px; line-height: 28px; }
.design-b .ft5__row dt { color: rgba(244, 239, 230, .6); }
.design-b .ft5__row dd { color: var(--ft-cream); min-width: 0; overflow-wrap: anywhere; }
.ft5__row dd a { display: inline-block; padding: 8px 0; margin: -8px 0; text-decoration: none; transition: color .3s ease; }
.ft5__row dd a:hover { color: #FFFFFF; }

/* © 2026 Lynh Ko · Terms · Privacy, 24px under: 13/20, 55% */
.design-b .ft5__copy { margin-top: 24px; font-family: var(--ft-serif); font-weight: 400; font-size: 13px; line-height: 20px; color: rgba(244, 239, 230, .55); font-variant-numeric: lining-nums; }
.ft5__copy a { display: inline-block; padding: 12px 0; margin: -12px 0; text-decoration: none; transition: color .3s ease; }
.ft5__copy a:hover, .ft5__copy a:focus-visible { color: rgba(244, 239, 230, .85); }
.ft5 :focus-visible { outline: 1px solid var(--ft-gold); outline-offset: 4px; }

.fade-ready .ft5 [data-fade] { opacity: 0; transition: opacity .8s ease-out; }
.fade-ready .ft5 [data-fade].is-in { opacity: 1; }
@media (prefers-reduced-motion: reduce) {
	.fade-ready .ft5 [data-fade] { opacity: 1; transition: none; }
	.ft5 a { transition: none; }
}

/* PC: the closing line and the button on one row (as the homepage had it), then Find us | contact, then © */
@media (min-width: 1024px) {
	.design-b .ft.ft5 { padding: 80px var(--pc-pad-vw) 48px; }
	.ft5__in { max-width: none; }
	.ft5__end { flex-direction: row; justify-content: space-between; align-items: flex-end; gap: 40px; }
	.design-b .ft5__line { width: 900px; max-width: 70%; font-size: clamp(64px, 5.4vw, 84px); line-height: 1; }
	.ft5__l2 { margin: 8px 0 0 .9em; }
	.design-b .ft5__btn { align-self: auto; flex: none; height: 68px; margin: 0 0 8px; padding: 0 calc(56px - .22em) 0 56px; font-size: 13px; }
	.ft5__info { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--pc-gap); align-items: end; margin-top: 72px; padding-top: 44px; border-top: 1px solid rgba(184, 155, 94, .4); }
	.ft5__find { grid-column: 1 / 8; margin: 0; }
	.design-b .ft5__label { font-size: 12px; }
	.design-b .ft5__place { margin-top: 14px; font-size: 28px; line-height: 38px; }
	.design-b .ft5__addr { font-size: 18px; line-height: 28px; }
	.design-b .ft5__addr--ja { font-size: 17px; }
	.design-b .ft5__contact { grid-column: 8 / 13; margin: 0; }
	.ft5__row { grid-template-columns: 120px 1fr; }
	.design-b .ft5__row dt, .design-b .ft5__row dd { font-size: 20px; line-height: 34px; }
	.design-b .ft5__copy { margin-top: 48px; font-size: 14px; }
}

/* ---------- 2. Last link → footer: 88px from the words (the 44px tap box adds 9px under them) ---------- */
@media (max-width: 1023px) {
	.hm-about > .hm-more:last-child, .ds-end > .pr-more:last-child, .pr-end > .pr-more:last-child, .ml-links > .pr-more:last-child, .faq-end > .faq-more:last-child { margin-bottom: -9px; }
	/* The practice has no opening paragraph any more: photo → 金継ぎ · KINTSUGI is 48px */
	.page-the-practice .pr { padding-top: var(--block-gap, 48px); }
	.page-the-practice .pr > .pr-ch--1:first-child { margin-top: 0; }
}
@media (min-width: 1024px) {
	.page-the-practice .pr > .pr-ch--1:first-child { grid-row: 1; margin-top: 0; }
}
/* Tea, two paragraphs, 16px apart (as Kintsugi above); "bon-ryaku" never breaks at its hyphen */
.lk-nowrap { white-space: nowrap; }

/* ---------- 3. Terms & Privacy window: a round X, sticky 12px from the top and right of the box ---------- */
.bk-modal__top { position: sticky; top: -28px; z-index: 3; display: flex; justify-content: flex-end; height: 0; margin: -28px -8px 28px 0 !important; pointer-events: none; }
.bk-modal__x { position: relative; flex: none; width: 44px; height: 44px; padding: 0; border: 1px solid rgba(184, 155, 94, .7); border-radius: 50%; background: var(--pr-cream, #EFE9DF); color: var(--pr-navy, #0E1A24); cursor: pointer; pointer-events: auto; }
.bk-modal__x span { position: absolute; left: 50%; top: 50%; width: 18px; height: 1px; margin: -.5px 0 0 -9px; background: currentColor; }
.bk-modal__x span:first-child { transform: rotate(45deg); }
.bk-modal__x span:last-child { transform: rotate(-45deg); }
.bk-modal__x:focus-visible { outline: 1px solid var(--pr-gold, #B89B5E); outline-offset: 3px; }
@media (min-width: 1024px) {
	/* PC: inside the 80px title bar, 12px from the box's right edge */
	.bk-modal__top { top: 18px; margin: 18px -44px 0 0 !important; }
}

/* ---------- 4. Book: no option screen, the step bar has two halves ---------- */
.bk-progress span { flex: 1 1 0; width: auto; }
.bk[data-screen="experience"] .bk-progress span:nth-child(1) { background: rgba(184, 155, 94, .4); }
.bk[data-screen="book"] .bk-progress span:nth-child(1),
.bk[data-screen="done"] .bk-progress span:nth-child(2) { background: var(--pr-navy); }
.bk[data-screen="book"] .bk-progress span:nth-child(2) { background: rgba(184, 155, 94, .4); }
.bk-people__mail a { color: inherit; text-decoration: underline; text-decoration-color: var(--pr-gold, #B89B5E); text-underline-offset: 3px; }

/* ---------- 5. Experience page: "Write to us" in the Tea text, underlined like "Map" ---------- */
.ds-write { color: inherit; text-decoration: underline; text-decoration-color: var(--v3-gold, #B89B5E); text-decoration-thickness: 1px; text-underline-offset: 4px; }
.pr-img__pic { display: block; }

/* ---------- 6. Menu: four links again, 58px from one line to the next (the v4 48px rule no longer applies) ---------- */
@media (max-width: 1023px) {
	.mn__list > li + li { margin-top: 14px; } /* 34 + 5 + 5 + 14 = 58px */
}

/* ---------- 7. Tea ceremony's tag "PRIVATE SESSION, ON REQUEST": on the title's line, as in Linh's mockup (no frame) ---------- */
.ds-beat--1 .ds-tag { margin-left: 6px; padding: 0; border: 0; letter-spacing: .12em; white-space: nowrap; }
/* on a narrower phone the whole tag goes to the next line instead of breaking */

/* ---------- 8. Homepage Experience card on PC: Linh's "Homepage Sei pc" photo, at its own 3:2 ---------- */
.hm-xcard__pic { display: contents; }
@media (min-width: 1024px) {
	.hm-xcard__img { aspect-ratio: 3 / 2; }
}

/* ---------- v6 (Linh 27 Nov): Kintsugi photo on PC only; the gold-dish photo in the strip on phones only ---------- */
@media (max-width: 1023.98px) { .pr-img--pc-only { display: none; } }
@media (min-width: 1024px) { .ds-strip .lk-zoom--phone-only { display: none; } }

/* v6 (27 Nov): "Thank you for your understanding." on its own line under the answer / Terms paragraph */
.faq-a__in p:not(:last-child) { padding-bottom: 0; margin-bottom: 8px; }
.lg-sec .lg-text + .lg-text { margin-top: 8px; }
/* v6: the 特定商取引法 link sits on its own line right under "© 2026 Lynh Ko · Terms · Privacy" */
.ft5__copy.ft5__tokusho { margin-top: 4px; }

/* v5 (27 Nov): no visible title on the home Experience card — the photo sits 24px under 体験 · EXPERIENCE */
.hm-xcard .hm-jlabel + .hm-xcard__title + .hm-xcard__img { margin-top: 24px; }
/* v5: Experience hero on phones — EXPERIENCE + title, left on the 24px margin, 72px above the hero's bottom */
.page-discover .ds-hero { position: relative; }
.page-discover .ds-hero__text { left: 24px; right: 24px; bottom: 72px; }
.page-discover .pr-hero__label { font-size: 11px; letter-spacing: .22em; color: rgba(244, 239, 230, .85); }
.page-discover .ds-hero__title { margin: 14px 0 0; font-family: var(--pr-serif); font-weight: 300; font-style: italic; font-size: 32px; line-height: 38px; color: #F4EFE6; }
.ft5__city { display: none; }

/* v5 (27 Nov): the facts — Kintsugi | Group, then Language | Location; two equal columns 24px apart, rows 20px
   apart, no rules (homepage card and Experience page). The link 16px under it. */
.xf { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 24px; row-gap: 20px; }
.xf__opts, .xf__info { display: contents; }
.xf__opts, .xf .xf__info, .xf__opt, .xf__item { border: 0; padding: 0; margin: 0; }
.xf__item + .xf__item { margin-top: 0; }
.hm-xcard__facts + .hm-more, .ds-facts-top .ds-more--top { margin-top: 16px !important; }

/* Tea back (spec v5, 26 Nov): Tea ceremony & kintsugi sits under Kintsugi in the left column, two lines
   "Private session," / "on request" like the hours and price; Group, Language, Location down the right column. */
.xf--request .xf__opt { grid-column: 1; }
.xf--request .xf__opt--request { grid-row: 2; }
.xf--request .xf__item { grid-column: 2; }
.xf--request .xf__item:nth-child(1) { grid-row: 1; }
.xf--request .xf__item:nth-child(2) { grid-row: 2; }
.xf--request .xf__item:nth-child(3) { grid-row: 3; }
