@import url('https://fonts.googleapis.com/css2?family=DM+Mono:wght@400;500&family=Manrope:wght@400;500;600;700;800&display=swap');

:root {
  --ink: #15324b;
  --ink-soft: #557083;
  --paper: #fffaf0;
  --paper-deep: #f8f0df;
  --coral: #f16a52;
  --coral-dark: #cf4c39;
  --yellow: #f2dd67;
  --lime: #d6ea73;
  --lavender: #c5c0f7;
  --line: rgba(21, 50, 75, 0.14);
  --shadow: 0 20px 50px rgba(21, 50, 75, 0.12);
  --display: 'Manrope', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  --mono: 'DM Mono', 'SFMono-Regular', Consolas, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--display); -webkit-font-smoothing: antialiased; }
body::before { content: ''; position: fixed; z-index: -1; inset: 0; opacity: .27; pointer-events: none; background-image: radial-gradient(rgba(21,50,75,.17) .6px, transparent .6px); background-size: 13px 13px; }
button, input { font: inherit; }
button { color: inherit; cursor: pointer; }
button:focus-visible, input:focus-visible { outline: 3px solid rgba(241,106,82,.45); outline-offset: 3px; }

.site-shell { min-height: 100vh; display: flex; }
.sidebar { width: 258px; flex: 0 0 258px; min-height: 100vh; padding: 35px 25px 24px; border-right: 1px solid var(--line); display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; background: rgba(255,250,240,.76); backdrop-filter: blur(18px); z-index: 10; }
.brand { display: flex; gap: 12px; align-items: center; text-decoration: none; color: var(--ink); }
.brand-mark { width: 39px; height: 39px; border-radius: 12px 12px 15px 5px; background: var(--coral); position: relative; transform: rotate(-8deg); display: grid; place-items: center; box-shadow: 4px 4px 0 var(--ink); }
.brand-mark__inner { width: 20px; height: 14px; border: 2px solid var(--paper); border-radius: 3px; transform: rotate(8deg); position: relative; }
.brand-mark__inner::before, .brand-mark__inner::after { content: ''; position: absolute; width: 4px; height: 4px; background: var(--paper); border-radius: 1px; top: -5px; }
.brand-mark__inner::before { left: 1px; } .brand-mark__inner::after { right: 1px; }
.brand-mark__spark { color: var(--yellow); position: absolute; font-size: 12px; top: -7px; right: -5px; transform: rotate(8deg); }
.brand-copy { display: flex; flex-direction: column; gap: 1px; line-height: 1; }
.brand-copy strong { font-size: 19px; letter-spacing: .11em; }
.brand-copy small { font-family: var(--mono); font-size: 8px; letter-spacing: .22em; color: var(--coral-dark); margin-top: 4px; }
.sidebar-divider { height: 1px; margin: 42px 0 24px; background: var(--line); }
.nav-label, .section-kicker { font-family: var(--mono); letter-spacing: .13em; font-size: 10px; color: var(--ink-soft); }
.nav-label { margin: 0 0 13px 13px; text-transform: uppercase; }
.main-nav { display: flex; flex-direction: column; gap: 5px; }
.nav-item { border: 0; border-radius: 13px; padding: 13px 13px; background: transparent; text-align: left; font-size: 13px; font-weight: 700; display: flex; gap: 13px; align-items: center; transition: .25s ease; }
.nav-item:hover { background: rgba(197,192,247,.25); transform: translateX(3px); }
.nav-item.is-active { background: var(--ink); color: var(--paper); box-shadow: 4px 4px 0 var(--coral); }
.nav-icon { width: 18px; text-align: center; font-size: 17px; font-weight: 400; }
.sidebar-note { margin: auto 0 26px; padding: 14px 13px; display: flex; gap: 10px; border: 1px solid rgba(21,50,75,.12); border-radius: 15px; background: var(--lime); transform: rotate(-1.5deg); }
.note-dot { width: 8px; height: 8px; margin-top: 5px; flex: 0 0 auto; border-radius: 50%; background: var(--coral); box-shadow: 0 0 0 4px rgba(241,106,82,.15); }
.sidebar-note strong { font-size: 12px; } .sidebar-note p { margin: 5px 0 0; font-size: 10px; line-height: 1.5; color: var(--ink-soft); }
.sidebar-bottom { display: flex; border-top: 1px solid var(--line); padding-top: 18px; gap: 28px; }
.tiny-stat { display: flex; flex-direction: column; gap: 5px; } .tiny-stat span { color: var(--ink-soft); font-size: 10px; } .tiny-stat strong { font-family: var(--mono); font-size: 17px; }

