/* D120: block variants and the new block types (docs/site-schema.md). Only
   copied into a site, and linked after style.css, when its site definition
   uses a variant other than the first, a new block type or an extra page,
   so a site that uses none of them builds exactly as before. Same tokens and
   rules as style.css: flat colours, AA contrast, 44 px targets, no motion
   beyond style.css's own. */

/* ---- hero ------------------------------------------------------------------ */
.hero.v-short { min-height: 60vh; min-height: 60svh; }
.hero.v-split { min-height: 0; display: flex; flex-direction: column; align-items: stretch; background: var(--surface); color: var(--text); }
.hero.v-split .hero-img { position: relative; inset: auto; height: auto; aspect-ratio: 4 / 3; }
.hero.v-split .hero-img.ph { min-height: 0; }
.hero.v-split .hero-scrim { display: none; }
.hero.v-split .hero-text { padding-top: var(--spacing-400); padding-bottom: var(--spacing-600); }
.hero.v-split .hero-title { background: none; color: var(--text); -webkit-background-clip: border-box; background-clip: border-box; }
.hero.v-split .tagline { color: var(--text); }
.hero.v-split .lead { color: var(--text-2); }
.hero.v-split .btn:focus-visible { outline-color: var(--brand-ink); }
@media (max-width: 767px) { .hero.v-split .hero-img { margin-top: calc(var(--topbar-space) - var(--spacing-100)); border-radius: var(--radius-card); width: calc(100% - 2 * var(--gutter)); margin-left: var(--gutter); } }
@media (min-width: 768px) {
  .hero.v-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; padding-top: var(--topbar-space); }
  .hero.v-split .hero-img { order: 2; height: 100%; min-height: 420px; aspect-ratio: auto; }
  .hero.v-split .hero-text { order: 1; max-width: none; padding: var(--spacing-700) var(--spacing-600); }
  /* D152: the text starts where every section's content starts (the 1120 px wrap), not 48 px from the window's edge. */
  .hero.v-split .hero-text { padding-left: max(var(--spacing-600), calc((100vw - 1120px) / 2 + var(--gutter))); }
}

/* ---- about / statement / items / gallery / faq ---------------------------------- */
@media (min-width: 960px) { .about.v-reverse .about-img { order: 2; } }
.about.v-centered .about-img { display: none; }
.about.v-centered .about-grid, .about.v-centered .about-grid.has-img { grid-template-columns: minmax(0, 1fr); justify-items: center; text-align: center; }
.about.v-centered .section-head { margin-left: auto; margin-right: auto; align-items: center; text-align: center; }
.statement.v-quiet { padding: var(--spacing-600) 0; }
.statement.v-quiet .statement-text { font-size: 1.5rem; line-height: 2rem; }
.items.v-list .grid { grid-template-columns: minmax(0, 1fr); gap: 0; max-width: 840px; }
.items.v-list .grid > .card { display: block; border-width: 0 0 1px; border-radius: 0; background: none; }
.items.v-list .grid > .card:hover { transform: none; }
.items.v-list .card-img { display: none; }
.items.v-list .card-body { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: var(--spacing-200); padding: var(--spacing-200) 0; }
.items.v-list .card-body > * { grid-column: 1; }
.items.v-list .card-foot { grid-column: 2; grid-row: 1 / span 4; margin: 0; padding: 0; flex-direction: column; align-items: flex-end; justify-content: flex-start; }
@media (min-width: 640px) { .gallery.v-large .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--spacing-300); } }
@media (min-width: 960px) { .faq.v-two-col .faq-list { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: none; align-items: start; } }

/* ---- rich text ------------------------------------------------------------------ */
.rt { max-width: 680px; color: var(--text-2); }
.rt > * { margin: 0 0 var(--spacing-200); }
.rt > :last-child { margin-bottom: 0; }
.rt h3 { color: var(--text); margin-top: var(--spacing-300); }
.rt h3:first-child { margin-top: 0; }
.rt ul { padding-left: 1.25em; }
.rt li + li { margin-top: var(--spacing-50); }
.rt strong { color: var(--text); font-weight: 600; }
.rt a { display: inline; min-height: 0; }
.b-text.v-centered .wrap { text-align: center; }
.b-text.v-centered .rt, .b-text.v-centered .section-head { margin-left: auto; margin-right: auto; }
.b-text.v-centered .rt ul { display: inline-block; text-align: left; }

/* ---- image + text ------------------------------------------------------------------ */
.it-grid { display: grid; gap: var(--spacing-300); }
.it-img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius-card); background: var(--surface-2); }
.it-text { display: flex; flex-direction: column; gap: var(--spacing-200); }
.it-text > * { margin: 0; }
@media (min-width: 768px) {
  .it-grid.has-img { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: var(--spacing-600); }
  .b-image-text.v-image-right .it-img { order: 2; }
}

