:root { --blog-accent: var(--orange); --blog-head: var(--ink); }
/* Guides link in the main menu (a plain link next to the trade dropdown buttons) */
.nav-guides { display: flex; align-items: center; min-height: 46px; padding: 0.3rem 0.8rem; border: 1px solid transparent; border-radius: var(--radius); color: var(--ink); font-family: var(--font-head); font-size: 1.2rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.03em; text-decoration: none; white-space: nowrap; }
.nav-guides:hover { border-color: var(--ink); color: var(--ink); }
.nav-guides[aria-current] { text-decoration: underline; text-decoration-color: var(--orange); text-decoration-thickness: 3px; text-underline-offset: 6px; }
@media (max-width: 999.98px) { .nav-guides { border-color: var(--line); } }
@media (min-width: 1000px) { .nav-list:has(> .nav-solo) .nav-group:nth-last-child(-n+3) .nav-drop { left: auto; right: 0; } }
/* ============================================================
   Guides (blog) layer. Linked only when the site has at least one post, or on /blog/ itself,
   so a build with no posts leaves every other page exactly as before.
   Plain reading layout using the site's own colors, type and buttons. Print: just the article.
   ============================================================ */
.post-wrap { max-width: 46rem; }
.post-wrap h1 { margin-bottom: 0.15em; }
.post-meta { color: var(--muted); font-size: 0.95rem; margin: 0 0 1rem; }
.post-wrap .post-meta { margin-top: 0; }
article.post { margin-top: 0.4rem; font-size: 1.1rem; line-height: 1.65; }
article.post p, article.post li { max-width: none; font-size: inherit; }
article.post p { margin: 0 0 1em; }
article.post .lead { font-size: 1.2rem; flex: none; }
article.post h2, article.post h3 { text-transform: none; line-height: 1.15; }
article.post h2 { font-size: clamp(1.6rem, 3.4vw, 1.95rem); margin: 1.7em 0 0.45em; }
article.post h3 { font-size: 1.35rem; margin: 1.4em 0 0.35em; }
article.post ul, article.post ol { padding-left: 1.35rem; margin: 0 0 1em; }
article.post li { margin-bottom: 0.35rem; }
article.post img { max-width: 100%; height: auto; }
article.post .table-scroll { overflow-x: auto; margin: 0 0 1.2em; max-width: 100%; }
article.post .table-scroll:focus-visible { outline-offset: -2px; }
article.post table { border-collapse: collapse; background: #fff; border: 1px solid var(--line); font-variant-numeric: tabular-nums; min-width: 100%; }
article.post caption { text-align: left; font-weight: 700; padding: 0.4rem 0.2rem; }
article.post th, article.post td { border: 1px solid var(--line); padding: 0.35rem 0.7rem; text-align: left; font-size: 1.02rem; }
article.post thead th { background: var(--blog-head, var(--ink)); color: var(--blog-head-ink, #fff); }
article.post tbody tr:nth-child(even) td { background: #fafbfc; }
article.post details.faq { margin: 0 0 0.6rem; }
article.post details.faq summary { font-size: 1.05rem; }
article.post blockquote { margin: 0 0 1em; padding: 0.2rem 1rem; border-left: 4px solid var(--blog-accent); background: #fff; }

.post-tool { margin: 1.8rem 0 1.2rem; padding: 0.9rem 1.1rem 1rem; background: var(--paper); border: 1px solid var(--line); border-left: 6px solid var(--blog-accent); border-radius: var(--radius-card); }
.post-tool p { margin: 0 0 0.6rem; font-size: 1.05rem; font-weight: 600; }
.post-tool .btn { width: auto; }
.post-pn ul { list-style: none; margin: 1.2rem 0 0; padding: 0; display: grid; gap: 0.5rem; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); }
.post-pn li { max-width: none; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-card); padding: 0.6rem 0.9rem; }
.post-pn li span { display: block; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted); font-weight: 700; }
.post-pn a, .post-more a, .post-all a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 700; }
.post-pn a { min-height: 0; }
.post-pn li:only-child { grid-column: 1 / -1; }
.post-more { margin-top: 1.6rem; }
.post-more h2 { font-size: 1.5rem; margin: 0 0 0.3rem; }
.post-more ul { list-style: none; margin: 0; padding: 0; }
.post-more li { max-width: none; }
.post-all { margin: 0.8rem 0 0; }
.post-url { display: none; }

/* index */
.page-blog main > .lead { max-width: 46rem; font-size: 1.15rem; margin: 0 0 1.2rem; flex: none; }
.post-list { list-style: none; margin: 0 0 1.4rem; padding: 0; display: grid; gap: 0.8rem; max-width: 46rem; }
.post-card { max-width: none; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-card); padding: 0.2rem 1.1rem 0.8rem; border-left: 6px solid var(--blog-accent); }
.post-card h2 { font-size: 1.5rem; text-transform: none; margin: 0.6rem 0 0.2rem; }
.post-card h2 a { display: inline-block; padding: 0.15rem 0; color: var(--ink); text-underline-offset: 4px; }
.post-card h2 a:hover { color: var(--link); }
.post-card .post-meta { margin: 0 0 0.4rem; }
.post-card p { margin: 0; max-width: none; }
.post-card .post-meta + p { margin-top: 0; }
.blog-empty { max-width: 46rem; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-card); padding: 1rem 1.2rem; font-size: 1.1rem; }
.blog-tools { max-width: 46rem; }

@media (max-width: 599.98px) {
  article.post { font-size: 1.05rem; }
  .post-tool .btn { width: 100%; }
}

@media print {
  .post-tool, .post-pn, .post-more, .post-all, .post-list .post-tool { display: none !important; }
  body.page-post main > .post-wrap, body.page-blog main > :not(.no-print) { display: block !important; }
  .post-wrap { max-width: none; }
  article.post { font-size: 11.5pt; line-height: 1.45; }
  article.post h2, article.post h3, article.post caption { break-after: avoid; }
  article.post table, article.post .table-scroll, article.post details.faq, .post-card { break-inside: avoid; }
  article.post .table-scroll { overflow: visible; }
  article.post thead th { background: #fff !important; color: #000 !important; border-bottom: 1.5pt solid #000; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  article.post tbody tr:nth-child(even) td { background: #fff; }
  article.post th, article.post td { border-color: #000; }
  details.faq { border: 1px solid #000; }
  details.faq[open] summary, details.faq summary { list-style: none; }
  .post-url { display: block; margin: 1.2em 0 0; font-size: 9.5pt; color: #000; border-top: 1px solid #000; padding-top: 0.4em; }
  .post-card { border: 1px solid #000; border-left-width: 4px; }
}
