.topic { padding-block-start: .8rem; }
.topic-skip { position: absolute; inset-inline-start: 1rem; transform: translateY(-120%); background: #fff; padding: .5rem; }
.topic-skip:focus { transform: translateY(.5rem); }
.topic-crumb { font-size: .9rem; color: #41574e; margin-block: .55rem 1.05rem; }
.topic-hero h1 { max-width: 30ch; }
.topic-hero p { max-width: 68ch; font-size: clamp(1rem, 2.45vw, 1.22rem); color: #394f44; }
.topic-section { margin-block: 1.55rem; scroll-margin-top: 1rem; }
.topic-finder, .topic-card { padding: .8rem 1rem; border: 1px solid #c9d4c8; border-radius: .65rem; background: #fcfcf7; min-width: 0; }
.topic-finder label { display: block; font-weight: 650; }
.topic-finder input { min-height: 44px; width: min(30rem, 100%); font: inherit; color: inherit; border: 1px solid #72897d; border-radius: .45rem; padding: .45rem .65rem; margin-block: .25rem; }
.topic-finder output, .topic-copy-feedback { display: block; min-height: 1.3em; color: #40564c; }
.topic [hidden] { display: none !important; }
.topic-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr)); gap: .6rem; list-style: none; margin: 0; padding: 0; }
.topic-card p { margin: .26rem 0; overflow-wrap: anywhere; }
.topic-card p:last-child { margin-bottom: 0; }
.topic-card h3 { margin: 0 0 .35rem; overflow-wrap: anywhere; }
.topic-zh { font-size: 1.25rem; line-height: 1.4; font-weight: 600; }
.topic-roman { color: #365844; }
.topic-note { color: #42584b; font-size: .95rem; }
.topic-filtered { color: #3d5147; }
.topic-mark, .topic-hero-glyph { font-size: clamp(1.8rem, 7vw, 2.7rem); font-family: "Songti SC","Noto Serif CJK SC",serif; line-height: 1.3; }
.topic-hero-glyph { font-size: clamp(3rem,14vw,6.5rem); color: #902a22; }
.topic-act { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; color: #22503b; background: #f1f6ef; border: 1px solid #91a597; border-radius: .45rem; padding: .38rem .65rem; cursor: pointer; font: inherit; text-decoration: none; }
.topic-act:hover { background: #e2ece0; }
.topic-example { padding: .85rem 1rem; background: #eef3e9; border-inline-start: .25rem solid #7d9b80; margin-block: .6rem; max-width: 70ch; }
.topic-example code { font-size: .95rem; white-space: normal; overflow-wrap: anywhere; }
.topic-words { display: flex; flex-wrap: wrap; gap: .35rem; margin-bottom: .4rem; }
.topic-words span { border-radius: .35rem; background: #e5eee2; padding: .2rem .4rem; }
.topic details { border: 1px solid #c9d4c8; border-radius: .6rem; padding-inline: .85rem; margin: .5rem 0; max-width: 70ch; }
.topic summary { cursor: pointer; color: #23503d; font-weight: 650; padding-block: .62rem; min-height: 44px; }
.topic details p { padding-bottom: .55rem; }
.topic-links { display: flex; flex-wrap: wrap; gap: .3rem 1rem; margin: 0; padding: 0; list-style: none; }
.topic-links a { display: inline-flex; min-height: 44px; align-items: center; }
.topic-sources { border-top: 1px solid #ccd7cc; padding-top: .85rem; }
.topic-alphabet-table { width: 100%; max-width: 45rem; table-layout: auto; border-collapse: collapse; }
.topic-alphabet-table caption { text-align: start; padding-block: .4rem .65rem; }
.topic-alphabet-table th, .topic-alphabet-table td { padding: .42rem .55rem; border-bottom: 1px solid #ccd7cc; text-align: start; vertical-align: top; }
.topic-alphabet-table thead { background: #eef3e9; }
.topic-alphabet-table th:first-child, .topic-alphabet-table td:nth-child(2) { white-space: nowrap; }
.topic-listen-choices { display: flex; flex-wrap: wrap; gap: .4rem; list-style: none; margin: 0; padding: 0; }
.topic-listen-choices .topic-act { gap: .3rem; }
.topic [data-alphabet-audio][aria-current="true"] { background: #dce9dc; border-color: #557365; }
.topic-audio-player { display: grid; gap: .4rem; justify-items: start; }
.topic-audio-player audio { width: min(100%, 20rem); }
@media (max-width: 430px) { .topic-grid { grid-template-columns: 1fr; } }
