@font-face{font-family:"Playfair Display";font-style:normal;font-weight:500;font-display:swap;src:url(/assets/fonts/playfair-display-latin-500-normal.woff2) format("woff2")}
@font-face{font-family:"Playfair Display";font-style:normal;font-weight:600;font-display:swap;src:url(/assets/fonts/playfair-display-latin-600-normal.woff2) format("woff2")}
@font-face{font-family:"Playfair Display";font-style:italic;font-weight:500;font-display:swap;src:url(/assets/fonts/playfair-display-latin-500-italic.woff2) format("woff2")}
@font-face{font-family:"Manrope";font-style:normal;font-weight:400;font-display:swap;src:url(/assets/fonts/manrope-latin-400-normal.woff2) format("woff2")}
@font-face{font-family:"Manrope";font-style:normal;font-weight:500;font-display:swap;src:url(/assets/fonts/manrope-latin-500-normal.woff2) format("woff2")}
@font-face{font-family:"Manrope";font-style:normal;font-weight:600;font-display:swap;src:url(/assets/fonts/manrope-latin-600-normal.woff2) format("woff2")}
@font-face{font-family:"Manrope";font-style:normal;font-weight:700;font-display:swap;src:url(/assets/fonts/manrope-latin-700-normal.woff2) format("woff2")}
@font-face{font-family:"Manrope";font-style:normal;font-weight:800;font-display:swap;src:url(/assets/fonts/manrope-latin-800-normal.woff2) format("woff2")}
/* FreeConverter.net — "Obsidian & Gold" theme.
   Loaded after legacy.css: remaps the old variables and restyles every shared tool component. */
