/* ===================================================================
   ToolNest design system — hand-written, no build step, no CDN deps.
   =================================================================== */

:root {
  --brand-50:  #eff5ff;
  --brand-100: #dbe9fe;
  --brand-200: #bfdbfe;
  --brand-300: #93c5fd;
  --brand-400: #60a5fa;
  --brand-500: #3b82f6;
  --brand-600: #2743e3;
  --brand-700: #1d4ed8;
  --accent-500:#14b8a6;
  --accent-600:#2743e3;

  --ink-900: #0b1220;
  --ink-800: #121a2b;
  --ink-700: #1e293b;
  --ink-600: #334155;
  --ink-500: #475569;
  --ink-400: #64748b;
  --ink-300: #94a3b8;
  --ink-200: #cbd5e1;
  --ink-100: #e2e8f0;
  --ink-50:  #f1f5f9;

  --bg: #ffffff;
  --bg-alt: #f6f8fb;
  --surface: #ffffff;
  --text: var(--ink-800);
  --text-soft: var(--ink-500);
  --border: var(--ink-100);
  --shadow: 0 1px 2px rgba(15,23,42,.04), 0 8px 24px -8px rgba(15,23,42,.10);
  --shadow-lg: 0 20px 45px -15px rgba(15,23,42,.25);
  --radius: 14px;
  --radius-sm: 8px;
  --maxw: 1240px;
  --header-h: 72px;
}

[data-theme="dark"] {
  --bg: #0b1220;
  --bg-alt: #0f1729;
  --surface: #141d33;
  --text: #eaf0fb;
  --text-soft: #9bacc9;
  --border: #233048;
  --shadow: 0 1px 2px rgba(0,0,0,.3), 0 8px 28px -10px rgba(0,0,0,.55);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  transition: background .2s ease, color .2s ease;
}
img { max-width: 100%; display: block; }
a { color: var(--brand-600); text-decoration: none; }
a:hover { text-decoration: underline; }
h1,h2,h3,h4 { line-height: 1.25; letter-spacing: -.01em; margin: 0 0 .5em; color: var(--text); }
h1 { font-size: clamp(1.9rem, 1.4rem + 1.6vw, 2.75rem); font-weight: 800; }
h2 { font-size: clamp(1.4rem, 1.2rem + 0.8vw, 1.9rem); font-weight: 800; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 1em; color: var(--text); }
code, pre, textarea, .mono { font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace; }
hr { border: none; border-top: 1px solid var(--border); margin: 2.5rem 0; }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
.section { padding: 56px 0; }
.section-tight { padding: 32px 0; }
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-2 { gap: 8px; } .gap-3 { gap: 12px; } .gap-4 { gap: 16px; } .gap-6 { gap: 24px; }
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-6 { grid-template-columns: repeat(6, 1fr); }
@media (max-width: 980px) { .grid-3, .grid-4, .grid-6 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .grid-2, .grid-3, .grid-4, .grid-6 { grid-template-columns: 1fr; } }
.muted { color: var(--text-soft); }
.center { text-align: center; }
.w-full { width: 100%; }
.mt-0{margin-top:0} .mb-0{margin-bottom:0}
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--brand-50); color: var(--brand-700);
  border: 1px solid var(--brand-100);
  font-size: .78rem; font-weight: 700; letter-spacing: .02em;
  padding: 5px 12px; border-radius: 999px; text-transform: uppercase;
}
[data-theme="dark"] .badge { background: rgba(59,130,246,.12); color: var(--brand-300); border-color: rgba(59,130,246,.25); }

