/* BeProject Lab — shared styles */
:root {
  --ink: #121417;
  --white: #FFFFFF;
  --accent: #F2541B;
  --text: rgba(255, 255, 255, 0.86);
  --soft: rgba(255, 255, 255, 0.72);
  --muted: rgba(255, 255, 255, 0.6);
  --dim: rgba(255, 255, 255, 0.48);
  --line: rgba(255, 255, 255, 0.14);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html, body { margin: 0; }
body {
  min-height: 100vh;
  min-height: 100dvh;
  background: var(--ink);
  color: var(--white);
  font-family: 'Archivo', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.sr {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

/* ---------- Menu ---------- */
.nav { display: flex; align-items: center; gap: clamp(4px, 1.2vw, 16px); }
.nav .link {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px;
  font-weight: 400; font-size: 14px; letter-spacing: 0.01em;
  color: var(--soft); text-decoration: none;
  text-underline-offset: 6px; text-decoration-thickness: 1px;
  transition: color .2s;
}
.nav .link:hover,
.nav .link[aria-current="page"] {
  color: var(--white); text-decoration: underline; text-decoration-color: var(--accent);
}
.lang {
  display: flex; align-items: center;
  margin-left: 4px; padding-left: 8px;
  border-left: 1px solid rgba(255, 255, 255, 0.16);
}
.lang a {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 44px; min-height: 44px; padding: 0 6px;
  font-size: 13px; letter-spacing: 0.08em;
  color: var(--dim); text-decoration: none; transition: color .2s;
}
.lang a:hover, .lang a[aria-current="true"] { color: var(--white); }
.lang .sep { font-size: 13px; color: rgba(255, 255, 255, 0.32); }

/* ---------- Home ---------- */
.home {
  position: relative; min-height: 100vh; min-height: 100dvh; padding: 24px;
  display: flex; align-items: center; justify-content: center;
}
.home .nav { position: absolute; top: clamp(12px, 2.5vw, 28px); right: clamp(12px, 3vw, 40px); }
.home main { display: flex; flex-direction: column; align-items: center; gap: clamp(32px, 5vw, 48px); }
.mark { display: block; width: clamp(128px, 22vw, 200px); height: auto; }
.wordmark {
  margin: 0; font-size: clamp(28px, 4.8vw, 44px); font-weight: 800;
  letter-spacing: -0.035em; line-height: 1; white-space: nowrap;
}
.lab { font-weight: 300; color: var(--accent); }
.tagline {
  margin: -12px 0 0;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  text-align: center;
}
/* Both phrases always on one line: the size shrinks on narrow screens so the
   longer (English) line still fits. 22.5 = line width / font size, with margin. */
.tagline strong {
  font-size: min(clamp(19px, 2.4vw, 24px), calc((100vw - 56px) / 22.5)); font-weight: 800;
  letter-spacing: -0.02em; line-height: 1.2; color: var(--white); white-space: nowrap;
}
.tagline .accent { color: var(--accent); }

/* ---------- Inner pages header ---------- */
.site-header {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: clamp(12px, 2.5vw, 28px) clamp(12px, 3vw, 40px);
}
.brand {
  display: inline-flex; align-items: center; gap: 10px; min-height: 44px;
  color: var(--white); text-decoration: none;
}
.brand svg { display: block; width: 28px; height: 28px; }
.brand .name { font-size: 18px; font-weight: 800; letter-spacing: -0.035em; line-height: 1; }

/* ---------- Blog list ---------- */
.list-wrap { max-width: 880px; margin: 0 auto; padding: clamp(48px, 8vw, 112px) 24px clamp(64px, 8vw, 120px); }
.page-title { margin: 0; font-size: clamp(44px, 6vw, 72px); font-weight: 800; letter-spacing: -0.035em; line-height: 1; }
.series-head {
  display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between;
  gap: 8px 24px; margin-top: clamp(48px, 6vw, 80px); padding-bottom: 24px;
}
.series-head .left { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 16px; }
.kicker { font-size: 12px; font-weight: 400; letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent); }
.series-name { font-size: 22px; font-weight: 300; letter-spacing: -0.01em; }
.count { font-size: 13px; color: var(--muted); }
.posts { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.posts li { border-bottom: 1px solid var(--line); }
.row {
  display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 24px;
  padding: 40px 0; color: inherit; text-decoration: none;
}
.num { font-size: 40px; font-weight: 300; line-height: 1; color: var(--accent); }
.row .body { display: flex; flex-direction: column; gap: 12px; }
.meta { font-size: 13px; color: var(--muted); }
.row h2 {
  margin: 0; font-size: clamp(22px, 2.6vw, 30px); font-weight: 800;
  letter-spacing: -0.02em; line-height: 1.15; transition: color .2s;
}
.row:hover h2, .row:focus-visible h2 { color: var(--accent); }
.row p { margin: 0; font-size: 17px; line-height: 1.6; color: var(--soft); }

/* ---------- Article ---------- */
.article-wrap { max-width: 720px; margin: 0 auto; padding: clamp(32px, 5vw, 72px) 24px clamp(64px, 8vw, 120px); }
.back {
  display: inline-flex; align-items: center; min-height: 44px; font-size: 14px;
  color: var(--soft); text-decoration: none; text-underline-offset: 6px; text-decoration-thickness: 1px;
  transition: color .2s;
}
.back:hover { color: var(--white); text-decoration: underline; text-decoration-color: var(--accent); }
article { margin-top: 32px; }
.article-kicker { margin: 0 0 20px; }
.article-title { margin: 0; font-size: clamp(36px, 5vw, 60px); font-weight: 800; letter-spacing: -0.035em; line-height: 1.05; }
.article-meta { margin: 24px 0 0; font-size: 14px; color: var(--muted); }
.legal .article-meta { font-size: 15px; color: var(--soft); }
.prose { margin-top: 48px; font-size: 19px; line-height: 1.7; color: var(--text); }
.prose p { margin: 0 0 1.15em; }
.prose h2 {
  margin: 48px 0 20px; font-size: 26px; font-weight: 800;
  letter-spacing: -0.02em; line-height: 1.2; color: var(--white);
}
.article-foot {
  margin-top: 80px; padding-top: 32px; border-top: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 32px;
}
.origin { margin: 0; font-size: 14px; color: var(--muted); }
.origin a { color: var(--white); text-underline-offset: 4px; text-decoration-thickness: 1px; text-decoration-color: var(--accent); }
.pager { display: flex; flex-direction: column; gap: 32px; }
.pager a { display: flex; flex-direction: column; gap: 8px; color: inherit; text-decoration: none; }
.pager .t { font-size: 22px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.2; transition: color .2s; }
.pager a:hover .t, .pager a:focus-visible .t { color: var(--accent); }

/* ---------- Coming soon ---------- */
.soon {
  min-height: calc(100vh - 190px); min-height: calc(100dvh - 190px);
  display: flex; align-items: center; justify-content: center; padding: 24px;
}
.soon-inner { display: flex; flex-direction: column; align-items: center; gap: clamp(28px, 4vw, 40px); }
.smile { display: block; width: clamp(72px, 9vw, 104px); height: auto; }
.soon h1 {
  margin: 0; font-size: clamp(36px, 6vw, 72px); font-weight: 800;
  letter-spacing: -0.035em; line-height: 1; text-align: center;
}

/* ---------- Footer (contact email) ---------- */
.site-foot { display: flex; justify-content: center; padding: 16px 24px 24px; }
.site-foot a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 8px;
  font-size: 13px; letter-spacing: 0.02em; color: var(--muted); text-decoration: none;
  text-underline-offset: 6px; text-decoration-thickness: 1px; transition: color .2s;
}
.site-foot a:hover { color: var(--white); text-decoration: underline; text-decoration-color: var(--accent); }
.home .site-foot { position: absolute; left: 0; right: 0; bottom: clamp(4px, 1.5vw, 16px); padding-bottom: 8px; }

/* ---------- Motion ---------- */
@media (prefers-reduced-motion: no-preference) {
  .fade { animation: entrada 0.9s ease-out both; }
  @keyframes entrada {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: none; }
  }
}

/* ---------- Phones ---------- */
@media (max-width: 560px) {
  .nav .link { font-size: 13px; padding: 0 10px; }
  .home .nav { top: 12px; right: 8px; }
  .brand .name { display: none; }
  .site-header { padding: 12px 8px 12px 16px; }
  .row { grid-template-columns: 40px minmax(0, 1fr); gap: 16px; padding: 32px 0; }
  .num { font-size: 28px; }
  .row p { font-size: 16px; }
  .prose { font-size: 18px; }
  .prose h2 { font-size: 23px; }
}
@media (max-width: 360px) {
  .nav { gap: 0; }
  .nav .link { padding: 0 8px; }
  .lang { margin-left: 2px; padding-left: 4px; }
  .lang a { min-width: 40px; }
}

/* ======================================================================
   Community, accounts, resources and legal pages
   ====================================================================== */
:root { --danger: #FF8A80; --ok: #7DD3A8; --panel: rgba(255, 255, 255, 0.04); --field: rgba(255, 255, 255, 0.06); }

.app-wrap { max-width: 880px; margin: 0 auto; padding: clamp(32px, 6vw, 80px) 24px clamp(64px, 8vw, 120px); }
.app-wrap.narrow { max-width: 560px; }
.app-wrap[aria-busy="true"] { min-height: 50vh; }
.lead { margin: 20px 0 0; font-size: clamp(17px, 2vw, 19px); line-height: 1.6; color: var(--soft); max-width: 38em; }
.muted { color: var(--muted); }
.small { font-size: 14px; line-height: 1.5; }
.stack > * + * { margin-top: 20px; }

/* Buttons and links */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 22px; border-radius: 8px; border: 1px solid transparent;
  font: 800 15px/1 'Archivo', system-ui, sans-serif; letter-spacing: 0.01em;
  text-decoration: none; cursor: pointer; transition: background .2s, color .2s, border-color .2s;
}
.btn-primary { background: var(--accent); color: var(--ink); }
.btn-primary:hover { background: #ff6a33; }
.btn-ghost { background: transparent; color: var(--white); border-color: rgba(255, 255, 255, 0.28); font-weight: 400; }
.btn-ghost:hover { border-color: var(--white); }
.btn-danger { background: transparent; color: var(--danger); border-color: rgba(255, 138, 128, 0.5); font-weight: 400; }
.btn-danger:hover { border-color: var(--danger); }
.btn[disabled] { opacity: .55; cursor: progress; }
.btn:focus-visible, .linkish:focus-visible, .chip:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.linkish {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0; border: 0; background: none;
  font: inherit; color: var(--white); cursor: pointer;
  text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 5px; text-decoration-thickness: 1px;
}
.linkish:hover { color: var(--accent); }

/* Forms */
.form { margin-top: 32px; display: flex; flex-direction: column; gap: 20px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field > label, .field > .label, fieldset > legend { font-size: 14px; font-weight: 800; letter-spacing: 0.01em; }
.field .opt { font-weight: 400; color: var(--muted); }
.input, .textarea, .select {
  width: 100%; min-height: 48px; padding: 12px 14px; border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.18); background: var(--field); color: var(--white);
  font: 400 16px/1.4 'Archivo', system-ui, sans-serif;
}
.textarea { min-height: 140px; resize: vertical; line-height: 1.55; }
.select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--soft) 50%), linear-gradient(135deg, var(--soft) 50%, transparent 50%);
  background-position: calc(100% - 20px) 21px, calc(100% - 15px) 21px; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 40px; }