/* ---- buttons, notice, video ---------------------------------------------------------- */
.b-buttons { padding: var(--spacing-500) 0; }
.btn-row { display: flex; flex-wrap: wrap; gap: var(--spacing-100); }
.b-buttons.v-center .wrap { text-align: center; }
.b-buttons.v-center .btn-row { justify-content: center; }
.b-buttons.v-center .section-head { margin-left: auto; margin-right: auto; }
.b-notice, .section.b-notice:nth-of-type(even) { padding: var(--spacing-300) 0; background: transparent; }
.notice-box { display: flex; flex-wrap: wrap; align-items: center; gap: var(--spacing-100) var(--spacing-200); padding: var(--spacing-200) var(--spacing-300); border-radius: var(--radius-card); background: var(--warning-bg); border: 1px solid var(--border); color: var(--text); }
.notice-box > p { margin: 0; flex: 1 1 16em; }
.notice-box .icon { color: var(--warning); }
.notice-link { display: inline-flex; align-items: center; gap: var(--spacing-50); min-height: 44px; color: var(--brand-ink); }
.b-notice.v-highlight .notice-box { background: var(--brand-ink); border-color: transparent; color: #ffffff; }
.b-notice.v-highlight .notice-box .icon, .b-notice.v-highlight .notice-link { color: #ffffff; }
.b-notice.v-highlight .notice-link:focus-visible { outline-color: #ffffff; }
.b-video .video-player { aspect-ratio: 16 / 9; object-fit: contain; }
.b-video.v-narrow .video-player { max-width: 420px; aspect-ratio: 9 / 16; margin: 0 auto; }
.video-caption { margin-top: var(--spacing-100); }

/* ---- 詢問表單 (D153) ---------------------------------------------------------------------
   The 「已收到」 box shows instead of the form when the URL is #inquiry-sent (the platform's
   answer without JavaScript) or when inquiry.js adds .is-shown. Fields as on the booking page:
   16 px text (no zoom on iPhone), 44 px targets, the error colour and text together. */
.inq { max-width: 640px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-card); padding: var(--spacing-300); }
.inq-form { display: flex; flex-direction: column; gap: var(--spacing-200); }
.inq-field { display: flex; flex-direction: column; gap: var(--spacing-75); }
.inq-field label { font-size: .875rem; line-height: 1.25rem; font-weight: 600; color: var(--text); }
.inq-field input, .inq-field textarea { width: 100%; min-height: 44px; box-sizing: border-box; font: inherit; font-size: 1rem; line-height: 1.5rem; padding: var(--spacing-75) var(--spacing-100); border: 1px solid var(--border-strong); border-radius: min(var(--radius-lg), var(--radius-xl)); background: var(--surface); color: var(--text); }
.inq-field textarea { min-height: 136px; resize: vertical; }
.inq-field input:focus-visible, .inq-field textarea:focus-visible { outline: 2px solid var(--brand-ink); outline-offset: 0; border-color: var(--brand-ink); }
.inq-field [aria-invalid="true"] { border-color: var(--danger); background: var(--danger-bg); }
.inq-hint { margin: 0; color: var(--text-2); }
.inq-check { display: flex; align-items: flex-start; gap: var(--spacing-100); min-height: 44px; color: var(--text-2); }
.inq-check input { flex: none; width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--brand-ink); }
.inq-check a { color: var(--brand-ink); font-weight: 600; }
.inq-msg { margin: 0; padding: var(--spacing-100) var(--spacing-200); border-radius: var(--radius-xl); border: 1px solid var(--danger); background: var(--danger-bg); color: var(--danger); }
.inq-send { align-self: flex-start; min-width: 8em; }
.inq-send[disabled] { opacity: .6; cursor: progress; }
.inq-done { display: none; }
.inq-done:target, .inq-done.is-shown { display: flex; flex-direction: column; align-items: flex-start; gap: var(--spacing-100); outline: none; }
.inq-done:target + .inq-form, .inq-done.is-shown + .inq-form { display: none; }
.inq-done > p { margin: 0; }
.inq-done-title { display: flex; align-items: center; gap: var(--spacing-75); color: var(--success); }
.inq-hp { display: none !important; }
/* D152: variant 跳出視窗 (v-dialog). The form takes no room on the page: a link to #inquiry (the site's
   main action, any button) opens it in a dialog (inquiry.js moves it there). Without JavaScript the
   same link shows it in the page (:target), and the answer page of the platform still comes back to
   #inquiry-sent. On phones it is the first block of the 聯絡 tab but shows nothing, so the block
   after it takes the room under the top bar. */
.b-inquiry.v-dialog { display: none; }
.b-inquiry.v-dialog:target, .b-inquiry.v-dialog:has(:target) { display: block; }
.b-inquiry.v-dialog.is-dialog { display: none; }
.inq-dialog { width: min(560px, calc(100% - 2 * var(--spacing-200))); max-height: calc(100vh - 2 * var(--spacing-200)); max-height: calc(100dvh - 2 * var(--spacing-200)); padding: 0; border: 0; border-radius: var(--radius-card); background: var(--surface); color: var(--text); box-shadow: var(--shadow-sheet); overflow: auto; }
.inq-dialog::backdrop { background: var(--scrim); }
.inq-dialog .wrap { padding: var(--spacing-300); }
.inq-dialog .section-head { margin-bottom: var(--spacing-300); padding-right: var(--spacing-600); }
.inq-dialog .inq { max-width: none; padding: 0; border: 0; background: none; }
.inq-close { position: absolute; top: var(--spacing-100); right: var(--spacing-100); display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: var(--radius-full); background: none; color: var(--text); font: inherit; font-size: 1.5rem; line-height: 1; cursor: pointer; }
.inq-close:hover { background: var(--hover-tint); }
.inq-close:focus-visible { outline: 2px solid var(--brand-ink); outline-offset: 2px; }
@media (max-width: 767px) {
  .tabs-on > .b-inquiry.v-dialog.panel-top + .section, .tabbed > .b-inquiry.v-dialog.panel-top + .section { padding-top: calc(var(--topbar-space) + var(--spacing-300)); }
}
@media (max-width: 639px) { .inq { padding: var(--spacing-200); } .inq-send { align-self: stretch; } }

/* ---- extra pages ----------------------------------------------------------------------- */
.page-top { padding-top: calc(var(--topbar-space) + var(--spacing-500)); padding-bottom: 0; }
.page-top + .section { padding-top: var(--spacing-400); }

/* ---- gallery: 輪播 (D154) ------------------------------------------------------------
   One wide slide at a time in a strip that snaps (works without JavaScript:
   swipe, scroll, arrow keys; the next slide peeks in and a thin scroll bar
   shows there is more). With scripting the slide fills the strip and
   carousel.js shows the controls under it: buttons on the page's own
   surface (no text on photos), 44 px, the dot of the shown slide filled and
   larger (not colour alone). Fixed aspect ratios, so nothing moves while
   photos load. */
.gallery.v-carousel .tiles { position: relative; display: flex; gap: var(--spacing-200); overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; margin: 0; padding: 0 0 var(--spacing-100); scroll-padding: 0; scrollbar-width: thin; }
.gallery.v-carousel .tiles::-webkit-scrollbar { display: block; height: 6px; }
.gallery.v-carousel .tiles::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: var(--radius-full); }
.gallery.v-carousel .tiles > .tile { flex: 0 0 calc(100% - var(--spacing-600)); min-width: 0; scroll-snap-align: start; scroll-snap-stop: always; }
.gallery.v-carousel .tile-img { aspect-ratio: 4 / 3; border-radius: var(--radius-xl); background: var(--surface-2); }
.gallery.v-carousel video.tile-img { background: #000000; object-fit: contain; }
.gallery.v-carousel .tiles:focus-visible { outline: 2px solid var(--brand-ink); outline-offset: 2px; }
@media (min-width: 640px) { .gallery.v-carousel .tile-img { aspect-ratio: 3 / 2; } }
@media (min-width: 960px) { .gallery.v-carousel .tile-img { aspect-ratio: 16 / 9; } }
@media (scripting: enabled) {
  .gallery.v-carousel .tiles { padding-bottom: 0; scrollbar-width: none; }
  .gallery.v-carousel .tiles::-webkit-scrollbar { display: none; }
  .gallery.v-carousel .tiles > .tile { flex-basis: 100%; }
}
/* D152: the controls sit on the picture, not under it: previous / next at its sides, the dots (or the
   count) at its foot, pause / play in its corner. .cr-controls is a box of the picture's own shape laid
   over the strip (the caption under the picture stays free); only the buttons take clicks. On any photo
   the buttons are white discs with a shadow and the dots sit in a dark pill, so both stay visible. */
.carousel { position: relative; }
.cr-controls { position: absolute; top: 0; left: 0; right: 0; aspect-ratio: 4 / 3; pointer-events: none; }
@media (min-width: 640px) { .cr-controls { aspect-ratio: 3 / 2; } }
@media (min-width: 960px) { .cr-controls { aspect-ratio: 16 / 9; } }
.cr-controls > * { position: absolute; pointer-events: auto; }
.cr-dots, .cr-count { left: 50%; bottom: var(--spacing-100); transform: translateX(-50%); margin: 0; padding: 0 var(--spacing-100); border-radius: var(--radius-full); background: var(--badge-dark); color: #ffffff; }
.cr-dots { display: none; }
.cr-count { min-height: 28px; display: inline-flex; align-items: center; font-variant-numeric: tabular-nums; }
@media (min-width: 640px) {
  .cr-dots:not(.is-many) { display: flex; }
  .cr-dots:not(.is-many) + .cr-count { display: none; }
}
.cr-dot { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 44px; padding: 0; border: 0; border-radius: var(--radius-full); background: none; cursor: pointer; }
.cr-dot span { width: 8px; height: 8px; border-radius: var(--radius-full); background: rgba(255, 255, 255, .55); transition: transform var(--dur-fade) var(--ease), background-color var(--dur-fade) var(--ease); }
.cr-dot:hover span { background: rgba(255, 255, 255, .8); }
.cr-dot[aria-current="true"] span { background: #ffffff; transform: scale(1.4); }
.cr-btn { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: var(--radius-full); background: var(--glass-strong); color: var(--text); box-shadow: 0 2px 12px rgba(12, 10, 9, .28); cursor: pointer; transition: background-color var(--dur-fade) var(--ease); }
.cr-btn:hover { background: #ffffff; }
.cr-prev, .cr-next { top: 50%; transform: translateY(-50%); }
.cr-prev { left: var(--spacing-100); }
.cr-next { right: var(--spacing-100); }
.cr-play { top: var(--spacing-100); right: var(--spacing-100); }
.cr-btn:focus-visible, .cr-dot:focus-visible { outline: 2px solid #ffffff; outline-offset: 2px; box-shadow: 0 0 0 4px var(--text); }
.cr-play .i-play, .cr-play.is-paused .i-pause { display: none; }
.cr-play.is-paused .i-play { display: block; }

/* ---- 方案比較表 (D154) ----------------------------------------------------------------
   A real table in a box of its own. Phones: the box scrolls sideways (the
   page never does) and the feature column stays put. The 月繳／年繳 switch
   is two radios: with :has() the unchosen prices are hidden; without it the
   switch is not shown and both prices are (stacked). */
.cmp-note { margin-bottom: var(--spacing-300); }
/* position: relative keeps the visually hidden words of the cells (有／沒有) inside the box: absolutely
   positioned, they would otherwise escape it and widen the page on phones. */
.cmp-scroll { --cmp-bg: var(--surface); position: relative; overflow-x: auto; overscroll-behavior-x: contain; border: 1px solid var(--border); border-radius: var(--radius-card); background: var(--cmp-bg); }
.section:nth-of-type(even) .cmp-scroll { --cmp-bg: var(--bg); }
.cmp-scroll:focus-visible { outline: 2px solid var(--brand-ink); outline-offset: 2px; }
.cmp-table { --n: 3; width: 100%; min-width: calc(8rem + var(--n) * 8rem); border-collapse: separate; border-spacing: 0; table-layout: fixed; font-variant-numeric: tabular-nums; }
.cmp-n1 { --n: 1; } .cmp-n2 { --n: 2; } .cmp-n4 { --n: 4; } .cmp-n5 { --n: 5; }
.cmp-table th, .cmp-table td { padding: var(--spacing-100); border-bottom: 1px solid var(--border); text-align: center; vertical-align: middle; }
.cmp-table tbody tr:last-child > * { border-bottom: 0; }
.cmp-table thead th { padding-top: var(--spacing-300); vertical-align: bottom; font-weight: 600; }
.cmp-corner, .cmp-table th[scope="row"] { position: sticky; left: 0; z-index: 1; width: 8rem; background: var(--cmp-bg); box-shadow: 1px 0 0 var(--border); text-align: left; }
.cmp-table th[scope="row"] { font-weight: 500; color: var(--text); }
.cmp-table td { color: var(--text-2); }
.cmp-name { display: block; color: var(--text); }
.cmp-badge { display: inline-block; margin-top: var(--spacing-50); padding: var(--spacing-25) var(--spacing-75); border-radius: var(--radius-full); background: var(--brand-ink); color: var(--on-brand); }
.cmp-desc { display: block; margin-top: var(--spacing-50); color: var(--text-2); font-weight: 400; }
.cmp-table .is-rec { background: var(--surface-2); background: color-mix(in srgb, var(--brand-ink) 7%, var(--cmp-bg)); }
.cmp-table thead .is-rec { box-shadow: inset 0 3px 0 var(--brand-ink); }
.cmp-table .price { margin: 0; color: var(--text); overflow-wrap: normal; }
.cmp-m, .cmp-y { display: block; }
.cmp-table .per { font-size: .875rem; line-height: 1.25rem; font-weight: 400; color: var(--text-2); }
.cmp-yes, .cmp-no { display: inline-flex; vertical-align: middle; }
.cmp-yes .icon { color: var(--brand-ink); }
.cmp-no .icon { color: var(--text-3); }
.cmp-acts .btn { width: 100%; padding-left: var(--spacing-75); padding-right: var(--spacing-75); font-size: .875rem; line-height: 1.25rem; }
@media (min-width: 768px) {
  .cmp-table th, .cmp-table td { padding: var(--spacing-200); }
  .cmp-corner, .cmp-table th[scope="row"] { width: 28%; }
  .cmp-acts .btn { font-size: 1rem; line-height: 1.5rem; }
}
.cmp-period { display: none; position: relative; min-width: 0; margin: 0 0 var(--spacing-300); padding: var(--spacing-25); border: 1px solid var(--border); border-radius: var(--radius-full); background: var(--surface); }
.cmp-radio { position: absolute; width: 1px; height: 1px; margin: 0; opacity: 0; pointer-events: none; }
.cmp-period label { display: inline-flex; align-items: center; gap: var(--spacing-75); min-height: 44px; padding: var(--spacing-75) var(--spacing-200); border-radius: var(--radius-full); color: var(--text-2); font-size: .875rem; line-height: 1.25rem; font-weight: 600; cursor: pointer; transition: background-color var(--dur-fade) var(--ease), color var(--dur-fade) var(--ease); }
.cmp-period label:hover { color: var(--text); }
.cmp-radio:checked + label { background: var(--text); color: var(--bg); }
.cmp-radio:focus-visible + label { outline: 2px solid var(--brand-ink); outline-offset: 2px; }
.cmp-save { padding: 0 var(--spacing-75); border-radius: var(--radius-full); background: var(--success-bg); color: var(--success); }
@supports selector(:has(a)) {
  .cmp-period { display: inline-flex; gap: var(--spacing-25); }
  .cmp:has(.cmp-radio[value="year"]:checked) .cmp-m:not(.cmp-only),
  .cmp:has(.cmp-radio[value="month"]:checked) .cmp-y:not(.cmp-only) { display: none; }
}

/* ---- 主視覺：影片背景 (D156) ------------------------------------------------------------
   The hero's own video behind its text (muted, looping; effects.js starts it). The pause /
   play button is the carousel's (cr-btn cr-play), at the hero's lower right, shown by the script. */
.hero.v-video .hero-film { background: var(--accent); }
.cr-btn.hero-play { position: absolute; z-index: 2; top: auto; right: var(--gutter); bottom: var(--spacing-300); }
.cr-btn.hero-play[hidden] { display: none; }

/* ---- 項目組合 (D156) ---------------------------------------------------------------------
   One list of items, a layout per variant, the shop's style options as classes:
   cols-2/3/4 (電腦上一排幾個), cs-outlined / cs-tinted (卡片), al-center (置中),
   band-tinted / band-brand (區塊底色). Text colours: --text and --text-2 only (AA on
   every background used here); --brand-ink only for icons, large figures and lines
   (3:1 is enough for those), white on the brand band (--brand-ink is 4.6:1 or more
   with white). Links are dark text with a brand-coloured underline, so they stay AA
   on --bg and --surface-2 too, where small brand-coloured text would not. */
.b-cards { --cols: 3; }
.b-cards.v-stats, .b-cards.v-team { --cols: 4; }
.b-cards.v-logos { --cols: 6; }
.b-cards.cols-2 { --cols: 2; }
.b-cards.cols-3 { --cols: 3; }
.b-cards.cols-4 { --cols: 4; }
.ci-note { margin: 0 0 var(--spacing-300); max-width: 680px; }
.ci-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--spacing-300); }
@media (min-width: 640px) { .ci-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 960px) { .ci-grid { grid-template-columns: repeat(var(--cols), minmax(0, 1fr)); } }
.ci { display: flex; flex-direction: column; align-items: flex-start; gap: var(--spacing-75); min-width: 0; }
.ci > * { margin: 0; }
.ci-title { color: var(--text); overflow-wrap: anywhere; }
.ci-label { order: -1; color: var(--text-2); letter-spacing: .04em; }
.ci-text { color: var(--text-2); overflow-wrap: anywhere; }
.ci-icon, .ci-img, .ci-num, .ci-portrait, .ci-figure { order: -2; }
.ci-icon { display: inline-flex; align-items: center; justify-content: center; margin-bottom: var(--spacing-100); color: var(--brand-ink); } /* D180: the mark itself, no tinted tile behind it */
.ci-icon .icon { width: 32px; height: 32px; }
.ci-img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; margin-bottom: var(--spacing-75); border-radius: var(--radius-xl); background: var(--surface-2); }
.ci-link { display: inline-flex; align-items: center; gap: var(--spacing-50); min-height: 44px; margin-top: auto; color: var(--text); text-decoration: underline; text-decoration-color: var(--brand-ink); text-decoration-thickness: 2px; text-underline-offset: 4px; }
.ci-link .icon { width: 16px; height: 16px; color: var(--brand-ink); }
.ci-link:focus-visible, .ci-logo-link:focus-visible, .ci-tab:focus-visible, .ci-panel:focus-visible { outline: 2px solid var(--brand-ink); outline-offset: 2px; }
/* card styles */
.b-cards.cs-outlined .ci-grid > .ci, .b-cards.cs-tinted .ci-grid > .ci { padding: var(--spacing-300); border-radius: var(--radius-card); }
.b-cards.cs-outlined .ci-grid > .ci { border: 1px solid var(--border); background: var(--surface); }
.section.b-cards.cs-outlined:nth-of-type(even) .ci-grid > .ci { background: var(--bg); }
.b-cards.cs-tinted .ci-grid > .ci { background: var(--surface-2); }
/* alignment (the timeline keeps its line on the left) */
.b-cards.al-center .section-head, .b-cards.al-center .ci-note { margin-left: auto; margin-right: auto; align-items: center; text-align: center; }
.b-cards.al-center:not(.v-timeline) .ci { align-items: center; text-align: center; }
.b-cards.al-center .ci-quote figcaption { justify-content: center; }
.b-cards.al-center .ci-tablist { justify-content: center; }
/* bands */
.section.b-cards.band-tinted { background: var(--surface-2); }
.b-cards.band-tinted.cs-tinted .ci-grid > .ci, .section.b-cards.band-tinted.cs-outlined .ci-grid > .ci { background: var(--surface); }
.section.b-cards.band-brand { background: var(--brand-ink); color: #ffffff; }
.band-brand .note, .band-brand .ci-title, .band-brand .ci-text, .band-brand .ci-label, .band-brand .ci-figure, .band-brand .ci-date, .band-brand .ci-name,
.band-brand .ci-role, .band-brand .ci-link, .band-brand .ci-link .icon, .band-brand .ci-logo-name, .band-brand .ci-ba-item figcaption { color: #ffffff; }
.band-brand .ci-link { text-decoration-color: #ffffff; }
.band-brand .ci-icon { color: #ffffff; }
.band-brand .ci-num { background: #ffffff; color: var(--brand-ink); }
.b-cards.band-brand.cs-outlined .ci-grid > .ci { border-color: rgba(255, 255, 255, .6); background: transparent; }
.b-cards.band-brand.cs-tinted .ci-grid > .ci { background: rgba(0, 0, 0, .18); } /* darker than the band: white text only gains contrast */
.band-brand .ph { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .6); }
.band-brand .ci-link:focus-visible, .band-brand .ci-logo-link:focus-visible, .band-brand .ci-tab:focus-visible, .band-brand .ci-panel:focus-visible, .band-brand .mq-pause:focus-visible + .mq-btn { outline-color: #ffffff; }
.band-brand .v-timeline .ci-grid::before, .b-cards.band-brand.v-timeline .ci-grid::before { background: rgba(255, 255, 255, .5); }
.b-cards.band-brand.v-timeline .ci::before { background: var(--brand-ink); border-color: #ffffff; }
.band-brand .ci-tablist { border-bottom-color: rgba(255, 255, 255, .5); }
.band-brand .ci-tab { color: #ffffff; }
.band-brand .ci-tab:hover { background: rgba(255, 255, 255, .14); }
.band-brand .ci-tab[aria-selected="true"] { background: #ffffff; color: var(--brand-ink); }
.band-brand .mq-btn { border-color: rgba(255, 255, 255, .7); background: transparent; color: #ffffff; }
.band-brand .mq-pause:checked + .mq-btn { background: #ffffff; color: var(--brand-ink); border-color: #ffffff; }

/* 數字亮點: two a row on phones; the figure is large type (3:1 is enough for --brand-ink). While
   effects.js counts, the final figure keeps the width (cnt-ghost), so nothing moves. */
.ci-figure { font-family: var(--font-heading); font-size: 2.5rem; line-height: 1.1; font-weight: 600; color: var(--text); font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
@media (max-width: 639px) { .ci-figure { font-size: 2rem; } } /* two a row at 375 px: a 12-character figure may wrap at its space, never inside a number */
@media (min-width: 960px) { .ci-figure { font-size: 3rem; } }
.b-cards.v-stats .ci-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 0; }
/* D180: a ledger, not a row of badges: a rule at the left of each figure, read from the left whatever the block's alignment */
.b-cards.v-stats .ci-grid > .ci, .b-cards.v-stats.al-center:not(.v-timeline) .ci-grid > .ci { align-items: flex-start; text-align: left; padding: var(--spacing-50) var(--spacing-200) var(--spacing-50) var(--spacing-250, 20px); border: 0; border-left: 1px solid var(--border-strong); border-radius: 0; background: none; }
.band-brand.v-stats .ci-grid > .ci { border-left-color: rgba(255, 255, 255, .5); }
@media (min-width: 960px) { .b-cards.v-stats .ci-grid { grid-template-columns: repeat(var(--cols), minmax(0, 1fr)); } }
.cnt-on { display: inline-grid; position: relative; }
.cnt-on > .cnt-ghost, .cnt-on > .cnt-run { grid-area: 1 / 1; }
.cnt-ghost { visibility: hidden; }

/* 客戶見證 */
.ci-quote { display: flex; flex: 1 1 auto; flex-direction: column; gap: var(--spacing-200); width: 100%; margin: 0; }
.ci-quote blockquote { margin: 0; }
/* D180: 客戶見證 as a page of a magazine: the heading at the left, the quotes a list at the right under
   hairlines, each in larger type with 「— name, who」 below. No boxes, no quote mark, no row of three. */
.b-cards.v-quotes .ci-grid { display: block; max-width: 760px; }
.b-cards.v-quotes .ci-grid > .ci, .b-cards.v-quotes.al-center:not(.v-timeline) .ci-grid > .ci { display: block; padding: var(--spacing-300) 0; border: 0; border-top: 1px solid var(--border-strong); border-radius: 0; background: none; text-align: left; }
.b-cards.v-quotes .ci-grid > .ci:last-child { border-bottom: 1px solid var(--border-strong); }
.b-cards.v-quotes .ci-quote { display: block; }
.b-cards.v-quotes .ci-quote .ci-text { font-family: var(--font-heading); font-size: 1.125rem; line-height: 1.75; }
.b-cards.v-quotes .ci-quote figcaption { margin-top: var(--spacing-150, 12px); justify-content: flex-start; }
.b-cards.v-quotes .ci-who { flex-direction: row; flex-wrap: wrap; align-items: baseline; gap: 0 var(--spacing-100); }
.b-cards.v-quotes .ci-who::before { content: "—"; content: "—" / ""; color: var(--text-2); }
.b-cards.v-quotes .ci-face { width: 40px; height: 40px; }
@media (min-width: 960px) {
  .b-cards.v-quotes:not(.ql) .wrap:has(> .section-head) { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); column-gap: var(--spacing-600, 64px); align-items: start; }
  .b-cards.v-quotes:not(.ql) .wrap:has(> .section-head) > .section-head { grid-column: 1; position: sticky; top: 104px; margin: 0; padding-top: var(--spacing-300); align-items: flex-start; text-align: left; }
  .b-cards.v-quotes:not(.ql) .wrap:has(> .section-head) > .ci-note { grid-column: 1; margin: 0; text-align: left; }
  .b-cards.v-quotes:not(.ql) .wrap:has(> .section-head) > .ci-grid { grid-column: 2; grid-row: 1 / span 3; max-width: none; }
  .b-cards.v-quotes .ci-quote .ci-text { font-size: 1.25rem; }
}
.band-brand.v-quotes .ci-grid > .ci, .band-brand.v-quotes .ci-grid > .ci:last-child { border-color: rgba(255, 255, 255, .5); }
.band-brand.v-quotes .ci-who::before { color: #ffffff; }
.ci-quote .ci-text { margin: 0; color: var(--text); }
.ci-quote figcaption { display: flex; align-items: center; gap: var(--spacing-100); margin-top: auto; }
.ci-face { flex: none; width: 48px; height: 48px; border-radius: var(--radius-full); object-fit: cover; background: var(--surface-2); }
.ci-who { display: flex; flex-direction: column; text-align: left; }
.ci-name { color: var(--text); }
.ci-role { color: var(--text-2); }

/* 步驟: the number is the list's own order (aria-hidden: the <ol> says it already). */
.ci-num { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; margin-bottom: var(--spacing-75); border-radius: var(--radius-full); background: var(--brand-ink); color: var(--on-brand); font-weight: 700; font-variant-numeric: tabular-nums; }

/* Logo 牆: every logo in a box of the same height (no shift while they load). */
.ci-logos { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--spacing-200); align-items: center; }
@media (min-width: 640px) { .ci-logos { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 960px) { .ci-logos { grid-template-columns: repeat(var(--cols), minmax(0, 1fr)); } }
.ci-logos > .ci { align-items: center; justify-content: center; min-height: 72px; }
.ci-logo { display: block; width: 100%; height: 56px; object-fit: contain; }
.ci-logo-link { display: flex; align-items: center; justify-content: center; width: 100%; min-height: 56px; border-radius: var(--radius-lg); }
.ci-logo-name { display: block; width: 100%; padding: var(--spacing-100); border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); color: var(--text); font-weight: 600; text-align: center; overflow-wrap: anywhere; }
.band-brand .ci-logo-name { background: none; border-color: rgba(255, 255, 255, .6); }
/* The marquee (CSS only). Two copies of the row slide left; the second is aria-hidden and out of the
   tab order. The checkbox before them is the pause control (WCAG 2.2.2); the pointer and the
   keyboard focus pause it too. Under reduced motion: the plain row, no copy, no control. */
.ci-marquee { position: relative; }
.mq-pause { position: absolute; width: 1px; height: 1px; margin: 0; opacity: 0; pointer-events: none; }
.mq-btn { display: inline-flex; align-items: center; gap: var(--spacing-75); min-height: 44px; margin-bottom: var(--spacing-200); padding: 0 var(--spacing-200); border: 1px solid var(--border-strong); border-radius: var(--radius-full); background: var(--surface); color: var(--text); cursor: pointer; }
.mq-btn .icon { width: 16px; height: 16px; }
.mq-btn .i-play, .mq-pause:checked + .mq-btn .i-pause { display: none; }
.mq-pause:checked + .mq-btn .i-play { display: block; }
.mq-pause:checked + .mq-btn { background: var(--text); border-color: var(--text); color: var(--bg); }
.mq-pause:focus-visible + .mq-btn { outline: 2px solid var(--brand-ink); outline-offset: 2px; }
.mq-view { overflow: hidden; container-type: inline-size; }
.mq-copy { display: none; }
@media (prefers-reduced-motion: no-preference) {
  .mq-track { display: flex; width: max-content; animation: mq-slide 40s linear infinite; }
  .mq-m .mq-track { animation-duration: 60s; }
  .mq-l .mq-track { animation-duration: 90s; }
  .mq-track > .ci-logos { display: flex; flex: none; justify-content: space-around; gap: var(--spacing-400); min-width: 100cqw; padding-right: var(--spacing-400); }
  .mq-track > .ci-logos > .ci { flex: none; width: 140px; }
  .ci-marquee:hover .mq-track, .ci-marquee:focus-within .mq-track, .mq-pause:checked ~ .mq-view .mq-track { animation-play-state: paused; }
}
@media (prefers-reduced-motion: reduce) { .mq-btn { display: none; } }
@keyframes mq-slide { to { transform: translateX(-50%); } }

/* 時間軸: one line on the left, a dot per event. */
.b-cards.v-timeline .ci-grid { position: relative; grid-template-columns: minmax(0, 1fr); gap: var(--spacing-400); max-width: 760px; padding-left: var(--spacing-400); }
.b-cards.v-timeline .ci-grid::before { content: ""; position: absolute; top: 8px; bottom: 8px; left: 7px; width: 2px; background: var(--border-strong); }
.b-cards.v-timeline .ci { position: relative; }
.b-cards.v-timeline .ci::before { content: ""; position: absolute; top: 4px; left: calc(-1 * var(--spacing-400) + 1px); width: 14px; height: 14px; box-sizing: border-box; border: 3px solid var(--brand-ink); border-radius: var(--radius-full); background: var(--surface); }
.b-cards.cs-outlined.v-timeline .ci::before, .b-cards.cs-tinted.v-timeline .ci::before { top: var(--spacing-300); }
.ci-date { color: var(--text-2); font-variant-numeric: tabular-nums; }
.b-cards.v-timeline .ci-img { max-width: 480px; order: 0; margin: var(--spacing-75) 0 0; }

/* 團隊: portrait cards, two a row on phones; without a photo the name's first letter (.ph). */
.ci-portrait { display: flex; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; margin-bottom: var(--spacing-75); border-radius: var(--radius-xl); background: var(--surface-2); }
.ci-portrait.ph { width: 96px; aspect-ratio: 1; border-radius: var(--radius-full); font-size: 2rem; line-height: 1; } /* no photo: a small round initial (.ph: --brand-ink on a light tint of the brand) */
.b-cards.v-team .ci-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--spacing-300) var(--spacing-200); }
@media (min-width: 960px) { .b-cards.v-team .ci-grid { grid-template-columns: repeat(var(--cols), minmax(0, 1fr)); gap: var(--spacing-300); } }

/* 頁籤: without JavaScript the panels stand one after another under their titles; with it
   (.tabs-on) the tab list shows and one panel at a time (effects.js). */
.ci-tabs { max-width: 960px; }
.b-cards.al-center .ci-tabs { margin-left: auto; margin-right: auto; }
.ci-tablist { display: flex; gap: var(--spacing-50); overflow-x: auto; margin: 0 0 var(--spacing-300); padding: var(--spacing-25) var(--spacing-25) var(--spacing-100); border-bottom: 1px solid var(--border); scrollbar-width: thin; }
.ci-tablist[hidden] { display: none; }
.ci-tab { flex: none; min-height: 44px; padding: var(--spacing-75) var(--spacing-200); border: 0; border-radius: var(--radius-full); background: none; color: var(--text-2); font: inherit; font-size: .875rem; line-height: 1.25rem; font-weight: 600; cursor: pointer; transition: background-color var(--dur-fade) var(--ease), color var(--dur-fade) var(--ease); }
.ci-tab:hover { background: var(--hover-tint); color: var(--text); }
.ci-tab[aria-selected="true"] { background: var(--text); color: var(--bg); }
.ci-panel { display: grid; gap: var(--spacing-200); align-items: start; border-radius: var(--radius-lg); }
.ci-panel[hidden] { display: none; }
.ci-panel > * { margin: 0; }
.ci-panel + .ci-panel { margin-top: var(--spacing-500); }
.ci-panel .ci-img { margin: 0; }
.ci-panel-body { display: flex; flex-direction: column; align-items: flex-start; gap: var(--spacing-100); }
.ci-panel-body > * { margin: 0; }
.ci-panel-title { color: var(--text); }
.b-cards.al-center .ci-panel-body { align-items: center; text-align: center; }
@media (min-width: 768px) {
  .ci-panel.has-img { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: var(--spacing-500); align-items: center; }
  .ci-panel.has-img > .ci-panel-title { grid-column: 1 / -1; }
}
.tabs-on .ci-panel + .ci-panel { margin-top: 0; }
.tabs-on .ci-panel-title { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.tabs-on .ci-panel { position: relative; }

/* 前後對比: side by side without JavaScript; with it (.ba-on) one picture over the other, the
   first clipped at the divider (--pos, set by effects.js from the range input that covers the
   picture: drag anywhere, or the arrow keys). The knob shows the keyboard focus. */
.ci-ba { position: relative; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--spacing-200); max-width: 960px; }
.b-cards.al-center .ci-ba { margin-left: auto; margin-right: auto; }
.ci-ba-item { display: flex; flex-direction: column; gap: var(--spacing-75); margin: 0; }
.ci-ba-img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius-xl); background: var(--surface-2); }
.ci-ba-item figcaption { color: var(--text-2); }
.ci-ba-handle { display: none; }
.ci-ba-range[hidden] { display: none; }
.ci-ba.ba-on { --pos: 50%; display: block; aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--radius-xl); background: var(--surface-2); }
.ba-on .ci-ba-item { position: absolute; inset: 0; }
.ba-on .ci-ba-img { height: 100%; aspect-ratio: auto; border-radius: 0; }
.ba-on .ci-ba-before { z-index: 1; clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.ba-on .ci-ba-item figcaption { position: absolute; top: var(--spacing-100); max-width: calc(50% - var(--spacing-200)); padding: var(--spacing-25) var(--spacing-100); border-radius: var(--radius-full); background: var(--badge-dark); color: #ffffff; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ba-on .ci-ba-before figcaption { left: var(--spacing-100); }
.ba-on .ci-ba-after figcaption { right: var(--spacing-100); }
.ci-ba.ba-on::after { content: ""; position: absolute; z-index: 2; top: 0; bottom: 0; left: var(--pos); width: 2px; margin-left: -1px; background: #ffffff; box-shadow: 0 0 0 1px rgba(12, 10, 9, .25); pointer-events: none; }
.ba-on .ci-ba-handle { position: absolute; z-index: 3; top: 50%; left: var(--pos); display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: var(--radius-full); background: var(--glass-strong); color: var(--text); box-shadow: 0 2px 12px rgba(12, 10, 9, .28); transform: translate(-50%, -50%); pointer-events: none; }
.ba-on .ci-ba-handle .icon { width: 16px; height: 16px; }
.ci-ba-range { position: absolute; z-index: 4; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; touch-action: pan-y; }
.ci-ba-range:focus-visible + .ci-ba-handle { outline: 2px solid #ffffff; outline-offset: 2px; box-shadow: 0 0 0 4px var(--text); }

/* ---- 小標 (D163) ------------------------------------------------------------------------
   The eyebrow the shop typed over a title (style.css's .eyebrow). In the standard look it is small
   and quiet: --text-2 (the brand ink on --bg is just under 4.5:1 for 12 px words); white over the
   photo heroes, where the hero's own text is white. The 清爽 look turns it into the large label
   beside the title (below). */
.section-head > .eyebrow, .it-text > .eyebrow, .hero.v-split .hero-text > .eyebrow { color: var(--text-2); }
.hero-text > .eyebrow { color: #ffffff; }

/* ==== D163: what was the private template 夜明曲工作室 ====================================
   Public variants (hero airy, statement mark, items plans, buttons band / phone-only, image_text
   band / panel) and the look 清爽 (theme.look = clean: <body class="look-clean">). The order and
   the selectors follow that template's CSS, so the cascade is the same; a look rule is the old
   rule behind :where(.look-clean), which adds no specificity. Colours come from the shop: the
   look's page colours are computed in render.js (lookColors) from its brand and accent; the dark
   bands are the accent, kept dark enough for white text (--deep); the light panels are the brand
   colour at 12 % on white. The footer's tokens (--surface-2, --text-2, --text-3) are untouched. */
body { --deep: var(--brand-ink); }
@supports (color: oklch(from red l c h)) { body { --deep: oklch(from var(--accent) min(l, .4) c h); } } /* the accent, never lighter than L 0.4: white on it 8:1 or more */
.look-clean { --radius-card: calc(var(--radius-2xl) * 1.25); } /* a little rounder than the 圓角 option says (20 px for the standard 16 px) */
:where(.look-clean) h1, :where(.look-clean) h2, :where(.look-clean) h3 { letter-spacing: -.02em; }
:where(.look-clean) .btn-primary, :where(.look-clean) .btn-small { background: var(--accent); } /* white on --accent: 4.5:1 or more (accentInk: the look is a theme option) */
:where(.look-clean) .btn-primary:hover, :where(.look-clean) .btn-small:hover { background: var(--brand-ink); }
:where(.look-clean) .chip.is-active { background: var(--accent); border-color: var(--accent); color: #ffffff; }

/* ---- hero airy: the picture fills the hero and fades into the page on the side of the text ---- */
.hero.v-airy { background: var(--surface); color: var(--text); align-items: center; }
/* The picture takes the right 58 % (so an upright illustration is not cropped to a strip) and its left edge fades into the page. */
.hero.v-airy .hero-img { left: auto; right: 0; width: 58%; object-position: center 20%; }
.hero.v-airy .hero-scrim { background: linear-gradient(90deg, #ffffff 0%, #ffffff 42%, rgba(255, 255, 255, .7) 52%, rgba(255, 255, 255, 0) 68%); background: linear-gradient(90deg, var(--surface) 0%, var(--surface) 42%, color-mix(in srgb, var(--surface) 70%, transparent) 52%, transparent 68%); }
.hero.v-airy .hero-text { padding-bottom: var(--spacing-600); gap: var(--spacing-300); }
.hero.v-airy .hero-text > * { max-width: 480px; }
.hero.v-airy .hero-text > .eyebrow { font-size: .6875rem; line-height: 1rem; font-weight: 500; letter-spacing: .18em; color: var(--text-2); color: color-mix(in srgb, color-mix(in srgb, var(--text) 80%, var(--brand-ink)) 78%, var(--surface)); }
.hero.v-airy .hero-title { background: none; -webkit-background-clip: border-box; background-clip: border-box; color: var(--text); font-size: 2.125rem; line-height: 1.2; letter-spacing: -.025em; padding: 0; }
.hero.v-airy .tagline { color: var(--brand-ink); font-weight: 400; }
.hero.v-airy .lead { color: var(--text-2); color: color-mix(in srgb, var(--text) 82%, var(--surface)); }
.hero.v-airy .btn:focus-visible { outline-color: var(--brand-ink); }
@media (min-width: 960px) { .hero.v-airy .hero-title { font-size: 2.75rem; } }
@media (max-width: 767px) {
  .hero.v-airy { align-items: flex-end; }
  .hero.v-airy .hero-img { left: 0; width: 100%; height: 62%; object-position: center top; }
  .hero.v-airy .hero-scrim { background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0) 26%, rgba(255, 255, 255, .92) 50%, #ffffff 60%); background: linear-gradient(180deg, transparent 0%, transparent 26%, color-mix(in srgb, var(--surface) 92%, transparent) 50%, var(--surface) 60%); }
  .hero.v-airy .hero-text { padding-bottom: var(--spacing-400); gap: var(--spacing-200); }
}

/* ---- statement mark: centred, under a ✦ (a decoration: no words for screen readers) ---- */
.statement.v-mark .wrap::before { content: ""; display: block; width: 40px; height: 2px; margin: 0 auto var(--spacing-300); background: var(--brand); } /* D182: a short rule, not a star */
.statement.v-mark .statement-text { max-width: 820px; margin: 0 auto; text-align: center; font-weight: 500; letter-spacing: -.02em; }

/* ---- 清爽: section titles. The 小標 large, the title beside it small, a hairline under both ---- */
:where(.look-clean) .section-head { max-width: none; flex-direction: row; flex-wrap: wrap; align-items: baseline; gap: var(--spacing-50) var(--spacing-200); padding-bottom: var(--spacing-200); border-bottom: 1px solid var(--border); }
:where(.look-clean) .section-head > .eyebrow { font-size: 1.5rem; line-height: 2rem; font-weight: 600; letter-spacing: -.025em; color: var(--text); }
:where(.look-clean) .section-head > .eyebrow + .heading-4 { font-size: 1rem; line-height: 1.5rem; font-weight: 400; letter-spacing: 0; color: var(--text-2); }
:where(.look-clean) .section-head .note { flex-basis: 100%; }
:where(.look-clean) .about.v-centered .section-head { justify-content: center; }
/* D171: the other centred layouts too (the head is a row here, so align-items alone left the title at the left over centred buttons / text / items). */
:where(.look-clean) .b-buttons.v-center .section-head, :where(.look-clean) .b-text.v-centered .section-head, :where(.look-clean) .b-cards.al-center .section-head { justify-content: center; }
:where(.look-clean) .about.v-centered .about-grid .body { font-size: 1.125rem; line-height: 1.875rem; }

/* ---- 清爽: image + text numbered (01, 02…), the picture lifted off the page, ✦ bullets ---- */
:where(.look-clean) main { counter-reset: feat; }
:where(.look-clean) .b-image-text:not(.v-band):not(.v-panel) { counter-increment: feat; }
:where(.look-clean) .b-image-text:not(.v-band):not(.v-panel) .it-text::before { content: counter(feat, decimal-leading-zero) "  ——"; content: counter(feat, decimal-leading-zero) "  ——" / ""; font-size: .75rem; line-height: 1rem; font-weight: 600; letter-spacing: .18em; color: var(--brand-ink); }
:where(.look-clean) .b-image-text .it-img { border-radius: var(--radius-card); box-shadow: 0 24px 60px rgba(12, 10, 9, .1); box-shadow: 0 24px 60px color-mix(in srgb, var(--accent) 12%, transparent); }
:where(.look-clean) .b-image-text .rt ul { list-style: none; padding-left: 0; }
:where(.look-clean) .b-image-text .rt li { position: relative; padding-left: 1.5em; }
:where(.look-clean) .b-image-text .rt li::before { content: "✦"; content: "✦" / ""; position: absolute; left: 0; top: .1em; font-size: .75em; color: var(--brand); }

/* ---- 清爽: 服務與價目 cards wider than a phone: no box, a rounded picture, the category as a pill, the price over a hairline ---- */
:where(.look-clean) .items .cat { align-self: flex-start; padding: var(--spacing-25) var(--spacing-100); border: 1px solid var(--border); border-radius: var(--radius-full); background: var(--surface); color: var(--text-2); letter-spacing: 0; font-weight: 500; }
:where(.look-clean) .items .card-foot { border-top: 1px solid var(--border); padding-top: var(--spacing-200); }
@media (min-width: 640px) {
  :where(.look-clean) .items .grid > .card { background: transparent; border-color: transparent; }
  :where(.look-clean) .items .card-img { border-radius: var(--radius-xl); }
  :where(.look-clean) .items .price { font-size: 1.5rem; line-height: 2rem; letter-spacing: -.02em; }
  :where(.look-clean) .items .grid > .card:hover { transform: none; }
  :where(.look-clean) .items .grid > .card .card-img { transition: transform var(--dur-move) var(--ease); }
  :where(.look-clean) .items .grid > .card:hover .card-img { transform: translateY(-4px); }
  :where(.look-clean) .items .card-body { padding: var(--spacing-200) 0 0; }
}

/* ---- 清爽: gallery tiles; 常見問題 as lines (no boxes); with 兩欄, two columns of lines ---- */
:where(.look-clean) .tile-img { border-radius: var(--radius-card); }
:where(.look-clean) .section.faq .faq-list { gap: 0; }
@media (min-width: 960px) { :where(.look-clean) .section.faq.v-two-col .faq-list { column-gap: var(--spacing-600); } }
:where(.look-clean) .section.faq details { background: none; border-width: 1px 0 0; border-style: solid; border-color: var(--border); border-radius: 0; padding: 0; margin-bottom: -1px; border-bottom: 1px solid var(--border); }
:where(.look-clean) .section.faq summary { min-height: 64px; transition: padding var(--dur-fade) var(--ease); }
:where(.look-clean) .section.faq summary:hover { padding-left: var(--spacing-75); }

/* ---- buttons band: the closing call on the dark accent ---- */
.b-buttons.v-band, .section.b-buttons.v-band:nth-of-type(even) { background: var(--deep); color: #ffffff; padding: var(--spacing-800) 0; text-align: center; }
.b-buttons.v-band .section-head { justify-content: center; margin-left: auto; margin-right: auto; border: 0; padding: 0; }
.b-buttons.v-band .section-head .heading-4, .b-buttons.v-band .section-head > .eyebrow { color: #ffffff; }
.b-buttons.v-band .wrap::before { content: ""; display: block; width: 40px; height: 2px; margin: 0 auto var(--spacing-200); background: var(--brand); }
.b-buttons.v-band .btn-row { justify-content: center; }
.b-buttons.v-band .btn-primary { background: #ffffff; color: var(--deep); }
.b-buttons.v-band .btn-primary:hover { background: var(--surface-2); background: color-mix(in srgb, var(--brand) 12%, #ffffff); color: var(--deep); }
.b-buttons.v-band .btn-outline { background: transparent; border-color: rgba(255, 255, 255, .6); color: #ffffff; }
.b-buttons.v-band .btn-outline:hover { border-color: #ffffff; }
.b-buttons.v-band .btn:focus-visible { outline-color: #ffffff; }

/* ---- items plans: pricing columns. The rows are a row of equal columns (name, price, what is in it
   line by line, the button at the bottom); the one whose category is 推薦 is outlined in the dark
   accent with a filled label; rows of the category 加購 are wide, quieter cards under them; the
   category 方案 is not shown. No pictures, no category filter (the categories only say which kind
   of card a row is). ---- */
.items.v-plans .chips, .items.v-plans .card-img { display: none; }
.items.v-plans .grid > .card { display: flex; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-card); }
.items.v-plans .grid > .card:hover { transform: none; border-color: var(--border-strong); }
.items.v-plans .grid > .card > .card-body { gap: var(--spacing-100); padding: var(--spacing-300); }
.items.v-plans .card-foot { display: contents; }
.items.v-plans .cat { order: 0; }
.items.v-plans .card h3 { order: 1; font-size: 1.25rem; line-height: 1.75rem; font-weight: 600; }
.items.v-plans .price { order: 2; font-size: 2rem; line-height: 2.5rem; letter-spacing: -.03em; padding-bottom: var(--spacing-200); border-bottom: 1px solid var(--border); }
.items.v-plans .desc { order: 3; line-height: 1.75rem; color: var(--text); }
.items.v-plans .desc.clamp { display: block; overflow: visible; -webkit-line-clamp: unset; } /* the list is the point: never folded on phones */
.items.v-plans .more-btn { display: none; }
.items.v-plans .card .btn { order: 4; margin-top: auto; align-self: stretch; }
.items.v-plans .card[data-category="方案"] .cat { visibility: hidden; }
.items.v-plans .card[data-category="推薦"] { border-color: var(--deep); box-shadow: 0 16px 40px rgba(12, 10, 9, .1); box-shadow: 0 16px 40px color-mix(in srgb, var(--deep) 12%, transparent); }
.items.v-plans .card[data-category="推薦"] .cat { background: var(--deep); border-color: var(--deep); color: #ffffff; }
/* D171: a label, not a bar across the column, in the standard look too (清爽 gives every .cat this shape). */
.items.v-plans .card[data-category="推薦"] .cat { align-self: flex-start; padding: var(--spacing-25) var(--spacing-100); border-radius: var(--radius-full); }
.items.v-plans .card[data-category="加購"] { background: transparent; }
.items.v-plans .card[data-category="加購"] .price { font-size: 1.125rem; line-height: 1.75rem; letter-spacing: 0; border: 0; padding: 0; color: var(--text-2); }
.items.v-plans .card[data-category="加購"] .btn { background: transparent; color: var(--text); border-color: var(--border-strong); align-self: flex-start; }
.items.v-plans .card[data-category="加購"] .btn:hover { border-color: var(--text); }
@media (min-width: 640px) { .items.v-plans .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--spacing-200); } .items.v-plans .card-body { padding: var(--spacing-300); } }
@media (min-width: 1024px) { .items.v-plans .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } .items.v-plans .card[data-category="加購"] { grid-column: span 2; } }

/* ---- hero airy: the full height of the screen (on phones less the tab bar); the top bar comes in
   once the page is scrolled. Only on the page with this hero, only where scroll-driven animations
   exist and the visitor has not asked for reduced motion (elsewhere the bar is simply always there). ---- */
.hero.v-airy { min-height: 100vh; min-height: 100svh; }
@media (max-width: 767px) { .hero.v-airy { min-height: calc(100svh - var(--sticky-h)); } } /* the tab bar covers the bottom of the screen */
@keyframes mm-bar-in { from { opacity: 0; visibility: hidden; } to { opacity: 1; visibility: visible; } }
@supports (animation-timeline: scroll()) {
  @media (prefers-reduced-motion: no-preference) {
    body:has(.hero.v-airy) .topbar { animation: mm-bar-in linear both; animation-timeline: scroll(root block); animation-range: 24px 200px; }
    body:has(.hero.v-airy) .nav-check:checked ~ .topbar { animation: none; }
  }
}

/* ---- 清爽: image + text, larger type ---- */
:where(.look-clean) .b-image-text .rt .body-3, :where(.look-clean) .b-image-text .rt li { font-size: 1.0625rem; line-height: 1.75rem; }
:where(.look-clean) .b-image-text .rt li { color: var(--text); }
@media (min-width: 960px) { :where(.look-clean) .b-image-text .heading-4 { font-size: 2.25rem; line-height: 2.75rem; } :where(.look-clean) .b-image-text .it-grid.has-img { gap: var(--spacing-800); } }

/* ---- image_text band: the dark accent, white words, the picture on the right and larger (not numbered) ---- */
.b-image-text.v-band, .section.b-image-text.v-band:nth-of-type(even) { background: var(--deep); color: #ffffff; }
.b-image-text.v-band .heading-4, .b-image-text.v-band .rt strong, .b-image-text.v-band .rt li, .b-image-text.v-band .it-text > .eyebrow { color: #ffffff; }
.b-image-text.v-band .rt, .b-image-text.v-band .rt a { color: #ffffff; }
@supports (color: oklch(from red l c h)) { .b-image-text.v-band .rt { color: color-mix(in srgb, #ffffff 84%, var(--deep)); } } /* 7:1 or more on --deep (only where --deep is the clamped accent) */
.b-image-text.v-band .it-img { box-shadow: 0 24px 60px rgba(0, 0, 0, .35); }
.b-image-text.v-band .btn-primary { background: #ffffff; color: var(--deep); }
.b-image-text.v-band .btn:focus-visible, .b-image-text.v-band .rt a:focus-visible { outline-color: #ffffff; }
@media (min-width: 768px) { .b-image-text.v-band .it-grid.has-img { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); } .b-image-text.v-band .it-img { order: 2; } }
/* ---- image_text panel: in a light panel of the brand colour, the picture on the right (not numbered) ---- */
.b-image-text.v-panel .it-grid { padding: var(--spacing-300); border-radius: calc(var(--radius-card) + 8px); background: var(--surface-2); background: color-mix(in srgb, var(--brand) 12%, #ffffff); }
.b-image-text.v-panel .it-img { box-shadow: none; }
.b-image-text.v-panel .rt a { color: var(--text); text-decoration-color: var(--brand-ink); text-decoration-thickness: 2px; } /* small brand-coloured words are under 4.5:1 on the panel */
@media (min-width: 768px) { .b-image-text.v-panel .it-grid { padding: var(--spacing-700); } .b-image-text.v-panel .it-img { order: 2; } }

/* ---- buttons phone-only: only on phones (e.g. the last thing of the 首頁 tab: on to the plans) ---- */
.b-buttons.v-phone-only { display: none; }
@media (max-width: 767px) { .b-buttons.v-phone-only { display: block; padding-top: 0; } .b-buttons.v-phone-only .btn { flex: 1 1 auto; min-height: 52px; } }

/* ---- 清爽: the floating main action stays visible over the dark bands (a light ring; nothing else of it changes) ---- */
@media (min-width: 960px) { :where(.look-clean) .sticky-cta .btn { box-shadow: 0 0 0 1px rgba(255, 255, 255, .5), 0 8px 24px rgba(12, 10, 9, .16); box-shadow: 0 0 0 1px rgba(255, 255, 255, .5), 0 8px 24px color-mix(in srgb, var(--accent) 20%, transparent); } }

/* ---- 清爽: 項目組合 (D156): light brand panels, larger type, the item's 小標 as the price line, the link
   as a pill, light step numbers. The default layout (圖示特色格) has no v- class. ---- */
:where(.look-clean) .b-cards.cs-tinted .ci-grid > .ci { background: var(--surface-2); background: color-mix(in srgb, var(--brand) 12%, #ffffff); }
:where(.look-clean) .b-cards .ci-grid { gap: var(--spacing-300); }
:where(.look-clean) .b-cards .ci-title { font-size: 1.375rem; line-height: 2rem; font-weight: 600; }
:where(.look-clean) .b-cards .ci-text { font-size: 1rem; line-height: 1.75rem; color: var(--text-2); color: color-mix(in srgb, var(--text) 82%, var(--surface)); }
:where(.look-clean) .b-cards:not([class*="v-"]) .ci-icon { color: var(--brand-ink); background: var(--surface); }
:where(.look-clean) .b-cards:not([class*="v-"]) .ci-label { font-size: 1.125rem; line-height: 1.75rem; font-weight: 600; letter-spacing: -.01em; color: var(--text); }
:where(.look-clean) .b-cards .ci-link { align-self: flex-start; display: inline-flex; align-items: center; min-height: 44px; padding: 0 var(--spacing-200); border-radius: var(--radius-full); background: var(--surface); color: var(--text); font-weight: 600; text-decoration: none; }
:where(.look-clean) .b-cards.v-steps .ci-num { width: auto; height: auto; border: 0; background: none; justify-content: flex-start; font-size: 3rem; line-height: 1; font-weight: 300; letter-spacing: -.04em; color: var(--brand-ink); }

/* ==== D175: 對齊 置中 (theme.align = center: <body class="align-center">) ===========================
   Every section's head (小標, title, note), the hero's text, the statement, rich text, the about text,
   the notice, the button rows and the footer are centred. What is read line by line keeps its left
   edge (lists, tables, FAQ answers, form fields, the items' cards, timeline and tab panels) but its box
   is centred, so nothing sits at the left of the column under a centred title. Centred paragraphs stop
   at 38em, so their lines stay short; a list is a box as wide as its longest line, centred, its lines
   left. A grid with fewer items than columns is centred (auto-fit: the empty columns collapse). */
.align-center .section-head { margin-left: auto; margin-right: auto; align-items: center; text-align: center; }
.align-center .section-head .note, .align-center .ci-note, .align-center .cmp-note { max-width: 38em; margin-left: auto; margin-right: auto; text-align: center; }
.align-center .inq-dialog .section-head { padding-left: var(--spacing-600); }
/* 清爽: the head is a stack (the large 小標, the title under it), a short brand-coloured line under them instead of the hairline across the page. */
.align-center.look-clean .section-head { max-width: 680px; flex-direction: column; flex-wrap: nowrap; align-items: center; justify-content: flex-start; gap: var(--spacing-75); padding-bottom: 0; border-bottom: 0; }
.align-center.look-clean .section-head::after { content: ""; order: 1; flex: none; width: 40px; height: 2px; margin-top: var(--spacing-75); border-radius: var(--radius-full); background: var(--brand); }
.align-center.look-clean .section-head .note { order: 2; flex-basis: auto; }
.align-center.look-clean .b-buttons.v-band .section-head::after, .align-center.look-clean .inq-dialog .section-head::after { display: none; }

/* hero: the text centred over the picture; 照片在旁邊: centred in its half; 淡入頁面: the picture behind the whole hero, faded evenly */
.align-center .hero-text { align-items: center; text-align: center; }
.align-center .hero-text > .lead { max-width: 38em; }
@media (min-width: 768px) { .align-center .hero.v-split .hero-text { padding-left: var(--spacing-600); padding-right: var(--spacing-600); } }
@media (min-width: 768px) {
  .align-center .hero.v-airy .hero-img { left: 0; width: 100%; }
  .align-center .hero.v-airy .hero-scrim { background: rgba(255, 255, 255, .8); background: radial-gradient(ellipse 60% 70% at 50% 55%, color-mix(in srgb, var(--surface) 92%, transparent) 0%, color-mix(in srgb, var(--surface) 80%, transparent) 60%, color-mix(in srgb, var(--surface) 55%, transparent) 100%); }
}

/* statement, rich text, about, notice, buttons, video caption, image + text without a picture */
.align-center .statement-text { margin-left: auto; margin-right: auto; text-align: center; }
.align-center .b-text .rt, .align-center .b-image-text .it-grid:not(.has-img) .it-text { margin-left: auto; margin-right: auto; text-align: center; }
.align-center .b-image-text .it-grid:not(.has-img) .it-text { max-width: 680px; align-items: center; }
.align-center .b-text .rt p, .align-center .b-image-text .it-grid:not(.has-img) .rt p { max-width: 38em; margin-left: auto; margin-right: auto; }
.align-center .b-text .rt ul, .align-center .b-image-text .it-grid:not(.has-img) .rt ul { width: fit-content; max-width: 100%; margin-left: auto; margin-right: auto; text-align: left; }
.align-center .about .about-grid { justify-items: center; }
.align-center .about .body { max-width: 38em; text-align: center; }
.align-center .about .more-btn { justify-self: center; align-self: center; }
.align-center .notice-box { justify-content: center; text-align: center; }
.align-center .notice-box > p { flex: 0 1 auto; }
.align-center .b-buttons .btn-row { justify-content: center; }
.align-center .video-caption, .align-center .tile figcaption { text-align: center; }

/* 項目組合: the text of features, stats, quotes, steps, team and logos centred (as with their own 置中); the
   timeline keeps its line on the left and the tab panels their left edge, in a centred box */
.align-center .b-cards:not(.v-timeline) .ci { align-items: center; text-align: center; }
.align-center .b-cards .ci-quote figcaption { justify-content: center; }
.align-center .b-cards .ci-who:only-child { text-align: center; } /* no photo beside the name: the name centred too */
.align-center .b-cards .ci-link { align-self: center; }
.align-center .b-cards.v-timeline .ci-link { align-self: flex-start; }
.align-center .b-cards.v-timeline .ci-grid, .align-center .ci-tabs, .align-center .ci-ba { margin-left: auto; margin-right: auto; }
.align-center .ci-tablist > :first-child, .align-center .chips > :first-child { margin-left: auto; }
.align-center .ci-tablist > :last-child, .align-center .chips > :last-child { margin-right: auto; }
/* Grids of cards: a row that is not full (fewer items than columns, or the last row) is centred. The cards
   are --per a row (the width less the gaps), in a wrapping flex row; 定價欄 stays a grid (its 加購 cards span
   two columns) whose empty columns collapse (auto-fit). --per / --gap per layout and width, all at the same
   (low) specificity, in source order. */
.align-center .wrap > .ci-grid, .align-center .items:not(.v-list):not(.v-plans) .grid, .align-center .products .pgrid { display: flex; flex-wrap: wrap; justify-content: center; column-gap: var(--gap); }
.align-center .wrap > .ci-grid > .ci, .align-center .items:not(.v-list):not(.v-plans) .grid > .card, .align-center .products .pgrid > .pcard { flex: 0 0 calc((100% - (var(--per) - 1) * var(--gap)) / var(--per) - .1px); }
.align-center .items.v-plans .grid { column-gap: var(--gap); grid-template-columns: repeat(auto-fit, calc((100% - (var(--per) - 1) * var(--gap)) / var(--per) - .1px)); justify-content: center; }
.align-center :where(.wrap > .ci-grid, .items .grid, .products .pgrid) { --per: 1; --gap: var(--spacing-300); }
.align-center :where(.v-stats > .wrap > .ci-grid, .v-team > .wrap > .ci-grid) { --per: 2; }
.align-center :where(.v-team > .wrap > .ci-grid, .wrap > .ci-logos, .items.v-plans .grid) { --gap: var(--spacing-200); }
.align-center :where(.wrap > .ci-logos) { --per: 3; }
@media (max-width: 639px) { .align-center :where(.items .grid, .products .pgrid) { --gap: var(--spacing-100); } }
@media (min-width: 640px) {
  .align-center :where(.wrap > .ci-grid, .items .grid, .products .pgrid) { --per: 2; }
  .align-center :where(.wrap > .ci-logos) { --per: 4; }
}
@media (min-width: 960px) {
  .align-center :where(.wrap > .ci-grid, .wrap > .ci-logos) { --per: var(--cols); }
  .align-center :where(.v-team > .wrap > .ci-grid) { --gap: var(--spacing-300); }
  .align-center :where(.items .grid, .products .pgrid) { --per: 3; }
  .align-center :where(.items.v-plans .grid) { --per: 2; }
}
@media (min-width: 1024px) { .align-center :where(.items.v-plans .grid) { --per: 4; } }
.align-center :where(.v-timeline > .wrap > .ci-grid) { --per: 1; }

/* lists, tables and forms: their own left edge, in a centred box */
.align-center .items.v-list .grid, .align-center .faq-list, .align-center .inq { margin-left: auto; margin-right: auto; }
.align-center .products .notice { text-align: center; }
@supports selector(:has(a)) { .align-center .cmp-period { display: flex; width: fit-content; margin-left: auto; margin-right: auto; } }

/* contact: one card alone centred, the links under it centred */
.align-center .contact-grid:has(> :only-child) { grid-template-columns: minmax(0, 560px); justify-content: center; }
.align-center .socials { justify-content: center; }

/* footer and the 404 page */
.align-center .footer-in { grid-template-columns: minmax(0, 1fr); justify-items: center; text-align: center; }
.align-center .footer-logo { margin-left: auto; margin-right: auto; object-position: center; }
.align-center .footer-links ul { justify-content: center; }
.align-center .notfound .wrap { align-items: center; text-align: center; }

/* D180: 客戶見證 on a centred page: the list is read from the left (a centred box on phones); on wide
   screens its heading goes to the left column like everywhere else */
.align-center .b-cards.v-quotes .wrap > .ci-grid { display: block; margin-left: auto; margin-right: auto; }
.align-center .b-cards.v-quotes .wrap > .ci-grid > .ci { text-align: left; }
.align-center .b-cards.v-quotes .ci-quote figcaption { justify-content: flex-start; }
.align-center .b-cards.v-quotes .ci-who:only-child { text-align: left; }
@media (min-width: 960px) {
  .align-center .b-cards.v-quotes:not(.ql) .wrap:has(> .section-head) > .section-head { margin: 0; align-items: flex-start; text-align: left; }
  .align-center .b-cards.v-quotes:not(.ql) .wrap:has(> .section-head) > .section-head > * { margin-left: 0; margin-right: 0; text-align: left; }
}

/* ==== D176: 深色 (theme.look = dark: <body class="look-dark">) =====================================
   The whole page dark with light words. The colours are tokens, computed from the shop's brand and
   accent in render.js (darkColors) and set in the page's own <style>: the page, surfaces, text, borders,
   status colours, the glass of the bars, shadows; --brand-ink is a light colour there, so the filled
   buttons are light with dark words (--on-brand). Only what hard-codes a light colour, or puts white on
   --brand-ink, is changed here; the layout is the standard look's. */
.look-dark { color-scheme: dark; }
.look-dark .btn-primary:hover, .look-dark .btn-small:hover { background: var(--text); color: var(--bg); }
.look-dark .badge-soldout { color: #ffffff; }
.look-dark .cr-btn:hover { background: var(--surface-2); }
/* the ✦ marks were the brand colour, which may be as dark as the page */
.look-dark .statement.v-mark .wrap::before, .look-dark .b-buttons.v-band .wrap::before { background: var(--brand-ink); }
/* 公告 醒目: --brand-ink is light here, so its words are dark */
.look-dark .b-notice.v-highlight .notice-box, .look-dark .b-notice.v-highlight .notice-box .icon, .look-dark .b-notice.v-highlight .notice-link { color: var(--on-brand); }
.look-dark .b-notice.v-highlight .notice-link:focus-visible { outline-color: var(--on-brand); }
/* 項目組合 主色色帶: the dark band (--deep) keeps its white words; what was --brand-ink on white is --deep on white */
.look-dark .section.b-cards.band-brand { background: var(--deep); }
.look-dark .band-brand .ci-num, .look-dark .band-brand .ci-tab[aria-selected="true"], .look-dark .band-brand .mq-pause:checked + .mq-btn { color: var(--deep); }
.look-dark .b-cards.band-brand.v-timeline .ci::before { background: var(--deep); }
/* 圖文 淡色面板: a brand-tinted dark panel instead of the light one */
.look-dark .b-image-text.v-panel .it-grid { background: var(--surface-2); background: color-mix(in srgb, var(--brand-ink) 12%, var(--surface)); }
/* 定價欄 推薦: outlined and labelled in the light brand colour (the dark accent would vanish on the page) */
.look-dark .items.v-plans .card[data-category="推薦"] { border-color: var(--brand-ink); box-shadow: 0 16px 40px rgba(0, 0, 0, .4); }
.look-dark .items.v-plans .card[data-category="推薦"] .cat { background: var(--brand-ink); border-color: var(--brand-ink); color: var(--on-brand); }

/* ==== D179: 色底 (theme.look = tint: <body class="look-tint">) =====================================
   The whole page on a tint of the shop's brand colour; the colours are tokens set in the page's own
   <style> (render.js tintColors). One rule: the alternate sections, near white in the standard look,
   are the deeper tint here, so the page stays coloured from top to bottom and the cards (near white)
   stand out on both. :where keeps the specificity of style.css's own rule, so the bands still win. */
/* D189: no stripes. Every section is the page's tint; only a block that asks for a band (區塊底色) is another colour. */
:where(.look-tint) .section:nth-of-type(even) { background: var(--bg); }

/* ==== D181: 客戶見證 排法 (props.layout: .ql .ql-photo / .ql-feature / .ql-wall on the section) ==========
   The D180 list (no .ql) is unchanged. 照片對開 and 滿版主打 are carousel.js's stacked mode: with scripting
   every slide sits in the same grid cell (the block is as tall as its tallest quote, nothing moves when
   one changes) and only .is-current shows (a fade, none under prefers-reduced-motion); without it,
   照片對開 is a sideways strip that snaps and 滿版主打 the quotes one under another, a thin rule between.
   The controls are placed in room kept for them (absolute), so showing them moves nothing either. The
   quotes are read from the left (as D180's) on centred pages too, but 滿版主打, which is centred. */
.b-cards.ql { --qs-ink: var(--text); --qs-line: var(--border-strong); }
.b-cards.ql-wall { --qs-line: var(--border); }
.b-cards.ql.band-brand { --qs-ink: #ffffff; --qs-line: rgba(255, 255, 255, .55); }
.b-cards.ql.band-brand .eyebrow, .b-cards.ql.band-brand .section-head .heading-4 { color: #ffffff; }
.b-cards.v-quotes.ql .ci-quote { display: flex; flex-direction: column; gap: 0; }
.b-cards.v-quotes.ql .ci-quote .ci-text { margin: 0; color: var(--qs-ink); text-wrap: pretty; }
.b-cards.v-quotes.ql .ci-quote figcaption { margin-top: var(--spacing-300); justify-content: flex-start; }
.b-cards.v-quotes.ql .ci-name { font-size: 1rem; line-height: 1.5rem; font-weight: 600; color: var(--qs-ink); }
.b-cards.v-quotes.ql .ci-role { color: var(--text-2); }
.b-cards.v-quotes.ql .ci-who::before { color: var(--qs-ink); }
.b-cards.v-quotes.ql.band-brand .ci-role { color: #ffffff; }
.b-cards.v-quotes.ql .ci-link { margin-top: var(--spacing-200); }
.align-center .b-cards.v-quotes.ql .ci-link { align-self: flex-start; }

/* the stack (照片對開, 滿版主打) */
.qs { position: relative; }
.qs-track { margin: 0; }
.qs-track:focus-visible { outline: 2px solid var(--brand-ink); outline-offset: 6px; }
.band-brand .qs-track:focus-visible { outline-color: #ffffff; }
.qs-slide { min-width: 0; }
@media (scripting: enabled) {
  .qs[data-stack] .qs-track { display: grid; overflow: visible; }
  .qs[data-stack] .qs-slide { grid-area: 1 / 1; }
  .qs[data-stack] .qs-slide + .qs-slide { visibility: hidden; }
}
.qs.cr-stack[data-stack] .qs-track { display: grid; overflow: visible; }
.qs.cr-stack .qs-slide { grid-area: 1 / 1; visibility: hidden; opacity: 0; }
.qs.cr-stack .qs-slide.is-current { visibility: visible; opacity: 1; }
@media (prefers-reduced-motion: no-preference) {
  .qs.cr-stack .qs-slide { transition: opacity 400ms var(--ease), visibility 0s linear 400ms; }
  .qs.cr-stack .qs-slide.is-current { transition: opacity 400ms var(--ease) 80ms, visibility 0s; }
}
/* the controls: the page's own colours, not the gallery's discs on a photo */
.qs .cr-controls { position: absolute; top: auto; right: auto; aspect-ratio: auto; pointer-events: auto; }
.qs .cr-controls[hidden] { display: none; }
.qs .cr-controls > * { position: static; transform: none; }
.qs .cr-btn { background: transparent; color: var(--qs-ink); box-shadow: inset 0 0 0 1px var(--qs-line); }
.qs .cr-btn:hover { background: var(--surface-2); }
.band-brand .qs .cr-btn:hover { background: rgba(255, 255, 255, .16); }
.qs .cr-btn:focus-visible, .qs .cr-dot:focus-visible { outline: 2px solid var(--brand-ink); outline-offset: 2px; box-shadow: inset 0 0 0 1px var(--qs-line); }
.band-brand .qs .cr-btn:focus-visible, .band-brand .qs .cr-dot:focus-visible { outline-color: #ffffff; }
.qs .cr-dot:focus-visible { box-shadow: none; }
.qs .cr-btn .icon { width: 20px; height: 20px; }

/* 照片對開: phones: the photo (4:3) over the quote; from 768 px the photo (4:5) at the left, the quote at the right */
.qs-photo { --qs-gap: clamp(32px, 6vw, 88px); }
.qs-photo .qs-track { display: flex; gap: var(--spacing-300); overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; scrollbar-width: thin; }
.qs-photo .qs-slide { flex: 0 0 100%; display: flex; flex-direction: column; gap: var(--spacing-300); scroll-snap-align: start; scroll-snap-stop: always; }
.qs-img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: 50% 35%; border-radius: var(--radius-card); background: var(--surface-2); }
.qs-photo .qs-body { display: flex; flex-direction: column; align-items: flex-start; min-width: 0; }
.qs-photo:has(> .qs-pager) .qs-body { padding-bottom: 76px; } /* the pager's room */
.b-cards.v-quotes.ql-photo .qs-text { font-family: var(--font-heading); font-size: 1.375rem; line-height: 1.6; font-weight: 500; letter-spacing: -.005em; }
.qs .qs-pager { left: 0; bottom: 0; display: flex; align-items: center; gap: var(--spacing-100); }
.qs-pager .cr-count { display: block; min-width: 4.5em; line-height: 44px; text-align: center; padding: 0; border-radius: 0; background: none; color: var(--qs-ink); font-size: 1rem; font-weight: 500; letter-spacing: .04em; }
@media (min-width: 768px) {
  .qs-photo .qs-slide { display: grid; grid-template-columns: minmax(0, 340px) minmax(0, 1fr); column-gap: var(--qs-gap); align-items: center; } /* D182: a smaller, square photo */
  .qs-photo .qs-img { aspect-ratio: 1 / 1; }
  .qs-photo .qs-body { padding-top: 76px; } /* with the pager's room below: the quote centred beside the photo */
  .qs.qs-photo .qs-pager { left: calc(340px + var(--qs-gap)); }
  .qs-nophoto .qs-slide { grid-template-columns: minmax(0, 1fr); }
  .qs.qs-nophoto .qs-pager { left: 0; }
  .b-cards.v-quotes.ql-photo .qs-text { font-size: clamp(1.5rem, .9rem + 1.3vw, 2.125rem); line-height: 1.5; }
}

/* 滿版主打: always the brand band (.band-brand: --brand-ink, --deep in 深色; white words 4.5:1 or more), one quote
   at a time, centred, in very large type; small dots to switch (filled = the one shown, not colour alone) */
.ql-feature .section-head, .ql-feature .ci-note { margin-left: auto; margin-right: auto; align-items: center; text-align: center; }
:where(.look-clean) .b-cards.ql-feature .section-head { justify-content: center; border-bottom-color: rgba(255, 255, 255, .4); }
.qs-feature { padding: var(--spacing-200) 0; text-align: center; }
.qs-feature .qs-slide + .qs-slide { margin-top: var(--spacing-600); padding-top: var(--spacing-600); border-top: 1px solid var(--qs-line); }
.qs.qs-feature .qs-slide { display: flex; flex-direction: column; align-items: center; }
@media (scripting: enabled) { .qs.qs-feature .qs-slide + .qs-slide { margin: 0; padding: 0; border: 0; } .qs-feature:has(> .qs-dots) { padding-bottom: 76px; } }
.qs.qs-feature.cr-stack .qs-slide { margin: 0; padding: 0; border: 0; }
.qs-feature.cr-stack:has(> .qs-dots) { padding-bottom: 76px; }
.b-cards.v-quotes.ql-feature .ci-quote { align-items: center; }
.b-cards.v-quotes.ql-feature .qs-text { max-width: 22em; margin: 0 auto; font-family: var(--font-heading); font-size: clamp(1.625rem, 1rem + 2.4vw, 2.75rem); line-height: 1.45; font-weight: 500; letter-spacing: -.01em; text-wrap: balance; }
.b-cards.v-quotes.ql-feature .ci-quote figcaption { justify-content: center; margin-top: var(--spacing-400); }
.b-cards.v-quotes.ql-feature .ci-who, .align-center .b-cards.v-quotes.ql-feature .ci-who:only-child { justify-content: center; text-align: center; }
.align-center .b-cards.v-quotes.ql-feature .ci-link, .b-cards.v-quotes.ql-feature .ci-link { align-self: center; }
.qs .qs-dots { left: 0; right: 0; bottom: var(--spacing-100); display: flex; justify-content: center; }
.qs .cr-dots { display: flex; justify-content: center; gap: 0; padding: 0; border-radius: 0; background: none; }
.qs .cr-dot { width: 44px; height: 44px; }
.qs .cr-dot span { width: 10px; height: 10px; background: transparent; box-shadow: inset 0 0 0 1.5px #ffffff; }
.qs .cr-dot:hover span { background: rgba(255, 255, 255, .4); }
.qs .cr-dot[aria-current="true"] span { background: #ffffff; transform: scale(1.2); }

/* 評價牆: CSS columns (1 / 2 / 3 by width); each review a plain item under a hairline, never a box */
.qw { list-style: none; margin: 0; padding: 0; column-count: 1; column-gap: var(--spacing-300); }
@media (min-width: 640px) { .qw { column-count: 2; } }
@media (min-width: 960px) { .qw { column-count: 3; } }
/* Not longer than a screen: on a phone the wall is one sideways strip that snaps; the quotes after the sixth are under 「看全部」. */
@media (max-width: 639px) {
  .qw { display: flex; gap: var(--spacing-300); overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin-inline: calc(var(--gutter, 16px) * -1); padding-inline: var(--gutter, 16px); scroll-padding-inline: var(--gutter, 16px); }
  .qw > li { flex: none; width: 82%; scroll-snap-align: start; margin-bottom: 0; }
}
.b-cards .qw-more { margin: var(--spacing-200) 0 0; padding: 0; border: 0; border-radius: 0; background: none; box-shadow: none; }
.qw-more > summary { display: inline-block; cursor: pointer; padding: var(--spacing-100) 0; color: var(--brand-ink, var(--brand)); text-decoration: underline; text-underline-offset: 4px; list-style: none; }
.qw-more > summary::-webkit-details-marker { display: none; }
.qw-more[open] > summary { display: none; }
.qw-more > .qw { margin-top: var(--spacing-300); }
.qw-item { break-inside: avoid; display: flow-root; margin: 0 0 var(--spacing-300); padding: var(--spacing-300); border: 1px solid var(--border); border-radius: var(--radius-card); background: var(--surface); } /* D183: one card a review, as tall as its words */
.b-cards.v-quotes.ql-wall .ci-quote { display: block; }
.b-cards.v-quotes.ql-wall .qw-text { font-size: 1.0625rem; line-height: 1.8; }
@media (min-width: 960px) { .b-cards.v-quotes.ql-wall .qw-text { font-size: 1.125rem; } }
.b-cards.v-quotes.ql-wall .ci-quote figcaption { margin-top: var(--spacing-200); }
.b-cards.v-quotes.ql-wall .ci-who { flex-direction: column; align-items: flex-start; gap: 0; }
.b-cards.v-quotes.ql-wall .ci-who::before { content: none; }
.b-cards.v-quotes.ql-wall .ci-name { font-size: .9375rem; line-height: 1.375rem; }
.b-cards.v-quotes.ql-wall .ci-role { font-size: .8125rem; line-height: 1.25rem; letter-spacing: .02em; }
.b-cards.v-quotes.ql-wall .ci-face { width: 32px; height: 32px; }

/* ==== D182: 公告 一行小字 (slim), 項目組合 路線 (path) ============================================== */
.b-notice.v-slim, .section.b-notice.v-slim:nth-of-type(even) { padding: var(--spacing-200) 0; }
.b-notice.v-slim .notice-box { justify-content: center; gap: var(--spacing-100); padding: 0; border: 0; border-radius: 0; background: none; box-shadow: none; color: var(--text-2); }
.b-notice.v-slim .notice-box p { font-size: .875rem; line-height: 1.5rem; font-weight: 400; }
.b-notice.v-slim .notice-box > .icon { width: 16px; height: 16px; color: var(--text-3); }
/* 路線: the stops one under another on a dashed line; side by side from 768 px. */
.b-cards.v-path .wrap > .ci-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--spacing-400); max-width: 520px; margin-left: auto; margin-right: auto; }
.b-cards.v-path .ci-grid > .ci { position: relative; display: grid; grid-template-columns: 56px minmax(0, 1fr); column-gap: var(--spacing-200); align-items: start; justify-items: start; width: auto; max-width: none; padding: 0; border: 0; border-radius: 0; background: none; text-align: left; }
.b-cards.v-path .ci > * { grid-column: 2; order: 0; margin-top: 0; }
.b-cards.v-path .ci-stop { grid-column: 1; grid-row: 1 / span 4; display: inline-flex; align-items: center; justify-content: center; width: 56px; height: 56px; border-radius: var(--radius-full); background: var(--brand-ink); color: var(--on-brand, #ffffff); font-weight: 700; font-size: 1.25rem; }
.b-cards.v-path .ci-stop .icon { width: 26px; height: 26px; }
.b-cards.v-path .ci-label { color: var(--brand-ink); letter-spacing: .08em; }
.b-cards.v-path .ci:not(:last-child)::after { content: ""; position: absolute; left: 27px; top: 64px; bottom: calc(-1 * var(--spacing-400) + 8px); border-left: 2px dashed var(--brand-ink); opacity: .45; }
@media (min-width: 768px) {
  .b-cards.v-path .wrap > .ci-grid { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: var(--spacing-300); max-width: none; }
  .b-cards.v-path .ci-grid > .ci { display: flex; flex-direction: column; align-items: center; text-align: center; }
  .b-cards.v-path .ci-stop { width: 72px; height: 72px; margin-bottom: var(--spacing-200); }
  .b-cards.v-path .ci-stop .icon { width: 30px; height: 30px; }
  .b-cards.v-path .ci:not(:last-child)::after { left: calc(50% + 48px); right: calc(-50% - var(--spacing-300) + 48px); top: 35px; bottom: auto; border-left: 0; border-top: 2px dashed var(--brand-ink); }
}
/* 照片對開: the photo no larger than the quote beside it (a square of 340 px), the pair kept together. */
@media (min-width: 768px) { .qs.qs-photo { max-width: 920px; margin-left: auto; margin-right: auto; } }
/* 大圖 gallery: two across, 4:3 instead of a square (a square was taller than half a screen each). */
@media (min-width: 640px) { .gallery.v-large .tile-img { aspect-ratio: 4 / 3; } }

/* ==== D184: 評價牆 card theme (.qc-theme) and a picture behind the wall (.has-bg .bgo-NN) ================== */
.section.has-bg { position: relative; overflow: hidden; isolation: isolate; }
.section.has-bg > .sec-bg { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; object-fit: cover; opacity: .2; pointer-events: none; }
.section.bgo-10 > .sec-bg { opacity: .1; }
.section.bgo-30 > .sec-bg { opacity: .3; }
.section.bgo-40 > .sec-bg { opacity: .4; }
.b-cards.has-bg .qw-item { background: color-mix(in srgb, var(--surface) 86%, transparent); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
/* 主題色: white and two tints of the brand colour, in turn; the names in the brand colour. */
.b-cards.qc-theme .qw-item:nth-child(3n+2) { border-color: transparent; background: color-mix(in srgb, var(--brand) 18%, var(--surface)); }
.b-cards.qc-theme .qw-item:nth-child(3n) { border-color: transparent; background: color-mix(in srgb, var(--brand) 34%, var(--surface)); } /* a deeper tint, dark words: no solid block */
.b-cards.qc-theme .ci-name { color: var(--brand-ink); }
.b-cards.has-bg.qc-theme .qw-item:nth-child(3n+2) { background: color-mix(in srgb, color-mix(in srgb, var(--brand) 18%, var(--surface)) 90%, transparent); }
/* A card's own picture (the item's 大照片) behind its words, at the wall's opacity. */
.qw-item.has-photo { position: relative; overflow: hidden; isolation: isolate; }
.qw-item.has-photo > .qw-bg { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; object-fit: cover; opacity: .2; pointer-events: none; }
.b-cards.bgo-10 .qw-bg { opacity: .1; }
.b-cards.bgo-30 .qw-bg { opacity: .3; }
.b-cards.bgo-40 .qw-bg { opacity: .4; }

/* ==== D185: 評價牆 drawn backgrounds (.wb .wb-glow / -dots / -grid / -stripes), in the shop's colour ======== */
.section.wb { position: relative; overflow: hidden; isolation: isolate; }
.section.wb::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.section.wb-glow::before { background: radial-gradient(60% 70% at 8% 0%, color-mix(in srgb, var(--brand) 30%, transparent), transparent 70%), radial-gradient(55% 65% at 100% 100%, color-mix(in srgb, var(--brand) 22%, transparent), transparent 70%); }
.section.wb-dots::before { background: radial-gradient(circle, color-mix(in srgb, var(--brand) 38%, transparent) 1.5px, transparent 2px) 0 0 / 22px 22px; }
.section.wb-grid::before { background: linear-gradient(color-mix(in srgb, var(--brand) 16%, transparent) 1px, transparent 1px) 0 0 / 100% 36px, linear-gradient(90deg, color-mix(in srgb, var(--brand) 16%, transparent) 1px, transparent 1px) 0 0 / 36px 100%; }
.section.wb-stripes::before { background: repeating-linear-gradient(135deg, color-mix(in srgb, var(--brand) 9%, transparent) 0 14px, transparent 14px 28px); }
/* the pattern fades toward the bottom so the next section meets a plain edge */
.section.wb-dots::before, .section.wb-grid::before, .section.wb-stripes::before, .section.wb-lines::before { -webkit-mask-image: linear-gradient(#000 55%, transparent); mask-image: linear-gradient(#000 55%, transparent); }

/* ==== D186: 評價牆 cards are an outline, never a filled block; 深色 (.qc-glass) =========================== */
.b-cards.ql-wall .qw-item { background: transparent; }
.b-cards.ql-wall.has-bg .qw-item { background: color-mix(in srgb, var(--surface) 86%, transparent); } /* over a picture the words still need a ground */
.b-cards.qc-theme .qw-item:nth-child(n) { background: transparent; border-color: color-mix(in srgb, var(--brand-ink) 55%, transparent); }
.b-cards.has-bg.qc-theme .qw-item:nth-child(n) { background: color-mix(in srgb, var(--surface) 86%, transparent); }
/* 深色: a dark section, light outlines, the face and the name above the words, the cards of a row equally tall. */
.section.b-cards.qc-glass, .section.b-cards.qc-glass:nth-of-type(even) { background: color-mix(in srgb, var(--brand) 9%, #0c0e13); color: #ffffff;
  --text: #ffffff; --border: rgba(255, 255, 255, .18); --qs-ink: #ffffff; --qs-line: rgba(255, 255, 255, .18); --brand-ink: color-mix(in srgb, var(--brand) 40%, #ffffff); }
.b-cards.qc-glass :is(h2, .eyebrow, .note) { color: #ffffff; }
.b-cards.qc-glass .qw-item { display: flex; flex-direction: column; padding: var(--spacing-400); border-color: var(--border); border-radius: 24px; background: transparent; }
.b-cards.has-bg.qc-glass .qw-item { background: rgba(12, 14, 19, .55); }
.b-cards.v-quotes.ql-wall.qc-glass .ci-quote { display: flex; flex-direction: column; }
.b-cards.v-quotes.ql-wall.qc-glass .ci-quote figcaption { order: -1; margin: 0 0 var(--spacing-200); }
.b-cards.v-quotes.ql-wall.qc-glass .ci-face { width: 56px; height: 56px; }
.b-cards.v-quotes.ql-wall.qc-glass .ci-name { font-size: 1.125rem; line-height: 1.625rem; font-weight: 700; color: #ffffff; }
.b-cards.v-quotes.ql-wall.qc-glass .ci-role { font-size: .875rem; color: rgba(255, 255, 255, .74); }
.b-cards.v-quotes.ql-wall.qc-glass .qw-text { font-size: 1rem; line-height: 1.8; color: rgba(255, 255, 255, .74); }
.b-cards.qc-glass .qw-item > .ci-link { margin-top: auto; padding-top: var(--spacing-200); }
@media (min-width: 640px) {
  .b-cards.qc-glass .qw { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--spacing-300); }
  .b-cards.qc-glass .qw > li { margin-bottom: 0; }
}
@media (min-width: 960px) { .b-cards.qc-glass .qw { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* ==== D190: one family of colours a page ============================================================
   色底: the notices are a tint of the brand colour (the yellow of a warning was a hue of its own), 重點
   an outline in the brand colour instead of a solid bar under the hero; the dark band and the active
   chip are the brand's ink, not the accent or near black; the 按鈕 block (the page's last call) sits on
   the deeper tint, so the lower half has one place that stands out. */
.look-tint { --deep: var(--brand-ink); }
:where(.look-tint) .notice-box, :where(.look-tint) .products .notice { background: var(--surface-2); border-color: transparent; color: var(--text); }
:where(.look-tint) .notice-box .icon { color: var(--brand-ink); }
.look-tint .b-notice.v-highlight .notice-box { background: var(--surface); border: 1.5px solid var(--brand-ink); color: var(--brand-ink); font-weight: 600; }
.look-tint .b-notice.v-highlight .notice-box .icon, .look-tint .b-notice.v-highlight .notice-link { color: var(--brand-ink); }
.look-tint .b-notice.v-highlight .notice-link:focus-visible { outline-color: var(--brand-ink); }
.look-tint .chip.is-active { background: var(--brand-ink); border-color: var(--brand-ink); color: #ffffff; }
.look-tint .b-cards:not(.band-brand) .ci-tab[aria-selected="true"] { background: var(--brand-ink); color: #ffffff; }
.look-tint .section.b-buttons:not(.v-band) { background: var(--surface-2); }
/* 深色: the band is the accent made deeper and a little stronger (at L 0.4 a muted accent read as grey). */
@supports (color: oklch(from red l c h)) { .look-dark .section.b-cards.band-brand { background: oklch(from var(--accent) .27 calc(c * 1.1) h); } }

/* ==== D191: section backgrounds for every block, the 評價牆's patterned card, dots for 照片對開, the top bar ====
   .wb / .has-bg (D184, D185) now sit on any .section (render.js sectionBg); two more patterns. */
.section.wb-rings::before { background: repeating-radial-gradient(circle at 100% 0%, transparent 0 46px, color-mix(in srgb, var(--brand) 14%, transparent) 46px 48px); -webkit-mask-image: linear-gradient(200deg, #000 20%, transparent 75%); mask-image: linear-gradient(200deg, #000 20%, transparent 75%); }
.section.wb-lines::before { background: repeating-linear-gradient(135deg, color-mix(in srgb, var(--brand) 22%, transparent) 0 1px, transparent 1px 12px); }
/* on a dark band the pattern is white, faint */
.section:is(.band-brand, .v-band, .qc-glass).wb::before { filter: brightness(0) invert(1); opacity: .5; }
.look-dark .section.wb::before { filter: brightness(0) invert(1); opacity: .4; } /* 深色: the brand colour is near black there */
/* 評價牆 細框＋淡花紋 (the default): fine dots in the brand colour that fade from the top right corner. */
.b-cards.qc-pattern .qw-item { background: linear-gradient(205deg, transparent 0 18%, var(--surface) 62%), radial-gradient(circle, color-mix(in srgb, var(--brand) 34%, transparent) 1px, transparent 1.6px) 0 0 / 12px 12px, var(--surface); }
.b-cards.has-bg.qc-pattern .qw-item { background: color-mix(in srgb, var(--surface) 86%, transparent); }
/* 照片對開: dots (and the pause button of 自動輪播) where the arrows were, in the text colour. */
.qs-pager .cr-dots { justify-content: flex-start; margin-left: -17px; }
.qs-photo .cr-dot span { box-shadow: inset 0 0 0 1.5px var(--qs-ink); }
.qs-photo .cr-dot:hover span { background: color-mix(in srgb, var(--qs-ink) 35%, transparent); }
.qs-photo .cr-dot[aria-current="true"] span { background: var(--qs-ink); }
.qs .cr-play[hidden] { display: none; }
.qs .cr-play { width: 36px; height: 36px; }
.qs .qs-dots { align-items: center; gap: var(--spacing-50); }
/* The top bar stays away while a page that opens with a hero is at its very top; it comes in on the first
   scroll (the same animation as the 滿版 hero's, D-airy). Where scroll timelines do not exist it is always there. */
@supports (animation-timeline: scroll()) {
  @media (prefers-reduced-motion: no-preference) {
    body:has(.hero) .topbar { animation: mm-bar-in linear both; animation-timeline: scroll(root block); animation-range: 8px 120px; }
    body:has(.hero) .nav-check:checked ~ .topbar { animation: none; }
  }
}

/* ==== D193: 文章／最新消息 (the posts block .b-posts, the /news/ pages: .news-page) ====================
   Cards (cover, date, title, excerpt; the whole card is the title's link) or rows (date + title); the list
   pages add category chips (real links) and a pager; an article is a narrow column of rich text. */
.post-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr; gap: var(--spacing-300); }
@media (min-width: 640px) { .post-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 960px) { .post-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.post-card { position: relative; display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-card); overflow: hidden; transition: border-color var(--dur-fade) var(--ease); }
.post-card:hover { border-color: var(--border-strong); }
.post-card:focus-within { outline: 2px solid var(--brand-ink); outline-offset: 2px; }
.post-img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.post-img.ph { display: none; }
.post-body { display: flex; flex-direction: column; gap: var(--spacing-75); padding: var(--spacing-200) var(--spacing-200) var(--spacing-300); }
.post-body > * { margin: 0; }
.post-meta { display: flex; flex-wrap: wrap; align-items: center; gap: var(--spacing-75); margin: 0; color: var(--text-3); }
.post-cat { color: var(--brand-ink); font-weight: 600; }
a.post-cat { position: relative; z-index: 1; text-decoration: none; }
a.post-cat:hover { text-decoration: underline; }
.post-pin { padding: 0 var(--spacing-75); border-radius: var(--radius-full); background: var(--brand-ink); color: var(--on-brand, #ffffff); font-weight: 600; }
.post-link { color: var(--text); text-decoration: none; }
.post-link:hover { text-decoration: underline; }
.post-card .post-link::after { content: ""; position: absolute; inset: 0; }
.post-card .post-link:focus-visible { outline: none; }
.post-excerpt { color: var(--text-2); display: -webkit-box; -webkit-line-clamp: 3; line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.post-rows { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--border); max-width: 820px; }
.post-row { display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--spacing-50) var(--spacing-200); padding: var(--spacing-200) 0; border-bottom: 1px solid var(--border); }
.post-row time { flex: none; min-width: 6.5em; color: var(--text-3); font-variant-numeric: tabular-nums; }
.post-row .post-link { flex: 1 1 16em; min-width: 0; }
.post-more { margin: var(--spacing-400) 0 0; }
.post-more .btn .icon { margin-left: var(--spacing-50); }
.post-cats { margin-bottom: var(--spacing-400); }
a.chip { display: inline-flex; align-items: center; text-decoration: none; }
.post-pager { display: flex; align-items: center; justify-content: space-between; gap: var(--spacing-200); margin-top: var(--spacing-500); }
.post-pager p { margin: 0; color: var(--text-2); }
.post-top .post-meta { margin-bottom: var(--spacing-100); }
.post-top .heading-3 { margin: 0; }
.post-article { padding-top: var(--spacing-400); }
.post-cover { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--radius-card); margin-bottom: var(--spacing-400); }
.post-article .rt { max-width: none; color: var(--text); }
.post-back { padding-top: 0; }
.post-back .btn .icon { margin-right: var(--spacing-50); }
/* The title and what follows are one piece on every look and template (the theme's own section spacing loses here). */
.news-page main > .section.page-top { padding-top: calc(var(--topbar-space) + var(--spacing-500)); padding-bottom: 0; }
.news-page main > .page-top + .section { padding-top: var(--spacing-400); }
.look-dark .post-card, .look-tint .post-card { background: var(--surface); }
.align-center .post-more, .align-center .post-cats { justify-content: center; text-align: center; }
.align-center .post-rows { margin-left: auto; margin-right: auto; }

/* ==== D196: pictures inside the rich text ===================================================   「![說明](網址)」 on a line of its own (render.js rtFigure): a <figure> as wide as the text column, the
   picture at its own proportions (width / height from the media sizes reserve the space), the caption
   under it in the quieter text colour. 文字 / 圖文 blocks and articles; every look (a hairline on 深色 and
   色底, where the picture's edge would otherwise melt into the page); phones get less space around it.
   No inline styles: everything is here. */
.rt > .rt-fig { margin: var(--spacing-300) 0; }
.rt > .rt-fig:first-child { margin-top: 0; }
.rt > .rt-fig:last-child { margin-bottom: 0; }
.rt-img { display: block; width: 100%; max-width: 100%; height: auto; border-radius: var(--radius-card); background: var(--surface-2); }
.rt-cap { margin: var(--spacing-75) 0 0; color: var(--text-2); }
.b-text.v-centered .rt-cap { text-align: center; }
.look-dark .rt-img, .look-tint .rt-img { border: 1px solid var(--border); }
@media (max-width: 639px) {
  .rt > .rt-fig { margin: var(--spacing-200) 0; }
}
/* ==== D197: the same section on several pages: 看全部 under a list that shows only its first few ========= */
.more-link { margin: var(--spacing-400) 0 0; }
.align-center .more-link { text-align: center; }
/* ==== D198: the 詢問表單's own fields (render.js inquiryExtras) ======================================
   A 下拉選單 looks like the other fields; （選填） beside an optional field's name in the quieter weight;
   the error line under a field (inquiry.js fills it; hidden until then). */
.inq-field select { width: 100%; min-height: 44px; box-sizing: border-box; font: inherit; font-size: 1rem; line-height: 1.5rem; padding: var(--spacing-75) var(--spacing-100); border: 1px solid var(--border-strong); border-radius: min(var(--radius-lg), var(--radius-xl)); background: var(--surface); color: var(--text); }
.inq-field select:focus-visible { outline: 2px solid var(--brand-ink); outline-offset: 0; border-color: var(--brand-ink); }
.inq-opt { font-weight: 400; color: var(--text-2); }
.inq-err { margin: 0; color: var(--danger); font-weight: 600; }
.inq-field label.inq-check { font-weight: 400; color: var(--text); }
/* ==== D199: the menu's one level of sub-items; a bar too long for the screen ===========================
   Top bar (>= 960 px): a page with pages under it is its link plus a 44 px button (a <details>, works without
   JavaScript; nav.js adds Escape and closing on a click elsewhere) that opens a small panel under it. The
   phone menu lists the pages under it, indented, all visible. aria-current marks the page shown (and its
   parent). render.js navFit puts nav-from-1280 / -1440 / -1680 / nav-menu-only on <body> when the bar's
   links would not fit: the bar then keeps the phone menu button up to that width (or always). */
.nav-grp { position: relative; display: flex; align-items: center; }
.nav-grp > a { padding-right: var(--spacing-50); }
.nav-sub, .nav-sub[open] { position: relative; background: none; border: 0; border-radius: 0; padding: 0; } /* not the 常見問題 card (style.css details) */
.nav-sub > summary { display: inline-flex; align-items: center; justify-content: center; gap: 0; width: 44px; height: 44px; min-height: 0; padding: 0; margin-left: calc(var(--spacing-50) * -1); border-radius: var(--radius-lg); color: var(--text-2); list-style: none; cursor: pointer; transition: background-color var(--dur-fade) var(--ease), color var(--dur-fade) var(--ease); }
.nav-sub > summary::-webkit-details-marker { display: none; }
.nav-sub > summary::marker { content: ""; }
.nav-sub > summary:hover, .nav-sub[open] > summary { color: var(--text); background: var(--hover-tint); }
.nav-sub > summary .icon { width: 16px; height: 16px; transition: transform var(--dur-fade) var(--ease); }
.nav-sub[open] > summary .icon { transform: rotate(180deg); }
.nav-sub-list { position: absolute; z-index: 60; top: calc(100% + var(--spacing-75)); right: 0; min-width: 200px; max-width: 320px; margin: 0; padding: var(--spacing-50); list-style: none; display: flex; flex-direction: column; gap: var(--spacing-25); background: var(--glass-strong); border: 1px solid var(--hairline); border-radius: var(--radius-xl); box-shadow: var(--shadow-float); }
.nav .nav-sub-list a { display: flex; width: 100%; box-sizing: border-box; }
.nav a[aria-current] { color: var(--text); font-weight: 600; }
.menu-sub { list-style: none; margin: 0 0 var(--spacing-100); padding: 0 0 0 var(--spacing-200); display: flex; flex-direction: column; border-left: 2px solid var(--border); }
.menu-link.menu-sublink { min-height: 44px; padding-left: var(--spacing-100); font-size: 1.125rem; line-height: 1.625rem; font-weight: 500; color: var(--text-2); }
.menu-link[aria-current="page"] { color: var(--brand-ink); }
.align-center .menu-sub { text-align: left; }
@media (prefers-reduced-motion: reduce) { .nav-sub > summary .icon { transition: none; } }
/* The bar too long for the screen: the phone menu (button and panel) up to the width its links fit. */
@media (min-width: 960px) and (max-width: 1279.98px) {
  :is(.nav-from-1280, .nav-from-1440, .nav-from-1680, .nav-menu-only) .topbar { width: calc(100% - var(--spacing-300)); max-width: 1072px; }
  :is(.nav-from-1280, .nav-from-1440, .nav-from-1680, .nav-menu-only) .brand { margin-right: auto; max-width: none; }
  :is(.nav-from-1280, .nav-from-1440, .nav-from-1680, .nav-menu-only) .nav { display: none; }
  :is(.nav-from-1280, .nav-from-1440, .nav-from-1680, .nav-menu-only) .menu-toggle:not([hidden]) { display: inline-flex !important; }
  :is(.nav-from-1280, .nav-from-1440, .nav-from-1680, .nav-menu-only) .menu-panel { display: block !important; }
  :is(.nav-from-1280, .nav-from-1440, .nav-from-1680, .nav-menu-only) .nav-check { display: inline-block !important; }
}
@media (min-width: 1280px) and (max-width: 1439.98px) {
  :is(.nav-from-1440, .nav-from-1680, .nav-menu-only) .topbar { width: calc(100% - var(--spacing-300)); max-width: 1072px; }
  :is(.nav-from-1440, .nav-from-1680, .nav-menu-only) .brand { margin-right: auto; max-width: none; }
  :is(.nav-from-1440, .nav-from-1680, .nav-menu-only) .nav { display: none; }
  :is(.nav-from-1440, .nav-from-1680, .nav-menu-only) .menu-toggle:not([hidden]) { display: inline-flex !important; }
  :is(.nav-from-1440, .nav-from-1680, .nav-menu-only) .menu-panel { display: block !important; }
  :is(.nav-from-1440, .nav-from-1680, .nav-menu-only) .nav-check { display: inline-block !important; }
}
@media (min-width: 1440px) and (max-width: 1679.98px) {
  :is(.nav-from-1680, .nav-menu-only) .topbar { width: calc(100% - var(--spacing-300)); max-width: 1072px; }
  :is(.nav-from-1680, .nav-menu-only) .brand { margin-right: auto; max-width: none; }
  :is(.nav-from-1680, .nav-menu-only) .nav { display: none; }
  :is(.nav-from-1680, .nav-menu-only) .menu-toggle:not([hidden]) { display: inline-flex !important; }
  :is(.nav-from-1680, .nav-menu-only) .menu-panel { display: block !important; }
  :is(.nav-from-1680, .nav-menu-only) .nav-check { display: inline-block !important; }
}
@media (min-width: 1680px) {
  .nav-menu-only .topbar { width: calc(100% - var(--spacing-300)); max-width: 1072px; }
  .nav-menu-only .brand { margin-right: auto; max-width: none; }
  .nav-menu-only .nav { display: none; }
  .nav-menu-only .menu-toggle:not([hidden]) { display: inline-flex !important; }
  .nav-menu-only .menu-panel { display: block !important; }
  .nav-menu-only .nav-check { display: inline-block !important; }
}
