/* Field journal: guide-only styles keep the homepage and calculators independent. */
.guide-directory, .guide-article { width: 100%; margin-inline: auto; padding-block: 1rem 3rem; }
.guide-directory .section-kicker, .guide-article .section-kicker { font-size: 1rem; font-weight: 650; letter-spacing: .05em; text-transform: uppercase; }
.guide-directory-hero { display: flex; flex-direction: column; gap: 1.5rem; padding: clamp(1.5rem, 4vw, 3rem); color: var(--surface); background: var(--ink); border-radius: 8px; }
.guide-directory-hero > div { min-width: 0; }
.guide-directory-hero .section-kicker { display: block; margin-bottom: 1rem; color: var(--hero-highlight); }
.guide-directory-hero .section-kicker::before { display: inline-block; margin-right: .5rem; vertical-align: middle; background: var(--hero-highlight); }
.guide-directory-hero h1 { color: var(--surface); font-size: clamp(1.75rem, 4vw, 3.5rem); line-height: 1.1; }
.guide-directory-tagline { margin-top: 1rem; font-size: 1.125rem; font-weight: 550; }
.guide-directory-intro { margin-top: .5rem; color: var(--tint); font-size: 1rem; line-height: 1.7; }
.guide-directory-count { display: flex; align-items: baseline; gap: .75rem; border-top: 1px solid var(--control-border); padding-top: 1rem; }
.guide-directory-count strong { color: var(--hero-highlight); font-size: 2.75rem; line-height: 1; font-variant-numeric: tabular-nums; }
.guide-directory-count span { color: var(--tint); font-size: 1rem; }
.guide-discovery { margin-block: 2rem 1.5rem; }
.guide-discovery > label { display: block; margin-bottom: .5rem; font-weight: 600; }
.guide-search-field { display: flex; align-items: center; gap: .75rem; padding-inline: 1rem; background: var(--surface); border: 1px solid var(--control-border); border-radius: 6px; }
.guide-search-field:focus-within { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.guide-search-field input { width: 100%; min-width: 0; min-height: 52px; padding-block: .75rem; color: var(--ink); background: transparent; border: 0; }
.guide-search-field input:focus-visible { outline: none; box-shadow: none; }
.guide-search-field input::placeholder { color: var(--muted); opacity: 1; }
.guide-filters { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1rem; }
.guide-filters button, .guide-clear, .guide-empty-state button { min-height: 44px; padding: .5rem .875rem; color: var(--ink); background: var(--surface); border: 1px solid var(--border); border-radius: 6px; cursor: pointer; }
.guide-filters button:hover:not(:disabled), .guide-empty-state button:hover { color: var(--ink); border-color: var(--accent); background: var(--tint); }
.guide-filters button[aria-pressed="true"] { color: var(--surface); background: var(--ink); border-color: var(--ink); }
.guide-filters button:disabled, .guide-search-field input:disabled { cursor: wait; }
.guide-results { margin-top: 2rem; }
.guide-results-heading { display: flex; align-items: flex-start; flex-wrap: wrap; gap: .75rem 1rem; margin-bottom: 1rem; padding-bottom: 1rem; border-bottom: 1px solid var(--border); }
.guide-results-heading > div { flex: 1 1 20rem; }
.guide-results-heading .section-kicker { margin-bottom: .25rem; color: var(--accent); }
.guide-results-heading h2 { font-size: 1.375rem; scroll-margin-top: calc(var(--header-height, 5rem) + 1.5rem); }
.guide-results-count { margin: 0; color: var(--muted); font-size: 1rem; }
.guide-clear { text-decoration: underline; }
.guide-clear:hover { background: var(--tint); }
.guide-card-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1rem; margin: 0; padding: 0; list-style: none; }
.guide-card-grid > li { min-width: 0; }
.guide-card { display: flex; flex-direction: column; height: 100%; color: var(--ink); background: var(--surface); border: 1px solid var(--border); border-radius: 8px; }
.guide-card-body { display: flex; flex-direction: column; flex: 1; min-width: 0; padding: 1.25rem; }
.guide-card-meta { display: block; margin-bottom: 1rem; color: var(--accent); font-size: 1rem; font-weight: 600; }
.guide-card-meta i { padding-inline: .25rem; font-style: normal; }
.guide-card-copy { display: grid; gap: .75rem; }
.guide-card-copy > strong { font-size: 1.25rem; line-height: 1.35; font-weight: 600; letter-spacing: -.025em; text-wrap: pretty; }
.guide-card-copy > span { color: var(--muted); font-size: 1rem; line-height: 1.7; }
.guide-card-action { display: inline-flex; align-items: center; gap: .75rem; min-height: 44px; margin-top: auto; padding-top: 1rem; color: var(--accent); font-size: 1rem; font-weight: 650; }
.guide-card:hover { border-color: var(--accent); }
.guide-card:hover .guide-card-action { text-decoration: underline; text-underline-offset: .25em; }
.guide-feature .guide-card { background: var(--tint); }
.guide-feature .guide-card-copy > strong { font-size: 1.5rem; }
.guide-feature-image { order: -1; display: grid; place-items: center; padding: 1rem; background: var(--surface); border-radius: 7px 7px 0 0; }
.guide-feature-image img { display: block; width: 100%; height: 160px; object-fit: contain; }
.guide-pagination { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: .375rem; margin-top: 1.5rem; padding-top: 1rem; border-top: 1px solid var(--border); }
.guide-pagination-status { width: 100%; margin: 0 0 .5rem; color: var(--muted); text-align: center; }
.guide-pagination > button, .guide-pagination li button { display: inline-flex; align-items: center; justify-content: center; gap: .375rem; min-width: 44px; min-height: 44px; padding: .5rem .625rem; color: var(--ink); background: var(--surface); border: 1px solid var(--border); border-radius: 6px; cursor: pointer; }
.guide-pagination button:hover:not(:disabled) { border-color: var(--accent); background: var(--tint); }
.guide-pagination button:disabled { color: var(--muted); opacity: .55; cursor: not-allowed; }
.guide-pagination > button:nth-of-type(1) svg { transform: rotate(180deg); }
.guide-pagination ol { display: flex; gap: .25rem; margin: 0; padding: 0; list-style: none; }
.guide-pagination li button[aria-current="page"] { color: var(--surface); background: var(--ink); border-color: var(--ink); }
.guide-empty-state { padding: 1.5rem; background: var(--surface); border: 1px dashed var(--control-border); border-radius: 8px; }
.guide-empty-state p { margin-block: .5rem 1rem; color: var(--muted); }
.guide-header { display: grid; gap: 1.5rem; padding-block: .5rem 2rem; border-bottom: 1px solid var(--border); }
.guide-header-copy { min-width: 0; }
.guide-header .section-kicker { margin-bottom: 1rem; color: var(--accent); }
.guide-header h1 { margin-bottom: 1rem; font-size: clamp(1.75rem, 4vw, 3.5rem); line-height: 1.12; text-wrap: balance; }
.guide-intro { color: var(--muted); font-size: 1rem; line-height: 1.8; }
.guide-author { margin-top: 1.25rem; color: var(--muted); }
.guide-author aside { display: flex; flex-wrap: wrap; gap: .25rem 1.25rem; }
.guide-author p { margin: 0; font-size: 1rem; }
.guide-author p:has(> time) { width: fit-content; max-width: 100%; margin-top: .5rem; padding: .4rem .75rem; color: var(--ink); background: var(--tint); border-inline-start: 3px solid var(--accent); border-radius: 0 4px 4px 0; font-weight: 500; }
.guide-author time { font-weight: 700; }
.guide-article-photo { display: none; padding: 1.5rem; background: var(--tint); border-radius: 8px; }
.guide-article-photo img { display: block; width: 100%; height: auto; object-fit: contain; }
.guide-takeaway { display: grid; gap: .5rem; margin-block: 1.5rem; padding: clamp(1.25rem, 3vw, 2rem); color: var(--surface); background: var(--ink); border-radius: 8px; }
.guide-takeaway > span { display: flex; align-items: center; gap: .5rem; color: var(--hero-highlight); font-size: 1rem; font-weight: 650; letter-spacing: .04em; }
.guide-takeaway > strong { margin-top: .5rem; font-size: clamp(2rem, 5vw, 3.5rem); line-height: 1.15; font-weight: 600; letter-spacing: -.03em; }
.guide-takeaway > b { font-size: 1.125rem; font-weight: 550; }
.guide-takeaway > p { margin: 0; color: var(--tint); font-size: 1rem; line-height: 1.7; }
.guide-toc { display: none; margin-block: 2rem 0; padding-block: .75rem; border-block: 1px solid var(--border); }
.guide-toc > p { font-weight: 650; }
.guide-toc ol, .guide-toc-mobile ol { display: flex; flex-wrap: wrap; gap: .25rem 1rem; margin: 0; padding: 0; list-style: none; }
.guide-toc a, .guide-toc-mobile a { display: inline-flex; align-items: center; min-height: 44px; color: var(--muted); font-size: 1rem; line-height: 1.5; }
.guide-toc a:hover, .guide-toc-mobile a:hover { color: var(--ink); text-decoration: underline; }
.guide-toc-mobile { margin-block: 1.5rem 0; padding: .5rem 1rem; background: var(--surface); border: 1px solid var(--border); border-radius: 6px; }
.guide-toc-mobile summary { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 44px; font-weight: 600; cursor: pointer; list-style: none; }
.guide-toc-mobile summary::-webkit-details-marker { display: none; }
.guide-toc-mobile summary::after { width: .5rem; height: .5rem; flex: 0 0 auto; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; content: ""; transform: rotate(45deg); }
.guide-toc-mobile[open] summary::after { transform: rotate(225deg); }
.guide-toc-mobile ol { display: grid; padding-bottom: .5rem; }
.guide-prose { width: 100%; }
.guide-prose > section { padding-block: 2rem; border-bottom: 1px solid var(--border); scroll-margin-top: calc(var(--header-height, 5rem) + 1.25rem); }
.guide-prose h2 { margin-bottom: 1rem; font-size: 1.375rem; line-height: 1.35; }
.guide-prose p { width: 100%; max-width: none; margin-block: 0 1rem; color: var(--muted); font-size: 1rem; line-height: 1.8; }
.guide-prose p:last-child { margin-bottom: 0; }
.guide-section-copy { width: 100%; max-width: none; }
.guide-table-scroll { max-width: 100%; margin-top: 1.5rem; overflow-x: auto; background: var(--surface); border: 1px solid var(--border); border-radius: 8px; }
.guide-table { width: 100%; min-width: 38rem; border-collapse: collapse; text-align: left; }
.guide-table caption { padding: 1rem; color: var(--ink); background: var(--tint); font-size: 1rem; font-weight: 600; text-align: left; }
.guide-table th, .guide-table td { padding: .875rem 1rem; border-top: 1px solid var(--border); vertical-align: top; font-size: 1rem; line-height: 1.6; }
.guide-table thead th { background: var(--tint); }
.guide-table tbody th { min-width: 10rem; color: var(--ink); font-weight: 600; }
.guide-table tbody td { color: var(--muted); }
.guide-prose .guide-tool-callout { display: flex; flex-direction: column; align-items: flex-start; gap: 1.5rem; margin-block: 1.5rem; padding: clamp(1.25rem, 3vw, 2rem); color: var(--surface); background: var(--ink); border: 0; border-radius: 8px; }
.guide-tool-callout h2 { color: var(--surface); }
.guide-prose .guide-tool-callout p { margin: 0; color: var(--tint); }
.guide-tool-link { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; gap: .75rem; min-height: 48px; padding: .75rem 1rem; color: var(--ink); background: var(--hero-highlight); border-radius: 6px; font-weight: 650; }
.guide-tool-link:hover { color: var(--ink); background: var(--surface); }
.guide-tool-callout .guide-tool-link:focus-visible { outline-color: var(--hero-highlight); }
.guide-prose .notice { margin-block: 2rem; }
.guide-prose .sources-section ul, .guide-related ul { display: grid; gap: .5rem; margin: 0; padding: 0; list-style: none; }
.guide-prose .sources-section li { display: grid; gap: .25rem; padding-block: .75rem; border-bottom: 1px solid var(--border); }
.guide-prose .sources-section li a { width: fit-content; font-weight: 550; text-decoration: underline; }
.guide-prose .sources-section li span { color: var(--muted); font-size: 1rem; }
.guide-related { margin-top: 2rem; }
.guide-related h2 { margin-bottom: .75rem; }
.guide-related a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: underline; }
.guide-article .faq-item { border-bottom: 1px solid var(--border); }
.guide-article .faq-item summary { display: flex; align-items: center; gap: .75rem; min-height: 56px; padding-block: .75rem; cursor: pointer; list-style: none; }
.guide-article .faq-item summary::-webkit-details-marker { display: none; }
.guide-article .faq-item summary::before { width: .55rem; height: .55rem; flex: 0 0 auto; border-right: 2px solid var(--accent); border-bottom: 2px solid var(--accent); content: ""; transform: rotate(-45deg); }
.guide-article .faq-item[open] summary::before { transform: rotate(45deg); }
.guide-article .faq-item summary h3 { margin: 0; font-size: 1rem; line-height: 1.5; }
.guide-article .faq-item > p { margin: 0; padding: 0 0 1rem 1.3rem; }
@media (min-width: 640px) {
  .guide-directory-hero { flex-direction: row; align-items: center; justify-content: space-between; gap: 2rem; }
  .guide-directory-count { display: grid; flex: 0 0 10rem; align-content: center; padding: 1rem 0 1rem 1.5rem; border-top: 0; border-left: 1px solid var(--control-border); }
  .guide-card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .guide-feature, .guide-card-grid > li:last-child:nth-child(even) { grid-column: 1 / -1; }
  .guide-feature .guide-card { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); }
  .guide-feature .guide-card-body { padding: clamp(1.5rem, 3vw, 2.5rem); }
  .guide-feature .guide-card-copy > strong { font-size: 1.75rem; }
  .guide-feature-image { order: 0; padding: 1.5rem; border-radius: 0 7px 7px 0; }
  .guide-feature-image img { height: auto; max-height: 250px; }
  .guide-results-heading { align-items: center; }
  .guide-pagination { gap: .75rem; }
  .guide-pagination-status { width: auto; margin: 0 auto 0 0; text-align: left; }
}
@media (max-width: 400px) {
  .guide-pagination { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; }
  .guide-pagination-status { grid-column: 1 / -1; margin: 0; }
  .guide-pagination ol { grid-column: 1 / -1; grid-row: 2; justify-content: center; }
  .guide-pagination > button { grid-row: 3; }
}
@media (max-width: 767px) {
  .guide-directory-hero h1, .guide-header h1 { font-size: var(--mobile-title-size); }
}
@media (min-width: 768px) {
  .guide-header { grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); align-items: center; gap: 2rem; }
  .guide-article-photo { display: block; }
}
@media (min-width: 1200px) {
  .guide-toc { display: grid; gap: .5rem; }
  .guide-toc-mobile { display: none; }
}
@media (min-width: 1280px) {
  .guide-intro, .guide-directory-intro { font-size: 1.125rem; }
  .guide-prose h2 { font-size: 1.5rem; }
  .guide-prose .guide-tool-callout { flex-direction: row; align-items: center; }
}
@media print {
  .guide-discovery, .guide-pagination, .guide-toc, .guide-toc-mobile, .guide-feature-image, .guide-article-photo { display: none; }
  .guide-directory-hero, .guide-takeaway, .guide-prose .guide-tool-callout { color: #000; background: #fff; border: 1px solid #888; }
  .guide-directory-hero *, .guide-takeaway *, .guide-prose .guide-tool-callout * { color: #000; }
  .guide-table-scroll { overflow: visible; }
  .guide-table { min-width: 0; }
}
@media screen {
  html[data-theme="dark"] .guide-directory-hero, html[data-theme="dark"] .guide-takeaway, html[data-theme="dark"] .guide-prose .guide-tool-callout { color: #fffef8; background: #263a2c; }
  html[data-theme="dark"] .guide-takeaway > p, html[data-theme="dark"] .guide-prose .guide-tool-callout p { color: #dce5cf; }
  html[data-theme="dark"] .guide-tool-callout h2 { color: #fffef8; }
  html[data-theme="dark"] .guide-tool-link { color: #263a2c; }
  html[data-theme="dark"] .guide-tool-link:hover { color: #263a2c; background: #d0e7b0; }
  html[data-theme="dark"] .guide-directory-hero h1 { color: #fffef8; }
  html[data-theme="dark"] .guide-directory-intro, html[data-theme="dark"] .guide-directory-count span { color: #dce5cf; }
}
