/*
 * Toolnest 3 — clean SaaS tools design.
 * White canvas, light-grey sections, red accent, rounded cards, dashed upload areas.
 * Colour variables can be changed in Toolnest → Branding (printed inline after this file).
 */

/* ---------- Tokens ---------- */
:root {
  --accent: #e5322d;
  --accent-strong: #bc2925;
  --accent-soft: #fdeaea;
  --accent-softer: #fef4f4;
  --ink: #1d2433;
  --muted: #5b6475;
  --subtle: #8a92a3;
  --line: #e6e8ee;
  --line-strong: #d3d7e0;
  --surface: #f4f5f8;
  --bg: #ffffff;
  --card: #ffffff;
  --success: #12825a;
  --success-soft: #e6f5ee;
  --danger: #c4211c;
  --danger-soft: #fdecec;
  --warning-soft: #fff6e0;
  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --shadow-sm: 0 1px 2px rgba(17, 24, 39, .05);
  --shadow: 0 1px 3px rgba(17, 24, 39, .06), 0 8px 24px -12px rgba(17, 24, 39, .12);
  --shadow-lg: 0 2px 6px rgba(17, 24, 39, .05), 0 24px 48px -20px rgba(17, 24, 39, .22);
  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "Noto Sans Devanagari", "Nirmala UI", sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  --container: 1200px;
  --header-h: 68px;
  color-scheme: light;
}
html[data-theme="dark"] {
  --accent-soft: #3a1d1e;
  --accent-softer: #2a1a1b;
  --ink: #eef0f5;
  --muted: #b2b8c6;
  --subtle: #8a92a3;
  --line: #2b3140;
  --line-strong: #3a4152;
  --surface: #151923;
  --bg: #0f121a;
  --card: #1a1f2b;
  --success-soft: #12342a;
  --danger-soft: #3a1d1e;
  --warning-soft: #3a3016;
  --shadow: 0 1px 3px rgba(0, 0, 0, .4), 0 8px 24px -12px rgba(0, 0, 0, .6);
  --shadow-lg: 0 24px 48px -20px rgba(0, 0, 0, .7);
  color-scheme: dark;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; } }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 16px/1.6 var(--font); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
html.search-open { overflow: hidden; }
img, svg, video, canvas { max-width: 100%; height: auto; }
img { display: block; }
a { color: var(--accent-strong); text-decoration-thickness: .08em; text-underline-offset: .18em; }
html[data-theme="dark"] a { color: #ff7b76; }
a:hover { color: var(--accent); }
h1, h2, h3, h4 { color: var(--ink); line-height: 1.2; letter-spacing: -.015em; margin: 0 0 .5em; font-weight: 750; }
h1 { font-size: clamp(2rem, 1.4rem + 2.4vw, 3.1rem); letter-spacing: -.025em; }
h2 { font-size: clamp(1.45rem, 1.15rem + 1.1vw, 2rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
code, pre, kbd { font-family: var(--mono); font-size: .92em; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--accent) 55%, transparent); outline-offset: 2px; border-radius: 6px; }
::selection { background: var(--accent-soft); color: var(--ink); }
.container { width: min(100% - 40px, var(--container)); margin-inline: auto; }
.screen-reader-text, .visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 1000; background: var(--ink); color: var(--bg); padding: 10px 16px; border-radius: var(--radius-sm); }
.skip-link:focus { top: 12px; }
.site-main { min-height: 50vh; }
.site-main:focus { outline: none; }
.tn-svg { width: 22px; height: 22px; flex: none; }
.tn-svg--sm { width: 16px; height: 16px; }
[hidden] { display: none !important; }

