/* Hallmark · macrostructure: Editorial Post Library · tone: Threadfarm journal · anchor hue: lime
 * design-system: ../../workspace/design.md · pre-emit critique: P5 H5 E5 S5 R5 V5 */
@import url("/guides/tokens.css");
* { box-sizing: border-box; }
html { overflow-x: clip; scroll-padding-top: 104px; }
body { overflow-x: clip; margin: 0; background: var(--color-paper); color: var(--color-ink); font: 16px/1.8 var(--font-body); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; touch-action: manipulation; }
button, input, summary { font: inherit; }
button, summary { cursor: pointer; touch-action: manipulation; }
h1, h2, h3 { min-width: 0; overflow-wrap: anywhere; font-family: var(--font-display); font-style: normal; word-break: keep-all; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--color-focus); outline-offset: 4px; }
.skip-link { position: fixed; top: -100px; left: 16px; z-index: 20; padding: 12px 20px; background: var(--color-brand); color: var(--color-ink); border-radius: var(--radius-sm); }
.skip-link:focus { top: 12px; }
.guide-header { --color-focus: var(--color-brand); position: sticky; top: 0; z-index: 10; display: flex; justify-content: space-between; align-items: center; min-height: 80px; gap: 16px; padding: 12px max(24px, calc((100vw - 1248px) / 2)); background: var(--color-ink); color: var(--color-on-dark); }
.guide-brand { display: inline-flex; align-items: center; min-height: 44px; gap: 10px; font-size: 20px; font-weight: 850; letter-spacing: -.04em; white-space: nowrap; }
.guide-brand img { flex-shrink: 0; }
.guide-brand > span { padding-left: 14px; margin-left: 4px; border-left: 1px solid var(--color-dark-rule); font-size: 14px; font-weight: 550; color: var(--color-muted-dark); }
.guide-header nav { display: flex; gap: 24px; align-items: center; white-space: nowrap; font-size: 14px; }
.service-home { display: inline-flex; align-items: center; min-height: 44px; color: var(--color-muted-dark); }
.service-home:hover { color: var(--color-on-dark); }
.header-action, .primary-action, .download-action { display: inline-flex; align-items: center; justify-content: center; gap: 16px; min-height: 48px; padding: 12px 20px; border-radius: var(--radius-sm); border: 1px solid var(--color-brand); background: var(--color-brand); color: var(--color-ink); font-size: 14px; font-weight: 750; white-space: nowrap; }
.header-action:hover, .primary-action:hover { background: var(--color-brand-hover); }
.header-action:active, .primary-action:active, .download-action:active { transform: translateY(1px); }
.guide-layout { width: min(1248px, calc(100% - 64px)); margin-inline: auto; }
.guide-navigation-band { border-bottom: 1px solid var(--color-rule); }
.guide-menu > summary { display: flex; align-items: center; justify-content: space-between; min-height: 60px; list-style: none; color: var(--color-muted); font-size: 14px; font-weight: 650; }
.guide-menu > summary::-webkit-details-marker { display: none; }
.guide-menu > summary:hover { color: var(--color-ink); }
.guide-menu > summary span { font-size: 20px; }
.guide-menu[open] > summary span { transform: rotate(180deg); }
.sidebar-content { padding: 8px 0 32px; }
.guide-search { max-width: 440px; margin-bottom: 24px; }
.guide-search label { display: block; font-size: 14px; font-weight: 700; margin-bottom: 8px; }
.guide-search input { width: 100%; min-height: 48px; border: 1px solid var(--color-rule); border-radius: var(--radius-sm); padding: 10px 14px; color: var(--color-ink); background: var(--color-paper); font-size: 15px; }
.guide-search input::placeholder { color: var(--color-muted); }
.guide-search input:hover { border-color: var(--color-muted); }
.search-status { min-height: 1lh; margin: 8px 0 0; font-size: 13px; color: var(--color-muted); }
#guide-navigation { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.guide-home { grid-column: 1 / -1; display: inline-flex; align-items: center; min-height: 44px; font-size: 14px; font-weight: 750; }
#guide-navigation h2 { margin: 0 0 8px; color: var(--color-muted); font-size: 12px; font-weight: 700; }
#guide-navigation ul { padding: 0; margin: 0; list-style: none; }
#guide-navigation li a { display: inline-flex; align-items: center; min-height: 44px; padding: 4px 0; font-size: 14px; white-space: nowrap; }
#guide-navigation a:hover { text-decoration: underline; text-underline-offset: 4px; }
#guide-navigation a[aria-current="page"] { color: var(--color-link); font-weight: 750; }
.sidebar-help { margin: 24px 0 0; color: var(--color-muted); font-size: 13px; }
.sidebar-help br { display: none; }
.sidebar-help a { display: inline-flex; align-items: center; min-height: 44px; margin-left: 12px; color: var(--color-link); white-space: nowrap; text-decoration: underline; text-underline-offset: 4px; }
.guide-index { padding: 48px 0 0; }
.index-header { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 56px; align-items: center; padding: 24px 0 64px; }
.index-label, .section-label, .article-kicker { margin: 0 0 20px; font-size: 13px; font-weight: 750; color: var(--color-link); }
.index-heading h1 { margin: 0; font-size: clamp(40px, 4.6vw, 64px); line-height: 1.15; letter-spacing: -.055em; font-weight: 850; }
.index-heading > p:not(.index-label) { margin: 24px 0; color: var(--color-muted); font-size: 17px; line-height: 1.8; word-break: keep-all; }
.index-heading .primary-action { margin-top: 8px; }
.featured-post { --color-focus: var(--color-brand); display: block; min-width: 0; background: var(--color-ink); color: var(--color-on-dark); border-radius: 16px; overflow: clip; }
.featured-post > img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; }
.featured-post > div { position: relative; padding: 28px 32px 32px; }
.featured-post > div > span:first-child { font-size: 12px; font-weight: 700; color: var(--color-brand); }
.featured-post h2 { margin: 12px 0; padding-right: 24px; font-size: 30px; font-weight: 800; line-height: 1.35; letter-spacing: -.04em; }
.featured-post p { margin: 0; font-size: 13px; color: var(--color-muted-dark); }
.featured-arrow { position: absolute; top: 28px; right: 28px; color: var(--color-brand); font-size: 26px; }
.featured-post:hover h2 { text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 1px; }
.post-library { padding: 48px 0 64px; border-top: 1px solid var(--color-rule); scroll-margin-top: 100px; }
.library-heading { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 32px; }
.library-heading .section-label { margin-bottom: 12px; }
.library-heading h2 { margin: 0; font-size: 34px; font-weight: 800; letter-spacing: -.04em; line-height: 1.3; }
.library-heading > a { display: inline-flex; align-items: center; min-height: 44px; color: var(--color-muted); font-size: 14px; white-space: nowrap; }
.library-heading > a:hover { color: var(--color-link); }
.post-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 48px 28px; }
.post-card { min-width: 0; }
.post-card > a { display: block; }
.post-card-art { position: relative; overflow: clip; border-radius: 12px; background: var(--color-surface); }
.post-card-art img { display: block; width: 100%; height: auto; aspect-ratio: 3/2; object-fit: cover; }
.post-number { position: absolute; top: 16px; left: 20px; font-size: 12px; font-weight: 800; }
.post-card-copy { padding: 20px 0 0; }
.post-card-copy > p:first-child { margin: 0 0 10px; font-size: 12px; font-weight: 750; color: var(--color-link); }
.post-card h3 { margin: 0; font-size: 24px; font-weight: 800; line-height: 1.4; letter-spacing: -.035em; }
.post-card-description { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: clip; margin: 12px 0 16px; font-size: 14px; line-height: 1.8; color: var(--color-muted); word-break: keep-all; }
.post-read { display: inline-flex; align-items: center; min-height: 44px; gap: 20px; font-size: 13px; font-weight: 750; }
.post-card a:hover h3 { color: var(--color-link); text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.start-note { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: 48px; padding: 48px; margin: 0 0 64px; border-radius: 16px; background: var(--color-selected); }
.start-note h2 { margin: 0; font-size: 34px; font-weight: 800; line-height: 1.35; letter-spacing: -.04em; }
.start-note p { color: var(--color-muted); font-size: 15px; margin: 0 0 12px; }
.start-note a { display: inline-flex; align-items: center; min-height: 44px; font-size: 14px; font-weight: 750; color: var(--color-link); white-space: nowrap; }
.ebook-benefit { --color-focus: var(--color-brand); display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 64px; align-items: center; padding: 64px; border-radius: 20px; background: var(--color-ink); color: var(--color-on-dark); scroll-margin-top: 104px; }
.ebook-visual { width: min(390px, 100%); margin: 0 auto; }
.ebook-visual img { display: block; width: 100%; height: auto; }
.ebook-copy .section-label { color: var(--color-brand); }
.ebook-copy h2 { margin: 0; font-size: clamp(30px, 3vw, 40px); font-weight: 850; line-height: 1.3; letter-spacing: -.04em; }
.ebook-copy > p:not(.section-label) { margin: 20px 0; font-size: 15px; line-height: 1.85; color: var(--color-muted-dark); word-break: keep-all; }
.ebook-includes { list-style: none; padding: 0; margin: 24px 0; font-size: 14px; }
.ebook-includes li { display: flex; align-items: baseline; gap: 12px; margin: 8px 0; }
.ebook-includes li::before { content: "✓"; color: var(--color-brand); font-weight: 800; }
.ebook-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.download-action { border-color: var(--color-dark-rule); background: var(--color-ink); color: var(--color-on-dark); }
.download-action:hover { border-color: var(--color-brand); }
.download-action:disabled { cursor: wait; border-color: var(--color-dark-rule); color: var(--color-muted-dark); }
.ebook-copy .benefit-note { font-size: 12px !important; }
.ebook-copy .ebook-status { font-size: 13px !important; color: var(--color-on-dark) !important; }
.ebook-status:empty { display: none; }
.ebook-plan-link, .ebook-recovery a, .inline-ebook a { display: inline-flex; align-items: center; min-height: 44px; font-size: 13px; font-weight: 700; text-decoration: underline; text-underline-offset: 4px; white-space: nowrap; }
.ebook-plan-link { color: var(--color-muted-dark); }
.ebook-recovery { display: flex; gap: 20px; }
.help-block { padding: 48px 0; }
.help-block h2 { font-size: 22px; margin: 0; }
.help-block p { color: var(--color-muted); font-size: 14px; margin: 8px 0; }
.help-block a { display: inline-flex; align-items: center; min-height: 44px; color: var(--color-link); font-size: 14px; text-decoration: underline; text-underline-offset: 4px; white-space: nowrap; }
.document-layout { display: grid; grid-template-columns: minmax(0, 760px) 200px; justify-content: center; gap: 64px; padding-top: 48px; }
.guide-article { min-width: 0; padding-bottom: 64px; }
.document-header { padding-bottom: 32px; }
.breadcrumbs { display: flex; align-items: center; gap: 12px; margin-bottom: 24px; color: var(--color-muted); font-size: 13px; white-space: nowrap; }
.breadcrumbs a { display: inline-flex; align-items: center; min-height: 44px; }
.breadcrumbs a:hover { color: var(--color-link); text-decoration: underline; text-underline-offset: 4px; }
.article-kicker { margin-bottom: 16px; }
.document-header h1 { margin: 0; font-size: clamp(38px, 4.1vw, 56px); line-height: 1.2; font-weight: 850; letter-spacing: -.05em; }
.document-description { margin: 24px 0; max-width: 680px; color: var(--color-muted); font-size: 18px; line-height: 1.85; word-break: keep-all; }
.byline { display: flex; flex-wrap: wrap; gap: 8px; margin: 28px 0 0; color: var(--color-muted); font-size: 12px; }
.article-cover { margin: 0 0 40px; }
.article-cover img { display: block; width: 100%; height: auto; border-radius: 12px; }
.article-cover figcaption { margin-top: 8px; color: var(--color-muted); font-size: 11px; text-align: right; }
.reading-points { padding: 28px 32px; margin: 0 0 32px; border: 1px solid var(--color-rule); border-radius: 12px; }
.reading-points > p { margin: 0 0 12px; font-size: 14px; font-weight: 800; }
.reading-points ul { padding-left: 20px; margin: 0; color: var(--color-muted); font-size: 15px; }
.reading-points li { padding-left: 4px; margin-top: 6px; }
.reading-points li::marker { color: var(--color-link); }
.prose { font-size: 17px; line-height: 1.95; word-break: keep-all; overflow-wrap: anywhere; }
.prose > section { margin-top: 48px; scroll-margin-top: 104px; }
.prose h2 { margin: 0 0 24px; font-size: 27px; line-height: 1.45; letter-spacing: -.035em; font-weight: 800; }
.prose h3 { margin: 28px 0 12px; font-size: 20px; }
.prose p { margin: 18px 0; }
.prose ul, .prose ol { padding-left: 24px; margin: 20px 0; }
.prose li { padding-left: 4px; margin: 10px 0; }
.prose li::marker { color: var(--color-link); font-weight: 750; }
.prose strong { font-weight: 750; }
.prose a { color: var(--color-link); text-decoration: underline; text-underline-offset: 4px; }
.prose a:hover { text-decoration-thickness: 2px; }
.prose blockquote, .prose .example { margin: 28px 0; padding: 28px; background: var(--color-surface); border-radius: 12px; }
.prose blockquote > :first-child, .prose .example > :first-child, .prose .note > :first-child { margin-top: 0; }
.prose blockquote > :last-child, .prose .example > :last-child, .prose .note > :last-child { margin-bottom: 0; }
.prose .note { margin: 28px 0; padding: 24px 28px; background: var(--color-selected); border-radius: 12px; font-size: 15px; }
.table-of-contents { position: sticky; top: 120px; align-self: start; font-size: 12px; color: var(--color-muted); }
.table-of-contents nav { padding-left: 20px; border-left: 1px solid var(--color-rule); }
.table-of-contents p { margin: 0 0 8px; font-weight: 750; color: var(--color-ink); }
.table-of-contents ol { list-style: none; padding: 0; margin: 0; }
.table-of-contents li a { display: flex; align-items: center; min-height: 44px; padding: 8px 0; line-height: 1.7; }
.table-of-contents a:hover { color: var(--color-link); text-decoration: underline; text-underline-offset: 4px; }
.back-to-top { display: inline-flex; min-height: 44px; align-items: center; margin: 16px 0 0 20px; white-space: nowrap; }
.mobile-toc { display: none; }
.article-action { --color-focus: var(--color-brand); margin-top: 48px; padding: 32px; border-radius: 12px; background: var(--color-ink); color: var(--color-on-dark); }
.article-action p { margin: 0 0 16px; font-size: 16px; font-weight: 700; }
.inline-ebook { display: flex; align-items: center; gap: 32px; padding: 32px; margin-top: 48px; border-radius: 12px; background: var(--color-selected); }
.inline-ebook img { width: 130px; height: auto; flex-shrink: 0; }
.inline-ebook p { margin: 0 0 8px; color: var(--color-muted); font-size: 13px; }
.inline-ebook h2 { margin: 0 0 12px; font-size: 24px; line-height: 1.4; font-weight: 800; letter-spacing: -.035em; }
.inline-ebook a { color: var(--color-link); }
.related { margin-top: 48px; }
.related h2 { margin: 0 0 16px; font-size: 22px; }
.related > a { display: flex; align-items: center; min-height: 52px; border-bottom: 1px solid var(--color-rule); font-size: 15px; font-weight: 650; }
.related > a::after { content: "↗"; padding-left: 16px; margin-left: auto; }
.related > a:hover { color: var(--color-link); }
.adjacent-guides { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 32px; }
.adjacent-guides a { display: grid; padding: 20px; border: 1px solid var(--color-rule); border-radius: 8px; }
.adjacent-guides a:hover { background: var(--color-surface); }
.adjacent-guides span { color: var(--color-muted); font-size: 12px; }
.adjacent-guides strong { font-size: 14px; font-weight: 650; }
.guide-footer { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; width: min(1248px, calc(100% - 64px)); margin: 0 auto; padding: 24px 0; border-top: 1px solid var(--color-rule); color: var(--color-muted); font-size: 12px; }
.guide-footer nav { display: flex; flex-wrap: wrap; gap: 20px; }
.guide-footer a { display: inline-flex; align-items: center; min-height: 44px; white-space: nowrap; }
.guide-footer a:hover { color: var(--color-ink); text-decoration: underline; text-underline-offset: 4px; }
@media (max-width: 1100px) {
 .index-header { gap: 32px; }
 .index-heading h1 { font-size: 48px; }
 .featured-post h2 { font-size: 26px; }
 .post-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
 .ebook-benefit { padding: 48px; gap: 40px; }
 .document-layout { display: block; max-width: 760px; margin: 0 auto; }
 .table-of-contents { display: none; }
 .mobile-toc { display: block; padding: 16px 20px; border: 1px solid var(--color-rule); border-radius: 8px; margin: 24px 0; font-size: 14px; }
 .mobile-toc summary { min-height: 28px; font-weight: 700; }
 .mobile-toc ol { padding-left: 20px; margin-bottom: 0; }
 .mobile-toc a { display: inline-flex; align-items: center; min-height: 44px; color: var(--color-link); }
}
@media (max-width: 800px) {
 .guide-header { min-height: 72px; padding-inline: 24px; }
 .guide-layout, .guide-footer { width: calc(100% - 48px); }
 #guide-navigation { grid-template-columns: repeat(2, minmax(0, 1fr)); }
 .index-header { grid-template-columns: minmax(0, 1fr); gap: 40px; padding: 0 0 48px; }
 .index-heading h1 { font-size: 52px; }
 .index-heading > p:not(.index-label) br:last-child { display: none; }
 .featured-post { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; }
 .featured-post > img { height: 100%; min-height: 240px; }
 .featured-post > div { padding: 24px; }
 .featured-post h2 { font-size: 25px; }
 .post-library { padding-top: 40px; }
 .library-heading { align-items: start; }
 .library-heading h2 { font-size: 30px; }
 .library-heading > a { display: none; }
 .start-note { grid-template-columns: minmax(0, 1fr); gap: 24px; padding: 32px; }
 .ebook-benefit { grid-template-columns: minmax(0, 1fr); gap: 40px; padding: 48px 32px; }
 .ebook-visual { width: min(280px, 100%); }
 .ebook-copy { max-width: 520px; margin-inline: auto; }
 .ebook-copy h2 { font-size: 36px; }
 .document-header h1 { font-size: 48px; }
}
@media (max-width: 540px) {
 .guide-header { min-height: 72px; padding-inline: 16px; gap: 8px; }
 .guide-brand { font-size: 18px; gap: 8px; }
 .guide-brand img { width: 28px; height: 28px; }
 .guide-brand > span { padding-left: 8px; font-size: 12px; }
 .service-home { display: none; }
 .header-action { padding: 10px 12px; font-size: 12px; gap: 8px; min-height: 44px; }
 .guide-layout, .guide-footer { width: calc(100% - 32px); }
 .guide-menu > summary { min-height: 56px; }
 #guide-navigation { grid-template-columns: minmax(0, 1fr); gap: 20px; }
 .guide-index { padding-top: 32px; }
 .index-header { gap: 32px; }
 .index-heading h1 { font-size: clamp(36px, 9.8vw, 48px); }
 .index-label { margin-bottom: 16px; }
 .index-heading > p:not(.index-label) { font-size: 15px; margin: 20px 0; }
 .index-heading > p:not(.index-label) br { display: none; }
 .featured-post { display: block; }
 .featured-post > img { height: auto; min-height: 0; }
 .featured-post > div { padding: 24px; }
 .featured-post h2 { font-size: 27px; }
 .post-grid { grid-template-columns: minmax(0, 1fr); gap: 36px; }
 .library-heading h2 { font-size: 28px; }
 .post-card h3 { font-size: 25px; }
 .post-card-description { -webkit-line-clamp: 2; }
 .post-library { padding: 36px 0 40px; }
 .start-note { padding: 28px 24px; margin-bottom: 40px; }
 .start-note h2 { font-size: 28px; }
 .start-note p br { display: none; }
 .ebook-benefit { padding: 40px 24px; border-radius: 12px; }
 .ebook-visual { width: min(240px, 100%); }
 .ebook-copy h2 { font-size: 30px; }
 .ebook-copy > p:not(.section-label) { font-size: 14px; }
 .ebook-copy > p br { display: none; }
 .ebook-actions { align-items: stretch; }
 .ebook-actions > * { width: 100%; min-height: 48px; }
 .ebook-includes { font-size: 13px; }
 .document-layout { padding-top: 24px; }
 .document-header { padding-bottom: 24px; }
 .breadcrumbs { margin-bottom: 20px; }
 .document-header h1 { font-size: clamp(34px, 9vw, 44px); }
 .document-description { font-size: 16px; margin: 24px 0; }
 .article-cover { margin-bottom: 28px; }
 .reading-points { padding: 20px; }
 .reading-points ul { font-size: 14px; }
 .prose { font-size: 16px; line-height: 1.95; }
 .prose > section { margin-top: 36px; }
 .prose h2 { font-size: 23px; margin-bottom: 20px; }
 .prose blockquote, .prose .example, .prose .note { padding: 20px; }
 .article-action { padding: 24px; }
 .inline-ebook { gap: 20px; padding: 24px 20px; margin-top: 36px; }
 .inline-ebook img { width: 100px; }
 .inline-ebook h2 { font-size: 20px; }
 .inline-ebook p { font-size: 12px; }
 .inline-ebook p:not(:first-child) { display: none; }
 .inline-ebook a { font-size: 12px; }
 .related > a { font-size: 14px; }
 .adjacent-guides { grid-template-columns: minmax(0, 1fr); }
 .guide-footer nav { gap: 16px; }
}
@media (prefers-reduced-motion: reduce) {
 *, *::before, *::after { animation: none !important; transition-duration: 0ms !important; scroll-behavior: auto !important; }
}
