/* ==========================================================================
   list.css — shared styles for restaurants / logistics / reminders / about
   v1 · editorial list pages with bleed warnings and critical callouts
   ========================================================================== */

/* ---------- site header (shared) ----------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-inline: clamp(1rem, 4vw, 2rem);
  background: var(--paper);
  border-bottom: 1px solid var(--rule);
  backdrop-filter: saturate(1.2);
}
.site-header > nav { min-width: 0; }
.site-header .brand {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0.25rem 0.15rem;
  white-space: nowrap;
  flex: 0 0 auto;
}
.site-header nav a {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink);
  opacity: 0.7;
  margin-left: 1.25rem;
  padding: 0.35rem 0.15rem;
  /* hairline under every link — visible only on hover / current-page */
  border-bottom: 1px solid transparent;
  transition: opacity var(--dur-fast) var(--ease-out),
              border-color var(--dur-fast) var(--ease-out);
}
.site-header nav a:hover,
.site-header nav a:focus-visible { opacity: 1; }
.site-header nav a[aria-current="page"] {
  opacity: 1;
  color: var(--ink);
  border-bottom-color: var(--accent-text);
}
/* 8-item nav compaction — progressively tighten spacing at 900 / 760 / 640 / 380 */
@media (max-width: 900px) {
  .site-header nav a { margin-left: 0.9rem; font-size: 0.7rem; letter-spacing: 0.1em; }
}
@media (max-width: 760px) {
  /* Horizontal scroll fallback — premium than wrap at 8 items */
  .site-header > nav {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: flex-end;
    gap: 0.85rem;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-inline-start: 1rem;
    padding-inline-end: 1.5rem;
    /* subtle right-edge fade hints that the nav can be scrolled */
    -webkit-mask-image: linear-gradient(90deg, #000 0 calc(100% - 20px), transparent 100%);
            mask-image: linear-gradient(90deg, #000 0 calc(100% - 20px), transparent 100%);
  }
  .site-header > nav::-webkit-scrollbar { display: none; }
  .site-header nav a {
    margin-left: 0;
    padding: 0.45rem 0;
    white-space: nowrap;
    flex: 0 0 auto;
  }
}
@media (max-width: 640px) {
  /* Guarantee ≥24px between tap targets for WCAG 2.2 AA target-size */
  .site-header nav { gap: 1.6rem; }
  .site-header nav a { font-size: 0.68rem; letter-spacing: 0.08em; padding: 0.65rem 0.15rem; min-height: 28px; display: inline-flex; align-items: center; }
  .site-header .brand { margin-right: 1.5rem; position: relative; z-index: 2; background: var(--paper); }
}
@media (max-width: 380px) {
  .site-header nav { gap: 1.5rem; }
  .site-header nav a { font-size: 0.66rem; padding: 0.65rem 0.12rem; }
}

/* ---------- page shell ---------------------------------------------------
   2026-04-19 iter-12 · at 1440+ let list pages breathe to 1280px magazine width.
   Previously `.list-main` capped at 1080px beat the base.css `main { max-width: 1280px }`
   rule via class-over-tag specificity, silently cramping all list pages on wide desktops. */
.list-main {
  max-width: 1080px;
  margin-inline: auto;
  padding: clamp(1.5rem, 4vw, 3rem) clamp(1rem, 4vw, 2.5rem) clamp(3rem, 6vw, 5rem);
}
@media (min-width: 1440px) {
  .list-main { max-width: 1280px; }
}

.page-header {
  margin-bottom: clamp(2rem, 5vw, 3.5rem);
  border-bottom: 1px solid var(--rule);
  padding-bottom: clamp(1.5rem, 3vw, 2rem);
}

.section-number {
  display: flex;
  align-items: baseline;
  gap: 0.9rem;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink);
  opacity: 0.72;
  margin-bottom: 1.05rem;
  font-variant-numeric: tabular-nums;
}
.section-number::before {
  content: "";
  flex: 0 0 clamp(1.4rem, 3vw, 2.25rem);
  height: 1px;
  background: currentColor;
  opacity: 0.55;
  transform: translateY(-0.3em);
}

.page-header h1 {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(2.5rem, 7vw, 5.5rem);
  line-height: 0.98;
  letter-spacing: -0.032em;
  margin-bottom: 1.1rem;
  font-feature-settings: 'ss01' 1, 'salt' 1;
}
.page-header h1 em {
  font-weight: 300;
  font-style: italic;
  opacity: 0.85;
}

.page-header .lede {
  font-size: clamp(1rem, 1.4vw, 1.125rem);
  line-height: 1.7;
  color: var(--ink);
  opacity: 0.78;
  max-width: 56ch;
}

/* ---------- area tabs (horizontal scroll) -------------------------------- */
.area-tabs {
  display: flex;
  gap: 0.5rem;
  margin-top: clamp(1.25rem, 3vw, 1.75rem);
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.area-tabs::-webkit-scrollbar { display: none; }
.area-tabs a {
  flex: 0 0 auto;
  padding: 0.55rem 1rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border: 1px solid var(--rule);
  border-radius: 999px;
  color: var(--ink);
  opacity: 0.85;
  transition: background-color var(--dur-fast) var(--ease-out),
              color var(--dur-fast) var(--ease-out),
              border-color var(--dur-fast) var(--ease-out),
              opacity var(--dur-fast) var(--ease-out);
}
.area-tabs a:hover {
  background: var(--ink);
  color: var(--paper);
  opacity: 1;
  border-color: var(--ink);
}

/* ---------- area group --------------------------------------------------- */
.area-group {
  margin-top: clamp(3rem, 6vw, 5rem);
  scroll-margin-top: clamp(4.5rem, 9vh, 6rem);
}
.area-group h2 {
  position: relative;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  line-height: 1.05;
  letter-spacing: -0.022em;
  margin-bottom: clamp(1.5rem, 2.5vw, 2rem);
  padding-bottom: clamp(0.85rem, 1.5vw, 1rem);
  border-bottom: 1px solid var(--ink);
  font-feature-settings: 'ss01' 1, 'salt' 1;
}
/* accent tick at the base of each area heading · print-issue marker */
.area-group h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  width: clamp(2.5rem, 6vw, 4.5rem);
  height: 3px;
  background: var(--accent);
}

/* ---------- list stats -------------------------------------------------- */
.list-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin-top: clamp(1.25rem, 2.5vw, 1.75rem);
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
}
.list-stats > div {
  padding: clamp(0.75rem, 1.5vw, 1rem) clamp(0.6rem, 1.5vw, 1.25rem);
  border-right: 1px solid var(--rule);
  display: grid;
  gap: 0.2rem;
}
.list-stats > div:last-child { border-right: 0; }
.list-stats dt {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink);
  opacity: 0.78;
}
.list-stats dd {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(1.5rem, 3.5vw, 2.25rem);
  line-height: 1;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}
@media (max-width: 520px) {
  .list-stats { grid-template-columns: repeat(2, 1fr); }
  .list-stats > div:nth-child(2) { border-right: 0; }
  .list-stats > div:nth-child(1),
  .list-stats > div:nth-child(2) {
    border-bottom: 1px solid var(--rule);
  }
}

/* ---------- restaurant utility classes · 2026-04-19 iter-12 ·
   extracted from 26 inline-style attributes so token changes propagate
   through the design system instead of being frozen in HTML. ------------- */
.rc-area-count {
  font-family: var(--font-mono);
  font-size: 0.6em;
  letter-spacing: 0.12em;
  opacity: 0.55;
  font-weight: 400;
  vertical-align: 0.35em;
}
.rc-address {
  font-size: 0.8125rem;
  opacity: 0.72;
  margin-top: auto;
}
.rc-address .rc-pin {
  opacity: 0.55;
  margin-right: 0.2em;
}
.rc-inline-note {
  font-size: 0.875rem;
  opacity: 0.78;
}
.rc-attribution {
  margin-top: clamp(2.5rem, 5vw, 4rem);
  padding: 1.5rem;
  background: var(--surface);
  border-left: 3px solid var(--accent-text);
  font-size: 0.9375rem;
  line-height: 1.7;
}
.rc-attribution .rc-attribution-meta {
  margin-top: 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  opacity: 0.72;
}

/* ---------- restaurant card grid ---------------------------------------- */
.restaurant-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.9rem;
}

@media (min-width: 640px) {
  .restaurant-cards {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.1rem;
  }
}
@media (min-width: 1024px) {
  .restaurant-cards {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.35rem;
  }
}
/* P5 · at 1440+ let 3-col breathe more vertically, matched row/col gap for balance */
@media (min-width: 1440px) {
  .restaurant-cards {
    gap: 1.75rem;
  }
}
/* P5 · tighten the card 內部 padding + rhythm of rc-signature so 人均 / 狀態 排版乾淨 */
.restaurant-card .rc-meta + .rc-closed {
  margin-top: 0.15rem;
}

