/* 戳記｜深林茶室（teahouse）｜參考 Hallmark Hedgerow（MIT）的配色｜材質：深葉綠滿版（L 約 24%）、米白字、茶館牆上的直書茶單（writing-mode: vertical-rl，1～3 位數縱中橫）、直式招牌與印章色塊、細直線分欄、米白直條紙籤、一條米白色帶收尾、照片真彩｜字：Noto Serif TC 600（標題）＋Prata（數字與英文）＋Noto Sans TC（內文）｜豁免：無 */
[data-theme='teahouse'] {
  --s-dark: 1;
  --s-canvas: #0A2B1D; --s-surface: #143423; --s-surface-2: #05210F;
  --s-ink: #EEE7D8; --s-muted: #9DB5A1; --s-line: #26463A;
  --s-band: #EEE7D8; --s-on-band: #0A2B1D; --s-band-muted: #3E5546; --s-band-line: rgba(10,43,29,.22);
  --s-accent: #CAE430;
  --s-font-display: 'Prata', 'Noto Serif TC', 'Songti TC', serif; --s-display-weight: 600; --s-display-tracking: 0; --s-display-leading: 1.3;
  --s-font-body: 'Noto Sans TC', system-ui, sans-serif; --s-font-meta: 'Noto Sans TC', system-ui, sans-serif;
  --s-font-quote: 'Prata', 'Noto Serif TC', 'Songti TC', serif; --s-quote-weight: 600;
  --s-h1-max: 60px; --s-h2-max: 40px;
  --s-radius-btn: 999px; --s-radius-card: 0; --s-radius-img: 0; --s-radius-portrait: 0; --s-radius-logo: 0; --s-radius-tag: 999px; --s-radius-solo: 0;
  --s-shadow-card: none; --s-card-border: 0;
  --s-btn-line: var(--s-accent); --s-btn-tracking: 0; --s-btn-shadow: none; --s-press-scale: 1;
  --s-ph-a: #143423; --s-ph-b: #143423; --s-ph-ink: #9DB5A1; --s-ph-texture: none;
  --s-tag-bg: transparent; --s-tag-ink: #9DB5A1; --s-star: #CAE430;
  --s-nav-bg: #0A2B1D; --s-nav-line: #26463A; --s-foot-bg: #05210F; --s-foot-ink: #C9D6C8;
  --s-focus: #DDF18A;
  --s-section-y: 104px; --s-body-tracking: .01em;
  /* 深林茶室自己的變數 */
  --tea-paper: #EEE7D8; --tea-paper-ink: #0A2B1D; --tea-paper-muted: #3E5546;
  --tea-rule: rgba(238,231,216,.2);
  --tea-serif: 'Noto Serif TC', 'Songti TC', serif;
  font-synthesis: none; /* Prata 只有一種粗細，不要讓瀏覽器自己描粗 */
}

/* ---------- 直書的共用設定（iPad 9 的 Safari 也吃得到） ---------- */
[data-theme='teahouse'] .tea-sign, [data-theme='teahouse'] .tea-vh, [data-theme='teahouse'] .tea-col,
[data-theme='teahouse'] .tea-cup-quote, [data-theme='teahouse'] .tea-slip-paper {
  -webkit-writing-mode: vertical-rl; writing-mode: vertical-rl; text-orientation: mixed; text-wrap: wrap;
}
/* 1～3 位數轉橫放進一格；更長的數字與英文照預設躺著排 */
[data-theme='teahouse'] .tcy { -webkit-text-combine: horizontal; -webkit-text-combine-upright: all; text-combine-upright: all; font-variant-numeric: lining-nums; }