/* ---------- Buttons / inputs ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 1px solid transparent; border-radius: var(--radius-sm);
  padding: 11px 18px; font-weight: 600; font-size: .94rem; cursor: pointer;
  transition: transform .12s ease, box-shadow .12s ease, background .15s ease, border-color .15s ease;
  background: var(--surface); color: var(--text); border-color: var(--border);
}
.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow); }
.btn:active { transform: translateY(0); }
.btn-primary { background: linear-gradient(135deg, var(--brand-600), var(--accent-600)); color: #fff; border-color: transparent; }
.btn-primary:hover { box-shadow: 0 10px 24px -8px rgba(39,67,227,.55); }
.btn-outline { background: transparent; border-color: var(--border); color: var(--text); }
.btn-ghost { background: transparent; border-color: transparent; color: var(--brand-600); }
.btn-sm { padding: 7px 12px; font-size: .82rem; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .55; cursor: not-allowed; transform: none; }

.field { margin-bottom: 16px; }
.field label { display: block; font-weight: 600; font-size: .86rem; margin-bottom: 6px; color: var(--text); }
.field .hint { font-size: .78rem; color: var(--text-soft); margin-top: 4px; }
.input, .select, .textarea {
  width: 100%; padding: 11px 13px; border-radius: var(--radius-sm);
  border: 1.5px solid var(--border); background: var(--bg-alt); color: var(--text);
  font-size: .95rem; font-family: inherit; transition: border-color .15s ease, box-shadow .15s ease;
}
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--brand-500); box-shadow: 0 0 0 3px rgba(59,130,246,.18); }
.textarea { min-height: 180px; resize: vertical; line-height: 1.55; }
.input-row { display: flex; gap: 10px; flex-wrap: wrap; }
.input-row > * { flex: 1; min-width: 140px; }
.field-inline { margin-bottom: 8px; }
.field-inline label { display: flex; align-items: center; gap: 8px; font-weight: 500; cursor: pointer; }
.field-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 4px 16px; margin-bottom: 16px; }
.field-row { display: flex; gap: 10px; margin-bottom: 10px; }
.field-row > .field { flex: 1; margin-bottom: 0; }
.checkbox-row { display: flex; align-items: center; gap: 8px; font-size: .9rem; }

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 60; height: var(--header-h);
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px); border-bottom: 1px solid var(--border);
}
.site-header .container { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.2rem; color: var(--text); }
.brand:hover { text-decoration: none; }
.brand .mark { width: 34px; height: 34px; border-radius: 10px; background: linear-gradient(135deg,var(--brand-600),var(--accent-500)); display:flex; align-items:center; justify-content:center; color:#fff; font-weight:900; }
.nav { display: flex; align-items: center; gap: 6px; }
.nav-link { padding: 10px 12px; border-radius: var(--radius-sm); font-weight: 600; font-size: .92rem; color: var(--text); position: relative; }
.nav-link:hover { background: var(--bg-alt); text-decoration: none; }
.has-mega { position: relative; }
.mega {
  position: absolute; top: calc(100% + 10px); left: 50%; transform: translateX(-50%);
  width: min(880px, 92vw); background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: 22px;
  display: none; grid-template-columns: repeat(3, 1fr); gap: 18px 26px;
}
.has-mega:hover .mega, .has-mega:focus-within .mega { display: grid; }
.mega h4 { font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: var(--text-soft); margin-bottom: 8px; }
.mega a { display: block; padding: 5px 0; font-size: .88rem; color: var(--text); font-weight: 500; }
.mega a:hover { color: var(--brand-600); text-decoration: none; }
.header-actions { display: flex; align-items: center; gap: 10px; }
.theme-toggle { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--border); background: var(--bg-alt); display: flex; align-items: center; justify-content: center; cursor: pointer; }
.menu-btn { display: none; }
.search-box { position: relative; }
.search-box input { width: 230px; }
.search-results { position: absolute; top: calc(100% + 8px); left: 0; right: 0; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); box-shadow: var(--shadow-lg); max-height: 340px; overflow: auto; display: none; z-index: 80; }
.search-results.show { display: block; }
.search-results a { display: block; padding: 9px 12px; font-size: .88rem; color: var(--text); border-bottom: 1px solid var(--border); }
.search-results a:last-child { border-bottom: none; }
.search-results a:hover { background: var(--bg-alt); text-decoration:none; }
.search-results .sr-cat { font-size: .72rem; color: var(--text-soft); }

@media (max-width: 980px) {
  .nav, .search-box { display: none; }
  .menu-btn { display: inline-flex; }
}

.mobile-nav { position: fixed; inset: 0; z-index: 90; display: none; }
body.mobile-nav-open .mobile-nav { display: block; }
.mobile-nav-backdrop { position: absolute; inset: 0; background: rgba(11,18,32,.55); }
.mobile-nav-panel { position: absolute; top: 0; right: 0; bottom: 0; width: min(320px, 86vw); background: var(--surface); padding: 22px 20px; overflow-y: auto; box-shadow: var(--shadow-lg); }
.mobile-nav-panel .mn-search { margin-bottom: 16px; }
.mobile-nav-panel .mn-search input { width: 100%; }
.mobile-nav-panel a { display: block; padding: 11px 2px; font-weight: 600; font-size: .92rem; border-bottom: 1px solid var(--border); color: var(--text); }
.mobile-nav-panel h4 { font-size: .76rem; text-transform: uppercase; letter-spacing: .05em; color: var(--text-soft); margin: 20px 0 6px; }
.mobile-nav-panel .mn-close { display: flex; justify-content: flex-end; margin-bottom: 6px; }
.mobile-nav-panel .mn-close button { background: none; border: none; font-size: 1.4rem; cursor: pointer; color: var(--text-soft); line-height: 1; }

/* ---------- Hero ---------- */
.hero { padding: 64px 0 40px; background: radial-gradient(1100px 420px at 80% -10%, var(--brand-100), transparent), radial-gradient(900px 380px at 0% 0%, rgba(20,184,166,.10), transparent); }
[data-theme="dark"] .hero { background: radial-gradient(1100px 420px at 80% -10%, rgba(59,130,246,.14), transparent), radial-gradient(900px 380px at 0% 0%, rgba(20,184,166,.10), transparent); }
.hero h1 { max-width: 820px; }
.hero .lead { font-size: 1.12rem; color: var(--text-soft); max-width: 680px; }
.hero-search { max-width: 680px; margin-top: 26px; position: relative; }
.hero-search input { padding: 16px 18px; font-size: 1rem; border-radius: 14px; box-shadow: var(--shadow); }
.stat-row { display: flex; gap: 28px; margin-top: 28px; flex-wrap: wrap; }
.stat b { display: block; font-size: 1.5rem; font-weight: 800; color: var(--brand-700); }
[data-theme="dark"] .stat b { color: var(--brand-300); }
.stat span { font-size: .82rem; color: var(--text-soft); }