.restaurant-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1.5rem 1.4rem 1.55rem 1.55rem;
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 2px;
  transition: background-color 180ms var(--ease-out),
              border-color 180ms var(--ease-out);
}
.restaurant-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; bottom: 0;
  width: 3px;
  background: var(--accent);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 340ms var(--ease-editorial);
}
.restaurant-card:hover,
.restaurant-card:focus-within {
  background: var(--paper-3);
  border-color: rgba(15, 26, 20, 0.2);
}
.restaurant-card:hover::before,
.restaurant-card:focus-within::before {
  transform: scaleY(1);
}
.restaurant-card:hover .rc-name,
.restaurant-card:focus-within .rc-name {
  color: var(--accent-text);
}
.restaurant-card .rc-name {
  transition: color 180ms var(--ease-out);
}

.restaurant-card .rc-type {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--moss);
  font-weight: 600;
}

.restaurant-card .rc-name {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(1.25rem, 2.4vw, 1.5rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: 0.1rem;
}

.restaurant-card .rc-signature {
  font-size: 0.9375rem;
  line-height: 1.5;
  color: var(--ink);
  opacity: 0.82;
}
.restaurant-card .rc-signature b {
  font-family: var(--font-display);
  font-weight: 300;
  font-style: italic;
  font-size: 1.05em;
  color: var(--accent-text);
  margin-right: 0.2em;
}

.restaurant-card dl.rc-meta {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.35rem 0.75rem;
  margin: 0.25rem 0;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  line-height: 1.5;
}
.restaurant-card dl.rc-meta dt {
  color: var(--ink);
  opacity: 0.72;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.restaurant-card dl.rc-meta dd {
  color: var(--ink);
  opacity: 0.92;
  margin: 0;
}

.restaurant-card .rc-closed {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--paper);
  background: var(--warn);
  padding: 0.25rem 0.55rem;
  border-radius: 2px;
  align-self: flex-start;
}
.restaurant-card .rc-closed.tentative {
  background: rgba(193, 58, 58, 0.12);
  color: var(--warn);
  border: 1px solid rgba(193, 58, 58, 0.3);
}

.restaurant-card .rc-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: auto;
  padding-top: 0.75rem;
  border-top: 1px solid var(--rule);
}
.restaurant-card .rc-links a {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.45rem 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 999px;
  transition: background-color var(--dur-fast) var(--ease-out),
              color var(--dur-fast) var(--ease-out),
              border-color var(--dur-fast) var(--ease-out);
}
.restaurant-card .rc-links a:hover {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}
.restaurant-card .rc-links a.rc-detail {
  color: #8f4b17;
  font-weight: 600;
  border-color: rgba(143, 75, 23, 0.45);
}
.restaurant-card .rc-links a.rc-detail:hover {
  background: var(--accent);
  color: var(--paper);
  border-color: var(--accent);
}
.restaurant-card .rc-links .rc-phone-unknown {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.45rem 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  color: var(--ink);
  background: transparent;
  border: 1px dashed var(--rule);
  border-radius: 999px;
  font-style: italic;
}

.restaurant-card .rc-vegan-badge {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  padding: 0.25rem 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--paper);
  background: var(--moss);
  border-radius: 2px;
}

.restaurant-card .rc-visited {
  font-family: var(--font-mono);
  font-size: 0.625rem;
  letter-spacing: 0.1em;
  color: var(--moss);
  opacity: 0.8;
  text-transform: uppercase;
}

/* ---------- logistics blocks -------------------------------------------- */
.logistics-block {
  margin-top: clamp(2rem, 4vw, 3rem);
  padding-top: clamp(1.5rem, 3vw, 2rem);
  border-top: 1px solid var(--rule);
  scroll-margin-top: 80px;
}
.logistics-block:first-of-type {
  border-top: 0;
  padding-top: 0;
}
.logistics-block h2 {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(1.5rem, 3.5vw, 2.25rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}
.logistics-block p {
  font-size: 1rem;
  line-height: 1.75;
  color: var(--ink);
  opacity: 0.9;
  margin-bottom: 0.85rem;
  max-width: 62ch;
}
.logistics-block p.parking {
  font-family: var(--font-mono);
  font-size: 0.875rem;
  letter-spacing: 0.02em;
  background: var(--surface);
  border-left: 3px solid var(--accent);
  padding: 0.85rem 1rem;
  opacity: 1;
}
.logistics-block p.callout {
  background: rgba(62, 92, 68, 0.08);
  border-left: 3px solid var(--moss);
  padding: 1rem 1.1rem;
  font-size: 0.9375rem;
  line-height: 1.7;
  opacity: 1;
}
.logistics-block p.estimate {
  font-family: var(--font-mono);
  font-size: 0.9375rem;
  letter-spacing: 0.01em;
  background: var(--ink);
  color: var(--paper);
  padding: 1rem 1.1rem;
  border-radius: 2px;
  opacity: 1;
}
.logistics-block p.estimate b {
  color: var(--accent);
}

/* ---------- fare table (two-column dl) ---------------------------------- */
.fare-table {
  display: grid;
  grid-template-columns: 40% 60%;
  gap: 0;
  margin: 1rem 0 1.5rem;
  border-top: 1px solid var(--rule);
}
.fare-table dt {
  padding: 0.65rem 0.85rem 0.65rem 0;
  border-bottom: 1px solid var(--rule);
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  letter-spacing: 0.04em;
  color: var(--ink);
  opacity: 0.7;
}
.fare-table dd {
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--rule);
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

/* ---------- eSIM critical callout --------------------------------------- */
.esim-critical {
  margin: clamp(2.5rem, 5vw, 4rem) 0;
  padding: clamp(1.75rem, 4vw, 2.5rem) clamp(1.5rem, 4vw, 2.5rem);
  background: var(--accent);
  color: var(--ink);
  border-radius: 4px;
  text-align: center;
}
.esim-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink);
  opacity: 0.82;
  margin-bottom: 0.85rem;
  font-weight: 600;
}
.esim-lede {
  font-family: var(--font-display);
  font-weight: 400;
  font-style: italic;
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
  line-height: 1.3;
  color: var(--ink);
  margin-bottom: 0.5rem;
}
.esim-time {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(3rem, 12vw, 6rem);
  line-height: 0.95;
  letter-spacing: -0.04em;
  margin: 0.35rem 0 0.4rem;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
}
.esim-time .slash {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 300;
  font-style: italic;
  opacity: 0.55;
  margin: 0 0.35rem;
  font-size: 0.55em;
  vertical-align: 0.1em;
  color: var(--ink);
}
.esim-date {
  font-family: var(--font-mono);
  font-size: 0.875rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink);
  opacity: 0.82;
  margin-bottom: 1rem;
  font-weight: 600;
}
.esim-body {
  font-size: 0.9375rem;
  line-height: 1.75;
  max-width: 48ch;
  margin-inline: auto;
  color: var(--ink);
  opacity: 0.9;
}

/* ---------- table scroll wrapper · keeps wide tables inside the viewport on mobile -- */
.table-scroll {
  margin-top: 1rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  /* hairline visual cue: right-edge fade so users see scroll is available */
  background:
    linear-gradient(90deg, var(--paper) 30%, rgba(244,237,225,0)) 0 0 / 2rem 100% no-repeat,
    linear-gradient(270deg, var(--paper) 30%, rgba(244,237,225,0)) 100% 0 / 2rem 100% no-repeat,
    linear-gradient(90deg, rgba(15,26,20,0.08), rgba(15,26,20,0)) 0 0 / 1rem 100% no-repeat,
    linear-gradient(270deg, rgba(15,26,20,0.08), rgba(15,26,20,0)) 100% 0 / 1rem 100% no-repeat;
  background-attachment: local, local, scroll, scroll;
}
.table-scroll:focus-visible {
  outline: 2px solid var(--accent-text);
  outline-offset: 2px;
}

/* ---------- eSIM plans table -------------------------------------------- */
.esim-plans-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}
@media (max-width: 640px) {
  /* keep readable 4-col layout but guarantee scroll room */
  .esim-plans-table { min-width: 560px; }
}
.esim-plans-table th,
.esim-plans-table td {
  text-align: left;
  padding: 0.75rem 0.75rem;
  border-bottom: 1px solid var(--rule);
  vertical-align: top;
}
.esim-plans-table th {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink);
  opacity: 0.7;
  background: var(--surface);
}
.esim-plans-table td strong {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1rem;
}
.affiliate-cta {
  display: inline-block;
  margin-top: 0.4rem;
  padding: 0.4rem 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--paper);
  background: var(--accent);
  border-radius: 2px;
  opacity: 0.9;
}
.affiliate-cta::after {
  content: ' →';
}

