@import url("/shared/web-punctuation.css?v=91fae76945a7");
@import url("/shared/web-hangul-font.css?v=6e95ca0b9ba8");
@import url("/shared/web-ruby.css?v=30661ba87dea");
@import url("/shared/web-ime-menu.css?v=c7096387fe49");
/* Keep the playback accent outside the lyric text without moving the line. */
.lyric-sync-controls {
  position:sticky;
  z-index:12;
  top:max(8px, env(safe-area-inset-top));
  display:inline-flex;
  width:auto;
  max-width:100%;
  align-items:center;
  gap:16px;
  flex-wrap:wrap;
  margin:16px 0;
  padding:7px 10px;
  border:1px solid var(--line);
  border-color:color-mix(in srgb, var(--line) 82%, transparent);
  border-radius:999px;
  background:var(--site-background, #f6f8fb);
  background:color-mix(in srgb, var(--site-background, #f6f8fb) 94%, transparent);
  box-shadow:0 4px 14px #17252b14;
  font-size:16px;
  backdrop-filter:blur(8px);
}
.lyric-sync-controls[hidden] { display:none; }
.lyric-play-toggle { display:inline-grid; flex:0 0 32px; place-items:center; width:32px; height:32px; margin:-2px 0; padding:0; border:0; border-radius:50%; color:#fff; background:#0a7180; cursor:pointer; }
.lyric-play-toggle svg { width:18px; height:18px; fill:currentColor; }
.lyric-play-toggle .icon-pause, .lyric-play-toggle[data-state="playing"] .icon-play { display:none; }
.lyric-play-toggle[data-state="playing"] .icon-pause { display:block; }
.lyric-play-toggle:hover { background:#085a66; }
.lyric-play-toggle:focus-visible { outline:2px solid #2563eb; outline-offset:3px; }
.lyric-sync-controls label { display:inline-flex; align-items:center; gap:8px; cursor:pointer; }
.lyric-sync-controls input { appearance:none; position:relative; flex:0 0 40px; width:40px; height:24px; margin:0; border:1px solid #afbfcb; border-radius:999px; background:#c7d4df; cursor:pointer; transition:background-color .15s ease; }
.lyric-sync-controls input::before { content:""; position:absolute; top:2px; left:2px; width:18px; height:18px; border-radius:50%; background:#fff; box-shadow:0 1px 3px #0003; transition:transform .15s ease; }
.lyric-sync-controls input:checked { background:#0a7180; border-color:#0a7180; }
.lyric-sync-controls input:checked::before { transform:translateX(16px); }
.lyric-sync-controls input:focus-visible { outline:2px solid #2563eb; outline-offset:3px; }
@media (prefers-reduced-motion:reduce) { .lyric-sync-controls input, .lyric-sync-controls input::before { transition:none; } }
[data-lyric-status] { display:block; margin:4px 0 16px; color:#617079; font-size:14px; }
[data-lyric-status]:empty { display:none; }
.imported-content p[data-lyric-id] { position:relative; transition:background-color .15s ease; scroll-margin-block:100px; }
.imported-content [data-lyric-seek] { cursor:pointer; }
.imported-content [data-lyric-seek] .lyric-seek-base { cursor:text; }
.imported-content [data-lyric-seek] :is(rt, rp, .tli-rt, .tone-mark) { cursor:default; }
.imported-content [data-lyric-seek]:focus-visible { outline:2px solid var(--accent); outline-offset:4px; }
.imported-content p[data-lyric-id].lyric-active { background-color:#dff1f5; box-shadow:0 -.45em 0 #dff1f5; }
.imported-content p[data-lyric-id].lyric-active::before { content:""; position:absolute; inset-block-start:-.45em; inset-block-end:0; inset-inline-start:-.4em; width:3px; background:#0a7180; border-radius:2px; }
@media(hover:hover) { .imported-content p[data-lyric-seek]:not(.lyric-active):hover { background-color:#e8eff6; box-shadow:0 -.45em 0 #e8eff6; } }
@media(prefers-reduced-motion:reduce) { .imported-content p[data-lyric-id] { transition:none; } }
@font-face { font-family: "TLI Hanri"; src: url("/assets/fonts/tli-content-tc-400-v1.woff2") format("woff2"); font-weight:400; font-display:swap; unicode-range: U+3400-4DBF, U+4E00-9FFF, U+20000-2EBEF; }
@font-face { font-family: "TLI Hanri"; src: url("/assets/fonts/tli-content-tc-700-v1.woff2") format("woff2"); font-weight:700; font-display:swap; unicode-range: U+3400-4DBF, U+4E00-9FFF, U+20000-2EBEF; }
@font-face { font-family:"TLI Menu Hanri"; src:url("/assets/fonts/tli-menu-hanri-v1.woff2") format("woff2"); font-display:swap; unicode-range:U+3400-3A7B, U+3A7D-4DBF, U+4E00-9FFF, U+20000-2EBEF; }
.title-reading, .title-reading .tli-ruby-base { font-family:"TLI Western Punctuation", "TLI Menu Hanri", "TLI Extended Hanri", "TLI Rare Hanri", "TLI Hanri SC", "TLI Hanri", "Tangliengim Hangul", "Noto Sans TC", "Noto Sans KR", sans-serif; }
@font-face { font-family: "TLI Hanri SC"; src: local("Noto Sans SC"), local("Noto Sans CJK SC"); unicode-range: U+3A7C; }
@font-face { font-family: "TLI Rare Hanri"; src: url("/assets/fonts/tangliengim-content-hanri-v2.woff2") format("woff2"); font-display: swap; unicode-range: U+20895, U+23350, U+24EAA, U+2C9B0; }
@font-face { font-family: "TLI Extended Hanri"; src: url("/assets/fonts/tangliengim-content-hanri-v2.woff2") format("woff2"); font-display: swap; unicode-range: U+2693E; }
@font-face { font-family: "TLI Rare Hanri"; src: url("/assets/fonts/tli-hanri-v321-tc.woff2") format("woff2"); font-weight: 400; font-display: swap; unicode-range: U+3701, U+216B8, U+28468, U+8FCC, U+5649; }
@font-face { font-family: "TLI Rare Hanri"; src: url("/assets/fonts/tli-hanri-v321-sc.woff2") format("woff2"); font-weight: 400; font-display: swap; unicode-range: U+4180, U+4B55, U+6455; }
@font-face { font-family: "TLI Rare Hanri"; src: url("/assets/fonts/tli-hanri-v321-tc-bold.woff2") format("woff2"); font-weight: 700; font-display: swap; unicode-range: U+3701, U+216B8, U+28468, U+8FCC, U+5649; }
@font-face { font-family: "TLI Rare Hanri"; src: url("/assets/fonts/tli-hanri-v321-sc-bold.woff2") format("woff2"); font-weight: 700; font-display: swap; unicode-range: U+4180, U+4B55, U+6455; }
@font-face { font-family: "Tangliengim Nasal Latin"; src: url("/assets/fonts/tangliengim-nasal-latin-v1.woff2") format("woff2"); font-style: normal; font-weight: 100 900; font-display: swap; }
.nasal-grapheme { font-family: "TLI Noto Sans", sans-serif; font-style: normal; font-feature-settings: "mark", "mkmk"; font-kerning: normal; letter-spacing: 0; }
.imported-content .tli-reading-ruby.tli-bopomofo-reading { --tli-ruby-size: 0.4em; }
:root { color-scheme: light; --ink: #17252b; --muted: #617079; --line: #dce4e7; --accent: #0a7180; --wp--preset--color--primary: #0a7180; --wp--preset--color--contrast: #17252b; --wp--preset--color--base: #fff; font-family: "TLI Western Punctuation", "TLI Extended Hanri", "TLI Rare Hanri", "TLI Hanri SC", "TLI Hanri", "Tangliengim Hangul", "Noto Sans KR", "Noto Sans CJK KR", Calibri, "Segoe UI", sans-serif; }
* { box-sizing: border-box; }
body { margin: 0; color: var(--ink); background: var(--site-background, #f6f8fb); line-height: 1.8; }
a { color: var(--accent); text-underline-offset: .18em; }
a:hover { color: #085764; }
a:focus-visible { outline: 2px solid #2563eb; outline-offset: 4px; }
.site-header { max-width: 1200px; margin: 0 auto; padding: 20px 28px; display: flex; align-items: center; justify-content: space-between; gap: 20px; border-bottom: 1px solid var(--line); }
.site-brand { display: flex; align-items: center; gap: 12px; color: var(--ink); text-decoration: none; font-size: 20px; font-weight: 700; }
.site-brand-names { display: flex; flex-direction: column; line-height: 1.4; }
.site-brand-names small { color: var(--muted); font-size: 12px; font-weight: 400; }
.site-introduction { margin: -4px 0 24px; font-size: 18px; line-height: 1.6; }
.site-header nav { display: flex; gap: 18px; flex-wrap: wrap; font-size: 15px; }
.site-header nav a { text-decoration: none; padding: 4px 0; }
.site-header nav [aria-current] { border-bottom: 2px solid var(--accent); color: var(--ink); }
.content-shell { width: min(100% - 56px, 1000px); margin: 40px auto 72px; }
h1 { margin: 0 0 18px; font-size: 32px; line-height: 1.4; font-weight: 700; }
h1.title-reading-wrapped {
  padding-top: var(--tli-ruby-block-space);
  line-height: calc(1.75em + var(--tli-ruby-block-space));
}
h2 { margin-top: 2em; font-size: 24px; line-height: 1.6; }
h3 { margin-top: 1.8em; font-size: 20px; }
h4 { font-size: 18px; }
.imported-content { overflow-wrap: anywhere; display: flow-root; }
body[data-site-section="home"] .imported-content,
body[data-site-section="learn"] .imported-content { font-size: 20px; }
/* Code examples also need a font that shapes archaic conjoining jamo. */
.imported-content code { font-family: "Tangliengim Hangul", monospace; }
.imported-content .intro-vowel-letter { font-family: "Tangliengim Hangul", sans-serif; font-size: 190%; font-weight: 700; white-space: nowrap; }
.imported-content p { margin-top: 1.3em; margin-bottom: 1.3em; }
:is(.content-songs, .content-stories) .imported-content { font-size: 24px; }
.imported-content :is(rt, .tli-rt, .tone-mark) { font-family: "TLI Western Punctuation", "TLI Noto Sans", "TLI Extended Hanri", "TLI Rare Hanri", "TLI Hanri SC", "TLI Hanri", "Tangliengim Hangul", "Noto Sans KR", "Noto Sans CJK KR", sans-serif !important; }
.imported-content [style*="font-family: Calibri" i], .imported-content [style*="font-family:Calibri" i] { font-family: "TLI Western Punctuation", "TLI Noto Sans", sans-serif !important; }
:is(.content-songs, .content-stories) h1 { font-size: 48px; }
:is(.content-songs, .content-stories) .imported-content h2 { font-size: 36px; }
.content-stories .imported-content > .story-subtitle { margin-top: 0; font-size: 24px; line-height: 1.4; }
:is(.content-songs, .content-stories) .imported-content h3 { font-size: 30px; }
:is(.content-songs, .content-stories) .imported-content h4 { font-size: 27px; }
:is(.content-songs, .content-stories) .imported-content table[style*="font-size: 16px"], :is(.content-songs, .content-stories) .imported-content table[style*="font-size:16px"] { font-size: 24px !important; }
:is(.content-songs, .content-stories) .imported-content table[style*="font-size: 14px"], :is(.content-songs, .content-stories) .imported-content table[style*="font-size:14px"] { font-size: 21px !important; }
.imported-content img { max-width: 100%; height: auto; }
.imported-content iframe { max-width: 100%; border: 0; }
.imported-content .is-provider-youtube iframe { width: 100%; height: auto; aspect-ratio: 16 / 9; }
.imported-content audio { max-width: 100%; min-width: 100px; vertical-align: middle; }
.imported-content figure { margin: 24px 0; }
.imported-content figure.wp-block-table, .table-scroll { overflow-x: auto; padding: 18px 0 6px; }
.imported-content table { border-collapse: collapse; width: 100%; }
/* Text version of a teaching diagram (audit A7). */
.diagram-text-version { margin: 12px 0 28px; }
.diagram-text-version summary { cursor: pointer; color: var(--accent); font-weight: 600; }
.diagram-text-version table { margin-top: 12px; }
.diagram-text-version p { margin: 8px 0 0; color: var(--muted, #555); font-size: 0.92em; }
.content-stories .imported-content table[style*="font-size: 14px"] td:first-child { white-space: nowrap; overflow-wrap: normal; width: 1%; }
.imported-content th, .imported-content td { padding: 14px 12px; border: 1px solid var(--line); vertical-align: middle; min-width: 80px; }
body[data-site-section="learn"] .imported-content table:has(colgroup > col:first-child[style*="width: 6%"]) { table-layout: fixed; }
body[data-site-section="learn"] .imported-content table:has(colgroup > col:first-child[style*="width: 6%"]) col:first-child { width: 2.5em !important; }
body[data-site-section="learn"] .imported-content table:has(colgroup > col:first-child[style*="width: 6%"]) col:nth-child(2) { width: 5em !important; }
body[data-site-section="learn"] .imported-content table:has(colgroup > col:first-child[style*="width: 6%"]) th[colspan="2"]:first-child { width: 7.5em !important; min-width: 0; }
body[data-site-section="learn"] .imported-content table:has(colgroup > col:first-child[style*="width: 6%"]) td:first-child { min-width: 0; padding-inline: 4px; white-space: nowrap; }
.imported-content th { background: #edf5f3; text-align: left; }
.imported-content figcaption { font-size: 14px; color: var(--muted); }
.imported-content ruby { isolation: isolate; }
/* A standalone tone mark over the top-left of its own Hangul syllable
   (semantic <ruby>syllable<rt>mark</rt></ruby>; site.js makes it .tli-tone-ruby). */
.imported-content .tli-tone-ruby { position: relative; display: inline-block; isolation: isolate; }
.imported-content .tli-tone-ruby > .tli-rt { position: absolute; top: -1.15em; left: calc(0.2em + 1px); z-index: 0; font-size: 120%; }
/* Italic Hangul slants right, so its mark sits lower and further right to stay
   over the slanted syllable instead of floating to its left. */
.imported-content :is(i, em) .tli-tone-ruby > .tli-rt { top: -1em; left: calc(0.5em + 1px); }
.imported-content [style*="font-family:Sans-serif" i], .imported-content [style*="font-family: sans-serif" i] { font-family: "TLI Western Punctuation", "TLI Extended Hanri", "TLI Rare Hanri", "TLI Hanri SC", "TLI Hanri", "Tangliengim Hangul", "Noto Sans KR", "Noto Sans CJK KR", Calibri, sans-serif !important; }
/* Semantic classes that replaced the WordPress inline styles (audit B4, tools/migrate_semantic_markup.py). */
.imported-content .lyric-line { display: block; font-size: 1em; }
.imported-content .lyric-muted { color: gray; }
.imported-content .lyric-lomari { display: block; margin-top: -5px; color: gray; font-family: "TLI Western Punctuation", "TLI Noto Sans", sans-serif; font-size: 0.7em; }
.imported-content .lyric-lomari-ink { color: inherit; }
.imported-content .indent-2em { text-indent: 2em; }
.imported-content .ruby-box-white { background: #ffffff; border: 1px solid #e3e3e3; }
.imported-content .ruby-box-lavender { background: #d6c9fe; }
.imported-content .ruby-nudge-up { top: -0.14em; }
.imported-content a.gloss-link { color: var(--wp--preset--color--primary); text-decoration: underline dotted; cursor: help; }
.imported-content a.gloss-link-nowrap { white-space: nowrap; }
.imported-content .cell-navy { background-color: #18375d; }
.imported-content .cell-lavender { background-color: #d6c9fe; }
.imported-content .cell-rose { background-color: #fadbd8; }
.imported-content .cell-peach { background-color: #fdf2e9; }
.imported-content .cell-sand { background-color: #fef5e7; }
.imported-content .cell-cream { background-color: #fef9e7; }
.imported-content .cell-white { background-color: #ffffff; }
.imported-content .cell-text-mint { color: #e0feca; }
.imported-content .cell-center { text-align: center; }
.imported-content .cell-bold { font-weight: bold; }
.imported-content .cell-fs-80 { font-size: 80%; }
.imported-content .cell-fs-90 { font-size: 90%; }
.imported-content .cell-fs-110 { font-size: 1.1em; }
.imported-content .cell-fs-120 { font-size: 120%; }
.imported-content .cell-fs-220 { font-size: 220%; }
.imported-content .cell-h-8em { height: 8em; }
.imported-content .cell-w-25 { width: 25%; }
.imported-content blockquote { border-left: 3px solid var(--accent); margin: 24px 0; padding: 0 24px; }
.imported-content hr { border: 0; border-top: 1px solid var(--line); margin: 36px 0; clear: both; }
.wp-block-buttons { display: flex; flex-wrap: wrap; gap: 12px 24px; margin: 20px 0; }
.wp-block-columns { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 24px; }
.wp-block-cover { position: relative; margin: 30px 0; }
.wp-block-cover__image-background { width: 160px; height: 140px !important; object-fit: contain; }
.has-text-align-center { text-align: center; }
.has-text-align-right { text-align: right; }
.page-list { list-style: none; margin: 16px 0 32px; padding: 0; }
.song-list a { text-decoration: none; }
.page-list li { padding: 12px 0; border-bottom: 1px solid var(--line); display: flex; gap: 20px; justify-content: space-between; }
.external-note { color: var(--muted); font-size: 14px; }
.site-footer { padding: 24px 28px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; text-align: center; }
.skip-link { position: absolute; top: -100px; left: 12px; background: #fff; padding: 8px 16px; z-index: 5; }
.skip-link:focus { top: 8px; }

/* Written Voice: typography and script specimens carry the identity. */
.content-shell { width: min(100% - 56px, 1120px); }
.site-brand { color: var(--site-ink, #19272a); }
.content-shell > h1 { max-width: 820px; overflow-wrap: anywhere; color: var(--site-ink, #19272a); }
.site-introduction { max-width: 700px; color: var(--muted); font-size: 19px; }
.imported-content { max-width: 780px; padding: 0; background: transparent; }
.imported-content h2 { padding-top: .7em; padding-bottom: 8px; border-bottom: 1px solid var(--line); color: var(--ink); }
.imported-content h3 { color: var(--ink); }
.imported-content h2::before { content: ""; display: block; width: 36px; margin-bottom: 12px; border-top: 3px solid var(--accent); }
.imported-content th { background: #e7f4f6; }
.imported-content blockquote { margin-left: 0; padding: 16px 24px; border-color: var(--accent); background: #e7f4f6; }
.imported-content blockquote > :first-child { margin-top: 0; }
.imported-content blockquote > :last-child { margin-bottom: 0; }
.content-stories, .content-literature { max-width: 860px; }
.content-songs { max-width: 1000px; }
.content-songs .imported-content, .content-stories .imported-content { max-width: 100%; padding-top: 12px; }
.content-songs .imported-content p:has(> .lyric-line):not(.song-language-compare *) {
  width:min(92%, 48rem);
  margin-inline:auto;
  text-align:left;
}
.content-songs > h1 { padding-bottom: 24px; border-bottom: 4px solid var(--ink); }
/* The title and its rule sit on the same centred column as the video and lyrics
   (full width only where the lyrics are side by side, as in 月下煮茶). */
.content-songs > h1 { box-sizing: border-box; width: min(92%, 48rem); margin-inline: auto; }
/* Compact top so the whole video fits on screen: the red accent sits on the rule without taking
   space of its own, and the gaps above the title and video are smaller. */
main.content-songs { margin-top: 36px; }
.content-songs > h1 { position: relative; padding-bottom: 16px; margin-bottom: 16px; }
.content-songs .imported-content { padding-top: 0; }
.content-songs :is(.imported-content, .song-version-panel) > figure.wp-block-embed { margin-top: 16px; }
.content-songs:has(.song-language-compare) > h1 { width: auto; max-width: none; margin-inline: 0; }
.content-songs .song-version-tabs > .song-version-tablist { box-sizing: border-box; width: min(92%, 48rem); margin-inline: auto; }
.content-songs .song-version-tabs { margin-top: 0; }
.content-songs .song-version-tabs > .song-version-tablist { margin-bottom: 4px; padding-bottom: 8px; }
/* Desktop: the version tabs sit at the right of the title, 12px above its rule (past the title's
   16px margin and 4px rule), out of the flow so the video starts below the rule as on other songs. */
@media (min-width: 701px) {
  .content-songs:has(.song-version-tabs) > h1 { padding-right: 20rem; }
  .content-songs .song-version-tabs { position: relative; }
  .content-songs .song-version-tabs > .song-version-tablist {
    position: absolute; z-index: 1; top: -40px; right: calc((100% - min(92%, 48rem)) / 2);
    width: auto; margin: 0; padding: 0; border: 0; transform: translateY(-100%);
  }
}
/* Side by side (月下煮茶): Follow lyrics sits on the Teochew / Hokkien translation heading row, as it
   does on the lyric heading bar of other songs (44px tall, centred on the heading text). */
@media (min-width: 701px) {
  .content-songs .imported-content:has(.song-language-compare) > .lyric-sync-controls { margin-top: 28px; margin-bottom: -39px; }
}
/* A figure with a Taipei and a Singapore version shows the one for the sandhi preference. */
[data-sandhi-show="singapore"] { display: none; }
html[data-sandhi="singapore"] [data-sandhi-show="taipei"] { display: none; }
html[data-sandhi="singapore"] [data-sandhi-show="singapore"] { display: block; }
.tli-listen-slot { margin: 14px 0; }
.content-songs > h1::after { content: ""; position: absolute; left: 0; bottom: -4px; width: 92px; border-bottom: 4px solid var(--song-accent, var(--site-voice, #b33b46)); }
.song-script-heading .heading-half { white-space: nowrap; }
.content-songs .imported-content .song-script-heading { margin-top: 8px; margin-bottom: 20px; font-size: 24px; line-height: 1.4; }
/* Song pages: the video, the lyric heading, Follow lyrics and the lyrics share one centred column.
   The heading becomes a bar above the lyrics with Follow lyrics at its right end; the switch stays a
   direct child of the article so it can stay pinned while the lyrics scroll. */
.content-songs .imported-content { --song-column: min(92%, 48rem); }
/* Side-by-side lyrics (月下煮茶) use the full width, so the heading bar spans it too. */
.content-songs .imported-content:has(.song-language-compare) { --song-column: 100%; }
.content-songs :is(.imported-content, .song-version-panel) > figure.wp-block-embed { width: min(var(--song-column), 48rem); max-width: none; margin: 8px auto 36px; }
.content-songs :is(.imported-content, .song-version-panel) > figure.wp-block-embed iframe { display: block; border-radius: 10px; box-shadow: 0 10px 28px #17252b1f; }
.content-songs :is(.imported-content, .song-version-panel) > .song-tone-guide { width: var(--song-column); margin-inline: auto; }
.content-songs :is(.imported-content, .song-version-panel) > .song-script-heading {
  display: flex; align-items: center; box-sizing: border-box; width: var(--song-column); min-height: 44px;
  margin: 0 auto; padding: 0 12.5rem 10px 0; border-bottom: 1px solid var(--line);
  color: var(--muted); font-size: 17px; font-weight: 700; letter-spacing: .01em;
}
.content-songs :is(.imported-content, .song-version-panel) > .lyric-sync-controls {
  display: flex; width: fit-content; margin: 16px calc((100% - var(--song-column)) / 2) 8px auto;
}
/* Pulled up onto the heading bar, centred on the heading text (above the bar's padding and rule). */
.content-songs :is(.imported-content, .song-version-panel) > .song-script-heading + .lyric-sync-controls { margin-top: -49px; margin-bottom: 26px; }
@media (max-width: 700px) {
  /* The heading wraps beside the switch rather than leaving it on a row of its own. */
  .content-songs :is(.imported-content, .song-version-panel) > .song-script-heading { padding-right: 12.25rem; font-size: 15px; line-height: 1.35; }
  /* The pause/play button widens the bar, so it is tightened to leave the heading its room. */
  .content-songs :is(.imported-content, .song-version-panel) > .lyric-sync-controls { gap: 8px; padding: 6px 8px; font-size: 14px; }
}
.imported-content .song-video-compact { max-width: 640px; }
.song-tone-guide { margin: 0 0 28px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.song-tone-guide summary { padding: 12px 18px; color: var(--accent); cursor: pointer; font-weight: 700; }
.song-tone-guide summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 8px; }
.imported-content .song-tone-guide blockquote { margin: 4px 18px 16px; }
.imported-content .song-tone-guide blockquote > p:first-child { margin-top: 0; }
.imported-content .song-tone-guide > p { margin: 0 18px 18px; color: var(--muted); }
/* Footnotes under the lyrics: a quiet notes block on the lyrics column, below a thin rule.
   The imported tables carry inline sizes and padding, hence the !important overrides. */
.content-songs .table-scroll:has(a[id^="_ftn"]) {
  box-sizing: border-box; width: var(--song-column); margin: 36px auto 0; padding: 18px 0 0;
  border-top: 1px solid var(--line); overflow-x: auto;
}
.content-songs .table-scroll:has(a[id^="_ftn"]) table { float: none; width: 100%; margin: 0; font-size: 16px !important; line-height: 1.6; }
.content-songs .table-scroll:has(a[id^="_ftn"]) td { padding: 6px 1.25em 6px 0 !important; vertical-align: baseline !important; color: var(--muted); }
.content-songs .table-scroll:has(a[id^="_ftn"]) td:first-child { width: 1%; min-width: 0 !important; white-space: nowrap; color: var(--ink); }
.content-songs .table-scroll:has(a[id^="_ftn"]) a[id^="_ftn"] { margin-right: .35em; color: var(--accent); text-decoration: none; }
/* Story pages (The Egg): the same quiet notes block as songs, on the story column. */
.content-stories .table-scroll:has(a[id^="_ftn"]) {
  box-sizing: border-box; width: 100%; margin: 36px 0 0; padding: 18px 0 0;
  border-top: 1px solid var(--line); overflow-x: auto; clear: both;
}
.content-stories .table-scroll:has(a[id^="_ftn"]) table { float: none; width: 100%; margin: 0; border-collapse: collapse; border: 0; font-size: 16px; line-height: 1.6; }
.content-stories .table-scroll:has(a[id^="_ftn"]) td { padding: 6px 1.25em 6px 0; border: 0; vertical-align: baseline; color: var(--muted); }
.content-stories .table-scroll:has(a[id^="_ftn"]) td:first-child { width: 1%; min-width: 0; white-space: nowrap; color: var(--ink); }
.content-stories .table-scroll:has(a[id^="_ftn"]) a[id^="_ftn"] { margin-right: .35em; color: var(--accent); text-decoration: none; }
/* Footnote markers in the text: small, raised, accent-coloured, no underline. */
.imported-content a[id^="_ftnref"] { color: var(--accent); font-size: .6em; line-height: 0; text-decoration: none; vertical-align: super; }
/* Story header: credits beside the floated cover image; first letter of the story. */
.imported-content .story-credits { margin: 0 0 16px; font-size: 80%; }
.imported-content .story-initial { font-size: 150%; }
/* Scene breaks inside a story: three centred dots instead of a solid rule. */
.imported-content hr.is-style-dots { height: auto; border: 0; margin: 36px 0; text-align: center; color: var(--muted); }
.imported-content hr.is-style-dots::before { content: "· · ·"; font-size: 1.4em; letter-spacing: .6em; padding-left: .6em; line-height: 1; }
/* About the size of the Lomari under each lyric line, rather than the 24px lyric text. */
.imported-content .song-tone-guide summary { font-size: 17px; }
.imported-content .song-tone-guide :is(blockquote, blockquote p) { font-size: 17px; line-height: 1.6; }
.imported-content .song-tone-guide > p { font-size: 15px; line-height: 1.6; }
.song-language-compare p:has(.lyric-line) { padding-bottom: 12px; border-bottom: 1px solid var(--line); background-clip: content-box; }
/* Column headings (Teochew / Hokkien translation) match the lyric heading bar. */
.imported-content .song-language-compare > .wp-block-column > h4 {
  display: flex; align-items: center; box-sizing: border-box; min-height: 44px;
  margin: 0 0 24px; padding: 0 0 10px; border-bottom: 1px solid var(--line);
  color: var(--muted); font-size: 17px; font-weight: 700; line-height: 1.4; letter-spacing: .01em;
}
.imported-content .song-language-compare p[data-lyric-id].lyric-active::before { inset-block-end: 12px; }
.song-version-tablist.song-language-tabs { display: none; }
.song-language-tabs button[aria-pressed="true"] { border-color: var(--accent); background: var(--accent); color: #fff; }
@media (max-width: 700px) {
  .song-version-tablist.song-language-tabs { display: flex; }
  .song-language-compare > .wp-block-column.is-tab-hidden { display: none; }
  .song-language-compare > .wp-block-column > h4 { display: none; }
}
/* Side by side, each line shares a grid row with its counterpart, so a wrapped line moves both. */
@media (min-width: 701px) {
  .song-language-compare { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-flow: row dense; row-gap: 0; }
  .song-language-compare > .wp-block-column { display: contents; }
  .song-language-compare > .wp-block-column > * { grid-column: 1; }
  .song-language-compare > .wp-block-column:nth-of-type(2) > * { grid-column: 2; }
  /* Grid items keep both margins, and a bare <br> would become a stray item; a margin replaces the stanza gap. */
  .song-language-compare > .wp-block-column > p { margin-top: 0; }
  .song-language-compare > .wp-block-column > br { display: none; }
  .song-language-compare > .wp-block-column > p:has(+ br) { margin-bottom: 4.4em; }
}
[data-content-lang] { display: none; }
html[lang="en"] [data-content-lang="en"], html[lang="zh-Hant"] [data-content-lang="zh-Hant"], html[lang="zh-Hans"] [data-content-lang="zh-Hans"] { display: inline; }
.song-version-tabs { margin-top: 18px; }
.song-version-tablist { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 24px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.song-version-tablist button { min-height: 40px; padding: 8px 16px; border: 1px solid var(--line); border-radius: 999px; background: #fff; color: var(--muted); cursor: pointer; font: inherit; font-size: 15px; font-weight: 700; }
.song-version-tablist button:hover, .song-version-tablist button:focus-visible { border-color: var(--accent); color: var(--accent); outline: none; }
.song-version-tablist button[aria-selected="true"] { border-color: var(--accent); background: var(--accent); color: #fff; }
.song-version-panel[hidden] { display: none !important; }
.song-version-panel > :first-child { margin-top: 0; }
.content-index .imported-content { max-width: 100%; }
.page-list { border-top: 2px solid var(--ink); }
.page-list li { align-items: center; padding: 0; }
.page-list li > a { flex: 1; min-width: 0; padding: 20px 8px; color: var(--ink); text-decoration: none; }
.page-list li > a:hover { color: var(--accent); }
/* A collapsed reference note inside a guide (the alphabetical order on the Introduction). */
.imported-content details.letter-order { max-width: 760px; margin: 0 0 28px; padding: 0 18px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.imported-content details.letter-order > summary { padding: 12px 0; color: var(--accent); cursor: pointer; font-weight: 700; }
.imported-content details.letter-order > p { margin: 0 0 14px; }
.imported-content .guide-audience { max-width: 760px; margin: 0 0 20px; padding: 10px 14px; border-left: 3px solid var(--accent); background: #e7f4f6; color: var(--ink); }
/* Learn landing page: a numbered path to read in order, then reference guides. */
.learn-track { max-width: 760px; margin: 0 0 44px; }
.learn-track h2 { margin: 0 0 4px; font-size: 22px; }
.learn-track-note { margin: 0 0 16px; color: var(--muted); font-size: 16px; }
.learn-path { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--ink); counter-reset: learn-step; }
.learn-path > li { position: relative; padding: 18px 8px 18px 56px; border-bottom: 1px solid var(--line); counter-increment: learn-step; }
.learn-path > li::before { position: absolute; left: 8px; top: 20px; width: 32px; height: 32px; border-radius: 50%; background: var(--line); color: var(--ink); font-size: 15px; font-weight: 700; line-height: 32px; text-align: center; }
ol.learn-path > li::before { content: counter(learn-step); background: var(--accent); color: #fff; }
ul.learn-path > li::before { content: "·"; font-size: 24px; }
.learn-path a { color: var(--ink); font-size: 20px; font-weight: 700; text-decoration: none; }
.learn-path a:hover, .learn-path a:focus-visible { color: var(--accent); text-decoration: underline; }
.learn-path p { margin: 4px 0 0; color: var(--muted); font-size: 16px; line-height: 1.5; }
/* The link to the next page at the foot of a guide. */
.learn-next { clear: both; margin: 56px 0 0; padding-top: 20px; border-top: 1px solid var(--line); text-align: right; }
.learn-next a { display: inline-flex; flex-direction: column; align-items: flex-end; gap: 2px; padding: 12px 18px; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink); text-decoration: none; }
.learn-next a:hover, .learn-next a:focus-visible { border-color: var(--accent); color: var(--accent); }
.learn-next-lead { color: var(--muted); font-size: 13px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.learn-next-title { font-size: 18px; font-weight: 700; }
.learn-next-title::after { content: " →"; }
.song-filter { display: grid; gap: 12px; margin: 18px 0 0; }
/* The Songs sub-header: a slim bar under the main header on /songs/ and every song page, with a
   breadcrumb on the left and the Songs search box on the right. It scrolls away with the page. */
.songs-subheader { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 8px max(24px, calc((100% - 1144px) / 2)); border-bottom: 1px solid var(--line); background: #fbfcfc; }
.songs-breadcrumb { display: flex; align-items: center; gap: 8px; min-width: 0; color: var(--muted); font-size: 14px; }
.songs-breadcrumb a { color: var(--muted); text-decoration: none; }
.songs-breadcrumb a:hover, .songs-breadcrumb a:focus-visible { color: var(--accent); text-decoration: underline; }
.songs-breadcrumb-current { color: var(--ink); font-weight: 700; }
.songs-breadcrumb-sep { color: #9aa7ab; }
.songs-subheader > .tli-search--compact { flex: 0 1 320px; }
@media (max-width: 700px) {
  .songs-subheader { padding: 8px 16px; gap: 12px; }
  /* The breadcrumb shortens to ‹ Songs, leaving the width to the search box. */
  .songs-breadcrumb-sep, .songs-breadcrumb-category { display: none; }
  .songs-breadcrumb { flex-shrink: 0; white-space: nowrap; }
  .songs-breadcrumb-root::before { content: "‹ "; }
  .songs-subheader > .tli-search--compact { flex: 1 1 0; min-width: 0; position: static; }
  /* The dropdown spans the screen below the sub-header, inside the 16px gutters. */
  .songs-subheader .tli-search-dropdown { right: 16px; left: 16px; width: auto; }
}
/* A lyric line reached from a search result. */
.imported-content p.is-search-target { background-color: #fff2bf; box-shadow: 0 -.45em 0 #fff2bf; }
.song-filter-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.song-filter-chip { --category-accent: var(--accent); padding: 6px 14px; border: 1px solid var(--line); border-radius: 999px; color: var(--ink); background: #fff; font: inherit; font-size: 14px; cursor: pointer; }
.song-filter-chip:hover { border-color: var(--category-accent); color: var(--category-accent); }
.song-filter-chip[aria-pressed="true"] { border-color: var(--category-accent); color: #fff; background: var(--category-accent); }
.song-filter-chip:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.imported-content .song-filter-heading { margin: 0; color: var(--ink); font-size: 14px; font-weight: 700; line-height: 1.4; }
.song-filter-group { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; }
.song-filter-label { min-width: 3.4em; color: var(--muted); font-size: 13px; font-weight: 700; letter-spacing: .04em; }
.song-filter-clear { margin-left: 6px; padding: 3px 12px; border: 1px solid var(--line); border-radius: 999px; color: var(--accent); background: #fff; font: inherit; font-size: 14px; cursor: pointer; }
.song-filter-clear:hover, .song-filter-clear:focus-visible { border-color: var(--accent); }
.imported-content .song-filter-summary, .imported-content .song-filter-empty { margin: 0; color: var(--muted); font-size: 14px; }
.imported-content .song-filter-summary:empty { display: none; }
.song-catalogue [hidden], .song-filter [hidden] { display: none !important; }
.song-catalogue.is-filtering .song-list li, .song-catalogue.is-filtering .song-list li:nth-child(odd) { border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.song-catalogue.is-filtering .song-list { border-right: 0; border-bottom: 0; }
.song-catalogue { display: grid; gap: 44px; margin: 18px 0 54px; }
.song-category { border-top: 4px solid var(--category-accent); box-shadow: 0 12px 30px rgb(23 37 43 / 5%); }
.song-category-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 24px; padding: 18px 20px 16px; background: linear-gradient(105deg, var(--category-tint), var(--category-tint-end)); }
.imported-content .song-category-heading h2 { margin: 0; padding: 0; border: 0; font-size: 20px; }
.imported-content .song-category-heading h2::before { display: none; }
.song-category-heading > span { color: var(--category-accent); font-family: Calibri, sans-serif; font-size: 13px; font-weight: 700; letter-spacing: .08em; }
.song-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 0; padding: 0; border: 1px solid var(--line); border-top: 0; list-style: none; counter-reset: song-row; }
.song-list li { position: relative; min-width: 0; border-bottom: 1px solid var(--line); counter-increment: song-row; }
.song-list li:nth-child(odd) { border-right: 1px solid var(--line); }
.song-list li:nth-last-child(-n + 2) { border-bottom: 0; }
.song-list li:nth-last-child(2):nth-child(even) { border-bottom: 1px solid var(--line); }
.song-list li::before { content: counter(song-row, decimal-leading-zero); position: absolute; top: 17px; left: 18px; color: var(--category-accent); font-family: Calibri, sans-serif; font-size: 12px; font-weight: 700; }
.song-list li > .song-entry { display: grid; grid-template-rows: minmax(58px, auto) auto auto; align-content: start; flex: 1 1 auto; min-height: 0; box-sizing: border-box; padding: 16px 20px 25px 58px; color: var(--ink); background: linear-gradient(120deg, rgb(255 255 255 / 92%) 20%, var(--category-tint-end)); transition: filter 150ms ease, box-shadow 150ms ease; }
.song-list li > .song-entry:hover, .song-list li > .song-entry:focus-visible { color: var(--category-accent); }
.song-list li:has(> .song-entry:hover, > .song-entry:focus-visible) { filter: saturate(1.22); box-shadow: inset 4px 0 0 var(--category-accent); }
/* Extend the song link to the whole row while keeping the mood buttons independently tappable. */
.song-list li > .song-entry::after { content: ""; position: absolute; inset: 0; }
.song-list li .song-entry-tags .song-row-mood { position: relative; z-index: 1; }
/* Under a song's title: the singer, the mood chips (links to /songs/?mood=) and the dialect badge, on
   the lyrics column. A song with versions repeats this inside each tab, with that version's singer. */
.content-songs :is(.imported-content, .song-version-panel) > .song-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; box-sizing: border-box; width: var(--song-column); margin: 14px auto 18px; }
.song-singer { margin-right: 4px; color: var(--ink); font-family: "TLI Western Punctuation", "TLI Noto Sans", "Noto Sans TC", sans-serif; font-size: 16px; font-weight: 700; }
.song-mood { padding: 2px 11px; border: 1px solid var(--category-accent); border-radius: 999px; color: var(--category-accent); background: var(--category-tint); font-size: 13px; line-height: 1.55; text-decoration: none; }
.song-mood:hover, .song-mood:focus-visible { color: #fff; background: var(--category-accent); }
.song-meta .song-dialect-badge { font-size: 13px; }
/* A song row: the link, then the mood chips and dialect badge under it. */
.song-list li { display: flex; flex-direction: column; background: linear-gradient(120deg, rgb(255 255 255 / 92%) 20%, var(--category-tint-end)); }
.song-list li > .song-entry { padding-bottom: 8px; background: none; -webkit-tap-highlight-color: transparent; }
.song-list li:has(> .song-entry:active) {
  background: color-mix(in srgb, var(--category-tint) 72%, white);
  box-shadow: inset 4px 0 0 var(--category-accent);
}
.song-entry-singer { margin-top: 6px; color: var(--ink); font-family: "TLI Western Punctuation", "TLI Noto Sans", "Noto Sans TC", sans-serif; font-size: 14px; line-height: 1.35; }
.song-entry-tags { display: flex; flex-wrap: wrap; gap: 6px; min-height: 24px; padding: 14px 20px 16px 58px; }
.song-entry-tags:empty { display: none; }
.song-row-mood, .song-dialect-badge { padding: 2px 10px; border: 1px solid var(--category-accent); border-radius: 999px; color: var(--category-accent); background: var(--category-tint); font: inherit; font-size: 12px; line-height: 1.5; }
.song-row-mood { cursor: pointer; }
.song-row-mood:hover, .song-row-mood:focus-visible { color: #fff; background: var(--category-accent); }
.song-dialect-badge { border-style: dashed; }
.song-entry-title .song-base-link, .song-entry-lomari .song-base-link, .home-song-title .song-base-link { color: inherit; text-decoration: none; }
.song-base-link:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.song-entry-title { --song-ruby-space: calc(var(--tli-ruby-block-space) + .1em); display: block; min-width: 0; min-height: 0; padding-top: calc(20px - var(--song-ruby-space) / 2); font-size: 24px; line-height: calc(1.3em + var(--song-ruby-space)); overflow: visible; overflow-wrap: anywhere; }
.song-entry-title ruby { ruby-position: over; }
.song-entry-mandarin-match { display: inline-block; margin-left: .55em; color: var(--muted); font-family: "TLI Western Punctuation", "TLI Noto Sans", "Noto Sans TC", sans-serif; font-size: 14px; font-weight: 400; line-height: 1.4; vertical-align: baseline; }
.song-entry-mandarin-match[hidden] { display: none; }
.song-entry-lomari { display: block; align-self: start; min-height: 21px; margin-top: -6px; color: var(--muted); font-family: "TLI Noto Sans", sans-serif; font-size: 15px; line-height: 1.35; }
.song-entry-match { position: relative; display: grid; gap: 2px; margin-top: 10px; padding: calc(9px + var(--tli-ruby-block-space)) 11px 9px 28px; border-left: 3px solid var(--category-accent); border-radius: 0 4px 4px 0; background: color-mix(in srgb, var(--category-tint) 68%, white); }
.song-entry-match[hidden] { display: none; }
.song-entry-match::before { content: "“"; position: absolute; top: 2px; left: 8px; color: var(--category-accent); font-family: "TLI Western Punctuation", "TLI Noto Sans", sans-serif; font-size: 25px; line-height: 1; }
.song-entry-match-main, .song-entry-match-main .tli-ruby-base { color: var(--ink); font-family: "TLI Western Punctuation", "TLI Menu Hanri", "TLI Extended Hanri", "TLI Rare Hanri", "TLI Hanri SC", "TLI Hanri", "Tangliengim Hangul", "Noto Sans TC", "Noto Sans KR", sans-serif; font-size: 16px; }
.song-entry-match-main { line-height: calc(1.4em + var(--tli-ruby-block-space)); }
.song-entry-match-main .tli-ruby-base { line-height: 1; }
.song-entry-match-main .tli-rt { font-family: "TLI Western Punctuation", "TLI Noto Sans", "Tangliengim Hangul", "Noto Sans KR", sans-serif !important; }
.song-entry-match-lomari { color: var(--muted); font-family: "TLI Noto Sans", sans-serif; font-size: 13px; line-height: 1.35; }
.song-list .hangul-tone { line-height: inherit; }
.song-list .hangul-tone > .tone-mark { display: block; }
.article-contents { max-width: 780px; margin: 0 0 32px; padding: 14px 20px; border-left: 3px solid var(--accent); background: #e7f4f6; }
.article-contents summary { cursor: pointer; color: var(--accent); font-weight: 700; }
.article-contents ol { margin: 12px 0 0; padding-left: 24px; columns: 2; column-gap: 32px; }
.article-contents li { break-inside: avoid; padding: 3px 0; }
.imported-content h2[id] { scroll-margin-top: 24px; }
.wp-block-buttons a { display: inline-block; padding: 7px 0; border-bottom: 2px solid var(--accent); color: var(--ink); text-decoration: none; }
.wp-block-buttons a:hover { color: var(--accent); }

body[data-site-section="home"] .content-shell { margin-top: 54px; }
body[data-site-section="home"] .content-shell > h1 { text-wrap: balance; max-width: 760px; margin-bottom: 12px; font-size: 58px; line-height: 1.08; }
.home-heading-segment { white-space:nowrap; }
body[data-site-section="home"] .site-introduction { max-width: 720px; margin-bottom: 0; font-size: 21px; }
body[data-site-section="home"] .imported-content { max-width: 100%; margin-top: 60px; padding-top: 32px; border-top: 1px solid var(--line); }
body[data-site-section="home"] .imported-content > .wp-block-buttons:first-child { display: none; }
.home-kicker { margin: 0 0 12px; color: var(--accent); font-size: 13px; font-weight: 700; text-transform: uppercase; }
.home-launch { position: relative; margin-top: 68px; }
.home-specimen { --tli-ruby-size: 0.35em; display: flex; width: 100%; box-sizing: border-box; flex-direction: column; align-items: flex-start; padding: 24px 30px 26px; border: 1px solid var(--line); border-left: 4px solid var(--site-voice, #b33b46); border-radius: 10px; background: #fff; box-shadow: 0 12px 30px rgb(23 37 43 / 7%); }
.home-specimen :is(ruby, .tli-ruby) { width: max-content; margin-top: 14px; font-size: 68px; }
.home-specimen rt { position: relative; left: 0.18em; color: var(--ink); font-family: "TLI Western Punctuation", "Tangliengim Hangul", "Noto Sans KR", sans-serif; font-size: 35%; }
.home-specimen-lomari { margin-top: 8px; color: var(--accent); font-size: 23px; font-family: "TLI Noto Sans", sans-serif; font-feature-settings: "mark", "mkmk"; }
.home-specimen-meaning { color: var(--muted); font-size: 15px; }
.home-specimen .tli-listen { margin-top: 14px; }
.tli-listen { display: inline-flex; align-items: center; gap: 9px; min-height: 44px; padding: 0 20px; border: 1px solid var(--accent); border-radius: 999px; color: #fff; background: var(--accent); cursor: pointer; font: inherit; font-size: 15px; font-weight: 700; }
.tli-listen:hover { background: #085764; }
.tli-listen:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.tli-listen-icon { width: 0; height: 0; border-top: 6px solid transparent; border-bottom: 6px solid transparent; border-left: 10px solid currentColor; }
.tli-listen.is-playing .tli-listen-icon { width: 11px; height: 11px; border: 0; background: currentColor; }
.home-compare { margin-bottom: 72px; }
.home-compare-heading { max-width: 720px; margin-bottom: 26px; }
body[data-site-section="home"] .imported-content .home-compare-heading h2 { margin: 0 0 8px; padding: 0; border: 0; color: var(--ink); font-size: 34px; line-height: 1.18; }
body[data-site-section="home"] .imported-content .home-compare-heading h2::before { display: none; }
.imported-content .home-compare-heading p { margin: 0; color: var(--muted); font-size: 18px; }
.home-compare-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.home-compare-card { display: flex; min-width: 0; flex-direction: column; align-items: flex-start; padding: 26px 32px 30px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.home-compare-hokkien { border-color: var(--accent); background: #e8f5f7; }
.imported-content .home-compare-card h3 { margin: 0; color: var(--muted); font-size: 15px; font-weight: 700; line-height: 1.4; }
.home-compare-word { --tli-ruby-size: 0.45em; margin-top: 50px; color: var(--ink); font-size: 64px; font-weight: 700; line-height: 1.2; }
.imported-content .home-compare-lomari { margin: 8px 0 0; color: var(--accent); font-family: "TLI Noto Sans", sans-serif; font-size: 22px; font-feature-settings: "mark", "mkmk"; }
.home-compare-korean .home-compare-word { position: relative; top: -3px; }
.home-compare-korean .home-compare-lomari { color: var(--muted); }
.home-compare-card .tli-listen { margin-top: 18px; }
.home-compare-korean .tli-listen { border-color: #5d6c70; background: #5d6c70; }
.home-compare-korean .tli-listen:hover { border-color: #47535a; background: #47535a; }
.imported-content .home-compare-credit { margin: 12px 0 0; color: var(--muted); font-size: 13px; line-height: 1.4; }
.imported-content .home-compare-credit a { color: inherit; }
.imported-content .home-compare-note { max-width: 760px; margin: 22px 0 0; color: var(--muted); font-size: 18px; line-height: 1.65; }
.home-essay { margin-top: 72px; padding-top: 16px; border-top: 1px solid var(--line); }
/* Wide screens: the sample card shares the hero's grid, so it fits any headline length. */
@media (min-width: 1181px) {
  body[data-site-section="home"] .content-shell { display: grid; grid-template-columns: minmax(0, 1fr) 340px; grid-template-rows: auto auto 1fr; column-gap: 40px; }
  body[data-site-section="home"] .content-shell > :not(.home-kicker, h1, .site-introduction, .home-launch) { grid-column: 1 / -1; }
  body[data-site-section="home"] .content-shell > :is(.home-kicker, h1, .site-introduction) { grid-column: 1; }
  .home-launch { display: contents; }
  .home-specimen { grid-column: 2; grid-row: 1 / span 3; align-self: start; }
  .home-paths { grid-column: 1 / -1; margin-top: 40px; }
  .home-tools { grid-column: 1 / -1; }
}
@media (max-width: 1180px) {
  .home-specimen { max-width: 420px; margin: 0 0 34px; }
}
.home-paths { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 3px solid var(--ink); }
.home-path { min-width: 0; padding: 32px 28px 36px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.home-path:first-child { padding-left: 0; }
.home-path:last-child { border-right: 0; }
.home-path-number { color: var(--site-voice, #b33b46); font-size: 13px; }
.home-path h2 { margin: 10px 0 8px; color: var(--ink); font-size: 24px; line-height: 1.35; }
.home-path p { min-height: 58px; margin: 0 0 20px; color: var(--muted); line-height: 1.55; }
.home-path a { display: flex; justify-content: space-between; gap: 16px; color: var(--accent); text-decoration: none; font-weight: 700; }
.home-path a:hover { color: #085764; }
.home-tools { display: flex; align-items: baseline; justify-content: space-between; gap: 28px; padding: 30px 0; border-bottom: 1px solid var(--line); }
.home-tools h2 { margin: 0; color: var(--ink); font-size: 18px; }
.home-tools div { display: flex; gap: 28px; }
.home-tools a { display: inline-flex; gap: 14px; color: var(--accent); text-decoration: none; }
.home-showcase { margin-top: 88px; border-top: 4px solid var(--ink); }
.home-feature-pair { display: grid; grid-template-columns: 1fr; }
.home-feature { min-width: 0; }
.home-feature-pair .home-feature { display: flex; min-height: 0; flex-direction: column; align-items: flex-start; padding: 46px 48px 42px; border-bottom: 1px solid var(--line); }
.home-feature-pair .home-feature:first-child { padding-left: 0; }
.home-feature-meta { color: var(--site-voice, #b33b46); font-family: Calibri, "Segoe UI", sans-serif; font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
body[data-site-section="home"] .home-feature h2 { max-width: 520px; margin: 18px 0 16px; padding: 0; border: 0; color: var(--ink); font-size: 34px; line-height: 1.18; }
body[data-site-section="home"] .home-feature h2::before { display: none; }
.home-feature > p, .home-feature-heading > p { max-width: 520px; margin: 0 0 28px; color: var(--muted); font-size: 17px; line-height: 1.65; }
.home-feature-link { display: flex; width: 100%; max-width: 320px; align-items: center; justify-content: space-between; gap: 18px; margin-top: auto; padding: 12px 0; border-top: 1px solid currentColor; color: var(--accent); text-decoration: none; font-weight: 700; }
.home-feature-link span:last-child { font-family: Calibri, "Segoe UI", sans-serif; font-size: 20px; transition: transform .18s ease; }
.home-feature-link:hover span:last-child { transform: translateX(4px); }
.home-feature-literature { display: grid; grid-template-columns: minmax(240px, .72fr) minmax(0, 1.45fr); gap: 54px; padding: 76px 0 82px; border-bottom: 1px solid var(--line); }
.home-feature-heading { align-self: start; }
.home-literature-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
.home-literature-work { display: grid; min-width: 0; grid-template-rows: auto auto auto 1fr; align-content: start; color: var(--ink); text-decoration: none; }
.home-literature-work img { width: 100%; aspect-ratio: 4 / 3; margin-bottom: 22px; object-fit: cover; object-position: center; filter: saturate(.82) contrast(.96); transition: filter .2s ease, transform .2s ease; }
.home-literature-work:hover img { filter: saturate(1) contrast(1); transform: translateY(-3px); }
.home-work-kind { color: var(--site-voice, #b33b46); font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.home-literature-work h3 { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px; margin: calc(var(--tli-ruby-block-space) + 0.1em) 0 4px; font-size: 23px; line-height: 1.45; }
.home-literature-work h3 ruby { ruby-position: over; }
.home-literature-work h3 rt { color: var(--ink); font-family: "TLI Western Punctuation", "Tangliengim Hangul", "Noto Sans KR", sans-serif; font-size: 38%; }
.home-literature-work h3 > span:not(.tli-ruby) { color: var(--muted); font-size: 14px; font-weight: 500; }
.home-literature-work p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.55; }
.home-feature-songs { display: grid; grid-template-columns: minmax(240px, .72fr) minmax(0, 1.45fr); gap: 54px; margin-top: 0; padding: 70px 48px; background: #f3e9ea; }
.home-feature-songs .home-feature-link { color: var(--site-voice, #9d303b); }
.home-songbook { border-top: 2px solid var(--ink); }
.home-songbook-label { display: block; padding: 13px 0 10px; border-bottom: 1px solid rgba(23, 37, 43, .28); color: var(--site-voice, #9d303b); font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.home-songbook :is(a:not(.song-base-link), .home-songbook-item) { display: grid; grid-template-columns: 1fr auto; align-items: baseline; gap: 24px; padding: 26px 0 14px; border-bottom: 1px solid rgba(23, 37, 43, .28); color: var(--ink); text-decoration: none; }
.home-songbook .home-song-title:has(.song-base-link:is(:hover, :focus-visible)) .song-base-link { color: var(--site-voice, #9d303b); }
.home-songbook :is(a, .home-songbook-item) > .home-song-title { padding-top: 0; font-size: 21px; font-weight: 700; line-height: 1.5; }
.home-songbook small { color: var(--muted); font-family: "TLI Noto Sans", sans-serif; font-size: 14px; }
@media (max-width: 900px) {
  body[data-site-section="home"] .content-shell > h1 { max-width: 680px; font-size: 48px; }
  body[data-site-section="home"] .site-introduction { max-width: 680px; }
  .home-launch { margin-top: 34px; }
  .home-paths { grid-template-columns: 1fr; }
  .home-path, .home-path:first-child { padding: 26px 0; border-right: 0; }
  .home-path p { min-height: 0; }
  .home-showcase { margin-top: 64px; }
  .home-feature-pair { grid-template-columns: 1fr; }
  .home-feature-pair .home-feature { min-height: 0; padding: 42px 0 46px; border-right: 0; }
  .home-feature-pair .home-feature:first-child { padding-left: 0; border-right: 0; }
  .home-feature-literature, .home-feature-songs { grid-template-columns: 1fr; gap: 34px; }
  .home-feature-literature { padding: 58px 0 64px; }
  .home-feature-songs { padding: 52px 40px; }
}
@media (max-width: 700px) {
  .site-header { padding: 16px 20px; align-items: flex-start; flex-direction: column; gap: 12px; }
  .site-header nav { gap: 10px 20px; }
  .content-shell { width: calc(100% - 40px); margin-top: 28px; }
  h1 { font-size: 28px; }
  :is(.content-songs, .content-stories) h1 { font-size: 42px; }
  .page-list li { display: block; }
  .external-note { display: block; }
  .imported-content { padding: 0; }
  .content-songs .imported-content, .content-stories .imported-content { padding: 0; }
  body[data-site-section="home"] .content-shell { margin-top: 34px; }
  body[data-site-section="home"] .content-shell > h1 { font-size: 42px; }
  body[data-site-section="home"] .site-introduction { font-size: 18px; }
  .home-launch { margin-top: 30px; }
  .home-specimen :is(ruby, .tli-ruby) { font-size: 62px; }
  .home-compare-cards { grid-template-columns: 1fr; }
  .home-compare-card { padding: 22px 24px 26px; }
  .home-compare-word { font-size: 54px; }
  body[data-site-section="home"] .imported-content .home-compare-heading h2 { font-size: 28px; }
  .home-tools { align-items: flex-start; flex-direction: column; }
  .home-showcase { margin-top: 52px; }
  body[data-site-section="home"] .home-feature h2 { font-size: 30px; }
  .home-literature-grid { grid-template-columns: 1fr; gap: 44px; }
  .home-literature-work img { aspect-ratio: 16 / 10; }
  .home-feature-songs { margin-right: -20px; margin-left: -20px; padding: 46px 20px 50px; }
  .home-songbook :is(a:not(.song-base-link), .home-songbook-item) { grid-template-columns: 1fr; gap: 0; }
  .article-contents ol { columns: 1; }
  .song-catalogue { gap: 34px; }
  .song-category-heading { padding-right: 16px; padding-left: 16px; }
  .song-list { grid-template-columns: 1fr; }
  .song-list li, .song-list li:nth-child(odd), .song-list li:nth-last-child(-n + 2), .song-list li:nth-last-child(2):nth-child(even) { border-right: 0; border-bottom: 1px solid var(--line); }
  .song-list li:last-child { border-bottom: 0; }
  .song-list li > .song-entry { grid-template-rows: auto auto auto; min-height: 0; padding: 16px 16px 23px 54px; }
  .song-list li::before { left: 16px; }
  .song-entry-tags { padding-right: 16px; padding-left: 54px; }
  .song-entry-title { min-height: 0; margin-bottom: 0; font-size: 22px; }
}
@media (max-width: 700px) {
  .imported-content .tli-tone-ruby > .tli-rt { top:calc(-1.15em - 2px); }
  .imported-content :is(i, em) .tli-tone-ruby > .tli-rt { top:calc(-1em - 2px); }
  .title-reading .hangul-tone .tone-mark { top:calc(-.84em - 6px) !important; }
}

/* Lyric readings only: tone 1 marks sit about 0.5px left (TLI Lyric Marks covers just ˆ and ꞈ). */
.imported-content .lyric-line :is(rt, .tli-rt) { font-family: "TLI Lyric Marks", "TLI Western Punctuation", "TLI Noto Sans", "TLI Extended Hanri", "TLI Rare Hanri", "TLI Hanri SC", "TLI Hanri", "Tangliengim Hangul", "Noto Sans KR", "Noto Sans CJK KR", sans-serif !important; }
/* Example tiles in the Learn guides (a tone-mark strip over a coloured character box): even
   padding around the character. The strip's colour is cut to a thin band just above the character,
   and the box gains room below it, so the glyph no longer touches the bottom edge. Measured on the
   30px tiles: about 8px of colour above the character and 5px of box below it. */
.imported-content span[style*="height:0.76em"][style*="linear-gradient"] { background-size: 100% 0.45em !important; background-position: bottom !important; background-repeat: no-repeat !important; }
.imported-content span[style*="width:1.3em;height:1em"] { height: 1.16em !important; }
