/* gear.romulans.org — the hardware guides (docs/gear.md). Same Deep Space HUD tokens as the site (theme.css), but a calmer
   reading layout: one text column, larger line height, quiet panels, no starfield. */

.gear-body {
    margin: 0;
    min-height: 100vh;
    background: radial-gradient(1200px 600px at 70% -10%, rgba(47, 123, 255, 0.12), transparent 60%), var(--space-900);
    color: var(--text);
    font-family: var(--font-body);
    display: flex;
    flex-direction: column;
}

.gear-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.8rem clamp(1rem, 4vw, 2.5rem);
    border-bottom: 1px solid var(--line);
    background: rgba(5, 8, 20, 0.85);
    position: sticky;
    top: 0;
    z-index: 10;
    backdrop-filter: blur(8px);
}

.gear-brand {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    color: var(--text);
    text-decoration: none;
    font-family: var(--font-display);
    font-size: 1.05rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}
.gear-brand b { color: var(--cyan); font-weight: 700; }

.gear-nav { display: flex; gap: 1.2rem; font-family: var(--font-ui); font-size: 1.05rem; }
.gear-nav a { color: var(--text-muted); text-decoration: none; }
.gear-nav a:hover { color: var(--cyan); }

.gear-main {
    flex: 1;
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
    padding: 1.5rem clamp(1rem, 4vw, 2.5rem) 3rem;
    box-sizing: border-box;
}

.gear-crumbs { font-family: var(--font-ui); color: var(--text-dim); margin-bottom: 0.8rem; }
.gear-crumbs a { color: var(--text-muted); }

.gear-layout { display: grid; grid-template-columns: minmax(0, 760px) 240px; gap: 3rem; justify-content: center; }
@media (max-width: 1050px) { .gear-layout { grid-template-columns: minmax(0, 1fr); } .gear-toc { display: none; } }
@media (max-width: 560px) { .gear-nav { gap: 0.8rem; font-size: 0.95rem; } .gear-brand span { font-size: 0.9rem; } }
.gear-crumbs { max-width: 1040px; margin-left: auto; margin-right: auto; }

.gear-article { min-width: 0; }
.gear-article--narrow { max-width: 760px; margin: 0 auto; }

.gear-title {
    font-family: var(--font-display);
    font-size: clamp(1.6rem, 3.2vw, 2.3rem);
    line-height: 1.2;
    margin: 0 0 0.6rem;
    letter-spacing: 0.01em;
}

.gear-byline { color: var(--text-muted); font-size: 0.92rem; display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 0 0 1.6rem; }
.gear-byline a { color: var(--text-muted); }