.select option { background: var(--ink); }
.input:focus, .textarea:focus, .select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.input[readonly] { color: var(--muted); }
.hint { font-size: 13px; line-height: 1.45; color: var(--muted); }
.field-error { font-size: 13px; line-height: 1.45; color: var(--danger); }
.field.invalid .input, .field.invalid .textarea { border-color: var(--danger); }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; line-height: 1.5; color: var(--soft); }
.check input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--accent); flex: none; }
.check a { color: var(--white); text-decoration-color: var(--accent); text-underline-offset: 4px; }
.field > label.check { font-size: 15px; font-weight: 400; letter-spacing: 0; }
fieldset { margin: 0; padding: 0; border: 0; min-width: 0; }
fieldset > legend { padding: 0; margin-bottom: 10px; }
.counter { font-size: 12px; color: var(--dim); text-align: right; }

/* Role picker on sign-up */
.roles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.role-option { position: relative; }
.role-option input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.role-option .card {
  display: flex; flex-direction: column; gap: 6px; height: 100%; padding: 14px; border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.18); background: var(--field); transition: border-color .2s;
}
.role-option .card b { font-size: 15px; }
.role-option .card span { font-size: 13px; line-height: 1.45; color: var(--muted); }
.role-option input:checked + .card { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.role-option input:focus-visible + .card { outline: 2px solid var(--accent); outline-offset: 2px; }

/* Notices */
.notice { margin-top: 24px; padding: 16px 18px; border-radius: 8px; background: var(--panel); border-left: 3px solid var(--accent); font-size: 15px; line-height: 1.55; color: var(--text); }
.notice.ok { border-left-color: var(--ok); }
.notice.error { border-left-color: var(--danger); }
.notice strong { color: var(--white); }
.status-pill { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; letter-spacing: 0.04em; color: var(--soft); }
.status-pill::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.status-pill.approved::before { background: var(--ok); }
.status-pill.rejected::before { background: var(--danger); }

/* Steps on the community intro */
.steps { list-style: none; margin: 40px 0 0; padding: 0; display: grid; gap: 0; border-top: 1px solid var(--line); counter-reset: step; }
.steps li { counter-increment: step; display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 16px; padding: 24px 0; border-bottom: 1px solid var(--line); }
.steps li::before { content: "0" counter(step); font-size: 28px; font-weight: 300; line-height: 1; color: var(--accent); }
.steps b { display: block; font-size: 18px; margin-bottom: 6px; }
.steps span { font-size: 16px; line-height: 1.55; color: var(--soft); }

/* Signed-in bar */
.userbar { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 20px; margin-bottom: 32px; font-size: 14px; color: var(--muted); }
.userbar .hello { margin-right: auto; }

/* Community toolbar and filters */
.head-row { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; }
.toolbar { margin-top: 32px; display: flex; flex-direction: column; gap: 14px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.filter-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.filter-label { font-size: 14px; color: var(--muted); }
.chip {
  display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.22); background: transparent; color: var(--soft);
  font: 400 14px/1 'Archivo', system-ui, sans-serif; cursor: pointer; transition: background .2s, color .2s, border-color .2s;
}
.chip:hover { border-color: var(--white); color: var(--white); }
a.chip { text-decoration: none; }
.chip[aria-pressed="true"], .chip[aria-checked="true"] { background: var(--white); border-color: var(--white); color: var(--ink); font-weight: 800; }
.panel { margin-top: 24px; padding: clamp(18px, 3vw, 28px); border-radius: 12px; background: var(--panel); border: 1px solid var(--line); }
.panel h2 { margin: 0; font-size: 22px; font-weight: 800; letter-spacing: -0.02em; }

/* Cajas */
.cajas { list-style: none; margin: 28px 0 0; padding: 0; border-top: 1px solid var(--line); }
.caja { border-bottom: 1px solid var(--line); padding: 28px 0; }
.caja-top { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; }
.badge { font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); }
.badge.closed { color: var(--dim); }
.caja h2 { margin: 10px 0 0; font-size: clamp(21px, 2.4vw, 26px); font-weight: 800; letter-spacing: -0.02em; line-height: 1.2; }
.caja h2 button { all: unset; cursor: pointer; transition: color .2s; }
.caja h2 button:hover { color: var(--accent); }
.caja h2 button:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.meta-line { margin-top: 8px; display: flex; flex-wrap: wrap; align-items: center; gap: 0 10px; font-size: 14px; color: var(--muted); }
.meta-line .linkish { min-height: 32px; font-size: 14px; color: var(--soft); }
.excerpt { margin: 12px 0 0; font-size: 16px; line-height: 1.6; color: var(--soft); }
.fulltext { margin: 16px 0 0; font-size: 17px; line-height: 1.65; color: var(--text); white-space: pre-line; overflow-wrap: anywhere; }
.caja-foot { margin-top: 12px; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 18px; font-size: 14px; color: var(--muted); }
.replies { list-style: none; margin: 24px 0 0; padding: 0 0 0 18px; border-left: 2px solid var(--line); display: flex; flex-direction: column; gap: 20px; }
.reply .meta-line { margin-top: 0; }
.reply p { margin: 6px 0 0; font-size: 16px; line-height: 1.6; color: var(--text); white-space: pre-line; overflow-wrap: anywhere; }
.reply-form { margin-top: 20px; display: flex; flex-direction: column; gap: 10px; }
.reply-form .textarea { min-height: 96px; }
.empty { margin-top: 32px; font-size: 17px; line-height: 1.6; color: var(--soft); }