/* ---------- Cards ---------- */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.cat-card { display: block; padding: 22px; border-radius: var(--radius); border: 1px solid var(--border); background: var(--surface); transition: transform .15s ease, box-shadow .15s ease; }
.cat-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); text-decoration: none; }
.cat-card .icon { width: 46px; height: 46px; border-radius: 12px; display:flex; align-items:center; justify-content:center; background: var(--brand-50); color: var(--brand-700); margin-bottom: 14px; }
[data-theme="dark"] .cat-card .icon { background: rgba(59,130,246,.14); color: var(--brand-300); }
.cat-card h3 { margin-bottom: 6px; }
.cat-card p { color: var(--text-soft); font-size: .9rem; margin-bottom: 0; }
.cat-card .count { font-size: .78rem; color: var(--brand-600); font-weight: 700; margin-top: 10px; display:block; }

.tool-card { display: block; padding: 16px; border-radius: var(--radius-sm); border: 1px solid var(--border); background: var(--surface); font-weight: 600; font-size: .92rem; color: var(--text); transition: border-color .15s ease, transform .15s ease; }
.tool-card:hover { border-color: var(--brand-300); transform: translateY(-2px); text-decoration: none; }
.tool-card .sub { display:block; font-size: .76rem; color: var(--text-soft); font-weight: 500; margin-top: 4px; }

.tool-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
@media (max-width: 980px) { .tool-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .tool-grid { grid-template-columns: 1fr; } }

