/* ============================================================
   COLOR NAMES — Page Styles
   HtmlColor.Codes · color-names.css
   ============================================================ */

/* ── CSS VARIABLES ── */
:root {
  --brand: #e8400a;
  --brand-bg: rgba(232,64,10,.09);
  --brand-border: rgba(232,64,10,.22);
  --bg: #ffffff;
  --bg2: #f7f7f7;
  --bg3: #efefef;
  --border: #e0e0e0;
  --text: #111111;
  --text2: #444444;
  --muted: #777777;
  --card: #ffffff;
  --nav-bg: rgba(255,255,255,.96);
  --shadow: 0 2px 14px rgba(0,0,0,.07);
  --shadow-lg: 0 8px 36px rgba(0,0,0,.13);
  --radius: 12px;
  --radius-sm: 8px;
  --mono: 'JetBrains Mono', monospace;
  --sans: 'Inter', sans-serif;
  --fs-nav: 16px;
  --fs-body: 21px;
  --fs-small: 16px;
  --fs-h1: 50px;
  --fs-h2: 40px;
  --fs-h3: 24px;
  --transition: .2s ease;
}

html.dark {
  --bg: #111111;
  --bg2: #1a1a1a;
  --bg3: #252525;
  --border: #333333;
  --text: #eeeeee;
  --text2: #cccccc;
  --muted: #888888;
  --card: #1a1a1a;
  --nav-bg: rgba(17,17,17,.96);
  --shadow: 0 2px 14px rgba(0,0,0,.4);
  --shadow-lg: 0 8px 36px rgba(0,0,0,.6);
}

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--text);
  font-size: var(--fs-body);
  line-height: 1.65;
  overflow-x: hidden;
  transition: background .25s, color .25s;
}
a { color: inherit; text-decoration: none; }
h1,h2,h3,h4,h5,h6 {
  font-family: var(--sans);
  font-weight: 700;
  letter-spacing: -.03em;
  line-height: 1.15;
  -webkit-font-smoothing: antialiased;
}
code {
  font-family: var(--mono);
  font-size: .84em;
  background: var(--bg3);
  padding: 2px 7px;
  border-radius: 4px;
  color: var(--brand);
}

/* ── NAV ── */
nav {
  position: sticky; top: 0; z-index: 200;
  background: var(--nav-bg);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 28px; height: 62px;
  box-shadow: var(--shadow); gap: 12px;
}
.nav-logo { font-weight: 700; font-size: 1.1rem; letter-spacing: -.5px; display: flex; align-items: center; gap: 6px; white-space: nowrap; }
.nav-logo .hash { color: var(--brand); font-size: 1.35rem; }
.nav-links { display: flex; align-items: center; gap: 2px; list-style: none; }
.nav-links a {
  display: flex; align-items: center; gap: 5px;
  padding: 6px 11px; border-radius: 8px;
  font-size: var(--fs-nav); font-weight: 600; color: var(--text2);
  transition: background var(--transition), color var(--transition);
}
.nav-links a:hover, .nav-links a.active { background: var(--bg3); color: var(--brand); }
.nav-links svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.nav-right { display: flex; align-items: center; gap: 8px; }
.theme-toggle { display: flex; align-items: center; background: var(--bg3); border: 1.5px solid var(--border); border-radius: 50px; padding: 3px; gap: 2px; }
.tbtn { width: 30px; height: 30px; border-radius: 50px; border: none; background: transparent; cursor: pointer; font-size: 13px; display: flex; align-items: center; justify-content: center; transition: background .2s; color: var(--muted); }
.tbtn.act { background: var(--brand); color: #fff; }

/* ── BREADCRUMB ── */
.breadcrumb { max-width: 1100px; margin: 0 auto; padding: 14px 24px 0; font-size: var(--fs-small); color: var(--muted); display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.breadcrumb a { color: var(--brand); font-weight: 600; }
.breadcrumb a:hover { text-decoration: underline; }

/* ── HERO ── */
.page-hero { max-width: 1100px; margin: 0 auto; padding: 52px 24px 44px; }
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--brand-bg); color: var(--brand);
  border: 1px solid var(--brand-border); border-radius: 50px;
  padding: 4px 14px; font-size: var(--fs-small); font-weight: 700;
  letter-spacing: .07em; text-transform: uppercase; margin-bottom: 18px;
}
.page-hero h1 { font-size: var(--fs-h1); font-weight: 700; letter-spacing: -.04em; margin-bottom: 16px; max-width: 760px; }
.page-hero h1 em { color: var(--brand); font-style: normal; }
.page-hero .lead { font-size: var(--fs-body); color: var(--text2); max-width: 660px; margin-bottom: 28px; line-height: 1.72; }
.hero-stats { display: flex; gap: 32px; flex-wrap: wrap; padding-top: 24px; border-top: 1px solid var(--border); }
.hero-stat { display: flex; flex-direction: column; }
.hero-stat .n { font-size: 1.5rem; font-weight: 700; color: var(--brand); letter-spacing: -.04em; }
.hero-stat .l { font-size: var(--fs-small); color: var(--muted); font-weight: 600; margin-top: 1px; }