/* ---------- Lisboeta × Air Macau benefit ------------------------------- */
.lisboeta-benefit {
  margin-top: clamp(2.5rem, 5vw, 4rem);
  padding: clamp(1.75rem, 4vw, 2.5rem);
  background: var(--paper);
  border: 1px solid var(--accent);
  border-left: 4px solid var(--accent);
  border-radius: 4px;
}
.lisboeta-benefit h2 {
  color: var(--ink);
  margin-bottom: 1rem;
}
.lisboeta-benefit p {
  color: var(--ink);
}
.benefit-table {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 0.65rem 1.2rem;
  margin: 1.25rem 0;
  padding: 1rem 1.1rem;
  background: var(--surface, #f6f3ee);
  border-radius: 4px;
}
.benefit-table dt {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  letter-spacing: 0.05em;
  color: var(--ink);
  opacity: 0.78;
  align-self: start;
}
.benefit-table dd {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.55;
  color: var(--ink);
}
.benefit-table dd b {
  color: var(--accent-text);
}
.lisboeta-benefit .footnote {
  font-size: 0.8125rem;
  line-height: 1.65;
  opacity: 0.72;
  margin-top: 0.75rem;
}
@media (max-width: 520px) {
  .benefit-table {
    grid-template-columns: 1fr;
    gap: 0.25rem 0;
  }
  .benefit-table dt { margin-top: 0.65rem; }
  .benefit-table dt:first-of-type { margin-top: 0; }
}

/* ---------- customs warning (full bleed) -------------------------------- */
.customs-warning.bleed {
  position: relative;
  width: 100vw;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  margin-top: clamp(3rem, 6vw, 5rem);
  margin-bottom: clamp(2rem, 5vw, 4rem);
  background: var(--warn);
  color: var(--paper);
  padding: clamp(2.5rem, 6vw, 4.5rem) clamp(1.5rem, 5vw, 3rem);
}
.customs-warning .customs-inner {
  max-width: 820px;
  margin-inline: auto;
}
.customs-warning .customs-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  opacity: 0.92;
  margin-bottom: 0.85rem;
}
.customs-warning h2 {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(2rem, 5vw, 3.5rem);
  line-height: 1.02;
  letter-spacing: -0.025em;
  color: var(--paper);
  margin-bottom: 1.25rem;
}
.forbidden-list {
  display: grid;
  gap: 0.45rem;
  margin: 1.25rem 0 1.5rem;
}
.forbidden-list li {
  font-size: 1rem;
  line-height: 1.65;
  padding: 0.6rem 0.85rem;
  background: rgba(15, 26, 20, 0.18);
  border-radius: 2px;
}
.forbidden-list .forbidden-mark {
  display: inline-block;
  width: 1.15em;
  margin-right: 0.25em;
  font-family: var(--font-mono);
  font-weight: 600;
  text-align: center;
  color: var(--paper);
  opacity: 0.88;
}
.customs-warning .penalty {
  font-size: 0.9375rem;
  line-height: 1.7;
  padding-top: 1rem;
  border-top: 1px solid rgba(244, 237, 225, 0.3);
}
.customs-warning .penalty b {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.3em;
  letter-spacing: -0.01em;
  color: var(--paper);
}

/* ---------- shopping list ----------------------------------------------- */
.shopping-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
  margin-top: 1rem;
}
@media (min-width: 640px) {
  .shopping-list { grid-template-columns: repeat(2, 1fr); }
}
.shopping-list li {
  padding: 0.9rem 1rem;
  background: var(--surface);
  border-left: 3px solid var(--moss);
  font-size: 0.9375rem;
  line-height: 1.6;
}
.shopping-list li b {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.05em;
  letter-spacing: -0.01em;
}
.shopping-list li small {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  color: var(--ink);
  opacity: 0.65;
  margin-top: 0.25rem;
}

