/* Vagabond Bloggers. Palette: night-road indigo, map paper, highway yellow, pine. */
:root {
  --ink: #1B2340;
  --ink-2: #2A3358;
  --paper: #EEF1F3;
  --white: #FFFFFF;
  --line: #F5DF14;      /* Vagabond yellow, from the 2018 logo */
  --pine: #2F6B5B;      /* links and actions on light backgrounds */
  --muted: #555C6E;
  --rule: #CDD3DA;
  --danger: #A33A2A;
  --display: 'Bricolage Grotesque', 'Arial Narrow', system-ui, sans-serif;
  --read: 'Literata', Georgia, 'Times New Roman', serif;
  --step--1: 0.875rem;
  --step-0: 1.0625rem;
  --step-1: 1.333rem;
  --step-2: 1.777rem;
  --step-3: 2.369rem;
  --step-4: clamp(2.6rem, 7vw, 4.8rem);
  --gutter: clamp(1.1rem, 4vw, 2.5rem);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 var(--step-0)/1.65 var(--read); }
img { max-width: 100%; height: auto; }
a { color: var(--pine); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--line); outline-offset: 2px; box-shadow: 0 0 0 5px var(--ink); border-radius: 2px; }
h1, h2, h3 { font-family: var(--display); line-height: 1.08; letter-spacing: -0.015em; margin: 0 0 0.5em; }
h1 { font-size: var(--step-3); font-weight: 800; }
h2 { font-size: var(--step-2); font-weight: 800; }
h3 { font-size: var(--step-1); font-weight: 600; }
p { margin: 0 0 1em; }
.wrap { width: min(1140px, 100%); margin-inline: auto; padding-inline: var(--gutter); }
.narrow { max-width: 760px; }
.wrap.narrow { width: min(760px, 100%); }
.section { padding-block: clamp(2.5rem, 7vw, 5rem); }
.center { text-align: center; }
.small { font-size: var(--step--1); }
.muted, .meta { color: var(--muted); }
.meta { font-family: var(--display); font-size: var(--step--1); }
.skip { position: absolute; left: -999px; top: 0; background: var(--line); color: var(--ink); padding: .6rem 1rem; z-index: 10; }
.skip:focus { left: 0; }
.trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.loading { color: var(--muted); font-style: italic; }