/* the text column: readable sizes, quiet tables */
.gear-prose { font-size: 1.06rem; line-height: 1.72; color: #dbe7fb; }
.gear-prose h2 {
    font-family: var(--font-ui);
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--text);
    margin: 2.4rem 0 0.8rem;
    padding-top: 0.6rem;
    border-top: 1px solid var(--line);
    scroll-margin-top: 4.5rem;
}
.gear-prose h3 { font-family: var(--font-ui); font-size: 1.3rem; color: var(--cyan); margin: 1.8rem 0 0.5rem; scroll-margin-top: 4.5rem; }
.gear-prose p { margin: 0 0 1rem; }
.gear-prose a:not(.btn) { color: var(--cyan); text-underline-offset: 2px; }
.gear-prose a:not(.btn):hover { color: #9cf1ff; }
.gear-prose ul, .gear-prose ol { padding-left: 1.3rem; margin: 0 0 1rem; }
.gear-prose li { margin: 0.25rem 0; }
.gear-prose strong { color: var(--text); }
.gear-prose code { font-family: var(--font-mono); font-size: 0.9em; background: rgba(54, 227, 255, 0.08); padding: 0.05rem 0.3rem; border-radius: 3px; }
.gear-prose blockquote { margin: 1rem 0; padding: 0.6rem 1rem; border-left: 3px solid var(--violet); background: rgba(138, 92, 255, 0.07); }
.gear-prose table { width: 100%; border-collapse: collapse; margin: 1rem 0 1.4rem; font-size: 0.95rem; display: block; overflow-x: auto; }
.gear-prose th, .gear-prose td { padding: 0.5rem 0.7rem; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.gear-prose th { font-family: var(--font-ui); font-size: 0.95rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.04em; }
.gear-prose tr:hover td { background: rgba(54, 227, 255, 0.04); }
.gear-prose img { max-width: 100%; height: auto; border-radius: var(--radius); }

/* "On this page" */
.gear-toc-inner { position: sticky; top: 5rem; padding: 1rem; border: 1px solid var(--line); background: var(--glass-tint); }
.gear-toc ol { list-style: none; padding: 0; margin: 0.6rem 0 0; font-size: 0.92rem; }
.gear-toc li { margin: 0.35rem 0; }
.gear-toc a { color: var(--text-muted); text-decoration: none; }
.gear-toc a:hover { color: var(--cyan); }

/* ad places: space reserved so the text doesn't jump; collapsed again when Google has nothing to show */
.gear-ad { margin: 2rem 0; padding: 0.4rem 0 0.8rem; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.gear-ad-label { display: block; font-family: var(--font-ui); font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-dim); margin-bottom: 0.4rem; }
.gear-ad ins.adsbygoogle { min-height: 280px; }
.gear-ad ins.adsbygoogle[data-ad-status="unfilled"] { display: none !important; }
.gear-ad:has(ins.adsbygoogle[data-ad-status="unfilled"]) { display: none; }
.gear-ad-box { min-height: 250px; display: grid; place-items: center; border: 1px dashed var(--line-strong); color: var(--text-dim); font-family: var(--font-ui); }

/* referral box */
.gear-referral {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.2rem;
    flex-wrap: wrap;
    margin: 2.2rem 0;
    padding: 1.1rem 1.3rem;
    border: 1px solid rgba(255, 197, 107, 0.35);
    background: linear-gradient(100deg, rgba(255, 197, 107, 0.08), rgba(138, 92, 255, 0.06));
    clip-path: polygon(var(--cut-sm) 0, 100% 0, 100% calc(100% - var(--cut-sm)), calc(100% - var(--cut-sm)) 100%, 0 100%, 0 var(--cut-sm));
}
.gear-referral .gear-referral-title { font-family: var(--font-ui); font-size: 1.25rem; margin: 0 0 0.2rem; color: var(--gold); border: 0; padding: 0; }
.gear-referral p { margin: 0; }
.gear-code { color: var(--gold); cursor: pointer; border-bottom: 1px dashed rgba(255, 197, 107, 0.5); }
.gear-code.copied::after { content: " copied"; color: var(--green); font-family: var(--font-body); font-size: 0.85em; }

/* index */
.gear-hero { text-align: center; max-width: 760px; margin: 1.5rem auto 2.5rem; }
.gear-sub { font-family: var(--font-ui); font-size: 1.3rem; color: var(--cyan); margin: 0 0 1rem; letter-spacing: 0.04em; }
.gear-lead { color: var(--text-muted); font-size: 1.08rem; line-height: 1.7; }
.gear-group h2 { font-family: var(--font-ui); font-size: 1.45rem; margin: 2rem 0 0.9rem; }
.gear-empty { text-align: center; color: var(--text-muted); }
.gear-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1rem; }
.gear-card {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    padding: 1rem 1.1rem;
    text-decoration: none;
    color: var(--text);
    background: var(--glass-tint);
    border: 1px solid var(--line);
    transition: border-color var(--fast) var(--ease), background var(--fast) var(--ease);
    clip-path: polygon(var(--cut-sm) 0, 100% 0, 100% calc(100% - var(--cut-sm)), calc(100% - var(--cut-sm)) 100%, 0 100%, 0 var(--cut-sm));
}
.gear-card:hover { border-color: var(--line-strong); background: rgba(54, 227, 255, 0.06); }
.gear-card-kind { font-family: var(--font-ui); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--violet); }
.gear-card-title { font-family: var(--font-ui); font-size: 1.2rem; font-weight: 700; line-height: 1.25; }
.gear-card-summary { color: var(--text-muted); font-size: 0.93rem; line-height: 1.5; flex: 1; }
.gear-card-date { color: var(--text-dim); font-size: 0.8rem; }
.gear-related { margin-top: 3rem; }
.gear-related h2 { font-family: var(--font-ui); font-size: 1.4rem; }