.main-content { min-width: 0; max-width: 1240px; width: 100%; padding: 0 6.3vw 38px; margin: 0 auto; }
.topbar { display: none; }
.topbar-actions { display: flex; gap: 14px; align-items: center; } .top-action { border: 1px solid var(--line); background: transparent; border-radius: 99px; padding: 10px 16px; font-size: 11px; font-weight: 700; transition: .2s; } .top-action:hover { background: var(--yellow); border-color: var(--yellow); transform: rotate(-2deg); } .top-action span { color: var(--coral); margin-right: 3px; }
.avatar { width: 35px; height: 35px; border: 0; border-radius: 50%; background: var(--lavender); font-weight: 800; font-size: 12px; } .icon-button { border: 0; background: transparent; display: none; font-size: 18px; }

.hero-section { display: grid; grid-template-columns: 1.02fr .98fr; align-items: center; min-height: 425px; gap: 25px; padding: 56px 0 35px; }
.eyebrow { font-family: var(--mono); font-size: 9px; letter-spacing: .12em; color: var(--coral-dark); display: flex; align-items: center; gap: 8px; } .eyebrow-line { width: 24px; height: 1px; background: currentColor; } .eyebrow-line--short { width: 11px; opacity: .55; }
.hero-title-intro { font-size: .88em; }
.hero-copy h1 { font-size: clamp(43px, 6vw, 76px); line-height: .98; letter-spacing: -.075em; margin: 20px 0 22px; font-weight: 800; } .hero-copy h1 em { color: var(--coral); font-style: normal; position: relative; display: inline-block; } .hero-copy h1 em::after { content: ''; position: absolute; z-index: -1; height: 13px; left: 2px; right: -6px; bottom: 4px; background: var(--yellow); transform: rotate(-2deg); }
.hero-copy > p { margin: 0; line-height: 1.9; color: var(--ink-soft); font-size: 14px; }
.hero-actions { display: flex; gap: 21px; align-items: center; margin-top: 31px; } .primary-button { border: 0; color: var(--paper); background: var(--ink); border-radius: 99px; padding: 13px 19px 13px 22px; font-weight: 700; font-size: 12px; box-shadow: 4px 4px 0 var(--coral); transition: .22s; } .primary-button:hover { transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--coral); } .primary-button span { margin-left: 15px; color: var(--yellow); font-size: 16px; vertical-align: -1px; }
.hero-meta { color: var(--ink-soft); font-size: 10px; display: flex; align-items: center; gap: 7px; } .pulse-dot { width: 7px; height: 7px; border-radius: 50%; background: #74b866; box-shadow: 0 0 0 4px rgba(116,184,102,.15); }
.hero-art { width: min(100%, 430px); aspect-ratio: 1.13; justify-self: end; position: relative; overflow: hidden; background: var(--lavender); border-radius: 49% 51% 47% 53% / 44% 42% 58% 56%; transform: rotate(5deg); box-shadow: 11px 12px 0 var(--ink); }
.hero-art::after { content: ''; position: absolute; inset: 0; opacity: .18; background-image: radial-gradient(var(--ink) .8px, transparent .8px); background-size: 11px 11px; mix-blend-mode: multiply; }
.orbit { position: absolute; z-index: 1; width: 72%; height: 45%; border: 1px solid rgba(21,50,75,.32); border-radius: 50%; transform: rotate(-23deg); left: 14%; top: 26%; } .orbit--two { width: 86%; left: 6%; top: 22%; transform: rotate(28deg); border-color: rgba(21,50,75,.16); }
.sun-shape { position: absolute; z-index: 2; width: 42%; aspect-ratio: 1; border-radius: 50%; background: var(--coral); left: 29%; top: 29%; box-shadow: 9px 10px 0 rgba(21,50,75,.9); } .sun-shape::before { content: '✦'; color: var(--yellow); font-size: 40px; position: absolute; left: 34%; top: 27%; }
.art-label { position: absolute; z-index: 3; font-family: var(--mono); font-size: 9px; letter-spacing: .08em; } .art-label--top { top: 34px; left: 45px; } .art-label--bottom { bottom: 30px; right: 37px; text-align: right; font-size: 11px; line-height: 1.4; } .art-label--bottom strong { font-size: 15px; }
.sticker { z-index: 4; position: absolute; padding: 11px 13px; font-size: 12px; line-height: 1.18; font-weight: 800; box-shadow: 4px 5px 0 var(--ink); } .sticker--yellow { top: 25px; right: 28px; background: var(--yellow); transform: rotate(9deg); } .sticker--coral { left: 29px; bottom: 30px; background: var(--coral); color: var(--paper); transform: rotate(-9deg); } .art-scribble { position: absolute; z-index: 4; right: 72px; top: 45%; font-size: 34px; transform: rotate(12deg); }

.search-section { display: block; margin: 0 0 27px; } .search-wrap { height: 54px; flex: 1; display: flex; gap: 13px; align-items: center; padding: 0 16px; border: 1px solid var(--line); border-radius: 14px; background: rgba(255,255,255,.45); transition: .2s; } .search-wrap:focus-within { border-color: var(--coral); box-shadow: 0 0 0 4px rgba(241,106,82,.1); } .search-icon { font-size: 25px; line-height: 1; transform: rotate(-20deg); color: var(--coral); } .search-wrap input { border: 0; outline: 0; background: transparent; flex: 1; min-width: 0; color: var(--ink); font-size: 12px; } .search-wrap input::placeholder { color: #9aa8ad; } kbd { border: 1px solid var(--line); border-radius: 5px; padding: 4px 6px; color: var(--ink-soft); font: 9px var(--mono); white-space: nowrap; } .search-hint { font-size: 10px; color: var(--ink-soft); white-space: nowrap; } .search-hint span { color: var(--coral); font-weight: 800; } .search-hint button { border: 0; padding: 0; background: transparent; text-decoration: underline; color: var(--ink-soft); font-size: 10px; }
.section-block { margin-bottom: 73px; } .section-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 23px; } .section-heading h2 { margin: 9px 0 0; font-size: 25px; letter-spacing: -.045em; } .section-count { font-family: var(--mono); font-size: 9px; color: var(--ink-soft); border-bottom: 1px solid var(--line); padding-bottom: 7px; }
.featured-card { min-height: 260px; border-radius: 18px; border: 1px solid var(--line); background: var(--paper-deep); overflow: hidden; display: grid; grid-template-columns: 75px 1fr 220px; transition: .25s; cursor: pointer; } .featured-card:hover { transform: translateY(-4px) rotate(-.25deg); box-shadow: var(--shadow); } .featured-number { font-family: var(--mono); font-size: 11px; color: var(--coral); padding: 26px 0 0 28px; } .featured-content { padding: 29px 24px 29px 0; } .card-tags { display: flex; gap: 8px; align-items: center; } .tag { font-family: var(--mono); font-size: 9px; letter-spacing: .03em; color: var(--ink-soft); border: 1px solid rgba(21,50,75,.18); border-radius: 99px; padding: 5px 9px; background: rgba(255,255,255,.26); } .tag--coral { border-color: var(--coral); color: var(--coral-dark); background: rgba(241,106,82,.09); } .read-time { margin-left: 4px; color: var(--ink-soft); font: 9px var(--mono); letter-spacing: .08em; } .featured-content h3 { margin: 20px 0 12px; max-width: 475px; font-size: 25px; line-height: 1.25; letter-spacing: -.055em; } .featured-content p { max-width: 530px; margin: 0; color: var(--ink-soft); font-size: 12px; line-height: 1.85; } .featured-content p b { color: var(--ink); } .text-button { border: 0; padding: 0; background: transparent; margin-top: 23px; font-weight: 800; font-size: 11px; } .text-button span { color: var(--coral); font-size: 18px; margin-left: 6px; transition: margin .2s; } .text-button:hover span { margin-left: 12px; }
.featured-visual { padding: 26px; display: flex; align-items: center; justify-content: center; position: relative; background: var(--yellow); } .visual-frame { width: 125px; aspect-ratio: 1.1; border: 1px solid var(--ink); position: relative; transform: rotate(5deg); background: rgba(255,250,240,.3); display: grid; place-items: center; } .visual-frame::after { content: ''; position: absolute; width: 50px; height: 50px; border: 1px solid var(--ink); border-radius: 50%; opacity: .55; } .frame-corner { position: absolute; width: 8px; height: 8px; border-color: var(--ink); border-style: solid; } .frame-corner--tl { top: -5px; left: -5px; border-width: 1px 0 0 1px; } .frame-corner--br { right: -5px; bottom: -5px; border-width: 0 1px 1px 0; } .play-triangle { position: relative; z-index: 1; font-size: 16px; } .frame-time { position: absolute; bottom: 8px; right: 8px; font: 8px var(--mono); } .visual-caption { position: absolute; bottom: 16px; right: 24px; font: 8px/1.3 var(--mono); text-align: right; }

.section-heading--with-tabs { align-items: end; } .filter-tabs { display: flex; gap: 7px; flex-wrap: wrap; } .filter-tab { border: 0; padding: 7px 11px; border-radius: 99px; background: transparent; color: var(--ink-soft); font-size: 10px; transition: .2s; } .filter-tab:hover { background: rgba(197,192,247,.4); color: var(--ink); } .filter-tab.is-active { background: var(--ink); color: var(--paper); }
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 15px; } .knowledge-card { min-height: 218px; padding: 21px; border: 1px solid var(--line); border-radius: 15px; background: rgba(255,255,255,.3); display: flex; flex-direction: column; transition: .25s; cursor: pointer; animation: cardIn .45s both; } .knowledge-card:hover { transform: translateY(-5px); border-color: var(--ink); box-shadow: 7px 8px 0 var(--lavender); } .knowledge-card:nth-child(2n):hover { box-shadow: 7px 8px 0 var(--yellow); } .knowledge-card:nth-child(3n):hover { box-shadow: 7px 8px 0 var(--lime); } .knowledge-card__top { display: flex; justify-content: space-between; align-items: center; } .knowledge-card__index { font: 10px var(--mono); color: var(--coral); } .knowledge-card h3 { margin: 23px 0 8px; font-size: 16px; line-height: 1.4; letter-spacing: -.035em; } .knowledge-card p { margin: 0; color: var(--ink-soft); font-size: 11px; line-height: 1.7; } .knowledge-card__bottom { margin-top: auto; padding-top: 17px; display: flex; justify-content: space-between; align-items: center; color: var(--ink-soft); font: 9px var(--mono); } .arrow-circle { width: 25px; height: 25px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line); color: var(--coral); font-size: 15px; }
@keyframes cardIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
.empty-state { grid-column: 1/-1; padding: 45px; border: 1px dashed var(--line); border-radius: 14px; color: var(--ink-soft); text-align: center; font-size: 12px; }