/* ---------- header ---------- */
.top { display: flex; align-items: center; gap: 1.5rem; padding: .85rem var(--gutter); background: var(--ink); color: var(--white); position: sticky; top: 0; z-index: 5; }
.brand { display: flex; align-items: center; gap: .6rem; color: var(--white); text-decoration: none; font: 800 1.15rem/1 var(--display); letter-spacing: -0.01em; white-space: nowrap; }
.brand-mark { width: 10px; height: 30px; background: repeating-linear-gradient(to bottom, var(--line) 0 8px, transparent 8px 13px); }
.nav { display: flex; gap: 1.3rem; margin-left: auto; font: 600 .98rem/1 var(--display); }
.nav a { color: #DCE1EA; text-decoration: none; padding-block: .4rem; border-bottom: 2px solid transparent; }
.nav a:hover, .nav a[aria-current] { color: var(--white); border-bottom-color: var(--line); }
.top-actions { display: flex; align-items: center; gap: 1rem; }
.login-link { color: #DCE1EA; font: 600 .98rem/1 var(--display); text-decoration: none; }
.login-link:hover { color: var(--white); }
@media (max-width: 900px) {
  .top { flex-wrap: wrap; gap: .6rem 1rem; padding-block: .7rem; }
  .top-actions { margin-left: auto; }
  .nav { order: 3; width: 100%; margin-left: 0; flex-wrap: wrap; gap: .3rem 1.1rem; }
  .nav a { white-space: nowrap; }
}

/* ---------- buttons ---------- */
.btn { display: inline-block; font: 700 1rem/1 var(--display); padding: .95rem 1.4rem; border-radius: 3px; border: 2px solid var(--ink); background: var(--ink); color: var(--white); text-decoration: none; cursor: pointer; min-height: 48px; }
.btn:hover { background: var(--ink-2); }
.btn-small { padding: .6rem .9rem; min-height: 0; font-size: .92rem; background: var(--line); color: var(--ink); border-color: var(--line); }
.btn-small:hover { background: #FFE84D; }
.btn-road { background: var(--line); border-color: var(--line); color: var(--ink); }
.btn-road:hover { background: #FFE84D; }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: var(--white); }
.btn-ghost-light { background: transparent; color: var(--white); border-color: #8C95B5; }
.btn-ghost-light:hover { border-color: var(--white); background: rgba(255,255,255,.06); }
.btn-danger { background: transparent; color: var(--danger); border-color: var(--danger); }
.btn[disabled] { opacity: .55; cursor: wait; }
.linkish { background: none; border: 0; padding: 0; color: var(--pine); font: inherit; text-decoration: underline; cursor: pointer; }

/* ---------- hero: the road runs down the left ---------- */
.hero { background: var(--ink); color: var(--white); position: relative; overflow: hidden; }
.hero::before { content: ''; position: absolute; top: 0; bottom: 0; left: max(var(--gutter), calc(50% - 570px + var(--gutter))); width: 8px;
  background: repeating-linear-gradient(to bottom, var(--line) 0 46px, transparent 46px 78px); animation: drive 2.4s linear 1; }
@keyframes drive { from { background-position: 0 -312px; } to { background-position: 0 0; } }
@media (prefers-reduced-motion: reduce) { .hero::before { animation: none; } }
.hero-inner { padding-block: clamp(3.5rem, 11vw, 8rem) clamp(3rem, 8vw, 6rem); padding-left: calc(var(--gutter) + 2.4rem); }
.hero h1 { font-size: var(--step-4); max-width: 13ch; letter-spacing: -0.03em; line-height: .98; margin-bottom: .45em; }
.hero-lede { font-size: clamp(1.1rem, 2.2vw, 1.3rem); max-width: 40rem; color: #D5DAE6; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2rem; }

/* section headings carry a short yellow road dash */
.road-head { display: flex; align-items: center; gap: .7rem; }
.road-head::before { content: ''; flex: none; width: 26px; height: 7px; background: var(--line); box-shadow: 0 0 0 1px rgba(27,35,64,.15); }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.2rem; }
.section-head h2 { margin: 0; }
.section-head a { font: 600 1rem var(--display); }
.section-intro { max-width: 40rem; color: var(--muted); margin-top: -.4rem; }

.page-head { background: var(--ink); color: var(--white); padding-block: clamp(2.5rem, 7vw, 4.5rem) clamp(2rem, 5vw, 3rem); border-bottom: 8px dashed var(--line); }
.page-head p { color: #D5DAE6; max-width: 42rem; font-size: 1.12rem; }
.page-head h1 { font-size: clamp(2.2rem, 6vw, 3.6rem); letter-spacing: -0.025em; }
.page-head a:not(.btn) { color: var(--line); }

/* ---------- story listings ---------- */
.story-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.2rem 2rem; }
.story-card { display: flex; flex-direction: column; text-decoration: none; color: inherit; border-top: 3px solid var(--ink); padding-top: 1rem; }
.story-card img { aspect-ratio: 3/2; object-fit: cover; width: 100%; margin-bottom: .9rem; background: var(--rule); }
.story-card h3 { font-size: 1.35rem; margin-bottom: .4rem; }
.story-card:hover h3 { text-decoration: underline; text-decoration-color: var(--line); text-decoration-thickness: 4px; text-underline-offset: .15em; }
.story-card p { color: var(--muted); font-size: .98rem; margin-bottom: .7rem; }
.story-card .meta { margin-top: auto; }
.story-card.lead { grid-column: 1 / -1; display: grid; grid-template-columns: 1.3fr 1fr; gap: 2rem; align-items: start; border-top-width: 6px; }
.story-card.lead img { margin: 0; aspect-ratio: 16/10; }
.story-card.lead h3 { font-size: clamp(1.8rem, 4vw, 2.7rem); font-weight: 800; letter-spacing: -0.02em; }
.story-card.lead p { font-size: 1.1rem; }
.story-card.lead.no-img { grid-template-columns: 1fr; max-width: 52rem; }
@media (max-width: 900px) { .story-grid { grid-template-columns: 1fr 1fr; } .story-card.lead { grid-template-columns: 1fr; } }
@media (max-width: 600px) { .story-grid { grid-template-columns: 1fr; gap: 1.8rem; } }
.empty { padding: 2rem; background: var(--white); border-left: 6px solid var(--line); }

.steps-band { background: var(--white); }
.steps { list-style: none; counter-reset: step; padding: 0; margin: 1.5rem 0 2rem; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.8rem; }
.steps li { counter-increment: step; position: relative; padding-top: 3.3rem; }
.steps li::before { content: counter(step); position: absolute; top: 0; left: 0; font: 800 2.4rem/1 var(--display); color: var(--ink); }
.steps li::after { content: ''; position: absolute; top: 1rem; left: 2.4rem; right: -1.2rem; height: 6px; background: repeating-linear-gradient(to right, var(--line) 0 18px, transparent 18px 30px); }
.steps li:last-child::after { right: 0; }
.steps p { color: var(--muted); font-size: .98rem; }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

/* ---------- showcase ---------- */
.showcase-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.blogger { background: var(--white); padding: 1.5rem; border-bottom: 6px solid var(--ink); display: flex; flex-direction: column; }
.blogger-top { display: flex; gap: 1rem; align-items: center; margin-bottom: .9rem; }
.blogger img, .avatar-fallback { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; flex: none; }
.avatar-fallback { display: inline-grid; place-items: center; background: var(--ink); color: var(--line); font: 800 1.6rem var(--display); }
.avatar-fallback.big { width: 120px; height: 120px; font-size: 3rem; }
.blogger h3 { margin: 0; }
.blogger h3 a { color: var(--ink); text-decoration: none; }
.blogger .pitch { font-style: italic; }
.blogger .niches { font: 600 .9rem var(--display); color: var(--pine); }
.blogger .actions { margin-top: auto; display: flex; gap: 1rem; flex-wrap: wrap; font: 600 .95rem var(--display); padding-top: .6rem; }
@media (max-width: 900px) { .showcase-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .showcase-grid { grid-template-columns: 1fr; } }

/* ---------- found on the road ---------- */
.road-band { background: var(--ink); color: var(--white); }
.road-band .section-intro { color: #C9CFDE; }
.road-band a { color: var(--line); }
.road-list { display: grid; gap: 0; }
.pick { display: grid; grid-template-columns: 11rem 1fr; gap: 1.5rem; padding-block: 1.6rem; border-top: 1px solid var(--rule); }
.road-band .pick { border-top-color: #3A4470; }
.pick-who { font: 600 .95rem/1.35 var(--display); }
.pick-who span { display: block; font-weight: 400; color: var(--muted); }
.road-band .pick-who span { color: #AEB6CC; }
.pick h3 { font-size: 1.3rem; margin-bottom: .5rem; }
.pick blockquote { margin: 0 0 .8rem; font-style: italic; font-size: 1.05rem; }
.pick .note { font-size: .95rem; color: var(--muted); }
.road-band .pick .note { color: #C9CFDE; }
.pick .read { font: 700 .98rem var(--display); }
@media (max-width: 640px) { .pick { grid-template-columns: 1fr; gap: .4rem; } }

/* ---------- reading a story ---------- */
.story-head { padding-top: clamp(2.5rem, 6vw, 4rem); }
.story-head h1 { font-size: clamp(2.1rem, 5.5vw, 3.4rem); letter-spacing: -0.025em; }
.byline { font: 600 1rem var(--display); }
.byline .meta { display: block; font-weight: 400; margin-top: .2rem; }
.story-tags { display: flex; gap: .5rem; flex-wrap: wrap; margin-bottom: 1rem; }
.tag { font: 600 .85rem var(--display); background: var(--line); color: var(--ink); padding: .25rem .6rem; text-decoration: none; border-radius: 2px; }
.story-cover { margin: 2rem auto; max-width: 1140px; padding-inline: var(--gutter); }
.story-cover img { width: 100%; max-height: 70vh; object-fit: cover; }
.story-body { font-size: 1.15rem; line-height: 1.75; padding-block: 1.5rem; }
.story-body h2 { font-size: 1.7rem; margin-top: 2em; }
.story-body h3 { margin-top: 1.6em; }
.story-body blockquote { margin: 1.8em 0; padding-left: 1.3rem; border-left: 6px solid var(--line); font-style: italic; font-size: 1.25rem; }
.story-body img { display: block; margin: 1.8em auto; }
.story-body figure { margin: 1.8em 0; }
.story-body figcaption { font-size: var(--step--1); color: var(--muted); }
.story-body iframe { width: 100%; aspect-ratio: 16/9; height: auto; border: 0; }
.story-body ul, .story-body ol { padding-left: 1.3em; }
.story-body > p:first-child::first-letter { font: 800 3.6em/0.8 var(--display); float: left; margin: .08em .1em 0 0; color: var(--ink); }
.share { display: flex; flex-wrap: wrap; gap: 1rem 1.3rem; align-items: center; padding-block: 1.5rem; border-top: 1px solid var(--rule); font: 600 1rem var(--display); }
.author-box { display: flex; gap: 1.2rem; background: var(--white); padding: 1.5rem; margin-block: 1rem 2rem; border-left: 6px solid var(--line); }
.author-box img { border-radius: 50%; width: 72px; height: 72px; object-fit: cover; flex: none; }
.author-name { font: 800 1.2rem var(--display); margin-bottom: .3rem; }
.author-name a { color: var(--ink); text-decoration: none; }
.country { font-weight: 400; color: var(--muted); margin-left: .5rem; font-size: .95rem; }
.author-actions { display: flex; gap: 1.2rem; flex-wrap: wrap; font: 600 .95rem var(--display); margin: 0; }
.more-road { padding-bottom: 3rem; }
.more-list { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.more-list a { display: block; color: var(--ink); text-decoration: none; border-top: 3px solid var(--ink); padding-top: .8rem; }
.more-title { display: block; font: 600 1.2rem/1.2 var(--display); }
.more-author { color: var(--muted); font-size: .95rem; }
@media (max-width: 700px) { .more-list { grid-template-columns: 1fr; } }

.cta-band { background: var(--line); color: var(--ink); padding-block: clamp(2.5rem, 6vw, 4rem); }
.cta-band h2 { font-size: clamp(1.7rem, 4vw, 2.5rem); max-width: 22ch; }
.cta-band .btn-road { background: var(--ink); color: var(--line); border-color: var(--ink); }

/* ---------- profile ---------- */
.profile { padding-block: 3rem; }
.profile-head { display: flex; gap: 1.5rem; align-items: center; margin-bottom: 1.5rem; }
.profile-photo { border-radius: 50%; width: 120px; height: 120px; object-fit: cover; }
.profile-head h1 { margin: 0 0 .3rem; }
.profile-bio { font-size: 1.15rem; }
.profile-links { display: flex; flex-wrap: wrap; gap: .5rem 1.2rem; font: 600 .95rem var(--display); }
.story-list { list-style: none; padding: 0; }
.story-list a { display: block; color: inherit; text-decoration: none; padding-block: 1.2rem; border-top: 1px solid var(--rule); }
.story-list h3 { margin-bottom: .3rem; }
.story-list a:hover h3 { text-decoration: underline; text-decoration-color: var(--line); text-decoration-thickness: 4px; }

/* ---------- forms ---------- */
.form-band { background: var(--white); }
.form { display: grid; gap: 1.1rem; }
.form fieldset { border: 0; padding: 0; margin: 0 0 1rem; display: grid; gap: 1.1rem; }
.form legend { font: 800 var(--step-1) var(--display); margin-bottom: .8rem; }
.form label { display: grid; gap: .35rem; font: 600 .98rem var(--display); }
.opt { font-weight: 400; color: var(--muted); }
.hint { font: 400 .88rem var(--display); color: var(--muted); }
input, textarea, select { font: 400 1.05rem/1.5 var(--read); color: var(--ink); background: var(--white); border: 2px solid #AEB6C4; border-radius: 3px; padding: .7rem .8rem; width: 100%; min-height: 48px; }
.form-band input, .form-band textarea, .form-band select { background: var(--paper); }
input:focus, textarea:focus, select:focus { border-color: var(--ink); outline: 3px solid var(--line); outline-offset: 0; }
textarea { resize: vertical; }
.check { display: flex !important; gap: .7rem; align-items: flex-start; font-weight: 400 !important; font-family: var(--read) !important; }
.check input { width: 22px; height: 22px; min-height: 0; flex: none; margin-top: .2rem; accent-color: var(--ink); }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
@media (max-width: 640px) { .row2 { grid-template-columns: 1fr; } }
.form-msg { margin: 0; font: 600 1rem var(--display); min-height: 1.4em; }
.form-msg.ok { color: var(--pine); background: #E3F0EA; padding: 1rem; border-left: 6px solid var(--pine); }
.form-msg.err { color: var(--danger); }
.notice { background: #FFF4CC; border-left: 6px solid var(--line); padding: .9rem 1rem; }
.join-layout { display: grid; grid-template-columns: 1fr 2fr; gap: 3rem; align-items: start; }
.join-notes { position: sticky; top: 6rem; }
.join-notes h2 { font-size: 1.3rem; }
.ticks, .crosses { padding-left: 0; list-style: none; margin-bottom: 1.8rem; }
.ticks li, .crosses li { padding-left: 1.6rem; position: relative; margin-bottom: .55rem; }
.ticks li::before { content: '✓'; position: absolute; left: 0; color: var(--pine); font-weight: 700; }
.crosses li::before { content: '✕'; position: absolute; left: 0; color: var(--danger); font-weight: 700; }
@media (max-width: 860px) { .join-layout { grid-template-columns: 1fr; } .join-notes { position: static; } }
.login-box { padding-block: 4rem; }
.prose h2 { margin-top: 1.8em; font-size: 1.6rem; }
.prose p { max-width: 68ch; }
.empty-page { padding-block: 5rem; }
.tag-filter { color: var(--white) !important; }

/* ---------- writing desk + control panel ---------- */
.desk-head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.5rem; }
.desk-head p { display: flex; gap: 1.2rem; font: 600 1rem var(--display); }
.desk { display: grid; grid-template-columns: 1.6fr 1fr; gap: 2.5rem; align-items: start; }
@media (max-width: 900px) { .desk { grid-template-columns: 1fr; } }
.desk-form { background: var(--white); padding: clamp(1.2rem, 3vw, 2rem); }
.format-help { font-size: .95rem; }
.format-help summary, .profile-edit summary { cursor: pointer; font: 600 1rem var(--display); color: var(--pine); padding-block: .4rem; }
.profile-edit { background: var(--white); padding: 1rem 1.2rem; margin-top: 1.5rem; }
.my-pieces { list-style: none; padding: 0; margin: 0; }
.my-pieces li { padding: .9rem 0; border-top: 1px solid var(--rule); }
.status { display: inline-block; font: 700 .8rem var(--display); padding: .2rem .55rem; border-radius: 2px; margin-right: .4rem; }
.status-pending { background: #FFF4CC; color: #6B5200; }
.status-published { background: #E3F0EA; color: var(--pine); }
.status-rejected { background: #F7E3DF; color: var(--danger); }
.status-hidden { background: var(--rule); color: var(--muted); }
.editor-note { font-size: .95rem; background: var(--paper); padding: .6rem .8rem; margin: .5rem 0; border-left: 4px solid var(--danger); }

.tabs { display: flex; gap: .3rem; overflow-x: auto; border-bottom: 3px solid var(--ink); margin-bottom: 1.8rem; scrollbar-width: thin; }
.tabs button { font: 600 1rem var(--display); background: none; border: 0; padding: .85rem 1rem; cursor: pointer; color: var(--muted); white-space: nowrap; border-radius: 3px 3px 0 0; }
.tabs button[aria-selected="true"] { background: var(--ink); color: var(--white); }
.count:not(:empty) { background: var(--line); color: var(--ink); border-radius: 99px; padding: .05rem .5rem; font-size: .85rem; margin-left: .3rem; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 1rem; margin-bottom: 2rem; }
.stat { background: var(--white); padding: 1rem; border-top: 4px solid var(--ink); }
.stat strong { display: block; font: 800 2rem/1 var(--display); }
.stat span { font: 400 .9rem var(--display); color: var(--muted); }
.item { background: var(--white); padding: clamp(1rem, 3vw, 1.6rem); margin-bottom: 1.2rem; border-left: 6px solid var(--line); }
.item h3 { margin-bottom: .3rem; }
.item .sample { max-height: 22rem; overflow: auto; background: var(--paper); padding: 1rem 1.2rem; margin: 1rem 0; font-size: 1rem; }
.item .actions { display: flex; flex-wrap: wrap; gap: .7rem; align-items: center; margin-top: 1rem; }
.item textarea { margin-top: .5rem; }
.item.done { opacity: .55; border-left-color: var(--rule); }
.admin-row { display: grid; grid-template-columns: 1fr auto; gap: 1rem; align-items: center; padding: 1rem 0; border-top: 1px solid var(--rule); }
.admin-row h3 { font-size: 1.1rem; margin: 0 0 .2rem; }
.admin-row .actions { display: flex; gap: .5rem; flex-wrap: wrap; justify-content: flex-end; }
.admin-row .btn { padding: .55rem .8rem; min-height: 40px; font-size: .9rem; }
@media (max-width: 700px) { .admin-row { grid-template-columns: 1fr; } .admin-row .actions { justify-content: flex-start; } }
.filter-row { display: flex; gap: .5rem; flex-wrap: wrap; margin-bottom: 1rem; }
.filter-row button[aria-pressed="true"] { background: var(--ink); color: var(--white); }
.help { background: #FFF4CC; padding: 1rem 1.2rem; border-left: 6px solid var(--line); margin-bottom: 1.5rem; }

/* ---------- footer ---------- */
.foot { background: var(--ink); color: #C9CFDE; padding-block: 3rem; border-top: 8px dashed var(--line); }
.foot-inner { width: min(1140px, 100%); margin-inline: auto; padding-inline: var(--gutter); }
.foot-brand { font: 800 1.4rem var(--display); color: var(--white); margin-bottom: .4rem; }
.foot a { color: var(--white); }
.foot-nav { display: flex; flex-wrap: wrap; gap: .6rem 1.4rem; margin: 1.2rem 0; font: 600 1rem var(--display); }

/* ---------- marketplace additions ---------- */
[hidden] { display: none !important; }
.spaced { margin-top: 3rem; }
.two-ways { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; margin-top: 2rem; max-width: 52rem; }
.two-ways > div { border-left: 6px solid var(--line); padding-left: 1.2rem; }
.two-ways h2 { font-size: 1.4rem; color: var(--white); }
.two-ways p { font-size: 1rem; }
@media (max-width: 640px) { .two-ways { grid-template-columns: 1fr; } }
.search-box { display: grid; gap: .4rem; font: 600 1rem var(--display); max-width: 30rem; margin-bottom: 1.5rem; }
.hire-box { background: var(--white); padding: clamp(1.2rem, 3vw, 2rem); margin-top: 3rem; border-top: 6px solid var(--line); scroll-margin-top: 5rem; }
.hire-box input, .hire-box textarea { background: var(--paper); }
.badge { display: inline-block; background: var(--line); color: var(--ink); font: 600 .95rem var(--display); padding: .4rem .8rem; }
.progress { background: var(--white); padding: 1rem 1.2rem; margin-bottom: 1.5rem; border-left: 6px solid var(--line); }
.progress p { margin-bottom: .6rem; }
.bar { height: 12px; background: var(--paper); }
.bar span { display: block; height: 100%; background: repeating-linear-gradient(to right, var(--ink) 0 18px, var(--ink-2) 18px 24px); min-width: 4px; }
.plain-steps { padding-left: 1.3rem; margin-bottom: 1.8rem; }
.plain-steps li { margin-bottom: .55rem; }
.check-note { font-size: .95rem; background: var(--paper); padding: .6rem .8rem; margin: .6rem 0; border-left: 4px solid var(--pine); }
.check-note.flag { border-left-color: var(--danger); background: #F7E3DF; }
.toast { position: fixed; bottom: 1rem; left: 50%; transform: translateX(-50%); z-index: 20; box-shadow: 0 4px 18px rgba(27,35,64,.25); }
.reject-box, .edit-box { margin-top: 1rem; }

/* ---------- advertising ---------- */
.ad-slot:not(.ad-on) { display: none; }
.ad-slot.ad-on { margin: 2rem auto; text-align: center; max-width: 1140px; padding-inline: var(--gutter); }
.ad-slot.ad-wide.ad-on { margin-block: 1.2rem; }
.ad-slot img { max-width: 100%; height: auto; display: block; margin: 0 auto; }
.ad-label { font: 400 .75rem var(--display); color: var(--muted); margin: 0 0 .3rem; text-align: center; }
.story-body .ad-slot.ad-on { padding-inline: 0; margin-block: 2rem; }
.ad-in-grid.ad-on { grid-column: 1 / -1; margin: 0; }
.ad-preview { max-width: 100%; max-height: 120px; display: block; margin-bottom: .8rem; border: 1px solid var(--rule); }
.mode-box .check { margin-bottom: .7rem; }
.err { color: var(--danger); }
.ad-places { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.5rem; }
.ad-places li { background: var(--white); padding: 1.2rem; border-top: 4px solid var(--line); }
/* placeholders shown only in the preview */
.ad-demo { border: 2px dashed #B9A24A; background: #FFF8DB; color: #6B5200; font: 600 .95rem var(--display); padding: 1.4rem 1rem; text-align: center; }

/* ---------- logo ---------- */
.brand img { display: block; height: 34px; width: auto; }
.foot-brand img { display: block; height: 30px; width: auto; margin-bottom: .4rem; }
@media (max-width: 600px) { .brand img { height: 26px; } }

/* ---------- Brand patterns (our own artwork) ----------
   Warli travellers: the creators' side (home, stories, join, about, footer).
   Block print: the business side (hire, advertise, terms) and the yellow call-out bands. */
.hero, .page-head, .foot { background-image: url(warli-on-dark.svg); background-size: 1000px; background-position: center top; }
.page-head.print { background-image: url(ajrakh-on-dark.svg); background-size: 120px; }
.cta-band { background-image: url(ajrakh-on-yellow.svg); background-size: 120px; }
.cta-band .wrap > * { position: relative; }
.cta-band h2, .cta-band p { background: var(--line); display: inline-block; padding: .1em 8px; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.cta-band p { display: table; margin-bottom: 1.2rem; }
