/* TechNewsLive: a product-grade converter site. IBM Plex, one signal red, dark tool hero, colour-coded file icons. */
:root {
  --bg: #f5f6f8;
  --bg-soft: #eef0f3;
  --bg-card: #ffffff;
  --ink: #14161c;
  --ink-2: #353a45;
  --muted: #69707d;
  --line: #e3e6eb;
  --line-2: #cdd2da;
  --band: #14161c;
  --band-2: #1d2029;
  --radius: 14px;
  --radius-sm: 9px;
  --shadow: 0 1px 2px rgba(20, 22, 28, .06), 0 10px 30px -12px rgba(20, 22, 28, .18);
  --font-head: "IBM Plex Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-body: var(--font-head);
  --font-ui: var(--font-head);
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --head-weight: 700;
  --wrap: 1180px;
  --prose: 740px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1115;
    --bg-soft: #171a20;
    --bg-card: #171a21;
    --ink: #eceef2;
    --ink-2: #c9cdd5;
    --muted: #949aa6;
    --line: #262a33;
    --line-2: #363b47;
    --band: #0a0b0e;
    --band-2: #14161b;
    --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 12px 32px -12px rgba(0, 0, 0, .6);
  }
}
body { font-size: 16.5px; }
h1 { letter-spacing: -.025em; }
h2 { letter-spacing: -.015em; }
.fi { display: block; flex: none; }
.fi-pair { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); }
.fi-arrow { flex: none; }

/* header */
.site-header { background: var(--bg-card); border-bottom: 1px solid var(--line); }
.header-row { min-height: 64px; }
.wordmark { flex-direction: row; align-items: center; }
.wm-name { font-size: 1.32rem; font-weight: 700; letter-spacing: -.03em; display: inline-flex; align-items: center; }
.wm-name b { background: var(--accent); color: #fff; font-size: .58em; letter-spacing: .08em; text-transform: uppercase; padding: 3px 6px 2px; border-radius: 5px; margin-left: 5px; position: relative; top: -1px; }
.wm-name b::before { content: ""; display: inline-block; width: 5px; height: 5px; border-radius: 50%; background: #fff; margin-right: 4px; vertical-align: 2px; animation: livepulse 2.4s ease-in-out infinite; }
@keyframes livepulse { 50% { opacity: .35; } }
.wm-tag { display: none; }
.site-nav ul { gap: 4px; }
.site-nav a { padding: 8px 12px; border-radius: 8px; border-bottom: 0; font-weight: 600; font-size: .94rem; color: var(--ink-2); }
.site-nav a:hover, .site-nav a[aria-current="page"] { background: var(--bg-soft); color: var(--ink); }
.has-mega { position: relative; }
.has-mega > a::after { content: ""; display: inline-block; width: 6px; height: 6px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); margin-left: 8px; vertical-align: 3px; opacity: .6; }
.mega { display: none; position: absolute; left: -12px; top: 100%; padding-top: 10px; z-index: 60; }
.mega-in { background: var(--bg-card); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); padding: 14px; min-width: 300px; }
.mega-h { margin: 2px 8px 8px; font-size: .74rem; text-transform: uppercase; letter-spacing: .08em; font-weight: 700; }
.mega-h a { color: var(--muted); text-decoration: none; padding: 0; }
.mega ul { display: grid; grid-template-columns: 1fr 1fr; gap: 2px 10px; }
.mega li a { display: flex; align-items: center; gap: 10px; padding: 7px 8px; font-size: .9rem; font-weight: 500; white-space: nowrap; }
.mega li a .fi-pair { gap: 3px; }
.mega li a .fi-arrow { width: 10px; }
@media (min-width: 861px) { .has-mega:hover > .mega, .has-mega:focus-within > .mega { display: block; } }
@media (max-width: 860px) {
  .site-nav a { border-radius: 0; padding: 12px 0; border-bottom: 1px solid var(--line); }
  .site-nav a:hover, .site-nav a[aria-current="page"] { background: none; color: var(--accent); }
  .has-mega > a::after { display: none; }
}

/* breadcrumbs */
.crumbs ol { font-size: .84rem; }