/* Example box: written in the code, always below the real boxes */
.example-zone { margin-top: 56px; }
.example-zone[hidden] { display: none; }
.example-zone .section-title { margin: 0; }
.ex-intro { margin: 8px 0 0; }
.caja.example { margin-top: 20px; padding: clamp(18px, 3vw, 26px); border: 1px dashed rgba(255, 255, 255, 0.34); border-radius: 12px; }
.ex-tag { font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--white); border: 1px solid rgba(255, 255, 255, 0.45); border-radius: 999px; padding: 3px 10px; }
.caja.example h3 { margin: 10px 0 0; font-size: clamp(20px, 2.2vw, 24px); font-weight: 800; letter-spacing: -0.02em; line-height: 1.2; }
.caja.example h3 button { all: unset; cursor: pointer; transition: color .2s; }
.caja.example h3 button:hover { color: var(--accent); }
.caja.example h3 button:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.ex-who { color: var(--soft); }
.ex-why { margin-top: 20px; padding: 16px 18px; border: 1px solid var(--line); border-radius: 10px; }
.ex-why h4 { margin: 0; font-size: 16px; font-weight: 800; letter-spacing: -0.01em; }
.ex-why dl { margin: 12px 0 0; display: grid; gap: 12px; }
.ex-why dt { font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); }
.ex-why dd { margin: 2px 0 0; font-size: 15px; line-height: 1.5; color: var(--text); }
.ex-note { margin: 18px 0 0; }
.ex-actions { margin-top: 14px; }