.gear-footer { border-top: 1px solid var(--line); padding: 1.4rem clamp(1rem, 4vw, 2.5rem); color: var(--text-muted); font-size: 0.88rem; text-align: center; }
.gear-footer a { color: var(--text-muted); }
.gear-fine { color: var(--text-dim); font-size: 0.82rem; line-height: 1.6; max-width: 900px; margin: 0.6rem auto 0; }
.gear-linkbtn { background: none; border: 0; padding: 0; color: var(--text-muted); text-decoration: underline; font: inherit; cursor: pointer; }

/* the editor on romulans.org (/admin/gear) */
.gear-source { min-height: 70vh; font-size: 0.85rem; line-height: 1.5; }
.gear-problems { color: var(--amber); padding-left: 1.2rem; }
.gear-preview { max-height: 75vh; overflow: auto; padding-right: 0.5rem; }
.gear-draft { display: inline-block; margin-bottom: 0.8rem; padding: 0.2rem 0.6rem; border: 1px solid var(--amber); color: var(--amber); font-family: var(--font-ui); text-transform: uppercase; letter-spacing: 0.06em; font-size: 0.85rem; }

/* product pictures (press-kit copies on our server, credit under each) */
.gear-figure { margin: 1.4rem 0; text-align: center; }
.gear-figure img {
    max-width: 100%;
    height: auto;
    max-height: 420px;
    object-fit: contain;
    padding: 1rem;
    box-sizing: border-box;
    background: radial-gradient(circle at 50% 40%, rgba(230, 241, 255, 0.10), rgba(230, 241, 255, 0.02) 70%);
    border: 1px solid var(--line);
}
.gear-figure--top { margin: 0.4rem 0 1.8rem; }
.gear-figure--top img { width: 100%; max-height: 380px; }
.gear-figure figcaption { font-size: 0.78rem; color: var(--text-dim); margin-top: 0.3rem; text-align: right; }
.gear-figure-missing { margin: 1rem 0; padding: 0.6rem 0.8rem; border: 1px dashed var(--amber); color: var(--amber); font-size: 0.9rem; }
.gear-card-img { width: 100%; height: 150px; object-fit: contain; margin-bottom: 0.4rem; background: radial-gradient(circle at 50% 45%, rgba(230, 241, 255, 0.09), transparent 70%); }

/* picture list in the editor */
.gear-pics { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 0.8rem; }
.gear-pic { border: 1px solid var(--line); padding: 0.6rem; display: flex; flex-direction: column; gap: 0.35rem; font-size: 0.85rem; }
.gear-pic img { width: 100%; height: 130px; object-fit: contain; background: rgba(230, 241, 255, 0.05); }
.gear-pic .mono { font-size: 0.78rem; word-break: break-all; }
.gear-pic.used { border-color: var(--line-strong); }
.gear-pic-versions { display: grid; grid-template-columns: 1fr 1fr; gap: 0.4rem; }
.gear-pic-version { display: flex; flex-direction: column; gap: 0.2rem; padding: 0.3rem; background: var(--space-800); border: 1px solid var(--line); color: var(--text-muted); font-size: 0.72rem; cursor: pointer; }
.gear-pic-version img { height: 90px; }
.gear-pic-version.on { border-color: var(--cyan); color: var(--cyan); box-shadow: var(--glow-cyan); }
.gear-pic img, .gear-pic-version img { background: radial-gradient(circle at 50% 45%, rgba(230, 241, 255, 0.09), var(--space-900) 75%); }