/* ---------- Tool page layout ---------- */
.breadcrumbs { font-size: .82rem; color: var(--text-soft); margin-bottom: 14px; }
.breadcrumbs a { color: var(--text-soft); }
.breadcrumbs .sep { margin: 0 6px; }
.tool-hero { padding: 36px 0 8px; }
.tool-hero h1 { margin-bottom: 8px; }
.tool-hero .lead { color: var(--text-soft); max-width: 760px; }
.tool-layout { display: grid; grid-template-columns: 1fr 300px; gap: 28px; align-items: start; }
@media (max-width: 980px) { .tool-layout { grid-template-columns: 1fr; } }
.widget { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.widget-toolbar { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 14px; }
.output-box { margin-top: 16px; }
.output-box .textarea, .output-box pre { background: var(--bg-alt); }
.swap-btn { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--border); background: var(--bg-alt); cursor: pointer; display: flex; align-items: center; justify-content: center; }
.result-panel { margin-top: 18px; padding: 18px; border-radius: var(--radius-sm); background: var(--bg-alt); border: 1px dashed var(--border); }
.result-panel .big { font-size: 1.7rem; font-weight: 800; color: var(--brand-700); }
[data-theme="dark"] .result-panel .big { color: var(--brand-300); }
.result-table { width: 100%; border-collapse: collapse; margin-top: 10px; }
.result-table td, .result-table th { padding: 8px 10px; border-bottom: 1px solid var(--border); font-size: .88rem; text-align: left; }
.dropzone { border: 2px dashed var(--border); border-radius: var(--radius); padding: 34px 18px; text-align: center; cursor: pointer; background: var(--bg-alt); }
.dropzone.drag { border-color: var(--brand-500); background: var(--brand-50); }
.preview-canvas-wrap { margin-top: 16px; text-align: center; background: repeating-conic-gradient(var(--bg-alt) 0% 25%, var(--bg) 0% 50%) 50% / 18px 18px; border-radius: var(--radius-sm); border: 1px solid var(--border); padding: 12px; overflow: auto; }
.preview-canvas-wrap canvas, .preview-canvas-wrap img { margin: 0 auto; max-height: 420px; }
.toast { position: fixed; bottom: 22px; right: 22px; background: var(--ink-900); color: #fff; padding: 12px 18px; border-radius: 10px; font-size: .88rem; box-shadow: var(--shadow-lg); z-index: 200; opacity: 0; transform: translateY(12px); transition: all .25s ease; }
.toast.show { opacity: 1; transform: translateY(0); }
.color-swatch { width: 44px; height: 44px; border-radius: 10px; border: 1px solid var(--border); display:inline-block; vertical-align: middle; }

.side-card { margin-bottom: 18px; }
.side-card h4 { font-size: .85rem; text-transform: uppercase; letter-spacing: .04em; color: var(--text-soft); margin-bottom: 12px; }
.related-list a { display: block; padding: 9px 0; border-bottom: 1px solid var(--border); font-size: .9rem; font-weight: 600; }
.related-list a:last-child { border-bottom: none; }
.ad-slot { border: 1px dashed var(--border); border-radius: var(--radius-sm); padding: 18px; text-align: center; color: var(--text-soft); font-size: .78rem; background: var(--bg-alt); }

/* ---------- Article / content blocks ---------- */
.article { max-width: 1240px; margin: 0 auto; }
.article h2 { margin-top: 2.2em; }
.article ul, .article ol { padding-left: 1.3em; }
.article li { margin-bottom: .5em; }
.faq-item { border-bottom: 1px solid var(--border); padding: 16px 0; }
.faq-item summary { cursor: pointer; font-weight: 700; list-style: none; display:flex; align-items:center; justify-content:space-between; }
.faq-item summary::-webkit-details-marker { display:none; }
.faq-item summary:after { content: "+"; font-size: 1.3rem; color: var(--text-soft); }
.faq-item[open] summary:after { content: "–"; }
.faq-item p { margin-top: 10px; color: var(--text-soft); }
.feature-list { list-style:none; padding:0; margin:0; display:grid; gap:10px; grid-template-columns: repeat(2,1fr); }
@media (max-width:620px){ .feature-list{grid-template-columns:1fr;} }
.feature-list li { display:flex; gap:10px; align-items:flex-start; font-size:.92rem; }
.feature-list li:before { content:"✓"; color: var(--accent-600); font-weight:900; }
.toc { background: var(--bg-alt); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 16px 20px; font-size: .9rem; }
.toc a { display:block; padding: 4px 0; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink-900); color: var(--ink-200); margin-top: 60px; padding: 52px 0 24px; }
.site-footer a { color: var(--ink-200); }
.site-footer a:hover { color: #fff; }
.site-footer h4 { color: #fff; font-size: .85rem; text-transform: uppercase; letter-spacing: .05em; margin-bottom: 14px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr 1fr; gap: 24px; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: repeat(2,1fr); } }
.footer-grid li { margin-bottom: 8px; font-size: .88rem; }
.footer-grid ul { list-style:none; padding:0; }
.footer-bottom { border-top: 1px solid var(--ink-700); margin-top: 36px; padding-top: 20px; display:flex; justify-content:space-between; flex-wrap:wrap; gap:10px; font-size:.82rem; color: var(--ink-300); }

.cat-hero { padding: 44px 0 18px; }
.pill-row { display:flex; gap:8px; flex-wrap:wrap; margin-top:16px; }
.pill { padding:6px 14px; border-radius:999px; border:1px solid var(--border); font-size:.82rem; font-weight:600; background: var(--surface); }

.error-page { min-height: 60vh; display:flex; align-items:center; justify-content:center; text-align:center; }
.error-page .code { font-size: 6rem; font-weight: 900; color: var(--brand-200); }

.skip-link{position:absolute;left:-9999px;}
.skip-link:focus{left:10px;top:10px;background:#fff;padding:8px 12px;border-radius:6px;z-index:999;}

/* ---------- Tool result extras (stats / image grids / errors / busy) ---------- */
.big-label { font-size: .82rem; color: var(--text-soft); margin-top: 2px; }
.result-title { font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--text-soft); margin-bottom: 10px; }
.result-note { margin-top: 12px; margin-bottom: 0; font-size: .85rem; }

.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
@media (max-width: 620px) { .stat-grid { grid-template-columns: repeat(2, 1fr); } }
.stat-cell { text-align: center; padding: 10px 6px; }
.stat-num { font-size: 1.5rem; font-weight: 800; color: var(--brand-700); }
[data-theme="dark"] .stat-num { color: var(--brand-300); }
.stat-lbl { font-size: .76rem; color: var(--text-soft); margin-top: 4px; }

.image-result-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; }
.image-result-item { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 10px; text-align: center; }
.result-thumb { max-width: 100%; max-height: 130px; margin: 0 auto 10px; border-radius: 6px; background: repeating-conic-gradient(var(--bg-alt) 0% 25%, var(--bg) 0% 50%) 50% / 14px 14px; }
.image-result-meta { display: flex; flex-direction: column; gap: 8px; align-items: center; font-size: .82rem; word-break: break-all; }

.error-msg { margin-top: 14px; padding: 12px 14px; border-radius: var(--radius-sm); background: rgba(239,68,68,.1); border: 1px solid rgba(239,68,68,.35); color: #b91c1c; font-size: .88rem; }
[data-theme="dark"] .error-msg { background: rgba(239,68,68,.14); color: #fca5a5; border-color: rgba(239,68,68,.4); }

.widget.is-busy { opacity: .6; pointer-events: none; transition: opacity .15s ease; }

/* ================= Nav dropdown (replaces mega-menu) ================= */
.has-dropdown { position: relative; }
.has-dropdown > button.nav-link { background: none; border: none; cursor: pointer; font-family: inherit; }
.dropdown-panel {
  display: none;
  position: absolute; top: calc(100% + 8px); left: 0;
  min-width: 280px; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: 10px; z-index: 90;
}
.has-dropdown.open .dropdown-panel,
.has-dropdown:focus-within .dropdown-panel { display: block; }
.dropdown-panel a { display: flex; align-items:center; justify-content:space-between; gap: 10px; padding: 9px 10px; border-radius: var(--radius-sm); font-size: .9rem; font-weight: 600; color: var(--text); }
.dropdown-panel a:hover { background: var(--bg-alt); text-decoration: none; }
.dropdown-panel .dd-count { font-size: .72rem; font-weight: 700; color: var(--text-soft); background: var(--bg-alt); padding: 2px 7px; border-radius: 999px; }
.dropdown-panel .dd-divider { height: 1px; background: var(--border); margin: 6px 2px; }
.dropdown-panel .dd-all { color: var(--brand-600); }

/* ================= Content page hero (About / Contact / Legal / Sitemap / 404) ================= */
.content-hero { padding: 40px 0 8px; }
.content-hero h1 { margin-bottom: 8px; }
.content-hero .lead { color: var(--text-soft); max-width: 720px; }

/* ================= On-this-page TOC ================= */
.page-toc { display: flex; gap: 8px 18px; flex-wrap: wrap; margin: 18px 0 0; }
.page-toc a { font-size: .84rem; font-weight: 600; color: var(--brand-600); padding: 6px 0; }

/* ================= Share bar + Embed ================= */
.share-bar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: 18px 0 26px; padding: 14px 16px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--bg-alt); }
.share-label { font-size: .82rem; font-weight: 700; color: var(--text-soft); text-transform: uppercase; letter-spacing: .04em; }
.share-icons { display: flex; gap: 8px; }
.share-icon { width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--border); background: var(--surface); color: var(--text); display: flex; align-items: center; justify-content: center; cursor: pointer; transition: transform .15s ease, color .15s ease, border-color .15s ease; }
.share-icon:hover { color: var(--brand-600); border-color: var(--brand-300); transform: translateY(-1px); }
.embed-panel { flex-basis: 100%; margin-top: 10px; padding-top: 12px; border-top: 1px dashed var(--border); }
.embed-panel[hidden] { display: none; }
.embed-hint { font-size: .82rem; color: var(--text-soft); margin-bottom: 8px; }
.embed-code { font-size: .8rem; margin-bottom: 8px; }

/* ================= Sitemap page ================= */
.sitemap-col h3 { font-size: 1rem; margin-bottom: 10px; padding-bottom: 8px; border-bottom: 1px solid var(--border); }
.sitemap-col ul { list-style: none; padding: 0; margin: 0; }
.sitemap-col li { margin-bottom: 7px; font-size: .88rem; }
.sitemap-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px 24px; }
.sitemap-meta { margin-top: 36px; padding-top: 24px; border-top: 1px solid var(--border); display: flex; gap: 28px; flex-wrap: wrap; }
.sitemap-meta a { font-weight: 700; }

@media (max-width: 900px) {
  .sitemap-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .sitemap-grid { grid-template-columns: 1fr; }
  .dropdown-panel { position: fixed; left: 12px; right: 12px; top: 66px; }
}
