/* ==========================================================================
   ZyoKit — Stylesheet
   Mobile-first, clean, professional, AdSense-friendly.
   ========================================================================== */

/* ---------- Design tokens ---------- */
:root {
  --color-bg: #ffffff;
  --color-bg-alt: #f6f8fb;
  --color-surface: #ffffff;
  --color-border: #e2e6ec;
  --color-text: #1a2332;
  --color-text-muted: #5b6577;
  --color-primary: #2563eb;
  --color-primary-dark: #1d4ed8;
  --color-primary-contrast: #ffffff;
  --color-accent: #0ea5a4;
  --color-success: #15803d;
  --color-error: #b91c1c;
  --color-error-bg: #fef2f2;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --shadow-sm: 0 1px 2px rgba(16, 24, 40, 0.06);
  --shadow-md: 0 4px 12px rgba(16, 24, 40, 0.08);
  --shadow-lg: 0 12px 32px rgba(16, 24, 40, 0.12);
  --max-width: 1180px;
  --header-height: 64px;
  --font-base: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji";
  --transition: 150ms ease;
}

/* ---------- Reset ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-base);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
  font-size: 16px;
  /* Safety net: nothing on this site should need horizontal page scroll —
     the thumbnail strip scrolls internally. This guards against any future
     element accidentally forcing the page wider than the viewport. */
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

h1, h2, h3, h4 {
  line-height: 1.25;
  margin: 0 0 0.6em;
  font-weight: 700;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(1.75rem, 4vw, 2.5rem); }
h2 { font-size: clamp(1.4rem, 3vw, 1.9rem); }
h3 { font-size: 1.15rem; }

p { margin: 0 0 1em; color: var(--color-text-muted); }

a {
  color: var(--color-primary);
  text-decoration: none;
}
a:hover { text-decoration: underline; }

ul, ol { padding-left: 1.25em; color: var(--color-text-muted); }
li { margin-bottom: 0.4em; }

button {
  font-family: inherit;
}

/* Visible focus states for accessibility */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid var(--color-accent);
  outline-offset: 2px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--color-primary);
  color: #fff;
  padding: 0.75em 1.25em;
  z-index: 1000;
  border-radius: 0 0 var(--radius-sm) 0;
}
.skip-link:focus {
  left: 0;
}

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

