/* ============================================================
   GOOGLE COLOUR PICKER — Page Styles
   HtmlColor.Codes · google-colour-picker.css
   ============================================================ */

: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);
  --shadow-xl: 0 20px 60px rgba(0,0,0,.18);
  --radius: 12px;
  --radius-lg: 18px;
  --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;
}

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);
}

*,*::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 6px;
  border-radius: 4px; color: var(--brand);
}

/* ── NAV ── */
nav {
  position: sticky; top: 0; z-index: 200;
  background: var(--nav-bg); 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 .15s, color .15s;
}
.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: 48px 24px 40px; }
.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: 28px; flex-wrap: wrap; padding-top: 22px; border-top: 1px solid var(--border); }
.hero-stat .n { font-size: 1.45rem; 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 SECTION ── */
.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: 32px 24px; }

/* ── MAIN PICKER LAYOUT ── */
.picker-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 24px;
  align-items: start;
}

/* ── CANVAS PICKER ── */
.canvas-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 20px; box-shadow: var(--shadow);
}
#pickerCanvas {
  width: 100%; aspect-ratio: 1/.62;
  border-radius: 10px; cursor: crosshair;
  display: block; touch-action: none;
}
.slider-row { position: relative; margin-top: 12px; }
.slider-row canvas { width: 100%; height: 20px; border-radius: 10px; cursor: pointer; display: block; }
.slider-knob {
  position: absolute; top: 50%; transform: translate(-50%,-50%);
  width: 24px; height: 24px; border-radius: 50%;
  border: 3px solid white; box-shadow: 0 1px 6px rgba(0,0,0,.45);
  pointer-events: none;
}
.preview-bar {
  height: 50px; border-radius: 10px; margin-top: 14px;
  cursor: pointer; transition: background .1s;
  display: flex; align-items: center; justify-content: center;
  font-size: var(--fs-small); font-weight: 700; gap: 8px;
  border: 1px solid rgba(0,0,0,.07);
  user-select: none;
}

/* ── VALUES PANEL ── */
.values-panel {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 20px; box-shadow: var(--shadow);
  display: flex; flex-direction: column; gap: 11px;
}
.panel-label {
  font-size: .68rem; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; color: var(--muted);
}
.val-row { display: flex; align-items: center; gap: 9px; }
.val-row label { width: 54px; font-size: var(--fs-small); font-weight: 700; color: var(--muted); letter-spacing: .05em; text-transform: uppercase; flex-shrink: 0; }
.val-row input {
  flex: 1; background: var(--bg3); border: 1px solid var(--border);
  color: var(--text); border-radius: 7px; padding: 8px 10px;
  font-family: var(--mono); font-size: .82rem; min-width: 0;
  transition: border-color .2s;
}
.val-row input:focus { outline: none; border-color: var(--brand); }
.copy-btn {
  width: 33px; height: 33px; border-radius: 7px; border: 1px solid var(--border);
  background: var(--bg3); cursor: pointer; display: flex; align-items: center;
  justify-content: center; flex-shrink: 0; color: var(--muted);
  transition: background .15s, border-color .15s;
}
.copy-btn:hover { background: var(--brand); border-color: var(--brand); color: white; }
.copy-btn svg { width: 14px; height: 14px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.panel-divider { border: none; border-top: 1px solid var(--border); margin: 2px 0; }

/* harmony dots */
.harmony-row { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 4px; }
.harm-dot {
  width: 34px; height: 34px; border-radius: 7px;
  cursor: pointer; border: 2px solid rgba(0,0,0,.08);
  transition: transform .15s; display: flex; align-items: flex-end;
  justify-content: center; padding-bottom: 2px;
}
.harm-dot:hover { transform: scale(1.14); }
.harm-dot span { font-size: .42rem; font-family: var(--mono); color: white; text-shadow: 0 1px 3px rgba(0,0,0,.8); }

.harm-sel {
  width: 100%; background: var(--bg3); border: 1px solid var(--border);
  color: var(--text); border-radius: 7px; padding: 7px 10px;
  font-size: var(--fs-small); font-family: var(--sans); font-weight: 600; margin-bottom: 6px;
}

/* quick actions */
.qa-row { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 4px; }
.qa-btn {
  padding: 6px 12px; border-radius: 7px; border: 1px solid var(--border);
  background: var(--bg3); font-size: var(--fs-small); font-weight: 700;
  color: var(--text2); cursor: pointer; transition: all .15s; font-family: var(--sans);
}
.qa-btn:hover { border-color: var(--brand); color: var(--brand); background: var(--brand-bg); }
.qa-btn.primary { background: var(--brand); color: white; border-color: var(--brand); }
.qa-btn.primary:hover { opacity: .88; }

/* color history */
.hist-row { display: flex; gap: 5px; flex-wrap: wrap; margin-top: 4px; }
.hist-dot {
  width: 28px; height: 28px; border-radius: 6px; cursor: pointer;
  border: 2px solid var(--border); transition: transform .15s;
}
.hist-dot:hover { transform: scale(1.18); }

/* CSS output */
.css-output {
  background: var(--bg3); border: 1px solid var(--border);
  border-radius: 8px; padding: 10px 12px;
  font-family: var(--mono); font-size: .78rem; color: var(--text2);
  line-height: 1.7; margin-top: 4px;
}
.css-output span { color: var(--brand); }

/* ── 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; }

/* ── FEATURES ── */
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 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 .2s, box-shadow .2s;
}
.feature-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.ficon { width: 46px; height: 46px; border-radius: 11px; background: var(--brand-bg); display: flex; align-items: center; justify-content: center; margin-bottom: 14px; }
.ficon 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; }

/* ── HOW TO STEPS ── */
.steps-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.step-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.step-num { width: 38px; height: 38px; border-radius: 50%; background: var(--brand); color: white; font-weight: 700; font-size: var(--fs-body); display: flex; align-items: center; justify-content: center; margin-bottom: 14px; font-family: var(--sans); }
.step-card h3 { font-size: var(--fs-body); font-weight: 700; margin-bottom: 7px; }
.step-card p { font-size: var(--fs-small); color: var(--muted); line-height: 1.65; }

/* ── COMPARE TABLE ── */
.table-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--border); box-shadow: var(--shadow); }
.cmp-table { width: 100%; border-collapse: collapse; font-size: var(--fs-small); }
.cmp-table thead tr { background: var(--bg2); }
.cmp-table th { padding: 12px 16px; text-align: left; font-size: var(--fs-small); font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); }
.cmp-table tbody tr { border-top: 1px solid var(--border); }
.cmp-table tbody tr:hover { background: var(--bg2); }
.cmp-table td { padding: 11px 16px; color: var(--text2); }
.cmp-table td:first-child { font-weight: 700; color: var(--text); }
.check { color: #16a34a; font-weight: 700; }
.cross { color: #dc2626; }

/* ── 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; }

/* ── 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(200px, 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 .2s, box-shadow .2s; }
.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-slot-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) {
  .picker-layout { grid-template-columns: 1fr; }
  .tips-grid { grid-template-columns: 1fr; }
  .nav-links { 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; }
  .tool-inner { padding: 20px 16px; }
  :root { --fs-h1: 30px; --fs-h2: 24px; }
}