/* Profile dialog */
dialog.profile-dialog {
  width: min(520px, calc(100vw - 32px)); max-height: calc(100dvh - 48px); padding: 28px; border-radius: 12px;
  border: 1px solid var(--line); background: #1A1D21; color: var(--white);
}
dialog.profile-dialog::backdrop { background: rgba(0, 0, 0, 0.6); }
.profile-dialog h2 { margin: 6px 0 0; font-size: 26px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.15; }
.profile-dialog .headline { margin: 8px 0 0; font-size: 16px; color: var(--soft); }
.profile-dialog .bio { margin: 16px 0 0; font-size: 16px; line-height: 1.6; color: var(--text); white-space: pre-line; overflow-wrap: anywhere; }
.socials { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.socials a { display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, 0.22); color: var(--white); text-decoration: none; font-size: 14px; }
.socials a:hover { border-color: var(--accent); }
.dialog-close { position: absolute; top: 10px; right: 10px; width: 44px; height: 44px; border: 0; border-radius: 8px; background: transparent; color: var(--soft); font-size: 26px; line-height: 1; cursor: pointer; }
.dialog-close:hover { color: var(--white); }

/* Resources */
.res-section { margin-top: clamp(40px, 6vw, 64px); }
.res-section h2 { margin: 0; font-size: 13px; font-weight: 400; letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent); }
.res-section .res-intro { margin: 10px 0 0; font-size: 16px; line-height: 1.6; color: var(--soft); }
.res-list { list-style: none; margin: 20px 0 0; padding: 0; border-top: 1px solid var(--line); }
.res-list li { border-bottom: 1px solid var(--line); }
.res-item { display: block; padding: 24px 0; color: inherit; text-decoration: none; }
.res-item h3 { margin: 0; font-size: 22px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.2; transition: color .2s; }
.res-item:hover h3 { color: var(--accent); }
.res-item p { margin: 8px 0 0; font-size: 16px; line-height: 1.6; color: var(--soft); }
.res-empty { margin: 20px 0 0; padding: 20px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); font-size: 16px; color: var(--muted); }

/* Legal pages */
.legal .prose h2 { font-size: 22px; margin-top: 40px; }
.legal .prose ul { margin: 0 0 1.15em; padding-left: 1.2em; }
.legal .prose li { margin-bottom: .4em; }
.legal .prose a { color: var(--white); text-decoration-color: var(--accent); text-underline-offset: 4px; }

/* Footer with legal links */
.site-foot { flex-wrap: wrap; gap: 0 4px; }
@media (max-width: 560px) {
  .site-foot { gap: 0; }
  .site-foot a { padding: 0 6px; }
  .site-foot .dot { display: none; }
}
.site-foot .dot { display: inline-flex; align-items: center; color: var(--dim); font-size: 13px; }

@media (max-width: 560px) {
  .roles { grid-template-columns: minmax(0, 1fr); }
  .steps li { grid-template-columns: 40px minmax(0, 1fr); }
  .steps li::before { font-size: 22px; }
  .actions .btn { flex: 1 1 auto; }
  dialog.profile-dialog { padding: 24px 20px; }
}

/* Small buttons */
.btn-sm { min-height: 44px; padding: 0 16px; font-size: 14px; }

/* Notifications bell in the menu */
.bell {
  position: relative; display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 8px; color: var(--soft); text-decoration: none;
  transition: color .2s, background .2s;
}
.bell:hover, .bell[aria-current="page"] { color: var(--white); background: rgba(255, 255, 255, 0.08); }
.bell .icon, .bell svg { display: block; width: 20px; height: 20px; }
.bell-count {
  position: absolute; top: 4px; right: 2px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px;
  background: var(--accent); color: var(--ink); font-size: 11px; font-weight: 800; line-height: 18px; text-align: center;
}
.bell-count[hidden] { display: none; }