.prompt-card { border-radius: 18px; background: var(--ink); color: var(--paper); display: grid; grid-template-columns: 85px 1fr auto; align-items: center; gap: 20px; padding: 35px 38px; overflow: hidden; position: relative; } .prompt-card::after { content: '✦'; position: absolute; right: 115px; top: -29px; color: rgba(197,192,247,.19); font-size: 185px; line-height: 1; } .prompt-mark { width: 49px; height: 49px; display: grid; place-items: center; border: 1px solid var(--yellow); color: var(--yellow); border-radius: 50%; font: 22px var(--mono); } .prompt-copy { position: relative; z-index: 1; } .prompt-copy .section-kicker { color: var(--yellow); } .prompt-copy h2 { max-width: 700px; margin: 11px 0 10px; font-size: 20px; line-height: 1.5; letter-spacing: -.045em; } .prompt-copy p { margin: 0; color: rgba(255,250,240,.63); font-size: 11px; } .circle-button { width: 42px; height: 42px; position: relative; z-index: 1; border: 1px solid rgba(255,250,240,.35); background: transparent; color: var(--paper); border-radius: 50%; font-size: 21px; transition: .25s; } .circle-button:hover { background: var(--yellow); border-color: var(--yellow); color: var(--ink); transform: rotate(90deg); }
.site-footer { border-top: 1px solid var(--line); padding-top: 24px; display: flex; justify-content: space-between; color: var(--ink-soft); font-size: 10px; } .site-footer strong { color: var(--ink); font-size: 12px; margin-right: 17px; } .footer-right { display: flex; gap: 22px; font: 9px var(--mono); }