/* ---------- field notes (reminders.html) -------------------------------- */
.field-notes {
  counter-reset: note;
  margin-top: clamp(1.5rem, 3vw, 2rem);
  max-width: 720px;
  margin-inline: auto;
}
.field-notes li {
  position: relative;
  counter-increment: note;
  display: grid;
  grid-template-columns: 1fr;
  padding: 1.5rem 0 1.5rem 2.25rem;
  border-bottom: 1px solid var(--rule);
}
.field-notes li::before {
  content: counter(note, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 1.65rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  color: var(--accent-text);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.field-notes li .note-body {
  font-family: var(--font-display);
  font-weight: 300;
  font-style: italic;
  font-size: clamp(1.0625rem, 2vw, 1.35rem);
  line-height: 1.55;
  color: var(--ink);
  opacity: 0.92;
  max-width: 58ch;
  margin: 0;
}
.field-notes li .note-body a {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  color: var(--accent-text);
  font-style: italic;
}
.field-notes li .note-body b,
.field-notes li .note-body strong {
  font-family: var(--font-display);
  font-weight: 900;
  font-style: normal;
  color: var(--ink);
  opacity: 1;
}
.field-notes li.warn .note-body {
  color: var(--warn);
  opacity: 1;
}

/* ---------- about body -------------------------------------------------- */
.about-body {
  max-width: 680px;
  margin-inline: auto;
  margin-top: clamp(1.5rem, 3vw, 2rem);
}
.about-body h2 {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(1.5rem, 3.5vw, 2.25rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: clamp(2rem, 4vw, 2.75rem) 0 0.85rem;
}
.about-body h3 {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  line-height: 1.2;
  margin: 1.5rem 0 0.6rem;
}
.about-body p {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--ink);
  opacity: 0.9;
  margin-bottom: 0.85rem;
}
.about-body ul {
  display: grid;
  gap: 0.5rem;
  margin: 0.75rem 0 1.25rem 0;
  padding-left: 0;
}
.about-body ul li {
  font-size: 0.9375rem;
  line-height: 1.65;
  padding: 0.45rem 0 0.45rem 1.25rem;
  position: relative;
  color: var(--ink);
  opacity: 0.9;
}
.about-body ul li::before {
  content: '◦';
  position: absolute;
  left: 0;
  top: 0.45rem;
  color: var(--accent);
  font-weight: 700;
}
.about-body code {
  font-family: var(--font-mono);
  font-size: 0.9em;
  background: var(--surface);
  padding: 0.15rem 0.4rem;
  border-radius: 2px;
  color: var(--moss);
}

/* ---------- site footer (shared) ---------------------------------------- */
.site-footer {
  margin-top: clamp(3rem, 6vw, 5rem);
  padding: clamp(2rem, 5vw, 3rem) clamp(1rem, 4vw, 2.5rem);
  background: var(--ink);
  color: var(--paper);
}
.site-footer .footer-grid {
  max-width: 1200px;
  margin-inline: auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
.site-footer p {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  line-height: 1.7;
  color: rgba(244, 237, 225, 0.88);
  background: transparent;
}
.site-footer a {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}
.site-footer .footer-affiliate { font-weight: 500; opacity: 1; }
.site-footer .footer-ai-notice {
  max-width: 1200px;
  margin: 1.75rem auto 0;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(244, 237, 225, 0.18);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.04em;
  line-height: 1.7;
  color: rgba(244, 237, 225, 0.72);
}
.site-footer .footer-ai-notice a {
  color: rgba(244, 237, 225, 0.92);
}
@media (min-width: 640px) {
  .site-footer .footer-grid {
    grid-template-columns: 2fr 1fr 1fr;
    gap: 2rem;
  }
}

/* ==========================================================================
   MOBILE-FIRST RWD refinements (375px / 414px priority)
   ========================================================================== */
@media (max-width: 520px) {
  /* Page header */
  .page-header h1 { font-size: clamp(2rem, 10vw, 3rem); line-height: 1.04; }
  .page-header .lede { font-size: 1rem; line-height: 1.75; }

  /* Area tabs: more comfortable tap targets */
  .area-tabs a {
    padding: 0.75rem 1.1rem;
    font-size: 0.72rem;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
  }

  /* Restaurant cards: single column, readable */
  .restaurant-card { padding: 1.15rem 1.15rem 1.35rem; }
  .restaurant-card .rc-name { font-size: 1.3rem; }
  .restaurant-card .rc-signature { font-size: 1rem; line-height: 1.55; }

  .restaurant-card .rc-links {
    gap: 0.4rem;
    padding-top: 0.65rem;
  }
  .restaurant-card .rc-links a {
    flex: 1 1 auto;
    justify-content: center;
    min-height: 44px;
    padding: 0.65rem 0.75rem;
    font-size: 0.78rem;
  }
  .restaurant-card .rc-links a[href^="tel:"] {
    flex: 1 1 100%;
    background: var(--ink);
    color: var(--paper);
    border-color: var(--ink);
  }

  /* Logistics blocks */
  .logistics-block h2 { font-size: clamp(1.4rem, 6vw, 1.75rem); }
  .logistics-block p { font-size: 1rem; line-height: 1.8; }
  .logistics-block p.parking,
  .logistics-block p.callout,
  .logistics-block p.estimate { font-size: 0.9375rem; padding: 1rem; }

  /* Fare table */
  .fare-table { grid-template-columns: 44% 56%; font-size: 0.875rem; }
  .fare-table dt, .fare-table dd { padding: 0.55rem 0.4rem; font-size: 0.875rem; }

  /* eSIM critical */
  .esim-critical { padding: 2rem 1.25rem; }
  .esim-time { font-size: clamp(3rem, 18vw, 5rem); }
  .esim-body { font-size: 0.9375rem; }

  /* Lisboeta benefit callout */
  .lisboeta-benefit { padding: 1.5rem 1.15rem; }
  .lisboeta-benefit h2 { font-size: 1.4rem; line-height: 1.2; }
  .benefit-table { padding: 0.85rem 0.95rem; }

  /* Customs warning: tighter padding, preserved impact */
  .customs-warning.bleed { padding: 2.5rem 1.25rem; }
  .customs-warning h2 { font-size: clamp(1.75rem, 9vw, 2.25rem); line-height: 1.08; }
  .forbidden-list li { font-size: 0.9375rem; padding: 0.65rem 0.85rem; }

  /* Shopping list */
  .shopping-list li { padding: 0.95rem 1rem; font-size: 0.9375rem; }

  /* Field notes */
  .field-notes li .note-body {
    font-size: 1.15rem;
    line-height: 1.6;
  }
}

/* ==========================================================================
   Lisboeta benefit · premium callout (Boarding-Pass-privilege stamp)
   Extends existing base in list.css:497
   ========================================================================== */
.lisboeta-benefit {
  position: relative;
  background: var(--paper);
  box-shadow: 0 1px 0 var(--accent), 0 -1px 0 var(--accent);
}
.lisboeta-benefit::before {
  content: "✦  Boarding  Pass  ·  Privilege  ✦";
  display: block;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.28em;
  font-weight: 600;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 0.75rem;
  opacity: 0.95;
}
.lisboeta-benefit h2 {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(1.65rem, 4vw, 2.5rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-wrap: balance;
}
.benefit-table dd b {
  background: linear-gradient(transparent 60%, rgba(217, 126, 43, 0.38) 60%);
  padding: 0 0.12em;
}

/* ==========================================================================
   Area group heading polish — make it feel like an editorial chapter
   ========================================================================== */
.area-group h2 {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
}
.area-group h2::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--rule);
  transform: translateY(-0.4em);
}

/* ==========================================================================
   community.html — Threads / Dcard / Blog / YouTube picks
   ========================================================================== */
.community-group {
  margin-top: clamp(2.5rem, 5vw, 4rem);
  padding-top: clamp(1.5rem, 3vw, 2rem);
  border-top: 1px solid var(--rule);
  scroll-margin-top: 80px;
  /* below-the-fold grouping — safe for perf because each group
     is anchor-linked and its content is already fixed-card grid */
  content-visibility: auto;
  contain-intrinsic-size: 1px 800px;
}
@media print, (prefers-reduced-motion: reduce) {
  .community-group { content-visibility: visible; contain-intrinsic-size: auto; }
}
.community-group:first-of-type {
  border-top: 0;
  padding-top: 0;
}
.community-group h2 {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(1.65rem, 4vw, 2.5rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
}
.community-group h2::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--rule);
  transform: translateY(-0.4em);
}
.community-group .group-intro {
  font-size: 0.9375rem;
  line-height: 1.7;
  color: var(--ink);
  opacity: 0.72;
  max-width: 58ch;
  margin-bottom: clamp(1.25rem, 2.5vw, 1.75rem);
}

.community-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.85rem;
  list-style: none;
  padding: 0;
  margin: 0;
}
@media (min-width: 960px) {
  .community-list {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem 2rem;
  }
  /* Threads group has a single item — force full width to avoid orphan */
  #threads .community-list {
    grid-template-columns: 1fr;
  }
  #threads .community-list li {
    max-width: 62ch;
  }
  /* Dcard has 5 — let the trailing odd card span full width, centered */
  #dcard .community-list li:nth-child(5) {
    grid-column: 1 / -1;
    max-width: 62ch;
    justify-self: center;
  }
  /* Video cards: stack thumb above body even in 2-col */
  .video-list li > a {
    display: flex;
    flex-direction: column;
  }
}

.community-list li {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 3px;
  transition: transform var(--dur-fast) var(--ease-out),
              box-shadow var(--dur-fast) var(--ease-out),
              border-color var(--dur-fast) var(--ease-out);
  overflow: hidden;
}
.community-list li::before {
  content: "";
  position: absolute;
  top: 0; left: 0; bottom: 0;
  width: 3px;
  background: var(--accent);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform var(--dur-mid) var(--ease-editorial);
  z-index: 1;
}
.community-list li:hover,
.community-list li:focus-within {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(15, 26, 20, 0.07);
  border-color: rgba(15, 26, 20, 0.22);
}
.community-list li:hover::before,
.community-list li:focus-within::before {
  transform: scaleY(1);
}
.community-list li > a {
  display: block;
  padding: 1.15rem 1.25rem 1.3rem;
  color: inherit;
  text-decoration: none;
}

.community-list .c-type {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--moss);
  font-weight: 600;
  margin-bottom: 0.45rem;
  opacity: 0.92;
}

.community-list h3 {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(1.1rem, 2.2vw, 1.3rem);
  line-height: 1.2;
  letter-spacing: -0.015em;
  color: var(--ink);
  margin: 0 0 0.5rem;
}

.community-list .c-note {
  font-size: 0.9rem;
  line-height: 1.65;
  color: var(--ink);
  opacity: 0.78;
  margin: 0;
}
/* inline place/meta links inside c-note — subtle underline so readers spot them */
.community-list .c-note a {
  color: var(--accent-text);
  text-decoration: underline;
  text-decoration-color: rgba(143, 75, 23, 0.35);
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
  transition: text-decoration-color var(--dur-fast) var(--ease-out);
}
.community-list .c-note a:hover,
.community-list .c-note a:focus-visible {
  text-decoration-color: var(--accent-text);
}

/* ---------- YouTube video cards ---------------------------------------- */
.video-list li > a {
  padding: 0;
}
.video-list .video-thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: var(--ink);
  overflow: hidden;
}
.video-list .video-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform var(--dur-mid) var(--ease-out);
}
.video-list li:hover .video-thumb img {
  transform: scale(1.04);
}
.video-list .video-thumb::after {
  content: "▶";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  color: var(--paper);
  background: rgba(15, 26, 20, 0.72);
  border-radius: 50%;
  padding-left: 4px;
  transition: background var(--dur-fast) var(--ease-out),
              transform var(--dur-fast) var(--ease-out);
}
.video-list li:hover .video-thumb::after {
  background: var(--accent);
  transform: translate(-50%, -50%) scale(1.08);
}
.video-list .video-body {
  padding: 1rem 1.15rem 1.25rem;
}

/* ---------- attribution footnote --------------------------------------- */
.attribution-note {
  margin-top: clamp(3rem, 5vw, 4.5rem);
  padding: 1rem 1.15rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-style: italic;
  line-height: 1.7;
  color: var(--ink);
  opacity: 0.72;
  border-top: 1px solid var(--rule);
  max-width: 60ch;
}

/* ---------- community · mobile refinements ----------------------------- */
@media (max-width: 520px) {
  .community-list h3 { font-size: 1.1rem; }
  .community-list .c-note { font-size: 0.9375rem; }
  .community-list li > a { padding: 1.05rem 1.1rem 1.15rem; }
  .video-list .video-body { padding: 0.9rem 1.05rem 1.1rem; }
}

/* ==========================================================================
   films.html — long-form editorial cards (films-list only)
   Overrides community-list defaults with wider breathing room because each
   card carries a full paragraph of prose rather than a one-liner summary.
   Scoped to .films-list so restaurants/community pages stay untouched.
   ========================================================================== */
