/* EditorFoto.online — design system (Sudoku.by look) */

/* ---------------------------------------------------------------- tokens */
:root {
  --blue: #3b82f6;
  --blue-dark: #1d4ed8;
  --blue-light: #eff6ff;
  --blue-border: #bfdbfe;
  --accent: #f59e0b;
  --accent-light: #fffbeb;
  --text: #1e293b;
  --text-muted: #64748b;
  --text-light: #94a3b8;
  --surface: #ffffff;
  --surface-2: #f8fafc;
  --surface-3: #f1f5f9;
  --border: #e2e8f0;
  --border-focus: #93c5fd;
  --shadow-sm: 0 1px 3px rgba(0,0,0,.08);
  --shadow: 0 4px 12px rgba(0,0,0,.10);
  --shadow-lg: 0 8px 24px rgba(0,0,0,.12);
  --radius: 10px;
  --radius-sm: 6px;
  --radius-lg: 16px;
  --nav-height: 62px;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* ------------------------------------------------------------------ base */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { font-size: 16px; scroll-behavior: smooth; overflow-x: hidden; }
body {
  font-family: var(--font);
  color: var(--text);
  background: var(--surface-2);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--blue-dark); }
img { max-width: 100%; height: auto; }
h1, h2, h3, h4, h5, h6 { font-weight: 700; line-height: 1.2; color: var(--text); }
h1 { font-size: 2rem; }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.1rem; }
p { margin-bottom: 1rem; color: var(--text-muted); }
ul, ol { margin: 0 0 1rem 1.25rem; color: var(--text-muted); }
li { margin-bottom: .35rem; }
.icon { width: 1em; height: 1em; display: inline-block; vertical-align: -0.125em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.skip-link { position: absolute; left: -9999px; top: 0; background: var(--blue); color: #fff; padding: .5rem 1rem; z-index: 200; }
.skip-link:focus { left: 0; color: #fff; }

/* ------------------------------------------------------------ containers */
.container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }
.container-sm { max-width: 760px; margin: 0 auto; padding: 0 1.5rem; }
.page-wrap { padding: 2.5rem 0; }
.section { padding: 3rem 0; }
.section-title { font-size: 1.75rem; font-weight: 800; margin-bottom: 0.5rem; }
.section-subtitle { color: var(--text-muted); margin-bottom: 2rem; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }
.text-center { text-align: center; }
.text-muted { color: var(--text-muted); }
.text-xs { font-size: .75rem; }
.mb-2 { margin-bottom: .5rem; } .mb-3 { margin-bottom: .75rem; } .mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; } .mb-8 { margin-bottom: 2rem; }
.mt-3 { margin-top: .75rem; } .mt-6 { margin-top: 1.5rem; }

/* ------------------------------------------------------------------- nav */
.site-nav {
  position: sticky; top: 0; z-index: 100;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  height: var(--nav-height);
}
.nav-inner { display: flex; align-items: center; gap: 1.5rem; height: var(--nav-height); }
.nav-logo {
  display: flex; align-items: center; gap: .55rem;
  font-size: 1.15rem; font-weight: 800; color: var(--text); white-space: nowrap;
}
.nav-logo:hover { color: var(--blue-dark); }
.nav-links { display: flex; list-style: none; gap: .25rem; margin: 0; flex: 1; }
.nav-links a, .nav-dropdown-trigger {
  display: flex; align-items: center; gap: .3rem;
  padding: .45rem .8rem; border-radius: var(--radius-sm);
  color: var(--text-muted); font-size: .9rem; font-weight: 500; cursor: pointer;
}
.nav-links a:hover, .nav-dropdown-trigger:hover { color: var(--text); background: var(--surface-3); }
.nav-links a.active { color: var(--blue-dark); background: var(--blue-light); font-weight: 600; }
.nav-actions { display: flex; align-items: center; gap: .5rem; margin-left: auto; }

/* mega menu */
.nav-has-dropdown { position: relative; }
.nav-mega {
  position: absolute; top: 100%; left: 50%; transform: translateX(-50%);
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: 0 12px 40px rgba(0,0,0,.14);
  padding: 1.25rem 1.5rem 1rem; min-width: 700px;
  opacity: 0; visibility: hidden; translate: 0 6px;
  transition: all .18s ease;
}
.nav-has-dropdown:hover .nav-mega,
.nav-has-dropdown:focus-within .nav-mega { opacity: 1; visibility: visible; translate: 0 0; }
.nav-mega-cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.nav-mega-heading {
  font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .07em;
  color: var(--text-light); margin-bottom: .5rem;
}
.nav-mega a { display: block; padding: .28rem 0; font-size: .85rem; color: var(--text-muted); }
.nav-mega a:hover { color: var(--blue-dark); background: none; }
.nav-mega-footer { border-top: 1px solid var(--border); margin-top: 1rem; padding-top: .85rem; }
.nav-mega.nav-mega-sm { min-width: 320px; }
.nav-mega.nav-mega-sm .nav-mega-cols { grid-template-columns: 1fr; gap: 0; }

/* hamburger + mobile panel */
.nav-hamburger {
  display: none; flex-direction: column; justify-content: center; gap: 5px;
  width: 40px; height: 40px; background: none; border: none; cursor: pointer;
  border-radius: var(--radius-sm); padding: 8px;
}
.nav-hamburger span { display: block; height: 2px; background: var(--text); border-radius: 2px; transition: all .25s; }
.nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.nav-mobile-panel {
  display: none; position: fixed; inset: var(--nav-height) 0 0 0;
  background: var(--surface); z-index: 99; overflow-y: auto; padding: 1rem 1.5rem 3rem;
}
.nav-mobile-panel.open { display: block; }
.mob-link {
  display: block; padding: .8rem .25rem; font-size: 1rem; font-weight: 600;
  color: var(--text); border-bottom: 1px solid var(--border);
}
.nav-mobile-acc-btn {
  display: flex; justify-content: space-between; align-items: center; width: 100%;
  padding: .8rem .25rem; font-size: 1rem; font-weight: 600; color: var(--text);
  background: none; border: none; border-bottom: 1px solid var(--border);
  cursor: pointer; font-family: var(--font);
}
.nav-mobile-acc-btn svg { transition: transform .2s; }
.nav-mobile-acc-btn.open svg { transform: rotate(180deg); }
.nav-mobile-acc-body { display: none; padding: .25rem 0 .5rem .75rem; }
.nav-mobile-acc-body.open { display: block; }
.nav-mobile-acc-body a { display: block; padding: .5rem .25rem; font-size: .92rem; color: var(--text-muted); }

/* ------------------------------------------------------------ breadcrumb */
.breadcrumb {
  display: flex; flex-wrap: wrap; align-items: center; gap: .4rem;
  font-size: .8rem; color: var(--text-light); padding: 1rem 0 0;
}
.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--blue-dark); }
.breadcrumb .sep { color: var(--text-light); }

