/* 4x4OffRoads: base theme (design F). Mobile first, no framework. Fonts: Archivo + Source Sans 3. */

:root {
    --ink: #0e2233;
    --ink-soft: #3d5466;
    --muted: #4f6474;
    --paper: #f4f6f7;
    --card: #ffffff;
    --line: #dfe6eb;
    --dark: #0e2233;
    --dark-2: #1a3349;
    --accent: #d5582b;
    --accent-ink: #b4471d;
    --radius: 10px;
    --wrap: 1280px;
    --head: "Archivo", "Arial Narrow", system-ui, sans-serif;
    --shadow: 0 1px 2px rgba(14,34,51,.08), 0 4px 14px rgba(14,34,51,.06);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font: 17px/1.6 "Source Sans 3", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}
img { max-width: 100%; height: auto; }
a { color: var(--accent-ink); text-underline-offset: 2px; }
a:hover { color: var(--ink); }
h1, h2, h3 { font-family: var(--head); font-stretch: 112%; font-weight: 700; line-height: 1.15; margin: 0 0 .5em; }
h1 { font-weight: 800; }
h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); }
h2 { font-size: 1.4rem; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
.wrap.narrow { max-width: 720px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.small { font-size: .85rem; }
.meta { color: var(--muted); font-size: .9rem; margin: 0 0 .4em; }
.lead { font-size: 1.15rem; color: var(--ink-soft); max-width: 60ch; }
.crumbs { font-size: .9rem; color: var(--muted); margin: 0 0 .5em; }
.crumbs a { color: var(--muted); }

/* Buttons */
.btn {
    display: inline-block; padding: .75em 1.4em; border-radius: 6px; border: 0;
    background: var(--dark-2); color: #fff; font: inherit; font-weight: 600;
    text-decoration: none; cursor: pointer; line-height: 1.2;
}
.btn:hover { color: #fff; filter: brightness(1.1); }
.btn-accent { background: var(--accent); color: #fff; }
.btn-ghost { background: transparent; color: #fff; box-shadow: inset 0 0 0 2px rgba(255,255,255,.6); }
.btn-accent:hover { background: var(--accent-ink); filter: none; }

/* Header */
.site-header { background: var(--dark); color: #fff; position: relative; z-index: 10; }
.site-header.overlay { position: absolute; left: 0; right: 0; top: 0; background: linear-gradient(180deg, rgba(14,34,51,.72), rgba(14,34,51,0)); }
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 76px; flex-wrap: wrap; }
.brand img { display: block; height: 44px; width: auto; }
.nav-toggle { position: absolute; opacity: 0; pointer-events: none; }
.nav-burger { width: 44px; height: 44px; display: grid; place-items: center; cursor: pointer; }
.nav-burger span, .nav-burger span::before, .nav-burger span::after {
    content: ""; display: block; width: 22px; height: 2px; background: #fff; position: relative;
}
.nav-burger span::before { position: absolute; top: -7px; }
.nav-burger span::after { position: absolute; top: 7px; }
.main-nav { display: none; width: 100%; flex-direction: column; padding: 8px 0 16px; gap: 4px; }
.nav-toggle:checked ~ .main-nav { display: flex; }
.site-header.overlay:has(.nav-toggle:checked) { background: var(--dark); }
.nav-toggle:focus-visible + .nav-burger { outline: 2px solid var(--accent); }
.main-nav a { color: #fff; text-decoration: none; padding: 10px 4px; font-weight: 600; font-size: 1.05rem; }
.main-nav a:hover { color: #fff; text-decoration: underline; text-underline-offset: 6px; }
.main-nav a[aria-current="page"] { text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 3px; text-underline-offset: 8px; }
.main-nav .garage { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 9px 16px; margin-top: 6px; border-radius: 6px; box-shadow: inset 0 0 0 2px rgba(255,255,255,.7); }
.main-nav .garage:hover { text-decoration: none; background: rgba(255,255,255,.12); }

@media (min-width: 860px) {
    .nav-burger { display: none; }
    .main-nav { display: flex; width: auto; flex-direction: row; align-items: center; padding: 0; gap: 28px; }
    .main-nav .garage { margin: 0; }
}

/* Join the community + footer */
.join { background: var(--card); border-top: 1px solid var(--line); margin-top: 64px; }
.join-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; padding-top: 36px; padding-bottom: 36px; }
.join h2 { font-size: 2rem; font-weight: 800; margin: 0; }
.join p { margin: 6px 0 0; font-size: 1.15rem; color: var(--ink-soft); }
.site-footer { background: var(--dark); color: #c5d3de; font-size: .95rem; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 32px; padding-top: 44px; padding-bottom: 28px; }
.footer-grid p { margin: 14px 0 0; line-height: 1.5; }
.footer-grid img { display: block; height: 40px; width: auto; }
.footer-grid nav { display: flex; flex-direction: column; gap: 8px; }
.footer-grid strong { color: #fff; font-size: .85rem; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 4px; }
.site-footer a { color: #c5d3de; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-top: 16px; padding-bottom: 28px; border-top: 1px solid #23394d; font-size: .9rem; color: #8fa6b8; }
.footer-bottom address { font-style: normal; }

/* Page heads */
.page-head { padding: 36px 0 20px; }
.block { padding-top: 40px; }
.block-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.block-head h2 { margin: 0; font-size: 2rem; }
.block-head a { font-weight: 600; }

/* Front page */
.hero-photo { position: relative; min-height: 560px; display: flex; flex-direction: column; justify-content: flex-end; background: var(--dark); color: #fff; overflow: hidden; }
.hero-photo > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(14,34,51,.35) 0%, rgba(14,34,51,.05) 35%, rgba(14,34,51,.8) 100%); }
.hero-text { position: relative; z-index: 1; padding-top: 120px; padding-bottom: 52px; }
.hero-text h1 { font-size: clamp(2.4rem, 5.8vw, 4.75rem); font-weight: 800; line-height: 1.02; max-width: 820px; margin: 0; }
.hero-text p { margin: 16px 0 0; font-size: clamp(1.1rem, 2vw, 1.3rem); line-height: 1.5; max-width: 560px; color: #e3ebf1; }
.hero-text .btn { margin-top: 24px; }
@media (min-width: 760px) { .hero-photo { min-height: 640px; } }

.home-cols { display: grid; gap: 32px; padding-top: 40px; align-items: start; }
@media (min-width: 1020px) { .home-cols { grid-template-columns: minmax(0, 1fr) 320px; } }
.rig-cards { display: grid; gap: 24px 18px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 700px) { .rig-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.rig-card { display: block; color: var(--ink); text-decoration: none; }
.rig-card img, .rig-card .no-img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 6px; display: block; }
.rig-card .no-img { height: auto; }
.rig-card strong { display: block; margin-top: 10px; line-height: 1.3; }
.rig-card span.sub { display: block; color: var(--muted); font-size: .95rem; }
.rig-card:hover strong { color: var(--accent-ink); }
.card-cat { display: block; font-size: .8rem; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--accent-ink); margin-bottom: 4px; }
.side { display: flex; flex-direction: column; gap: 18px; }
.panel { background: var(--card); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); }
.panel h2 { font-size: 1.4rem; margin: 0 0 14px; }
.panel.warm { background: #fff3ec; box-shadow: inset 0 0 0 1.5px #f3c7b0; }
.panel.warm p { color: var(--ink-soft); margin: 0 0 14px; line-height: 1.5; }
.panel.dark { background: var(--dark); color: #fff; }
.panel.dark a.more { color: #fff; font-weight: 600; display: inline-block; margin-top: 14px; }
.eyebrow { margin: 0 0 6px !important; color: var(--accent-ink) !important; font-weight: 600; font-size: .85rem; text-transform: uppercase; letter-spacing: .08em; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tags a { font-size: .95rem; font-weight: 600; padding: 7px 12px; border-radius: 6px; text-decoration: none; background: var(--paper); color: var(--ink); }
.tags a:hover { background: #fff3ec; color: var(--accent-ink); }
.logo-tiles { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.logo-tiles a { display: grid; place-items: center; height: 64px; border-radius: 6px; background: var(--dark-2); padding: 8px; }
.logo-tiles img { max-width: 100%; max-height: 44px; width: auto; height: auto; object-fit: contain; display: block; }

/* Rig gallery */
.rig-grid { display: grid; gap: 12px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 640px) { .rig-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 980px) { .rig-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.rig {
    position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden;
    border-radius: var(--radius); background: var(--dark-2); color: #fff; text-decoration: none;
}
.rig img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s; }
.rig:hover img { transform: scale(1.04); }
.rig-label {
    position: absolute; left: 0; right: 0; bottom: 0; padding: 28px 10px 8px;
    background: linear-gradient(transparent, rgba(0,0,0,.75)); font-weight: 600; font-size: .95rem; line-height: 1.3;
}
.rig:hover { color: #fff; }
.no-img { display: grid; place-items: center; height: 100%; font-weight: 800; font-size: 1.6rem; color: rgba(255,255,255,.25); background: var(--dark-2); }

/* Filter chips */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.chips a {
    padding: 6px 12px; border-radius: 6px; background: var(--card); border: 1px solid var(--line);
    color: var(--ink); text-decoration: none; font-size: .9rem;
}
.chips a span { color: var(--muted); }
.chips a[aria-current="page"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.chips a[aria-current="page"] span { color: #c9cdd1; }

/* Article cards */
.card-grid { display: grid; gap: 18px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 980px) { .card-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 980px) { .card-grid.small { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.card { background: var(--card); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.card-img { display: block; aspect-ratio: 16 / 10; background: var(--dark-2); }
.card-img { overflow: hidden; }
.card-img img { width: 100%; height: 100%; aspect-ratio: 16 / 10; object-fit: cover; display: block; }
.card-body { padding: 14px 16px 16px; }
.card-body p { margin: 0; color: var(--ink-soft); font-size: .95rem; }
.card-title { font-size: 1.1rem; margin: 0 0 .3em; }
.card-title a { color: var(--ink); text-decoration: none; }
.card-title a:hover { color: var(--accent-ink); }

/* Sidebar layout */
.with-sidebar { display: grid; gap: 32px; }
@media (min-width: 980px) { .with-sidebar { grid-template-columns: minmax(0, 1fr) 260px; } }
.side-title { font-size: 1rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.cat-list { list-style: none; margin: 0; padding: 0; }
.cat-list a { display: flex; justify-content: space-between; padding: 6px 0; border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none; }
.cat-list a span { color: var(--muted); }
.cat-list a[aria-current="page"] { color: var(--accent-ink); font-weight: 600; }

/* Pager */
.pager { display: flex; flex-wrap: wrap; gap: 6px; margin: 28px 0 0; }
.pager a, .pager span { padding: 6px 12px; border-radius: 6px; background: var(--card); border: 1px solid var(--line); text-decoration: none; color: var(--ink); }
.pager .current { background: var(--ink); color: #fff; border-color: var(--ink); }

/* Article and page text */
.article { max-width: 800px; padding-top: 32px; }
.article-head { margin-bottom: 20px; }
.article-hero { display: block; width: 100%; border-radius: var(--radius); margin-bottom: 24px; }
.prose { overflow-wrap: anywhere; }
.prose img { border-radius: 6px; }
.prose p:has(> img:only-child) { margin: 1.2em 0; }
.prose figure { margin: 1.4em 0; }
.prose figcaption { font-size: .9rem; color: var(--muted); }
.prose table { border-collapse: collapse; width: 100%; display: block; overflow-x: auto; font-size: .95rem; }
.prose td, .prose th { border: 1px solid var(--line); padding: 6px 8px; }
.prose iframe { max-width: 100%; }
.prose blockquote { margin: 1.2em 0; padding: .2em 1em; border-left: 4px solid var(--accent); background: var(--card); }
.prose ul.related { list-style: none; padding: 0; display: grid; gap: 6px; }
.prose ul.related a { display: block; padding: 10px 14px; background: var(--card); border-radius: 8px; box-shadow: var(--shadow); text-decoration: none; font-weight: 600; }
.related-block { margin-top: 48px; }

/* Truck page */
.truck { padding-top: 32px; }
.gallery { margin: 16px 0 24px; }
.gallery-main { display: block; width: 100%; max-height: 70vh; object-fit: contain; background: var(--dark); border-radius: var(--radius); }
.gallery-thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(90px, 1fr)); gap: 8px; margin-top: 8px; }
.gallery-thumbs img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 6px; display: block; }
.truck-body { display: grid; gap: 28px; }
@media (min-width: 900px) { .truck-body { grid-template-columns: minmax(0, 1fr) 300px; align-items: start; } }
.spec-sheet { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px 20px; }
.spec-sheet h2 { font-size: 1rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.spec-sheet dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; }
.spec-sheet dt { color: var(--muted); }
.spec-sheet dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }

/* Directory */
.search { display: flex; gap: 8px; margin-top: 16px; max-width: 520px; }
.search input { flex: 1; min-width: 0; padding: .6em 1em; border-radius: 6px; border: 1px solid var(--line); font: inherit; background: var(--card); }
.result-note { color: var(--ink-soft); }
.biz-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
@media (min-width: 760px) { .biz-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.biz { display: flex; gap: 14px; align-items: center; padding: 12px; background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); color: var(--ink); text-decoration: none; height: 100%; }
.biz:hover strong { color: var(--accent-ink); }
.biz-text { display: flex; flex-direction: column; min-width: 0; }
.biz-text span { color: var(--ink-soft); font-size: .95rem; }
.biz-text .meta { margin: 0; }
/* Many logos are white or light: always show them on a dark tile */
.logo-box { flex: 0 0 auto; width: 96px; height: 64px; border-radius: 8px; background: var(--dark-2); display: grid; place-items: center; padding: 8px; }
.logo-box img { max-width: 100%; max-height: 48px; width: auto; height: auto; object-fit: contain; display: block; }
.logo-box.large img { max-height: 80px; }
.logo-row .logo-box img { max-height: 70px; }
.logo-box .initial { color: rgba(255,255,255,.6); font-weight: 800; font-size: 1.5rem; }
.logo-box.large { width: 140px; height: 96px; }
.logo-row { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 640px) { .logo-row { grid-template-columns: repeat(4, 1fr); } }
.logo-row .logo-box { width: 100%; height: 90px; background: rgba(255,255,255,.06); }
.business { padding-top: 32px; }
.biz-cover { width: 100%; max-height: 320px; object-fit: cover; border-radius: var(--radius); display: block; margin-bottom: 20px; }
.biz-head { display: flex; gap: 18px; align-items: center; margin-bottom: 20px; flex-wrap: wrap; }
.biz-head h1 { margin: 0; }
.biz-head .lead { margin: .3em 0 0; }

/* Static pages (about, contact, privacy ...) */
.prose h2 { margin-top: 1.6em; }
.note { background: #fff3ec; border-left: 4px solid var(--accent); padding: 10px 14px; border-radius: 4px; }

/* ===== My Garage (phase A) ===== */
.mono { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; }
.muted { color: var(--muted); }
.chip { display: inline-block; vertical-align: middle; font-family: "Source Sans 3", system-ui, sans-serif; font-stretch: normal; font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; padding: 3px 8px; border-radius: 4px; background: #e8eef2; color: var(--ink); }
.badge { display: inline-block; font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; padding: 4px 9px; border-radius: 4px; background: var(--accent); color: #fff; }
.badges { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 16px; }
.btn-big { font-size: 1.1rem; padding: .85em 1.6em; }
.btn-light { background: var(--card); color: var(--ink); box-shadow: inset 0 0 0 1.5px #c4d2dc; }
.btn-light:hover { color: var(--ink); background: var(--paper); filter: none; }
.btn-block { display: block; text-align: center; }
.btn[disabled] { opacity: .7; cursor: progress; }
.linklike { background: none; border: 0; padding: 0; font: inherit; color: var(--accent-ink); text-decoration: underline; cursor: pointer; }

/* Forms */
.form-wrap { max-width: 760px; padding-top: 36px; }
.form-wrap.narrow-form { max-width: 520px; }
.form-card { background: var(--card); border-radius: 14px; padding: 24px 20px; box-shadow: var(--shadow); margin-top: 20px; }
@media (min-width: 640px) { .form-card { padding: 36px 40px; } }
.form-card h1 { font-size: clamp(2rem, 5vw, 2.75rem); font-weight: 800; margin: 0; }
.form-card .lead { margin: .4em 0 1.4em; }
.form-card input:not([type=checkbox]):not([type=radio]):not([type=file]), .form-card select, .form-card textarea {
    width: 100%; font: inherit; color: var(--ink); background: #fff; border: 0; border-radius: 8px;
    padding: 12px 14px; box-shadow: inset 0 0 0 1.5px #c4d2dc;
}
.form-card input:focus, .form-card select:focus, .form-card textarea:focus { outline: none; box-shadow: inset 0 0 0 2px var(--accent); }
.form-card textarea { resize: vertical; line-height: 1.5; }
.label { display: block; font-weight: 700; margin: 0 0 6px; }
.opt { font-weight: 400; color: var(--muted); }
.field { margin-bottom: 18px; }
.field-row { display: grid; gap: 0 16px; }
@media (min-width: 640px) { .field-row { grid-template-columns: 1fr 1fr; } .field-row:has(.field-year) { grid-template-columns: 1fr 1fr 110px; } }
.help { margin: 6px 0 0; font-size: .92rem; color: var(--muted); }
.err { margin: 6px 0 0; font-size: .95rem; color: #b42318; font-weight: 600; }
.alert { background: #fef3f2; color: #b42318; border-radius: 8px; padding: 10px 14px; font-weight: 600; }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 600; margin: 8px 0; line-height: 1.4; }
.check input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--accent); flex: none; }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-top: 28px; }
.form-note { text-align: center; color: var(--muted); margin: 16px 0 0; }

/* Progress steps */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; counter-reset: s; }
.steps li { display: flex; flex-direction: column; gap: 8px; font-size: .9rem; font-weight: 600; color: var(--muted); }
.steps li::before { content: ""; height: 6px; border-radius: 3px; background: var(--line); }
.steps li.done::before, .steps li.now::before { background: var(--accent); }
.steps li.now { color: var(--ink); font-weight: 700; }
@media (max-width: 520px) { .steps li span { display: none; } .steps li.now span { display: inline; white-space: nowrap; } }

/* Handle picker */
.handle-field { display: flex; align-items: center; flex-wrap: wrap; border-radius: 8px; box-shadow: inset 0 0 0 1.5px #c4d2dc; background: #fff; }
.handle-field:focus-within { box-shadow: inset 0 0 0 2px var(--accent); }
.handle-field.good { box-shadow: inset 0 0 0 2px #2f8f6f; }
.handle-field.bad { box-shadow: inset 0 0 0 2px #b42318; }
.handle-field .prefix { padding: 14px 0 14px 14px; color: var(--muted); font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 1rem; white-space: nowrap; }
.form-card .handle-field input#handle { flex: 1 1 140px; min-width: 0; box-shadow: none !important; padding-left: 0; font-family: ui-monospace, Menlo, Consolas, monospace; font-weight: 700; color: var(--accent-ink); background: transparent; }
.handle-field .status { padding: 0 14px; font-weight: 700; white-space: nowrap; }
.handle-field.good .status { color: #2f8f6f; }
.handle-field.bad .status { color: #b42318; }
@media (max-width: 520px) { .handle-field .prefix { width: 100%; padding-bottom: 0; font-size: .9rem; } }
.suggest { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.suggest button { font: inherit; font-family: ui-monospace, Menlo, Consolas, monospace; font-size: .95rem; padding: 7px 12px; border-radius: 6px; border: 0; background: var(--paper); color: var(--ink); cursor: pointer; }
.suggest button:hover { background: #fff3ec; color: var(--accent-ink); }

/* Photo picker */
.dropzone { display: grid; place-items: center; gap: 4px; text-align: center; padding: 28px 16px; border: 2px dashed #c4d2dc; border-radius: 10px; cursor: pointer; background: var(--paper); }
.dropzone.over, .dropzone:hover { border-color: var(--accent); background: #fff3ec; }
.dropzone input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.dropzone:focus-within { outline: 2px solid var(--accent); }
.dropzone span { color: var(--muted); font-size: .95rem; }
.thumbs { list-style: none; margin: 12px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 10px; }
.thumbs li { position: relative; }
.thumbs img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 6px; display: block; }
.thumbs li > button:first-of-type { position: absolute; top: 4px; right: 4px; width: 28px; height: 28px; border-radius: 50%; border: 0; background: rgba(14,34,51,.8); color: #fff; font-size: 18px; line-height: 1; cursor: pointer; }
.thumbs li > span { position: absolute; left: 6px; bottom: 6px; }
.thumbs li > span, .thumbs .make-cover { font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; padding: 3px 7px; border-radius: 4px; background: var(--accent); color: #fff; }
.thumbs .make-cover { position: absolute; left: 6px; bottom: 6px; border: 0; background: rgba(14,34,51,.8); cursor: pointer; font-family: inherit; }

/* Share page */
.share-page { padding-top: 40px; }
.ok-line { margin: 0; color: #2f8f6f; font-weight: 700; font-size: 1.1rem; }
.share-page h1 { font-size: clamp(2.2rem, 5vw, 3.2rem); font-weight: 800; margin: 4px 0 24px; }
.share-grid { display: grid; gap: 28px; align-items: start; }
@media (min-width: 900px) { .share-grid { grid-template-columns: 1.1fr 1fr; } }
.share-preview { background: var(--card); border-radius: 10px; overflow: hidden; box-shadow: var(--shadow); }
.share-preview img { display: block; width: 100%; height: auto; aspect-ratio: 1200 / 630; object-fit: cover; background: var(--dark-2); }
.share-preview-foot { padding: 10px 14px; background: #f0f2f5; display: flex; flex-direction: column; }
.share-preview-foot span { font-size: .8rem; color: #65676b; }
.copy-row { display: flex; gap: 8px; align-items: center; background: var(--paper); border-radius: 8px; padding: 6px 6px 6px 12px; }
.copy-row input { flex: 1; min-width: 0; border: 0; background: transparent; font-size: .95rem; color: var(--ink); }
.share-buttons { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 16px; }
.sb { display: block; text-align: center; padding: 12px; border-radius: 8px; color: #fff; text-decoration: none; font-weight: 700; }
.sb:hover { color: #fff; filter: brightness(1.1); }
.sb.fb { background: #1877f2; } .sb.x { background: #0f1419; } .sb.wa { background: #1f8f3a; } .sb.em { background: var(--muted); }
.qr-row { display: flex; gap: 16px; align-items: center; margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--line); }
.qr-row #qr { flex: none; width: 112px; height: 112px; }
.qr-row #qr img, .qr-row #qr canvas { width: 112px; height: 112px; }
.share-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* Garage page */
.garage-cover { background: var(--dark); height: 220px; overflow: hidden; }
@media (min-width: 760px) { .garage-cover { height: 340px; } }
.garage-cover img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 45%; display: block; }
.garage-cover.empty { background: linear-gradient(135deg, var(--dark), var(--dark-2)); height: 160px; }
.garage-head { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px 24px; margin-top: 14px; position: relative; }
.garage-head .avatar { margin-top: -78px; }
.avatar { width: 128px; height: 128px; border-radius: 50%; border: 5px solid var(--paper); background: #c9d6df; overflow: hidden; display: grid; place-items: center; flex: none; }
@media (min-width: 760px) { .garage-head .avatar { margin-top: -92px; } .avatar { width: 148px; height: 148px; } }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar span { font-family: var(--head); font-stretch: 112%; font-weight: 800; font-size: 3.4rem; color: var(--dark); }
.who { flex: 1 1 320px; min-width: 0; padding-bottom: 6px; }
.who h1 { margin: 0; font-weight: 800; font-size: clamp(2rem, 4.5vw, 2.9rem); line-height: 1.05; }
.handle { margin: 6px 0 0; font-size: .95rem; color: var(--muted); overflow-wrap: anywhere; }
.handle strong { color: var(--accent-ink); }
.meta-line { margin: 4px 0 0; color: var(--ink-soft); }
.garage-actions, .rig-actions { display: flex; flex-wrap: wrap; gap: 10px; padding-bottom: 10px; }
.bio { max-width: 760px; margin: 20px 0 0; font-size: 1.15rem; line-height: 1.55; color: var(--ink-soft); }
.site-link { margin: 8px 0 0; font-weight: 600; }
.flash { margin: 16px 0 0; padding: 10px 14px; border-radius: 8px; background: #e7f5ef; color: #1d6b50; font-weight: 600; position: relative; z-index: 1; }
.flash.warn { background: #fff3ec; color: var(--accent-ink); }
.flash .dev { font-weight: 400; color: var(--ink-soft); }
.garage-rigs-head { margin-top: 40px; }
.garage-rigs { display: grid; gap: 18px; grid-template-columns: 1fr; }
@media (min-width: 600px) { .garage-rigs { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 980px) { .garage-rigs { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.garage-rig { display: block; background: var(--card); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); color: var(--ink); text-decoration: none; }
.garage-rig .pic { position: relative; display: block; aspect-ratio: 4 / 3; background: var(--dark-2); }
.garage-rig .pic img { width: 100%; height: 100%; object-fit: cover; display: block; }
.garage-rig .badge { position: absolute; left: 12px; top: 12px; }
.garage-rig .txt { display: block; padding: 14px 16px 16px; }
.garage-rig strong { display: block; font-family: var(--head); font-stretch: 112%; font-size: 1.25rem; }
.garage-rig .txt span { color: var(--muted); font-size: .95rem; }
.garage-rig:hover strong { color: var(--accent-ink); }
.empty-garage { background: var(--card); border-radius: var(--radius); padding: 28px; text-align: center; box-shadow: var(--shadow); }
.prev-head { margin: 44px 0 14px; font-size: 1.6rem; }
.garage-prev { display: grid; gap: 14px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 760px) { .garage-prev { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.garage-prev a { color: var(--ink); text-decoration: none; }
.garage-prev img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 8px; display: block; filter: saturate(.6); }
.garage-prev strong { display: block; margin-top: 6px; }
.sign-out { margin-top: 40px; color: var(--muted); }

/* Rig page header and claim box */
.rig-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 24px; }
.rig-head h1 { margin: 2px 0 0; font-weight: 800; font-size: clamp(2rem, 5vw, 3.1rem); line-height: 1.05; }
.rig-head .lead { margin: 6px 0 0; }
.rig-head .handle { margin: 0; }
.claim h2 { font-size: 1.6rem; margin: 0 0 8px; }
.claim .help { margin-top: 10px; }
.truck-body .side { gap: 16px; }

/* Rig photos: grid (member rigs) or photos in the story (collection rigs) */
.photo-grid { display: grid; gap: 8px; margin: 18px 0 28px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 760px) { .photo-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.photo-grid a { display: block; border-radius: 8px; overflow: hidden; background: var(--dark-2); aspect-ratio: 4 / 3; }
.photo-grid a.cover { grid-column: 1 / -1; aspect-ratio: auto; max-height: 72vh; }
@media (min-width: 760px) { .photo-grid a.cover { grid-column: span 3; grid-row: span 3; max-height: none; } }
@media (min-width: 760px) { .photo-grid.many a.cover { grid-column: span 2; grid-row: span 2; } }
.photo-grid.one a.cover { grid-column: 1 / -1; grid-row: auto; max-height: 72vh; }
.photo-grid img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s; }
.photo-grid a:hover img { transform: scale(1.03); }
.story { font-size: 1.08rem; line-height: 1.65; margin-top: 18px; }
.story img { display: block; width: auto; max-width: min(100%, 640px); height: auto; border-radius: 8px; margin: 6px 0; }
.story p:has(> img) { margin: 1.4em 0 .4em; }
.story p:has(> img) + p { color: var(--ink-soft); }
.story p[align="center"] { text-align: left; }
.lightbox { border: 0; padding: 0; background: transparent; max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh; }
.lightbox::backdrop { background: rgba(8,18,28,.92); }
.lightbox img { position: absolute; inset: 0; margin: auto; max-width: calc(100vw - 32px); max-height: calc(100vh - 96px); width: auto; height: auto; border-radius: 6px; }
.lightbox button { position: absolute; border: 0; background: rgba(255,255,255,.12); color: #fff; font-size: 2rem; line-height: 1; width: 52px; height: 52px; border-radius: 50%; cursor: pointer; }
.lightbox button:hover { background: rgba(255,255,255,.25); }
.lightbox .close { top: 14px; right: 14px; }
.lightbox .prev { left: 14px; top: 50%; transform: translateY(-50%); }
.lightbox .next { right: 14px; top: 50%; transform: translateY(-50%); }
.lightbox .count { position: absolute; bottom: 18px; left: 0; right: 0; text-align: center; color: #c5d3de; font-size: .95rem; }

/* ===== Phase B ===== */
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.page-title { font-size: clamp(2rem, 5vw, 2.6rem); font-weight: 800; margin: 4px 0 8px; }
.wide-form { max-width: 900px; }
.form-card h2 { font-size: 1.4rem; margin: 0 0 6px; }
.form-card + .form-card { margin-top: 18px; }
.btn-danger { background: #b42318; color: #fff; }
.btn-danger:hover { background: #8f1c13; color: #fff; filter: none; }
.danger-zone { box-shadow: inset 0 0 0 1.5px #f3c3be; }
.delete-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 10px; }
.delete-row input { max-width: 200px; }
.inline-form { display: inline; margin-left: 8px; }
.photo-admin { list-style: none; margin: 14px 0; padding: 0; display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); }
.photo-admin li { position: relative; background: var(--paper); border-radius: 8px; overflow: hidden; }
.photo-admin img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; }
.photo-admin .badge { position: absolute; left: 6px; top: 6px; }
.photo-tools { display: flex; flex-wrap: wrap; gap: 4px; padding: 6px; }
.photo-tools form { margin: 0; }
.photo-tools button { font: inherit; font-size: .85rem; font-weight: 600; padding: 5px 9px; border-radius: 5px; border: 0; background: #fff; color: var(--ink); cursor: pointer; box-shadow: inset 0 0 0 1px #c4d2dc; }
.photo-tools button:hover { background: #fff3ec; }
.photo-tools button.danger { color: #b42318; }
.add-photos { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.small-drop { flex: 1 1 260px; padding: 14px; }
.badge.pending { background: var(--ink-soft); left: auto; right: 12px; }
.garage-rig .badge.pending { position: absolute; top: 12px; }
.chip.verified { background: #e7f5ef; color: #1d6b50; }
.chip.pending { background: #fff3ec; color: var(--accent-ink); }
.chip.approved { background: #e7f5ef; color: #1d6b50; }
.chip.rejected { background: #fef3f2; color: #b42318; }
.claim-list { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 6px; }
.my-biz { margin: 14px 0 0; }
.claim-head { display: flex; gap: 16px; align-items: center; margin-bottom: 8px; }
.claim-head img { width: 120px; height: 90px; object-fit: cover; border-radius: 8px; flex: none; }
.claim-head img.logo-thumb { object-fit: contain; background: var(--dark-2); padding: 8px; }
.claim-head h1 { font-size: clamp(1.6rem, 4vw, 2.2rem); }
.claim-head .eyebrow { margin: 0 !important; }

/* Admin */
.admin-page { padding-top: 32px; }
.admin-page section { margin-top: 32px; }
.admin-page h2 .count { display: inline-block; min-width: 1.6em; padding: 0 .4em; border-radius: 99px; background: var(--accent); color: #fff; font-size: .8em; text-align: center; }
.admin-list { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 10px; }
.admin-list li { display: grid; grid-template-columns: 120px 1fr; gap: 14px; background: var(--card); border-radius: var(--radius); padding: 12px; box-shadow: var(--shadow); align-items: start; }
@media (min-width: 900px) { .admin-list li { grid-template-columns: 140px 1fr auto; } }
.admin-list .thumb { display: block; aspect-ratio: 4 / 3; border-radius: 6px; overflow: hidden; background: var(--paper); }
.admin-list .thumb img { width: 100%; height: 100%; object-fit: cover; }
.admin-list .what { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.admin-list .what span { color: var(--muted); font-size: .95rem; overflow-wrap: anywhere; }
.admin-list blockquote { margin: 8px 0 0; padding: 8px 12px; background: var(--paper); border-radius: 6px; }
.admin-list .acts { display: flex; flex-wrap: wrap; gap: 8px; grid-column: 1 / -1; }
@media (min-width: 900px) { .admin-list .acts { grid-column: auto; flex-direction: column; align-items: stretch; } }
.admin-list .acts form { margin: 0; }
.admin-list .reject { display: flex; gap: 6px; }
.admin-list .reject input { font: inherit; padding: 8px 10px; border-radius: 6px; border: 1px solid var(--line); min-width: 0; }
.table-wrap { overflow-x: auto; }
.admin-table { width: 100%; border-collapse: collapse; background: var(--card); border-radius: var(--radius); font-size: .95rem; }
.admin-table th, .admin-table td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }

/* Social links */
.join .follow { font-size: 1rem; margin-top: 8px; }
.social { list-style: none; margin: 16px 0 0; padding: 0; display: flex; gap: 10px; }
.social a { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: var(--dark-2); color: #fff; }
.social a:hover { background: var(--accent); color: #fff; text-decoration: none; }

/* ===== Pro garage: story, trips, build log, contact ===== */
.garage-story { margin: 22px 0 0; background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 4px 20px; }
.garage-story summary { cursor: pointer; font-family: var(--head); font-stretch: 112%; font-weight: 700; font-size: 1.3rem; padding: 14px 0; }
.garage-story .story { margin-top: 0; padding-bottom: 12px; }
.trip-grid { display: grid; gap: 18px; grid-template-columns: 1fr; }
@media (min-width: 600px) { .trip-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 980px) { .trip-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } .trip-grid.small { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.trip-card { display: block; background: var(--card); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); color: var(--ink); text-decoration: none; }
.trip-card .pic { position: relative; display: block; aspect-ratio: 16 / 10; background: var(--dark-2); }
.trip-card .pic img { width: 100%; height: 100%; object-fit: cover; display: block; }
.trip-card .badge { position: absolute; right: 10px; top: 10px; }
.badge.dark { background: rgba(14,34,51,.85); }
.trip-card .txt { display: block; padding: 12px 16px 16px; }
.trip-card .when { display: block; font-size: .85rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--accent-ink); }
.trip-card strong { display: block; font-family: var(--head); font-stretch: 112%; font-size: 1.15rem; line-height: 1.25; margin-top: 2px; }
.trip-card:hover strong { color: var(--accent-ink); }
.build-log { margin-top: 32px; }
.build-log h2 .muted, .rig-trips h2 .muted { font-weight: 400; font-size: .7em; }
.build-grid .card-body p { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
@media (min-width: 980px) { .truck-body .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1180px) { .truck-body .card-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.rig-trips { margin-top: 40px; }
.rig-trips .block-head h2 { font-size: 1.6rem; }
.day-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.day-tabs a { padding: 7px 14px; border-radius: 99px; background: var(--card); box-shadow: inset 0 0 0 1.5px #c4d2dc; color: var(--ink); text-decoration: none; font-weight: 600; }
.day-tabs a[aria-current] { background: var(--accent); color: #fff; box-shadow: none; }
.post-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 36px 0 0; }
.post-nav a { display: block; background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 14px 16px; color: var(--ink); text-decoration: none; font-weight: 700; }
.post-nav a span { display: block; font-size: .85rem; color: var(--accent-ink); text-transform: uppercase; letter-spacing: .05em; }
.post-nav .next { text-align: right; grid-column: 2; }
.author-box { display: flex; gap: 16px; align-items: flex-start; margin: 36px 0 0; padding: 20px; background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); }
.author-box p { margin: 4px 0 12px; color: var(--ink-soft); }
.author-box .btn { margin: 0 8px 8px 0; }
.avatar.small { width: 72px; height: 72px; border-width: 0; }
.avatar.small span { font-size: 2rem; }
.contact-box { margin-top: 40px; max-width: 760px; }

/* ===== Make pages ===== */
.brand-grid { display: grid; gap: 14px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 760px) { .brand-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.brand-card { position: relative; display: block; border-radius: var(--radius); overflow: hidden; background: var(--dark-2); color: #fff; text-decoration: none; aspect-ratio: 4 / 3; box-shadow: var(--shadow); }
.brand-card .pic, .brand-card .pic img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.brand-card .pic img { transition: transform .3s; }
.brand-card:hover .pic img { transform: scale(1.04); }
.brand-card .txt { position: absolute; left: 0; right: 0; bottom: 0; padding: 36px 14px 12px; background: linear-gradient(transparent, rgba(14,34,51,.88)); display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.brand-card strong { font-family: var(--head); font-stretch: 112%; font-size: 1.35rem; line-height: 1.1; }
.brand-card .txt span { font-size: .9rem; color: #dbe5ec; white-space: nowrap; }
.brand-card:hover { color: #fff; }
.makes-block { margin-top: 8px; }
.other-makes { margin: 14px 0 0; line-height: 1.9; }
.other-makes a { font-weight: 600; margin-left: 6px; }
.all-rigs-head { margin: 36px 0 14px; }
.brand-head .slogan { font-family: var(--head); font-stretch: 112%; font-weight: 700; font-size: 1.3rem; color: var(--accent-ink); margin: 4px 0 0; }
.brand-intro { margin: 0 0 24px; background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 4px 20px; }
.brand-intro summary { cursor: pointer; font-weight: 700; padding: 12px 0; }
.video-thumb { position: relative; display: inline-block; max-width: 480px; border-radius: 8px; overflow: hidden; }
.video-thumb img { display: block; width: 100%; height: auto; margin: 0 !important; }
.video-thumb span { position: absolute; left: 12px; bottom: 12px; background: rgba(14,34,51,.85); color: #fff; padding: 6px 12px; border-radius: 6px; font-weight: 700; }

/* Owner and make cards on rigs, trips and stories */
.tag-cards { display: grid; gap: 14px; margin: 32px 0 0; }
@media (min-width: 700px) { .tag-cards:not(.stack) { grid-template-columns: 1fr 1fr; } }
.tag-cards.stack { margin: 0 0 22px; }
.tag-card { display: flex; gap: 14px; align-items: center; padding: 14px; background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); color: var(--ink); text-decoration: none; transition: box-shadow .15s, transform .15s; }
.tag-card:hover { color: var(--ink); transform: translateY(-1px); box-shadow: 0 0 0 2px var(--accent), var(--shadow); }
.tag-pic { flex: none; width: 76px; height: 76px; border-radius: 10px; overflow: hidden; background: #c9d6df; display: grid; place-items: center; }
.tag-pic.round { border-radius: 50%; }
.tag-pic img { width: 100%; height: 100%; object-fit: cover; }
.tag-pic b { font-family: var(--head); font-stretch: 112%; font-weight: 800; font-size: 1.5rem; color: var(--dark); }
.tag-txt { display: flex; flex-direction: column; min-width: 0; }
.tag-txt .eyebrow { margin: 0; font-size: .78rem; }
.tag-txt strong { font-family: var(--head); font-stretch: 112%; font-size: 1.15rem; line-height: 1.2; }
.tag-meta { color: var(--ink-soft); font-size: .95rem; }
.tag-go { margin-top: 4px; color: var(--accent-ink, #b4471d); font-weight: 700; font-size: .95rem; }
.more-link { margin: 18px 0 0; font-weight: 700; }

/* Connections: "Member of", "Built by", "Bought from" */
.tag-pic.logo { background: var(--dark-2); padding: 10px; }
.tag-pic.logo img { object-fit: contain; }
.tag-pic.logo b { color: rgba(255,255,255,.6); }
.biz-type { margin: 10px 0 0; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.biz-type a.chip { text-decoration: none; }
.biz-type a.chip:hover { background: var(--ink); color: #fff; }
.biz-tags { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 6px; }
.biz-tags .chip { font-size: .7rem; padding: 2px 6px; }
.biz-text .conn-count { font-size: .85rem; color: var(--muted); }
.connect-panel { margin-bottom: 22px; }
.connect-panel p { margin: 0 0 12px; line-height: 1.5; color: var(--ink-soft); }
.connect-panel form { margin: 0; }
.connect-rigs { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.connect-rigs li { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 0; border-top: 1px solid var(--line); }
.connect-rigs li:first-child { border-top: 0; }
.connect-rigs span { font-weight: 600; min-width: 0; }
.btn.btn-small { padding: 6px 14px; font-size: .9rem; min-height: 0; }
.btn.on { color: #1d6b50; }
.connect-links { font-weight: 700; }
.connected { margin-top: 36px; }
.connected h2 .muted { font-weight: 400; }
.conn-item { position: relative; }
.rig-label small { display: block; font-weight: 400; font-size: .8rem; opacity: .85; }
.is-hidden { opacity: .45; }
.hide-form { margin: 4px 0 0; font-size: .9rem; }
.member-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.member-list a { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; padding: 14px 8px; background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); color: var(--ink); text-decoration: none; height: 100%; }
.member-list .tag-pic { width: 64px; height: 64px; }
.member-list .muted { font-size: .85rem; }
.member-list li { display: flex; flex-direction: column; align-items: center; }
.member-list li > a { width: 100%; }
.conn-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
@media (min-width: 640px) { .conn-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 980px) { .conn-list { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.conn-list a { display: flex; gap: 12px; align-items: center; padding: 10px; background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); color: var(--ink); text-decoration: none; height: 100%; }
.conn-list a:hover strong { color: var(--accent-ink); }
.conn-logo { flex: none; width: 72px; height: 52px; border-radius: 8px; background: var(--dark-2); display: grid; place-items: center; padding: 6px; }
.conn-logo img { max-width: 100%; max-height: 40px; object-fit: contain; }
.conn-logo b { color: rgba(255,255,255,.6); font-weight: 800; }
.conn-txt { display: flex; flex-direction: column; min-width: 0; }
.conn-txt .eyebrow { margin: 0; font-size: .75rem; }
.conn-txt .muted { font-size: .9rem; }
.conn-hint { margin: 24px 0 0; }
img.flag { display: inline-block; width: 20px; height: 15px; vertical-align: -2px; border-radius: 2px; box-shadow: 0 0 0 1px rgba(0,0,0,.08); }

/* Pro: writing trips and build steps */
.head-links { display: flex; gap: 18px; flex-wrap: wrap; }
.build-log .block-head h2, .rig-trips .block-head h2 { font-size: 1.6rem; }
.owner-tools { display: flex; gap: 16px; align-items: center; margin: 14px 0 0; font-weight: 600; }
.story figure.post-photo { margin: 1.6em 0; }
.story figure.post-photo img { width: 100%; max-width: 100%; border-radius: 8px; margin: 0; }
.story figure.post-photo figcaption { margin-top: 8px; color: var(--ink-soft); font-size: .95rem; }
.post-form .lead { margin: .2em 0 0; }
.post-photos { list-style: none; margin: 0 0 14px; padding: 0; display: grid; gap: 12px; }
.post-photos li { display: grid; grid-template-columns: 120px 1fr; gap: 12px; align-items: start; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.post-photos img { width: 120px; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 6px; display: block; }
.pp-tools { display: flex; gap: 18px; flex-wrap: wrap; margin-top: 8px; font-size: .95rem; }
.pp-tools label { display: inline-flex; gap: 6px; align-items: center; cursor: pointer; }
.pp-tools .danger { color: #b42318; }
.form-actions { display: flex; gap: 18px; align-items: center; margin-top: 8px; }
.danger-zone h2 { font-size: 1.2rem; margin: 0 0 6px; }
.btn.danger { color: #b42318; }
.pp-tools input { width: auto; margin: 0; accent-color: var(--accent); }

/* Cookie banner */
.cookie-bar { position: fixed; z-index: 50; left: 0; right: 0; bottom: 0; display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; justify-content: space-between;
  padding: 14px max(16px, env(safe-area-inset-right, 0px)) calc(14px + env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px));
  background: var(--dark); color: #dbe5ec; box-shadow: 0 -8px 24px rgba(0,0,0,.25); }
.cookie-bar[hidden] { display: none; }
.cookie-bar p { margin: 0; max-width: 70ch; font-size: .95rem; line-height: 1.45; }
.cookie-bar a { color: #fff; }
.cookie-actions { display: flex; gap: 10px; }
.cookie-actions .btn { min-width: 110px; }