/* converter hero (full-bleed dark band) */
.type-tool main { padding-top: 0; }
.tool-hero { margin: 0 calc(50% - 50vw); padding: 0 calc(50vw - 50%) 96px; background-color: var(--band); background-image: radial-gradient(rgba(255, 255, 255, .07) 1px, transparent 1px); background-size: 22px 22px; color: #e9ebf0; }
.tool-hero-in { max-width: 820px; margin: 0 auto; text-align: center; padding-top: 6px; }
.tool-hero .crumbs ol { justify-content: center; color: #8d94a3; margin-top: 14px; }
.tool-hero .crumbs a { color: #aab0bd; }
.tool-hero .crumbs li + li::before { color: #555b68; }
.tool-hero .fi-pair { margin: 26px 0 14px; color: #8d94a3; gap: 12px; }
.tool-hero h1 { color: #fff; font-size: clamp(2rem, 1.4rem + 2.4vw, 3rem); margin-bottom: .25em; }
.tool-hero .lead { color: #c3c8d2; margin: 0 auto; font-size: 1.1rem; }
.ticks { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 22px; padding: 0; margin: 18px 0 0; font-size: .92rem; font-weight: 500; color: #dfe2e8; }
.ticks li::before { content: ""; display: inline-block; width: 12px; height: 7px; border-left: 2px solid #4ade80; border-bottom: 2px solid #4ade80; transform: rotate(-45deg); margin-right: 9px; vertical-align: 3px; }
.tool-stage { position: relative; margin-top: -64px; }
.tool-stage > .tool { border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); padding: 26px; background: var(--bg-card); }
.tool-stage > .prose, .type-tool .faq, .type-tool .reviewed { margin-left: auto; margin-right: auto; }
.tool-stage > .prose { margin-top: 44px; }
@media (max-width: 640px) { .tool-hero { padding-bottom: 80px; } .tool-stage > .tool { padding: 16px; border-radius: 14px; } .tool-hero .fi-pair svg.fi { width: 36px; height: 43px; } }

/* dropzone + file tools */
.dropzone { border: 2px dashed var(--line-2); border-radius: 14px; background: var(--bg-soft); padding: 40px 20px; min-height: 210px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; }
.dropzone:hover, .dropzone.drag { border-color: var(--accent); background: var(--accent-soft); }
.dropzone .dz-title { font-size: 1.15rem; }
.dropzone .btn, .dz-btn { min-height: 52px; padding: 12px 30px; font-size: 1.05rem; border-radius: 11px; margin: 6px 0 4px; pointer-events: none; }
.privacy-line { color: var(--good); }
.options { background: var(--bg-soft); border-radius: 12px; padding: 14px 16px; }
.file-item { border-radius: 12px; padding: 12px; }
.file-item .thumb { border-radius: 8px; }
.file-item .meta { font-family: var(--mono); font-size: .78rem; }

/* controls */
.btn { border-radius: 10px; font-weight: 600; }
.btn-primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn-primary:hover { filter: brightness(1.07); color: #fff; }
.input-group, input[type="text"], input[type="number"], select, textarea { border-radius: 10px; }
.result { border-radius: 12px; }
.result-main .value { font-family: var(--mono); font-weight: 600; letter-spacing: -.02em; }

/* tool cards + filter */
.cards { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.card { background: var(--bg-card); border: 1px solid var(--line); border-radius: 14px; padding: 18px; gap: 6px; transition: border-color .15s, box-shadow .15s, transform .15s; }
.card:hover { border-color: var(--line-2); box-shadow: var(--shadow); transform: translateY(-2px); }
.card-icon { margin-bottom: 8px; }
.card.has-icon .card-kicker { display: none; }
.card-title { font-size: 1.05rem; font-weight: 700; }
.card-text { font-size: .9rem; }
.tool-filter { display: flex; flex-wrap: wrap; gap: 8px; margin: 6px 0 18px; }
.tool-filter button { font: 600 .9rem var(--font-ui); border: 1px solid var(--line-2); background: var(--bg-card); color: var(--ink-2); border-radius: 999px; padding: 8px 14px; cursor: pointer; min-height: 40px; }
.tool-filter button span { font-family: var(--mono); font-size: .78rem; color: var(--muted); margin-left: 3px; }
.tool-filter button[aria-pressed="true"] { background: var(--ink); color: var(--bg-card); border-color: var(--ink); }
.tool-filter button[aria-pressed="true"] span { color: inherit; opacity: .7; }
.card[hidden] { display: none; }

/* articles */
.type-post, .type-guide { --bg: #ffffff; }
@media (prefers-color-scheme: dark) { .type-post, .type-guide { --bg: #111318; } }
.type-post .article, .type-guide .article { margin: 0 auto; }
.type-post .crumbs ol, .type-guide .crumbs ol { justify-content: center; }
.article .page-head { text-align: left; }
.prose { font-size: 1.08rem; line-height: 1.75; color: var(--ink-2); }
.prose h2 { font-size: 1.5rem; }
.prose a { text-decoration-color: color-mix(in srgb, var(--accent) 45%, transparent); text-decoration-thickness: 1.5px; }
.note, .tip, .warn, .example, .formula { border-radius: 12px; }
.note { background: var(--bg-soft); border: 1px solid var(--line); }
.table-wrap { border-radius: 12px; background: var(--bg-card); }
.disclosure { border-radius: 10px; }
.post-list a { border-radius: 12px; }
.faq details { border-radius: 12px; }
.reviewed { border-radius: 12px; }
.related h2 { font-size: 1.3rem; }

/* section hub pages */
.type-section .page-head { margin-top: 26px; }

/* footer */
.site-footer { background: var(--band); color: #b9bfca; border-top: 0; padding-top: 44px; }
.site-footer a, .site-footer .footer-about p { color: #d5d9e0; }
.site-footer h2 { color: #7d8492; }
.site-footer .wordmark { color: #fff; }
.site-footer .muted { color: #9aa1ae; }
.footer-legal { border-top-color: #2a2e38; color: #8d94a3; }
.footer-grid { grid-template-columns: 1.6fr repeat(5, minmax(0, 1fr)); }
@media (max-width: 980px) { .footer-grid { grid-template-columns: 1fr 1fr 1fr; } .footer-about { grid-column: 1 / -1; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr 1fr; } }

/* home */
.is-home main { padding-top: 0; }
.home-hero { margin: 0 calc(50% - 50vw); padding: 56px calc(50vw - 50%) 64px; background-color: var(--band); background-image: radial-gradient(rgba(255, 255, 255, .07) 1px, transparent 1px); background-size: 22px 22px; color: #e9ebf0; }
.home-hero-in { max-width: 860px; margin: 0 auto; text-align: center; }
.home-hero h1 { color: #fff; font-size: clamp(2.1rem, 1.4rem + 3vw, 3.5rem); line-height: 1.07; margin-bottom: .3em; }
.home-hero p.dek { color: #c3c8d2; font-size: 1.15rem; max-width: 680px; margin: 0 auto; }
.home-hero .fi-row { display: flex; justify-content: center; gap: 10px; margin-bottom: 26px; flex-wrap: wrap; }
.pair-picker { display: inline-flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px; margin-top: 28px; padding: 10px; background: var(--band-2); border: 1px solid #2c303b; border-radius: 16px; }
.pair-picker label { color: #c3c8d2; font-weight: 600; font-size: .95rem; padding-left: 8px; }
.pair-picker select { width: auto; min-width: 132px; background-color: #fff; color: #14161c; border-color: #fff; font-weight: 600; }
.pair-picker .btn { min-height: 46px; padding: 10px 24px; }
.home-hero .ticks { margin-top: 22px; }
.home-section { margin-top: 52px; }
.home-section > h2 { font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); margin-bottom: .2em; }
.home-section > .sub { color: var(--muted); margin: 0 0 14px; max-width: 680px; }
.compare { width: 100%; }
.compare th, .compare td { padding: 13px 16px; }
.compare tbody th { font-weight: 600; color: var(--ink); width: 30%; }
.compare td.us { color: var(--ink); font-weight: 600; background: color-mix(in srgb, #4ade80 9%, transparent); }
.compare thead th.us { color: var(--accent); }
.post-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 14px; }
.post-card { display: flex; flex-direction: column; gap: 6px; padding: 18px; border: 1px solid var(--line); border-radius: 14px; background: var(--bg-card); text-decoration: none; color: var(--ink); transition: box-shadow .15s, border-color .15s; }
.post-card:hover { box-shadow: var(--shadow); border-color: var(--line-2); }
.pc-kicker { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--accent); }
.pc-title { font-weight: 700; font-size: 1.07rem; line-height: 1.3; }
.pc-desc { color: var(--muted); font-size: .92rem; flex: 1; }
.pc-meta { font-family: var(--mono); font-size: .76rem; color: var(--muted); }
.hb-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.hb-head a { font-weight: 600; text-decoration: none; }
.read-links { columns: 2 260px; padding: 0; list-style: none; }
.read-links li { break-inside: avoid; padding: 6px 0; border-bottom: 1px solid var(--line); }
.read-links a { text-decoration: none; color: var(--ink); font-weight: 500; }
.read-links a:hover { color: var(--accent); }

.is-home .home-hero { padding-bottom: 104px; }
.home-stage { margin-top: -72px; }
.pair-picker.pair-light { background: var(--bg-card); border-color: var(--line); margin: 4px 0 20px; }
.pair-picker.pair-light label { color: var(--ink-2); }
.pair-picker.pair-light select { border-color: var(--line-2); background-color: var(--bg); color: var(--ink); }
