/* Red Fruit Manhua: responsive native CSS */
:root {
  --brand: #E85D75;
  --brand-strong: #D93F63;
  --accent: #F2A65A;
  --ink: #332D34;
  --ink-strong: #2F2530;
  --muted: #756A73;
  --bg: #FFF9F6;
  --bg-soft: #F8EEF0;
  --white: #FFFFFF;
  --line: #EBDDE0;
  --line-strong: #DEC9CE;
  --shadow: 0 20px 60px rgba(70, 44, 56, .10);
  --shadow-soft: 0 10px 30px rgba(70, 44, 56, .07);
  --radius-xl: 34px;
  --radius-lg: 24px;
  --radius-md: 17px;
  --radius-sm: 12px;
  --shell: min(1180px, calc(100% - 40px));
  --reading: 760px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif; line-height: 1.7; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button { color: inherit; }
[hidden] { display: none !important; }
.shell { width: var(--shell); margin-inline: auto; }
.skip-link { position: fixed; z-index: 9999; left: 16px; top: 10px; transform: translateY(-150%); padding: 10px 16px; border-radius: 10px; background: var(--ink-strong); color: white; transition: transform .2s ease; }
.skip-link:focus { transform: translateY(0); }
:focus-visible { outline: 3px solid rgba(217, 63, 99, .42); outline-offset: 4px; border-radius: 8px; }

.site-header { position: sticky; top: 0; z-index: 50; border-bottom: 1px solid rgba(235, 221, 224, .8); background: rgba(255, 249, 246, .92); backdrop-filter: blur(18px); }
.header-inner { min-height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.brand-lockup { display: inline-flex; align-items: center; gap: 12px; min-width: 0; }
.brand-mark { width: 46px; height: 46px; border-radius: 14px; object-fit: cover; background: var(--bg-soft); box-shadow: var(--shadow-soft); }
.brand-copy { display: grid; line-height: 1.25; gap: 2px; }
.brand-copy strong { font-size: 1.08rem; letter-spacing: .02em; color: var(--ink-strong); }
.brand-copy small { color: var(--muted); font-size: .78rem; }
.site-nav { display: flex; align-items: center; gap: 6px; }
.site-nav a { padding: 10px 14px; border-radius: 999px; color: var(--muted); font-weight: 650; font-size: .95rem; transition: background .2s ease, color .2s ease, transform .2s ease; }
.site-nav a:hover { color: var(--ink-strong); background: var(--bg-soft); transform: translateY(-1px); }
.site-nav a.is-active { color: var(--brand-strong); background: #FBE4E9; }
.nav-toggle { display: none; width: 44px; height: 44px; border: 0; border-radius: 12px; background: var(--bg-soft); padding: 10px; cursor: pointer; }
.nav-toggle span { display: block; height: 2px; background: var(--ink-strong); margin: 5px 0; border-radius: 2px; transition: transform .2s ease, opacity .2s ease; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.hero { padding: 72px 0 54px; display: grid; grid-template-columns: minmax(0, 1.03fr) minmax(380px, .97fr); align-items: center; gap: 64px; }
.hero h1, .page-hero h1, .article-header h1 { margin: 0; color: var(--ink-strong); font-size: clamp(2.25rem, 5vw, 4.7rem); line-height: 1.08; letter-spacing: -.045em; }
.hero-lead, .page-hero p, .article-deck { color: var(--muted); font-size: 1.12rem; line-height: 1.85; max-width: 720px; }
.eyebrow { margin: 0 0 10px; color: var(--brand-strong); font-size: .78rem; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.action-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.button { display: inline-flex; min-height: 46px; align-items: center; justify-content: center; padding: 11px 18px; border-radius: 999px; font-weight: 760; transition: transform .2s ease, box-shadow .2s ease, background .2s ease; }
.button:hover { transform: translateY(-2px); }
.button-primary { background: var(--brand-strong); color: white; box-shadow: 0 12px 24px rgba(217,63,99,.22); }
.button-primary:hover { box-shadow: 0 16px 30px rgba(217,63,99,.3); }
.button-secondary { background: var(--white); border: 1px solid var(--line-strong); color: var(--ink-strong); }
.hero-points { margin: 28px 0 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 9px; }
.hero-points li, .soft-tag, .tag-list li { border: 1px solid var(--line); background: rgba(255,255,255,.72); color: var(--muted); border-radius: 999px; padding: 6px 11px; font-size: .83rem; }
.hero-media { margin: 0; background: var(--bg-soft); border-radius: var(--radius-xl); padding: 18px; box-shadow: var(--shadow); transform: rotate(1.2deg); }
.hero-media img { width: 100%; aspect-ratio: 5 / 4; object-fit: cover; border-radius: 24px; }
.hero-media figcaption { color: var(--muted); font-size: .86rem; padding: 12px 4px 2px; }

.content-band { background: linear-gradient(180deg, rgba(248,238,240,.75), rgba(248,238,240,.18)); padding: 76px 0 84px; border-block: 1px solid rgba(235,221,224,.72); }
.section-heading { margin-bottom: 28px; }
.section-heading h2, .viewing-panel h2, .compact-cta h2, .sticky-note h2, .keyboard-section h2, .related-section h2 { margin: 0; color: var(--ink-strong); font-size: clamp(1.7rem, 3vw, 2.65rem); line-height: 1.2; letter-spacing: -.025em; }
.section-heading > p:last-child, .split-heading > p, .viewing-copy > p, .compact-cta p, .sticky-note p, .keyboard-section p { color: var(--muted); }
.split-heading { display: grid; grid-template-columns: 1fr minmax(320px, .7fr); gap: 52px; align-items: end; }
.split-heading > p { margin: 0; }
.group-stack { display: grid; gap: 54px; }
.content-group { display: grid; gap: 22px; }
.group-intro { display: grid; grid-template-columns: .5fr 1fr; gap: 28px; align-items: baseline; border-top: 1px solid var(--line-strong); padding-top: 20px; }
.group-intro h3 { margin: 0; font-size: 1.1rem; color: var(--ink-strong); }
.group-intro p { margin: 0; color: var(--muted); }
.topic-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.topic-card { overflow: hidden; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: 0 8px 22px rgba(70,44,56,.04); }
.topic-card img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; background: var(--bg-soft); }
.topic-card-body { padding: 21px; }
.card-kicker { margin: 0 0 8px; color: var(--brand-strong); font-weight: 800; font-size: .78rem; letter-spacing: .08em; }
.topic-card h3, .library-card h2, .feature-row h3 { margin: 0; color: var(--ink-strong); font-size: 1.22rem; line-height: 1.35; }
.topic-card h3 a:hover, .library-card h2 a:hover, .feature-row h3 a:hover { color: var(--brand-strong); }
.topic-card p { color: var(--muted); }
.text-link { color: var(--brand-strong); font-weight: 760; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }

.viewing-panel { margin-block: 82px; padding: 38px; display: grid; grid-template-columns: 1fr .72fr; gap: 42px; align-items: center; border-radius: var(--radius-xl); background: var(--ink-strong); color: white; overflow: hidden; }
.viewing-panel .eyebrow { color: #FFC3CF; }
.viewing-panel h2 { color: white; }
.viewing-panel .viewing-copy > p { color: #E1D6DE; }
.viewing-panel img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 22px; }
.inline-links { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.inline-links a { color: white; border-bottom: 1px solid rgba(255,255,255,.5); }

.editorial-grid { margin-block: 80px; display: grid; grid-template-columns: .65fr 1.35fr; gap: 70px; align-items: start; }
.feature-list { border-top: 1px solid var(--line-strong); }
.feature-row { display: grid; grid-template-columns: minmax(240px,.8fr) 1.2fr; gap: 26px; padding: 23px 0; border-bottom: 1px solid var(--line); align-items: start; }
.feature-row p { margin: 0; color: var(--muted); }
.feature-row h3 { margin-top: 9px; }
.soft-tag { display: inline-flex; padding: 4px 9px; font-size: .75rem; }
.compact-cta { margin-block: 80px 100px; display: flex; justify-content: space-between; align-items: center; gap: 36px; padding: 34px 38px; border: 1px solid var(--line); background: linear-gradient(135deg,#FFF,#FBECEF); border-radius: var(--radius-xl); }
.compact-cta p { max-width: 700px; margin-bottom: 0; }

.page-shell { padding-block: 48px 90px; }
.page-hero { display: grid; grid-template-columns: 1fr minmax(320px,.72fr); gap: 54px; align-items: center; padding: 34px 0 64px; }
.page-hero h1 { font-size: clamp(2.1rem, 4.5vw, 4rem); }
.page-hero img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius-xl); box-shadow: var(--shadow); background: var(--bg-soft); }
.page-hero-index img { transform: rotate(-1deg); }

.filter-bar { position: sticky; top: 88px; z-index: 20; display: flex; gap: 8px; overflow-x: auto; padding: 12px; margin: 0 0 24px; border: 1px solid var(--line); border-radius: 18px; background: rgba(255,249,246,.93); backdrop-filter: blur(14px); scrollbar-width: thin; }
.filter-chip { flex: 0 0 auto; border: 1px solid var(--line); background: white; padding: 8px 13px; border-radius: 999px; cursor: pointer; color: var(--muted); font-weight: 700; }
.filter-chip:hover { border-color: var(--line-strong); color: var(--ink-strong); }
.filter-chip.is-selected { background: var(--brand-strong); border-color: var(--brand-strong); color: white; }
.library-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 18px; }
.library-card { display: grid; grid-template-columns: 180px 1fr; gap: 20px; padding: 16px; border: 1px solid var(--line); background: white; border-radius: var(--radius-lg); }
.library-card img { width: 100%; height: 100%; min-height: 210px; object-fit: cover; border-radius: 16px; background: var(--bg-soft); }
.library-card p { color: var(--muted); }
.tag-list { list-style: none; display: flex; flex-wrap: wrap; gap: 7px; padding: 0; margin: 14px 0 0; }
.tag-list li { padding: 4px 9px; font-size: .76rem; }
.filter-empty { padding: 40px; text-align: center; color: var(--muted); border: 1px dashed var(--line-strong); border-radius: 18px; }

.web-hero { padding-top: 56px; }
.steps-section { padding: 10px 0 76px; }
.step-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; }
.step-list li { border: 1px solid var(--line); background: white; border-radius: var(--radius-lg); padding: 26px; }
.step-list li > span { display: inline-flex; width: 42px; height: 42px; align-items: center; justify-content: center; border-radius: 50%; background: var(--bg-soft); color: var(--brand-strong); font-weight: 850; font-size: .82rem; }
.step-list h3 { margin: 18px 0 6px; color: var(--ink-strong); }
.step-list p { margin: 0; color: var(--muted); }
.soft-section { background: var(--bg-soft); border-block: 1px solid var(--line); padding: 82px 0; }
.device-layout { display: grid; grid-template-columns: .7fr 1.3fr; gap: 62px; align-items: start; }
.device-layout h2 { margin: 0; font-size: clamp(1.8rem,3vw,2.8rem); color: var(--ink-strong); }
.device-layout > div:first-child > p { color: var(--muted); }
.device-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.device-cards article { background: white; border-radius: var(--radius-lg); padding: 14px; border: 1px solid rgba(235,221,224,.85); }
.device-cards img { aspect-ratio: 4 / 3; object-fit: cover; border-radius: 15px; width: 100%; }
.device-cards h3 { margin: 14px 6px 4px; }
.device-cards p { margin: 0 6px 8px; color: var(--muted); }
.faq-section { padding: 82px 0 100px; max-width: 880px; }
.faq-list { border-top: 1px solid var(--line-strong); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item h3 { margin: 0; }
.faq-item button { width: 100%; display: flex; justify-content: space-between; gap: 30px; padding: 20px 0; background: transparent; border: 0; cursor: pointer; text-align: left; font-weight: 760; font-size: 1.04rem; }
.faq-item button span { color: var(--brand-strong); font-size: 1.4rem; transition: transform .2s ease; }
.faq-item button[aria-expanded="true"] span { transform: rotate(45deg); }
.faq-answer { padding: 0 34px 20px 0; color: var(--muted); }
.faq-answer p { margin: 0; }

.desktop-layout { display: grid; grid-template-columns: .75fr 1.25fr; gap: 52px; align-items: start; padding: 20px 0 82px; }
.sticky-note { position: sticky; top: 118px; padding: 28px; border-radius: var(--radius-xl); background: var(--ink-strong); color: white; }
.sticky-note h2 { color: white; }
.sticky-note p:not(.eyebrow) { color: #DFD4DC; }
.sticky-note img { border-radius: 18px; margin-top: 22px; aspect-ratio: 16 / 10; object-fit: cover; }
.tip-stack { display: grid; gap: 12px; }
.tip-stack article { padding: 24px 26px; border-radius: var(--radius-lg); border: 1px solid var(--line); background: white; }
.tip-stack h3 { margin: 0 0 6px; color: var(--ink-strong); }
.tip-stack p { margin: 0; color: var(--muted); }
.keyboard-section { display: grid; grid-template-columns: .7fr 1.3fr; gap: 56px; padding: 62px 0; border-block: 1px solid var(--line-strong); }
.key-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 0; }
.key-grid div { padding: 20px; border-radius: 16px; background: var(--bg-soft); }
.key-grid dt { font-weight: 850; color: var(--brand-strong); }
.key-grid dd { margin: 5px 0 0; color: var(--muted); }
.related-strip { padding: 78px 0 20px; }
.related-links { display: grid; grid-template-columns: repeat(3,1fr); gap: 14px; margin-top: 24px; }
.related-links a { display: grid; gap: 5px; padding: 22px; border-radius: var(--radius-lg); background: white; border: 1px solid var(--line); }
.related-links span { color: var(--brand-strong); font-size: .78rem; font-weight: 800; }
.related-links strong { color: var(--ink-strong); }

.article-shell { padding-block: 52px 96px; }
.topic-article { max-width: 1040px; margin: 0 auto; }
.article-header { display: grid; grid-template-columns: 1fr 360px; gap: 46px; align-items: center; padding: 18px 0 46px; }
.article-header h1 { font-size: clamp(2.1rem,4.5vw,4.1rem); }
.article-header img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius-xl); box-shadow: var(--shadow); background: var(--bg-soft); }
.article-body { max-width: var(--reading); margin: 18px auto 0; font-size: 1.08rem; }
.article-body p { margin: 0 0 1.45em; }
.article-body h2 { margin: 2.2em 0 .8em; font-size: 1.72rem; color: var(--ink-strong); letter-spacing: -.02em; }
.article-body p:first-child::first-letter { float: left; font-size: 3.2rem; line-height: .92; font-weight: 850; color: var(--brand-strong); margin: .07em .12em 0 0; }
.related-section { max-width: 1040px; margin: 78px auto 0; padding-top: 34px; border-top: 1px solid var(--line-strong); }
.related-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 14px; margin-top: 22px; }
.related-card { display: grid; gap: 7px; min-height: 190px; align-content: start; padding: 22px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: white; }
.related-card span { color: var(--brand-strong); font-size: .75rem; font-weight: 800; }
.related-card strong { font-size: 1.08rem; line-height: 1.4; color: var(--ink-strong); }
.related-card small { color: var(--muted); line-height: 1.6; }

.empty-state { max-width: 720px; margin: 90px auto; text-align: center; padding: 60px 38px; border: 1px solid var(--line); background: white; border-radius: var(--radius-xl); box-shadow: var(--shadow-soft); }
.empty-state h1 { margin: 0; font-size: clamp(2rem,5vw,3.4rem); color: var(--ink-strong); }
.empty-state p { color: var(--muted); }
.empty-state .action-row { justify-content: center; }

.site-footer { border-top: 1px solid var(--line); background: #F5EAED; padding: 40px 0; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr auto; gap: 34px; align-items: start; }
.footer-brand { color: var(--ink-strong); font-size: 1.08rem; }
.footer-grid p { color: var(--muted); max-width: 500px; margin-bottom: 0; }
.footer-grid nav { display: grid; gap: 7px; }
.footer-grid nav a { color: var(--muted); }
.footer-grid nav a:hover { color: var(--brand-strong); }
.footer-note { text-align: right; font-size: .86rem; }

.reveal-ready { opacity: 0; transform: translateY(10px); transition: opacity .5s ease, transform .5s ease; }
.reveal-ready.is-visible { opacity: 1; transform: none; }
.was-clicked { }

@media (max-width: 980px) {
  :root { --shell: min(100% - 32px, 920px); }
  .hero { grid-template-columns: 1fr 1fr; gap: 34px; }
  .hero h1 { font-size: clamp(2.1rem,5.5vw,3.65rem); }
  .topic-grid { grid-template-columns: repeat(2,1fr); }
  .editorial-grid { grid-template-columns: 1fr; gap: 24px; }
  .library-grid { grid-template-columns: 1fr; }
  .device-layout, .keyboard-section { gap: 34px; }
  .article-header { grid-template-columns: 1fr 300px; }
}

@media (max-width: 760px) {
  :root { --shell: min(100% - 24px, 700px); --radius-xl: 25px; --radius-lg: 19px; }
  body.nav-open { overflow: hidden; }
  .header-inner { min-height: 68px; }
  .brand-mark { width: 40px; height: 40px; border-radius: 12px; }
  .brand-copy small { display: none; }
  .nav-toggle { display: block; }
  .site-nav { position: fixed; inset: 68px 12px auto 12px; display: grid; gap: 4px; padding: 12px; background: rgba(255,249,246,.98); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); transform: translateY(-8px); opacity: 0; pointer-events: none; transition: transform .2s ease, opacity .2s ease; }
  .site-nav.is-open { transform: none; opacity: 1; pointer-events: auto; }
  .site-nav a { padding: 12px 14px; }
  .hero, .page-hero, .article-header { grid-template-columns: 1fr; }
  .hero { padding-top: 42px; gap: 30px; }
  .hero-media { transform: none; }
  .hero-media img { aspect-ratio: 4 / 3; }
  .split-heading { grid-template-columns: 1fr; gap: 10px; }
  .group-intro { grid-template-columns: 1fr; gap: 5px; }
  .topic-grid { grid-template-columns: 1fr; }
  .viewing-panel { grid-template-columns: 1fr; padding: 26px; margin-block: 56px; }
  .editorial-grid { margin-block: 56px; }
  .feature-row { grid-template-columns: 1fr; gap: 8px; }
  .compact-cta { flex-direction: column; align-items: flex-start; margin-block: 56px 72px; padding: 26px; }
  .page-shell { padding-top: 28px; }
  .page-hero { padding-bottom: 42px; gap: 28px; }
  .filter-bar { top: 76px; }
  .library-card { grid-template-columns: 120px 1fr; gap: 14px; }
  .library-card img { min-height: 170px; }
  .step-list { grid-template-columns: 1fr; }
  .soft-section { padding: 58px 0; }
  .device-layout { grid-template-columns: 1fr; }
  .device-cards { grid-template-columns: 1fr 1fr; }
  .desktop-layout { grid-template-columns: 1fr; }
  .sticky-note { position: static; }
  .keyboard-section { grid-template-columns: 1fr; }
  .related-links, .related-grid { grid-template-columns: 1fr; }
  .article-header img { max-height: 480px; aspect-ratio: 4 / 3; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-note { grid-column: 1 / -1; text-align: left; }
}

@media (max-width: 520px) {
  :root { --shell: calc(100% - 20px); }
  .hero h1, .page-hero h1, .article-header h1 { letter-spacing: -.03em; }
  .action-row { display: grid; }
  .button { width: 100%; }
  .hero-points { gap: 6px; }
  .topic-card-body { padding: 18px; }
  .viewing-panel { padding: 22px; }
  .library-card { grid-template-columns: 1fr; }
  .library-card img { min-height: 0; aspect-ratio: 16 / 9; }
  .device-cards { grid-template-columns: 1fr; }
  .key-grid { grid-template-columns: 1fr; }
  .article-shell { padding-top: 28px; }
  .article-header { gap: 24px; }
  .article-body { font-size: 1rem; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-note { grid-column: auto; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .reveal-ready { opacity: 1; transform: none; }
}

@media print {
  .site-header, .site-footer, .nav-toggle, .filter-bar, .action-row { display: none !important; }
  body { background: white; color: black; }
  .shell, .article-body, .topic-article { width: 100%; max-width: none; }
  a { text-decoration: underline; }
  .page-shell, .article-shell { padding: 0; }
}


/* Search and dense-content refinements */
.search-page { max-width: 980px; }
.search-header { max-width: 760px; padding: 18px 0 24px; }
.search-header h1 { margin: 0; color: var(--ink-strong); font-size: clamp(2rem, 4.6vw, 4rem); line-height: 1.1; letter-spacing: -.04em; }
.search-header p:last-child { color: var(--muted); font-size: 1.05rem; }
.search-form { margin: 18px 0 36px; padding: 22px; border: 1px solid var(--line); background: white; border-radius: var(--radius-lg); box-shadow: var(--shadow-soft); }
.search-form label { display: block; margin-bottom: 10px; color: var(--ink-strong); font-weight: 780; }
.search-form > div { display: grid; grid-template-columns: 1fr auto; gap: 10px; }
.search-form input { width: 100%; min-height: 48px; border: 1px solid var(--line-strong); border-radius: 999px; background: var(--bg); color: var(--ink); padding: 10px 17px; outline: 0; }
.search-form input:focus { border-color: var(--brand); box-shadow: 0 0 0 4px rgba(232,93,117,.12); }
.search-suggestions { padding: 30px 0 48px; }
.search-suggestions h2, .result-heading h2 { color: var(--ink-strong); margin: 0; font-size: 1.5rem; }
.suggestion-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.suggestion-links a { padding: 9px 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--bg-soft); color: var(--ink-strong); font-weight: 700; }
.suggestion-links a:hover { background: white; border-color: var(--brand); color: var(--brand-strong); }
.result-heading { display: flex; justify-content: space-between; align-items: baseline; gap: 24px; padding-bottom: 14px; border-bottom: 1px solid var(--line-strong); }
.result-heading span { color: var(--muted); font-size: .9rem; }
.result-list { display: grid; gap: 0; }
.result-list article { padding: 24px 2px; border-bottom: 1px solid var(--line); }
.result-list h3 { margin: 0; font-size: 1.3rem; color: var(--ink-strong); }
.result-list h3 a:hover { color: var(--brand-strong); }
.result-list p { color: var(--muted); max-width: 780px; }

@media (min-width: 1240px) {
  .topic-grid { gap: 22px; }
  .topic-card-body { padding: 24px; }
  .hero { min-height: 650px; }
  .viewing-panel { padding: 46px; }
  .article-body { font-size: 1.1rem; line-height: 1.84; }
}

@media (hover: hover) and (pointer: fine) {
  .topic-card, .library-card, .related-card, .tip-stack article { transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease; }
  .topic-card:hover, .library-card:hover, .related-card:hover, .tip-stack article:hover { transform: translateY(-3px); border-color: #DDC4CA; box-shadow: 0 16px 34px rgba(70,44,56,.08); }
  .related-links a { transition: transform .2s ease, border-color .2s ease, background .2s ease; }
  .related-links a:hover { transform: translateY(-2px); border-color: #DDC4CA; background: #FFFDFB; }
}

@media (max-width: 760px) {
  .search-form { padding: 16px; }
  .search-form > div { grid-template-columns: 1fr; }
  .search-form .button { width: 100%; }
  .result-heading { align-items: flex-start; flex-direction: column; gap: 3px; }
}

/* Fine-grained responsive details for long-form topic pages */
.article-body blockquote { margin: 2rem 0; padding: 1rem 1.2rem; border-left: 4px solid var(--brand); background: var(--bg-soft); color: var(--ink); border-radius: 0 var(--radius-md) var(--radius-md) 0; }
.article-body ul, .article-body ol { padding-left: 1.4rem; }
.article-body li + li { margin-top: .45rem; }
.topic-article hr { border: 0; border-top: 1px solid var(--line); margin: 2.5rem 0; }
.topic-card a, .library-card a, .feature-row a, .related-card, .related-links a { text-underline-offset: 3px; }
.topic-card a:focus-visible, .library-card a:focus-visible, .feature-row a:focus-visible, .related-card:focus-visible, .related-links a:focus-visible { outline-offset: 3px; }
.filter-chip:active, .button:active { transform: translateY(1px); }
.site-nav a[aria-current="page"] { color: var(--brand-strong); background: #FBE4E9; }
.footer-grid nav a { width: fit-content; }
.footer-grid nav a:focus-visible { outline-offset: 2px; }
.hero-copy, .viewing-copy, .section-heading, .group-intro, .search-header { min-width: 0; }
.topic-card-body p, .library-card p, .feature-row p, .result-list p { overflow-wrap: anywhere; }
@media (max-width: 420px) {
  .header-inner { gap: 12px; }
  .brand-copy strong { font-size: 1rem; }
  .hero { padding-top: 32px; }
  .hero-lead, .page-hero p, .article-deck { font-size: 1rem; }
  .content-band { padding-block: 56px; }
  .viewing-panel, .compact-cta, .sticky-note { border-radius: 22px; }
  .topic-card, .library-card, .step-list li, .tip-stack article, .related-card { border-radius: 17px; }
  .site-footer { padding-block: 32px; }
}
