/* WebCanary public site styles. Colors come from CSS variables set in the dashboard. */
:root {
  --primary: #026AA8; --primary-dark: #014E7C; --sky: #36B4E1; --sky-soft: #E3F3FB;
  --accent: #F97D23; --ink: #1F2A33; --muted: #4A5A68; --faint: #5B7183;
  --bg: #F3F9FD; --card: #FFFFFF; --line: #DCEBF5; --line-strong: #CFE6F4; --footer: #10324A;
  --ok-bg: #E7F6EC; --ok: #1D6B3A; --err-bg: #FDECEA; --err: #8A2A1F;
  --radius: 14px; --font: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--bg); font-size: 16px; line-height: 1.6; }
img { max-width: 100%; height: auto; }
a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-dark); text-decoration: underline; }
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .5em; letter-spacing: -0.02em; }
h1 { font-size: clamp(30px, 4.4vw, 46px); font-weight: 800; }
h2 { font-size: clamp(22px, 2.6vw, 28px); font-weight: 800; }
h3 { font-size: 19px; font-weight: 700; }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--card); padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--sky); outline-offset: 2px; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 820px; }
.center { text-align: center; }
.muted { color: var(--muted); }
.section { padding-top: 36px; padding-bottom: 8px; }
.lead { font-size: 18px; color: var(--muted); margin: 0 0 1rem; max-width: 720px; }
.center .lead { margin-left: auto; margin-right: auto; }

/* Header */
.site-header { background: var(--card); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 30; }
.header-row { display: flex; align-items: center; gap: 14px 24px; min-height: 68px; flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none !important; }
.brand img { width: 46px; height: 37px; }
.wordmark { font-family: 'Fredoka', var(--font); font-weight: 600; font-size: 27px; letter-spacing: -0.5px; line-height: 1; color: var(--ink); }
.wordmark .tld { color: var(--accent); }
.brand-light .wordmark { color: #fff; }
.main-nav { display: flex; flex-wrap: wrap; gap: 4px 18px; flex: 1 1 auto; font-weight: 600; font-size: 15px; }
.main-nav a { color: var(--ink); padding: 6px 0; }
.main-nav a.nav-all { color: var(--primary); }
.header-search { display: flex; align-items: center; border: 1px solid var(--line-strong); border-radius: 12px; background: var(--card); overflow: hidden; }
.header-search input { border: 0; height: 42px; padding: 0 12px; font: inherit; font-size: 15px; width: 170px; background: transparent; color: var(--ink); }
.header-search input:focus { outline: none; }
.header-search button { border: 0; background: transparent; width: 44px; height: 42px; color: var(--ink); cursor: pointer; display: grid; place-items: center; }
.nav-toggle { display: none; margin-left: auto; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); color: var(--ink); cursor: pointer; place-items: center; }
@media (max-width: 960px) {
  .nav-toggle { display: grid; }
  .main-nav { display: none; order: 5; flex-basis: 100%; flex-direction: column; padding: 4px 0 14px; }
  .main-nav.open { display: flex; }
  .header-search { order: 4; flex: 1 1 100%; margin-bottom: 12px; }
  .header-search input { width: 100%; flex: 1; }
}

/* Hero */
.hero { background: var(--card); border-bottom: 1px solid var(--line); }
.hero-row { display: flex; flex-wrap: wrap; align-items: center; gap: 32px; padding-top: 52px; padding-bottom: 48px; }
.hero-copy { flex: 999 1 560px; min-width: 0; }
.hero-art { flex: 1 1 260px; display: flex; justify-content: center; }
.hero-circle { width: 280px; height: 280px; border-radius: 50%; background: var(--sky-soft); display: grid; place-items: center; }
.hero-circle img { width: 200px; height: 163px; }
.badge { display: inline-block; background: var(--sky-soft); color: var(--primary-dark); font-size: 13px; font-weight: 700; padding: 6px 12px; border-radius: 999px; margin-bottom: 14px; }
@media (max-width: 700px) { .hero-art { display: none; } .hero-row { padding-top: 32px; padding-bottom: 32px; } }

