/* Standalone styles for the bilingual answer library and its guides. */
:root { color-scheme: light; --paper: #f8f9f6; --ink: #172c33; --muted: #56676d; --line: #dce3df; --accent: #236654; --accent-soft: #e9f1eb; --white: #fff; }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 104px; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: "Segoe UI", -apple-system, BlinkMacSystemFont, Arial, sans-serif; font-size: 16px; line-height: 1.65; -webkit-font-smoothing: antialiased; }
[hidden] { display: none !important; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button, summary { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button, a, summary { touch-action: manipulation; }
svg { width: 22px; height: 22px; flex: 0 0 auto; }
img { max-width: 100%; display: block; }
h1, h2, h3, p, figure { margin: 0; }
h1, h2, h3 { font-weight: 600; line-height: 1.22; }
h1 { letter-spacing: -.055em; text-wrap: balance; }
h2 { font-size: clamp(1.7rem, 2.6vw, 2.15rem); letter-spacing: -.035em; text-wrap: balance; }
h3 { font-size: 1.16rem; letter-spacing: -.02em; }
p { color: var(--muted); }
:focus-visible { outline: 3px solid #348775; outline-offset: 5px; border-radius: 4px; }
::selection { background: #d8e9df; color: var(--ink); }
.shell { width: min(1200px, calc(100% - 80px)); margin-inline: auto; }
.eyebrow { color: var(--accent); font-size: .7rem; letter-spacing: .15em; font-weight: 700; line-height: 1.5; text-transform: uppercase; }
.skip-link { position: fixed; top: 12px; left: 20px; padding: 12px 20px; transform: translateY(-180%); z-index: 100; background: white; border: 1px solid var(--accent); }
.skip-link:focus { transform: translateY(0); }
.header { position: sticky; top: 0; background: rgba(248,249,246,.97); border-bottom: 1px solid var(--line); z-index: 20; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 28px; min-height: 84px; }
.brand { display: inline-flex; align-items: center; font-size: 24px; font-weight: 650; letter-spacing: -.05em; white-space: nowrap; color: var(--ink); }
.brand img { margin-right: 9px; }
.brand span { font-weight: 400; }
.primary-nav { display: flex; gap: 32px; align-self: stretch; align-items: stretch; margin-left: auto; margin-right: 24px; font-size: .88rem; }
.primary-nav a { display: flex; align-items: center; position: relative; color: var(--muted); }
.primary-nav a[aria-current] { color: var(--accent); font-weight: 600; }
.primary-nav a[aria-current]::after { content: ""; position: absolute; bottom: 0; left: 0; width: 100%; height: 2px; background: var(--accent); }
.primary-nav a:hover, .footer a:hover { color: var(--accent); }
.header-actions { display: flex; align-items: center; gap: 20px; }
.language { display: grid; place-items: center; min-width: 44px; min-height: 44px; border: 1px solid var(--line); border-radius: 6px; font-size: .75rem; font-weight: 600; }
.language:hover { background: var(--accent-soft); }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 20px; min-height: 48px; padding: 12px 20px; border: 1px solid var(--accent); border-radius: 7px; background: var(--accent); color: white; font-weight: 600; font-size: .88rem; line-height: 1.4; text-align: center; transition: background .16s, border-color .16s; }
.button:hover { background: #194e40; border-color: #194e40; }
.button-secondary { background: transparent; border-color: #bac9c2; color: var(--ink); }
.button-secondary:hover { background: var(--accent-soft); border-color: var(--accent); }
.text-link { display: inline-flex; align-items: center; gap: 12px; min-height: 44px; color: var(--accent); font-weight: 600; font-size: .87rem; }
.text-link:hover { text-decoration: underline; text-underline-offset: 4px; }
.hero { display: grid; grid-template-columns: 1.16fr 1fr; align-items: center; gap: 64px; padding-block: 78px 76px; }
.hero-copy { min-width: 0; }
.hero h1 { font-size: clamp(2.6rem, 4.1vw, 3.55rem); line-height: 1.09; margin-block: 20px 24px; }
.hero h1 span { color: var(--accent); }
.hero-intro { font-size: 1.08rem; line-height: 1.75; max-width: 520px; }
.search { margin-top: 30px; }
.search label { display: block; font-size: .83rem; font-weight: 600; margin-bottom: 9px; }
.search-field { display: flex; align-items: center; gap: 12px; padding: 7px 8px 7px 16px; border: 1px solid #becfc5; border-radius: 8px; background: var(--white); box-shadow: 0 4px 12px #172c3305; }
.search-field:focus-within { outline: 2px solid var(--accent); outline-offset: 3px; }
.search-field > svg { width: 20px; color: #758b81; }
.search input { flex: 1; width: 0; min-width: 0; padding-block: 8px; background: transparent; color: var(--ink); border: 0; outline: 0; font-size: 16px; }
.search input::placeholder { color: #6c7a77; opacity: 1; }
.search button { display: grid; place-items: center; min-height: 44px; min-width: 44px; background: var(--accent); border: 0; border-radius: 5px; color: white; }
.search button:hover { background: #194e40; }
.search-hint { font-size: .74rem; margin-top: 10px; }
.hero-example { position: relative; min-width: 0; }
.hero-example::before { content: ""; position: absolute; inset: -24px -18px 46px 34px; border: 1px solid #d3ded7; border-radius: 14px; z-index: -1; transform: rotate(3deg); }
.drawing { background: var(--white); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; box-shadow: 0 15px 35px #172c3307; }
.drawing-top { display: flex; align-items: center; gap: 8px; font-size: .74rem; font-weight: 600; padding: 16px 18px; }
.status-dot { width: 6px; height: 6px; border-radius: 50%; background: #42876e; flex: 0 0 auto; }
.file-label { margin-left: auto; color: #6a7874; font-size: .62rem; letter-spacing: .06em; }
.drawing-link { display: block; position: relative; background: #212a31; }
.drawing img { width: 100%; height: auto; aspect-ratio: 1082 / 743; object-fit: contain; }
.drawing-open { position: absolute; right: 12px; bottom: 12px; background: #f8f9f6; color: var(--ink); border-radius: 5px; padding: 8px 12px; font-size: .7rem; font-weight: 600; box-shadow: 0 2px 8px #0002; }
.drawing-link:hover .drawing-open { background: #dfede4; }
.drawing figcaption { padding: 13px 18px; color: var(--muted); font-size: .71rem; }
.process { display: flex; justify-content: space-between; gap: 12px; padding: 0; margin: 20px 0 0; list-style: none; }
.process li { display: flex; align-items: center; gap: 7px; font-size: .68rem; color: var(--muted); }
.process li span { display: grid; place-items: center; width: 24px; height: 24px; border: 1px solid #c9d7ce; border-radius: 50%; color: var(--accent); font-size: .59rem; font-weight: 600; flex: 0 0 auto; }
.featured { padding-block: 0 72px; }
.section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 28px; }
.section-heading .eyebrow { margin-bottom: 10px; }
.section-heading p:not(.eyebrow) { margin-top: 14px; max-width: 610px; }
.section-number { font-size: .7rem; letter-spacing: .13em; color: #697e73; padding-bottom: 6px; }
.featured-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.featured-card { display: flex; flex-direction: column; align-items: flex-start; min-width: 0; padding: 25px 26px 19px; background: var(--white); border: 1px solid var(--line); border-radius: 9px; transition: border-color .16s, box-shadow .16s; }
.featured-card:hover { border-color: #82a898; box-shadow: 0 8px 20px #172c3308; }
.guide-number { display: block; color: var(--accent); font-family: Consolas, monospace; font-size: .76rem; margin-bottom: 20px; }
.featured-card h3 { margin-bottom: 12px; font-size: 1.18rem; }
.featured-card p { font-size: .89rem; line-height: 1.65; margin-bottom: 20px; max-width: 290px; }
.featured-card .text-link { width: 100%; margin-top: auto; justify-content: space-between; }
.library { padding-block: 55px 72px; border-top: 1px solid var(--line); }
.library-layout { display: grid; grid-template-columns: 258px minmax(0, 1fr); gap: 60px; }
.topic-sticky { position: sticky; top: 114px; }
.topic-sidebar h3 { font-size: .73rem; color: var(--muted); font-weight: 600; margin: 10px 0 18px; }
.topic-filters { display: grid; gap: 5px; }
.topic-filters button { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 48px; padding: 10px 12px; border: 1px solid transparent; border-radius: 6px; background: transparent; color: var(--muted); text-align: left; font-size: .82rem; line-height: 1.4; }
.topic-filters button:hover { background: #eef2ed; }
.topic-filters button[aria-pressed="true"] { border-color: #d6e5da; color: var(--accent); background: var(--accent-soft); font-weight: 600; }
.filter-count { color: #697c72; font-size: .68rem; font-variant-numeric: tabular-nums; }
.sidebar-plan-link { display: flex; justify-content: space-between; align-items: center; margin-top: 24px; padding: 18px 12px; border-top: 1px solid var(--line); font-size: .8rem; color: var(--accent); min-height: 48px; }
.answer-results { min-width: 0; }
.results-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 44px; margin-bottom: 12px; }
.results-toolbar p { font-size: .78rem; }
.reset-link { background: transparent; border: 0; color: var(--accent); font-size: .78rem; padding: 10px 0 10px 10px; min-height: 44px; }
.reset-link:hover { text-decoration: underline; }
.answer-row { border-bottom: 1px solid var(--line); }
.answer-row:first-child { border-top: 1px solid var(--line); }
summary { display: flex; align-items: center; justify-content: space-between; list-style: none; cursor: pointer; gap: 24px; }
summary::-webkit-details-marker { display: none; }
summary::marker { content: ""; }
.answer-row summary { padding: 22px 8px 22px 0; }
.answer-category { display: block; color: var(--accent); font-size: .67rem; font-weight: 600; margin-bottom: 6px; letter-spacing: .025em; }
.answer-question { display: block; font-size: 1.03rem; line-height: 1.5; font-weight: 550; }
.disclosure-icon { width: 28px; height: 28px; padding: 4px; border-radius: 50%; background: #edf1ec; color: var(--accent); transition: transform .16s; }
details[open] > summary .disclosure-icon { transform: rotate(45deg); background: #dfece3; }
summary:hover .answer-question, .faq-item summary:hover { color: var(--accent); }
.answer-detail { padding: 0 52px 20px 0; max-width: 760px; }
.answer-detail p { font-size: .96rem; line-height: 1.8; margin-bottom: 12px; }
.answer-row[open] .answer-question { color: var(--accent); }
.load-more { display: flex; justify-content: center; align-items: center; flex-direction: column; gap: 10px; padding-top: 30px; }
.load-more > span { font-size: .7rem; color: var(--muted); }
.empty-state { padding: 45px 28px; text-align: center; border: 1px dashed #bdcfc2; border-radius: 9px; }
.empty-state > span { display: block; color: var(--accent); font-size: 2rem; margin-bottom: 12px; }
.empty-state p { margin: 14px auto 24px; max-width: 410px; }
.practical-faq { padding-block: 60px 70px; border-top: 1px solid var(--line); display: grid; grid-template-columns: 1fr 1.6fr; gap: 90px; }
.practical-faq .eyebrow { margin-bottom: 12px; }
.practical-faq h2 { margin-bottom: 16px; }
.practical-faq > div > p:not(.eyebrow) { margin-bottom: 16px; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary { min-height: 76px; padding-block: 18px; font-size: .96rem; font-weight: 550; line-height: 1.5; }
.faq-answer { padding: 0 40px 23px 0; font-size: .93rem; line-height: 1.8; }
.cta-section { padding-block: 0 55px; }
.cta-panel { display: grid; grid-template-columns: 1.6fr 1fr; align-items: center; gap: 80px; padding: 48px 52px; background: #173e34; color: white; border-radius: 12px; }
.cta-panel .eyebrow { color: #b2d2c1; margin-bottom: 15px; }
.cta-panel h2 { font-size: clamp(1.9rem, 2.7vw, 2.3rem); margin-bottom: 18px; }
.cta-panel p:not(.eyebrow) { color: #cadbd2; font-size: .96rem; }
.cta-actions { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.cta-actions .button { background: #f4f7f0; color: #173e34; border-color: #f4f7f0; min-width: 230px; }
.cta-actions .button:hover { background: #dceadd; }
.cta-actions > span { font-size: .72rem; color: #cadbd2; text-align: center; }
.cta-actions > a:last-child { display: flex; align-items: center; justify-content: center; gap: 12px; font-size: .8rem; min-height: 44px; }
.cta-actions > a:last-child:hover { text-decoration: underline; }
.mobile-note { margin: 16px auto 0; max-width: 630px; text-align: center; font-size: .74rem; }
.footer { display: flex; align-items: center; justify-content: space-between; gap: 40px; border-top: 1px solid var(--line); padding-block: 35px 45px; }
.footer .brand { font-size: 21px; }
.footer p { font-size: .71rem; margin-top: 8px; }
.footer nav { display: flex; flex-wrap: wrap; gap: 10px 25px; font-size: .76rem; }
.footer nav a { display: inline-flex; align-items: center; min-height: 44px; }
.breadcrumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding-top: 24px; font-size: .77rem; color: var(--muted); }
.breadcrumbs a { display: inline-flex; align-items: center; min-height: 44px; }
.breadcrumbs a:hover { color: var(--accent); text-decoration: underline; }
.article-header { max-width: 950px; padding: 30px 0 40px; }
.article-header h1 { font-size: clamp(2.3rem, 4.2vw, 3.7rem); line-height: 1.12; margin: 16px 0 24px; text-wrap: pretty; }
.article-meta { display: flex; gap: 12px 22px; flex-wrap: wrap; font-size: .74rem; color: var(--muted); }
.article-meta > span:first-child { font-weight: 600; color: var(--accent); }
.article-layout { display: grid; grid-template-columns: minmax(0, 770px) minmax(220px, 1fr); gap: 75px; align-items: start; }
.article-prose { min-width: 0; }
.mobile-contents { display: none; }
.article-prose > section { margin-bottom: 45px; }
.article-prose h2 { font-size: 1.65rem; margin-bottom: 24px; }
.article-prose p, .article-prose li { font-size: 1rem; line-height: 1.85; }
.direct-answer { background: #edf3ec; border-left: 3px solid var(--accent); border-radius: 0 8px 8px 0; padding: 26px 30px; }
.direct-answer .eyebrow { font-size: .69rem; margin-bottom: 10px; line-height: 1.5; }
.direct-answer > p:last-child { color: #29473b; font-size: 1.13rem; line-height: 1.85; }
.workflow-steps { list-style: none; margin: 0 0 24px; padding: 0; }
.workflow-steps li { display: flex; align-items: flex-start; gap: 22px; padding: 17px 0; border-bottom: 1px solid var(--line); }
.workflow-steps li > span { font: .8rem/1.8 Consolas, monospace; color: var(--accent); padding-top: 4px; flex: 0 0 24px; }
.editor-note { padding: 24px; border: 1px solid #dce4d8; background: #f1f3e9; border-radius: 7px; }
.editor-note h3 { font-size: .9rem; margin-bottom: 10px; }
.editor-note p { font-size: .92rem; }
.article-prose .figure-note { margin-top: 12px; font-size: .75rem; line-height: 1.7; }
.review-list { padding: 0; list-style: none; }
.review-list li { position: relative; padding: 0 0 16px 26px; color: var(--muted); }
.review-list li::before { content: "✓"; position: absolute; left: 0; color: var(--accent); }
.article-sticky { position: sticky; top: 115px; }
.contents { padding-bottom: 26px; border-bottom: 1px solid var(--line); }
.contents .eyebrow { margin-bottom: 14px; }
.contents a { display: flex; align-items: center; min-height: 44px; font-size: .81rem; color: var(--muted); }
.contents a:hover { color: var(--accent); text-decoration: underline; }
.article-try { padding-top: 27px; }
.article-try h2 { font-size: 1.12rem; }
.article-try p { font-size: .86rem; margin-block: 12px 20px; }
.article-try .button { width: 100%; gap: 12px; }
.article-try > span { display: block; margin-top: 10px; font-size: .67rem; color: var(--muted); }
.article-try .text-link { margin-top: 8px; font-size: .78rem; }
.related { border-top: 1px solid var(--line); padding-block: 48px 65px; }
.related .featured-card h3 { margin-block: 14px 20px; font-size: 1.07rem; line-height: 1.45; }
.library-layout:not(:has(.topic-sidebar:not([hidden]))) { grid-template-columns: 1fr; }
@media (min-width: 1600px) { .hero { padding-block: 95px; } }
@media (max-width: 1100px) {
  .shell { width: calc(100% - 64px); }
  .hero { gap: 36px; grid-template-columns: 1.1fr 1fr; }
  .hero h1 { font-size: 2.9rem; }
  .primary-nav { gap: 22px; margin-right: 4px; }
  .library-layout { grid-template-columns: 230px minmax(0, 1fr); gap: 40px; }
  .practical-faq { gap: 45px; }
  .article-layout { gap: 45px; }
  .cta-panel { padding: 38px; gap: 40px; }
  .footer { align-items: flex-start; flex-direction: column; gap: 20px; }
}
@media (max-width: 850px) {
  .primary-nav { display: none; }
  .hero { grid-template-columns: 1fr; gap: 38px; padding-block: 48px 50px; }
  .hero h1 { font-size: clamp(2.4rem, 6.7vw, 3.6rem); max-width: 650px; }
  .hero-intro { max-width: 620px; }
  .hero-example { max-width: 540px; width: 100%; justify-self: center; }
  .hero-example::before { display: none; }
  .featured-card { padding: 22px 18px 16px; }
  .featured-card h3 { font-size: 1.08rem; }
  .library-layout { grid-template-columns: 1fr; gap: 20px; }
  .topic-sticky { position: static; }
  .topic-filters { display: flex; flex-wrap: wrap; gap: 6px; }
  .topic-filters button { border-color: var(--line); gap: 12px; }
  .topic-sidebar h3 { margin-top: 0; margin-bottom: 12px; }
  .sidebar-plan-link { display: none; }
  .practical-faq { grid-template-columns: 1fr; gap: 25px; }
  .cta-panel { grid-template-columns: 1fr; gap: 28px; }
  .cta-actions { align-items: flex-start; }
  .article-layout { grid-template-columns: 1fr; gap: 0; }
  .article-sidebar { display: none; }
  .mobile-contents { display: block; margin-bottom: 24px; border-block: 1px solid var(--line); }
  .mobile-contents > summary { min-height: 52px; font-size: .82rem; font-weight: 600; color: var(--accent); }
  .mobile-contents .contents { border: 0; }
  .article-sticky { position: static; }
  .contents { display: flex; flex-wrap: wrap; gap: 0 20px; padding-bottom: 18px; }
  .contents .eyebrow { width: 100%; margin-bottom: 5px; }
  .article-try { display: none; }
}
@media (max-width: 600px) {
  html { scroll-padding-top: 88px; }
  .shell { width: calc(100% - 36px); }
  .header-inner { min-height: 70px; gap: 8px; }
  .brand { font-size: 21px; }
  .header .brand img { display: none; }
  .header-actions { gap: 5px; }
  .language { border: 0; }
  .header .button { font-size: .75rem; padding: 11px; min-height: 44px; }
  .header .button svg { display: none; }
  .hero { padding-block: 38px 42px; gap: 32px; }
  .hero h1 { font-size: clamp(2.05rem, 8.7vw, 3rem); margin-block: 16px 20px; }
  .hero-intro { font-size: .98rem; }
  .search { margin-top: 25px; }
  .search-field { padding-left: 12px; gap: 8px; }
  .search-hint { font-size: .69rem; }
  .drawing-top { padding: 12px 14px; font-size: .7rem; }
  .drawing figcaption { padding: 12px 14px; }
  .process { gap: 8px; margin-top: 16px; }
  .process li { font-size: .64rem; gap: 5px; }
  .process li span { width: 21px; height: 21px; }
  .featured { padding-bottom: 42px; }
  .featured-grid { grid-template-columns: 1fr; gap: 12px; }
  .featured-card { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 0 14px; padding: 20px 18px 13px; }
  .guide-number { grid-row: 1 / 4; margin-top: 2px; }
  .featured-card h3 { margin-bottom: 8px; }
  .featured-card p { margin-bottom: 8px; max-width: none; font-size: .86rem; }
  .featured-card .text-link { grid-column: 2; font-size: .79rem; }
  .section-heading { margin-bottom: 22px; align-items: flex-start; }
  .section-number { display: none; }
  .section-heading p:not(.eyebrow) { font-size: .91rem; }
  .library { padding-block: 38px 44px; }
  .topic-filters button { font-size: .74rem; min-height: 44px; padding: 8px 10px; gap: 8px; }
  .answer-row summary { gap: 15px; padding-block: 20px; }
  .answer-question { font-size: .97rem; }
  .answer-detail { padding-right: 8px; }
  .answer-detail p { font-size: .94rem; }
  .answer-detail .text-link { font-size: .8rem; }
  .practical-faq { padding-block: 38px 44px; }
  .faq-item summary { font-size: .94rem; gap: 16px; }
  .faq-answer { padding-right: 8px; }
  .cta-panel { padding: 30px 24px; border-radius: 9px; }
  .cta-panel h2 { font-size: 1.95rem; }
  .cta-actions, .cta-actions .button { width: 100%; }
  .cta-actions { align-items: center; }
  .cta-section { padding-bottom: 35px; }
  .footer { padding-block: 28px; gap: 12px; }
  .footer nav { gap: 0 20px; }
  .article-header { padding-block: 20px 28px; }
  .article-header h1 { font-size: clamp(2rem, 8vw, 2.7rem); }
  .article-meta { gap: 8px 16px; font-size: .68rem; }
  .direct-answer { padding: 22px; }
  .direct-answer > p:last-child { font-size: 1.02rem; }
  .workflow-steps li { gap: 12px; }
  .article-prose h2 { font-size: 1.5rem; }
  .article-prose > section { margin-bottom: 35px; }
  .editor-note { padding: 20px; }
  .related { padding-block: 34px 40px; }
  .related .section-heading { flex-direction: column; gap: 8px; }
  .related .featured-card { display: flex; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