/* single-column always — film cards are long-form, multi-col compresses prose */
.films-list {
  grid-template-columns: 1fr !important;
  gap: clamp(1.1rem, 2.2vw, 1.65rem);
  max-width: min(68ch, 920px);
  margin-inline: auto;
}
@media (min-width: 960px) {
  .films-list {
    grid-template-columns: 1fr !important;
    gap: clamp(1.35rem, 2.4vw, 1.75rem);
  }
}

/* h2 → group-intro → first card · clearer step-down */
.community-group:has(.films-list) .group-intro {
  margin-bottom: clamp(1.5rem, 3vw, 2.15rem);
}

/* inner padding · 2026-04-19 iter-13 · HOTFIX for nested <a> parser bug
   Previously the whole card was wrapped in <a> · but c-note contains inline
   <a href="/places/..."> place links · HTML5 parser forcibly closes the outer
   <a> when it meets a nested one · which pushed .c-note out of the card's
   styled container · making its text visually collide with the card's
   border-bottom line. Solution: card is now a plain <li class="film-item">
   with padding on the <li>; h3 itself carries the primary outbound link. */
.films-list li.film-item,
.films-list li {
  padding-block: clamp(1.4rem, 2.4vw, 2rem);
  padding-inline: clamp(1.3rem, 3vw, 2.75rem);
}
.films-list h3 a {
  color: inherit;
  text-decoration: none;
  background-image: linear-gradient(to right, currentColor, currentColor);
  background-size: 0% 1px;
  background-position: 0 100%;
  background-repeat: no-repeat;
  transition: background-size var(--dur-mid) var(--ease-editorial);
  padding-bottom: 2px;
}
.films-list li:hover h3 a,
.films-list li:focus-within h3 a {
  background-size: 100% 1px;
}

/* vertical rhythm inside each card · year · title · note */
.films-list .c-type {
  margin-bottom: 0.7rem;
}
.films-list h3 {
  margin: 0 0 0.85rem;
  line-height: 1.22;
}
.films-list h3 .c-en {
  display: inline-block;
  margin-top: 0.15rem;
  font-family: var(--font-display);
  font-weight: 300;
  font-style: italic;
  font-size: 0.82em;
  letter-spacing: -0.005em;
  opacity: 0.72;
}
.films-list .c-note {
  line-height: 1.72;
  margin-top: 0.25rem;
}

/* era sections · extra air between eras so the timeline reads as distinct strata */
#era-2010s,
#era-2000s,
#era-1970s {
  margin-top: clamp(3.25rem, 6.5vw, 5rem);
  padding-top: clamp(1.75rem, 3.5vw, 2.5rem);
}

@media (max-width: 520px) {
  .films-list { gap: 1rem; }
  .films-list h3 { margin-bottom: 0.7rem; }
  .films-list h3 .c-en {
    display: block;
    margin-top: 0.25rem;
    font-size: 0.78em;
  }
  .films-list .c-type { margin-bottom: 0.55rem; }
}

/* ---------- history-list + lit-list · 2026-04-19 iter-13.1 ·
   mirrors films-list / music-list after the nested-<a> HOTFIX pattern.
   Card padding sits on <li class="*-item"> · h3 carries the outbound link · inline
   /places/*.html links in .c-note now survive (no parser early-close). ---------- */
.history-list,
.lit-list {
  grid-template-columns: 1fr !important;
  gap: clamp(1.1rem, 2.2vw, 1.65rem);
  max-width: min(68ch, 920px);
  margin-inline: auto;
}
.history-list li.history-item,
.history-list li,
.lit-list li.lit-item,
.lit-list li {
  padding-block: clamp(1.4rem, 2.4vw, 2rem);
  padding-inline: clamp(1.3rem, 3vw, 2.75rem);
}
.history-list h3 a,
.lit-list h3 a {
  color: inherit;
  text-decoration: none;
  background-image: linear-gradient(to right, currentColor, currentColor);
  background-size: 0% 1px;
  background-position: 0 100%;
  background-repeat: no-repeat;
  transition: background-size var(--dur-mid) var(--ease-editorial);
  padding-bottom: 2px;
}
.history-list li:hover h3 a,
.history-list li:focus-within h3 a,
.lit-list li:hover h3 a,
.lit-list li:focus-within h3 a {
  background-size: 100% 1px;
}
.history-list h3 a:focus-visible,
.lit-list h3 a:focus-visible,
.films-list h3 a:focus-visible,
.music-list h3 a:focus-visible {
  outline: 2px solid var(--accent-text);
  outline-offset: 3px;
  background-size: 100% 1px;
}
@media (max-width: 520px) {
  .history-list,
  .lit-list { gap: 1rem; }
}

/* ==========================================================================
   Currency · exchange layers (logistics.html #currency)
   3-layer guide: Taiwan banks → airport → on-ground
   ========================================================================== */
.exchange-h3 {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(1.25rem, 2.6vw, 1.6rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-top: clamp(1.75rem, 3vw, 2.25rem);
  margin-bottom: 0.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--rule);
}
.exchange-intro {
  font-size: 0.9375rem;
  line-height: 1.7;
  color: var(--ink);
  opacity: 0.78;
  max-width: 58ch;
  margin-bottom: clamp(1.25rem, 2vw, 1.5rem);
}

.exchange-layers {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin: clamp(1.5rem, 3vw, 2.25rem) 0 clamp(1.75rem, 3.5vw, 2.5rem);
}
@media (min-width: 1024px) {
  .exchange-layers {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
    position: relative;
  }
  /* linear connector: 台灣 → 機場 → 當地 — hairline between cards */
  .exchange-layers::before {
    content: "";
    position: absolute;
    top: 2.15rem;
    left: calc(33.333% - 0.625rem);
    right: calc(33.333% - 0.625rem);
    height: 1px;
    background: var(--rule);
    pointer-events: none;
    z-index: 0;
  }
}
@media (min-width: 1440px) {
  .exchange-layers { gap: 1.75rem; }
  .exchange-layer { padding: 1.75rem 1.65rem 1.75rem; }
}

.exchange-layer {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 1.4rem 1.35rem 1.45rem;
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 3px;
  z-index: 1;
  transition: transform var(--dur-fast) var(--ease-out),
              box-shadow var(--dur-fast) var(--ease-out),
              border-color var(--dur-fast) var(--ease-out);
}
.exchange-layer::before {
  content: "";
  position: absolute;
  top: 0; left: 0; bottom: 0;
  width: 3px;
  background: var(--accent);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform var(--dur-mid) var(--ease-editorial);
}
.exchange-layer:hover,
.exchange-layer:focus-within {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(15, 26, 20, 0.07);
  border-color: rgba(15, 26, 20, 0.22);
}
.exchange-layer:hover::before,
.exchange-layer:focus-within::before {
  transform: scaleY(1);
}

/* print-magazine numeral: hairline-circled "01" + " / 03" */
.exchange-layer .layer-no {
  display: inline-flex;
  align-items: baseline;
  gap: 0.3rem;
  margin: 0 0 0.65rem;
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
  line-height: 1;
}
.exchange-layer .layer-no-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.15rem;
  height: 2.15rem;
  border: 1px solid var(--accent-text);
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--accent-text);
  letter-spacing: 0.04em;
}
.exchange-layer .layer-no-sep,
.exchange-layer .layer-no-total {
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--ink);
  opacity: 0.55;
}
.exchange-layer .layer-no-sep { opacity: 0.35; }
.exchange-layer .layer-tag {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--moss);
  font-weight: 600;
  margin-bottom: 0.5rem;
  opacity: 0.92;
}
.exchange-layer h4 {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(1.1rem, 2vw, 1.3rem);
  line-height: 1.15;
  letter-spacing: -0.015em;
  color: var(--ink);
  margin: 0 0 0.5rem;
}
.exchange-layer .layer-lede {
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--ink);
  opacity: 0.78;
  margin: 0 0 0.95rem;
  max-width: none;
  font-style: italic;
  font-family: var(--font-display);
  font-weight: 300;
}

.exchange-dl {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  margin: 0;
  border-top: 1px solid var(--rule);
}
.exchange-dl dt {
  padding: 0.65rem 0.25rem 0.15rem 0;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink);
  opacity: 0.62;
  font-weight: 500;
}
.exchange-dl dd {
  margin: 0 0 0.55rem;
  padding: 0 0 0.7rem;
  font-size: 0.88rem;
  line-height: 1.6;
  color: var(--ink);
  border-bottom: 1px solid var(--rule);
}
.exchange-dl dd:last-of-type {
  border-bottom: 0;
  margin-bottom: 0;
  padding-bottom: 0.15rem;
}
.exchange-dl dd b {
  color: var(--accent-text);
  font-weight: 700;
}