/* ---------- Buttons ---------- */
.button, button.button, a.button {
  --btn-bg: var(--accent); --btn-fg: #fff; --btn-bd: var(--accent);
  display: inline-flex; align-items: center; justify-content: center; gap: .5em; min-height: 44px; padding: 10px 20px;
  border: 1.5px solid var(--btn-bd); border-radius: 12px; background: var(--btn-bg); color: var(--btn-fg);
  font: 650 15px/1.2 var(--font); text-decoration: none; cursor: pointer; transition: background .15s, border-color .15s, color .15s, box-shadow .15s, transform .06s;
  -webkit-tap-highlight-color: transparent;
}
.button:hover { --btn-bg: var(--accent-strong); --btn-bd: var(--accent-strong); color: #fff; }
.button:active { transform: translateY(1px); }
.button:disabled, .button[aria-disabled="true"] { opacity: .55; cursor: not-allowed; transform: none; }
.button-secondary, a.button-secondary, button.button-secondary { --btn-bg: var(--card); --btn-fg: var(--ink); --btn-bd: var(--line-strong); }
.button-secondary:hover { --btn-bg: var(--surface); --btn-bd: var(--subtle); color: var(--ink); }
.button-ghost, button.button-ghost { --btn-bg: transparent; --btn-fg: var(--muted); --btn-bd: transparent; }
.button-ghost:hover { --btn-bg: var(--surface); --btn-bd: transparent; color: var(--ink); }
.button-small { min-height: 36px; padding: 6px 12px; font-size: 14px; border-radius: 10px; }
.button-xl { min-height: 58px; padding: 14px 32px; font-size: 18px; border-radius: 16px; box-shadow: 0 10px 24px -12px color-mix(in srgb, var(--accent) 70%, transparent); }
.button-secondary.button-xl { box-shadow: none; }
.button-block { width: 100%; }
.button-link { background: none; border: 0; padding: 0; color: var(--accent-strong); font: inherit; text-decoration: underline; cursor: pointer; }
.icon-button { display: inline-grid; place-items: center; width: 42px; height: 42px; border: 1px solid transparent; border-radius: 12px; background: transparent; color: var(--ink); cursor: pointer; }
.icon-button:hover { background: var(--surface); }
.link-arrow { display: inline-flex; align-items: center; gap: 6px; font-weight: 650; text-decoration: none; white-space: nowrap; }
.link-arrow:hover { text-decoration: underline; }

/* ---------- Header ---------- */
.site-header { position: relative; z-index: 50; background: var(--bg); border-bottom: 1px solid var(--line); }
.has-sticky-header .site-header { position: sticky; top: 0; }
.site-header.is-scrolled { box-shadow: 0 6px 20px -16px rgba(17, 24, 39, .35); }
.admin-bar.has-sticky-header .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar.has-sticky-header .site-header { top: 0; } }
.header-bar { display: flex; align-items: center; gap: 20px; min-height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 800; font-size: 1.25rem; letter-spacing: -.02em; flex: none; }
.brand:hover { color: var(--ink); }
.brand-mark { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 11px; background: var(--accent); color: #fff; }
.brand-mark .tn-svg { width: 22px; height: 22px; }
.brand-logo img { max-height: 40px; width: auto; }
.main-nav { flex: 1; min-width: 0; }
.nav-list { display: flex; align-items: center; gap: 2px; list-style: none; margin: 0; padding: 0; }
.nav-item { position: relative; display: flex; align-items: center; }
.nav-link { display: inline-flex; align-items: center; padding: 10px 11px; border-radius: 10px; color: var(--ink); font-weight: 600; font-size: 15px; text-decoration: none; white-space: nowrap; }
.nav-link:hover, .nav-link[aria-current="page"] { color: var(--accent-strong); background: var(--accent-softer); }
.has-menu > .nav-link { padding-right: 4px; }
.nav-toggle { display: inline-grid; place-items: center; width: 26px; height: 32px; margin-left: -2px; border: 0; border-radius: 8px; background: none; color: var(--muted); cursor: pointer; }
.nav-toggle:hover { color: var(--ink); background: var(--surface); }
.nav-toggle .tn-svg { transition: transform .15s; }
.nav-item.is-open > .nav-toggle .tn-svg { transform: rotate(180deg); }
.nav-panel { position: absolute; top: calc(100% + 8px); left: 0; min-width: 260px; padding: 10px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-lg); opacity: 0; visibility: hidden; transform: translateY(-4px); transition: opacity .15s, transform .15s, visibility .15s; z-index: 60; }
.nav-item.is-open > .nav-panel { opacity: 1; visibility: visible; transform: none; }
.nav-panel::before { content: ""; position: absolute; left: 0; right: 0; top: -10px; height: 10px; }
.nav-sub { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.nav-sub a, .mega-col li a { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 10px; color: var(--ink); text-decoration: none; font-size: 14.5px; font-weight: 550; }
.nav-sub a:hover, .mega-col li a:hover { background: var(--surface); color: var(--accent-strong); }
.nav-sub .tool-icon, .mega-col .tool-icon { width: 30px; height: 30px; border-radius: 9px; }
.nav-sub .tool-icon .tn-svg, .mega-col .tool-icon .tn-svg { width: 17px; height: 17px; }
.nav-panel--mega { position: fixed; left: 50%; top: var(--header-h); transform: translate(-50%, -4px); width: min(1120px, calc(100vw - 32px)); max-height: calc(100vh - var(--header-h) - 24px); overflow: auto; padding: 20px; }
.admin-bar .nav-panel--mega { top: calc(var(--header-h) + 32px); }
.nav-item.is-open > .nav-panel--mega { transform: translate(-50%, 0); }
.mega-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px 20px; }
.mega-col--wide { grid-column: span 2; }
.mega-col--wide ul { columns: 2; column-gap: 12px; }
.mega-col ul { list-style: none; margin: 0; padding: 0; }
.mega-col li { break-inside: avoid; }
.mega-col__title { display: block; padding: 6px 10px; color: var(--subtle); font-size: 12px; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; text-decoration: none; }
.mega-col__title:hover { color: var(--accent-strong); }
.mega-all { display: inline-flex; align-items: center; gap: 6px; margin: 12px 10px 0; font-weight: 650; text-decoration: none; }
.header-actions { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.menu-toggle { display: none; }
.mobile-nav { border-top: 1px solid var(--line); background: var(--bg); max-height: calc(100vh - var(--header-h)); overflow: auto; }
.mobile-nav__inner { width: min(100% - 32px, 720px); margin: 0 auto; padding: 14px 0 28px; }
.mobile-nav .nav-list { flex-direction: column; align-items: stretch; gap: 0; }
.mobile-nav .nav-item { flex-wrap: wrap; border-bottom: 1px solid var(--line); }
.mobile-nav .nav-link { flex: 1; padding: 14px 4px; font-size: 16px; }
.mobile-nav .nav-link:hover { background: none; }
.mobile-nav .nav-toggle { width: 44px; height: 44px; }
.mobile-nav .nav-panel, .mobile-nav .nav-panel--mega { position: static; display: none; width: 100%; max-height: none; transform: none; opacity: 1; visibility: visible; box-shadow: none; border: 0; padding: 0 0 12px; background: transparent; }
.mobile-nav .nav-item.is-open > .nav-panel { display: block; }
.mobile-nav .mega-grid { grid-template-columns: 1fr; }
.mobile-nav .mega-col--wide { grid-column: auto; }
.mobile-nav .mega-col--wide ul { columns: 1; }
.mobile-search { display: flex; align-items: center; gap: 10px; padding: 0 14px; margin-bottom: 8px; border: 1.5px solid var(--line-strong); border-radius: 14px; background: var(--card); }
.mobile-search input { flex: 1; min-width: 0; height: 48px; border: 0; background: none; color: var(--ink); font: inherit; outline: none; }
@media (max-width: 1100px) { .nav-link { padding: 10px 8px; font-size: 14.5px; } }
@media (max-width: 1000px) {
  .main-nav { display: none; }
  .menu-toggle { display: inline-grid; }
}

/* ---------- Search dialog ---------- */
.search-dialog { position: fixed; inset: 0; z-index: 200; display: grid; place-items: start center; padding: 10vh 16px 16px; background: rgba(17, 24, 39, .45); backdrop-filter: blur(3px); }
.search-dialog__panel { width: min(680px, 100%); }
.search-box { position: relative; display: flex; align-items: center; gap: 10px; padding: 6px 6px 6px 16px; background: var(--card); border: 1.5px solid var(--line-strong); border-radius: 16px; box-shadow: var(--shadow); }
.search-box:focus-within { border-color: var(--accent); }
.search-box > .tn-svg { color: var(--subtle); }
.search-box input[type="search"] { flex: 1; min-width: 0; height: 46px; border: 0; background: none; color: var(--ink); font: 500 17px/1 var(--font); outline: none; }
.search-box--dialog { box-shadow: var(--shadow-lg); }
.search-results { position: absolute; left: 0; right: 0; top: calc(100% + 8px); z-index: 20; list-style: none; margin: 0; padding: 8px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-lg); max-height: 60vh; overflow: auto; text-align: left; }
.search-results a { display: flex; justify-content: space-between; align-items: center; gap: 14px; padding: 11px 12px; border-radius: 10px; color: var(--ink); text-decoration: none; font-weight: 600; }
.search-results a small { color: var(--subtle); font-weight: 500; font-size: 13px; }
.search-results a:hover, .search-results a[aria-selected="true"] { background: var(--accent-softer); color: var(--accent-strong); }
.search-results li[role="presentation"]:not(:has(a)) { padding: 12px; color: var(--muted); }

