/* ===== Tokens ===== */
:root {
  --bg:          #F1EFEA;
  --surface:     #FFFFFF;
  --surface-alt: #F7F5F0;

  --ink:         #0E0E0E;
  --ink-soft:    #4A4A4A;
  --ink-muted:   #8A8A88;
  --line:        #0E0E0E;

  --accent:      #E86A38;
  --accent-soft: #FBC49A;
  --accent-ink:  #FFFFFF;

  --ok:   #2E6F4A;
  --warn: #B5821C;
  --err:  #B23A2C;

  --fs-h1: 2.5rem;
  --fs-h2: 1.75rem;
  --fs-h3: 1.25rem;
  --fs-body: 1rem;
  --fs-sm: 0.875rem;
  --fs-xs: 0.75rem;

  --radius-card: 20px;
  --radius-input: 10px;
  --radius-btn: 10px;
  --radius-tag: 6px;
  --radius-pill: 999px;

  --border: 1.5px solid var(--line);
  --border-thick: 2px solid var(--line);

  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 64px;

  --container: 960px;
  --container-wide: 1200px;

  /* Stage palette — warm → cool gradient, soft variants for chip backgrounds */
  --stage-coral: #FBC4B5;
  --stage-ochre: #F0D279;
  --stage-sage:  #C9DDB4;
  --stage-teal:  #A8D5D2;
  --stage-blue:  #B8CCEB;
  --stage-plum:  #D2BCDC;
  /* Saturated variants for accents (borders, ink on light) */
  --stage-coral-deep: #E16A55;
  --stage-ochre-deep: #C09214;
  --stage-sage-deep:  #6D8F58;
  --stage-teal-deep:  #3F8A85;
  --stage-blue-deep:  #4A77C2;
  --stage-plum-deep:  #6F4585;

  --font-display: "Space Grotesk", "Inter", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
}

/* ===== Reset-ish ===== */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent); }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 var(--space-4);
  line-height: 1.1;
}
h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); letter-spacing: -0.01em; }

p { margin: 0 0 var(--space-4); }

code, pre { font-family: var(--font-mono); font-size: 0.95em; }

/* ===== Layout ===== */
.site-header {
  max-width: var(--container-wide);
  margin: 0 auto;
  padding: var(--space-5) var(--space-5) var(--space-3);
  font-size: var(--fs-sm);
  color: var(--ink-soft);
  display: flex;
  gap: var(--space-3);
  align-items: center;
}
.site-header a { color: var(--ink); font-weight: 600; }
.site-header .sep { color: var(--ink-muted); }

main {
  max-width: var(--container);
  margin: 0 auto;
  padding: var(--space-5);
}
main.wide { max-width: var(--container-wide); }

.site-footer {
  max-width: var(--container-wide);
  margin: var(--space-8) auto 0;
  padding: var(--space-5);
  font-size: var(--fs-sm);
  color: var(--ink-muted);
  border-top: 1px solid #00000010;
  display: flex;
  gap: var(--space-4);
  flex-wrap: wrap;
}

/* ===== Hub: hero ===== */
.hub-intro { margin-bottom: var(--space-6); }
.hub-intro p { color: var(--ink-soft); font-size: 1.125rem; max-width: 600px; }

