/* Maintained refinements; the compiled bundle remains unchanged. */
:root { --page-gutter: clamp(20px, 4vw, 36px); }
.wrap, .header-inner, .footer-inner, .footer-base { width: min(1180px, calc(100% - var(--page-gutter) * 2)); }
.breadcrumbs { padding-block: 1.25rem .75rem; }
.breadcrumbs li { min-width: 0; }
.breadcrumbs li:last-child { overflow-wrap: anywhere; }
.breadcrumbs a { padding-block: .3rem; }
.page-head { padding-block: 1rem .25rem; }
.page-head h1, .tool-head h1, .error-wrap h1 { margin: 0 0 1rem; font-size: clamp(1.9rem, 4.5vw, 2.8rem); line-height: 1.18; letter-spacing: -.035em; font-weight: 800; text-wrap: balance; }
.tool-head { padding-top: 1rem; }
.tool-head .privacy-note { margin-bottom: 1rem; }
.page-prompts .pillars { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.article { max-width: 76ch; padding-block: 1rem 1.5rem; }
.article h1 { max-width: 28ch; }
.article-meta { display: flex; flex-wrap: wrap; gap: .35rem 1rem; color: var(--color-muted); font-size: .85rem; }
.prose { overflow-wrap: anywhere; }
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose a { text-decoration: underline; text-underline-offset: .18em; }
.prose a:hover { color: var(--color-brand-800); }
.prose table th, .prose table td { white-space: normal; min-width: 8rem; }
.prose .table-scroll { margin-block: 1.5rem; }
.prose figure img { width: 100%; }
.prose figcaption { line-height: 1.6; }
.prose h2, .prose h3, #main { scroll-margin-top: 90px; }
.article-toc { margin-block: 1.5rem 2rem; padding: 1.1rem 1.3rem; background: var(--color-card); border: 1px solid var(--color-border); border-radius: 16px; }
.article-toc summary { cursor: pointer; font-weight: 700; min-height: 28px; }
.article-toc ol { margin: .7rem 0 0; font-size: .92rem; }
.editorial-note { margin-top: 2rem; padding-top: 1rem; border-top: 1px solid var(--color-border); color: var(--color-muted); font-size: .9rem; }
.prompt-block { padding: 1rem 1.25rem 1.25rem; }
.prompt-block .copy-btn { position: static; display: flex; width: fit-content; min-height: 44px; margin: 0 0 1rem auto; }
.prompt-block .copy-status { margin-bottom: 0; }
.tool-app .dropzone { margin-bottom: 1.5rem; }
.tool-app .check-row { align-items: flex-start; margin-block: .9rem; }
.tool-app .check-row input { flex: none; margin-top: .2rem; }
.tool-app input[type=range] { width: 100%; accent-color: var(--color-brand-700); min-height: 32px; }
.tool-app input[type=color] { width: 64px; height: 44px; border: 1px solid var(--color-border); border-radius: 8px; }
.tool-app canvas { max-width: 100%; height: auto; }
.tool-app .field { margin-top: 1rem; }
.tool-app .field-row .field { min-width: 0; }
.tool-app .field input, .tool-app .field select { max-width: 100%; }
.file-list li { flex-wrap: wrap; }
.file-list .fname { flex: 1 1 10rem; min-width: 0; }
.file-list .fmeta { white-space: normal; }
.file-list button { min-width: 44px; min-height: 44px; padding: .45rem .7rem; margin-left: 0; }
.btn { overflow-wrap: anywhere; }
.btn:disabled { cursor: not-allowed; opacity: .5; }
.desktop-nav a[aria-current], .mobile-menu a[aria-current] { background: var(--color-brand-50); color: var(--color-brand-800); }
.footer-col a { display: inline-block; padding-block: .2rem; }
.home-guides .lede { margin-bottom: 1.5rem; }
.tool-links { display: flex; gap: .6rem 1.5rem; justify-content: center; flex-wrap: wrap; margin-top: 1rem; font-size: .9rem; }
.tool-links a { color: var(--color-brand-700); text-decoration: underline; text-underline-offset: .2em; }
.tool-loading { color: var(--color-muted); }
@media (max-width: 639px) {
  .page-prompts .pillars { grid-template-columns: 1fr; }
  .hero { padding-block: 2.5rem 1.75rem; }
  .tool-app { padding: 1rem; }
  .tool-app .field-row { flex-direction: column; gap: 0; }
  .tool-app .field-row .field { flex: auto; }
  #spl-quick.field-row { flex-direction: row; gap: .4rem; }
  .hero-cta .btn { width: 100%; }
  .tool-card { gap: .7rem; padding: 1rem; }
  .tool-card-arrow { display: none; }
  .prose table { font-size: .87rem; }
}

/* Author card and author page (added Oct 2026; uses existing tokens) */
.author-card { display: flex; gap: 1rem; align-items: flex-start; margin: 2rem 0 0; padding: 1.25rem 1.5rem; border: 1px solid #dfe8e1; border-radius: 20px; background: linear-gradient(130deg, #fff, #f3f9f4); }
.author-avatar { flex: none; display: grid; place-content: center; width: 56px; height: 56px; border-radius: 50%; background: #facc15; color: #132f26; font-weight: 800; font-size: 1.1rem; letter-spacing: .5px; }
.author-avatar-lg { width: 84px; height: 84px; font-size: 1.6rem; }
.author-card-body { min-width: 0; overflow-wrap: anywhere; }
.author-card-body p { margin: 0 0 .35rem; }
.author-card-name { font-weight: 800; font-size: 1.05rem; }
.author-card-name a { color: inherit; text-decoration: none; }
.author-card-role { color: var(--color-muted); font-size: .9rem; }
.author-card-bio { font-size: .95rem; }
.author-card-link { margin-bottom: 0 !important; font-size: .9rem; }
.author-page-head { display: flex; gap: 1.25rem; align-items: center; margin-bottom: 1rem; }
.author-page-head h1 { margin: 0 0 .25rem; }
@media (max-width: 480px) { .author-card { padding: 1rem; gap: .75rem; } .author-avatar { width: 48px; height: 48px; font-size: 1rem; } .author-page-head { align-items: flex-start; } }

/* Blogs listing and article (added Oct 2026; uses existing tokens) */
.blog-grid { display: grid; grid-template-columns: 1fr; gap: 1.25rem; }
@media (min-width: 640px) { .blog-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .blog-grid { grid-template-columns: repeat(3, 1fr); } }
.blog-card { display: grid; background: var(--color-card); border: 1px solid var(--color-border); border-radius: 16px; overflow: hidden; color: inherit; text-decoration: none; transition: border-color .15s, transform .15s; }
.blog-card:hover { border-color: var(--color-brand-600); transform: translateY(-1px); }
.blog-card-cover { display: block; aspect-ratio: 16 / 9; overflow: hidden; background: #f3f9f4; }
.blog-card-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.blog-card-body { display: grid; gap: .35rem; padding: 1.25rem; }
.blog-card-kicker { text-transform: uppercase; letter-spacing: .06em; color: var(--color-brand-700); font-size: .78rem; font-weight: 700; }
.blog-card-title { font-size: 1.05rem; font-weight: 700; }
.blog-card-desc { color: var(--color-muted); font-size: .95rem; }
.blog-card-meta { color: var(--color-muted); font-size: .85rem; }
.blog-hero { margin: 1.5rem 0; }
.blog-hero img { width: 100%; height: auto; border-radius: 16px; }
.blog-hero figcaption { color: var(--color-muted); font-size: .9rem; margin-top: .5rem; }

/* Blogs nav highlight (soft yellow pill, no animation) */
.desktop-nav .nav-blogs { background: #fde68a; color: #132f26; border-radius: 999px; padding: .6rem 1.1rem; }
.desktop-nav .nav-blogs:hover { background: #fcd34d; color: #132f26; }
.desktop-nav .nav-blogs[aria-current="location"] { background: #facc15; font-weight: 700; }
.mobile-menu .nav-blogs { background: #fde68a; color: #132f26; border-radius: 12px; }
.mobile-menu .nav-blogs:hover { background: #fcd34d; }
.mobile-menu .nav-blogs[aria-current="location"] { background: #facc15; font-weight: 700; }
.nav-blogs:focus-visible, .blog-card:focus-visible { outline: 2px solid #0b6b4a; outline-offset: 2px; }

/* Blog article + sidebar layout (added Oct 2026) */
.blog-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2rem; padding-block: 1rem 1.5rem; }
.blog-main { min-width: 0; }
.blog-main .article { padding-block: 0; }
@media (min-width: 1024px) { .blog-layout { grid-template-columns: minmax(0, 1fr) 300px; gap: 2.5rem; } }
.blog-sidebar { min-width: 0; }
.sidebar-module { background: var(--color-card); border: 1px solid var(--color-border); border-radius: 16px; padding: 1.25rem 1.5rem; margin-bottom: 1.25rem; }
.sidebar-module h2 { font-size: 1rem; margin: 0 0 .75rem; }
.sidebar-module ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; }
.sidebar-module li { min-width: 0; overflow-wrap: anywhere; }
.sidebar-count { display: inline-block; background: var(--color-brand-50); color: var(--color-brand-800); border-radius: 999px; padding: .05rem .55rem; font-size: .8rem; font-weight: 700; }
.sidebar-date { display: block; color: var(--color-muted); font-size: .85rem; }

/* Article share controls (added Oct 2026) */
.share { margin-top: 2rem; padding-top: 1.25rem; border-top: 1px solid var(--color-border); }
.share-label { font-weight: 800; margin: 0 0 .75rem; }
.share-row { display: flex; flex-wrap: wrap; gap: .5rem; }
.share-btn { display: inline-flex; align-items: center; gap: .45rem; min-height: 44px; padding: .55rem .95rem; border: 1px solid var(--color-border); border-radius: 999px; background: #fff; color: inherit; font: inherit; font-size: .9rem; font-weight: 600; text-decoration: none; cursor: pointer; }
.share-btn:hover { border-color: var(--color-brand-600); }
.share-btn svg { width: 20px; height: 20px; flex: none; }
.share-status { font-size: .9rem; color: var(--color-brand-800); margin: .6rem 0 0; }
.share-status:empty { display: none; }
.share-note { color: var(--color-muted); font-size: .85rem; margin: .4rem 0 0; }

/* Context-specific disclaimer (added Oct 2026) */
.disclaimer-box { margin-top: 2rem; padding: 1rem 1.25rem; background: #fef9c3; color: #1f2937; border: 1px solid #fde68a; border-radius: 12px; }
.disclaimer-box p { margin: 0; }

/* Blog comments (added Oct 2026) */
.comments-section h3 { margin-top: 2rem; }
.comment-list { display: grid; gap: 1rem; margin-top: 1rem; }
.comment-item { border: 1px solid var(--color-border); border-radius: 16px; padding: 1rem 1.25rem; background: var(--color-card); }
.comment-meta { margin: 0 0 .4rem; }
.comment-name { font-weight: 800; }
.comment-date { color: var(--color-muted); font-size: .85rem; }
.comment-text { margin: 0; overflow-wrap: anywhere; }
.comment-empty, .comment-more { color: var(--color-muted); }
.comment-form { display: grid; gap: 1rem; margin-top: 1rem; }
.comment-form label { display: block; font-weight: 700; margin-bottom: .35rem; }
.comment-form input[type=text], .comment-form textarea { width: 100%; padding: .7rem .9rem; border: 1px solid var(--color-border); border-radius: 10px; font: inherit; background: #fff; color: inherit; }
.comment-form textarea { resize: vertical; }
.comment-notice { color: var(--color-muted); font-size: .9rem; margin: 0; }
.comment-hp { position: absolute !important; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; margin: 0; }
.comment-status { padding: .85rem 1.1rem; border-radius: 12px; margin: 1rem 0 0; }
.comment-status-success { background: #ecfdf5; border: 1px solid #a7f3d0; color: #065f46; }
.comment-status-error { background: #fef2f2; border: 1px solid #fecaca; color: #991b1b; }

/* Filtered listings: pagination + empty state (added Oct 2026) */
.pagination { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; justify-content: center; margin-top: 2rem; }
.pagination a { display: inline-flex; min-height: 44px; align-items: center; padding: .55rem 1rem; border: 1px solid var(--color-border); border-radius: 999px; text-decoration: none; font-weight: 600; }
.pagination a:hover { border-color: var(--color-brand-600); }
.pagination-status { color: var(--color-muted); font-size: .9rem; }
.empty-state { padding: 2rem 1.5rem; text-align: center; color: var(--color-muted); border: 1px dashed var(--color-border); border-radius: 16px; }

.share-btn:focus-visible, .sidebar-module a:focus-visible, .pagination a:focus-visible, .comment-form input:focus-visible, .comment-form textarea:focus-visible, .comment-form button:focus-visible { outline: 2px solid #0b6b4a; outline-offset: 2px; }