/* Icons and the "hidden until you connect" box */
.icon { display: inline-flex; }
.icon svg { width: 100%; height: 100%; }
.lockbox { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 10px; background: var(--panel); }
.lockbox .icon { flex: none; width: 18px; height: 18px; margin-top: 2px; color: var(--accent); }
.lockbox p { margin: 0; font-size: 15px; line-height: 1.55; color: var(--text); }
.lockbox p + p { margin-top: 6px; font-size: 14px; }
.status-pill.connected::before { background: var(--ok); }

/* "Me interesa" inside a caja */
.int-panel { margin-top: 24px; padding: clamp(18px, 3vw, 24px); border-radius: 12px; background: var(--panel); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.int-panel h3 { margin: 0; font-size: 19px; font-weight: 800; letter-spacing: -0.02em; }
.int-panel > p { margin: 0; font-size: 15px; line-height: 1.55; color: var(--soft); }
.int-panel .form { width: 100%; }
.int-panel .my-msg { padding: 12px 14px; border-radius: 8px; background: var(--field); color: var(--text); white-space: pre-line; overflow-wrap: anywhere; }
.int-links { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 18px; font-size: 14px; }
.int-note { color: var(--soft); }

/* Interested list, for the caja's author */
.int-section { margin-top: 28px; }
.int-head { display: flex; align-items: baseline; gap: 10px; }
.int-head h3 { margin: 0; font-size: 22px; font-weight: 800; letter-spacing: -0.02em; }
.int-count { font-size: 15px; color: var(--accent); }
.int-list { list-style: none; margin: 14px 0 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.int-card { padding: 18px; border-radius: 12px; background: var(--panel); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.int-card .meta-line { margin-top: 0; }
.int-card p { margin: 0; font-size: 16px; line-height: 1.6; color: var(--text); white-space: pre-line; overflow-wrap: anywhere; }

/* Dialog extras: connection confirm and contact */
.shared-box { margin-top: 16px; padding: 14px 16px; border-radius: 10px; background: rgba(255, 255, 255, 0.05); display: flex; flex-direction: column; gap: 6px; }
.shared-box p { margin: 0; font-size: 15px; line-height: 1.55; color: var(--text); white-space: pre-line; overflow-wrap: anywhere; }
.shared-box p.muted { color: var(--muted); }
.pd-top { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; }
.profile-dialog .bio + .shared-box, .profile-dialog h2 + .bio { margin-top: 12px; }

/* Notifications page */
.notifs { list-style: none; margin: 28px 0 0; padding: 0; border-top: 1px solid var(--line); }
.notif { position: relative; display: flex; flex-direction: column; gap: 8px; padding: 18px 0 18px 22px; border-bottom: 1px solid var(--line); }
.notif.unread::before { content: ""; position: absolute; left: 2px; top: 27px; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.notif .text { margin: 0; font-size: 16px; line-height: 1.55; color: var(--soft); overflow-wrap: anywhere; }
.notif.unread .text { color: var(--text); }
.notif .text b { color: var(--white); }
.notif .when { margin: 0; font-size: 13px; color: var(--muted); }
.notif .acts { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 18px; font-size: 14px; }

/* Connections in Mi perfil */
.section-title { margin: 48px 0 0; font-size: 24px; font-weight: 800; letter-spacing: -0.02em; }
.conns { list-style: none; margin: 14px 0 0; padding: 0; border-top: 1px solid var(--line); }
.conn { display: flex; align-items: center; gap: 12px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.conn .who { flex: 1 1 auto; min-width: 0; }
.conn .who b { font-size: 17px; }
.conn .who .small { margin-top: 4px; overflow-wrap: anywhere; }
.conn .btn { flex: none; }
@media (max-width: 360px) {
  .bell { width: 40px; }
}
/* Phones with the bell in the menu: show only the other language and tighten the links. */
@media (max-width: 560px) {
  .nav:has(.bell) .link { padding: 0 8px; }
  .nav:has(.bell) .lang { padding-left: 4px; }
  .nav:has(.bell) .lang a[aria-current="true"], .nav:has(.bell) .lang .sep { display: none; }
}

/* Several profile types (checkbox cards) */
.role-option.disabled { cursor: default; }
.role-option.disabled .card { opacity: .7; }
.role-option.disabled input { cursor: default; }
.who-line { margin: 12px 0 0; font-size: 16px; color: var(--soft); }

/* Mis recursos */
.my-res { list-style: none; margin: 14px 0 0; padding: 0; border-top: 1px solid var(--line); }
.my-res-item { display: flex; flex-direction: column; gap: 6px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.my-res-item b { font-size: 17px; letter-spacing: -0.01em; line-height: 1.3; overflow-wrap: anywhere; }
.status-pill.off::before { background: var(--dim); }
.panel-title { margin: 0; font-size: 20px; font-weight: 800; letter-spacing: -0.02em; }

/* Resources list */
.res-item h3 .icon { width: 16px; height: 16px; margin-left: 8px; vertical-align: 0.05em; color: var(--soft); }
.res-item .res-meta { font-size: 14px; color: var(--muted); }
.res-locked { margin-top: 32px; padding: clamp(18px, 3vw, 24px); border-radius: 12px; background: var(--panel); border: 1px solid var(--line); }
.res-locked .actions { margin-top: 18px; }

/* ======================================================================
   Administration (only administrators see any of this)
   ====================================================================== */
.app-wrap.wide { max-width: 1160px; }
.nav .nav-admin { display: none; }
@media (min-width: 761px) { .nav .nav-admin { display: inline-flex; } }

/* Confirmation state of two-step buttons ("¿Seguro? …") */
.btn.is-armed { background: var(--accent); border-color: var(--accent); color: var(--ink); font-weight: 800; }
.linkish.is-armed { color: var(--accent); font-weight: 800; }

/* Box in Mi perfil */
.adm-box { margin-top: 28px; padding: 20px; border-radius: 12px; border: 1px solid var(--accent); background: rgba(242, 84, 27, 0.08); display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.adm-box-head { display: flex; align-items: center; gap: 10px; }
.adm-box-head .icon { width: 22px; height: 22px; color: var(--accent); }
.adm-box h2 { margin: 0; font-size: 22px; font-weight: 800; letter-spacing: -0.02em; }
.adm-box p { margin: 0; font-size: 15px; line-height: 1.55; color: var(--text); }
.adm-box p.small { font-size: 13px; color: var(--muted); }

/* Two-step verification */
.mfa-title { font-size: clamp(36px, 5vw, 56px); margin-top: 10px; }
.mfa-steps { list-style: none; margin: 32px 0 0; padding: 0; counter-reset: mfa; display: flex; flex-direction: column; gap: 26px; }
.mfa-steps > li { counter-increment: mfa; position: relative; padding-left: 44px; display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.mfa-steps > li::before {
  content: counter(mfa); position: absolute; left: 0; top: 0; width: 28px; height: 28px; border-radius: 50%;
  border: 1px solid var(--accent); color: var(--accent); font-size: 14px; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
}
.mfa-steps p { margin: 3px 0 0; font-size: 16px; line-height: 1.55; color: var(--text); }
.mfa-steps .form { margin-top: 0; width: 100%; }
.mfa-qr { display: block; width: 200px; height: 200px; padding: 12px; border-radius: 10px; background: #FFFFFF; }
.mfa-secret { margin: 0; }
.mfa-secret code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 15px; letter-spacing: 0.08em; color: var(--white); overflow-wrap: anywhere; }
.mfa-code .input { font-size: 22px; font-weight: 800; letter-spacing: 0.2em; }

/* Panel layout: side menu on wide screens, a row of chips on phones */
.adm { display: flex; flex-wrap: wrap; gap: 24px 40px; margin-top: 32px; align-items: flex-start; }
.adm-nav { flex: 1 1 200px; max-width: 240px; display: flex; flex-direction: column; gap: 4px; }
.adm-tab {
  display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 44px; padding: 0 14px;
  border-radius: 8px; color: var(--soft); font-size: 15px; text-decoration: none; transition: background .2s, color .2s;
}
.adm-tab:hover { color: var(--white); background: rgba(255, 255, 255, 0.05); }
.adm-tab[aria-current="page"] { color: var(--white); background: rgba(255, 255, 255, 0.08); font-weight: 800; }
.adm-count { min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px; background: var(--accent); color: var(--ink); font-size: 12px; font-weight: 800; line-height: 22px; text-align: center; }
.adm-main { flex: 999 1 560px; min-width: 0; }
@media (max-width: 760px) {
  .adm-nav { flex-basis: 100%; max-width: none; flex-direction: row; flex-wrap: wrap; gap: 8px; }
  .adm-tab { flex: none; min-height: 40px; gap: 6px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, 0.22); font-size: 14px; }
  .adm-tab[aria-current="page"] { background: var(--white); border-color: var(--white); color: var(--ink); }
  .adm-tab .adm-count { min-width: 20px; height: 20px; line-height: 20px; }
}
.adm-h { margin: 36px 0 0; font-size: 20px; font-weight: 800; letter-spacing: -0.02em; }
.adm-main > .adm-h:first-child { margin-top: 0; }
.adm-main > .notice:first-child { margin-top: 0; margin-bottom: 16px; }

/* Overview */
.adm-cards { margin-top: 14px; display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.adm-card {
  display: flex; flex-direction: column; gap: 8px; padding: 18px; border-radius: 12px; border: 1px solid var(--line);
  background: var(--panel); color: var(--white); text-decoration: none; font-size: 15px; line-height: 1.35; transition: border-color .2s;
}
.adm-card .num { font-size: 40px; font-weight: 800; letter-spacing: -0.03em; line-height: 1; color: var(--muted); }
.adm-card.hot { border-color: var(--accent); background: rgba(242, 84, 27, 0.08); }
.adm-card.hot .num { color: var(--accent); }
.adm-card:hover { border-color: var(--white); }
.adm-stats { margin: 14px 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); }
@media (max-width: 560px) { .adm-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.adm-stats div { padding: 12px 16px 12px 0; border-bottom: 1px solid var(--line); }
.adm-stats dt { font-size: 13px; color: var(--muted); }
.adm-stats dd { margin: 4px 0 0; font-size: 22px; font-weight: 800; }
.adm-latest { list-style: none; margin: 14px 0 0; padding: 0; display: flex; flex-direction: column; gap: 10px; font-size: 15px; line-height: 1.45; color: var(--text); overflow-wrap: anywhere; }

/* Filters, cards and rows */
.adm-filters { display: flex; flex-wrap: wrap; gap: 0 20px; }
.adm-f { min-height: 44px; padding: 0; border: 0; background: none; font: 400 15px/1.2 'Archivo', system-ui, sans-serif; color: var(--soft); cursor: pointer; }
.adm-f:hover { color: var(--white); }
.adm-f[aria-pressed="true"] { color: var(--white); font-weight: 800; text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: 8px; }
.adm-f:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.adm-items { margin-top: 16px; display: flex; flex-direction: column; gap: 14px; }
.adm-item { padding: 18px; border-radius: 12px; border: 1px solid var(--line); background: var(--panel); display: flex; flex-direction: column; gap: 10px; }
.adm-item h3 { margin: 0; font-size: 20px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.2; overflow-wrap: anywhere; }
.adm-item p { margin: 0; }
.adm-item .notice { margin-top: 0; }
.adm-roles { margin: 4px 0 0; font-size: 14px; color: var(--soft); overflow-wrap: anywhere; }
.adm-text { font-size: 16px; line-height: 1.55; color: var(--text); overflow-wrap: anywhere; white-space: pre-line; }
.adm-meta { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; font-size: 14px; line-height: 1.5; color: var(--soft); overflow-wrap: anywhere; }
p.adm-meta { display: block; }
.adm-meta .linkish { min-height: 36px; }
.linkish .new-tab { margin-left: 0.35em; }
.ok-text { color: var(--ok); }
.warn-text { color: #F5B38F; }
.adm-acts { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 4px; }
.adm-acts .btn { flex: 1 1 140px; }
.adm-search { margin-top: 16px; }
.adm-rows { list-style: none; margin: 16px 0 0; padding: 0; border-top: 1px solid var(--line); }
.adm-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.adm-row .who { flex: 1 1 220px; min-width: 0; }
.adm-row .who b, .adm-row-title { font-size: 16px; font-weight: 800; overflow-wrap: anywhere; }
.adm-row-title { color: var(--white); text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 4px; }
.adm-row .who .small { margin-top: 3px; overflow-wrap: anywhere; }
.adm-row > .btn { flex: none; }
.adm-row-msg { flex-basis: 100%; }
.adm-row-msg:empty { display: none; }
.adm-row-msg .notice { margin-top: 0; }
.adm-empty, .adm-empty-row { margin: 16px 0 0; padding: 18px 0; font-size: 16px; color: var(--muted); }
.adm-empty { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.adm-empty-row { margin: 0; border-bottom: 1px solid var(--line); }

/* Log */
.adm-day { margin-top: 24px; }
.adm-day h3 { margin: 0 0 8px; font-size: 13px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.adm-log { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.adm-log li { display: flex; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 15px; line-height: 1.45; color: var(--text); overflow-wrap: anywhere; }
.adm-log .time { flex: none; width: 48px; padding-top: 1px; font-size: 13px; color: var(--muted); }

/* Moderation in Comunidad */
.mod-bar { margin-top: 18px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding: 10px 12px; border-radius: 10px; border: 1px dashed rgba(242, 84, 27, 0.7); font-size: 14px; color: var(--soft); }
.mod-bar .icon { width: 18px; height: 18px; color: var(--accent); }
.mod-bar .lbl { flex: 1 1 auto; }
.mod-msg { flex-basis: 100%; }
.mod-msg:empty { display: none; }
.mod-msg .notice { margin-top: 0; }
.notif > .badge { margin-bottom: -2px; }

/* A request failed or took too long: message and a button to try again */
.retry-box .actions { margin-top: 16px; }
li > .retry-box { list-style: none; }

/* ---------- Member articles: blog, article page, Mi perfil, panel ---------- */
.comm-posts .series-name { margin: 0; }
.row.no-num { grid-template-columns: minmax(0, 1fr); }
.byline { font-size: 14px; color: var(--soft); }
.comm-note { margin: 24px 0 0; font-size: 14px; line-height: 1.55; color: var(--muted); }
.article-meta.tight { margin-top: 6px; }
.article-meta .author { color: var(--white); }
.member-prose p { white-space: pre-line; overflow-wrap: anywhere; }
.comm-footer { margin-top: 64px; padding: 24px; border: 1px solid var(--line); border-radius: 12px; display: flex; flex-direction: column; gap: 16px; }
.comm-footer > p { margin: 0; font-size: 16px; line-height: 1.6; color: var(--text); }
.comm-footer .actions { margin-top: 0; }
.char-count { margin-top: 6px; font-size: 13px; color: var(--muted); text-align: right; }
.field.checks { display: flex; flex-direction: column; gap: 12px; }
.adm-fulltext { padding: 14px 16px; border-radius: 10px; background: rgba(255, 255, 255, 0.04); font-size: 15px; line-height: 1.6; color: var(--text); max-height: 60vh; overflow: auto; }
.adm-fulltext[hidden] { display: none; }
.adm-fulltext p { margin: 0 0 0.9em; white-space: pre-line; overflow-wrap: anywhere; }
.adm-fulltext p:last-child { margin-bottom: 0; }

/* ======================================================================
   Home (4 Nov 2026): what the site does first, then how it works, trust,
   who helps, a free resource and the blog. Also the About and free
   resource pages.
   ====================================================================== */
.hm { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.hm-hero { display: grid; grid-template-columns: minmax(0, 1fr); gap: 40px; align-items: center; padding: clamp(32px, 7vw, 96px) 0 clamp(48px, 7vw, 88px); }
.hm-hero h1 { margin: 16px 0 0; max-width: 13em; font-size: clamp(38px, 6.2vw, 76px); font-weight: 800; letter-spacing: -0.04em; line-height: 1.02; }
.hm-hero h1 .accent, .hm-h2 .accent { color: var(--accent); }
.hm-hero .lead { margin-top: 24px; font-size: clamp(18px, 2vw, 21px); }
.hm-hero .actions { margin-top: 32px; }
.hm-art { display: none; }
.hm-trust { list-style: none; margin: 28px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 28px; }
.hm-trust li { display: flex; align-items: center; gap: 10px; font-size: 15px; line-height: 1.4; color: var(--soft); }
.hm-trust svg, .ticks svg { flex: none; width: 18px; height: 18px; color: var(--accent); }
.hm-sec { padding: clamp(48px, 6vw, 80px) 0; border-top: 1px solid var(--line); }
.hm-sec .kicker, .hm-card .kicker { display: block; margin-bottom: 14px; }
.hm-h2 { margin: 0; font-size: clamp(26px, 3.2vw, 38px); font-weight: 800; letter-spacing: -0.03em; line-height: 1.1; }
.hm-steps { margin-top: 32px; }
.hm-example { margin-top: 28px; max-width: 640px; padding: 24px; border-radius: 12px; border: 1px solid rgba(255, 255, 255, 0.18); background: var(--panel); display: flex; flex-direction: column; gap: 12px; }
.hm-example .tag { align-self: flex-start; padding: 4px 10px; border-radius: 999px; border: 1px solid rgba(242, 84, 27, 0.6); color: var(--accent); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; }
.hm-example h3 { margin: 0; font-size: 21px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.2; }
.hm-example p { margin: 0; font-size: 16px; line-height: 1.6; color: var(--soft); }
.hm-example .facts { display: flex; flex-wrap: wrap; gap: 8px; }
.hm-example .facts span { padding: 6px 10px; border-radius: 8px; background: var(--field); font-size: 13px; color: var(--soft); }
.hm-note { margin: 14px 0 0; font-size: 14px; color: var(--muted); }
.hm-duo { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; }
.hm-card { padding: clamp(22px, 3vw, 32px); border-radius: 12px; border: 1px solid var(--line); display: flex; flex-direction: column; gap: 16px; scroll-margin-top: 24px; }
.hm-card.accent { border-color: rgba(242, 84, 27, 0.55); }
.hm-card h2 { margin: 0; font-size: clamp(24px, 2.6vw, 30px); font-weight: 800; letter-spacing: -0.03em; line-height: 1.12; }
.hm-card p { margin: 0; font-size: 16px; line-height: 1.6; color: var(--soft); }
.hm-card .actions { margin-top: auto; padding-top: 8px; }
.hm-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.hm-list li { display: grid; grid-template-columns: 18px minmax(0, 1fr); gap: 10px; font-size: 16px; line-height: 1.55; color: var(--soft); }
.hm-list li::before { content: "—"; color: var(--accent); font-weight: 800; }
.hm-list strong { color: var(--white); }
.hm-res { display: grid; grid-template-columns: 88px minmax(0, 1fr); gap: 20px; align-items: start; }
.hm-res h2 { font-size: clamp(22px, 2.4vw, 28px); }
.sheet-mini { width: 88px; aspect-ratio: 3 / 4; border: 1.5px solid rgba(255, 255, 255, 0.6); padding: 13% 11%; display: flex; flex-direction: column; justify-content: space-between; }
.sheet-mini span { display: block; height: 2px; background: rgba(255, 255, 255, 0.35); }
.sheet-mini span:first-child { height: 3px; width: 70%; background: var(--accent); }
.sheet-mini span:nth-child(odd):not(:first-child) { width: 64%; }
.hm-blog .posts { margin-top: 24px; }
.hm-blog .row { padding: 24px 0; }
.row h3 { margin: 0; font-size: clamp(19px, 2.2vw, 25px); font-weight: 800; letter-spacing: -0.02em; line-height: 1.2; transition: color .2s; }
.row:hover h3, .row:focus-visible h3 { color: var(--accent); }
.hm-blog .linkish { margin-top: 16px; }
.hm-start p { max-width: 36em; margin: 16px 0 0; font-size: 18px; line-height: 1.6; color: var(--soft); }
.hm-close { padding: clamp(56px, 8vw, 104px) 0; border-top: 1px solid var(--line); display: flex; flex-direction: column; align-items: center; gap: 28px; }
.hm-close .mark { width: clamp(72px, 10vw, 112px); }
.hm-close .tagline { margin: 0; }
@media (min-width: 900px) {
  .hm-hero { grid-template-columns: minmax(0, 1fr) 260px; }
  .hm-art { display: block; width: 100%; height: auto; }
  .hm-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; border-top: 0; }
  .hm-steps li { grid-template-columns: minmax(0, 1fr); gap: 14px; border-bottom: 0; border-top: 1px solid var(--line); }
  .hm-duo { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .hm { padding: 0 20px; }
  .hm-hero .actions .btn { flex: 1 1 100%; }
}

/* About page */
.ticks { list-style: none; margin: 0 0 1.15em; padding: 0; border-top: 1px solid var(--line); }
.ticks li { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 17px; line-height: 1.5; }
.ticks svg { margin-top: 3px; }
.sign { margin: 40px 0 0; font-size: 15px; color: var(--muted); }

/* Free resource: page and card */
.free-card { margin-top: 32px; display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 18px; align-items: center; padding: 18px 20px; border-radius: 12px; border: 1px solid rgba(242, 84, 27, 0.55); color: inherit; text-decoration: none; }
.free-card .sheet-mini { width: 64px; }
.free-card .t { display: block; margin-top: 6px; font-size: 20px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.2; transition: color .2s; }
.free-card .d { display: block; margin-top: 4px; font-size: 15px; line-height: 1.5; color: var(--soft); }
.free-card:hover .t, .free-card:focus-visible .t { color: var(--accent); }
.free-card:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.tpl-get { margin-top: 32px; display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.tpl-get .small { margin: 0; }
.sheet-mini.big { width: 180px; margin: 48px auto 0; }
.steps .eg { margin: 12px 0 0; padding-left: 14px; border-left: 2px solid var(--accent); font-size: 16px; line-height: 1.55; color: var(--white); }