.hero-slideshow {
  position: relative;
  margin: var(--space-6) 0 var(--space-7);
  aspect-ratio: 16 / 7;
}
.hero-window {
  position: relative;
  border: var(--border-thick);
  border-radius: var(--radius-card);
  background: var(--surface);
  overflow: hidden;
  aspect-ratio: 16 / 7;
  display: block;
  color: var(--ink);
}
.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 350ms ease;
}
.hero-slide.is-active {
  opacity: 1;
  pointer-events: auto;
}
.hero-slide:hover { color: var(--ink); }
.hero-title {
  position: absolute;
  left: var(--space-5);
  bottom: var(--space-5);
  right: var(--space-5);
  z-index: 2;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.75rem;
  letter-spacing: -0.02em;
  color: var(--ink);
  background: var(--surface);
  display: inline-block;
  padding: 6px 12px;
  border: var(--border-thick);
  border-radius: var(--radius-tag);
  width: fit-content;
  max-width: calc(100% - var(--space-6));
  line-height: 1.15;
}
.hero-window .eyebrow {
  position: absolute;
  top: var(--space-4);
  left: var(--space-4);
  z-index: 2;
  font-family: var(--font-display);
  font-size: 1rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: var(--surface);
  border: var(--border-thick);
  border-radius: var(--radius-tag);
  padding: 8px 14px;
  font-weight: 600;
}
.hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.placeholder {
  position: absolute;
  inset: 0;
  filter: saturate(1.05);
}
.placeholder::after {
  content: "";
  position: absolute; inset: 0;
  background-image: repeating-linear-gradient(0deg, #00000008 0 1px, transparent 1px 3px);
  mix-blend-mode: multiply;
}
.placeholder--sunset {
  background:
    radial-gradient(ellipse at 30% 75%, #FBC49A 0%, transparent 55%),
    radial-gradient(ellipse at 75% 30%, #E86A38 0%, transparent 50%),
    linear-gradient(180deg, #FFE1C4 0%, #FAC79E 100%);
}
.placeholder--ember {
  background:
    radial-gradient(circle at 70% 80%, #D14820 0%, transparent 50%),
    radial-gradient(circle at 25% 25%, #F59458 0%, transparent 55%),
    linear-gradient(135deg, #FACEA4 0%, #E86A38 100%);
}
.placeholder--sand {
  background:
    radial-gradient(ellipse at 50% 100%, #E5B477 0%, transparent 60%),
    radial-gradient(ellipse at 80% 10%, #F7DCAE 0%, transparent 70%),
    linear-gradient(180deg, #FCEACB 0%, #E8C383 100%);
}
.placeholder--dusk {
  background:
    radial-gradient(ellipse at 20% 30%, #E87544 0%, transparent 55%),
    radial-gradient(ellipse at 80% 80%, #7E3148 0%, transparent 55%),
    linear-gradient(160deg, #F8BE9D 0%, #B5524E 100%);
}

.hero-dots {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translate(-50%, 50%);
  display: flex;
  gap: 10px;
  align-items: center;
  z-index: 4;
  background: var(--bg);
  border: var(--border-thick);
  border-radius: var(--radius-pill);
  padding: 9px 16px;
  pointer-events: auto;
}
.hero-dot {
  width: 10px;
  height: 10px;
  padding: 0;
  border-radius: 50%;
  border: 1.5px solid var(--ink);
  background: var(--surface);
  cursor: pointer;
  transition: background-color 120ms;
  box-shadow: none;
  transform: none;
  flex: 0 0 auto;
}
.hero-dot:hover { background: var(--accent-soft); transform: none; box-shadow: none; }
.hero-dot.is-active { background: var(--ink); }

/* ===== Tool grid ===== */
.cat-title {
  font-size: var(--fs-xs);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--ink-muted);
  margin: var(--space-6) 0 var(--space-3);
}
.tool-grid {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: var(--space-4);
}
.tool-grid > li { display: flex; }
.tool-card {
  display: flex;
  flex-direction: column;
  width: 100%;
  background: var(--surface);
  border: var(--border);
  border-radius: var(--radius-card);
  padding: var(--space-5);
  color: var(--ink);
  transition: transform 120ms ease, box-shadow 120ms ease;
  position: relative;
}
.tool-card:hover {
  color: var(--ink);
  transform: translate(-3px, -3px);
  box-shadow: 5px 5px 0 var(--line);
}
.tool-card h3 { margin: 0 0 var(--space-2); }
.tool-card p { margin: 0; color: var(--ink-soft); font-size: var(--fs-sm); }
.tool-card .badge {
  position: absolute;
  top: var(--space-3);
  right: var(--space-3);
  font-size: var(--fs-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  background: var(--accent-soft);
  color: var(--ink);
  border: 1.5px solid var(--ink);
  border-radius: var(--radius-tag);
  padding: 3px 8px;
}
.cat-pill {
  display: inline-block;
  font-size: var(--fs-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border: 1.5px solid var(--ink);
  border-radius: var(--radius-pill);
  padding: 3px 10px;
  margin-bottom: var(--space-3);
  background: var(--surface-alt);
  color: var(--ink);
}
.cat-pill--text     { background: #FAC79E; }   /* sunset */
.cat-pill--web      { background: #F59458; color: #fff; }   /* ember */
.cat-pill--dev      { background: #E8C383; }   /* sand */
.cat-pill--marketing { background: #E87544; color: #fff; }  /* dusk */

/* ===== Stage navigation chips ===== */
.stage-nav {
  list-style: none;
  padding: 0;
  margin: 0 0 var(--space-6);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--space-3);
}
.stage-nav > li { display: flex; }
.stage-chip {
  display: flex;
  flex-direction: column;
  width: 100%;
  background: var(--surface);
  border: var(--border-thick);
  border-radius: var(--radius-card);
  padding: var(--space-4);
  color: var(--ink);
  transition: transform 120ms ease, box-shadow 120ms ease;
  position: relative;
  overflow: hidden;
}
.stage-chip:hover {
  color: var(--ink);
  transform: translate(-3px, -3px);
  box-shadow: 5px 5px 0 var(--line);
}
.stage-chip-eyebrow {
  display: block;
  font-size: var(--fs-xs);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 700;
  color: var(--ink-muted);
  margin-bottom: var(--space-2);
}
.stage-chip-title {
  display: block;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: var(--space-2);
}
.stage-chip-blurb {
  display: block;
  font-size: var(--fs-sm);
  color: var(--ink-soft);
  line-height: 1.45;
}
.stage-chip--research   { background: var(--stage-coral); }
.stage-chip--build      { background: var(--stage-ochre); }
.stage-chip--launch     { background: var(--stage-sage); }
.stage-chip--marketing  { background: var(--stage-teal); }
.stage-chip--content    { background: var(--stage-blue); }
.stage-chip--six        { background: var(--stage-plum); }   /* reserved */

/* ===== Stage hub hero ===== */
.stage-hero {
  position: relative;
  border: var(--border-thick);
  border-radius: var(--radius-card);
  overflow: hidden;
  margin: var(--space-5) 0 var(--space-6);
  aspect-ratio: 16 / 6;
  background: var(--surface);
}
.stage-hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.85);
}
.stage-hero-body {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: var(--space-5);
  color: #fff;
  background: linear-gradient(0deg, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0.15) 50%, transparent 100%);
}
.stage-hero-body .eyebrow {
  font-size: var(--fs-xs);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 700;
  margin-bottom: var(--space-2);
  background: rgba(255,255,255,0.95);
  color: var(--ink);
  padding: 4px 10px;
  border-radius: var(--radius-tag);
  align-self: flex-start;
}
.stage-hero-body h1 {
  color: #fff;
  margin: 0 0 var(--space-2);
}
.stage-hero-body p {
  color: rgba(255,255,255,0.92);
  font-size: 1.125rem;
  margin: 0;
  max-width: 600px;
}

/* ===== Tool page ===== */
.crumb {
  font-size: var(--fs-sm);
  color: var(--ink-muted);
  margin-bottom: var(--space-3);
  display: inline-block;
}
.crumb:hover { color: var(--accent); }

.panel {
  background: var(--surface);
  border: var(--border);
  border-radius: var(--radius-card);
  padding: var(--space-5);
  margin: var(--space-5) 0;
}
.panel h2 { margin-bottom: var(--space-3); }

/* ===== Forms — controls work in any container ===== */
.panel label,
form label {
  display: block;
  font-weight: 600;
  font-size: var(--fs-sm);
  margin-bottom: var(--space-2);
}
.panel label > span,
form label > span {
  display: block;
  font-size: var(--fs-sm);
  color: var(--ink-muted);
  font-weight: 500;
  margin-bottom: 4px;
}
.panel label > span em,
form label > span em { color: var(--err); font-style: normal; }

textarea,
input[type=text],
input[type=url],
input[type=email],
input[type=password],
input[type=search],
input[type=number],
input[type=tel],
select {
  width: 100%;
  font: inherit;
  background: var(--surface-alt);
  border: var(--border);
  border-radius: var(--radius-input);
  padding: var(--space-3);
  color: var(--ink);
  margin-bottom: var(--space-3);
  transition: border-color 100ms, box-shadow 100ms;
}
textarea {
  min-height: 220px;
  font-family: var(--font-mono);
  font-size: 0.95rem;
  resize: vertical;
  line-height: 1.5;
}
textarea:focus,
input[type=text]:focus,
input[type=url]:focus,
input[type=email]:focus,
input[type=password]:focus,
input[type=search]:focus,
input[type=number]:focus,
input[type=tel]:focus,
select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

/* Inline labels (radios/checkboxes inside toolbars) keep flow */
.toolbar label,
[role="radiogroup"] label,
label.inline {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 500;
  margin-bottom: 0;
}
.toolbar label > span,
[role="radiogroup"] label > span,
label.inline > span { display: inline; margin-bottom: 0; color: inherit; font-weight: inherit; }

/* Inline radio/checkbox inputs shouldn't get the textarea-y styling */
input[type=radio],
input[type=checkbox] {
  width: auto;
  margin: 0;
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}

button, .btn {
  display: inline-block;
  font: inherit;
  font-weight: 700;
  background: var(--ink);
  color: #fff;
  border: var(--border-thick);
  border-radius: var(--radius-btn);
  padding: 12px 22px;
  cursor: pointer;
  transition: transform 100ms ease, box-shadow 100ms ease, background-color 100ms;
}
button:hover, .btn:hover {
  background: var(--accent);
  transform: translate(-2px, -2px);
  box-shadow: 3px 3px 0 var(--line);
}
button:active, .btn:active {
  transform: translate(0, 0);
  box-shadow: none;
}
.btn-ghost {
  background: var(--surface);
  color: var(--ink);
}
.btn-ghost:hover { background: var(--ink); color: #fff; }

/* ===== Detector output ===== */
.score {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 700;
  margin: 0 0 var(--space-3);
  letter-spacing: -0.03em;
}
.score small { font-size: 1rem; color: var(--ink-muted); font-weight: 500; }

.findings { list-style: none; padding: 0; margin: 0 0 var(--space-4); }
.findings li {
  padding: var(--space-2) 0;
  border-bottom: 1px solid #00000010;
  font-size: var(--fs-sm);
}
.findings code {
  background: var(--surface-alt);
  border: 1px solid #00000015;
  border-radius: 4px;
  padding: 1px 6px;
}

.finding {
  background: #fff3a8;
  border-bottom: 2px solid #d4a017;
  padding: 0 1px;
}
.finding.sev-high { background: #ffd6d6; border-bottom-color: var(--err); }
.finding.sev-med  { background: #ffe9b8; border-bottom-color: var(--warn); }
.finding.sev-low  { background: #fff3a8; border-bottom-color: #aa0; }

.sev-tag {
  display: inline-block;
  font-size: var(--fs-xs);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 1px 6px;
  border-radius: 4px;
  font-weight: 600;
}
.sev-tag.sev-high { background: #ffd6d6; color: var(--err); }
.sev-tag.sev-med  { background: #ffe9b8; color: var(--warn); }
.sev-tag.sev-low  { background: #fff3a8; color: #6a5500; }

.highlighted {
  white-space: pre-wrap;
  word-wrap: break-word;
  background: var(--surface-alt);
  border: var(--border);
  border-radius: var(--radius-input);
  padding: var(--space-4);
  font-family: var(--font-mono);
  font-size: 0.95rem;
  line-height: 1.6;
}

.error { color: var(--err); }

.seo-table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 var(--space-4);
  font-size: var(--fs-sm);
}
.seo-table th, .seo-table td {
  text-align: left;
  vertical-align: top;
  padding: var(--space-2) var(--space-3);
  border-bottom: 1px solid #00000010;
}
.seo-table th {
  width: 180px;
  color: var(--ink-muted);
  font-weight: 500;
  white-space: nowrap;
}
.seo-table td ul { margin: 0; padding-left: 1.1em; }
.seo-table small { color: var(--ink-muted); }
.seo-table code { font-size: 0.85em; word-break: break-all; }

/* ===== UTM builder ===== */
.utm-row { display: block; margin-bottom: var(--space-3); }
.utm-row > span, .utm-grid label > span {
  display: block;
  font-size: var(--fs-sm);
  color: var(--ink-muted);
  margin-bottom: 4px;
  font-weight: 500;
}
.utm-row > span em, .utm-grid label > span em { color: var(--err); font-style: normal; }
.utm-row input, .utm-grid input {
  width: 100%;
  padding: var(--space-3);
  border: var(--border);
  border-radius: var(--radius-input);
  background: var(--surface);
  font: inherit;
}
.utm-row input:focus, .utm-grid input:focus {
  outline: none;
  border-color: var(--accent);
}
.utm-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--space-3);
}
.utm-grid label { display: block; }

.utm-result {
  background: var(--surface-alt);
  border: var(--border);
  border-radius: var(--radius-input);
  padding: var(--space-4);
  font-family: var(--font-mono);
  font-size: 0.95rem;
  line-height: 1.5;
  word-break: break-all;
  white-space: pre-wrap;
  margin: 0 0 var(--space-3);
}
.utm-actions {
  display: flex;
  gap: var(--space-3);
  align-items: center;
  flex-wrap: wrap;
}
.utm-status {
  color: var(--ink-muted);
  font-size: var(--fs-sm);
}

button.ghost {
  background: transparent;
  border: var(--border);
  color: var(--ink);
  padding: 6px 12px;
  border-radius: var(--radius-tag);
  cursor: pointer;
  font: inherit;
  font-size: var(--fs-sm);
}
button.ghost:hover { background: var(--surface-alt); }

.utm-history {
  list-style: none;
  padding: 0;
  margin: 0 0 var(--space-3);
}
.utm-empty { color: var(--ink-muted); padding: var(--space-2) 0; }
.utm-hist-row {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) 0;
  border-bottom: 1px solid #00000010;
}
.utm-hist-url {
  flex: 1;
  font-family: var(--font-mono);
  font-size: var(--fs-sm);
  word-break: break-all;
  color: var(--ink);
  text-decoration: none;
}
.utm-hist-url:hover { color: var(--accent); text-decoration: underline; }
.utm-del { padding: 2px 8px; line-height: 1; }

/* ===== Generic tool widgets ===== */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-3); }
@media (max-width: 720px) { .split { grid-template-columns: 1fr; } }
.toolbar { display: flex; gap: var(--space-2); flex-wrap: wrap; margin: var(--space-3) 0; align-items: center; }
.toolbar .grow { flex: 1; }
.kv { width: 100%; border-collapse: collapse; font-size: var(--fs-sm); margin: 0 0 var(--space-3); }
.kv th, .kv td { text-align: left; padding: var(--space-2) var(--space-3); vertical-align: top; border-bottom: 1px solid #00000010; }
.kv th { color: var(--ink-muted); font-weight: 500; width: 220px; white-space: nowrap; }
.kv code { font-size: 0.9em; word-break: break-all; }
.mono { font-family: var(--font-mono); font-size: 0.95rem; }
.muted { color: var(--ink-muted); }
.field-row { display: flex; gap: var(--space-3); flex-wrap: wrap; align-items: end; }
.field-row label { flex: 1; min-width: 140px; }
.field-row input, .field-row select {
  width: 100%; font: inherit; background: var(--surface-alt);
  border: var(--border); border-radius: var(--radius-input);
  padding: var(--space-3); color: var(--ink);
}
.field-row input:focus, .field-row select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.tag {
  display: inline-block; font-size: var(--fs-xs); text-transform: uppercase;
  letter-spacing: 0.08em; padding: 2px 8px; border-radius: var(--radius-tag);
  background: var(--surface-alt); border: 1px solid #00000020; margin-right: 4px;
}
.tag--ok { background: #d6f0e2; }
.tag--warn { background: #ffe9b8; }
.tag--err { background: #ffd6d6; }

.match-hl { background: #fff3a8; border-bottom: 2px solid #d4a017; padding: 0 1px; }
.match-hl.alt { background: #d6e7ff; border-bottom-color: #4a78d4; }

.diff-out {
  background: var(--surface-alt);
  border: var(--border);
  border-radius: var(--radius-input);
  padding: var(--space-4);
  font-family: var(--font-mono);
  font-size: 0.95rem;
  line-height: 1.6;
  white-space: pre-wrap;
  word-break: break-word;
}
.diff-del { background: #ffd6d6; text-decoration: line-through; color: #7a1c1c; padding: 0 2px; }
.diff-ins { background: #d6f0d6; color: #1c5a1c; padding: 0 2px; }

/* ===== OG / Twitter preview ===== */
.og-card {
  max-width: 540px;
  border: 1px solid #dadde1;
  border-radius: 8px;
  overflow: hidden;
  background: #f2f3f5;
  font-family: -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
}
.og-img { width: 100%; height: auto; display: block; max-height: 280px; object-fit: cover; background: #fff; }
.og-body { padding: 10px 12px; background: #fff; }
.og-host { font-size: 12px; color: #606770; text-transform: uppercase; word-break: break-all; }
.og-title { font-size: 16px; font-weight: 600; margin: 3px 0; color: #1c1e21; line-height: 1.3; }
.og-desc { font-size: 14px; color: #606770; line-height: 1.4; }

.tw-card {
  max-width: 520px;
  border: 1px solid #cfd9de;
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
  font-family: -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
}
.tw-card--summary_large_image .tw-img { width: 100%; height: auto; max-height: 280px; object-fit: cover; display: block; }
.tw-card--summary { display: grid; grid-template-columns: 128px 1fr; }
.tw-card--summary .tw-img { width: 128px; height: 128px; object-fit: cover; display: block; }
.tw-body { padding: 10px 14px; }
.tw-title { font-size: 15px; font-weight: 600; color: #0f1419; line-height: 1.3; }
.tw-desc { font-size: 14px; color: #536471; line-height: 1.4; margin-top: 3px; }
.tw-host { font-size: 13px; color: #536471; margin-top: 4px; word-break: break-all; }

.md-preview {
  background: var(--surface-alt);
  border: var(--border);
  border-radius: var(--radius-input);
  padding: var(--space-4) var(--space-5);
}
.md-preview h1, .md-preview h2, .md-preview h3 { margin-top: var(--space-4); }
.md-preview pre {
  background: #fff;
  border: 1px solid #00000020;
  padding: var(--space-3);
  border-radius: var(--radius-input);
  overflow-x: auto;
  font-family: var(--font-mono);
  font-size: 0.9rem;
}
.md-preview code { background: #fff; padding: 1px 4px; border-radius: 4px; border: 1px solid #00000015; }
.md-preview pre code { background: transparent; border: 0; padding: 0; }
.md-preview blockquote {
  border-left: 3px solid var(--accent);
  padding: 4px var(--space-3);
  color: var(--ink-soft);
  margin: var(--space-3) 0;
}
.md-preview ul, .md-preview ol { padding-left: 1.5em; }

.gd-paste-area {
  min-height: 220px;
  width: 100%;
  background: var(--surface-alt);
  border: var(--border);
  border-radius: var(--radius-input);
  padding: var(--space-3);
  margin-bottom: var(--space-3);
  line-height: 1.5;
  overflow: auto;
  transition: border-color 100ms, box-shadow 100ms;
}
.gd-paste-area:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.gd-paste-area:empty::before {
  content: attr(data-placeholder);
  color: var(--ink-muted);
  font-style: italic;
}
.gd-paste-area img { max-width: 100%; height: auto; }
.gd-paste-area * { max-width: 100%; }

/* ===== Cookie consent banner ===== */
.cookie-banner {
  position: fixed;
  bottom: var(--space-3);
  left: var(--space-3);
  right: var(--space-3);
  z-index: 1000;
  background: var(--ink);
  color: var(--surface);
  border-radius: var(--radius-card);
  padding: var(--space-3) var(--space-4);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
  max-width: 760px;
  margin: 0 auto;
}
.cookie-banner-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-3);
}
.cookie-banner p {
  margin: 0;
  flex: 1;
  min-width: 220px;
  font-size: var(--fs-sm);
  color: var(--surface);
  line-height: 1.5;
}
.cookie-banner a { color: var(--accent-soft); text-decoration: underline; }
.cookie-banner a:hover { color: var(--accent); }
.cookie-btn {
  background: transparent;
  border: 1.5px solid var(--surface);
  color: var(--surface);
  padding: 6px 14px;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  border-radius: var(--radius-tag);
  white-space: nowrap;
}
.cookie-btn:hover { background: var(--surface); color: var(--ink); }
.cookie-btn-primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.cookie-btn-primary:hover { background: #d05a2c; border-color: #d05a2c; color: #fff; }

/* ===== Tabs ===== */
.tabs {
  display: flex;
  gap: var(--space-1);
  border-bottom: 2px solid var(--line);
  margin: var(--space-5) 0 0;
}
.tabs button {
  background: transparent;
  border: var(--border);
  border-bottom: 0;
  color: var(--ink);
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-input) var(--radius-input) 0 0;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  position: relative;
  top: 2px;
}
.tabs button[aria-selected="true"] {
  background: var(--surface);
  border-bottom: 2px solid var(--surface);
  color: var(--ink);
}
.tabs button:hover { background: var(--surface-alt); }
.tabs button[aria-selected="true"]:hover { background: var(--surface); }

/* ===== Responsive ===== */
@media (max-width: 640px) {
  :root { --fs-h1: 2rem; --fs-h2: 1.5rem; }
  main { padding: var(--space-3); }
  .site-header { padding: var(--space-4) var(--space-3) var(--space-2); }
  .site-footer { padding: var(--space-4) var(--space-3); }
  .hero-slideshow, .hero-window { aspect-ratio: 4 / 3; }
  .hero-title { font-size: 1.25rem; left: var(--space-4); bottom: var(--space-4); }
}