/* Search */
.big-search { display: flex; flex-wrap: wrap; gap: 10px; max-width: 640px; margin: 8px 0 16px; }
.center .big-search { margin-left: auto; margin-right: auto; }
.big-search-field { flex: 1 1 300px; position: relative; min-width: 0; }
.big-search input { width: 100%; height: 56px; padding: 0 18px; font: inherit; font-size: 16px; border: 2px solid var(--line-strong); border-radius: var(--radius); background: var(--card); color: var(--ink); }
.big-search input:focus { border-color: var(--sky); outline: none; }
.suggest { position: absolute; left: 0; right: 0; top: 60px; margin: 0; padding: 6px; list-style: none; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 12px 32px rgba(16, 50, 74, .12); z-index: 20; }
.suggest a { display: flex; justify-content: space-between; gap: 12px; padding: 10px 12px; border-radius: 10px; color: var(--ink); text-decoration: none; }
.suggest a span { color: var(--faint); font-size: 13px; }
.suggest a:hover, .suggest a.active { background: var(--sky-soft); }
.chips { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 14px; }
.chips-label { color: var(--muted); font-weight: 600; }
.chip { padding: 6px 12px; border-radius: 999px; background: var(--bg); border: 1px solid var(--line); color: var(--ink); font-weight: 600; }
.chip:hover { border-color: var(--sky); text-decoration: none; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 20px; border-radius: 12px; border: 1.5px solid var(--line-strong); background: var(--card); color: var(--ink); font: inherit; font-size: 15px; font-weight: 700; cursor: pointer; text-decoration: none !important; }
.btn:hover { border-color: var(--sky); }
.btn-primary { background: var(--primary); border-color: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); border-color: var(--primary-dark); color: #fff; }
.btn-lg { min-height: 56px; padding: 0 28px; font-size: 16px; border-radius: var(--radius); }
.btn-sm { min-height: 36px; padding: 0 14px; font-size: 14px; }
.btn:disabled { opacity: .55; cursor: not-allowed; }

/* Sections, cards */
.section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 8px; margin-bottom: 16px; }
.section-head h2 { margin: 0; }
.more { font-weight: 700; display: inline-flex; align-items: center; gap: 6px; }
.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.cat-grid-sm { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.cat-card { display: flex; gap: 14px; padding: 18px; background: var(--card); border: 1px solid var(--line); border-radius: 16px; color: var(--ink); }
.cat-card:hover { border-color: var(--sky); text-decoration: none; box-shadow: 0 6px 20px rgba(16, 50, 74, .06); }
.cat-icon { flex: none; width: 48px; height: 48px; border-radius: 12px; background: var(--sky-soft); color: var(--primary); display: grid; place-items: center; }
.cat-icon-lg { width: 64px; height: 64px; border-radius: 16px; }
.cat-text { display: flex; flex-direction: column; gap: 3px; }
.cat-text strong { font-size: 17px; }
.cat-text span { font-size: 14px; color: var(--muted); line-height: 1.5; }
.cat-text em { font-style: normal; font-size: 13px; font-weight: 700; color: var(--primary); }
.cat-head { display: flex; gap: 18px; align-items: center; }
.cat-head h1 { margin-bottom: 4px; }
.cat-head .lead { margin: 0; }
.cat-intro { margin-top: 16px; }
.tool-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; }
.tool-card { display: flex; align-items: center; gap: 14px; padding: 16px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); color: var(--ink); height: 100%; }
.tool-card:hover { border-color: var(--sky); text-decoration: none; }
.tool-card-icon { flex: none; width: 40px; height: 40px; border-radius: 10px; background: var(--sky-soft); color: var(--primary); display: grid; place-items: center; }
.tool-card-text { flex: 1; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.tool-card-text strong { font-size: 16px; }
.tool-card-text span { font-size: 13.5px; color: var(--muted); line-height: 1.45; }
.tool-card-arrow { color: var(--primary); flex: none; }
.why-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; padding-bottom: 40px; }
.why { padding: 22px; border-radius: 16px; background: var(--card); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 6px; color: var(--muted); }
.why .icon { color: var(--primary); }
.why strong { color: var(--ink); font-size: 18px; }
.page-head { padding-top: 28px; }
.crumbs { display: flex; flex-wrap: wrap; gap: 6px; font-size: 14px; color: var(--muted); margin-bottom: 10px; }
.filter-box input { width: 100%; max-width: 520px; height: 50px; padding: 0 16px; font: inherit; border: 2px solid var(--line-strong); border-radius: var(--radius); background: var(--card); }
.az-group { margin-bottom: 28px; }
.empty { padding: 22px; background: var(--card); border: 1px dashed var(--line-strong); border-radius: var(--radius); color: var(--muted); }