/* ---------- Sections ---------- */
.section { padding: clamp(48px, 6vw, 88px) 0; }
.section-alt { background: var(--surface); }
.section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px 32px; margin-bottom: 28px; flex-wrap: wrap; }
.section-heading > div { max-width: 720px; }
.section-heading h2 { margin-bottom: .3em; }
.section-heading p { color: var(--muted); margin: 0; font-size: 1.05rem; }
.section-label, .eyebrow { margin: 0 0 8px; color: var(--accent-strong); font-size: 13px; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; }
.eyebrow a { color: inherit; text-decoration: none; }

/* ---------- Homepage hero ---------- */
.home-hero { padding: clamp(24px, 4vw, 48px) 0 clamp(36px, 5vw, 64px); background: var(--surface); }
.hero-card { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; padding: clamp(36px, 6vw, 72px) clamp(20px, 5vw, 64px); background: var(--card); border: 2px dashed color-mix(in srgb, var(--accent) 35%, var(--line-strong)); border-radius: var(--radius-xl); box-shadow: var(--shadow); transition: border-color .15s, background .15s; }
.hero-card.is-over { border-color: var(--accent); background: var(--accent-softer); }
.hero-card--plain { border-style: solid; border-color: var(--line); }
.hero-card__icon { display: grid; place-items: center; width: 76px; height: 76px; margin-bottom: 20px; border-radius: 22px; background: var(--accent); color: #fff; box-shadow: 0 16px 30px -16px color-mix(in srgb, var(--accent) 90%, transparent); }
.hero-card__icon .tn-svg { width: 40px; height: 40px; }
.hero-card h1 { margin-bottom: 12px; }
.hero-card__lead { max-width: 680px; margin: 0 auto 28px; color: var(--muted); font-size: clamp(1.02rem, .95rem + .4vw, 1.2rem); }
.hero-upload { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.hero-upload__button { min-width: 280px; cursor: pointer; }
.hero-upload__hint { margin: 0; color: var(--muted); }
.hero-upload__privacy, .upload-card__privacy, .footer-privacy, .privacy-note { display: inline-flex; align-items: center; gap: 8px; margin: 8px 0 0; color: var(--success); font-size: 14px; font-weight: 550; }
.hero-choose { width: 100%; max-width: 860px; }
.hero-choose__file { margin: 0 0 6px; color: var(--muted); }
.hero-choose__file span { font-weight: 650; color: var(--ink); }
.hero-choose__title { font-size: 1.3rem; margin: 10px 0 18px; }
.hero-choose__list { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; list-style: none; margin: 0; padding: 0; }
.hero-choice { display: inline-flex; align-items: center; min-height: 46px; padding: 10px 18px; border: 1.5px solid var(--line-strong); border-radius: 999px; background: var(--card); color: var(--ink); font-weight: 650; text-decoration: none; }
.hero-choice:hover, .hero-choice:focus-visible { border-color: var(--accent); color: var(--accent-strong); background: var(--accent-softer); }
.hero-choose__error { color: var(--danger); font-weight: 600; margin-top: 12px; }
.hero-card .search-box { width: min(620px, 100%); }
.hero-pills ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; list-style: none; margin: 24px 0 0; padding: 0; }
.hero-pills a { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px 6px 6px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); color: var(--ink); font-weight: 600; font-size: 14.5px; text-decoration: none; box-shadow: var(--shadow-sm); }
.hero-pills a:hover { border-color: var(--accent); color: var(--accent-strong); }
.hero-pills .tool-icon { width: 30px; height: 30px; border-radius: 999px; }
.hero-pills .tool-icon .tn-svg { width: 16px; height: 16px; }