/* comments block (romulans.org page shown in a frame on the guides) */
.frame-bg { background: transparent; margin: 0; }
.frame-shell { padding: 0.2rem 0.1rem 1rem; }
.gc { color: var(--text); font-family: var(--font-body); }
.gc-head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; border-top: 1px solid var(--line); padding-top: 1rem; }
.gc-title { font-family: var(--font-ui); font-size: 1.6rem; margin: 0; }
.gc-count { color: var(--text-dim); font-size: 1rem; margin-left: 0.3rem; }
.gc-sort { display: flex; gap: 0.3rem; align-items: center; }
.gc-write { margin: 0.9rem 0 1.2rem; }
.gc-write textarea { width: 100%; box-sizing: border-box; resize: vertical; }
.gc-rules { color: var(--text-muted); margin: 0 0 0.4rem; }
.gc-signin { display: flex; gap: 0.6rem; align-items: center; flex-wrap: wrap; margin: 0.9rem 0; padding: 0.8rem 1rem; border: 1px solid var(--line); }
.gc-signin p { margin: 0; flex: 1 1 100%; }
.gc-thread { border-top: 1px solid var(--line); padding: 0.8rem 0; }
.gc-reply { margin-left: 1.6rem; padding-left: 0.9rem; border-left: 2px solid var(--line); margin-top: 0.6rem; }
.gc-meta { display: flex; gap: 0.6rem; align-items: baseline; }
.gc-handle { color: var(--cyan); font-family: var(--font-ui); font-size: 1.05rem; }
.gc-comment.mine .gc-handle { color: var(--violet); }
.gc-body { white-space: pre-line; margin: 0.3rem 0 0.4rem; line-height: 1.6; }
.gc-gone, .gc-held { color: var(--text-dim); font-style: italic; margin: 0.3rem 0; }
.gc-actions { display: flex; gap: 0.3rem; align-items: center; flex-wrap: wrap; }
.gc-report { display: flex; gap: 0.4rem; flex-wrap: wrap; margin-top: 0.5rem; }
.gc-empty { margin-top: 1rem; }
.gear-comments-frame { width: 100%; height: 420px; border: 0; display: block; color-scheme: dark; }
.gear-comments { margin-top: 2.5rem; }
.gear-rigcounts { margin-top: 2rem; padding: 1rem 1.2rem; border: 1px solid rgba(138, 92, 255, 0.35); background: rgba(138, 92, 255, 0.06); }
.gear-rigcounts h2 { font-family: var(--font-ui); margin: 0 0 0.3rem; }
.gear-rigcounts ul { margin: 0.5rem 0 0; padding-left: 1.2rem; }

/* My rig (romulans.org) */
.rig-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 0.9rem; }
.rig-cat { display: flex; flex-direction: column; gap: 0.35rem; padding: 0.6rem 0.7rem; border: 1px solid var(--line); }
.rig-cat-label { font-family: var(--font-ui); color: var(--text-muted); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.06em; }
.rig-item { display: flex; justify-content: space-between; gap: 0.5rem; align-items: center; }
.rig-results { list-style: none; padding: 0; margin: 0.3rem 0; max-height: 240px; overflow: auto; }
.rig-results .btn { width: 100%; justify-content: flex-start; text-align: left; }
.rig-list { columns: 3 220px; }
.input-xs { width: 4rem; display: inline-block; }
html:has(body.frame-bg) { background: transparent; }
body.frame-bg { background: transparent !important; }
.gear-comments-frame { height: 220px; background: transparent; }
html:has(body.frame-bg) { color-scheme: dark; }
.gear-rig-pilots { display: inline-flex; flex-wrap: wrap; gap: 0.15rem 0.6rem; margin-left: 0.5rem; }
.gear-rig-pilots a { color: var(--violet); }
.gear-rigcounts li { margin: 0.3rem 0; }

/* member profile (/members/{handle}) */
.profile-head { display: flex; gap: 1.2rem; align-items: center; flex-wrap: wrap; }
.profile-avatar { width: 96px; height: 96px; border-radius: 50%; border: 2px solid var(--line-strong); object-fit: cover; }
.profile-id { flex: 1 1 260px; }
.profile-id h1 { margin: 0; }
.profile-meta { display: flex; flex-wrap: wrap; gap: 0.3rem 1rem; margin: 0.3rem 0 0; color: var(--text-muted); }
.profile-online.on { color: var(--green); }
.profile-online.idle { color: var(--amber); }
.profile-actions { display: flex; gap: 0.5rem; align-items: center; flex-wrap: wrap; }
.profile-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; margin-top: 1rem; }
/* About (1 part) next to Where in the 'Verse (3 parts); either alone takes the whole row */
.pv-top { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 3fr); gap: 1rem; margin-top: 1rem; align-items: stretch; }
.pv-top > :only-child { grid-column: 1 / -1; }
.pv-top > .pv-cell-wide:only-child { grid-column: 1 / -1; }
.pv-top .pv-hero { margin-top: 0; }
@media (max-width: 1100px) { .pv-top, .profile-grid { grid-template-columns: 1fr; } }
.profile-wide { grid-column: 1 / -1; }
.profile-about { white-space: pre-line; line-height: 1.6; }
.profile-facts { display: grid; grid-template-columns: auto 1fr; gap: 0.3rem 1rem; margin: 0.6rem 0 0; }
.profile-facts dt { color: var(--text-muted); font-family: var(--font-ui); }
.profile-facts dd { margin: 0; }
.profile-list { margin: 0; padding-left: 1.2rem; }
.profile-ships { columns: 3 220px; margin: 0; padding-left: 1.2rem; }
.profile-posts { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 0.6rem; }
.profile-posts .hud-label { margin-right: 0.5rem; }
.profile-globe { height: 260px; }