/* Tool page */
.tool-layout { display: flex; flex-wrap: wrap; gap: 28px; align-items: flex-start; padding-top: 22px; padding-bottom: 48px; }
.tool-main { flex: 999 1 640px; min-width: 0; }
.tool-side { flex: 1 1 300px; min-width: 300px; display: flex; flex-direction: column; gap: 18px; position: sticky; top: 88px; }
@media (max-width: 960px) { .tool-side { position: static; min-width: 0; } }
.tool-head h1 { margin-bottom: 10px; }
.tool-intro, .tool-intro p { font-size: 17px; color: var(--muted); margin: 0 0 6px; max-width: 760px; }
.tool-box { background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: clamp(18px, 3vw, 28px); margin: 22px 0 8px; }
.side-box { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 18px 20px; display: flex; flex-direction: column; }
.side-box h2 { font-size: 17px; margin-bottom: 6px; }
.side-box a { padding: 9px 0; border-bottom: 1px solid #EEF5FA; font-weight: 600; color: var(--ink); }
.side-box a:last-child { border-bottom: 0; }
.side-box a:hover { color: var(--primary); text-decoration: none; }
.side-box .side-more { color: var(--primary); display: inline-flex; align-items: center; gap: 4px; }
.preview-bar { background: #FFF4E5; color: #6B3A06; text-align: center; padding: 10px; font-weight: 600; font-size: 14px; }

/* Article text */
.prose { font-size: 16.5px; line-height: 1.75; color: #33424F; }
.prose h2 { margin-top: 1.8em; color: var(--ink); }
.prose h3 { margin-top: 1.4em; color: var(--ink); }
.prose p { margin: 0 0 1em; }
.prose p, .prose li, .prose .callout { overflow-wrap: anywhere; }
.prose ul, .prose ol { padding-left: 1.4em; margin: 0 0 1em; }
.prose li { margin-bottom: .35em; }
.prose code { font-family: var(--mono); font-size: .9em; background: var(--sky-soft); color: var(--primary-dark); padding: 2px 6px; border-radius: 6px; }
.prose .table-wrap { overflow-x: auto; margin: 0 0 1em; }
.prose table { border-collapse: collapse; width: 100%; font-size: 15px; background: var(--card); }
.prose th, .prose td { border: 1px solid var(--line); padding: 8px 12px; text-align: left; }
.prose th { background: var(--sky-soft); color: var(--ink); }
.callout { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 20px; margin: 0 0 1em; }
.callout > :last-child { margin-bottom: 0; }
.steps li::marker { color: var(--primary); font-weight: 800; }
.faqs { display: flex; flex-direction: column; gap: 10px; }
.faq { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 18px; }
.faq summary { cursor: pointer; font-weight: 700; color: var(--ink); }
.faq[open] summary { margin-bottom: 8px; }
.faq div > :last-child { margin-bottom: 0; }
.updated { font-size: 13px; color: var(--faint); margin-top: 24px; }
.notice { padding: 12px 16px; border-radius: 12px; margin: 0 0 16px; }
.notice-ok { background: var(--ok-bg); color: var(--ok); }
.notice-error { background: var(--err-bg); color: var(--err); }
.contact-form { margin-top: 16px; display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.contact-form .w-grid, .contact-form .w-field { width: 100%; }
.hp { position: absolute; left: -9999px; }

/* Ads: banners keep their shape and shrink to fit narrow screens. */
.ad-row { margin: 18px auto; }
.ad-gap { margin: 26px 0; }
.ad { text-align: center; position: relative; overflow: hidden; }
.ad-label { display: block; font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--faint); margin-bottom: 4px; }
.ad-body { display: flex; justify-content: center; line-height: 0; }
.ad-body a { display: inline-block; max-width: 100%; line-height: 0; }
.ad-body img { max-width: 100%; height: auto; }
.ad-body iframe, .ad-body ins { max-width: 100%; }
.side-ad .ad-body { justify-content: center; }
/* Page with a sidebar for one tall ad (homepage, categories, info pages). */
.with-side { display: flex; flex-wrap: wrap; gap: 28px; align-items: flex-start; }
.with-side-main { flex: 999 1 640px; min-width: 0; }
.with-side-aside { flex: 1 1 300px; min-width: 0; max-width: 340px; position: sticky; top: 88px; margin: 0 auto; }
.narrow-main { max-width: 820px; }
@media (max-width: 960px) { .with-side-aside { position: static; max-width: none; } }
.footer-note { font-size: 12.5px; color: #A9C3D6; margin: 0 auto; padding-bottom: 14px; }
@media (max-width: 760px) { .ad-no-mobile { display: none !important; } }
@media (min-width: 761px) { .ad-no-desktop { display: none !important; } }

/* Footer, cookie */
.site-footer { background: var(--footer); color: #D6E6F1; margin-top: 48px; }
.footer-cols { display: flex; flex-wrap: wrap; gap: 28px 64px; padding-top: 44px; padding-bottom: 24px; }
.footer-cols > div { display: flex; flex-direction: column; gap: 8px; font-size: 14px; }
.footer-brand { flex: 1 1 280px; }
.footer-brand p { max-width: 320px; margin: 6px 0 0; }
.site-footer h2 { font-size: 15px; color: #fff; margin: 0 0 4px; letter-spacing: 0; }
.site-footer a { color: #D6E6F1; }
.site-footer a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid #24506F; padding-top: 18px; padding-bottom: 26px; font-size: 13px; color: #A9C3D6; }
.cookie { position: fixed; left: 16px; right: 16px; bottom: 16px; max-width: 560px; margin: 0 auto; background: var(--card); border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 12px 40px rgba(16, 50, 74, .18); padding: 14px 16px; display: flex; gap: 14px; align-items: center; z-index: 50; font-size: 14px; }
.cookie[hidden] { display: none; }
.cookie p { margin: 0; flex: 1; }

/* ---------- Tool widget kit (shared by every tool) ---------- */
.w-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 14px 16px; }
.w-grid-3 { grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }
.w-field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.w-field > label, .w-label { font-size: 14px; font-weight: 700; color: var(--ink); }
.w-field input, .w-field select, .w-field textarea, .w-input {
  width: 100%; min-height: 48px; padding: 10px 14px; font: inherit; font-size: 16px; color: var(--ink);
  border: 2px solid var(--line-strong); border-radius: 12px; background: var(--card);
}
.w-field textarea { min-height: 140px; line-height: 1.55; resize: vertical; }
.w-field input:focus, .w-field select:focus, .w-field textarea:focus, .w-input:focus { border-color: var(--sky); outline: none; }
.w-field .w-hint { font-size: 13px; color: var(--faint); }
.w-mono, .w-field textarea.w-mono { font-family: var(--mono); font-size: 14px; }
.w-inline { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.w-inline .w-input { max-width: 150px; }
/* A slider sits on its own row under its number box. */
.w-inline > input[type=range] { order: 2; flex: 1 1 100%; }
.w-inline > input[type=range] ~ .w-input { max-width: none; flex: 1 1 100%; }
.w-unit { position: relative; }
.w-unit input { padding-right: 52px; }
.w-unit span { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); color: var(--faint); font-weight: 600; font-size: 14px; pointer-events: none; }
input[type=range] { accent-color: var(--primary); height: 28px; width: 100%; }
.w-btns { display: flex; flex-wrap: wrap; gap: 10px; margin: 16px 0 4px; }
.w-seg { display: inline-flex; flex-wrap: wrap; gap: 4px; background: var(--bg); border: 1px solid var(--line); border-radius: 12px; padding: 4px; }
.w-seg button { min-height: 40px; padding: 0 14px; border: 0; border-radius: 9px; background: transparent; font: inherit; font-size: 14px; font-weight: 700; color: var(--muted); cursor: pointer; }
.w-seg button[aria-pressed=true] { background: var(--card); color: var(--primary); box-shadow: 0 1px 3px rgba(16, 50, 74, .12); }
.w-check { display: flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 600; min-height: 32px; cursor: pointer; }
.w-check input { width: 20px; height: 20px; accent-color: var(--primary); }
.w-result { background: var(--sky-soft); border-radius: 16px; padding: 20px; text-align: center; margin-top: 18px; }
.w-result .w-big { display: block; font-size: clamp(26px, 4vw, 34px); font-weight: 800; color: var(--primary-dark); line-height: 1.2; word-break: break-word; }
.w-result .w-cap { display: block; font-size: 13px; font-weight: 700; color: #33627F; letter-spacing: .04em; text-transform: uppercase; margin-top: 4px; }
.w-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; margin-top: 12px; }
.w-stat { border: 1px solid var(--line); border-radius: 14px; padding: 14px; text-align: center; background: var(--card); }
.w-stat b { display: block; font-size: 20px; word-break: break-word; }
.w-stat span { font-size: 13px; color: var(--muted); }
.w-note { font-size: 14px; color: var(--muted); margin: 12px 0 0; }
.w-error { background: var(--err-bg); color: var(--err); border-radius: 12px; padding: 10px 14px; font-size: 14px; margin-top: 12px; }
.w-error[hidden], .w-hide { display: none !important; }
.w-ok { background: var(--ok-bg); color: var(--ok); border-radius: 12px; padding: 10px 14px; font-size: 14px; margin-top: 12px; }
.w-bar { display: flex; height: 14px; border-radius: 999px; overflow: hidden; background: var(--line); margin-top: 14px; }
.w-bar i { display: block; height: 100%; }
.w-bar .b1 { background: var(--primary); }
.w-bar .b2 { background: var(--accent); }
.w-legend { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 14px; color: var(--muted); margin-top: 8px; }
.w-legend i { display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
.w-table-wrap { overflow-x: auto; margin-top: 16px; border: 1px solid var(--line); border-radius: 12px; max-height: 420px; }
.w-table { border-collapse: collapse; width: 100%; font-size: 14px; background: var(--card); }
.w-table th, .w-table td { padding: 9px 12px; text-align: right; border-bottom: 1px solid #EEF5FA; white-space: nowrap; }
.w-table th { position: sticky; top: 0; background: var(--sky-soft); font-weight: 700; }
.w-table td:first-child, .w-table th:first-child { text-align: left; }
.w-drop { display: block; border: 2px dashed var(--line-strong); border-radius: 16px; padding: 30px 18px; text-align: center; background: var(--bg); cursor: pointer; color: var(--muted); }
.w-drop.over { border-color: var(--primary); background: var(--sky-soft); }
.w-drop strong { color: var(--ink); display: block; font-size: 17px; margin-bottom: 4px; }
.w-files { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; margin-top: 16px; }
.w-file { border: 1px solid var(--line); border-radius: 14px; padding: 10px; background: var(--card); display: flex; flex-direction: column; gap: 6px; font-size: 13px; }
.w-file img { width: 100%; height: 130px; object-fit: contain; background: var(--bg); border-radius: 8px; }
.w-file .w-name { font-weight: 700; word-break: break-all; }
.w-file .w-meta { color: var(--muted); }
.w-good { color: var(--ok); font-weight: 700; }
.w-out { position: relative; }
.w-copy { position: absolute; top: 8px; right: 8px; }
.w-kv { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; font-size: 15px; margin-top: 14px; }
.w-kv dt { color: var(--muted); }
.w-kv dd { margin: 0; font-weight: 700; text-align: right; }
.w-compare { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; margin-top: 16px; }
.w-card { border: 1px solid var(--line); border-radius: 16px; padding: 16px; background: var(--card); }
.w-card.win { border: 2px solid var(--primary); }
.w-card h3 { font-size: 16px; margin-bottom: 8px; }
.w-tag { display: inline-block; background: var(--sky-soft); color: var(--primary-dark); font-size: 12px; font-weight: 700; padding: 3px 8px; border-radius: 999px; }