/* ---------- Tool icons ---------- */
.tool-icon { --ic: var(--accent); display: inline-grid; place-items: center; flex: none; width: 48px; height: 48px; border-radius: 14px; background: color-mix(in srgb, var(--ic) 12%, var(--card)); color: var(--ic); }
.tool-icon .tn-svg { width: 26px; height: 26px; }
.tool-icon--custom { background: transparent; }
.tool-icon__img { width: 100%; height: 100%; object-fit: contain; border-radius: inherit; }
.tool-icon--pdf { --ic: #e5322d; }
.tool-icon--t-merge-pdf, .tool-icon--t-split-pdf, .tool-icon--t-organize-pdf, .tool-icon--t-extract-pages, .tool-icon--t-delete-pages { --ic: #e8630a; }
.tool-icon--t-compress-pdf { --ic: #16a34a; }
.tool-icon--t-pdf-to-word, .tool-icon--t-word-to-pdf { --ic: #2563eb; }
.tool-icon--t-pdf-to-jpg, .tool-icon--t-jpg-to-pdf { --ic: #d97706; }
.tool-icon--t-rotate-pdf, .tool-icon--t-page-numbers, .tool-icon--t-watermark-pdf { --ic: #9333ea; }
.tool-icon--t-protect-pdf, .tool-icon--t-unlock-pdf { --ic: #0f766e; }
.tool-icon--image { --ic: #7c3aed; }
.tool-icon--text { --ic: #0369a1; }
.tool-icon--developer { --ic: #334155; }
.tool-icon--seo { --ic: #0d9488; }
.tool-icon--calculator, .tool-icon--education { --ic: #4f46e5; }
.tool-icon--finance, .tool-icon--investment { --ic: #15803d; }
.tool-icon--unit-converter, .tool-icon--land { --ic: #b45309; }
.tool-icon--date-time, .tool-icon--health { --ic: #db2777; }
.tool-icon--creator, .tool-icon--generator, .tool-icon--utilities { --ic: #c026d3; }
html[data-theme="dark"] .tool-icon { background: color-mix(in srgb, var(--ic) 22%, var(--card)); color: color-mix(in srgb, var(--ic) 55%, #fff); }

/* ---------- Tool cards ---------- */
.tool-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 18px; list-style: none; margin: 0; padding: 0; }
.tool-card { position: relative; display: flex; flex-direction: column; gap: 10px; height: 100%; padding: 22px 22px 20px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg); color: var(--ink); text-decoration: none; box-shadow: var(--shadow-sm); transition: transform .15s, box-shadow .15s, border-color .15s; }
.tool-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: color-mix(in srgb, var(--accent) 30%, var(--line)); color: var(--ink); }
.tool-card__top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.tool-category { color: var(--subtle); font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; text-align: right; }
.tool-card__title { margin: 6px 0 0; font-size: 1.12rem; font-weight: 750; letter-spacing: -.01em; }
.tool-card p { margin: 0; color: var(--muted); font-size: 14.5px; line-height: 1.5; flex: 1; }
.tool-card__cta { display: inline-flex; align-items: center; gap: 6px; color: var(--accent-strong); font-weight: 650; font-size: 14px; opacity: 0; transform: translateX(-4px); transition: opacity .15s, transform .15s; }
.tool-card:hover .tool-card__cta, .tool-card:focus-visible .tool-card__cta { opacity: 1; transform: none; }
@media (hover: none) { .tool-card__cta { opacity: 1; transform: none; } }

.tool-links { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; list-style: none; margin: 0; padding: 0; }
.tool-link { display: flex; align-items: center; gap: 12px; padding: 10px 12px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); color: var(--ink); text-decoration: none; font-weight: 600; font-size: 15px; transition: border-color .15s, box-shadow .15s; }
.tool-link:hover { border-color: color-mix(in srgb, var(--accent) 35%, var(--line)); box-shadow: var(--shadow); color: var(--accent-strong); }
.tool-link .tool-icon { width: 38px; height: 38px; border-radius: 11px; }
.tool-link .tool-icon .tn-svg { width: 20px; height: 20px; }

.category-blocks { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; }
.category-block { padding: 20px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg); }
.category-block__head { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.category-block__head h3 { flex: 1; margin: 0; font-size: 1.05rem; }
.category-block__head h3 a { color: var(--ink); text-decoration: none; }
.category-block__head h3 a:hover { color: var(--accent-strong); }
.category-block .count { min-width: 28px; padding: 2px 8px; border-radius: 999px; background: var(--surface); color: var(--muted); font-size: 13px; font-weight: 700; text-align: center; }
.category-block ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.category-block li a { display: block; padding: 5px 0; color: var(--muted); text-decoration: none; font-size: 15px; }
.category-block li a:hover { color: var(--accent-strong); }

.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; list-style: none; margin: 0; padding: 0; counter-reset: none; }
.step { padding: 26px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg); }
.step__num { display: grid; place-items: center; width: 42px; height: 42px; margin-bottom: 14px; border-radius: 12px; background: var(--accent); color: #fff; font-weight: 800; font-size: 18px; }
.step p { color: var(--muted); margin: 0; }
.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 18px; margin-bottom: 32px; }
.feature { padding: 24px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg); }
.feature .tool-icon { margin-bottom: 14px; }
.feature p { margin: 0; color: var(--muted); }
.seo-copy { max-width: 860px; color: var(--muted); }

/* ---------- FAQ ---------- */
.faq-list { display: grid; gap: 12px; max-width: 900px; }
.faq-list details { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); transition: border-color .15s; }
.faq-list details[open] { border-color: color-mix(in srgb, var(--accent) 30%, var(--line)); box-shadow: var(--shadow); }
.faq-list summary { position: relative; padding: 18px 52px 18px 20px; font-weight: 650; cursor: pointer; list-style: none; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: ""; position: absolute; right: 20px; top: 50%; width: 10px; height: 10px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: translateY(-70%) rotate(45deg); transition: transform .15s; }
.faq-list details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq-list details p { margin: 0; padding: 0 20px 18px; color: var(--muted); }

/* ---------- Breadcrumbs ---------- */
.breadcrumbs { margin: 0 0 18px; font-size: 14px; }
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 0; padding: 0; }
.breadcrumbs li { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); }
.breadcrumbs li + li::before { content: "/"; color: var(--line-strong); }
.breadcrumbs a { color: var(--muted); text-decoration: none; }
.breadcrumbs a:hover { color: var(--accent-strong); text-decoration: underline; }
.breadcrumbs [aria-current] { color: var(--ink); font-weight: 600; }

/* ---------- Tool page ---------- */
.tool-hero { padding: 24px 0 clamp(36px, 5vw, 64px); background: var(--surface); }
.tool-hero--compact { padding-bottom: 32px; }
.tool-header { display: flex; flex-direction: column; align-items: center; text-align: center; max-width: 820px; margin: 8px auto 28px; }
.tool-header .tool-icon { width: 64px; height: 64px; border-radius: 18px; margin-bottom: 16px; }
.tool-header .tool-icon .tn-svg { width: 34px; height: 34px; }
.tool-header h1 { margin-bottom: 10px; }
.tool-lead, .tool-header .tool-lead p { margin: 0; color: var(--muted); font-size: clamp(1.02rem, .96rem + .3vw, 1.18rem); }
.tool-hero--compact .tool-header { margin-bottom: 0; }
.tool-stage { max-width: 1080px; margin: 0 auto; }
.tool-body { padding-top: clamp(40px, 5vw, 64px); }
.tool-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 48px; align-items: start; }
.tool-sidebar { position: sticky; top: calc(var(--header-h) + 20px); display: grid; gap: 18px; }
.side-card { padding: 20px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg); }
.side-card h2 { font-size: 1rem; margin-bottom: 12px; }
.side-card .tool-links { grid-template-columns: 1fr; gap: 6px; margin-bottom: 12px; }
.side-card .tool-link { padding: 6px 8px; border: 0; font-size: 14.5px; }
.side-card .tool-link:hover { box-shadow: none; background: var(--surface); }
.side-card .tool-link .tool-icon { width: 30px; height: 30px; }
.side-card .tool-link .tool-icon .tn-svg { width: 17px; height: 17px; }
.tool-toc ul { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0 0 32px; padding: 0; }
.tool-toc a { display: inline-block; padding: 6px 14px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); font-size: 14px; font-weight: 600; text-decoration: none; }
.tool-toc a:hover { border-color: var(--accent); color: var(--accent-strong); }
.tool-content > section { margin-bottom: 44px; }
.facts { display: grid; gap: 10px; margin: 0 0 20px; }
.facts > div { display: grid; grid-template-columns: 120px 1fr; gap: 12px; padding: 14px 16px; background: var(--surface); border-radius: var(--radius-sm); }
.facts dt { font-weight: 700; color: var(--ink); }
.facts dd { margin: 0; color: var(--muted); }
.privacy-note { display: flex; align-items: flex-start; gap: 12px; padding: 16px 18px; background: var(--success-soft); border-radius: var(--radius); color: var(--ink); font-size: 15.5px; font-weight: 500; }
.privacy-note .tn-svg { color: var(--success); margin-top: 2px; }
.howto-steps { padding-left: 0; list-style: none; counter-reset: step; display: grid; gap: 10px; }
.howto-steps li { position: relative; padding: 4px 0 4px 46px; counter-increment: step; min-height: 34px; }
.howto-steps li::before { content: counter(step); position: absolute; left: 0; top: 0; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 10px; background: var(--accent-soft); color: var(--accent-strong); font-weight: 800; font-size: 15px; }
.feature-list { padding-left: 0; list-style: none; display: grid; gap: 8px; }
.feature-list li { position: relative; padding-left: 28px; }
.feature-list li::before { content: ""; position: absolute; left: 4px; top: .45em; width: 12px; height: 7px; border-left: 2.5px solid var(--success); border-bottom: 2.5px solid var(--success); transform: rotate(-45deg); }
.example-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }
.example-card { padding: 18px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }
.example-card h3 { font-size: 1rem; }
.example-card p { margin: 0 0 6px; font-size: 15px; color: var(--muted); }
.related-section { padding-top: 24px; }

/* ---------- Prose ---------- */
.prose { max-width: 780px; }
.prose-wide { max-width: 980px; }
.prose h2 { margin-top: 1.6em; }
.prose > section > h2:first-child, .prose h2:first-child { margin-top: 0; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin: .3em 0; }
.prose .tool-toc ul, .prose .howto-steps, .prose .feature-list, .prose .tool-links { padding-left: 0; }
.prose .tool-toc li, .prose .tool-links li { margin: 0; }
.prose table { width: 100%; border-collapse: collapse; margin: 1em 0; }
.prose th, .prose td { padding: 10px 12px; border: 1px solid var(--line); text-align: left; }
.prose blockquote { margin: 1.4em 0; padding: 4px 20px; border-left: 4px solid var(--accent); color: var(--muted); }
.page-article { margin: 0 auto; }
.page-updated { color: var(--subtle); font-size: 14px; }
.notice { padding: 14px 16px; background: var(--warning-soft); border-radius: var(--radius-sm); color: var(--ink); font-size: 14.5px; }
.notice-success { background: var(--success-soft); }
.empty-state { padding: 40px 24px; text-align: center; background: var(--card); border: 1px dashed var(--line-strong); border-radius: var(--radius-lg); }
.empty-state p { color: var(--muted); }

/* ---------- Upload & PDF workspace ---------- */
.pdf-tool { position: relative; }
.upload-card { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: clamp(40px, 6vw, 72px) 20px; text-align: center; background: var(--card); border: 2px dashed color-mix(in srgb, var(--accent) 35%, var(--line-strong)); border-radius: var(--radius-xl); box-shadow: var(--shadow); transition: border-color .15s, background .15s; }
.upload-card.is-over { border-color: var(--accent); background: var(--accent-softer); }
.upload-card__icon { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 18px; background: var(--accent-soft); color: var(--accent); }
.upload-card__icon .tn-svg { width: 34px; height: 34px; }
.upload-card .button-xl { min-width: 280px; cursor: pointer; }
.upload-card__hint { margin: 0; color: var(--muted); }
.upload-card__limits { margin: 0; color: var(--subtle); font-size: 14px; }
.work-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 24px; align-items: start; }
.work-main { min-height: 280px; padding: 20px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.work-side { position: sticky; top: calc(var(--header-h) + 16px); }
.work-options { padding: 22px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.work-side__title { font-size: 1.2rem; margin-bottom: 4px; }
.work-side__count { color: var(--muted); margin: 0 0 14px; font-size: 14px; }
.work-options .field { margin-bottom: 14px; }
.work-options .button-xl { margin-top: 8px; }
.work-options .button-ghost { margin-top: 6px; }
.work-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 14px; }
.work-toolbar__hint { flex: 1; margin: 0; color: var(--muted); font-size: 14.5px; }
.file-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 14px; list-style: none; margin: 0; padding: 0; }
.file-list--compact { display: block; margin-bottom: 10px; }
.file-list--compact .file-card { flex-direction: row; align-items: center; padding: 8px 10px; }
.file-list--compact .file-card__thumb { display: none; }
.file-card { position: relative; display: flex; flex-direction: column; gap: 10px; padding: 12px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); cursor: default; }
.file-card[draggable="true"] { cursor: grab; }
.file-card.is-dragging { opacity: .5; }
.file-card__thumb { display: grid; place-items: center; height: 170px; overflow: hidden; background: var(--card); border-radius: 10px; border: 1px solid var(--line); }
.file-card__thumb canvas, .file-card__thumb img { max-height: 160px; width: auto; max-width: 100%; object-fit: contain; box-shadow: var(--shadow-sm); }
.file-card__ext { display: grid; place-items: center; width: 64px; height: 80px; border-radius: 8px; background: var(--accent); color: #fff; font-weight: 800; letter-spacing: .04em; }
.file-card__meta { min-width: 0; flex: 1; }
.file-card__meta strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14.5px; }
.file-card__meta span { color: var(--muted); font-size: 13px; }
.file-card__actions { display: flex; gap: 4px; justify-content: flex-end; }
.icon-btn { display: inline-grid; place-items: center; width: 34px; height: 34px; padding: 0; border: 1px solid var(--line); border-radius: 9px; background: var(--card); color: var(--ink); cursor: pointer; }
.icon-btn:hover:not(:disabled) { border-color: var(--accent); color: var(--accent-strong); }
.icon-btn:disabled { opacity: .35; cursor: not-allowed; }
.icon-btn--remove:hover:not(:disabled) { background: var(--danger-soft); }
.add-more { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 14px; padding: 14px; border: 2px dashed var(--line-strong); border-radius: var(--radius); color: var(--muted); font-weight: 650; cursor: pointer; }
.add-more:hover, .add-more:focus-within { border-color: var(--accent); color: var(--accent-strong); }
.page-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 16px; list-style: none; margin: 0; padding: 0; }
.page-tile { display: flex; flex-direction: column; gap: 6px; }
.page-tile__frame { position: relative; display: grid; place-items: center; aspect-ratio: 3 / 4; padding: 8px; background: var(--surface); border: 2px solid var(--line); border-radius: 12px; cursor: pointer; overflow: hidden; transition: border-color .15s, box-shadow .15s; }
.page-tile__frame:hover { border-color: var(--line-strong); }
.page-tile__frame canvas { max-width: 100%; max-height: 100%; width: auto; height: auto; box-shadow: var(--shadow-sm); transform: rotate(var(--rot, 0deg)); transition: transform .2s; }
.page-tile__ph { width: 70%; height: 80%; border-radius: 6px; background: linear-gradient(90deg, var(--line) 0%, var(--surface) 50%, var(--line) 100%); background-size: 200% 100%; animation: tn-shimmer 1.2s infinite linear; }
@keyframes tn-shimmer { to { background-position: -200% 0; } }
.page-tile.is-selected .page-tile__frame { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.page-tile.is-selected .page-tile__frame::after { content: "✓"; position: absolute; top: 8px; right: 8px; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 999px; background: var(--accent); color: #fff; font-weight: 800; font-size: 14px; }
.page-grid--select .page-tile__frame[aria-pressed="true"] { border-color: var(--accent); }
.page-tile.is-removed .page-tile__frame { opacity: .35; border-style: dashed; }
.page-tile.is-removed .page-tile__num { text-decoration: line-through; }
.page-tile.is-dragging { opacity: .5; }
.page-grid--organize { grid-template-columns: repeat(auto-fill, minmax(176px, 1fr)); }
.page-grid--organize .page-tile { cursor: grab; }
.page-grid--organize .page-tile__bar .icon-btn { width: 28px; height: 28px; }
.page-grid--organize .page-tile__bar { gap: 3px; }
.page-tile__bar { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 4px; }
.page-tile__num { min-width: 28px; color: var(--muted); font-size: 13px; font-weight: 700; text-align: center; }
.page-tile__bar .icon-btn { width: 30px; height: 30px; }
.pdf-error, .error-message { margin: 12px 0; padding: 12px 14px; background: var(--danger-soft); border-radius: var(--radius-sm); color: var(--danger); font-weight: 600; font-size: 14.5px; }
html[data-theme="dark"] .pdf-error, html[data-theme="dark"] .error-message { color: #ff9b97; }
.pdf-error a { color: inherit; font-weight: 750; }
.status-card { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; padding: clamp(36px, 6vw, 64px) 24px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-xl); box-shadow: var(--shadow); }
.status-card h2 { margin: 0; }
.status-card__spinner { width: 56px; height: 56px; border-radius: 999px; border: 5px solid var(--accent-soft); border-top-color: var(--accent); animation: tn-spin .8s linear infinite; }
@keyframes tn-spin { to { transform: rotate(360deg); } }
.progress { width: min(480px, 100%); height: 12px; margin-top: 8px; border-radius: 999px; background: var(--surface); overflow: hidden; }
.progress span { display: block; height: 100%; width: 0; border-radius: inherit; background: linear-gradient(90deg, var(--accent), color-mix(in srgb, var(--accent) 70%, #ff9a5a)); transition: width .25s; }
.status-card__text { margin: 0; color: var(--muted); min-height: 1.6em; }
.status-card__check { display: grid; place-items: center; width: 72px; height: 72px; border-radius: 999px; background: var(--success-soft); color: var(--success); }
.status-card__check .tn-svg { width: 38px; height: 38px; stroke-width: 2.4; }
.status-card__file { display: flex; flex-direction: column; gap: 2px; margin: 0; }
.status-card__file strong { word-break: break-all; }
.status-card__file span { color: var(--muted); font-size: 15px; }
.status-card__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 12px; }
.status-card__note { margin: 6px 0 0; color: var(--success); font-size: 14px; font-weight: 550; }
.next-tools { width: 100%; max-width: 720px; margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); }
.next-tools p { margin: 0 0 10px; color: var(--muted); font-weight: 600; }
.next-tools ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; list-style: none; margin: 0; padding: 0; }
.next-tools a { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px 6px 6px; border: 1px solid var(--line); border-radius: 999px; color: var(--ink); font-weight: 600; text-decoration: none; font-size: 14.5px; }
.next-tools a:hover { border-color: var(--accent); color: var(--accent-strong); }
.next-tools .tool-icon { width: 30px; height: 30px; border-radius: 999px; }
.next-tools .tool-icon .tn-svg { width: 16px; height: 16px; }

/* ---------- Forms (shared by calculators, text and image tools) ---------- */
.field { display: grid; gap: 6px; margin-bottom: 16px; }
.field > label, .field-check label { font-weight: 650; font-size: 14.5px; color: var(--ink); }
.field-optional { color: var(--subtle); font-weight: 500; }
.field input[type="text"], .field input[type="number"], .field input[type="email"], .field input[type="search"], .field input[type="password"], .field input[type="date"], .field input[type="url"], .field select, .field textarea, .directory-filters input, .directory-filters select {
  width: 100%; min-height: 46px; padding: 10px 14px; border: 1.5px solid var(--line-strong); border-radius: 12px; background: var(--card); color: var(--ink); font: 500 16px/1.4 var(--font); transition: border-color .15s, box-shadow .15s;
}
.field textarea { min-height: 150px; font-family: var(--mono); font-size: 14.5px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus, .directory-filters input:focus, .directory-filters select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.field input[type="color"] { width: 64px; height: 44px; padding: 4px; border: 1.5px solid var(--line-strong); border-radius: 10px; background: var(--card); cursor: pointer; }
.field-check label { display: flex; align-items: flex-start; gap: 10px; font-weight: 550; cursor: pointer; }
.field-check input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--accent); flex: none; }
.field-hint, .field-help { margin: 0; color: var(--subtle); font-size: 13.5px; }
.field-tools { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.field-count { color: var(--subtle); font-size: 13px; }
.file-load { cursor: pointer; }
.tool-workspace { padding: clamp(20px, 3vw, 32px); background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-xl); box-shadow: var(--shadow); }
.tool-form { display: block; }
.tool-form > .field { max-width: 100%; }
@media (min-width: 720px) { .tool-form:not(.contact-form) { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 20px; } .tool-form > .field:has(textarea), .tool-form > .field-file, .tool-form > .field-help, .tool-form > .tool-actions, .tool-form > .tool-status, .tool-form > .error-message, .tool-form > .result-panel, .tool-form > noscript, .tool-form > .notice { grid-column: 1 / -1; } }
.dropzone { position: relative; display: grid; place-items: center; padding: 32px 16px; border: 2px dashed color-mix(in srgb, var(--accent) 35%, var(--line-strong)); border-radius: var(--radius-lg); background: var(--accent-softer); text-align: center; transition: border-color .15s, background .15s; }
.dropzone.is-dragging, .dropzone:focus-within { border-color: var(--accent); }
.dropzone.has-file { background: var(--success-soft); border-color: var(--success); }
.dropzone input[type="file"] { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.dropzone-text { display: flex; flex-direction: column; align-items: center; gap: 8px; margin: 0; color: var(--muted); pointer-events: none; }
.dropzone-text .tn-svg { width: 34px; height: 34px; color: var(--accent); }
.dropzone-text strong { color: var(--accent-strong); }
.dropzone-file { margin: 8px 0 0; font-weight: 650; pointer-events: none; }
.tool-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 6px 0 4px; }
.tool-actions .button { min-width: 140px; }
.spinner { display: none; width: 16px; height: 16px; border: 2px solid rgba(255, 255, 255, .5); border-top-color: #fff; border-radius: 999px; animation: tn-spin .7s linear infinite; }
[aria-busy="true"] .spinner { display: inline-block; }
.tool-status { margin: 8px 0 0; color: var(--muted); font-size: 14px; min-height: 1.2em; }
.result-panel { margin-top: 18px; padding: 20px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); }
.result-panel .eyebrow { color: var(--success); }
.result-value { margin: 4px 0 8px; padding: 0; background: none; color: var(--ink); font: 750 clamp(1.25rem, 1.1rem + .8vw, 1.8rem)/1.3 var(--font); white-space: pre-wrap; word-break: break-word; }
.result-value:empty::before { content: "—"; color: var(--subtle); }
.result-details { margin: 0 0 12px; color: var(--muted); white-space: pre-line; }
.image-preview { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 12px 0; }
.image-preview figure { margin: 0; padding: 10px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }
.image-preview img { max-height: 260px; margin: 0 auto; object-fit: contain; }
.image-preview figcaption { margin-top: 6px; color: var(--muted); font-size: 13px; text-align: center; }
.contact-form { max-width: 640px; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.tn-hp { position: absolute !important; left: -9999px !important; }

/* ---------- Directory, chips, categories ---------- */
.chip-list { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0 0 20px; padding: 0; }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--card); color: var(--ink); font-weight: 600; font-size: 14.5px; text-decoration: none; }
.chip:hover { border-color: var(--accent); color: var(--accent-strong); }
.chip small { color: var(--subtle); font-weight: 600; }
.directory-page .tool-header, .category-page .tool-header { margin-top: 0; }
.directory-filters { display: grid; grid-template-columns: 2fr 1fr; gap: 16px; margin: 8px 0 12px; padding: 18px; background: var(--surface); border-radius: var(--radius-lg); }
.directory-filters .field { margin: 0; }
.directory-count { color: var(--muted); font-weight: 600; }
.other-categories { padding-top: 0; }
.guide-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
.guide-grid article { padding: 22px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg); }
.guide-grid article img { border-radius: var(--radius); margin-bottom: 14px; }
.html-sitemap ul { columns: 2; }