/* ---------- Layout helpers ---------- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.25rem;
}

.section {
  padding: 3rem 0;
}

.section--alt {
  background: var(--color-bg-alt);
}

.section-heading {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 2rem;
}

.section-heading p { margin-bottom: 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  padding: 0.85em 1.5em;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: background var(--transition), border-color var(--transition), transform var(--transition);
  min-height: 48px;
  line-height: 1.2;
}
.btn:active { transform: translateY(1px); }

.btn-primary {
  background: var(--color-primary);
  color: var(--color-primary-contrast);
}
.btn-primary:hover { background: var(--color-primary-dark); text-decoration: none; }

.btn-secondary {
  background: var(--color-surface);
  color: var(--color-primary);
  border-color: var(--color-primary);
}
.btn-secondary:hover { background: #eef4ff; text-decoration: none; }

.btn-ghost {
  background: transparent;
  color: var(--color-text);
  border-color: var(--color-border);
}
.btn-ghost:hover { background: var(--color-bg-alt); text-decoration: none; }

.btn-block { width: 100%; }
.btn-sm { min-height: 38px; padding: 0.5em 1em; font-size: 0.9rem; }

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: saturate(180%) blur(6px);
  border-bottom: 1px solid var(--color-border);
  height: var(--header-height);
}

.site-header .container {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5em;
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--color-text);
}
.logo:hover { text-decoration: none; }
.logo-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: var(--color-primary);
  color: #fff;
  font-weight: 800;
  font-size: 1rem;
}

.main-nav {
  display: none;
}

.main-nav ul {
  display: flex;
  gap: 1.75rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.main-nav a {
  color: var(--color-text);
  font-weight: 500;
}

.main-nav a.is-active {
  color: var(--color-primary);
  font-weight: 700;
}

.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border);
  background: var(--color-surface);
}

.nav-toggle-icon,
.nav-toggle-icon::before,
.nav-toggle-icon::after {
  content: "";
  display: block;
  width: 20px;
  height: 2px;
  background: var(--color-text);
  position: relative;
  transition: transform var(--transition);
}
.nav-toggle-icon::before { position: absolute; top: -6px; }
.nav-toggle-icon::after { position: absolute; top: 6px; }

.mobile-nav {
  display: none;
  border-bottom: 1px solid var(--color-border);
  background: var(--color-surface);
}
.mobile-nav.is-open { display: block; }
.mobile-nav ul {
  list-style: none;
  margin: 0;
  padding: 0.5rem 1.25rem 1rem;
}
.mobile-nav li { margin: 0; }
.mobile-nav a {
  display: block;
  padding: 0.75em 0;
  color: var(--color-text);
  font-weight: 500;
  border-bottom: 1px solid var(--color-border);
}

@media (min-width: 860px) {
  .main-nav { display: block; }
  .nav-toggle { display: none; }
  .mobile-nav { display: none !important; }
}

/* ---------- Breadcrumbs ---------- */
.breadcrumbs {
  padding: 0.9rem 0;
  font-size: 0.85rem;
  color: var(--color-text-muted);
}
.breadcrumbs ol {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4em;
  padding: 0;
  margin: 0;
}
.breadcrumbs li:not(:last-child)::after {
  content: "/";
  margin-left: 0.4em;
  color: var(--color-border);
}
.breadcrumbs a { color: var(--color-text-muted); }
.breadcrumbs [aria-current="page"] { color: var(--color-text); font-weight: 600; }

/* ---------- Hero ---------- */
.hero {
  padding: 2.5rem 0 1rem;
  text-align: center;
}
.hero h1 {
  max-width: 820px;
  margin-left: auto;
  margin-right: auto;
}
.hero .subhead {
  max-width: 680px;
  margin: 0 auto 1.75rem;
  font-size: 1.1rem;
}
.hero .btn-group {
  justify-content: center;
  margin-bottom: 0.5rem;
}
.hero-trust {
  margin-top: 1rem;
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

/* ---------- Privacy notice ---------- */
.privacy-note {
  display: flex;
  align-items: flex-start;
  gap: 0.6em;
  background: #eefaf3;
  border: 1px solid #bfe8cf;
  color: #14532d;
  border-radius: var(--radius-md);
  padding: 0.85em 1em;
  font-size: 0.9rem;
  margin: 1rem 0;
}
.privacy-note svg { flex-shrink: 0; margin-top: 0.15em; }

/* ---------- Editor layout ---------- */
.editor {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  align-items: start;
}

@media (min-width: 960px) {
  .editor {
    grid-template-columns: 1.5fr 1fr;
  }
}

.editor-stage {
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 1rem;
  min-height: 320px;
  display: flex;
  flex-direction: column;
  /* Grid items default to min-width:auto, which sizes to their content's
     min-content — including the thumbnail strip's full unscrolled width
     with a large batch. min-width:0 lets this column shrink to its grid
     track instead of blowing out the page width. */
  min-width: 0;
}

.editor-controls {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  min-width: 0;
}

.editor-controls h2,
.editor-controls h3 {
  font-size: 1.05rem;
  margin-bottom: 0.75rem;
}

/* Upload dropzone */
.dropzone {
  border: 2px dashed var(--color-border);
  border-radius: var(--radius-lg);
  padding: 2.5rem 1.25rem;
  text-align: center;
  background: var(--color-surface);
  cursor: pointer;
  transition: border-color var(--transition), background var(--transition);
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
}
.dropzone:hover,
.dropzone.is-dragover {
  border-color: var(--color-primary);
  background: #f2f6ff;
}
.dropzone-icon {
  width: 48px;
  height: 48px;
  color: var(--color-primary);
}
.dropzone strong { color: var(--color-text); }
.dropzone .file-types {
  font-size: 0.8rem;
  color: var(--color-text-muted);
}

.canvas-wrap {
  position: relative;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: var(--radius-md);
  touch-action: none;
}

.canvas-wrap canvas {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-md);
  background: #fff;
  box-shadow: var(--shadow-sm);
  touch-action: none;
}