/* profile: where the member is, like Mission Control on the home page (Home.razor.css) */
.pv-hero { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 2rem; align-items: center; margin-top: 1rem; padding: 1.5rem 2rem; overflow: hidden; }
.pv-visual { position: relative; aspect-ratio: 1; max-width: 520px; width: 100%; justify-self: center; }
.pv-visual .pg-host { position: absolute; inset: 6%; background: transparent; }
.pv-visual .orbit { position: absolute; border-radius: 50%; border: 1px solid rgba(54, 227, 255, 0.25); pointer-events: none; }
.pv-visual .orbit-1 { inset: 2%; border-style: dashed; animation: pv-spin 80s linear infinite; }
.pv-visual .callout { z-index: 2; }
@keyframes pv-spin { to { transform: rotate(360deg); } }
.pv-rail { display: flex; flex-direction: column; gap: 1.6rem; padding-left: 1.4rem; border-left: 1px solid var(--line); }
.pv-rail .stat-value { font-size: 1.15rem; line-height: 1.3; }
@media (max-width: 900px) {
    .pv-hero { grid-template-columns: 1fr; }
    .pv-rail { flex-direction: row; flex-wrap: wrap; border-left: 0; padding-left: 0; }
}

/* members list (/members) */
.ml-tools { display: flex; flex-wrap: wrap; gap: 0.8rem; align-items: center; margin: 0 0 1rem; }
.ml-tools .input { flex: 1 1 260px; max-width: 420px; }
.ml-filters { display: flex; gap: 0.4rem; flex-wrap: wrap; }
.ml-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 0.9rem; }
.ml-card { display: flex; gap: 0.9rem; align-items: flex-start; padding: 0.9rem 1rem; color: var(--text); text-decoration: none;
  transition: border-color var(--fast) var(--ease), background var(--fast) var(--ease); }
.ml-card:hover, .ml-card:focus-visible { border-color: var(--cyan); background: rgba(54, 227, 255, 0.05); }
.ml-romulan { border-color: rgba(138, 92, 255, 0.45); }
.ml-avatar { width: 56px; height: 56px; flex: none; border-radius: 50%; object-fit: cover; border: 1px solid var(--line-strong); }
.ml-avatar--none { display: grid; place-items: center; font-family: var(--font-display); color: var(--cyan); background: var(--glass); }
.ml-body { display: flex; flex-direction: column; gap: 0.2rem; min-width: 0; }
.ml-name { font-family: var(--font-ui); font-weight: 700; letter-spacing: 0.04em; font-size: 1.05rem; overflow-wrap: anywhere; }
.ml-sub { font-size: 0.8rem; color: var(--text-muted); }
.ml-org { display: flex; flex-wrap: wrap; gap: 0.2rem 0.5rem; align-items: baseline; }
.ml-romulan-tag { font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--violet); }
.ml-stars { color: var(--gold); font-size: 0.8rem; letter-spacing: 0.05em; }
.ml-dot { font-size: 0.7rem; margin-left: 0.3rem; vertical-align: middle; }
.ml-dot.on { color: var(--green); }
.ml-dot.idle { color: var(--amber); }
.ml-tags { display: flex; flex-wrap: wrap; gap: 0.3rem; margin-top: 0.3rem; }