.modal-backdrop { position: fixed; z-index: 100; inset: 0; padding: 22px; display: grid; place-items: center; background: rgba(21,50,75,.37); opacity: 0; visibility: hidden; transition: .25s; backdrop-filter: blur(7px); } .modal-backdrop.is-open { opacity: 1; visibility: visible; } .detail-modal { max-width: 690px; max-height: min(720px, 90vh); overflow: auto; width: 100%; position: relative; padding: 40px 47px 31px; background: var(--paper); border: 1px solid var(--ink); border-radius: 19px; box-shadow: 12px 13px 0 var(--coral); transform: translateY(15px) rotate(-1deg); transition: .3s; } .is-open .detail-modal { transform: translateY(0) rotate(0); } .modal-close { position: absolute; top: 17px; right: 19px; border: 0; background: transparent; font-size: 27px; line-height: 1; color: var(--ink-soft); } .modal-topline { display: flex; justify-content: space-between; font: 9px var(--mono); color: var(--coral-dark); text-transform: uppercase; letter-spacing: .07em; } .modal-topline span:last-child { color: var(--ink-soft); } .detail-modal h2 { max-width: 520px; margin: 22px 0 14px; font-size: 31px; line-height: 1.2; letter-spacing: -.06em; } .modal-lead { color: var(--ink-soft); line-height: 1.8; font-size: 13px; margin: 0; } .modal-divider { margin: 23px 0; border-top: 1px dashed var(--line); } .modal-body { color: var(--ink); font-size: 13px; line-height: 1.9; } .modal-body p { margin: 0 0 16px; } .modal-body strong { background: var(--yellow); padding: 1px 4px; } .modal-body ol { margin: 0 0 16px; padding-left: 21px; } .modal-body li { padding-left: 5px; margin: 6px 0; } .modal-footer { margin-top: 30px; padding-top: 16px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; font: 9px var(--mono); color: var(--ink-soft); } .modal-footer .text-button { margin: 0; font-family: var(--display); }
.toast { position: fixed; z-index: 120; left: 50%; bottom: 28px; padding: 12px 18px; border-radius: 99px; color: var(--paper); background: var(--ink); font-size: 11px; box-shadow: 4px 5px 0 var(--coral); opacity: 0; transform: translate(-50%, 16px); pointer-events: none; transition: .25s; } .toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 1000px) { .sidebar { width: 220px; flex-basis: 220px; padding-left: 19px; padding-right: 19px; } .main-content { padding-left: 5vw; padding-right: 5vw; } .featured-card { grid-template-columns: 52px 1fr 180px; } .featured-number { padding-left: 18px; } .featured-content h3 { font-size: 21px; } }
@media (max-width: 760px) { .site-shell { display: block; } .sidebar { position: fixed; left: 0; top: 0; bottom: 0; z-index: 40; width: 245px; transform: translateX(-105%); transition: transform .3s ease; box-shadow: 8px 0 28px rgba(21,50,75,.12); } .sidebar.is-open { transform: translateX(0); } .main-content { padding: 0 20px 30px; } .topbar { height: 72px; display: flex; justify-content: flex-end; align-items: center; border-bottom: 1px solid var(--line); } .icon-button { display: block; } .top-action { padding: 9px 11px; font-size: 10px; } .top-action span { display: none; } .hero-section { grid-template-columns: 1fr; padding-top: 44px; } .hero-art { width: min(92%, 370px); justify-self: center; margin-top: 14px; } .section-heading { align-items: flex-start; flex-direction: column; } .section-heading--with-tabs { gap: 15px; } .featured-card { grid-template-columns: 42px 1fr; } .featured-visual { display: none; } .featured-content { padding-right: 20px; } .featured-number { padding-left: 14px; } .card-grid { grid-template-columns: repeat(2, 1fr); } .prompt-card { grid-template-columns: 55px 1fr auto; padding: 25px 21px; gap: 14px; } .prompt-copy h2 { font-size: 16px; } .prompt-mark { width: 40px; height: 40px; } .site-footer { flex-direction: column; gap: 16px; } .footer-right { justify-content: space-between; } }
@media (max-width: 500px) { .hero-copy h1 { font-size: 47px; } .hero-copy > p { font-size: 12px; } .hero-actions { align-items: flex-start; flex-direction: column; gap: 15px; } .card-grid { grid-template-columns: 1fr; } .filter-tabs { width: 100%; } .filter-tab { flex: 1; } .featured-content h3 { font-size: 19px; } .featured-content p { font-size: 11px; } .prompt-card { grid-template-columns: 1fr auto; } .prompt-mark { display: none; } .prompt-copy h2 { font-size: 15px; } .modal-backdrop { padding: 12px; } .detail-modal { padding: 33px 23px 23px; } .detail-modal h2 { font-size: 25px; } .modal-footer { align-items: flex-start; flex-direction: column; gap: 10px; } }