/* Crop stage: shrink-wraps exactly to the rendered canvas so the
   absolutely-positioned crop box lines up with it pixel-for-pixel. */
.crop-stage {
  position: relative;
  display: inline-block;
  max-width: 100%;
  line-height: 0;
}
.crop-stage canvas {
  display: block;
}

.image-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin-top: 0.75rem;
}

/* Thumbnail strip for bulk (multi-photo) uploads */
.thumb-strip {
  display: flex;
  gap: 0.6rem;
  overflow-x: auto;
  padding: 0.75rem 0.1rem;
  margin-top: 0.5rem;
  scrollbar-width: thin;
  min-width: 0;
  max-width: 100%;
}
.thumb-item {
  position: relative;
  flex: 0 0 auto;
  width: 64px;
  height: 64px;
}
.thumb-select {
  width: 100%;
  height: 100%;
  padding: 0;
  border: 2px solid var(--color-border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--color-bg-alt);
  cursor: pointer;
}
.thumb-select[aria-pressed="true"] {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 2px #eaf1ff;
}
.thumb-select img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.thumb-remove {
  position: absolute;
  top: -7px;
  right: -7px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  color: var(--color-text-muted);
  font-size: 0.9rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.thumb-remove:hover {
  background: var(--color-error-bg);
  color: var(--color-error);
  border-color: #fecaca;
}
.thumb-add {
  flex: 0 0 auto;
  width: 64px;
  height: 64px;
  border: 2px dashed var(--color-border);
  border-radius: var(--radius-sm);
  background: var(--color-bg-alt);
  color: var(--color-primary);
  font-size: 1.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.thumb-add:hover {
  border-color: var(--color-primary);
  background: #f2f6ff;
}

.stage-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 0.9rem;
}

/* Form controls */
.field {
  margin-bottom: 1.1rem;
}
.field label,
.field legend {
  display: block;
  font-weight: 600;
  font-size: 0.88rem;
  margin-bottom: 0.4em;
  padding: 0;
}
.field select,
.field input[type="text"],
.field input[type="number"],
.field input[type="date"],
.field input[type="time"] {
  width: 100%;
  padding: 0.6em 0.7em;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  background: var(--color-surface);
  color: var(--color-text);
}
.field input[type="color"] {
  width: 100%;
  height: 42px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 4px;
  background: var(--color-surface);
}
.field input[type="range"] {
  width: 100%;
}
.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}
.range-value {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  float: right;
}
.checkbox-field {
  display: flex;
  align-items: center;
  gap: 0.5em;
}
.checkbox-field input { width: 18px; height: 18px; }
.checkbox-field label { margin: 0; font-weight: 500; }

fieldset {
  border: none;
  padding: 0;
  margin: 0 0 1.1rem;
}

/* Position grid picker */
.position-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
}
.position-grid button {
  aspect-ratio: 1.4;
  border: 1px solid var(--color-border);
  background: var(--color-bg-alt);
  border-radius: var(--radius-sm);
  cursor: pointer;
  color: var(--color-text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 7px;
  box-sizing: border-box;
}
/* The dot sits wherever on the button that this position actually places
   the stamp, so the grid reads as a real preview rather than 9 identical
   center dots. */
.position-grid button[data-position="top-left"] { align-items: flex-start; justify-content: flex-start; }
.position-grid button[data-position="top-center"] { align-items: flex-start; justify-content: center; }
.position-grid button[data-position="top-right"] { align-items: flex-start; justify-content: flex-end; }
.position-grid button[data-position="bottom-left"] { align-items: flex-end; justify-content: flex-start; }
.position-grid button[data-position="bottom-center"] { align-items: flex-end; justify-content: center; }
.position-grid button[data-position="bottom-right"] { align-items: flex-end; justify-content: flex-end; }
.position-grid button[aria-pressed="true"] {
  border-color: var(--color-primary);
  background: #eaf1ff;
  color: var(--color-primary);
}
.position-grid button span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
}