/* ── DIVIDER ── */
.hr { border: none; border-top: 1px solid var(--border); margin: 0; }

/* ── TOOL SHELL ── */
.tool-section { background: var(--bg2); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.tool-inner { max-width: 1100px; margin: 0 auto; padding: 0 24px; }

/* ── TOOLBAR ── */
.toolbar {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  padding: 16px 0; border-bottom: 1px solid var(--border);
}
.search-wrap {
  display: flex; align-items: center; gap: 8px;
  background: var(--card); border: 1.5px solid var(--border);
  border-radius: 9px; padding: 9px 14px;
  flex: 1; max-width: 340px; transition: border-color .2s;
}
.search-wrap:focus-within { border-color: var(--brand); }
.search-wrap svg { width: 18px; height: 18px; stroke: var(--muted); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.search-wrap input { border: none; background: transparent; font-size: var(--fs-nav); color: var(--text); font-family: var(--sans); flex: 1; min-width: 0; }
.search-wrap input:focus { outline: none; }
.search-wrap input::placeholder { color: var(--muted); }

.filter-pills { display: flex; gap: 5px; flex-wrap: wrap; }
.pill {
  padding: 6px 13px; border-radius: 20px;
  border: 1.5px solid var(--border); background: var(--card);
  font-size: var(--fs-small); font-weight: 700; color: var(--text2);
  cursor: pointer; transition: all .15s; white-space: nowrap; font-family: var(--sans);
}
.pill:hover { border-color: var(--brand); color: var(--brand); }
.pill.active { background: var(--brand); color: white; border-color: var(--brand); }

.toolbar-right { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.view-toggle { display: flex; background: var(--bg3); border-radius: 8px; padding: 3px; gap: 2px; }
.vbtn {
  width: 34px; height: 34px; border: none; background: transparent;
  border-radius: 6px; cursor: pointer; display: flex; align-items: center;
  justify-content: center; transition: background .15s; color: var(--muted);
}
.vbtn svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.vbtn.active { background: var(--card); color: var(--brand); box-shadow: var(--shadow); }

.sort-sel {
  background: var(--card); border: 1.5px solid var(--border);
  color: var(--text); border-radius: 9px; padding: 8px 12px;
  font-size: var(--fs-small); font-weight: 600; font-family: var(--sans); cursor: pointer;
}

/* ── RESULTS META BAR ── */
.results-bar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 0; font-size: var(--fs-small); color: var(--muted);
  flex-wrap: wrap; gap: 8px;
}
.results-bar strong { color: var(--text); }
.results-bar .clear-btn {
  color: var(--brand); font-weight: 700; cursor: pointer; background: none; border: none; font-size: var(--fs-small); font-family: var(--sans);
}
.results-bar .clear-btn:hover { text-decoration: underline; }

/* ── ALPHABET JUMP ── */
.alpha-jump {
  display: flex; flex-wrap: wrap; gap: 4px;
  padding: 12px 0 0;
}
.alpha-btn {
  width: 30px; height: 30px; border-radius: 7px; border: 1px solid var(--border);
  background: var(--card); font-size: var(--fs-small); font-weight: 700;
  color: var(--text2); cursor: pointer; transition: all .15s; font-family: var(--sans);
  display: flex; align-items: center; justify-content: center;
}
.alpha-btn:hover { background: var(--brand); color: white; border-color: var(--brand); }
.alpha-btn.has-colors { border-color: var(--border); color: var(--text); }
.alpha-btn:not(.has-colors) { opacity: .35; cursor: default; }

/* ── GRID VIEW ── */
.names-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(155px, 1fr));
  gap: 12px;
  padding: 20px 0 32px;
}
.name-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition);
  position: relative;
}
.name-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.name-card:focus { outline: 2px solid var(--brand); outline-offset: 2px; }
.card-swatch { height: 76px; width: 100%; transition: height .2s; }
.name-card:hover .card-swatch { height: 88px; }
.card-body { padding: 9px 11px; }
.card-name { font-size: var(--fs-small); font-weight: 700; color: var(--text); margin-bottom: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card-hex { font-family: var(--mono); font-size: .76rem; color: var(--brand); font-weight: 600; }
.card-rgb { font-family: var(--mono); font-size: .65rem; color: var(--muted); margin-top: 1px; }
.card-copy-row { display: flex; gap: 4px; margin-top: 7px; }
.card-cp {
  flex: 1; padding: 4px 0; border-radius: 5px; border: 1px solid var(--border);
  background: var(--bg3); font-size: .62rem; font-weight: 700; cursor: pointer;
  color: var(--muted); transition: all .15s; font-family: var(--sans); text-align: center;
}
.card-cp:hover { background: var(--brand); color: white; border-color: var(--brand); }

/* ── LIST VIEW ── */
.names-list { padding: 10px 0 32px; }
.list-header {
  display: flex; align-items: center; gap: 12px;
  padding: 6px 14px; border-bottom: 1px solid var(--border);
  font-size: .72rem; font-weight: 700; color: var(--muted);
  letter-spacing: .08em; text-transform: uppercase;
}
.lh-swatch { width: 38px; flex-shrink: 0; }
.lh-name { flex: 1.2; min-width: 140px; }
.lh-hex { min-width: 90px; }
.lh-rgb { flex: 1; }
.lh-hsl { flex: 1; }
.lh-actions { min-width: 100px; }

.list-item {
  display: flex; align-items: center; gap: 12px;
  padding: 9px 14px; border-radius: 9px; cursor: pointer;
  transition: background .12s;
}
.list-item:hover { background: var(--bg3); }
.li-swatch { width: 38px; height: 38px; border-radius: 7px; flex-shrink: 0; border: 1px solid var(--border); }
.li-name { flex: 1.2; min-width: 140px; font-size: var(--fs-small); font-weight: 700; color: var(--text); }
.li-hex { min-width: 90px; font-family: var(--mono); font-size: .8rem; color: var(--brand); font-weight: 600; }
.li-rgb { flex: 1; font-family: var(--mono); font-size: .75rem; color: var(--muted); }
.li-hsl { flex: 1; font-family: var(--mono); font-size: .75rem; color: var(--muted); }
.li-actions { min-width: 100px; display: flex; gap: 5px; }
.lcp {
  padding: 5px 9px; border-radius: 6px; border: 1px solid var(--border);
  background: var(--bg3); font-size: .72rem; font-weight: 700;
  cursor: pointer; color: var(--muted); transition: all .15s; font-family: var(--sans);
}
.lcp:hover { background: var(--brand); color: white; border-color: var(--brand); }

/* ── TABLE VIEW ── */
.names-table-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--border); box-shadow: var(--shadow); margin: 16px 0 32px; }
.names-table { width: 100%; border-collapse: collapse; }
.names-table thead tr { background: var(--bg2); }
.names-table th { padding: 11px 14px; text-align: left; font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
.names-table tbody tr { border-top: 1px solid var(--border); transition: background .12s; cursor: pointer; }
.names-table tbody tr:hover { background: var(--bg2); }
.names-table td { padding: 9px 14px; font-size: var(--fs-small); color: var(--text2); }
.td-swatch { display: flex; align-items: center; gap: 8px; }
.td-dot { width: 26px; height: 26px; border-radius: 6px; flex-shrink: 0; border: 1px solid var(--border); }
.td-name { font-weight: 700; color: var(--text); }
.td-hex { font-family: var(--mono); font-size: .8rem; color: var(--brand); font-weight: 600; }
.td-rgb, .td-hsl { font-family: var(--mono); font-size: .75rem; }
.td-actions { display: flex; gap: 5px; }
.tcp {
  padding: 4px 9px; border-radius: 5px; border: 1px solid var(--border);
  background: var(--bg3); font-size: .68rem; font-weight: 700;
  cursor: pointer; color: var(--muted); transition: all .15s; font-family: var(--sans);
}
.tcp:hover { background: var(--brand); color: white; border-color: var(--brand); }

/* ── ALPHA SECTION HEADERS IN LIST ── */
.alpha-section { margin-top: 8px; }
.alpha-header {
  font-size: var(--fs-small); font-weight: 700; color: var(--brand);
  letter-spacing: .1em; text-transform: uppercase;
  padding: 8px 14px 4px; display: flex; align-items: center; gap: 10px;
}
.alpha-header::after { content: ''; flex: 1; height: 1px; background: var(--border); }

/* ── NO RESULTS ── */
.no-results {
  text-align: center; padding: 60px 20px;
  font-size: var(--fs-body); color: var(--muted);
}
.no-results strong { color: var(--text); display: block; font-size: var(--fs-h3); margin-bottom: 8px; }

/* ── DETAIL MODAL ── */
.modal-overlay {
  position: fixed; inset: 0; z-index: 500;
  background: rgba(0,0,0,.55); backdrop-filter: blur(4px);
  display: none; align-items: center; justify-content: center; padding: 20px;
}
.modal-overlay.open { display: flex; }
.modal {
  background: var(--card); border: 1px solid var(--border);
  border-radius: 18px; width: 100%; max-width: 500px;
  box-shadow: var(--shadow-lg); overflow: hidden;
  animation: modalIn .22s ease;
}
@keyframes modalIn { from { transform: translateY(12px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
.modal-swatch-wrap { position: relative; }
.modal-swatch { height: 130px; width: 100%; }
.modal-close {
  position: absolute; top: 12px; right: 12px;
  width: 32px; height: 32px; border-radius: 50%;
  background: rgba(0,0,0,.25); border: none; color: white;
  font-size: 1rem; cursor: pointer; display: flex;
  align-items: center; justify-content: center;
}
.modal-close:hover { background: rgba(0,0,0,.45); }
.modal-body { padding: 22px 24px 24px; }
.modal-name { font-size: 1.5rem; font-weight: 700; margin-bottom: 2px; }
.modal-meta { font-size: var(--fs-small); color: var(--muted); margin-bottom: 18px; }
.modal-vals { display: flex; flex-direction: column; gap: 9px; margin-bottom: 16px; }
.mvr { display: flex; align-items: center; gap: 9px; }
.mvr label { width: 58px; font-size: var(--fs-small); font-weight: 700; color: var(--muted); letter-spacing: .06em; text-transform: uppercase; flex-shrink: 0; }
.mvr input { flex: 1; background: var(--bg3); border: 1px solid var(--border); color: var(--text); border-radius: 7px; padding: 7px 10px; font-family: var(--mono); font-size: .82rem; min-width: 0; }
.m-copy-btn {
  width: 32px; height: 32px; border-radius: 7px; border: 1px solid var(--border);
  background: var(--bg3); cursor: pointer; display: flex; align-items: center;
  justify-content: center; color: var(--muted); transition: all .15s; flex-shrink: 0;
}
.m-copy-btn:hover { background: var(--brand); border-color: var(--brand); color: white; }
.m-copy-btn svg { width: 14px; height: 14px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.modal-shades { display: flex; height: 30px; border-radius: 8px; overflow: hidden; margin: 14px 0; }
.modal-shade { flex: 1; cursor: pointer; transition: flex .2s; }
.modal-shade:hover { flex: 2.2; }
.modal-actions { display: flex; gap: 8px; }
.m-btn { flex: 1; padding: 10px; border-radius: 9px; border: none; font-size: var(--fs-small); font-weight: 700; cursor: pointer; font-family: var(--sans); transition: opacity .15s; }
.m-btn.primary { background: var(--brand); color: white; }
.m-btn.primary:hover { opacity: .88; }
.m-btn.ghost { background: var(--bg3); color: var(--text2); border: 1px solid var(--border); }
.m-btn.ghost:hover { border-color: var(--brand); color: var(--brand); }
.modal-divider { border: none; border-top: 1px solid var(--border); margin: 14px 0; }
.modal-contrast { display: flex; gap: 10px; margin-bottom: 14px; }
.contrast-sample {
  flex: 1; border-radius: 8px; padding: 10px 12px; border: 1px solid var(--border);
  font-size: var(--fs-small); font-weight: 700; text-align: center; font-family: var(--sans);
}

/* ── CONTENT SECTIONS ── */
.content-section { max-width: 1100px; margin: 0 auto; padding: 60px 24px; }
.content-section h2 { font-size: var(--fs-h2); font-weight: 700; letter-spacing: -.04em; margin-bottom: 16px; }
.section-intro { font-size: var(--fs-body); color: var(--text2); max-width: 760px; line-height: 1.75; margin-bottom: 36px; }

/* ── FEATURE CARDS ── */
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(255px, 1fr)); gap: 16px; }
.feature-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); transition: transform var(--transition), box-shadow var(--transition); }
.feature-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.f-icon { width: 46px; height: 46px; border-radius: 11px; background: var(--brand-bg); display: flex; align-items: center; justify-content: center; margin-bottom: 14px; }
.f-icon svg { width: 22px; height: 22px; stroke: var(--brand); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.feature-card h3 { font-size: var(--fs-body); font-weight: 700; margin-bottom: 8px; }
.feature-card p { font-size: var(--fs-small); color: var(--muted); line-height: 1.66; }

/* ── INTERESTING COLORS ── */
.interesting-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.interesting-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); cursor: pointer; transition: transform var(--transition), box-shadow var(--transition); }
.interesting-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.ic-swatch { height: 60px; }
.ic-body { padding: 14px 16px; }
.ic-name { font-size: var(--fs-small); font-weight: 700; margin-bottom: 3px; }
.ic-hex { font-family: var(--mono); font-size: .76rem; color: var(--brand); }
.ic-story { font-size: .8rem; color: var(--muted); line-height: 1.55; margin-top: 6px; }