/* --------------------------------------------------------------- buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem;
  padding: 0.55rem 1.25rem; border-radius: var(--radius-sm);
  font-size: 0.9rem; font-weight: 600; cursor: pointer;
  border: 2px solid transparent; transition: all 0.15s; white-space: nowrap;
  text-decoration: none; font-family: var(--font);
}
.btn-primary { background: var(--blue); color: #fff; border-color: var(--blue); }
.btn-primary:hover { background: var(--blue-dark); border-color: var(--blue-dark); color: #fff; }
.btn-outline { background: transparent; color: var(--blue); border-color: var(--blue); }
.btn-outline:hover { background: var(--blue-light); }
.btn-accent { background: var(--accent); color: #fff; border-color: var(--accent); }
.btn-accent:hover { background: #d97706; border-color: #d97706; color: #fff; }
.btn-ghost { background: transparent; color: var(--text-muted); border-color: transparent; }
.btn-ghost:hover { background: var(--surface-3); color: var(--text); }
.btn-sm { padding: 0.35rem 0.85rem; font-size: 0.8rem; }
.btn-lg { padding: 0.75rem 1.75rem; font-size: 1rem; }
.btn-xl { padding: 1rem 2.5rem; font-size: 1.1rem; border-radius: var(--radius); }
.btn-full { width: 100%; }

/* ----------------------------------------------------------------- cards */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.card-body { padding: 1.5rem; }
.card-header {
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--border);
  font-weight: 600;
  font-size: inherit;
}
h2.card-header { font-size: 1.25rem; }