/* Aspect ratio chip buttons */
.chip-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.chip {
  border: 1px solid var(--color-border);
  background: var(--color-bg-alt);
  color: var(--color-text);
  border-radius: 999px;
  padding: 0.5em 1em;
  font-size: 0.85rem;
  cursor: pointer;
}
.chip[aria-pressed="true"] {
  border-color: var(--color-primary);
  background: var(--color-primary);
  color: #fff;
}

/* Unix Timestamp Converter — live display + copyable result rows */
.live-timestamp {
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  text-align: center;
  margin-bottom: 1.5rem;
}
.live-timestamp .live-label {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.5rem;
}
.live-timestamp .live-value {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  font-size: clamp(1.75rem, 6vw, 2.75rem);
  font-weight: 700;
  color: var(--color-primary);
  overflow-wrap: anywhere;
}
.live-timestamp .live-sub {
  margin-top: 0.75rem;
  color: var(--color-text-muted);
  font-size: 0.88rem;
}

.converter-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
@media (min-width: 860px) {
  .converter-grid { grid-template-columns: 1fr 1fr; align-items: start; }
}
.converter-grid > .editor-controls { min-width: 0; }

.result-row {
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--color-border);
}
.result-row:last-child { border-bottom: none; }
.result-row .result-label {
  display: block;
  color: var(--color-text-muted);
  font-size: 0.8rem;
  margin-bottom: 0.3rem;
}
.result-value-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
}
.result-value {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  font-weight: 600;
  overflow-wrap: anywhere;
  min-width: 0;
}
.copy-icon-btn {
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  border-radius: var(--radius-sm);
  width: 32px;
  height: 32px;
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-muted);
  cursor: pointer;
  flex-shrink: 0;
  padding: 0;
}
.copy-icon-btn:hover { background: #eef4ff; color: var(--color-primary); border-color: var(--color-primary); }
.copy-icon-btn:active { transform: translateY(1px); }

/* Draggable timestamp overlay hint */
.drag-hint {
  font-size: 0.78rem;
  color: var(--color-text-muted);
  margin-top: 0.5rem;
}

/* Crop overlay box */
.crop-box {
  position: absolute;
  border: 2px solid #fff;
  box-shadow: 0 0 0 2000px rgba(15, 20, 30, 0.55);
  cursor: move;
  touch-action: none;
}
.crop-handle {
  position: absolute;
  width: 18px;
  height: 18px;
  background: #fff;
  border: 2px solid var(--color-primary);
  border-radius: 50%;
  touch-action: none;
}
.crop-handle.nw { top: -9px; left: -9px; cursor: nwse-resize; }
.crop-handle.ne { top: -9px; right: -9px; cursor: nesw-resize; }
.crop-handle.sw { bottom: -9px; left: -9px; cursor: nesw-resize; }
.crop-handle.se { bottom: -9px; right: -9px; cursor: nwse-resize; }
.crop-handle.n { top: -9px; left: 50%; margin-left: -9px; cursor: ns-resize; }
.crop-handle.s { bottom: -9px; left: 50%; margin-left: -9px; cursor: ns-resize; }
.crop-handle.e { top: 50%; right: -9px; margin-top: -9px; cursor: ew-resize; }
.crop-handle.w { top: 50%; left: -9px; margin-top: -9px; cursor: ew-resize; }

/* Toast / error message */
.toast {
  position: fixed;
  left: 50%;
  bottom: 1.5rem;
  transform: translateX(-50%);
  background: var(--color-text);
  color: #fff;
  padding: 0.8em 1.2em;
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  box-shadow: var(--shadow-lg);
  z-index: 500;
  max-width: 90vw;
}
.toast.toast-error {
  background: var(--color-error-bg);
  color: var(--color-error);
  border: 1px solid #fecaca;
}

.inline-error {
  background: var(--color-error-bg);
  color: var(--color-error);
  border: 1px solid #fecaca;
  border-radius: var(--radius-sm);
  padding: 0.6em 0.9em;
  font-size: 0.85rem;
  margin-top: 0.75rem;
}

/* ---------- Tool cards ---------- */
.tool-cards {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
}
@media (min-width: 700px) {
  .tool-cards { grid-template-columns: repeat(2, 1fr); }
}
.tool-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  box-shadow: var(--shadow-sm);
}
.tool-card-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: #eaf1ff;
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
}
.tool-card h3 { margin-bottom: 0.2em; }
.tool-card p { margin-bottom: 0.75em; flex: 1; }