.logistics-block p.sources-note {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  line-height: 1.7;
  letter-spacing: 0.02em;
  color: var(--ink);
  opacity: 0.72;
  margin-top: 0.85rem;
  max-width: 72ch;
  padding-top: 0.75rem;
  border-top: 1px solid var(--rule);
}

@media (max-width: 520px) {
  .exchange-layer { padding: 1.2rem 1.15rem 1.25rem; }
  .exchange-layer .layer-no-num { width: 1.9rem; height: 1.9rem; font-size: 0.72rem; }
  .exchange-layer h4 { font-size: 1.15rem; }
  .exchange-dl dt { font-size: 0.72rem; }
  .exchange-dl dd { font-size: 0.9rem; line-height: 1.65; }
}

/* ---------- context-callout · 段首情境(TL;DR 樣式) ------------------ */
.logistics-block p.callout.context-callout {
  margin-bottom: clamp(1.5rem, 3vw, 2rem);
}

/* ---------- cost-compare · 隱性成本 infographic ------------------------ */
.cost-compare {
  margin: clamp(1rem, 2vw, 1.5rem) 0 clamp(1.25rem, 2.5vw, 1.75rem);
  padding: clamp(1rem, 2vw, 1.4rem) clamp(1.1rem, 2.2vw, 1.5rem) clamp(0.95rem, 2vw, 1.3rem);
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 2px;
  position: relative;
}
.cost-compare::before {
  content: "";
  position: absolute;
  top: 0; left: 0; bottom: 0;
  width: 2px;
  background: var(--ink);
  opacity: 0.85;
}
.cost-compare-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink);
  opacity: 0.62;
  font-weight: 600;
  margin: 0 0 0.85rem;
}
.cost-compare-row {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: clamp(0.75rem, 2vw, 1.5rem);
}
.cost-compare-cell {
  min-width: 0;
}
.cost-compare-label {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink);
  opacity: 0.6;
  font-weight: 500;
  margin: 0 0 0.3rem;
}
.cost-compare-value {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(1.5rem, 4.5vw, 2.1rem);
  line-height: 1;
  letter-spacing: -0.025em;
  color: var(--ink);
  opacity: 1;
  font-variant-numeric: tabular-nums;
  margin: 0 0 0.35rem;
}
.cost-compare-eyebrow,
.cost-compare-delta { opacity: 1; }
.cost-compare-sub {
  font-size: 0.78rem;
  line-height: 1.5;
  color: var(--ink);
  opacity: 0.6;
  margin: 0;
}
.cost-compare-rule {
  width: 1px;
  height: clamp(2.75rem, 7vw, 3.75rem);
  background: var(--rule);
  align-self: center;
}
.cost-compare-delta {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.55rem 0.85rem;
  margin: clamp(0.85rem, 1.8vw, 1.15rem) 0 0;
  padding-top: clamp(0.7rem, 1.5vw, 0.95rem);
  border-top: 1px solid var(--rule);
}
.cost-compare-delta-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-text);
  font-weight: 700;
}
.cost-compare-delta-value {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(1.05rem, 2.6vw, 1.3rem);
  letter-spacing: -0.01em;
  color: var(--accent-text);
  font-variant-numeric: tabular-nums;
}
.cost-compare-delta-note {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.02em;
  color: var(--ink);
  opacity: 0.7;
}
@media (max-width: 480px) {
  .cost-compare-row {
    grid-template-columns: 1fr;
    gap: 0.9rem;
  }
  .cost-compare-rule {
    width: 100%;
    height: 1px;
  }
}

/* ---------- conclusion-callout · 段尾結論條 --------------------------- */
.logistics-block .callout.conclusion-callout {
  display: block;
  margin-top: clamp(1.5rem, 3vw, 2.25rem);
  padding: clamp(1.1rem, 2.2vw, 1.5rem) clamp(1.2rem, 2.4vw, 1.65rem);
  background: rgba(217, 126, 43, 0.07);
  border-left: 4px solid var(--accent);
  border-radius: 0 2px 2px 0;
  font-size: 0.9375rem;
  line-height: 1.7;
  opacity: 1;
}
.conclusion-callout .conclusion-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent-text);
  font-weight: 700;
  margin: 0 0 0.55rem;
}
.conclusion-callout .conclusion-lead {
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--ink);
  opacity: 1;
  margin: 0 0 0.85rem;
  max-width: 62ch;
}
.conclusion-callout .conclusion-eyebrow { opacity: 1; }
.conclusion-callout .conclusion-lead b {
  color: var(--accent-text);
  font-weight: 700;
}
.conclusion-callout .conclusion-steps {
  list-style: none;
  counter-reset: conclusion-step;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.55rem;
}
.conclusion-callout .conclusion-steps li {
  counter-increment: conclusion-step;
  position: relative;
  padding-left: 2.1rem;
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--ink);
  max-width: 62ch;
}
.conclusion-callout .conclusion-steps li::before {
  content: counter(conclusion-step);
  position: absolute;
  left: 0;
  top: 0.05em;
  width: 1.5rem;
  height: 1.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--accent-text);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--accent-text);
  font-variant-numeric: tabular-nums;
}
@media (min-width: 760px) {
  .conclusion-callout .conclusion-steps {
    grid-template-columns: 1fr 1fr;
    gap: 0.7rem 1.5rem;
  }
}

/* ==========================================================================
   checklist.html — pre-flight checklist with localStorage persistence
   ========================================================================== */

/* --- progress counter + reset --- */
.checklist-progress {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  margin-top: 1.25rem;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  letter-spacing: 0.06em;
  color: var(--ink);
  opacity: 0.85;
}
.checklist-progress .cl-count {
  padding: 0.45rem 0.85rem;
  border: 1px solid var(--rule);
  border-radius: 999px;
  background: var(--paper-3);
}
.checklist-progress #checked-count,
.checklist-progress #total-count {
  font-weight: 700;
  color: #8f4b17;
}
.checklist-progress .reset-btn {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.45rem 0.85rem;
  border: 1px solid var(--rule);
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  transition: background-color var(--dur-fast) var(--ease-out),
              color var(--dur-fast) var(--ease-out),
              border-color var(--dur-fast) var(--ease-out),
              opacity var(--dur-fast) var(--ease-out);
}
.checklist-progress .reset-btn:hover,
.checklist-progress .reset-btn:focus-visible {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
  opacity: 1;
}

/* ---------- warn callout · 2026-04-19 iter-12 ·
   extracted from 8 inline-style attrs in checklist.html ------------------ */
.warn-callout {
  margin: clamp(1.5rem, 3vw, 2.25rem) 0;
  padding: clamp(1.25rem, 2.4vw, 1.75rem);
  background: var(--surface);
  border-left: 4px solid var(--warn);
  border-radius: 4px;
}
.warn-callout__eyebrow {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--warn);
  font-weight: 600;
  margin: 0 0 0.5rem;
}
.warn-callout__title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(1.15rem, 2vw, 1.4rem);
  line-height: 1.2;
  margin: 0 0 0.75rem;
}
.warn-callout p {
  margin: 0 0 0.75rem;
  line-height: 1.65;
}
.warn-callout ul {
  margin: 0 0 0.75rem;
  padding-left: 1.25rem;
  line-height: 1.7;
}
.warn-callout .footnote {
  margin: 0;
  font-size: 0.875rem;
  opacity: 0.82;
  line-height: 1.65;
}
/* --- power-bank rule meta · small source-citation line inside pb-rule-body --- */
.pb-rule-meta,
.source-note {
  opacity: 0.72;
}
/* inline source-note small · used in field-notes, day pages, and any prose that
   ends with a "查證 yyyy-mm-dd · source-link" footer */
small.source-note { display: inline; }

/* -- closing paragraph modifier for vocab lede or similar prose -- */
.vocab-lede--closing { margin-top: 1.5em; }

/* ---------- eSIM teaching callout · 2026-04-19 iter-12 ·
   extracted from 2 inline-style attrs in logistics.html -------------------- */
.esim-teach-callout {
  margin: 1rem 0 1.5rem;
  padding: 1rem 1.15rem;
  border-left: 3px solid var(--accent-text);
  background: rgba(143, 75, 23, 0.06);
  font-size: 0.95rem;
  line-height: 1.65;
}
.esim-teach-callout__eyebrow {
  margin: 0 0 0.4rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-text);
}
.esim-teach-callout p:last-child { margin: 0; }

/* ---------- logistics utility classes · 2026-04-19 iter-12 ·
   extracted from 25 inline-style attrs in logistics.html ------------------ */