/* Imported article assets */
.source-category { margin: 16px 0; padding: 13px 15px; border-left: 3px solid var(--coral); background: rgba(241,106,82,.06); border-radius: 0 10px 10px 0; }
.source-category h4 { margin: 0 0 5px; font-size: 14px; }
.source-category p { margin: 0; color: var(--ink-soft); font-size: 12px; line-height: 1.8; }
.source-gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 24px 0 8px; }
.source-figure { margin: 0; }
.source-figure a { display: block; overflow: hidden; border: 1px solid var(--line); border-radius: 10px; background: var(--paper-deep); }
.source-figure img { width: 100%; aspect-ratio: 2 / 3; display: block; object-fit: cover; transition: transform .25s ease; }
.source-figure a:hover img { transform: scale(1.035); }
.source-figure figcaption { margin-top: 6px; color: var(--ink-soft); font: 9px var(--mono); line-height: 1.4; }
.source-note { color: var(--ink-soft); font-size: 11px; line-height: 1.8; }
.source-note code { padding: 2px 4px; border-radius: 4px; background: var(--paper-deep); font: 10px var(--mono); }
.source-note a { color: var(--coral-dark); }
@media (max-width: 600px) { .source-gallery { grid-template-columns: repeat(2, 1fr); } }

/* Imported articles retain an image-led layout as the library grows. */
.card-grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.knowledge-card { padding: 0 0 22px; overflow: hidden; }
.knowledge-card__cover { height: 150px; overflow: hidden; background: var(--yellow); }
.knowledge-card__cover img { width: 100%; height: 100%; object-fit: cover; object-position: center 12%; display: block; transition: transform .35s ease; }
.knowledge-card:hover .knowledge-card__cover { transform: none; }
.knowledge-card:hover .knowledge-card__cover img { transform: scale(1.035); }
.knowledge-card__top, .knowledge-card h3, .knowledge-card p, .knowledge-card__bottom { margin-left: 21px; margin-right: 21px; }
.knowledge-card__top { margin-top: 20px; }
.knowledge-card h3 { margin-top: 17px; }
.knowledge-card__bottom { margin-bottom: 0; }
.knowledge-card:focus-visible { outline: 3px solid var(--coral); outline-offset: 3px; }
@media (max-width: 500px) { .card-grid { grid-template-columns: minmax(0, 1fr); } }