/* ── TIPS ── */
.tips-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.tip-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.tip-card h3 { font-size: var(--fs-body); font-weight: 700; margin-bottom: 8px; }
.tip-card p { font-size: var(--fs-small); color: var(--muted); line-height: 1.65; }
.tip-card ul { font-size: var(--fs-small); color: var(--muted); line-height: 1.8; padding-left: 18px; margin-top: 6px; }
.tip-card li { margin-bottom: 3px; }

/* ── PROSE ── */
.prose { max-width: 820px; }
.prose h2 { font-size: var(--fs-h2); font-weight: 700; letter-spacing: -.04em; margin-bottom: 14px; margin-top: 44px; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: var(--fs-body); font-weight: 700; margin: 28px 0 8px; color: var(--brand); }
.prose p { font-size: var(--fs-body); color: var(--text2); margin-bottom: 16px; line-height: 1.79; }
.prose ul, .prose ol { font-size: var(--fs-body); color: var(--text2); padding-left: 22px; line-height: 1.82; margin-bottom: 16px; }
.prose li { margin-bottom: 5px; }
.prose strong { color: var(--text); font-weight: 700; }
.callout { background: var(--brand-bg); border-left: 4px solid var(--brand); border-radius: 0 9px 9px 0; padding: 16px 20px; margin: 22px 0; font-size: var(--fs-body); color: var(--text2); line-height: 1.72; }
.callout strong { color: var(--brand); }