/* ---------- Steps ---------- */
.steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
  counter-reset: step;
}
@media (min-width: 700px) {
  .steps { grid-template-columns: repeat(3, 1fr); }
}
.steps li {
  counter-increment: step;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 1.5rem 1.25rem;
  margin: 0;
}
.steps li::before {
  content: counter(step);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--color-primary);
  color: #fff;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

/* ---------- Benefits ---------- */
.benefits-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}
@media (min-width: 700px) {
  .benefits-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1000px) {
  .benefits-grid { grid-template-columns: repeat(4, 1fr); }
}
.benefit {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 1.1rem;
}
.benefit h3 { font-size: 1rem; margin-bottom: 0.3em; }
.benefit p { font-size: 0.9rem; margin: 0; }

/* ---------- FAQ ---------- */
.faq-list {
  max-width: 820px;
  margin: 0 auto;
}
.faq-item {
  border-bottom: 1px solid var(--color-border);
}
.faq-question {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 1.1rem 0.25rem;
  font-weight: 600;
  font-size: 1rem;
  color: var(--color-text);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  cursor: pointer;
}
.faq-question .icon {
  flex-shrink: 0;
  transition: transform var(--transition);
}
.faq-question[aria-expanded="true"] .icon {
  transform: rotate(45deg);
}
.faq-answer {
  padding: 0 0.25rem 1.1rem;
  margin: 0;
  display: none;
}
.faq-answer.is-open { display: block; }

/* ---------- Ad slots ---------- */
.ad-slot {
  max-width: var(--max-width);
  margin: 1.5rem auto;
  padding: 0 1.25rem;
}
.ad-slot-inner {
  border: 1px dashed var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-bg-alt);
  color: var(--color-text-muted);
  font-size: 0.78rem;
  text-align: center;
  padding: 0.75rem;
  min-height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ---------- Content pages ---------- */
.content-page {
  max-width: 780px;
  margin: 0 auto;
}
.content-page h2 { margin-top: 2rem; }
.content-page h3 { margin-top: 1.5rem; }
.content-page section + section { margin-top: 1.5rem; }
.legal-updated {
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--color-bg-alt);
  border-top: 1px solid var(--color-border);
  padding: 2.5rem 0 1.5rem;
  margin-top: 2rem;
}
.footer-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: 1fr;
  margin-bottom: 2rem;
}
@media (min-width: 700px) {
  .footer-grid { grid-template-columns: 2fr repeat(3, 1fr); }
}
.footer-brand p { font-size: 0.9rem; }
.footer-col h4 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-text-muted);
  margin-bottom: 0.75em;
}
.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer-col a {
  color: var(--color-text);
  font-size: 0.92rem;
}
.footer-bottom {
  border-top: 1px solid var(--color-border);
  padding-top: 1.25rem;
  font-size: 0.82rem;
  color: var(--color-text-muted);
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  justify-content: space-between;
}

/* ---------- Utilities ---------- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.hidden { display: none !important; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition-duration: 0.001ms !important; animation-duration: 0.001ms !important; }
}