.feature-card {
  padding: 1.75rem; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-sm);
}
.feature-card-icon svg { width: 40px; height: 40px; color: var(--blue); display: block; margin-bottom: .75rem; }
.feature-card h3 { margin-bottom: .4rem; }
.feature-card p { font-size: .9rem; }

/* tool card (diff-card pattern) */
.tool-card {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  padding: 1.5rem 1rem; border-radius: var(--radius);
  background: var(--surface); border: 2px solid var(--border);
  transition: all 0.2s; text-decoration: none; color: var(--text);
}
.tool-card:hover { border-color: var(--blue); box-shadow: var(--shadow); transform: translateY(-2px); color: var(--text); }
.tool-card-icon {
  width: 52px; height: 52px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--blue-light); color: var(--blue-dark); margin-bottom: .75rem;
}
.tool-card-icon svg { width: 24px; height: 24px; }
.tool-card-name { font-weight: 700; font-size: .98rem; margin-bottom: .2rem; }
.tool-card-desc { font-size: .78rem; color: var(--text-muted); }

/* guide cards */
.guide-card {
  display: flex; flex-direction: column; overflow: hidden;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: var(--shadow-sm);
  transition: all .2s; color: var(--text);
}
.guide-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); color: var(--text); }
.guide-card img { width: 100%; aspect-ratio: 1200/630; object-fit: cover; display: block; }
.guide-card-body { padding: 1.1rem 1.25rem 1.25rem; }
.guide-card-category {
  font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .07em;
  color: var(--blue); margin-bottom: .35rem;
}
.guide-card-title { font-size: 1rem; font-weight: 700; line-height: 1.35; margin-bottom: .4rem; }
.guide-card-excerpt { font-size: .84rem; color: var(--text-muted); margin: 0; }

/* ----------------------------------------------------------------- forms */
.form-group { margin-bottom: 1.25rem; }
.form-label { display: block; font-weight: 600; font-size: .875rem; margin-bottom: .4rem; }
.form-control {
  width: 100%; padding: .6rem .875rem;
  border: 1.5px solid var(--border); border-radius: var(--radius-sm);
  font-size: .9rem; background: var(--surface); font-family: var(--font); color: var(--text);
}
.form-control:focus { outline: none; border-color: var(--border-focus); box-shadow: 0 0 0 3px rgba(59,130,246,.15); }
textarea.form-control { min-height: 120px; resize: vertical; }