/* ── FAQ ── */
.faq-list { display: flex; flex-direction: column; gap: 9px; }
.faq-item { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.faq-q { width: 100%; text-align: left; background: none; border: none; cursor: pointer; padding: 17px 20px; font-size: var(--fs-body); font-weight: 700; color: var(--text); display: flex; align-items: center; justify-content: space-between; gap: 12px; transition: background .15s; font-family: var(--sans); }
.faq-q:hover { background: var(--bg2); }
.faq-arr { font-size: .85rem; color: var(--muted); transition: transform .25s; flex-shrink: 0; }
.faq-q.open .faq-arr { transform: rotate(180deg); }
.faq-a { display: none; padding: 0 20px 16px; font-size: var(--fs-body); color: var(--text2); line-height: 1.76; }
.faq-a.show { display: block; }

/* ── RELATED ── */
.related-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(195px, 1fr)); gap: 14px; }
.related-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px 20px; box-shadow: var(--shadow); display: flex; align-items: center; gap: 14px; transition: transform var(--transition), box-shadow var(--transition); cursor: pointer; }
.related-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); color: var(--brand); }
.rc-icon { width: 42px; height: 42px; border-radius: 10px; background: var(--brand-bg); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.rc-icon svg { width: 20px; height: 20px; stroke: var(--brand); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.related-card h4 { font-size: var(--fs-nav); font-weight: 700; margin-bottom: 2px; }
.related-card p { font-size: var(--fs-small); color: var(--muted); }

/* ── FOOTER ── */
.ft-wrap { border-top: 1px solid var(--border); background: var(--bg2); }
footer { padding: 44px 24px 28px; max-width: 1100px; margin: 0 auto; display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 28px; }
footer h4 { font-size: var(--fs-small); font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
footer ul { list-style: none; }
footer ul li { margin-bottom: 7px; }
footer ul li a { font-size: var(--fs-small); color: var(--muted); transition: color .15s; font-weight: 500; }
footer ul li a:hover { color: var(--brand); }
.ft-brand p { font-size: var(--fs-small); color: var(--muted); margin-top: 7px; max-width: 210px; line-height: 1.55; }
.ft-bottom { border-top: 1px solid var(--border); padding: 16px 24px; text-align: center; font-size: var(--fs-small); color: var(--muted); max-width: 1100px; margin: 0 auto; }

/* ── TOAST ── */
#toast { position: fixed; bottom: 22px; right: 22px; z-index: 9999; background: var(--text); color: var(--bg); border-radius: 9px; padding: 10px 16px; font-size: var(--fs-small); font-weight: 600; transform: translateY(60px); opacity: 0; transition: .28s; pointer-events: none; font-family: var(--sans); }
#toast.show { transform: translateY(0); opacity: 1; }

/* ── AD SLOT ── */
.ad-slot { max-width: 1100px; margin: 40px auto; padding: 0 24px; text-align: center; }
.ad-inner { min-height: 90px; background: var(--bg2); border: 1px dashed var(--border); border-radius: var(--radius); display: flex; align-items: center; justify-content: center; font-size: var(--fs-small); color: var(--muted); }

/* ── RESPONSIVE ── */
@media (max-width: 700px) {
  .nav-links { display: none; }
  .tips-grid { grid-template-columns: 1fr; }
  .li-hsl, .lh-hsl { display: none; }
  .li-rgb, .lh-rgb { display: none; }
  .td-hsl { display: none; }
  :root { --fs-h1: 36px; --fs-h2: 28px; --fs-body: 18px; }
}
@media (max-width: 560px) {
  nav { padding: 0 16px; }
  .content-section { padding: 44px 16px; }
  .page-hero { padding: 36px 16px 32px; }
  .names-grid { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 8px; }
  .hero-stats { gap: 16px; }
  :root { --fs-h1: 30px; --fs-h2: 24px; }
}