.callout--warn {
  border-left-color: var(--warn) !important;
}
.logistics-h3 {
  margin-top: 2rem;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(1.15rem, 2vw, 1.35rem);
}
.device-compat {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 0.5rem 1rem;
  margin: 0.75rem 0 0;
  font-size: 0.9375rem;
  line-height: 1.65;
}
.device-compat dt {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.72;
  padding-top: 0.15rem;
  padding-inline-end: 0.25rem;
}
.device-compat dd { margin: 0; }

.logistics-body-emphasis {
  font-size: 1.05rem;
  line-height: 1.75;
  max-width: 58ch;
  margin-bottom: 1.25rem;
}
.logistics-warn-box {
  margin-top: 1.25rem;
  padding: 1rem;
  background: var(--surface);
  border-left: 3px solid var(--warn);
  font-size: 0.9375rem;
}
.logistics-attribution {
  margin-top: clamp(2.5rem, 5vw, 4rem);
  padding: 1.5rem;
  background: var(--surface);
  border-left: 3px solid var(--accent-text);
  font-size: 0.9375rem;
  line-height: 1.7;
}
.logistics-attribution .logistics-attribution-meta {
  margin-top: 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  opacity: 0.72;
}
.logistics-inline-note {
  margin-top: 0.75rem;
  font-size: 0.9375rem;
  opacity: 0.82;
}
.logistics-reminder { margin-top: 1rem; }
.logistics-device-intro { margin-top: 0.5rem; }
.logistics-cta-wrap { margin-top: 1rem; }
.callout--spaced { margin-top: 0.9rem; }

/* --- group sections --- */
.checklist-group {
  margin-top: clamp(2rem, 5vw, 3rem);
  scroll-margin-top: 80px;
}
.cl-group-header {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--rule);
}
.cl-group-no {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #8f4b17;
  font-weight: 700;
}
.cl-group-title {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.6vw, 1.75rem);
  font-weight: 900;
  line-height: 1.1;
  margin: 0;
}
.cl-group-intro {
  font-family: var(--font-display);
  font-weight: 300;
  font-style: italic;
  line-height: 1.55;
  max-width: 58ch;
  margin: 0 0 1.25rem;
  color: var(--ink);
  opacity: 0.78;
  font-size: clamp(0.975rem, 1.2vw, 1.05rem);
}

/* --- checklist items --- */
.checklist {
  list-style: none;
  padding: 0;
  margin: 0;
  max-width: 720px;
}
.checklist li {
  display: block;
  border-bottom: 1px solid var(--hairline);
}
.checklist li:last-child {
  border-bottom: 1px solid var(--rule);
}
.checklist label {
  display: flex;
  gap: 0.9rem;
  align-items: flex-start;
  cursor: pointer;
  padding: 0.9rem 0.25rem;
  position: relative;
  transition: background var(--dur-fast) var(--ease-out);
}
.checklist label:hover {
  background: var(--paper-3);
}

/* hide native checkbox */
.checklist input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
  width: 0;
  height: 0;
}

/* custom check mark */
.checklist .check-mark {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border: 2px solid var(--ink);
  border-radius: 3px;
  background: var(--paper);
  margin-top: 0.15rem;
  position: relative;
  transition: background var(--dur-fast) var(--ease-out),
              border-color var(--dur-fast) var(--ease-out);
}
.checklist input:checked ~ .check-mark {
  background: var(--ink);
  border-color: var(--ink);
}
.checklist input:checked ~ .check-mark::after {
  content: "✓";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -52%);
  color: var(--paper);
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-weight: 700;
  line-height: 1;
}
.checklist input:focus-visible ~ .check-mark {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* text */
.checklist .check-text {
  font-family: var(--font-body);
  font-size: 0.9875rem;
  line-height: 1.65;
  color: var(--ink);
  opacity: 0.92;
  transition: opacity var(--dur-fast) var(--ease-out);
}
.checklist .check-text b,
.checklist .check-text strong {
  font-weight: 700;
  color: var(--ink);
  opacity: 1;
}
.checklist .check-text a {
  color: #8f4b17;
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
.checklist input:checked ~ .check-text {
  opacity: 0.42;
  text-decoration: line-through;
  text-decoration-thickness: 1px;
  text-decoration-color: rgba(15, 26, 20, 0.35);
}

/* ==========================================================================
   Power bank fact-check callout
   ========================================================================== */
.pb-callout {
  margin: clamp(2.5rem, 5vw, 3.5rem) 0;
  padding: clamp(1.75rem, 3.5vw, 2.5rem) clamp(1.5rem, 3vw, 2.25rem);
  background: var(--paper-3);
  border: 2px solid var(--ink);
  border-radius: 4px;
  position: relative;
  max-width: 860px;
}
.pb-callout::before {
  content: "";
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  height: 4px;
  background: var(--warn);
}
.pb-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--warn);
  font-weight: 600;
  margin-bottom: 0.75rem;
}
.pb-callout h3 {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(1.5rem, 3.5vw, 2rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0 0 1rem;
  color: var(--ink);
}
.pb-tldr {
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.75;
  color: var(--ink);
  opacity: 0.92;
  margin: 0 0 1.5rem;
  padding: 1rem 1.15rem;
  background: var(--paper);
  border-left: 3px solid var(--accent);
  border-radius: 2px;
}
.pb-tldr b {
  font-weight: 700;
  color: var(--ink);
}
.pb-tldr em {
  font-style: italic;
  color: var(--warn);
  font-weight: 600;
}

/* rule cards grid */
.pb-rules-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-bottom: 1.5rem;
}
@media (min-width: 720px) {
  .pb-rules-grid { grid-template-columns: repeat(2, 1fr); }
  .pb-rule--warn { grid-column: 1 / -1; }
}
.pb-rule {
  padding: 1.15rem 1.25rem;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 3px;
}
.pb-rule--warn {
  border-color: var(--warn);
  background: rgba(193, 58, 58, 0.05);
}
.pb-rule-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
  opacity: 0.7;
  margin-bottom: 0.55rem;
  font-weight: 600;
}
.pb-rule--warn .pb-rule-label {
  color: var(--warn);
  opacity: 1;
}
.pb-rule-body {
  font-family: var(--font-body);
  font-size: 0.9375rem;
  line-height: 1.7;
  color: var(--ink);
  opacity: 0.9;
  margin: 0;
}
.pb-rule-body b { font-weight: 700; color: var(--ink); opacity: 1; }
.pb-rule-body em { font-style: italic; color: var(--warn); font-weight: 600; }

/* Wh calculator block */
.pb-calc {
  padding: 1.15rem 1.25rem;
  background: var(--ink);
  color: var(--paper);
  border-radius: 3px;
  margin-bottom: 1.5rem;
}
.pb-calc-title {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 0.75rem;
}
.pb-calc-formula {
  font-family: var(--font-mono);
  font-size: 1.25rem;
  letter-spacing: 0.02em;
  color: var(--paper);
  margin: 0 0 0.6rem;
}
.pb-calc-formula b { color: var(--accent); font-weight: 700; }
.pb-calc-example {
  font-family: var(--font-body);
  font-size: 0.875rem;
  line-height: 1.7;
  color: var(--paper);
  opacity: 0.8;
  margin: 0;
}

/* action list */
.pb-action {
  padding: 1.15rem 1.25rem;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 3px;
  margin-bottom: 1.5rem;
}
.pb-action-title {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
  margin: 0 0 0.75rem;
}
.pb-action-list {
  margin: 0;
  padding-left: 1.25rem;
  display: grid;
  gap: 0.55rem;
}
.pb-action-list li {
  font-family: var(--font-body);
  font-size: 0.9375rem;
  line-height: 1.7;
  color: var(--ink);
  opacity: 0.9;
}
.pb-action-list li b { font-weight: 700; color: var(--ink); opacity: 1; }

