/* Shared by every page: the guide content below each tool, plain text pages (About, Privacy, Terms, 404)
   and the site footer. Tool styles stay in catalogue/style.css and images/style.css. */
.seo-content, .page, .site-footer { --ink: #0b2a33; --teal: #0f6e74; --soft: #3a4f57; --line: #d8e4e4; --muted-text: #56707a; }

/* Two-column tool workspace: settings on the left, results on the right. The right column stays in view
   while the settings scroll; it scrolls on its own if it's taller than the window. Stacks below 1024px. */
.workspace { display: grid; grid-template-columns: minmax(0, var(--main-col, 5fr)) minmax(0, var(--side-col, 6fr)); gap: 22px; align-items: start; }
.workspace-main, .workspace-side { min-width: 0; }
.workspace-side { position: sticky; top: 16px; max-height: calc(100vh - 32px); overflow-y: auto; border-radius: 13px; scrollbar-width: thin; }
.workspace-side > .card { margin-bottom: 0; }
@media (max-width: 1023px) {
  .workspace { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .workspace-side { position: static; max-height: none; overflow: visible; }
  .workspace-side > .card { margin-bottom: 22px; }
}

/* Bottom action bar on phones (shared/action-bar.js): the main Process / Download / Print button stays in reach */
.action-bar { display: none; }
@media (max-width: 1023px) {
  .action-bar:not([hidden]) { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: #fff; border-top: 1px solid #d8e4e4; box-shadow: 0 -6px 18px rgba(11, 42, 51, .10); }
  .action-bar-text { font-size: 13px; color: #3a4f57; line-height: 1.35; min-width: 0; }
  .action-bar-buttons { display: flex; gap: 8px; flex: none; }
  .action-bar-buttons button { padding: 11px 16px; font-size: 14px; }
  body.has-action-bar { padding-bottom: 76px; }
}
@media print { .action-bar, .consent { display: none !important; } }

/* Analytics consent banner (shared/analytics.js) */
.consent { position: fixed; z-index: 60; left: 16px; bottom: 16px; max-width: 420px; background: #0b2a33; color: #e2f0ef; border-radius: 12px; padding: 14px 16px; box-shadow: 0 10px 30px rgba(11, 42, 51, .25); display: grid; gap: 12px; font: 13px/1.5 Inter, "Segoe UI", system-ui, sans-serif; }
.consent p { margin: 0; color: #e2f0ef; font-size: 13px; line-height: 1.5; }
.consent a { color: #8fd3d3; }
.consent-actions { display: flex; gap: 8px; justify-content: flex-end; }
.consent button { font: 600 13px Inter, "Segoe UI", system-ui, sans-serif; border-radius: 8px; padding: 8px 14px; cursor: pointer; border: 1px solid #3d6670; background: transparent; color: #fff; }
.consent button.primary { background: #f2a541; border-color: #f2a541; color: #0b2a33; }
.consent button:focus-visible { outline: 2px solid #8fd3d3; outline-offset: 2px; }
@media (max-width: 600px) { .consent { left: 8px; right: 8px; bottom: 8px; max-width: none; } }
.site-footer-note a { color: inherit; font-size: inherit; }

.seo-content { max-width: 1236px; margin: 0 auto; padding: 12px 28px 48px; }
.page { max-width: 1236px; margin: 0 auto; padding: 48px 28px 56px; }
.prose { max-width: 780px; color: var(--ink); }
.prose h1 { font-size: clamp(30px, 3.6vw, 42px); letter-spacing: -1.4px; font-weight: 650; line-height: 1.15; margin: 0 0 12px; }
.prose h2 { display: block; font-size: 24px; letter-spacing: -.5px; font-weight: 650; line-height: 1.25; margin: 44px 0 12px; color: var(--ink); }
.prose h3 { font-size: 17px; letter-spacing: -.2px; font-weight: 650; margin: 26px 0 6px; color: var(--ink); }
.prose > :first-child { margin-top: 0; }
.seo-content .prose > h2:first-child { padding-top: 36px; border-top: 1px solid var(--line); }
.prose p, .prose li { font-size: 15px; line-height: 1.7; color: var(--soft); }
.prose p { margin: 10px 0; }
.prose .lede { font-size: 18px; color: var(--ink); }
.prose .updated { font-size: 13px; color: var(--muted-text); }
.prose ul, .prose ol { margin: 10px 0 14px; padding-left: 22px; }
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose li { margin: 6px 0; padding-left: 2px; }
.prose a { color: var(--teal); font-size: inherit; text-underline-offset: 2px; }
.prose strong { color: var(--ink); font-weight: 650; }
.prose code { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: .9em; background: #e8f3f2; color: #0a5459; padding: 2px 5px; border-radius: 4px; white-space: nowrap; }
.prose .example { display: flex; flex-wrap: wrap; gap: 6px; }
.prose table { width: 100%; border-collapse: collapse; margin: 14px 0 18px; font-size: 14px; background: #fff; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; display: table; }
.prose th, .prose td { text-align: left; vertical-align: top; padding: 10px 14px; border-bottom: 1px solid var(--line); line-height: 1.5; color: var(--soft); }
.prose th { background: #eff4f4; color: var(--ink); font-weight: 650; font-size: 13px; }
.prose tr:last-child td { border-bottom: 0; }

.faq { border-top: 1px solid var(--line); }
.faq details { margin: 0; padding: 0; border-top: 0; border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 16px 32px 16px 0; font-size: 16px; font-weight: 650; color: var(--ink); position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 13px; font-size: 22px; font-weight: 400; color: var(--teal); }
.faq details[open] summary::after { content: "−"; }
.faq summary:focus-visible { outline: 2px solid #1a8389; outline-offset: 2px; }
.faq details > div { padding: 0 0 14px; }
.faq details > div p { margin: 0 0 8px; }

.prose .related { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.prose .related li { margin: 0; padding: 0; }
.related a { display: block; height: 100%; padding: 14px 16px; background: #fff; border: 1px solid var(--line); border-radius: 10px; text-decoration: none; }
.related a:hover { border-color: #5b9ea1; background: #e8f3f2; }
.related strong { display: block; font-size: 14px; }
.related strong::after { content: " →"; color: var(--teal); }
.related span { display: block; font-size: 13px; line-height: 1.5; color: var(--muted-text); margin-top: 3px; }

.site-footer { max-width: none; padding: 0; background: #fff; border-top: 1px solid var(--line); margin-top: 24px; text-align: left; font-size: 14px; color: var(--soft); }
.site-footer-inner { max-width: 1236px; margin: 0 auto; padding: 40px 28px 24px; display: grid; grid-template-columns: 1.3fr repeat(5, 1fr); gap: 24px; }
.site-footer-brand img { display: block; height: 32px; width: auto; margin-left: -4px; }
.site-footer-brand p { font-size: 13px; line-height: 1.6; color: var(--muted-text); margin: 12px 0 0; }
.site-footer-brand strong { color: var(--ink); }
.site-footer h2 { font-size: 12px; text-transform: uppercase; letter-spacing: .7px; color: var(--muted-text); margin: 6px 0 10px; font-weight: 650; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin: 0 0 8px; }
.site-footer a { color: var(--ink); text-decoration: none; font-size: 14px; }
.site-footer a:hover { color: var(--teal); text-decoration: underline; }
.site-footer-note { max-width: 1236px; margin: 0 auto; padding: 16px 28px 28px; font-size: 12px; color: var(--muted-text); border-top: 1px solid var(--line); }

@media (max-width: 1100px) {
  .site-footer-inner { grid-template-columns: repeat(3, 1fr); }
  .site-footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 800px) {
  .seo-content { padding: 8px 16px 36px; }
  .page { padding: 32px 16px 40px; }
  .site-footer-inner { grid-template-columns: 1fr 1fr; padding: 32px 16px 20px; }
  .site-footer-brand { grid-column: 1 / -1; }
  .site-footer-note { padding: 14px 16px 24px; }
}
@media (max-width: 480px) {
  .prose h2 { font-size: 21px; }
  .prose table { font-size: 13px; }
  .prose th, .prose td { padding: 8px 10px; }
  .prose code { white-space: normal; }
}
@media print {
  .seo-content, .site-footer { display: none !important; }
}

/* ---------- Feedback and early access (shared/feedback.js) ---------- */
.so-primary, .so-secondary { font: 600 14px/1.2 Inter, "Segoe UI", system-ui, sans-serif; border-radius: 8px; padding: 11px 16px; cursor: pointer; border: 1px solid #0f6e74; background: #0f6e74; color: #fff; }
.so-primary:hover:not(:disabled) { background: #0a5459; }
.so-secondary { background: #fff; color: #1d3d47; border-color: #c5d6d7; }
.so-secondary:hover { background: #e8f3f2; border-color: #5b9ea1; }
.so-primary:disabled { opacity: .6; cursor: wait; }
.so-primary:focus-visible, .so-secondary:focus-visible, .so-fab:focus-visible, .mast-feedback:focus-visible, .so-close:focus-visible { outline: 2px solid #1a8389; outline-offset: 2px; }
.so-trap { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }

/* Floating button on wide screens; the header button on phones and tablets */
.so-fab { position: fixed; right: 20px; bottom: 20px; z-index: 55; font: 600 14px Inter, "Segoe UI", system-ui, sans-serif; color: #0b2a33; background: #f2a541; border: 0; border-radius: 99px; padding: 11px 18px 11px 16px; box-shadow: 0 8px 22px rgba(11, 42, 51, .22); cursor: pointer; display: inline-flex; align-items: center; gap: 8px; }
.so-fab::before { content: ""; width: 16px; height: 16px; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 12a8 8 0 0 1-11.6 7.1L4 20l1-4.6A8 8 0 1 1 21 12z'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 12a8 8 0 0 1-11.6 7.1L4 20l1-4.6A8 8 0 1 1 21 12z'/%3E%3C/svg%3E") center / contain no-repeat; }
.so-fab:hover { background: #f5b55e; }
.mast-feedback { display: none; font: 600 13px Inter, "Segoe UI", system-ui, sans-serif; color: #0b2a33; background: #f2a541; border: 0; border-radius: 99px; padding: 7px 14px; cursor: pointer; flex: none; }
@media (max-width: 1023px) {
  .so-fab { display: none; }
  .mast-feedback { display: inline-block; }
  .mast .privacy { display: none; }
}
@media print { .so-fab, .so-toast, .mast-feedback, .so-early { display: none !important; } }

/* Feedback window */
.so-dialog { width: min(520px, calc(100vw - 24px)); max-height: calc(100dvh - 24px); overflow-y: auto; border: 0; border-radius: 16px; padding: 26px 26px 22px; color: #0b2a33; background: #fff; box-shadow: 0 24px 60px rgba(11, 42, 51, .35); font: 14px/1.5 Inter, "Segoe UI", system-ui, sans-serif; }
.so-dialog::backdrop { background: rgba(11, 42, 51, .45); }
.so-dialog h2 { font-size: 22px; letter-spacing: -.4px; margin: 0 32px 6px 0; color: #0b2a33; }
.so-lead { margin: 0 0 18px; color: #3a4f57; font-size: 14px; line-height: 1.55; }
.so-close { position: absolute; top: 14px; right: 14px; width: 34px; height: 34px; border-radius: 50%; border: 0; background: #eef3f3; color: #3a4f57; font-size: 22px; line-height: 1; cursor: pointer; }
.so-close:hover { background: #e2ecec; }
.so-dialog { position: fixed; }
.so-form { display: grid; gap: 16px; }
.so-kinds { border: 0; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.so-kinds legend { margin-bottom: 8px; }
.so-kind input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.so-kind span { display: inline-block; padding: 8px 13px; border: 1px solid #c5d6d7; border-radius: 99px; font-size: 13px; font-weight: 600; color: #1d3d47; cursor: pointer; background: #fff; }
.so-kind input:checked + span { background: #0b2a33; border-color: #0b2a33; color: #fff; }
.so-kind input:focus-visible + span { outline: 2px solid #1a8389; outline-offset: 2px; }
.so-field { display: grid; gap: 4px; }
.so-label { font-size: 14px; font-weight: 650; color: #0b2a33; padding: 0; }
.so-hint { font-size: 12px; color: #56707a; line-height: 1.45; }
.so-dialog textarea, .so-dialog input[type=email], .so-early input[type=email], .so-early select, .so-nudge input[type=email] { width: 100%; box-sizing: border-box; font: 14px/1.45 Inter, "Segoe UI", system-ui, sans-serif; color: #1f3a44; background: #fff; border: 1px solid #b9cccd; border-radius: 8px; padding: 10px 11px; margin-top: 4px; }
.so-dialog textarea { resize: vertical; min-height: 110px; }
.so-dialog textarea:focus, .so-dialog input:focus, .so-early input:focus, .so-early select:focus, .so-nudge input:focus { outline: 2px solid #1a8389; outline-offset: 1px; }
.so-context { background: #f4f7f7; border-radius: 9px; padding: 10px 12px; }
.so-check { display: flex; gap: 8px; align-items: center; font-size: 13px; font-weight: 600; color: #1d3d47; }
.so-check input { accent-color: #0f6e74; margin: 0; }
.so-context-text { margin: 8px 0 0; white-space: pre-wrap; overflow-wrap: anywhere; font: 12px/1.5 ui-monospace, SFMono-Regular, Menlo, monospace; color: #3a4f57; max-height: 120px; overflow-y: auto; }
.so-error { margin: 0; padding: 10px 12px; border-radius: 8px; background: #fff0eb; color: #983d2b; font-size: 13px; }
.so-actions { display: flex; justify-content: flex-end; gap: 8px; flex-wrap: wrap; }
.so-actions.so-start { justify-content: flex-start; }
.so-done p { margin: 0 0 12px; color: #3a4f57; }
.so-done .so-done-title { font-size: 17px; font-weight: 650; color: #1c6b45; }

/* Short sign-up form inside the window and the toast */
.so-nudge { display: grid; gap: 8px; background: #fdf4e5; border: 1px solid #f3d7a6; border-radius: 11px; padding: 14px; margin: 4px 0 14px; }
.so-nudge p { margin: 0 !important; }
.so-nudge-title { font-weight: 700; color: #0b2a33 !important; font-size: 14px; }
.so-nudge-text { font-size: 13px; color: #3a4f57 !important; line-height: 1.5; }
.so-nudge input[type=email] { margin: 0; }
.so-signup-result { margin: 0 !important; font-size: 14px; font-weight: 600; color: #983d2b !important; }
.so-signup-result[data-ok=true] { color: #1c6b45 !important; }

/* "Was this useful?" */
.so-toast { position: fixed; right: 20px; bottom: 76px; z-index: 56; width: min(340px, calc(100vw - 24px)); background: #fff; border: 1px solid #d8e4e4; border-radius: 14px; padding: 16px 16px 14px; box-shadow: 0 14px 36px rgba(11, 42, 51, .22); font: 14px/1.5 Inter, "Segoe UI", system-ui, sans-serif; color: #0b2a33; }
.so-toast .so-close { top: 10px; right: 10px; width: 28px; height: 28px; font-size: 18px; }
.so-toast-title { font-weight: 650; font-size: 15px; margin: 0 30px 10px 0; color: #0b2a33; }
.so-toast .so-nudge { margin: 0; }
@media (max-width: 1023px) {
  .so-toast { left: 12px; right: 12px; width: auto; bottom: 12px; }
  body.has-action-bar .so-toast { bottom: 84px; }
}

/* Early-access band above the footer */
.so-early { background: #0b2a33; color: #e2f0ef; margin-top: 32px; }
.so-early + .site-footer { margin-top: 0; }
.so-early-inner { max-width: 1236px; margin: 0 auto; padding: 40px 28px; display: grid; grid-template-columns: 1.1fr 1fr; gap: 28px 48px; align-items: center; font: 14px/1.55 Inter, "Segoe UI", system-ui, sans-serif; }
.so-early-eyebrow { margin: 0 0 8px; font-size: 12px; font-weight: 700; letter-spacing: .8px; text-transform: uppercase; color: #f2a541; }
.so-early h2 { margin: 0 0 10px; font-size: clamp(22px, 2.4vw, 28px); line-height: 1.25; letter-spacing: -.5px; color: #fff; font-weight: 650; }
.so-early-copy p:last-child { margin: 0; color: #b9d6d6; font-size: 15px; }
.so-early-left { color: #f2a541; font-weight: 650; }
.so-early-form { display: grid; gap: 12px; background: #fff; color: #0b2a33; border-radius: 14px; padding: 20px; }
.so-early-fields { display: grid; grid-template-columns: 1.3fr 1fr; gap: 12px; }
.so-early-form label { display: grid; gap: 2px; font-size: 13px; font-weight: 650; color: #0b2a33; }
.so-early-form label small { font-weight: 400; color: #56707a; font-size: 12px; }
.so-early-form .so-primary { width: 100%; padding: 13px 16px; font-size: 15px; }
.so-early-note { margin: 0; font-size: 12px; color: #56707a; }
.so-early-note a { color: #0f6e74; }
@media (max-width: 900px) {
  .so-early-inner { grid-template-columns: 1fr; padding: 32px 16px; }
  .so-early-fields { grid-template-columns: 1fr; }
}
.so-dialog [hidden], .so-toast [hidden], .so-early [hidden], .so-nudge[hidden] { display: none !important; }
.so-toast-text { margin: 0; font-size: 13px; color: #3a4f57; }

/* Early-access bar above the header, and the header buttons (site/build.mjs) */
.so-bar { display: flex; align-items: stretch; background: #f2a541; color: #0b2a33; font: 14px/1.35 Inter, "Segoe UI", system-ui, sans-serif; }
.so-bar-off .so-bar { display: none; }
.so-bar-link { flex: 1; min-width: 0; border: 0; background: none; color: inherit; font: inherit; cursor: pointer; padding: 9px 12px 9px 48px; text-align: center; }
.so-bar-link:hover .so-bar-cta { text-decoration: underline; }
.so-bar-link:focus-visible, .so-bar-close:focus-visible { outline: 2px solid #0b2a33; outline-offset: -3px; }
.so-bar-cta { font-weight: 700; white-space: nowrap; }
.so-bar-close { flex: none; width: 44px; border: 0; background: none; color: #0b2a33; font-size: 20px; line-height: 1; cursor: pointer; opacity: .7; }
.so-bar-close:hover { opacity: 1; }
.mast .privacy { margin-left: auto; }
.mast-actions { display: flex; gap: 8px; align-items: center; flex: none; }
.mast-early { font: 600 13px Inter, "Segoe UI", system-ui, sans-serif; color: #f2a541; background: transparent; border: 1.5px solid #f2a541; border-radius: 99px; padding: 6px 14px; cursor: pointer; white-space: nowrap; }
.mast-early::before { content: "★ "; }
.mast-early:hover { background: rgba(242, 165, 65, .14); }
.mast-early:focus-visible { outline: 2px solid #8fd3d3; outline-offset: 2px; }
@media (max-width: 600px) {
  .so-bar { font-size: 13px; }
  .so-bar-link { padding: 8px 6px 8px 44px; text-align: center; }  /* left padding matches the × button, so the text sits in the true centre */
  .mast .brand > span { display: none; }  /* the page's heading names the tool; the header needs the room */
  .mast-early, .mast-feedback { padding: 6px 11px; font-size: 12px; }
  .mast-early::before { content: "★ "; }
}
@media print { .so-bar, .mast-actions { display: none !important; } }

/* Sign-up pop-up */
.so-eyebrow { margin: 0 0 6px; font-size: 12px; font-weight: 700; letter-spacing: .8px; text-transform: uppercase; color: #b06d12; }
.so-spots { color: #0b2a33; }
.so-signup-dialog select { width: 100%; box-sizing: border-box; font: 14px/1.45 Inter, "Segoe UI", system-ui, sans-serif; color: #1f3a44; background: #fff; border: 1px solid #b9cccd; border-radius: 8px; padding: 10px 11px; margin-top: 4px; }
.so-signup-dialog select:focus { outline: 2px solid #1a8389; outline-offset: 1px; }
.so-signup-dialog .so-hint a { color: #0f6e74; }
.so-wide { width: 100%; padding: 13px 16px; font-size: 15px; }
.so-signup-dialog .so-signup-result { font-size: 15px; }
/* Tool pages make buttons flex boxes, which drops spaces between words: keep these as plain blocks */
.so-bar-link { display: block; }
.mast-early, .mast-feedback, .so-primary, .so-secondary { display: inline-block; }
.mast-early::before { content: "★"; margin-right: 5px; }
@media (max-width: 1023px) { .mast-feedback { display: inline-block; } }
@media (min-width: 1024px) { .mast-feedback { display: none; } }
.so-wide { display: block; }