:root {
  color-scheme: light;
  --gold: #D4AF6A;
  --gold-strong: #C9A15B;
  --gold-ink: #8A6A2E;
  --gold-soft: #F5ECDA;
  --ink: #1B1712;
  --obsidian: #0C0B10;
  --obsidian-2: #141118;
  --ivory: #F7F2E9;
  --ivory-line: #E8DDCB;
  --cream-text: #F5EFE4;
  --sand: #A89F90;
  --font-display: "Playfair Display", Georgia, serif;
  --font-body: Manrope, system-ui, -apple-system, "Segoe UI", sans-serif;
  /* legacy variables */
  --bg: var(--ivory);
  --surface: #FFFFFF;
  --surface-strong: #FBF7EF;
  --surface-warm: #FBF3E4;
  --text: var(--ink);
  --muted: #6B6052;
  --border: var(--ivory-line);
  --primary: var(--ink);
  --primary-strong: #000;
  --accent: var(--gold-ink);
  --accent-soft: var(--gold-soft);
  --green-soft: #E7F3EA;
  --amber-soft: #FBF0D9;
  --rose-soft: #F8E6E2;
  --violet-soft: #EFEAF5;
  --shadow: 0 30px 80px rgba(30, 20, 5, 0.14);
  --shadow-soft: 0 8px 24px rgba(30, 20, 5, 0.07);
  --radius: 16px;
  --max: 1184px;
}
* { font-variant-numeric: lining-nums; }
html { font-size: 16px; }
body {
  margin: 0; background: var(--ivory); color: var(--ink);
  font-family: var(--font-body); line-height: 1.6; -webkit-font-smoothing: antialiased;
}
a { color: var(--gold-ink); }
a:hover { color: #5C4519; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 500; letter-spacing: -0.2px; color: inherit; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- header ---------- */
.fc-header { background: var(--obsidian); border-bottom: 1px solid #2A2520; color: var(--cream-text); position: relative; z-index: 20; }
.fc-header-inner { max-width: 1240px; margin: 0 auto; padding: 14px 28px; display: flex; align-items: center; gap: 24px; }
.fc-brand { display: flex; align-items: center; gap: 12px; color: var(--cream-text); flex: none; }
.fc-brand:hover { color: #fff; }
.fc-brand-name { display: flex; flex-direction: column; line-height: 1; }
.fc-brand-name b { font-family: var(--font-display); font-weight: 600; font-size: 23px; }
.fc-brand-name small { font-size: 10px; letter-spacing: 4px; text-transform: uppercase; color: var(--gold); margin-top: 6px; }
.fc-nav { display: flex; gap: 2px; flex: 1 1 auto; justify-content: flex-end; flex-wrap: wrap; }
.fc-nav a { padding: 10px 12px; color: #D8D0C2; font-weight: 500; font-size: 15px; border-radius: 8px; }
.fc-nav a:hover, .fc-nav a[aria-current="page"] { color: #fff; }
.fc-nav a.fc-nav-india { color: var(--gold); font-weight: 700; }
.fc-search-toggle, .fc-menu-toggle { background: transparent; border: 1px solid #3A332A; color: var(--gold); width: 44px; height: 44px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; flex: none; }
.fc-menu-toggle { display: none; }
.fc-searchbar { display: none; background: var(--obsidian-2); border-bottom: 1px solid #2A2520; }
.fc-searchbar.open { display: block; }
.fc-searchbar-inner { max-width: 760px; margin: 0 auto; padding: 16px 28px; position: relative; }

/* search box (header + hero) */
.fc-search { display: flex; align-items: center; gap: 12px; background: #15131A; border: 1px solid #4A3F2C; border-radius: 999px; padding: 7px 7px 7px 22px; }
.fc-search input { flex: 1; min-width: 0; border: 0; outline: none; background: transparent; color: var(--cream-text); font-size: 17px; padding: 12px 0; font-family: inherit; }
.fc-search input::placeholder { color: #8C8273; }
.fc-search button { height: 48px; padding: 0 26px; border: 0; border-radius: 999px; background: var(--gold); color: #1A1408; font-weight: 700; font-size: 16px; cursor: pointer; font-family: inherit; }
.fc-search-results { position: absolute; left: 28px; right: 28px; top: calc(100% - 6px); background: #fff; color: var(--ink); border: 1px solid var(--ivory-line); border-radius: 16px; box-shadow: var(--shadow); padding: 6px; display: none; z-index: 30; max-height: 420px; overflow: auto; text-align: left; }
.fc-search-results.open { display: block; }
.fc-search-results a { display: flex; justify-content: space-between; gap: 12px; padding: 11px 14px; border-radius: 10px; color: var(--ink); font-weight: 600; }
.fc-search-results a small { color: var(--muted); font-weight: 500; }
.fc-search-results a:hover, .fc-search-results a.active { background: var(--gold-soft); }

/* ---------- hero bands ---------- */
.fc-hero { background: radial-gradient(ellipse 70% 60% at 50% 0%, #2B2418 0%, var(--obsidian) 70%); color: var(--cream-text); }
.fc-hero-inner { max-width: 1240px; margin: 0 auto; padding: 84px 28px 76px; display: flex; flex-direction: column; align-items: center; gap: 22px; text-align: center; position: relative; }
.fc-kicker { display: inline-flex; align-items: center; gap: 12px; font-size: 12px; letter-spacing: 4px; text-transform: uppercase; color: var(--gold); font-weight: 600; }
.fc-kicker::before, .fc-kicker::after { content: ""; width: 36px; height: 1px; background: var(--gold); }
.fc-hero h1 { margin: 0; font-size: clamp(40px, 6vw, 68px); line-height: 1.06; max-width: 920px; }
.fc-hero h1 em { color: var(--gold); }
.fc-hero p { margin: 0; font-size: 19px; color: #BDB4A6; max-width: 660px; }
.fc-hero form { width: 100%; max-width: 700px; position: relative; }
.fc-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; max-width: 800px; }
.fc-chips a { padding: 9px 16px; border-radius: 999px; border: 1px solid #3A332A; color: #E8E0D2; font-size: 14px; font-weight: 500; }
.fc-chips a:hover { border-color: var(--gold); color: #fff; }
.fc-stats { display: flex; flex-wrap: wrap; justify-content: center; gap: 48px; margin-top: 18px; }
.fc-stats div { display: flex; flex-direction: column; gap: 4px; }
.fc-stats b { font-family: var(--font-display); font-weight: 500; font-size: 34px; color: var(--gold); }
.fc-stats span { font-size: 13px; letter-spacing: 2px; text-transform: uppercase; color: #9C9384; }

/* tool page hero (old markup: section.tool-hero > .eyebrow, h1, p) */
.tool-hero, .tool-hero.tool-page {
  background: radial-gradient(ellipse 70% 90% at 50% 0%, #2B2418 0%, var(--obsidian) 75%);
  color: var(--cream-text); margin: 0; width: auto; max-width: none; border: 0; border-radius: 0; box-shadow: none;
  padding: 36px max(28px, calc((100% - 1184px) / 2)) 128px; text-align: left; display: block;
}
.tool-hero .eyebrow { color: var(--gold); letter-spacing: 3px; text-transform: uppercase; font-size: 12px; font-weight: 700; background: none; padding: 0; border: 0; }
.tool-hero h1 { font-size: clamp(36px, 5vw, 52px); line-height: 1.08; margin: 10px 0 12px; max-width: 860px; color: var(--cream-text); }
.tool-hero p { color: #BDB4A6; font-size: 18px; max-width: 720px; margin: 0; }
.fc-crumbs { display: flex; flex-wrap: wrap; gap: 10px; font-size: 14px; color: #9C9384; margin-bottom: 18px; }
.fc-crumbs a { color: #BDB4A6; }
.fc-crumbs span[aria-current] { color: var(--gold); }

/* ---------- main sections ---------- */
main { display: block; }
.section-wrap { max-width: var(--max); margin: 0 auto; padding: 0 28px; }
main > .section-wrap { margin-top: 48px; }
.tool-hero + .section-wrap, .tool-hero + .tool-layout { margin-top: -96px; position: relative; }
.section-heading { margin-bottom: 18px; }
.section-heading h2 { font-size: 32px; margin: 4px 0; }
.section-heading .eyebrow, .eyebrow { color: var(--gold-ink); letter-spacing: 3px; text-transform: uppercase; font-size: 12px; font-weight: 700; }

.tool-layout { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(280px, 1fr); gap: 24px; align-items: start; }
.tool-layout > :only-child { grid-column: 1 / -1; }
.tool-panel, .result-card, .feature-list article, .family-card, .choice-card {
  background: #fff; border: 1px solid var(--ivory-line); border-radius: 22px; box-shadow: var(--shadow-soft); color: var(--ink);
}
.tool-panel { padding: 30px; display: grid; gap: 20px; align-content: start; }
.tool-layout > .tool-panel:first-child { box-shadow: var(--shadow); }
/* only purely informational side panels go dark; working panels (inputs, results, previews) stay white */
.tool-layout > .tool-panel:nth-child(2):not(:has(input, select, textarea, button, canvas, video, svg, img, output, .result-card, [role="status"], [aria-live])) { background: var(--ink); color: #D8D0C2; border-color: var(--ink); }
.tool-layout > .tool-panel:nth-child(2):not(:has(input, select, textarea, button, canvas, video, svg, img, output, .result-card, [role="status"], [aria-live])) :is(h2, h3) { color: var(--cream-text); }
.tool-layout > .tool-panel:nth-child(n+3) { grid-column: 1 / -1; }
.tool-panel .tool-panel { box-shadow: none; background: #FBF7EF; color: var(--ink); border-color: var(--ivory-line); }
/* hide native file inputs when the page has its own styled button */
.converter-dropzone input[type="file"], .pdf-dropzone input[type="file"], .tool-panel input[type="file"]:not(:only-child) { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; }

.tool-panel h2 { font-size: 26px; margin: 0; }
.tool-panel h3 { font-size: 20px; margin: 0; }

/* form controls */
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; }
.form-field { display: grid; gap: 8px; }
.form-field label, .form-field > span { font-size: 12px; letter-spacing: 2px; text-transform: uppercase; font-weight: 700; color: var(--gold-ink); }
.form-field input, .form-field select, .form-field textarea, .tool-textarea, input[type="text"], input[type="number"], input[type="date"], input[type="time"], input[type="email"], input[type="url"], select, textarea {
  min-height: 48px; border: 1px solid #DCCDB3; border-radius: 12px; padding: 10px 14px; font-size: 16px; font-family: inherit; background: #fff; color: var(--ink); width: 100%; box-sizing: border-box;
}
textarea, .tool-textarea { min-height: 160px; line-height: 1.55; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--gold-strong); box-shadow: 0 0 0 3px rgba(212, 175, 106, 0.25); }
input[readonly] { background: #FBF7EF; font-weight: 700; }
input[type="checkbox"], input[type="radio"] { accent-color: var(--ink); width: 18px; height: 18px; min-height: 0; }
input[type="range"] { accent-color: var(--gold-strong); min-height: 0; border: 0; padding: 0; }

/* buttons */
.tool-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.tool-button, .browse-button, .convert-button, .download-button, .calculate-button, .pdf-convert-button, .pdf-browse-button, .pdf-download-button {
  min-height: 52px; padding: 0 28px; border-radius: 999px; border: 0; cursor: pointer; font-family: inherit; font-weight: 800; font-size: 16px; letter-spacing: 0.2px;
  background: linear-gradient(180deg, #E2C285 0%, #C9A15B 100%); color: #1A1408; display: inline-flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none; box-shadow: none;
}
.tool-button:hover, .browse-button:hover, .convert-button:hover, .calculate-button:hover { filter: brightness(1.05); color: #1A1408; }
.tool-button.secondary, .secondary-button, .reset-button, .pdf-reset-button, .tool-button.reset-button {
  background: #fff; color: var(--ink); border: 1px solid #DCCDB3;
}
.tool-button.secondary:hover, .secondary-button:hover, .reset-button:hover { border-color: var(--ink); color: var(--ink); }
.download-button, .pdf-download-button, a.tool-button[download] { background: var(--ink); color: #F5E3BE; }
.download-button:hover, .pdf-download-button:hover { color: #fff; }
button:disabled, .tool-button:disabled { opacity: 0.45; cursor: not-allowed; }
.rate-button, .timezone-preset, .rate-buttons button, .pill-links a {
  min-height: 44px; padding: 0 18px; border-radius: 999px; border: 1px solid #DCCDB3; background: #fff; color: var(--ink); font-weight: 700; font-family: inherit; cursor: pointer; display: inline-flex; align-items: center;
}
.rate-button.is-active, .rate-button[aria-pressed="true"], .timezone-preset.is-active, .is-active.rate-button { background: var(--ink); color: #F5E3BE; border-color: var(--ink); }

/* drop zones */
.pdf-dropzone, .converter-dropzone {
  border: 1.5px dashed #C9A869; background: #FBF7EF; border-radius: 18px; padding: 40px 24px; text-align: center; display: grid; justify-items: center; gap: 12px; color: var(--ink);
}
.pdf-dropzone h2, .converter-dropzone h2 { font-size: 24px; margin: 0; }
.pdf-dropzone p, .converter-dropzone p { color: var(--muted); margin: 0; }
.pdf-dropzone.is-dragging, .converter-dropzone.is-dragging, .pdf-dropzone.dragover, .converter-dropzone.dragover { background: var(--gold-soft); border-color: var(--ink); }
.pdf-file-input, .converter-input[type="file"] { position: absolute; width: 1px; height: 1px; opacity: 0; }

/* status + results */
.status-message, .converter-status, .pdf-status { color: var(--muted); font-size: 15px; margin: 0; }
.status-message:empty, .converter-status:empty, .pdf-status:empty { display: none; }
.converter-error, .pdf-error { color: #9F1D1D; background: #FBE9E7; border: 1px solid #F1C3BC; border-radius: 12px; padding: 12px 16px; margin: 0; }
.converter-error:empty, .pdf-error:empty, .converter-error[hidden], .pdf-error[hidden] { display: none; }
.result-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; }
.result-card { padding: 18px 20px; display: grid; gap: 4px; }
.result-card span { font-size: 12px; letter-spacing: 2px; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.result-card strong { font-family: var(--font-display); font-size: 28px; font-weight: 500; color: var(--ink); }
.converter-file-card { background: #FBF7EF; color: var(--ink); border: 1px solid var(--ivory-line); border-radius: 18px; padding: 18px; }
.pdf-file-list li { background: var(--ink); color: var(--cream-text); border-radius: 16px; padding: 14px 18px; display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; }
.file-name { font-weight: 700; word-break: break-all; }
.file-size { color: var(--gold-ink); font-size: 14px; }
.pdf-file-list .file-size { color: var(--gold); }
.pdf-file-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.tool-progress, progress { width: 100%; height: 10px; accent-color: var(--gold-strong); }
.formula-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }
.placeholder-note { color: var(--muted); font-size: 14px; }
.editable-table-wrap { overflow-x: auto; border: 1px solid var(--ivory-line); border-radius: 14px; }
table { border-collapse: collapse; width: 100%; }
th { background: #FBF7EF; color: var(--gold-ink); font-size: 12px; letter-spacing: 1.5px; text-transform: uppercase; text-align: left; }
th, td { padding: 10px 12px; border-bottom: 1px solid var(--ivory-line); }

/* FAQ */
.faq-list { display: grid; gap: 12px; max-width: 900px; }
.faq-list details { background: #fff; border: 1px solid var(--ivory-line); border-radius: 16px; padding: 18px 22px; }
.faq-list summary { font-weight: 700; font-size: 16px; cursor: pointer; }
.faq-list details p { color: #5E5446; margin: 10px 0 0; }

/* feature lists / split sections from old pages */
.feature-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.feature-list article { padding: 22px; }
.feature-list h3 { font-size: 20px; margin: 0 0 6px; }
.split-section { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 28px; align-items: start; }
.muted-band { background: var(--obsidian-2); color: #D8D0C2; padding: 56px 0; margin-top: 56px; }
.muted-band h2, .muted-band h3 { color: var(--cream-text); }
.muted-band .section-wrap { margin-top: 0; }

/* related tools + tool cards */
.related-grid, .fc-tool-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.fc-card { background: #fff; border: 1px solid var(--ivory-line); border-radius: 14px; padding: 14px 16px; display: flex; align-items: center; justify-content: space-between; gap: 12px; color: var(--ink); min-height: 44px; box-shadow: 0 1px 2px rgba(60, 40, 10, 0.05); }
.fc-card:hover { border-color: var(--gold-strong); color: var(--ink); transform: translateY(-1px); }
.fc-card-l { display: flex; align-items: center; gap: 12px; min-width: 0; }
.fc-ico { width: 36px; height: 36px; border-radius: 10px; background: var(--gold-soft); display: flex; align-items: center; justify-content: center; flex: none; color: var(--gold-ink); }
.fc-card b { font-weight: 600; font-size: 15px; }
.fc-card .fc-new { font-size: 10px; letter-spacing: 1.5px; font-weight: 800; color: #1A1408; background: var(--gold); border-radius: 999px; padding: 2px 7px; margin-left: 6px; vertical-align: 2px; }
.fc-card i { color: #B08A45; font-style: normal; }
.fc-related { margin: 64px auto 0; }

/* homepage + category sections */
.fc-band-dark { background: var(--obsidian-2); border-top: 1px solid #2A2520; border-bottom: 1px solid #2A2520; color: var(--cream-text); }
.fc-band-inner { max-width: 1240px; margin: 0 auto; padding: 64px 28px; display: flex; flex-direction: column; gap: 28px; }
.fc-band-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; }
.fc-band-head h2 { margin: 6px 0 0; font-size: 40px; }
.fc-band-head .fc-label { font-size: 12px; letter-spacing: 4px; text-transform: uppercase; color: var(--gold); font-weight: 600; }
.fc-band-dark a.fc-more { color: var(--gold); font-weight: 600; }
.fc-india-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 16px; }
.fc-india-card { background: linear-gradient(160deg, #1E1A22 0%, #17141B 100%); border: 1px solid #3A3226; border-radius: 18px; padding: 22px; display: flex; flex-direction: column; gap: 8px; color: var(--cream-text); min-height: 120px; }
.fc-india-card:hover { border-color: var(--gold); color: #fff; }
.fc-india-card small { font-family: var(--font-display); color: var(--gold); font-size: 13px; }
.fc-india-card b { font-size: 17px; font-weight: 600; }
.fc-india-card span { font-size: 14px; color: var(--sand); line-height: 1.5; }
.fc-cats { max-width: 1240px; margin: 0 auto; padding: 72px 28px; display: flex; flex-direction: column; gap: 64px; }
.fc-cat-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; border-bottom: 1px solid #E2D6C1; padding-bottom: 16px; margin-bottom: 22px; }
.fc-cat-title { display: flex; align-items: center; gap: 16px; }
.fc-cat-badge { width: 52px; height: 52px; border-radius: 50%; background: var(--ink); color: var(--gold); display: flex; align-items: center; justify-content: center; }
.fc-cat-title h2 { margin: 0; font-size: 30px; font-weight: 600; }
.fc-cat-title span { font-size: 14px; color: #7A6E5C; }
.fc-pillars { background: var(--obsidian); color: var(--cream-text); }
.fc-pillars-inner { max-width: 1240px; margin: 0 auto; padding: 64px 28px; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 32px; }
.fc-pillars-inner div { border-top: 1px solid var(--gold); padding-top: 20px; }
.fc-pillars-inner h3 { margin: 0 0 8px; font-size: 24px; }
.fc-pillars-inner p { margin: 0; color: var(--sand); }

/* footer */
.fc-footer { background: #08070B; border-top: 1px solid #2A2520; color: var(--sand); margin-top: 72px; }
.fc-footer-inner { max-width: 1240px; margin: 0 auto; padding: 48px 28px 32px; display: grid; grid-template-columns: 1.4fr repeat(4, 1fr); gap: 28px; font-size: 14px; }
.fc-footer h4 { color: var(--cream-text); font-family: var(--font-display); font-weight: 500; font-size: 17px; margin: 0 0 12px; }
.fc-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.fc-footer a { color: var(--sand); }
.fc-footer a:hover { color: var(--gold); }
.fc-footer-bottom { max-width: 1240px; margin: 0 auto; padding: 18px 28px 32px; border-top: 1px solid #1E1B22; font-size: 13px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }
body.fc-home .fc-footer, body.fc-cat .fc-footer { margin-top: 0; }

/* ---------- phone ---------- */
@media (max-width: 900px) {
  .fc-menu-toggle { display: inline-flex; }
  .fc-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--obsidian); flex-direction: column; padding: 8px 20px 20px; border-bottom: 1px solid #2A2520; }
  .fc-nav.open { display: flex; }
  .fc-nav a { padding: 14px 8px; font-size: 17px; border-bottom: 1px solid #1E1B22; }
  .fc-header-inner { justify-content: space-between; padding: 12px 18px; }
  .fc-header-tools { display: flex; gap: 8px; }
  .tool-layout { grid-template-columns: 1fr; }
  .fc-footer-inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .fc-brand-name b { font-size: 20px; }
  .fc-brand-name small { display: none; }
  .fc-hero-inner { padding: 56px 18px 52px; }
  .fc-search { padding-left: 16px; }
  .fc-search button { padding: 0 16px; }
  .fc-stats { gap: 24px; }
  .section-wrap, .fc-cats, .fc-band-inner { padding-left: 16px; padding-right: 16px; }
  .tool-hero, .tool-hero.tool-page { padding: 24px 16px 110px; }
  .tool-panel { padding: 20px; border-radius: 18px; }
  .fc-band-head h2 { font-size: 30px; }
  .fc-cat-title h2 { font-size: 24px; }
  .tool-actions > .tool-button { flex: 1 1 100%; }
  .fc-footer-inner { grid-template-columns: 1fr; }
}
.fc-hero-search { position: relative; width: 100%; max-width: 700px; margin-top: 8px; }
.fc-hero-search .fc-search-results { left: 0; right: 0; top: calc(100% + 8px); }

.section-wrap { width: auto; }
.tool-layout > .tool-panel:nth-child(2):not(:has(input, select, textarea, button, canvas, video, svg, img, output, .result-card, [role="status"], [aria-live])) :is(p, li) { color: #D8D0C2; }
.tool-layout > .tool-panel:nth-child(2):not(:has(input, select, textarea, button, canvas, video, svg, img, output, .result-card, [role="status"], [aria-live])) a { color: var(--gold); }
/* dark full-bleed band for old .muted-band sections */
.muted-band { box-shadow: 0 0 0 100vmax var(--obsidian-2); clip-path: inset(0 -100vmax); background: var(--obsidian-2); padding: 56px 28px; }
.muted-band .section-heading h2, .muted-band > p, .muted-band .section-heading p { color: var(--cream-text); }
.muted-band article, .muted-band .result-card { color: var(--ink); }
.muted-band article h3, .muted-band .result-card h3 { color: var(--ink); }
.form-field > label:has(input[type="radio"]), .form-field > label:has(input[type="checkbox"]), label:has(> input[type="radio"]), label:has(> input[type="checkbox"]) {
  text-transform: none; letter-spacing: 0; font-size: 15px; font-weight: 600; color: var(--ink); display: flex; align-items: center; gap: 8px;
}
[hidden] { display: none !important; }
/* video tools */
.vt-work { display: grid; gap: 18px; }
.vt-work video, .vt-result-preview video, .vt-result-preview img { width: 100%; max-height: 420px; background: #000; border-radius: 14px; display: block; object-fit: contain; }
.vt-result-preview img { background: repeating-conic-gradient(#eee 0 25%, #fff 0 50%) 50% / 20px 20px; }
.vt-result-preview audio { width: 100%; }
.vt-result { display: grid; gap: 12px; background: #FBF7EF; border: 1px solid var(--ivory-line); border-radius: 18px; padding: 18px; }
.vt-steps { margin: 0; padding-left: 20px; display: grid; gap: 8px; }
.tool-button:focus, .tool-button:active, .browse-button:focus, .convert-button:focus, .calculate-button:focus { background: linear-gradient(180deg, #E2C285 0%, #C9A15B 100%); color: #1A1408; }
.tool-button.secondary:focus, .tool-button.secondary:active { background: #fff; color: var(--ink); }
.download-button:focus, .download-button:active, a.download-button:focus { background: var(--ink); color: #F5E3BE; }
/* page thumbnails (delete / extract pages) */
.pg-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 10px; max-height: 460px; overflow: auto; padding: 4px; }
.pg { position: relative; background: #fff; border: 2px solid var(--ivory-line); border-radius: 10px; padding: 6px; cursor: pointer; display: grid; gap: 4px; justify-items: center; font-weight: 700; font-size: 13px; color: var(--ink); }
.pg canvas { width: 100%; height: auto; box-shadow: 0 1px 3px rgba(0,0,0,.15); }
.pg[aria-pressed="true"] { border-color: var(--ink); background: var(--gold-soft); }
.pg[aria-pressed="true"]::after { content: "✓"; position: absolute; top: 6px; right: 6px; width: 22px; height: 22px; border-radius: 50%; background: var(--ink); color: #F5E3BE; display: flex; align-items: center; justify-content: center; font-size: 13px; }
/* PDF editor (sign / add text) */
.ed-pages { display: grid; gap: 16px; justify-items: center; background: #EDE6D8; border-radius: 14px; padding: 14px; max-height: 720px; overflow: auto; }
.ed-pages:empty { display: none; }
.ed-page { position: relative; box-shadow: 0 4px 16px rgba(0,0,0,.15); background: #fff; max-width: 100%; }
.ed-page canvas { display: block; max-width: 100%; height: auto; cursor: crosshair; }
.ed-item { position: absolute; cursor: pointer; outline: 1px dashed rgba(201,161,91,.9); }
.rate-button.is-active { background: var(--ink); color: #F5E3BE; border-color: var(--ink); }
.flowchart-canvas, .diagram-preview { overflow: auto; max-width: 100%; -webkit-overflow-scrolling: touch; }
/* only a tool panel overlaps the hero; plain text sections start below it */
.tool-hero + .section-wrap:not(.tool-layout) { margin-top: 40px; }
.tool-hero:has(+ .section-wrap:not(.tool-layout)) { padding-bottom: 48px; }
