.guide-page{--gd-ink:#193d34;--gd-text:#354139;--gd-paper:#fcfaf4;--gd-line:#d6cdb6;--gd-gold:#8d703e;--gd-serif:"Noto Serif TC","Songti TC","PMingLiU","Noto Serif CJK TC",serif;background:var(--gd-paper);color:var(--gd-text);padding-bottom:clamp(3rem,7vw,6.5rem);font-family:"Noto Sans TC","PingFang TC","Microsoft JhengHei",sans-serif;line-height:1.65;overflow-wrap:anywhere}
.guide-page a{color:var(--gd-ink);text-underline-offset:.24em}
.guide-page a:hover{color:#835f25}
.guide-page :focus-visible{outline:3px solid #96762b;outline-offset:4px}
.guide-page .gd-bound,.guide-page .gd-hero,.guide-page .gd-layout{width:min(1200px,90%);margin-inline:auto}
.guide-page .gd-crumb{display:flex;flex-wrap:wrap;align-items:center;gap:.55rem;margin:0;padding:1.25rem 0 1.15rem;color:#615e51;font-size:.875rem}
.guide-page .gd-crumb a{text-decoration:none}
.guide-page .gd-hero{display:grid;grid-template-columns:1.12fr 1fr;align-items:stretch;position:relative;border-block:1px solid var(--gd-gold);background:linear-gradient(110deg,#f7f3e6,#fcf9f0)}
.guide-page .gd-title{padding:clamp(1.5rem,4vw,4.5rem);align-self:center}
.guide-page .gd-hero::before{content:"";position:absolute;left:0;top:-2px;width:3.5rem;height:4px;background:#a88b52}
.guide-page .gd-title h1,.guide-page h2,.guide-page h3,.guide-page .gd-entry strong,.guide-page .gd-terms dt{font-family:var(--gd-serif);color:var(--gd-ink)}
.guide-page .gd-title h1{font-size:clamp(2rem,3.6vw,3.7rem);line-height:1.28;letter-spacing:.005em;text-wrap:pretty;margin:0;max-width:19em;font-weight:750}
.guide-page .gd-title p{font-size:clamp(1rem,1.2vw,1.13rem);line-height:1.9;margin:1rem 0 0;max-width:37em}
.guide-page .gd-hero-art{position:relative;min-width:0;min-height:210px;overflow:hidden}
.guide-page .gd-hero-art img{object-fit:cover;object-position:center;position:absolute;inset:0;display:block;width:100%;height:100%}
.guide-page.gp-hub .gd-hero-art{aspect-ratio:16 / 8}
.guide-page.gp-hub .gd-title h1,.guide-page.gp-calc .gd-title h1{font-size:clamp(2.6rem,5.3vw,5rem);letter-spacing:.04em}
.guide-page .gd-shelf{margin-block:2.7rem 3.4rem}
.guide-page .gd-shelf h2,.guide-page .gd-related h2,.guide-page .gd-prose h2{font-size:clamp(1.55rem,2.4vw,2.2rem);line-height:1.48;letter-spacing:.015em}
.guide-page .gd-shelf h2{border-bottom:1px solid var(--gd-gold);padding-bottom:.6rem;margin:.3rem 0 .6rem}
.guide-page .gd-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));column-gap:2.3rem}
.guide-page .gd-entry{display:grid;grid-template-columns:clamp(95px,10vw,155px) 1fr;align-items:center;gap:1rem;text-decoration:none;border-bottom:1px solid var(--gd-line);padding:.85rem .15rem;min-width:0}
.guide-page .gd-entry img{aspect-ratio:16/10;height:auto;width:100%;object-fit:cover}
.guide-page .gd-entry strong{font-size:clamp(1.05rem,1.37vw,1.32rem);font-weight:700;line-height:1.45;display:block}
.guide-page .gd-entry small{display:block;font-size:.84rem;color:#6c6658;margin-top:.4rem}
.guide-page .gd-entry:hover strong{text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:.25em}
.guide-page .gd-layout,.guide-page .gd-reading{margin-top:clamp(2.1rem,5vw,4.3rem)}
.guide-page .gd-layout{display:grid;grid-template-columns:minmax(0,44rem) minmax(12rem,17rem);justify-content:center;gap:clamp(2.2rem,6vw,6rem)}
.guide-page .gd-reading{width:min(46rem,90%);margin-inline:auto}
.guide-page .gd-prose{font-size:1.065rem;line-height:1.95;min-width:0}
.guide-page .gd-prose p{margin:0 0 1.1rem}
.guide-page .gd-prose h2{margin:2.3rem 0 1.05rem}
.guide-page .gd-prose h3{font-size:1.35rem;margin:1.8rem 0 .75rem;line-height:1.5}
.guide-page .gd-prose section:first-child>h2:first-child,.guide-page .gd-reading>h2:first-child{margin-top:0}
.guide-page .gd-prose ul,.guide-page .gd-prose ol{padding-inline-start:1.5rem;display:block;margin:1rem 0}
.guide-page .gd-prose li{margin:.45rem 0}
.guide-page .gd-prose figure{margin:1.5rem 0 2rem}
.guide-page .gd-prose img{display:block;max-width:100%;height:auto}
.guide-page .gd-prose figcaption{color:#716b5b;font-size:.91rem}
.guide-page .gd-aside{min-width:0}
.guide-page .gd-aside nav{position:sticky;top:7rem;border-top:2px solid var(--gd-gold);padding:.9rem .5rem 1rem}
.guide-page .gd-aside h2{font-size:1.2rem;margin:0 0 .6rem}
.guide-page .gd-aside ol{list-style:none;display:block;margin:0;padding:0}
.guide-page .gd-aside li{border-top:1px solid var(--gd-line);margin:0}
.guide-page .gd-aside a{display:block;text-decoration:none;font-size:.93rem;line-height:1.5;padding:.65rem 0}
.guide-page .gd-layout [id],.guide-page .gd-reading [id]{scroll-margin-top:7rem}
.guide-page .gd-table{overflow-x:auto;margin:1.4rem 0 2rem}
.guide-page .gd-table table{border-collapse:collapse;min-width:380px;width:100%;font-size:.96rem;line-height:1.7}
.guide-page .gd-table caption{text-align:left;font-weight:700;margin:0 0 .5rem}
.guide-page .gd-table th,.guide-page .gd-table td{border-bottom:1px solid var(--gd-line);padding:.6rem .8rem;text-align:left;vertical-align:top}
.guide-page .gd-table thead th{color:#fff;background:var(--gd-ink);font-weight:600}
.gd-classroom .gd-table table {
  min-width: 0;
}
.gd-classroom .gd-table :is(th, td):first-child {
  width: 23%;
  min-width: 6.5em;
  text-wrap: pretty;
}
/* Keep full labels on wider screens. An enumeration may wrap after its comma. */
.gd-classroom .gd-lesson-table :is(th, td):first-child {
  width: 30%;
  text-wrap: wrap;
}
.gd-lesson-table .gd-label-unit {
  white-space: nowrap;
}
@media (max-width: 600px) {
  .gd-classroom .gd-lesson-table :is(th, td):first-child {
    width: 23%;
    min-width: 7.25em;
  }
  .gd-lesson-table .gd-label-unit {
    white-space: normal;
  }
  .gd-lesson-table .gd-label-phrase {
    display: inline-block;
    white-space: nowrap;
  }
  .guide-page .gd-classroom .gd-table :is(th, td) {
    padding-inline: .45rem;
  }
}
.guide-page .gd-note,.guide-page .gd-prose blockquote{background:#f1ebdb;border-inline-start:3px solid var(--gd-gold);padding:.85rem 1.1rem;margin:1.5rem 0}
.guide-page .gd-note h3,.guide-page .gd-note p{margin:.3rem 0}
.guide-page .gd-faq details{border-top:1px solid var(--gd-line);padding:.5rem 0}
.guide-page .gd-faq summary{cursor:pointer;font-weight:650;color:var(--gd-ink);padding:.35rem .2rem}
.guide-page .gd-faq p{margin:.6rem .25rem}
.guide-page .gd-directory>div,.guide-page .gd-terms>div{padding:1rem 0;border-top:1px solid var(--gd-line)}
.guide-page .gd-directory a,.guide-page .gd-terms dt{font-size:1.25rem;font-weight:700}
.guide-page .gd-directory p,.guide-page .gd-terms dd{margin:.2rem 0 0}
.guide-page .gd-related{border-top:1px solid var(--gd-gold);margin:3rem 0 0;padding:1rem 0}
.guide-page .gd-related h2{margin:.2rem 0 1rem;font-size:1.5rem}
.guide-page .gd-related ul{display:flex;flex-wrap:wrap;gap:.45rem 1.75rem;list-style:none;padding:0;margin:0}
.guide-page .gd-related li{margin:0}
@media(max-width:760px){.guide-page .gd-bound,.guide-page .gd-hero,.guide-page .gd-layout,.guide-page .gd-reading{width:min(92%,44rem)}.guide-page .gd-crumb{padding:.86rem 0;font-size:.8rem}.guide-page .gd-hero{grid-template-columns:1fr}.guide-page .gd-title{padding:1.3rem .45rem 1.4rem}.guide-page .gd-title h1{font-size:clamp(1.9rem,6.2vw,2.5rem)}.guide-page .gd-title p{margin:.65rem 0 0;line-height:1.7}.guide-page .gd-hero-art,.guide-page.gp-hub .gd-hero-art{min-height:0;aspect-ratio:2.4}.guide-page .gd-layout{display:flex;flex-direction:column;gap:1.2rem}.guide-page .gd-aside{order:-1}.guide-page .gd-aside nav{position:static;padding:.6rem .2rem}.guide-page .gd-aside ol{display:flex;overflow:auto;white-space:nowrap;gap:1rem}.guide-page .gd-aside li{border:0}.guide-page .gd-aside a{padding:.28rem .1rem}.guide-page .gd-aside h2{font-size:1.02rem;margin-bottom:.1rem}.guide-page .gd-list{grid-template-columns:1fr}.guide-page .gd-entry{grid-template-columns:103px minmax(0,1fr);gap:.8rem}.guide-page .gd-shelf{margin:2rem 0}.guide-page .gd-prose{font-size:1rem;line-height:1.88}.guide-page .gd-prose h2{margin-top:2rem}.guide-page .gd-aside+article{margin-top:.75rem}.guide-page.gp-calc .gd-hero-art{aspect-ratio:3.8}}

.guide-page .gd-source,.guide-page .gd-caption { color:#625a48; font-size:.92rem; }
.guide-page .gd-source { margin-top:.5rem; }
.guide-page .gd-caption { border-inline-start:2px solid var(--gd-gold); padding-left:.8rem; }
.guide-page .gd-inline-links { display:flex; flex-wrap:wrap; gap:.55rem 1.05rem; margin:1.1rem 0; }
.guide-page .gd-playing {border-block:1px solid var(--gd-line); margin:2.8rem 0 1.3rem; padding:1rem 0 1.35rem;}
.guide-page .gd-playing h2{margin:0 0 .25em}
.guide-page .gd-playing a,.guide-page .tai-regional-example {font:inherit; font-weight:650; cursor:pointer; border:1px solid var(--gd-line); background:#f5f1e5; color:var(--gd-ink); display:inline-block; padding:.5em .8em; text-decoration:none;}
.guide-page .tai-regional-example{margin-bottom:.9rem}
.guide-page .tai-examples button small {display:block;font-size:.84em}
.guide-page .tai-quick-read{display:inline-block;margin-block:.65rem}
.guide-page .decision-matrix,.guide-page .framework-grid,.guide-page .tradeoff-grid,.guide-page .information-layers,.guide-page .error-grid {border-top:1px solid var(--gd-line);margin:1rem 0 1.5rem}
.guide-page .gd-decisions article {padding:.65rem 0;border-bottom:1px solid var(--gd-line);}
.guide-page .gd-decisions article h3 {margin:0 0 .15em}
.guide-page .gd-decisions article p {margin:.15em 0}
.guide-page .decision-matrix article {display:flex;gap:.5rem 1.25rem;flex-wrap:wrap}
.guide-page .gd-decisions .tips-section {scroll-margin-top:95px}
.guide-page .gd-prose :is(h2,dt,[id]),.guide-page :is(#tai-table,#full-result){scroll-margin-top:90px}
.gp-hub .gd-entry-copy>p {font-size:.94rem;line-height:1.65;font-weight:400;color:#595b4e;margin:.4em 0 0}
@media(max-width:700px){.gp-hub .gd-archive-entry .gd-entry-copy>p{display:block;font-size:.9rem}.gp-hub .gd-archive-entry{align-items:start}}
.guide-page .gd-sticky-play {display:none}
@media(max-width:700px) {
    .guide-page .gd-sticky-play:not([hidden]) {display:inline-flex; align-items:center; justify-content:center; position:fixed; right:1rem; bottom:calc(.8rem + env(safe-area-inset-bottom)); z-index:70; padding:.62rem 1.25rem; border-radius:1.4rem; background:#16483a; color:white; border:1px solid #d2bc84; box-shadow:0 2px 9px #102d282b; text-decoration:none; font-weight:650}
}

/* The guide archive's articles share a reading column with their full-width cover. */
.gp-story :is(.gd-bound, .gd-hero, .gd-layout) {
  width: min(740px, calc(100% - 36px));
  margin-inline: auto;
}

.gp-story .gd-hero {
  display: block;
  border: 0;
  background: transparent;
}

.gp-story .gd-hero::before {
  display: none;
}

.gp-story .gd-title {
  padding: 0 0 18px;
}

.gp-story .gd-title h1 {
  max-width: none;
  font-size: clamp(2rem, 3.5vw, 2.72rem);
  line-height: 1.27;
}

.gp-story .gd-title p {
  max-width: none;
  margin: .65rem 0 0;
  font-size: 1.035rem;
  line-height: 1.74;
}

.gp-story .gd-hero-art {
  min-height: 0;
  aspect-ratio: auto;
  overflow: visible;
}

.gp-story .gd-hero-art img {
  position: static;
  width: 100%;
  height: auto;
  object-fit: contain;
}

.gp-story .gd-layout {
  display: flex;
  flex-direction: column;
  gap: 1.35rem;
  margin-top: 1.35rem;
}

.gp-story .gd-aside {
  order: 0;
}

.gp-story .gd-aside nav {
  position: static;
  padding: .6rem 0;
  border-top: 1px solid #b9a77f;
}

.gp-story .gd-aside h2 {
  margin: 0 0 .4rem;
  font-size: 1.05rem;
}

.gp-story .gd-aside ol {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem 1.15rem;
}

.gp-story .gd-aside li {
  border: 0;
}

.gp-story .gd-aside a {
  padding: 0;
  font-size: .9rem;
}

@media (max-width: 760px) {
  .gp-story :is(.gd-bound, .gd-hero, .gd-layout) {
    width: calc(100% - 32px);
  }

  .gp-story .gd-title {
    padding-bottom: 14px;
  }

  .gp-story .gd-title h1 {
    font-size: clamp(1.75rem, 6.9vw, 2.35rem);
    line-height: 1.3;
  }

  .gp-story .gd-title p {
    font-size: 1rem;
    line-height: 1.72;
  }

  .gp-story .gd-aside ol {
    display: grid;
    gap: .4rem;
    overflow: visible;
    white-space: normal;
  }

  .gp-story .gd-aside + article {
    margin-top: 0;
  }
}

.gp-story .gd-story-image a {
  display: inline-block;
  max-width: 100%;
  cursor: zoom-in;
}

.gp-story .gd-story-image a span,
.gp-story .gd-story-video figcaption {
  display: block;
  margin-top: .35rem;
  font-size: .95rem;
}

.gp-story .gd-story-video video {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
}

.gp-story .gd-video-slot {
  aspect-ratio: 16 / 9;
  background: #203932;
}

.gp-story .gd-video-slot > :is(button, iframe) {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.gp-story .gd-video-slot button {
  cursor: pointer;
  font-size: 1.1rem;
  font-weight: 650;
  color: #fff;
  background: transparent;
}