/* ---------- Ads ---------- */
.ad-slot { display: block; min-height: 280px; margin: 32px 0; padding: 8px; text-align: center; background: var(--surface); border-radius: var(--radius); }
.ad-slot small { display: block; margin-bottom: 4px; color: var(--subtle); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; }
.ad-slot--sidebar { min-height: 600px; margin: 0; }

/* ---------- Footer ---------- */
.site-footer { margin-top: 0; padding: 56px 0 28px; background: var(--surface); border-top: 1px solid var(--line); }
.footer-grid { display: grid; grid-template-columns: 1.6fr repeat(4, minmax(0, 1fr)); gap: 32px; }
.footer-about p { color: var(--muted); font-size: 15px; max-width: 340px; margin-top: 14px; }
.footer-grid nav h2 { margin: 0 0 12px; font-size: 14px; font-weight: 750; letter-spacing: .06em; text-transform: uppercase; color: var(--ink); }
.footer-grid nav ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer-grid nav a { color: var(--muted); text-decoration: none; font-size: 15px; }
.footer-grid nav a:hover { color: var(--accent-strong); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--subtle); font-size: 14px; }
.footer-bottom p { margin: 0; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .footer-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer-about { grid-column: 1 / -1; }
  .mega-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 960px) {
  .tool-layout { grid-template-columns: 1fr; gap: 24px; }
  .tool-sidebar { position: static; }
  .work-layout { grid-template-columns: 1fr; }
  .work-side { position: static; order: 2; }
  .ad-slot--sidebar { min-height: 280px; }
}
@media (max-width: 640px) {
  :root { --header-h: 60px; }
  .container { width: min(100% - 28px, var(--container)); }
  .brand { font-size: 1.12rem; }
  .brand-mark { width: 34px; height: 34px; }
  .hero-card { border-radius: var(--radius-lg); }
  .hero-upload__button, .upload-card .button-xl { min-width: 0; width: 100%; }
  .tool-grid { grid-template-columns: 1fr; gap: 12px; }
  .tool-card { flex-direction: row; flex-wrap: wrap; align-items: center; padding: 16px; gap: 6px 14px; border-radius: var(--radius); }
  .tool-card__top { width: auto; }
  .tool-card__top .tool-category { display: none; }
  .tool-card__title { flex: 1; margin: 0; font-size: 1.02rem; min-width: 0; }
  .tool-card p { flex-basis: 100%; }
  .tool-card__cta { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
  .directory-filters { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .facts > div { grid-template-columns: 1fr; gap: 2px; }
  .image-preview { grid-template-columns: 1fr; }
  .work-main { padding: 14px; }
  .file-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .file-card__thumb { height: 130px; }
  .page-grid { grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 10px; }
  .status-card__actions .button { width: 100%; }
  .html-sitemap ul { columns: 1; }
  .section-heading { margin-bottom: 20px; }
}
@media print {
  .site-header, .site-footer, .tool-sidebar, .ad-slot, .tool-toc, .related-section { display: none !important; }
  body { background: #fff; color: #000; }
}