/* sources details */
.pb-sources {
  margin-top: 0.5rem;
  border-top: 1px solid var(--rule);
  padding-top: 1rem;
}
.pb-sources summary {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
  opacity: 0.7;
  cursor: pointer;
  font-weight: 600;
  padding: 0.3rem 0;
  list-style: none;
}
.pb-sources summary::marker { content: ""; }
.pb-sources summary::before {
  content: "▸ ";
  color: var(--accent);
  transition: transform var(--dur-fast) var(--ease-out);
  display: inline-block;
}
.pb-sources[open] summary::before {
  content: "▾ ";
}
.pb-sources summary:hover { opacity: 1; }
.pb-sources ol {
  margin: 0.75rem 0 0;
  padding-left: 1.25rem;
  display: grid;
  gap: 0.45rem;
}
.pb-sources li {
  font-family: var(--font-body);
  font-size: 0.875rem;
  line-height: 1.65;
  color: var(--ink);
  opacity: 0.85;
}
.pb-sources a {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

/* --- checklist mobile refinements --- */
@media (max-width: 520px) {
  .checklist-progress {
    font-size: 0.75rem;
    gap: 0.65rem;
  }
  .checklist-progress .cl-count,
  .checklist-progress .reset-btn {
    padding: 0.45rem 0.75rem;
  }
  .checklist label {
    padding: 0.95rem 0.25rem;
    gap: 0.75rem;
    min-height: 44px;
  }
  .checklist .check-text { font-size: 0.95rem; line-height: 1.65; }
  .checklist .check-mark { width: 24px; height: 24px; margin-top: 0.1rem; }

  .pb-callout { padding: 1.5rem 1.1rem; }
  .pb-tldr { font-size: 0.9875rem; padding: 0.9rem 1rem; }
  .pb-calc-formula { font-size: 1.0625rem; }
  .pb-rule { padding: 1rem; }
}

/* ==========================================================================
   music.html — editorial grammar for a listening list (.music-list only)
   Distinct from .films-list: a fixed glyph in a left gutter stands in for the
   hover-only accent bar, a structured metadata row replaces the single
   c-type line, and a hairline "waveform" underscore anchors the title.
   Scoped strictly to .music-list; do not touch .films-list or .community-list
   defaults above.
   ========================================================================== */

/* single-column long-form, same breathing room as films to keep pairing */
.music-list {
  grid-template-columns: 1fr !important;
  gap: clamp(1.1rem, 2.2vw, 1.65rem);
  max-width: min(68ch, 920px);
  margin-inline: auto;
}
@media (min-width: 960px) {
  .music-list {
    grid-template-columns: 1fr !important;
    gap: clamp(1.35rem, 2.4vw, 1.75rem);
  }
}

/* h2 → group-intro → first card · match films rhythm */
.community-group:has(.music-list) .group-intro {
  margin-bottom: clamp(1.5rem, 3vw, 2.15rem);
}

/* ---------- card frame · left gutter for the genre glyph ----------------
   2026-04-19 iter-13 · HOTFIX: same nested-<a> parser bug as films-list.
   Card is now <li class="music-item"> with padding on <li>; h3 carries the
   outbound streaming-platform link. */
.music-list li.music-item,
.music-list li {
  padding-block: clamp(1.4rem, 2.4vw, 2rem);
  padding-inline: clamp(2.55rem, 4.4vw, 3.15rem) clamp(1.3rem, 3vw, 2.75rem);
  position: relative;
}
.music-list h3 a {
  color: inherit;
  text-decoration: none;
  background-image: linear-gradient(to right, currentColor, currentColor);
  background-size: 0% 1px;
  background-position: 0 100%;
  background-repeat: no-repeat;
  transition: background-size var(--dur-mid) var(--ease-editorial);
  padding-bottom: 2px;
}
.music-list li:hover h3 a,
.music-list li:focus-within h3 a {
  background-size: 100% 1px;
}

/* Persistent genre glyph — positioned on <li>, not <a> (since <a> no longer wraps) */
.music-list li::before {
  content: "◐";
  position: absolute;
  top: clamp(1.5rem, 2.6vw, 1.85rem);
  left: clamp(1.15rem, 2vw, 1.45rem);
  font-family: var(--font-mono);
  font-size: 0.82rem;
  line-height: 1;
  color: var(--moss);
  opacity: 0.55;
  transition: opacity var(--dur-fast) var(--ease-out),
              color var(--dur-fast) var(--ease-out),
              transform var(--dur-mid) var(--ease-editorial);
}
.music-list li:hover::before,
.music-list li:focus-within::before {
  opacity: 1;
  color: var(--accent-text);
  transform: rotate(180deg);
}

/* genre-specific glyphs — one character per section, stays Kinfolk-restrained */
.community-group[data-genre="patois"] .music-list li::before { content: "♪"; }
.community-group[data-genre="wkw"]    .music-list li::before { content: "◐"; }
.community-group[data-genre="stage"]  .music-list li::before { content: "≋"; }

/* ---------- metadata row · year + genre + platform chip ---------------- */
.music-list .c-year {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.55rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--ink);
  opacity: 0.78;
  margin: 0 0 0.35rem;
}
.music-list .c-year .sep {
  opacity: 0.4;
  font-weight: 400;
}
.music-list .c-genre {
  font-family: var(--font-mono);
  letter-spacing: 0.12em;
  color: var(--ink);
  opacity: 0.72;
}

/* eyebrow color differentiation · only the year-line, kept subtle */
.community-group[data-genre="patois"] .music-list .c-year { color: var(--accent-text); opacity: 0.95; }
.community-group[data-genre="wkw"]    .music-list .c-year { color: var(--moss); opacity: 0.95; }
.community-group[data-genre="stage"]  .music-list .c-year { color: var(--ink); opacity: 0.78; }

/* the genre sub-label picks up the same hue so the colour reads as section,
   not as a random orphan pill */
.community-group[data-genre="patois"] .music-list .c-genre { color: var(--accent-text); opacity: 0.78; }
.community-group[data-genre="wkw"]    .music-list .c-genre { color: var(--moss); opacity: 0.82; }

/* listen-chip · bordered mono tag, echoes the existing brand-mark language */
.music-list .listen-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35em;
  padding: 0.15rem 0.5rem 0.2rem;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--ink);
  opacity: 0.72;
  border: 1px solid var(--rule);
  border-radius: 0;
  background: transparent;
  transition: color var(--dur-fast) var(--ease-out),
              border-color var(--dur-fast) var(--ease-out),
              opacity var(--dur-fast) var(--ease-out);
}
.music-list .listen-chip::before {
  content: "▸";
  font-size: 0.62em;
  line-height: 1;
  opacity: 0.6;
}
.music-list li:hover .listen-chip,
.music-list li:focus-within .listen-chip {
  color: var(--accent-text);
  border-color: rgba(143, 75, 23, 0.38);
  opacity: 1;
}

/* ---------- credits sub-line · sits between metadata row and title ----- */
.music-list .c-credits {
  font-family: var(--font-display);
  font-weight: 300;
  font-style: italic;
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--ink);
  opacity: 0.68;
  margin: 0 0 0.55rem;
}

/* ---------- title · same scale as films, hairline underscore beneath --- */
.music-list h3 {
  margin: 0 0 0.85rem;
  line-height: 1.22;
  padding-bottom: 0.6rem;
  position: relative;
}
.music-list h3 .c-en {
  display: inline-block;
  margin-top: 0.15rem;
  font-family: var(--font-display);
  font-weight: 300;
  font-style: italic;
  font-size: 0.82em;
  letter-spacing: -0.005em;
  opacity: 0.72;
}
/* waveform hairline · a dashed 1px rule beneath each title, rhythmic dashes
   read as a visual metronome. Kept mono-hue so the restraint holds. */
.music-list h3::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: clamp(2.5rem, 6vw, 3.5rem);
  height: 1px;
  background-image: linear-gradient(to right,
    currentColor 0, currentColor 4px,
    transparent 4px, transparent 8px);
  background-size: 8px 1px;
  background-repeat: repeat-x;
  color: var(--ink);
  opacity: 0.28;
  transition: width var(--dur-mid) var(--ease-editorial),
              opacity var(--dur-fast) var(--ease-out);
}
.music-list li:hover h3::after,
.music-list li:focus-within h3::after {
  width: clamp(4rem, 10vw, 6rem);
  opacity: 0.55;
}

/* ---------- note paragraph · match films for editorial pairing --------- */
.music-list .c-note {
  line-height: 1.72;
  margin-top: 0.25rem;
}

/* ---------- section rhythm · clear strata between genres --------------- */
#sound-identity,
#sound-cinema,
#sound-stage {
  margin-top: clamp(3.25rem, 6.5vw, 5rem);
  padding-top: clamp(1.75rem, 3.5vw, 2.5rem);
}

/* ---------- mobile refinements ----------------------------------------- */
@media (max-width: 520px) {
  .music-list { gap: 1rem; }
  .music-list li {
    padding: 1.2rem 1.15rem 1.35rem 2.35rem;
  }
  .music-list li::before {
    top: 1.3rem;
    left: 1rem;
    font-size: 0.78rem;
  }
  .music-list h3 { margin-bottom: 0.7rem; }
  .music-list .c-year {
    font-size: 0.66rem;
    gap: 0.4rem 0.5rem;
    margin-bottom: 0.4rem;
  }
  .music-list .c-credits {
    font-size: 0.825rem;
    margin-bottom: 0.45rem;
  }
  .music-list .listen-chip {
    padding: 0.1rem 0.45rem 0.15rem;
    font-size: 0.58rem;
  }
}