/* ---------------------------------------------------------------- badges */
.badge {
  display: inline-block; padding: .2rem .6rem; border-radius: 999px;
  font-size: .75rem; font-weight: 600;
}
.badge-blue { background: var(--blue-light); color: var(--blue-dark); }
.badge-green { background: #dcfce7; color: #166534; }
.badge-yellow { background: var(--accent-light); color: #92400e; }
.badge-gray { background: var(--surface-3); color: var(--text-muted); }

/* ---------------------------------------------------------------- tables */
.table-wrap { overflow-x: auto; }
table.data-table { width: 100%; border-collapse: collapse; font-size: .88rem; }
.data-table th, .data-table td { text-align: left; padding: .6rem .75rem; border-bottom: 1px solid var(--border); }
.data-table th { font-weight: 700; color: var(--text); background: var(--surface-2); font-size: .8rem; text-transform: uppercase; letter-spacing: .04em; }
.data-table td { color: var(--text-muted); }
.data-table tr:last-child td { border-bottom: none; }

/* ------------------------------------------------------------------ hero */
.hero { padding: 3rem 0 2rem; text-align: center; }
.hero h1 { font-size: 2.3rem; font-weight: 800; margin-bottom: .75rem; }
.hero .hero-sub { font-size: 1.1rem; color: var(--text-muted); max-width: 640px; margin: 0 auto 1.5rem; }
.hero-badges { display: flex; flex-wrap: wrap; gap: .5rem; justify-content: center; margin-bottom: .5rem; }

/* ---------------------------------------------------------------- editor */
.ef-dropzone {
  border: 2px dashed var(--blue-border); border-radius: var(--radius-lg);
  background: var(--surface); padding: 3rem 1.5rem; text-align: center;
  cursor: pointer; transition: all .2s;
}
.ef-dropzone:hover, .ef-dropzone.is-drag { border-color: var(--blue); background: var(--blue-light); }
.ef-dropzone svg.ef-upload-icon { width: 48px; height: 48px; color: var(--blue); margin: 0 auto .75rem; display: block; }
.ef-drop-title { font-size: 1.15rem; font-weight: 700; color: var(--text); display: block; margin-bottom: .3rem; }
.ef-drop-hint { font-size: .82rem; color: var(--text-light); display: block; margin-bottom: 1.1rem; }
.ef-privacy-note {
  display: inline-flex; align-items: center; gap: .4rem;
  font-size: .78rem; color: var(--text-muted);
  background: var(--surface-2); border: 1px solid var(--border);
  padding: .35rem .75rem; border-radius: 999px; margin-top: 1.1rem;
}
.ef-privacy-note svg { width: 14px; height: 14px; color: #16a34a; }

.ef-editor { margin-top: 1.5rem; }
.ef-layout { display: grid; grid-template-columns: 1fr 320px; gap: 1.5rem; align-items: start; }
.ef-stage {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow-sm); padding: 1rem;
  display: flex; align-items: center; justify-content: center; min-height: 320px;
  background-image: linear-gradient(45deg, var(--surface-3) 25%, transparent 25%, transparent 75%, var(--surface-3) 75%),
                    linear-gradient(45deg, var(--surface-3) 25%, transparent 25%, transparent 75%, var(--surface-3) 75%);
  background-size: 20px 20px; background-position: 0 0, 10px 10px;
}
.ef-stage canvas { max-width: 100%; border-radius: 4px; touch-action: none; }
.ef-panel {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow-sm); padding: 1.25rem; position: sticky; top: calc(var(--nav-height) + 1rem);
}
.ef-panel h2 { font-size: .95rem; margin-bottom: 1rem; }
.ef-control { margin-bottom: 1.1rem; }
.ef-control-label { display: flex; justify-content: space-between; font-size: .82rem; font-weight: 600; margin-bottom: .35rem; }
.ef-control-label output { color: var(--blue-dark); font-variant-numeric: tabular-nums; }
.ef-control input[type="range"] { width: 100%; accent-color: var(--blue); }
.ef-control input[type="color"] {
  width: 100%; height: 38px; border: 1.5px solid var(--border); border-radius: var(--radius-sm);
  background: var(--surface); padding: 2px; cursor: pointer;
}
.ef-check { display: flex; align-items: center; gap: .5rem; font-size: .85rem; font-weight: 600; color: var(--text); }
.ef-check input { accent-color: var(--blue); width: 16px; height: 16px; }

.ef-btn-row { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.1rem; }
.ef-chip {
  padding: .35rem .7rem; border-radius: 999px; font-size: .78rem; font-weight: 600;
  border: 1.5px solid var(--border); background: var(--surface); color: var(--text-muted);
  cursor: pointer; transition: all .15s; font-family: var(--font);
}
.ef-chip:hover { border-color: var(--blue); color: var(--blue-dark); }
.ef-chip.is-active { background: var(--blue); border-color: var(--blue); color: #fff; }

.ef-presets { display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; margin-bottom: 1.1rem; }
.ef-preset {
  padding: .55rem .4rem; border-radius: var(--radius-sm); font-size: .74rem; font-weight: 600;
  border: 1.5px solid var(--border); background: var(--surface); color: var(--text-muted);
  cursor: pointer; transition: all .15s; font-family: var(--font); text-align: center;
}
.ef-preset:hover { border-color: var(--blue); color: var(--blue-dark); }
.ef-preset.is-active { background: var(--blue-light); border-color: var(--blue); color: var(--blue-dark); }

.ef-size-row { display: flex; gap: .5rem; align-items: center; margin-bottom: .6rem; }
.ef-size-row .form-control { text-align: center; padding: .45rem .5rem; }
.ef-size-x { color: var(--text-light); font-weight: 600; }

.ef-actions { display: grid; gap: .5rem; border-top: 1px solid var(--border); padding-top: 1.1rem; }
.ef-meta { display: flex; justify-content: space-between; align-items: center; font-size: .76rem; color: var(--text-light); margin-top: .75rem; }
.ef-meta strong { color: var(--text-muted); font-variant-numeric: tabular-nums; }
.ef-sizes { font-size: .8rem; color: var(--text-muted); display: flex; gap: .75rem; align-items: baseline; margin-bottom: .9rem; }
.ef-sizes .is-good { color: #16a34a; font-weight: 700; }

.ef-toast {
  position: fixed; bottom: 1.5rem; left: 50%; transform: translateX(-50%) translateY(20px);
  background: #0f172a; color: #fff; font-size: .85rem; font-weight: 500;
  padding: .7rem 1.2rem; border-radius: var(--radius-sm); box-shadow: var(--shadow-lg);
  opacity: 0; pointer-events: none; transition: all .25s; z-index: 150; max-width: 90vw;
}
.ef-toast.is-show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* editor accordions (homepage all-in-one) */
.ef-acc { border-bottom: 1px solid var(--border); }
.ef-acc summary {
  cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center;
  padding: .8rem 0; font-size: .88rem; font-weight: 700; color: var(--text);
}
.ef-acc summary::-webkit-details-marker { display: none; }
.ef-acc summary svg { transition: transform .2s; }
.ef-acc[open] summary svg { transform: rotate(180deg); }
.ef-acc-body { padding: .25rem 0 1rem; }

/* ------------------------------------------------------------- below-fold */
.below-fold { background: var(--surface-2); border-top: 1px solid var(--border); padding: 3rem 0 0; }
.steps-list { counter-reset: step; list-style: none; margin: 0; }
.steps-list li { counter-increment: step; display: flex; gap: .9rem; margin-bottom: 1rem; }
.steps-list li::before {
  content: counter(step);
  flex-shrink: 0; width: 28px; height: 28px; border-radius: 50%;
  background: var(--blue-light); color: var(--blue-dark);
  font-weight: 800; font-size: .85rem; display: flex; align-items: center; justify-content: center;
}
.steps-list strong { display: block; color: var(--text); font-size: .92rem; }
.steps-list p { font-size: .86rem; margin: 0; }

.faq-details { border-bottom: 1px solid var(--border); padding: .75rem 0; }
.faq-details:last-child { border-bottom: none; }
.faq-details summary {
  cursor: pointer; font-weight: 600; font-size: .9rem; color: var(--text);
  list-style: none; display: flex; justify-content: space-between; align-items: center; gap: .75rem;
}
.faq-details summary::-webkit-details-marker { display: none; }
.faq-details summary svg { flex-shrink: 0; transition: transform .2s; }
.faq-details[open] summary svg { transform: rotate(180deg); }
.faq-answer { padding: .6rem 0 .25rem; font-size: .87rem; color: var(--text-muted); line-height: 1.7; }

/* --------------------------------------------------------------- article */
.article-layout { display: grid; grid-template-columns: 1fr 280px; gap: 3rem; align-items: start; }
.article-body { max-width: 760px; }
.article-body h2 { margin: 2rem 0 .75rem; font-size: 1.4rem; }
.article-body h3 { margin: 1.4rem 0 .5rem; }
.article-body img { border-radius: var(--radius); margin-bottom: 1rem; }
.article-body table { width: 100%; border-collapse: collapse; font-size: .88rem; margin-bottom: 1.25rem; background: var(--surface); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); }
.article-body th, .article-body td { text-align: left; padding: .6rem .75rem; border-bottom: 1px solid var(--border); }
.article-body th { background: var(--surface-2); font-size: .8rem; text-transform: uppercase; letter-spacing: .04em; }
.article-body tr:last-child td { border-bottom: none; }
.article-meta { font-size: .8rem; color: var(--text-light); margin-bottom: 1.5rem; }
.article-hero { border-radius: var(--radius-lg); box-shadow: var(--shadow); margin-bottom: 1.75rem; }
.hub-sidebar { position: sticky; top: calc(var(--nav-height) + 1.5rem); display: grid; gap: 1.25rem; }
.hub-sidebar .card-body { padding: 1.1rem 1.25rem; }
.hub-sidebar a { display: block; padding: .3rem 0; font-size: .86rem; }
.toc a { color: var(--text-muted); }
.toc a:hover { color: var(--blue-dark); }

.callout {
  background: var(--blue-light); border: 1px solid var(--blue-border);
  border-radius: var(--radius); padding: 1.1rem 1.35rem; margin: 1.25rem 0;
}
.callout h3 { font-size: 1rem; margin-bottom: .4rem; }
.callout p, .callout li { font-size: .88rem; }
.callout :last-child { margin-bottom: 0; }

/* ---------------------------------------------------------------- footer */
.site-footer { background: #0f172a; color: #94a3b8; padding: 3rem 0 1.5rem; margin-top: 4rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 2rem 1.75rem; margin-bottom: 2.5rem; }
.footer-brand { font-size: 1.5rem; font-weight: 800; color: #60a5fa; margin-bottom: .5rem; }
.footer-desc { font-size: .85rem; color: #94a3b8; max-width: 280px; }
.footer-heading {
  font-weight: 700; color: #e2e8f0; font-size: .875rem;
  text-transform: uppercase; letter-spacing: .07em; margin-bottom: .75rem;
}
.footer-links { list-style: none; margin: 0; }
.footer-links li { margin-bottom: .4rem; }
.footer-links a { color: #94a3b8; font-size: .85rem; }
.footer-links a:hover { color: #60a5fa; }
.footer-bottom {
  border-top: 1px solid #1e293b; padding-top: 1.5rem;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: .5rem;
  font-size: .8rem; color: #64748b;
}

/* ---------------------------------------------------------------- errors */
.error-page { text-align: center; padding: 5rem 1.5rem; }
.error-page h1 { font-size: 4rem; color: var(--blue); }

/* ------------------------------------------------------------- responsive */
@media (max-width: 1100px) {
  .ef-layout { grid-template-columns: 1fr 290px; }
  .footer-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 900px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .article-layout { grid-template-columns: 1fr; }
  .hub-sidebar { position: static; }
  .ef-layout { grid-template-columns: 1fr; }
  .ef-panel { position: static; }
}
@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
  .nav-actions .btn-nav-cta { display: none; }
}
@media (max-width: 600px) {
  h1 { font-size: 1.6rem; }
  .hero h1 { font-size: 1.75rem; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .ef-presets { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 480px) {
  .grid-4 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .container, .container-sm { padding: 0 1rem; }
}