/* Action prompt collection */
.fight-caveat { margin: 20px 0; padding: 14px 18px; border-radius: 12px; background: #fff4da; color: #745227; font-size: 12px; line-height: 1.75; }
.fight-group { margin: 28px 0; }
.fight-group h3 { margin: 0 0 12px; }
.fight-prompt { margin: 10px 0; padding: 16px 18px; border: 1px solid var(--line); border-radius: 13px; background: #fff; }
.fight-prompt h4 { display: flex; align-items: baseline; gap: 10px; margin: 0 0 8px; color: var(--ink); font-size: 14px; }
.fight-prompt h4 span { color: var(--coral-dark); font: 11px var(--mono); }
.fight-prompt p { margin: 0; color: var(--ink-soft); font-size: 12px; line-height: 1.85; }
.fight-gallery { grid-template-columns: minmax(0, 1fr); gap: 18px; }
.fight-gallery .source-figure img { height: auto; aspect-ratio: auto; object-fit: contain; }
.fight-gallery .source-figure a { background: #fff; }
/* Category navigation and article affiliations */
.nav-group-label { margin: 20px 13px 8px; color: var(--ink-soft); font: 10px var(--mono); letter-spacing: .08em; }
.nav-item { width: 100%; cursor: pointer; }
.nav-item .nav-icon { width: 18px; flex: 0 0 18px; text-align: center; }
.nav-count { margin-left: auto; padding: 3px 7px; border-radius: 99px; background: rgba(21,50,75,.07); color: var(--ink-soft); font: 10px var(--mono); }
.nav-item.is-active .nav-count { background: rgba(255,255,255,.17); color: var(--paper); }
.knowledge-card__categories { display: flex; flex-wrap: wrap; gap: 5px; margin: 14px 21px 0; }
.knowledge-card__categories span { padding: 4px 7px; border-radius: 5px; background: var(--paper-deep); color: var(--ink-soft); font-size: 10px; }
.modal-topline { gap: 12px; }
.modal-topline span:first-child { line-height: 1.5; }
.modal-topline span:last-child { flex: 0 0 auto; }

/* Ten-volume action atlas */
.motion-index { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; margin: 26px 0 34px; }
.motion-index button { display: flex; align-items: center; gap: 10px; min-width: 0; border: 1px solid var(--line); border-radius: 11px; padding: 10px 12px; background: #fff; color: var(--ink); text-align: left; font: 600 12px var(--display); cursor: pointer; transition: border-color .2s, background .2s, transform .2s; }
.motion-index button:hover, .motion-index button:focus-visible { border-color: var(--coral); background: #fff5ef; transform: translateY(-2px); }
.motion-index button span { flex: 0 0 auto; color: var(--coral-dark); font: 11px var(--mono); }
.motion-volume { margin: 0 0 46px; scroll-margin-top: 20px; }
.motion-volume__heading { margin: 0 0 16px; padding: 0 0 10px; border-bottom: 2px solid var(--ink); }
.motion-volume__heading span { color: var(--coral-dark); font: 10px var(--mono); letter-spacing: .09em; }
.modal-body .motion-volume__heading h3 { margin: 3px 0 0; color: var(--ink); font-size: 21px; line-height: 1.3; }
.motion-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.motion-item { min-width: 0; border: 1px solid var(--line); border-radius: 12px; padding: 14px 15px 12px; background: #fff; }
.motion-item__title { display: flex; align-items: baseline; gap: 9px; margin-bottom: 8px; }
.motion-item__title span { color: var(--coral-dark); font: 11px var(--mono); }
.modal-body .motion-item__title h4 { margin: 0; color: var(--ink); font-size: 14px; line-height: 1.5; }
.modal-body .motion-item__meta { margin: 0 0 3px; color: var(--ink-soft); font-size: 11px; line-height: 1.65; }
.modal-body .motion-item__focus { margin: 9px 0 0; padding-top: 9px; border-top: 1px dashed var(--line); font-size: 12px; line-height: 1.75; }
.motion-figure { margin: 17px 0 0; }
.motion-figure a { display: block; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: #fff; }
.motion-figure img { display: block; width: 100%; height: auto; object-fit: contain; }
.motion-figure figcaption { margin-top: 7px; color: var(--ink-soft); font: 10px var(--mono); }
@media (max-width: 600px) { .motion-index, .motion-list { grid-template-columns: minmax(0, 1fr); } }

/* Sidebar search: compact, readable, and reachable in the mobile drawer. */
.sidebar { overflow-y: auto; }
.sidebar-search__label { display: block; margin-bottom: 11px; }
.sidebar-search .search-wrap { height: 46px; gap: 8px; padding: 0 11px; border-radius: 11px; background: rgba(255,255,255,.62); }
.sidebar-search .search-icon { font-size: 21px; }
.sidebar-search .search-wrap input { font-size: 11px; }
.sidebar-search .search-hint { display: flex; align-items: center; gap: 3px; margin: 9px 2px 0; }
.sidebar-search .search-hint button { margin-left: auto; cursor: pointer; }

/* Human-readable entry to the same lightweight AI article index. */
.footer-right { flex-wrap: wrap; align-items: center; }
.footer-right a { color: var(--coral-dark); text-decoration: none; border-bottom: 1px solid currentColor; }
.footer-right a:hover, .footer-right a:focus-visible { color: var(--ink); }
/* A compact invitation to use the knowledge base with an AI assistant. */
.ai-guide { position: relative; display: grid; grid-template-columns: minmax(210px, .77fr) minmax(0, 1.23fr); gap: clamp(22px, 4vw, 58px); align-items: center; margin: 76px 0 66px; padding: clamp(24px, 4vw, 48px); border: 1px solid var(--line); border-radius: 25px; background: var(--lime); overflow: hidden; }
.ai-guide::before { content: ''; position: absolute; width: 210px; height: 210px; top: -105px; left: -92px; border: 1px solid rgba(21,50,75,.13); border-radius: 50%; pointer-events: none; }
.ai-guide__intro { position: relative; z-index: 1; }
.ai-guide__badge { display: inline-block; padding: 7px 11px; border: 1px solid var(--ink); border-radius: 99px; color: var(--ink); font: 10px var(--mono); letter-spacing: .04em; }
.ai-guide__intro h2 { margin: 21px 0 14px; font-size: clamp(26px, 3vw, 41px); line-height: 1.23; letter-spacing: -.055em; }
.ai-guide__intro h2 em { font-style: normal; color: var(--coral-dark); }
.ai-guide__intro p { max-width: 270px; margin: 0; color: var(--ink-soft); font-size: 12px; line-height: 1.9; }
.ai-guide__spark { display: block; width: max-content; margin: 26px 0 0 auto; color: var(--coral-dark); font: 44px var(--display); transform: rotate(12deg); }
.ai-guide__card { position: relative; z-index: 1; min-width: 0; padding: 21px 23px 20px; border: 1px solid var(--ink); border-radius: 15px; background: var(--paper); box-shadow: 6px 6px 0 var(--ink); }
.ai-guide__card-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-bottom: 15px; border-bottom: 1px dashed var(--line); font-size: 12px; font-weight: 800; }
.ai-guide__card-top span:last-child { color: var(--ink-soft); font: 9px var(--mono); white-space: nowrap; }
.ai-guide__prompt { margin: 17px 0; color: var(--ink); font-size: 12px; line-height: 1.9; white-space: pre-wrap; overflow-wrap: anywhere; user-select: text; }
.ai-guide__card-bottom { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding-top: 15px; border-top: 1px dashed var(--line); }
.ai-guide__notice { max-width: 260px; color: var(--ink-soft); font-size: 10px; line-height: 1.7; }
.ai-guide__copy { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 9px; padding: 10px 14px; border: 0; border-radius: 99px; background: var(--ink); color: var(--paper); font-size: 11px; font-weight: 700; transition: transform .2s, box-shadow .2s; }
.ai-guide__copy:hover { transform: translateY(-2px); box-shadow: 2px 3px 0 var(--coral); }
.ai-guide__copy span { color: var(--yellow); font-size: 14px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
@media (max-width: 900px) { .ai-guide { grid-template-columns: 1fr; gap: 18px; } .ai-guide__intro p { max-width: 100%; } .ai-guide__spark { display: none; } }
@media (max-width: 500px) { .ai-guide { margin: 55px 0 46px; padding: 22px; border-radius: 19px; } .ai-guide__card { padding: 17px; box-shadow: 4px 4px 0 var(--ink); } .ai-guide__card-top span:last-child { display: none; } .ai-guide__card-bottom { align-items: flex-start; flex-direction: column; } .ai-guide__copy { align-self: flex-end; } }
