/* Discovery family: feed, topic directory, and topic detail */
:root {
  --discovery-ink: #17372a;
  --discovery-muted: #617064;
  --discovery-paper: #fbfaf3;
  --discovery-paper-deep: #f1eddf;
  --discovery-green: #24583b;
  --discovery-leaf: #8eb653;
  --discovery-clay: #bc6040;
  --discovery-gold: #e9b845;
  --discovery-line: #d9d8ca;
  --discovery-white: #fffef8;
  --discovery-shadow: 0 18px 50px rgba(33, 63, 44, .1);
  --discovery-radius: 1.35rem;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { overflow-x: hidden; background: var(--discovery-paper); color: var(--discovery-ink); }
img { display: block; max-width: 100%; }
a { color: inherit; }
button, input, select, textarea { font: inherit; }
button, a, input, select, textarea { -webkit-tap-highlight-color: transparent; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid var(--discovery-gold); outline-offset: 3px; }
[hidden] { display: none !important; }

.skip-link { position: fixed; z-index: 100; top: .75rem; left: .75rem; transform: translateY(-180%); padding: .7rem 1rem; border-radius: .5rem; background: var(--discovery-ink); color: white; text-decoration: none; }
.skip-link:focus { transform: none; }
.shell { width: min(100% - 2rem, 78rem); margin-inline: auto; min-width: 0; }
.narrow-shell { width: min(100% - 2rem, 66rem); }

/* Shell fallbacks. Shared site.css remains authoritative across the site. */
.site-header { position: relative; z-index: 20; border-bottom: 1px solid rgba(36, 88, 59, .14); background: rgba(251, 250, 243, .95); }
.header-inner { min-height: 4.5rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.brand { display: inline-flex; align-items: center; gap: .6rem; color: var(--discovery-ink); font-size: 1.25rem; font-weight: 800; text-decoration: none; }
.brand-mark { display: grid; width: 2.25rem; aspect-ratio: 1; place-items: center; border-radius: 50% 50% 46% 54%; background: var(--discovery-green); color: white; font-size: .82rem; }
.primary-nav { display: none; align-items: center; gap: .35rem; }
.primary-nav a { padding: .6rem .8rem; border-radius: 99rem; color: var(--discovery-muted); text-decoration: none; }
.primary-nav a:hover, .primary-nav a[aria-current="page"] { background: #e7eedf; color: var(--discovery-green); }
.header-actions { display: flex; align-items: center; gap: .55rem; }
.header-actions .text-link { display: none; }
.button { display: inline-flex; min-height: 2.75rem; align-items: center; justify-content: center; gap: .35rem; padding: .68rem 1rem; border: 1px solid transparent; border-radius: 99rem; cursor: pointer; font-weight: 750; line-height: 1.1; text-decoration: none; transition: transform .18s ease, background .18s ease, color .18s ease, border-color .18s ease; }
.button:hover { transform: translateY(-1px); }
.button-primary { background: var(--discovery-green); color: white; }
.button-primary:hover { background: #183f2a; }
.button-secondary { border-color: var(--discovery-green); background: transparent; color: var(--discovery-green); }
.button-secondary:hover { background: #e7eedf; }
.button-quiet { background: var(--discovery-paper-deep); color: var(--discovery-green); }
.button-text { min-height: auto; padding: .45rem .2rem; background: transparent; color: var(--discovery-green); text-decoration: underline; text-underline-offset: .2rem; }
.button-small { min-height: 2.45rem; padding: .6rem .85rem; font-size: .9rem; }

.eyebrow { margin: 0 0 .55rem; color: var(--discovery-clay); font-size: .76rem; font-weight: 850; letter-spacing: .09em; text-transform: uppercase; }
h1, h2, h3, p { overflow-wrap: anywhere; }
h1, h2, h3 { text-wrap: balance; }
.discovery-hero, .topic-detail-hero { position: relative; isolation: isolate; padding-block: clamp(2rem, 6vw, 5.5rem); overflow: hidden; }
.discovery-hero::before, .topic-detail-hero::before { position: absolute; z-index: -1; right: -8rem; bottom: -10rem; width: 26rem; height: 26rem; border: 1px solid rgba(36, 88, 59, .12); border-radius: 48% 52% 60% 40%; content: ""; box-shadow: inset 0 0 0 4rem rgba(142, 182, 83, .06); transform: rotate(-14deg); }
.hero-grid, .detail-hero-grid { display: grid; gap: 2rem; align-items: center; min-width: 0; }
.hero-copy, .detail-hero-copy, .hero-media, .detail-hero-media { min-width: 0; }
.hero-copy h1, .detail-hero-copy h1 { max-width: 12ch; margin: 0; font-size: clamp(2.45rem, 8vw, 5.6rem); line-height: .98; letter-spacing: -.045em; }
.hero-copy > p:not(.eyebrow), .detail-hero-copy > p:not(.eyebrow) { max-width: 39rem; margin: 1.2rem 0 1.5rem; color: var(--discovery-muted); font-size: clamp(1rem, 2vw, 1.18rem); line-height: 1.78; }
.hero-media, .detail-hero-media { position: relative; margin: 0; }
.hero-media img, .detail-hero-media img { width: 100%; aspect-ratio: 4 / 3; border-radius: 2rem .8rem 2rem .8rem; object-fit: cover; box-shadow: var(--discovery-shadow); }
.hero-media figcaption, .detail-hero-media figcaption { position: absolute; right: .8rem; bottom: .8rem; max-width: calc(100% - 1.6rem); padding: .55rem .8rem; border-radius: 99rem; background: rgba(255, 254, 248, .92); color: var(--discovery-ink); font-size: .8rem; font-weight: 750; backdrop-filter: blur(10px); }
.feed-hero { background: linear-gradient(145deg, #f0f1df 0%, var(--discovery-paper) 60%); }
.topics-hero { background: linear-gradient(145deg, #e9efdf 0%, var(--discovery-paper) 65%); }
.hero-actions { display: flex; flex-wrap: wrap; gap: .7rem; align-items: center; }
.topic-pill { padding: .58rem .85rem; border: 1px solid var(--discovery-line); border-radius: 99rem; background: rgba(255,255,255,.55); color: var(--discovery-green); font-size: .88rem; font-weight: 720; text-decoration: none; }
.topic-pill:hover { border-color: var(--discovery-green); background: white; }

.composer-section { position: relative; z-index: 3; margin-top: -1rem; padding-bottom: 1.2rem; }
.quick-composer { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: .85rem; padding: 1rem; border: 1px solid var(--discovery-line); border-radius: var(--discovery-radius); background: var(--discovery-white); box-shadow: var(--discovery-shadow); }
.avatar { flex: 0 0 auto; width: 2.65rem; height: 2.65rem; border-radius: 50%; object-fit: cover; }
.avatar-initials { display: grid; place-items: center; background: #dce7ce; color: var(--discovery-green); font-weight: 850; }
.avatar-clay { background: #f1d7cc; color: #874029; }
.avatar-green { background: var(--discovery-green); color: white; }
.composer-body { min-width: 0; }
.composer-body label { display: block; margin-bottom: .4rem; font-weight: 800; }
.composer-body textarea { width: 100%; min-height: 4.2rem; resize: vertical; border: 0; border-bottom: 1px solid var(--discovery-line); background: transparent; color: var(--discovery-ink); line-height: 1.6; }
.composer-body textarea:focus { border-bottom-color: var(--discovery-green); outline: none; }
.composer-meta { display: flex; justify-content: space-between; gap: .75rem; margin-top: .35rem; color: var(--discovery-muted); font-size: .75rem; }
.composer-actions { grid-column: 1 / -1; display: flex; flex-wrap: wrap; justify-content: flex-end; gap: .5rem; }
.form-message.is-error { color: #a32e24; }
.form-message.is-success { color: var(--discovery-green); font-weight: 750; }

.filter-section { padding-block: clamp(2.3rem, 5vw, 4rem) 1.4rem; }
.section-heading { display: flex; flex-direction: column; gap: .7rem; margin-bottom: 1.35rem; min-width: 0; }
.section-heading h2 { margin: 0; font-size: clamp(1.55rem, 4vw, 2.45rem); line-height: 1.15; }
.section-heading > p, .section-heading > a { margin: 0; color: var(--discovery-muted); }
.compact-heading { margin-bottom: 1rem; }
.result-count { align-self: flex-start; padding: .5rem .75rem; border-radius: 99rem; background: #e6eddf; color: var(--discovery-green) !important; font-size: .84rem; font-weight: 800; white-space: nowrap; }
.filter-row { display: flex; flex-direction: column; gap: .8rem; align-items: flex-start; padding-block: .85rem; border-block: 1px solid var(--discovery-line); }
.filter-chips { display: flex; max-width: 100%; flex-wrap: wrap; gap: .45rem; }
.filter-chip { min-height: 2.6rem; padding: .58rem .9rem; border: 1px solid var(--discovery-line); border-radius: 99rem; background: transparent; color: var(--discovery-muted); cursor: pointer; font-weight: 750; }
.filter-chip:hover, .filter-chip.is-active { border-color: var(--discovery-green); background: var(--discovery-green); color: white; }
.select-filter { display: flex; align-items: center; gap: .5rem; color: var(--discovery-muted); font-size: .85rem; font-weight: 750; }
.select-filter select { max-width: 11rem; min-height: 2.6rem; padding: .45rem 2rem .45rem .7rem; border: 1px solid var(--discovery-line); border-radius: 99rem; background: var(--discovery-white); color: var(--discovery-ink); }

.stream-section { padding-block: 1.4rem 3rem; }
.post-stream { display: grid; gap: 1.1rem; }
.post-card { display: grid; min-width: 0; overflow: hidden; border: 1px solid var(--discovery-line); border-radius: var(--discovery-radius); background: var(--discovery-white); box-shadow: 0 7px 30px rgba(33,63,44,.055); }
.post-card[hidden], [data-filter-item][hidden] { display: none !important; }
.post-card-content { min-width: 0; padding: 1.05rem; }
.post-author-line { display: flex; min-width: 0; align-items: center; gap: .65rem; margin-bottom: 1.1rem; }
.post-author-line > div:not(.avatar) { min-width: 0; }
.post-author-line p, .discussion-meta, .topic-index { margin: .1rem 0 0; color: var(--discovery-muted); font-size: .75rem; }
.author-name { font-weight: 850; text-decoration: none; }
.author-name:hover { text-decoration: underline; }
.status-badge { margin-left: auto; padding: .3rem .55rem; border-radius: 99rem; background: #f6e2d8; color: #873d26; font-size: .68rem; font-weight: 850; white-space: nowrap; }
.solved-badge { background: #dcebd2; color: var(--discovery-green); }
.topic-label { margin: 0 0 .38rem; color: var(--discovery-clay); font-size: .73rem; font-weight: 850; letter-spacing: .05em; }
.post-card h2 { margin: 0 0 .62rem; font-size: clamp(1.22rem, 3vw, 1.65rem); line-height: 1.28; }
.post-card h2 a, .discussion-card h3 a, .trend-card h3 a, .guide-card h3 a, .toolkit-card h3 a { text-decoration: none; }
.post-card h2 a:hover, .discussion-card h3 a:hover, .trend-card h3 a:hover, .guide-card h3 a:hover, .toolkit-card h3 a:hover { color: var(--discovery-clay); text-decoration: underline; text-underline-offset: .16rem; }
.post-card-content > p:not(.topic-label) { margin: 0; color: var(--discovery-muted); line-height: 1.68; }
.post-card blockquote { margin: 1rem 0 0; padding: .9rem 1rem; border-left: 3px solid var(--discovery-leaf); background: #f0f3e8; color: var(--discovery-green); line-height: 1.55; }
.tag-list { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .85rem; }
.tag-list a, .tag-cloud a { color: var(--discovery-green); font-size: .78rem; text-decoration: none; }
.post-media { display: block; overflow: hidden; min-width: 0; background: var(--discovery-paper-deep); }
.post-media img { width: 100%; height: 100%; aspect-ratio: 16 / 10; object-fit: cover; transition: transform .35s ease; }
.post-media:hover img { transform: scale(1.025); }
.post-actions { grid-column: 1 / -1; display: flex; align-items: center; gap: .25rem; padding: .7rem .75rem; border-top: 1px solid var(--discovery-line); }
.post-actions button, .post-actions a { display: inline-flex; min-height: 2.45rem; align-items: center; gap: .3rem; padding: .4rem .55rem; border: 0; border-radius: 99rem; background: transparent; color: var(--discovery-muted); cursor: pointer; font-size: .75rem; text-decoration: none; }
.post-actions button:last-child { margin-left: auto; }
.post-actions button:hover, .post-actions a:hover, .post-actions button[aria-pressed="true"] { background: #e7eedf; color: var(--discovery-green); }
.post-actions button[aria-pressed="true"] span { color: var(--discovery-clay); }
.empty-state { margin-block: 1.5rem; padding: clamp(2rem, 7vw, 4rem) 1rem; border: 1px dashed #aeb9a6; border-radius: var(--discovery-radius); background: #f4f4e9; text-align: center; }
.empty-state h2 { margin: .6rem 0; font-size: clamp(1.35rem, 4vw, 2rem); }
.empty-state p { max-width: 34rem; margin: 0 auto 1.2rem; color: var(--discovery-muted); line-height: 1.65; }
.empty-icon { display: grid; width: 3.5rem; height: 3.5rem; margin: auto; place-items: center; border-radius: 50%; background: #dfe8d6; color: var(--discovery-green); font-size: 1.5rem; }
.pagination-section { padding-bottom: clamp(3rem, 7vw, 6rem); }
.pagination-panel { display: flex; flex-direction: column; align-items: center; gap: .8rem; padding: 1.4rem; border-radius: var(--discovery-radius); background: var(--discovery-paper-deep); text-align: center; }
.pagination-panel p { margin: 0; color: var(--discovery-muted); }

.directory-section, .trending-section, .toolkit-section, .discussion-section, .experts-section, .guides-section { padding-block: clamp(2.5rem, 6vw, 5.5rem); }
.topic-directory { display: grid; gap: 1rem; min-width: 0; }
.topic-card { display: grid; min-width: 0; overflow: hidden; border: 1px solid var(--discovery-line); border-radius: var(--discovery-radius); background: var(--discovery-white); }
.topic-card-media { position: relative; min-width: 0; overflow: hidden; }
.topic-card-media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .35s ease; }
.topic-card-media:hover img { transform: scale(1.03); }
.topic-card-media > span { position: absolute; top: .75rem; left: .75rem; padding: .35rem .65rem; border-radius: 99rem; background: var(--discovery-gold); color: #40300b; font-size: .7rem; font-weight: 850; }
.topic-card-body { display: flex; min-width: 0; flex-direction: column; padding: 1.1rem; }
.topic-card h3 { margin: 0 0 .55rem; font-size: clamp(1.45rem, 4vw, 2rem); }
.topic-card h3 a { text-decoration: none; }
.topic-card-body > p:not(.topic-index) { margin: 0; color: var(--discovery-muted); line-height: 1.65; }
.topic-stats { display: flex; flex-wrap: wrap; gap: .5rem 1.1rem; margin: 1.1rem 0; color: var(--discovery-muted); font-size: .78rem; }
.topic-stats strong { color: var(--discovery-ink); font-size: 1rem; }
.card-footer, .expert-footer { display: flex; align-items: center; justify-content: space-between; gap: .7rem; margin-top: auto; padding-top: .8rem; border-top: 1px solid var(--discovery-line); }
.text-arrow { color: var(--discovery-green); font-weight: 800; text-decoration: none; }
.text-arrow:hover { color: var(--discovery-clay); text-decoration: underline; text-underline-offset: .2rem; }
.follow-button { flex: 0 0 auto; min-height: 2.25rem; padding: .45rem .7rem; border: 1px solid var(--discovery-green); border-radius: 99rem; background: transparent; color: var(--discovery-green); cursor: pointer; font-size: .75rem; font-weight: 800; }
.follow-button[aria-pressed="true"] { background: var(--discovery-green); color: white; }
.trending-section { background: #e8ecdd; }
.trending-grid { display: grid; gap: 1rem; min-width: 0; }
.trend-card { display: grid; grid-template-columns: minmax(6.5rem, 34%) minmax(0, 1fr); min-width: 0; overflow: hidden; border-radius: 1rem; background: var(--discovery-white); }
.trend-card > a, .trend-card img { width: 100%; height: 100%; }
.trend-card img { object-fit: cover; }
.trend-card > div { min-width: 0; padding: 1rem; }
.trend-card p, .trend-card span { margin: 0; color: var(--discovery-muted); font-size: .72rem; }
.trend-card h3 { margin: .35rem 0 .8rem; font-size: 1rem; line-height: 1.35; }
.trend-card span { color: var(--discovery-clay); font-weight: 750; }
.suggest-section { display: block; padding-block: clamp(3rem, 7vw, 6rem); background: var(--discovery-green); color: white; }
.suggest-grid { display: grid; gap: 1.5rem; align-items: center; }
.suggest-section .eyebrow { color: #d5ea9b; }
.suggest-section h2 { max-width: 15ch; margin: 0; color: #fff; font-size: clamp(1.7rem, 5vw, 2.8rem); }
.suggest-section p { max-width: 35rem; color: #d7e3da; line-height: 1.65; }
.suggest-fields { min-width: 0; }
.suggest-fields label { display: block; margin-bottom: .5rem; font-weight: 800; }
.input-action { display: flex; min-width: 0; flex-direction: column; gap: .55rem; }
.input-action input { width: 100%; min-width: 0; min-height: 3.15rem; padding: .7rem 1rem; border: 1px solid rgba(255,255,255,.35); border-radius: 99rem; background: white; color: var(--discovery-ink); }
.input-action .button-primary { background: var(--discovery-gold); color: #382b0c; }
.suggest-fields .form-message { display: block; min-height: 1.5em; margin: .45rem 0 0; font-size: .8rem; }
.suggest-fields .form-message.is-error { color: #ffd7cb; }
.suggest-fields .form-message.is-success { color: #e4f5b4; }

.topic-detail-hero { background: linear-gradient(140deg, #e6eddb, #f8f6ed 68%); }
.breadcrumb { display: flex; gap: .5rem; margin-bottom: 1.6rem; color: var(--discovery-muted); font-size: .8rem; }
.breadcrumb a { color: var(--discovery-green); }
.hero-stats { display: flex; flex-wrap: wrap; gap: .7rem 1.4rem; margin-bottom: 1.4rem; }
.hero-stats span { color: var(--discovery-muted); font-size: .8rem; }
.hero-stats strong { display: block; color: var(--discovery-ink); font-size: 1.35rem; }
.toolkit-section { padding-bottom: 1.5rem; }
.toolkit-grid { display: grid; gap: .8rem; min-width: 0; }
.toolkit-card { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: .8rem; align-items: start; min-width: 0; padding: 1rem; border: 1px solid var(--discovery-line); border-radius: 1rem; background: var(--discovery-white); }
.toolkit-icon { display: grid; width: 2.55rem; height: 2.55rem; place-items: center; border-radius: .7rem; background: #dcebd2; color: var(--discovery-green); font-weight: 900; }
.clay-icon { background: #f4ddd3; color: var(--discovery-clay); }
.gold-icon { background: #f6e9bd; color: #755707; }
.toolkit-card p { margin: 0; color: var(--discovery-muted); font-size: .77rem; line-height: 1.5; }
.toolkit-card h3 { margin: .2rem 0 .4rem; font-size: 1rem; }
.circle-link { display: grid; width: 2rem; height: 2rem; place-items: center; border-radius: 50%; background: var(--discovery-paper-deep); color: var(--discovery-green); font-weight: 900; text-decoration: none; }
.discussion-section { scroll-margin-top: 1rem; }
.discussion-layout, .discussion-main, .topic-sidebar { min-width: 0; }
.discussion-list { display: grid; gap: .8rem; }
.discussion-card { position: relative; display: grid; min-width: 0; overflow: hidden; border: 1px solid var(--discovery-line); border-radius: 1rem; background: var(--discovery-white); }
.discussion-media img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.discussion-body { position: relative; min-width: 0; padding: 1rem; }
.discussion-meta { display: flex; align-items: center; gap: .5rem; min-height: 1.8rem; }
.discussion-meta .status-badge { margin-left: 0; }
.discussion-card h3 { max-width: 33rem; margin: .4rem 0; font-size: clamp(1.08rem, 3vw, 1.3rem); line-height: 1.35; }
.discussion-body > p { margin: 0; color: var(--discovery-muted); font-size: .88rem; line-height: 1.58; }
.author-summary { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin-top: .8rem; color: var(--discovery-muted); font-size: .75rem; }
.author-summary .avatar { width: 1.8rem; height: 1.8rem; font-size: .65rem; }
.author-summary a { margin-left: auto; color: var(--discovery-green); font-weight: 750; text-decoration: none; }
.save-corner { margin-top: .8rem; padding: .35rem .5rem; border: 0; border-radius: 99rem; background: var(--discovery-paper-deep); color: var(--discovery-muted); cursor: pointer; font-size: .72rem; }
.save-corner[aria-pressed="true"] { background: #dcebd2; color: var(--discovery-green); }
.topic-sidebar { display: grid; gap: 1rem; align-content: start; margin-top: 1.5rem; }
.sidebar-note, .sidebar-tags { padding: 1.2rem; border-radius: 1rem; background: #e8ecdd; }
.sidebar-note h2, .sidebar-tags h2 { margin: 0 0 .7rem; font-size: 1.25rem; }
.sidebar-note > p:not(.eyebrow) { color: var(--discovery-muted); line-height: 1.6; }
.sidebar-tags { border: 1px solid var(--discovery-line); background: var(--discovery-white); }
.tag-cloud { display: flex; flex-wrap: wrap; gap: .45rem; }
.tag-cloud a { padding: .42rem .6rem; border-radius: 99rem; background: var(--discovery-paper-deep); }
.experts-section { background: #e9eddf; }
.expert-grid, .guide-grid { display: grid; gap: 1rem; min-width: 0; }
.expert-card { min-width: 0; overflow: hidden; border-radius: var(--discovery-radius); background: var(--discovery-white); }
.expert-card > img { width: 100%; aspect-ratio: 6 / 5; object-fit: cover; object-position: center 28%; }
.expert-card > div { padding: 1rem; }
.expert-card p { margin: 0; color: var(--discovery-muted); font-size: .78rem; line-height: 1.55; }
.expert-card h3 { margin: .22rem 0 .5rem; font-size: 1.3rem; }
.expert-card h3 a { text-decoration: none; }
.expert-footer { margin-top: .9rem; font-size: .72rem; }
.guides-section { scroll-margin-top: 1rem; }
.guide-card { min-width: 0; overflow: hidden; border: 1px solid var(--discovery-line); border-radius: var(--discovery-radius); background: var(--discovery-white); }
.guide-card > a { display: block; overflow: hidden; }
.guide-card img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; transition: transform .35s ease; }
.guide-card:hover img { transform: scale(1.025); }
.guide-card > div { padding: 1rem; }
.guide-card p { margin: 0; color: var(--discovery-muted); font-size: .8rem; line-height: 1.6; }
.guide-card h3 { margin: .35rem 0 .55rem; font-size: 1.18rem; line-height: 1.35; }
.guide-card button { margin-top: 1rem; padding: .45rem .65rem; border: 0; border-radius: 99rem; background: var(--discovery-paper-deep); color: var(--discovery-green); cursor: pointer; font-size: .75rem; font-weight: 800; }
.guide-card button[aria-pressed="true"] { background: var(--discovery-green); color: white; }

.site-footer { padding-block: 2.5rem; border-top: 1px solid var(--discovery-line); background: #163629; color: #e7eee8; }
.footer-grid { display: grid; gap: 1.5rem; min-width: 0; }
.footer-brand { color: white; }
.footer-grid p { margin: .7rem 0 0; color: #b9cbbf; font-size: .83rem; }
.footer-grid nav { display: flex; flex-wrap: wrap; gap: .6rem 1.2rem; }
.footer-grid nav a { color: #dce8de; font-size: .84rem; text-decoration: none; }
.footer-grid nav a:hover { text-decoration: underline; }

@media (min-width: 560px) {
  .shell { width: min(100% - 3rem, 78rem); }
  .narrow-shell { width: min(100% - 3rem, 66rem); }
  .header-actions .text-link { display: inline; }
  .quick-composer { grid-template-columns: auto minmax(0, 1fr) auto; align-items: start; padding: 1.15rem; }
  .composer-actions { grid-column: auto; }
  .filter-row { flex-direction: row; flex-wrap: wrap; align-items: center; }
  .filter-row .button-text { margin-left: auto; }
  .section-heading { flex-direction: row; align-items: end; justify-content: space-between; }
  .input-action { flex-direction: row; }
  .input-action .button { flex: 0 0 auto; }
}

@media (min-width: 800px) {
  .primary-nav { display: flex; }
  .hero-grid { grid-template-columns: minmax(0, .88fr) minmax(0, 1.12fr); gap: clamp(2rem, 5vw, 5rem); }
  .detail-hero-grid { grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: clamp(2rem, 5vw, 5rem); }
  .hero-media img { aspect-ratio: 5 / 4; }
  .detail-hero-media img { aspect-ratio: 4 / 3; }
  .post-card { grid-template-columns: minmax(0, 1.45fr) minmax(15rem, .75fr); }
  .post-card-content { padding: 1.35rem; }
  .post-media img { aspect-ratio: auto; }
  .topic-directory { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .large-topic-card { grid-column: 1 / -1; grid-template-columns: minmax(0, 1.18fr) minmax(0, .82fr); }
  .large-topic-card .topic-card-media img { height: 100%; aspect-ratio: auto; }
  .wide-topic-card { grid-column: span 1; }
  .trending-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .trend-card { grid-template-columns: 1fr; }
  .trend-card > a { aspect-ratio: 16 / 9; }
  .suggest-grid { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 4rem; }
  .toolkit-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .discussion-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(14rem, 18rem); gap: clamp(1.5rem, 4vw, 3rem); align-items: start; }
  .discussion-card { grid-template-columns: minmax(10rem, .34fr) minmax(0, .66fr); }
  .discussion-media img { height: 100%; aspect-ratio: auto; }
  .topic-sidebar { position: sticky; top: 1rem; margin-top: 0; }
  .expert-grid, .guide-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: 1.2fr 1fr auto; align-items: start; }
}

@media (min-width: 1120px) {
  .topic-directory { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .large-topic-card { grid-column: span 2; }
  .wide-topic-card { grid-column: span 2; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); }
  .wide-topic-card .topic-card-media img { height: 100%; aspect-ratio: auto; }
  .discussion-layout { grid-template-columns: minmax(0, 1fr) minmax(17rem, 20rem); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