/* ---------- 共用元件在這個風格的樣子 ---------- */
[data-theme='teahouse'] .lead, [data-theme='teahouse'] .story p { color: #C3D3C4; font-weight: 400; }
[data-theme='teahouse'] .nav ul { letter-spacing: 0; }
[data-theme='teahouse'] .role, [data-theme='teahouse'] .tag, [data-theme='teahouse'] .ph span,
[data-theme='teahouse'] .solo-stats dt, [data-theme='teahouse'] .solo-lists h3 { letter-spacing: 0; text-transform: none; }
[data-theme='teahouse'] .role { color: var(--s-muted); font-size: 14px; }
[data-theme='teahouse'] .btn { font-weight: 700; }
[data-theme='teahouse'] a.btn-ghost { color: var(--s-accent-text); }
[data-theme='teahouse'] a:not(.btn):not(.brand) { color: var(--s-ink); text-decoration-color: var(--s-accent); text-decoration-thickness: 1px; }
[data-theme='teahouse'] .section.band a:not(.btn) { color: var(--s-on-band); text-decoration-color: var(--s-on-band); }
@media (hover: hover) {
  [data-theme='teahouse'] a.btn-primary:hover { filter: brightness(1.08); }
  [data-theme='teahouse'] a:not(.btn):not(.brand):hover { text-decoration-thickness: 2px; }
}
[data-theme='teahouse'] .ph img { filter: saturate(.92) contrast(1.06) brightness(.94); }
[data-theme='teahouse'] .ph.has-img { background: #143423; } /* 有照片時底下的備用色塊改成純色 */
[data-theme='teahouse'] .ph { outline: 1px solid rgba(238,231,216,.08); outline-offset: -1px; }
[data-theme='teahouse'] .map-embed iframe { border-radius: 0; }
[data-theme='teahouse'] .brand img.logo.mark { filter: brightness(0) invert(.92); }
[data-theme='teahouse'] .faq summary { font-weight: 500; }
[data-theme='teahouse'] .faq2 .head h2 { margin-bottom: 10px; }
[data-theme='teahouse'] .tea-h { margin: 0 0 40px; }
[data-theme='teahouse'] .tea-h-center { text-align: center; }
/* 單人模式：直式照片、方角 */
[data-theme='teahouse'] .solo-stats .n { font-weight: 400; }
[data-theme='teahouse'] .solo-quote { border-left-color: var(--s-accent); }

/* 印章色塊：店名、人名旁邊的一個方塊，字用強調色上的字色 */
[data-theme='teahouse'] .tea-seal { display: inline-block; width: 1.9em; height: 1.9em; line-height: 1.9em; text-align: center; font: 600 15px/1.9em var(--tea-serif); font-style: normal;
  background: var(--s-accent); color: var(--s-on-accent); border-radius: 3px; -webkit-writing-mode: horizontal-tb; writing-mode: horizontal-tb; }

/* ---------- 首屏：右邊直式招牌，左邊直立長照片，照片下面說明與按鈕 ---------- */
[data-theme='teahouse'] .hero-teasign { padding: 36px 0 104px; }
[data-theme='teahouse'] .hero-teasign .wrap { grid-template-columns: minmax(0, 400px) auto; grid-template-areas: 'ph sign' 'copy sign';
  justify-content: center; column-gap: clamp(48px, 10vw, 144px); row-gap: 24px; align-items: start; }
[data-theme='teahouse'] .tea-sign { grid-area: sign; justify-self: end; min-width: 0; font-size: clamp(40px, 4.3vw, 56px); height: 10.8em;
  padding: 0 .45em; border-left: 1px solid var(--tea-rule); border-right: 1px solid var(--tea-rule); }
[data-theme='teahouse'] .tea-sign h1 { font-size: 1em; line-height: 1.32; margin: 0; padding-top: .3em; font-family: var(--tea-serif); }
[data-theme='teahouse'] .tea-sign h1 > span { display: block; }
[data-theme='teahouse'] .tea-sign h1 > span + span { padding-top: 1.3em; } /* 第二欄往下錯開，像手寫的直式招牌 */
[data-theme='teahouse'] .tea-by { margin: 0 .5em 0 0; font: 400 15px/1.6 var(--tea-serif); color: var(--s-muted); text-align: end; padding-bottom: 6px; }
[data-theme='teahouse'] .tea-by .tea-seal { margin-top: 10px; }
[data-theme='teahouse'] .tea-hero-ph { grid-area: ph; min-width: 0; }
[data-theme='teahouse'] .tea-hero-ph .ph { --ph-ratio: 4 / 5; }
[data-theme='teahouse'] .tea-hero-ph .ph > span { display: none; }
[data-theme='teahouse'] .tea-hero-copy { grid-area: copy; min-width: 0; }
[data-theme='teahouse'] .hero-teasign .lead { margin: 0; font-size: 18px; line-height: 1.75; }
[data-theme='teahouse'] .hero-teasign .btns { margin-top: 22px; }
@media (max-width: 720px) {
  [data-theme='teahouse'] .hero-teasign { padding: 20px 0 72px; }
  [data-theme='teahouse'] .hero-teasign .wrap { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: 'ph sign' 'copy copy'; column-gap: 16px; row-gap: 22px; justify-content: stretch; align-items: stretch; }
  [data-theme='teahouse'] .tea-sign { font-size: 34px; height: 9.8em; padding: 0 .3em; }
  [data-theme='teahouse'] .tea-sign h1 { line-height: 1.26; padding-top: .2em; }
  [data-theme='teahouse'] .tea-sign h1 > span + span { padding-top: .9em; }
  [data-theme='teahouse'] .tea-by { font-size: 14px; margin-right: .35em; }
  [data-theme='teahouse'] .tea-by .tea-seal { font-size: 13px; }
  [data-theme='teahouse'] .tea-hero-ph .ph { aspect-ratio: auto; height: 100%; min-height: 240px; }
  [data-theme='teahouse'] .hero-teasign .lead { font-size: 17px; }
}

/* ---------- 直書茶單：右起，一品項一直欄，價格在欄底，欄間細直線 ---------- */
[data-theme='teahouse'] #offer { padding: 112px 0 120px; }
[data-theme='teahouse'] .tea-board { display: flex; direction: rtl; justify-content: center; align-items: flex-start; border-top: 1px solid var(--s-muted); border-bottom: 1px solid var(--s-muted); }
[data-theme='teahouse'] .tea-vh { direction: ltr; flex: none; margin: 0; padding: 40px 26px 40px 30px; font: 600 clamp(32px, 3.4vw, 40px)/1.3 var(--tea-serif); }
[data-theme='teahouse'] .tea-menu { display: flex; direction: rtl; flex: 0 1 auto; min-width: 0; list-style: none; margin: 0; padding: 0; border-right: 1px solid var(--s-line); }
[data-theme='teahouse'] .tea-menu > li { direction: ltr; flex: 0 1 148px; width: 148px; min-width: 0; display: flex; flex-direction: column; align-items: center; padding: 40px 8px 26px; }
[data-theme='teahouse'] .tea-menu > li + li { border-right: 1px solid var(--s-line); }
[data-theme='teahouse'] .tea-col { height: 340px; max-width: 100%; }
[data-theme='teahouse'] .tea-col h3 { margin: 0 0 0 12px; font: 600 25px/1.35 var(--tea-serif); text-wrap: wrap; }
[data-theme='teahouse'] .tea-col p { margin: 0; font-size: 15px; line-height: 1.75; color: var(--s-muted); }
[data-theme='teahouse'] .tea-tag { display: inline-block; margin-top: .55em; padding: 6px 1px; border: 1px solid var(--s-accent); font: 400 13px/1.25 var(--s-font-meta); color: var(--s-accent-text); }
[data-theme='teahouse'] .tea-price { margin: auto 0 0; padding-top: 22px; text-align: center; white-space: nowrap; }
[data-theme='teahouse'] .tea-price::before { content: ''; display: block; width: 22px; height: 1px; margin: 0 auto 16px; background: var(--s-muted); }
[data-theme='teahouse'] .tea-price b { display: block; font: 400 22px/1 'Prata', 'Noto Serif TC', serif; font-variant-numeric: lining-nums tabular-nums; }
[data-theme='teahouse'] .tea-price small { display: block; margin-top: 6px; font-size: 13px; color: var(--s-muted); }
@media (max-width: 900px) {
  [data-theme='teahouse'] #offer { padding: 80px 0 88px; }
  [data-theme='teahouse'] .tea-board { display: block; direction: ltr; border: 0; }
  [data-theme='teahouse'] .tea-vh { -webkit-writing-mode: horizontal-tb; writing-mode: horizontal-tb; padding: 0; margin: 0 0 22px; font-size: 28px; }
  /* 手機與直拿的平板：整條茶單橫向滑動，手機一次看三欄（多露一點下一欄，知道還有） */
  [data-theme='teahouse'] .tea-menu { overflow-x: auto; overflow-y: hidden; -webkit-overflow-scrolling: touch; scroll-snap-type: x mandatory; scrollbar-width: none;
    border-top: 1px solid var(--s-muted); border-bottom: 1px solid var(--s-muted); border-right: 0; }
  [data-theme='teahouse'] .tea-menu::-webkit-scrollbar { display: none; }
  [data-theme='teahouse'] .tea-menu > li { flex: 0 0 31%; width: 31%; max-width: 150px; scroll-snap-align: start; padding: 26px 4px 20px; }
  [data-theme='teahouse'] .tea-col { height: 300px; }
  [data-theme='teahouse'] .tea-col h3 { font-size: 21px; margin-left: 8px; }
  [data-theme='teahouse'] .tea-col p { font-size: 14px; line-height: 1.65; }
  [data-theme='teahouse'] .tea-price b { font-size: 19px; }
}

/* ---------- 一盞茶的時間：單欄窄文，右邊一句直寫短語 ---------- */
[data-theme='teahouse'] #about { padding: 136px 0 128px; }
[data-theme='teahouse'] .tea-cup { display: flex; direction: rtl; justify-content: center; align-items: flex-start; gap: clamp(28px, 8vw, 112px); }
[data-theme='teahouse'] .tea-cup-quote { direction: ltr; flex: none; margin: 0; padding-right: 22px; border-right: 1.5px solid var(--s-accent); font: 600 clamp(26px, 3.2vw, 38px)/1.5 var(--tea-serif); color: var(--s-ink); }
[data-theme='teahouse'] .tea-cup-quote > span { display: block; }
[data-theme='teahouse'] .tea-cup-quote > span + span { padding-top: 2.2em; }
[data-theme='teahouse'] .tea-cup-text { direction: ltr; flex: 0 1 28em; min-width: 0; }
[data-theme='teahouse'] .tea-cup-text h2 { margin: 0 0 24px; overflow-wrap: break-word; }
[data-theme='teahouse'] .tea-cup-text p { margin: 0 0 1.1em; font-size: 17px; line-height: 1.95; color: #C3D3C4; }
@media (max-width: 720px) {
  [data-theme='teahouse'] #about { padding: 88px 0 84px; }
  [data-theme='teahouse'] .tea-cup-quote { font-size: 24px; padding-right: 14px; }
  [data-theme='teahouse'] .tea-cup-text p { font-size: 16px; }
}

/* ---------- 茶人：小方照，名字旁蓋印章色塊 ---------- */
[data-theme='teahouse'] #people { padding: 104px 0 96px; }
[data-theme='teahouse'] #people > .wrap { max-width: 880px; }
[data-theme='teahouse'] .tea-people { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--s-muted); }
[data-theme='teahouse'] .tea-person { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 28px; align-items: start; padding: 26px 0; border-bottom: 1px solid var(--s-line); }
[data-theme='teahouse'] .tea-portrait { --ph-ratio: 1 / 1; }
[data-theme='teahouse'] .tea-portrait > span, [data-theme='teahouse'] .tea-portrait > svg { display: none; }
[data-theme='teahouse'] .tea-person-copy { min-width: 0; }
[data-theme='teahouse'] .tea-person-copy h3 { font-size: 26px; line-height: 1.3; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
[data-theme='teahouse'] .tea-person-copy .tea-seal { font-size: 14px; }
[data-theme='teahouse'] .tea-role { margin: 6px 0 10px; font-size: 14px; line-height: 1.5; color: var(--s-muted); }
[data-theme='teahouse'] .tea-person-copy p:last-child { margin: 0; color: #C3D3C4; }
@media (max-width: 720px) {
  [data-theme='teahouse'] #people { padding: 80px 0 72px; }
  [data-theme='teahouse'] .tea-person { grid-template-columns: 84px minmax(0, 1fr); gap: 18px; padding: 20px 0; }
  [data-theme='teahouse'] .tea-person-copy h3 { font-size: 22px; }
}

/* ---------- 茶籤留言：一條細繩下掛一排細長紙籤，評語直寫 ---------- */
[data-theme='teahouse'] #reviews { padding: 112px 0 104px; }
[data-theme='teahouse'] .tea-slips-wrap { direction: rtl; overflow-x: auto; overflow-y: hidden; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
[data-theme='teahouse'] .tea-slips-wrap::-webkit-scrollbar { display: none; }
[data-theme='teahouse'] .tea-slips { position: relative; display: flex; justify-content: center; gap: clamp(18px, 4.5vw, 60px); min-width: -webkit-min-content; min-width: min-content;
  list-style: none; margin: 0; padding: 44px 12px 20px; }
[data-theme='teahouse'] .tea-slips::before { content: ''; position: absolute; left: 0; right: 0; top: 14px; height: 1px; background: var(--s-muted); }
[data-theme='teahouse'] .tea-slip { direction: ltr; position: relative; flex: none; }
[data-theme='teahouse'] .tea-slip::before { content: ''; position: absolute; top: -30px; left: 50%; width: 1px; height: 42px; background: var(--s-muted); }
[data-theme='teahouse'] .tea-slip-paper { position: relative; margin: 0; height: 430px; padding: 34px 18px 22px; background: var(--tea-paper); color: var(--tea-paper-ink); transform-origin: 50% 0;
  -webkit-clip-path: polygon(12px 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 0 100%, 0 12px); clip-path: polygon(12px 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 0 100%, 0 12px); }
[data-theme='teahouse'] .tea-slip-paper::before { content: ''; position: absolute; top: 9px; left: 50%; width: 7px; height: 7px; margin-left: -4px; border-radius: 50%; border: 1px solid var(--tea-paper-muted); }
[data-theme='teahouse'] .tea-slip-paper.s0 { transform: rotate(-1.4deg); }
[data-theme='teahouse'] .tea-slip-paper.s1 { transform: rotate(.9deg); }
[data-theme='teahouse'] .tea-slip-paper.s2 { transform: rotate(-.6deg); }
[data-theme='teahouse'] .tea-slip-paper.s3 { transform: rotate(1.3deg); }
[data-theme='teahouse'] .tea-slip-paper blockquote { margin: 0 0 0 12px; font: 500 17px/1.85 var(--tea-serif); }
[data-theme='teahouse'] .tea-slip-paper figcaption { margin: 0; font-size: 13px; line-height: 1.5; color: var(--tea-paper-muted); text-align: end; }
@media (max-width: 720px) {
  [data-theme='teahouse'] #reviews { padding: 84px 0 80px; }
  [data-theme='teahouse'] .tea-slips { gap: 12px; padding-left: 4px; padding-right: 4px; }
  [data-theme='teahouse'] .tea-slip-paper { height: 380px; padding: 30px 12px 18px; }
  [data-theme='teahouse'] .tea-slip-paper blockquote { font-size: 15.5px; margin-left: 8px; }
  [data-theme='teahouse'] .tea-slip-paper figcaption { font-size: 12.5px; }
}

/* ---------- 時間地點：米白色帶，左邊地址與地圖，右邊一週時間 ---------- */
[data-theme='teahouse'] #info { padding: 96px 0 88px; }
[data-theme='teahouse'] .tea-info { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 72px; align-items: start; }
[data-theme='teahouse'] .tea-info h2 { font: 600 30px/1.3 var(--tea-serif); margin: 0 0 18px; overflow-wrap: break-word; }
[data-theme='teahouse'] .tea-info-side, [data-theme='teahouse'] .tea-info-hours { min-width: 0; }
[data-theme='teahouse'] .tea-info .btns { margin: 20px 0 8px; }
[data-theme='teahouse'] .tea-log { width: 100%; border-collapse: collapse; border-top: 1px solid var(--s-on-band); }
[data-theme='teahouse'] .tea-log th { text-align: left; font-weight: 500; }
[data-theme='teahouse'] .tea-log th, [data-theme='teahouse'] .tea-log td { padding: 13px 0; border-bottom: 1px solid var(--s-band-line); }
[data-theme='teahouse'] .tea-log td { text-align: right; font: 400 17px/1.4 'Prata', 'Noto Sans TC', sans-serif; font-variant-numeric: lining-nums tabular-nums; }
[data-theme='teahouse'] .tea-log small { display: inline-block; margin-left: 10px; padding: 1px 7px; font-size: 13px; line-height: 1.5; background: var(--s-accent); color: var(--s-on-accent); border-radius: 2px; }
[data-theme='teahouse'] .tea-log .is-today th, [data-theme='teahouse'] .tea-log .is-today td { font-weight: 700; border-bottom: 1.5px solid var(--s-on-band); }
[data-theme='teahouse'] .tea-log .is-off th, [data-theme='teahouse'] .tea-log .is-off td { color: var(--s-band-muted); }
@media (max-width: 860px) { [data-theme='teahouse'] .tea-info { grid-template-columns: minmax(0, 1fr); gap: 48px; } [data-theme='teahouse'] .tea-info-hours { order: -1; } }
