/* Two Doors: /s/{token} (ShareLayout). Reuses terminal-shell.css's :root
   tokens rather than defining its own palette, so the share page always
   matches the rest of the app. Every tint is derived from --term-accent with
   color-mix, never a literal, for the same reason. Loaded after
   terminal-shell.css. */

.share-shell {
    /* terminal-shell.css pins html/body to overflow:hidden and lets
       .term-window scroll; there is no .term-window here, so this does. */
    height: 100vh;
    height: 100dvh;
    overflow-y: auto;
    background: var(--term-bg);
    color: var(--term-fg);
}

.share {
    max-width: 980px;
    margin: 0 auto;
    padding: 0 16px 48px;
    display: grid;
    gap: 24px;
    font-family: 'Bricolage Grotesque', system-ui, sans-serif;
}

.share-top {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
    padding: 12px 0;
    border-bottom: 1px solid var(--term-line);
    font: 13px 'Share Tech Mono', monospace;
    color: var(--term-fg-dim);
}
.share-top b { color: var(--term-fg); font-weight: 400; }
.share-top a { color: var(--term-accent); }

.share-id { display: grid; gap: 8px; }
.share-from { font: 13px 'Share Tech Mono', monospace; color: var(--term-fg-dim); }
.share-name {
    margin: 0;
    font-size: clamp(34px, 8vw, 60px);
    line-height: .95;
    font-weight: 800;
    letter-spacing: -.02em;
    color: var(--term-fg-bright);
    text-wrap: balance;
}
.share-role { font-size: 18px; color: var(--term-accent); font-weight: 500; }
/* The candidate's note above the doors: read, not scanned, so a comfortable
   measure and a quiet left rule rather than a card. */
.share-note {
    max-width: 65ch;
    display: grid;
    gap: 10px;
    padding-left: 14px;
    border-left: 2px solid var(--term-accent);
    font-size: 15.5px;
    line-height: 1.6;
    color: var(--term-fg);
}
.share-note p { margin: 0; }
.share-note p:last-child { color: var(--term-fg-dim); font-style: italic; }

.share-privacy {
    margin: 8px 0 0;
    padding-top: 12px;
    border-top: 1px solid var(--term-line);
    max-width: 75ch;
    font-size: 12.5px;
    line-height: 1.5;
    color: var(--term-fg-dim);
}

.share-facts { display: flex; flex-wrap: wrap; gap: 8px; }
.share-facts span { font: 13px 'Share Tech Mono', monospace; border: 1px solid var(--term-line); padding: 5px 10px; border-radius: 999px; }

.share-doors { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; }
.share-door {
    text-align: left;
    cursor: pointer;
    border-radius: 12px;
    padding: 22px;
    display: grid;
    gap: 10px;
    align-content: start;
    min-height: 190px;
    font: inherit;
    text-decoration: none;
}
.share-door .k { font: 12px 'Share Tech Mono', monospace; letter-spacing: .08em; text-transform: uppercase; }
.share-door .t { font-size: 28px; font-weight: 700; line-height: 1.05; }
.share-door .d { font-size: 14px; line-height: 1.45; }
.share-door ul { margin: 0; padding-left: 16px; font-size: 14px; display: grid; gap: 2px; }
.share-door .foot { margin-top: auto; font: 13px 'Share Tech Mono', monospace; }
.share-door.pdf { background: var(--term-accent); color: var(--term-bg); border: 0; }
.share-door.talk, .share-door.done { background: var(--term-pane-bg); color: var(--term-fg); border: 1px solid var(--term-line); }
.share-door.talk .k, .share-door.talk ul, .share-door.done .k { color: var(--term-fg-dim); }
.share-door.talk:hover { border-color: var(--term-accent); }

.share-btn {
    font: 500 15px/1 'Bricolage Grotesque', system-ui, sans-serif;
    border-radius: 8px;
    padding: 13px 18px;
    cursor: pointer;
    border: 1px solid transparent;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.share-btn.solid { background: var(--term-accent); color: var(--term-bg); }
.share-btn.line { background: transparent; color: var(--term-fg); border-color: var(--term-line); }
.share-btn.quiet { background: transparent; color: var(--term-fg-dim); padding-inline: 4px; text-decoration: underline; }
.share-btn:disabled { opacity: .45; cursor: default; }
.share-row { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; }

.share-door:focus-visible, .share-btn:focus-visible, .rq-opt:focus-visible,
.dp-day:focus-visible, .dp-slot:focus-visible, .share-input:focus-visible {
    outline: 2px solid var(--term-accent);
    outline-offset: 2px;
}

.share-banner { border-radius: 8px; padding: 12px 14px; font-size: 14px; line-height: 1.45; }
.share-banner.ok { color: #8fd19e; border: 1px solid rgba(143, 209, 158, .35); background: rgba(143, 209, 158, .08); }
.share-banner.info { color: #e8c07a; border: 1px solid rgba(232, 192, 122, .35); background: rgba(232, 192, 122, .06); }
.share-banner.err { color: var(--term-err); border: 1px solid var(--term-err); }

.share-card { background: var(--term-pane-bg); border: 1px solid var(--term-line); border-radius: 12px; padding: 20px; display: grid; gap: 14px; }
.share-card p { margin: 0; }
.share-h { margin: 0; font-size: clamp(24px, 5vw, 34px); font-weight: 700; color: var(--term-fg-bright); }
.share-field { display: grid; gap: 6px; }
.share-field label { font: 13px 'Share Tech Mono', monospace; color: var(--term-fg-dim); }
.share-input {
    font: 15px 'Bricolage Grotesque', system-ui, sans-serif;
    color: var(--term-fg);
    background: var(--term-bg);
    border: 1px solid var(--term-line);
    border-radius: 8px;
    padding: 11px 12px;
    width: 100%;
    box-sizing: border-box;
}
.share-check { display: grid; grid-template-columns: 20px 1fr; gap: 10px; align-items: start; font-size: 14.5px; cursor: pointer; }
.share-check input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--term-accent); }

.share-score {
    font: 800 clamp(56px, 14vw, 96px)/.9 'Bricolage Grotesque', system-ui, sans-serif;
    color: var(--term-fg-bright);
    font-variant-numeric: tabular-nums;
}
.share-face { width: 96px; height: 96px; max-width: 100%; object-fit: contain; }

/* fit check (RollingQuiz) - the share link and the /me/rubric preview */
/* The face and the "leaning" meter on top of it (FitFace.razor). The meter
   grows out of the middle - right for a fit, left for not - so an empty
   meter reads as "undecided", never as "half a match". */
.fit-meter-row { display: flex; align-items: center; gap: 16px; margin-bottom: 18px; }
.fit-meter-col { flex: 1 1 auto; min-width: 0; display: grid; gap: 4px; }
.fit-meter {
    position: relative;
    height: 10px;
    border-radius: 999px;
    background: var(--term-pane-bg);
    border: 1px solid var(--term-line);
    overflow: hidden;
}
.fit-meter-fill {
    position: absolute;
    top: 0;
    bottom: 0;
    transition: width .45s cubic-bezier(.3, 1.4, .5, 1), background-color .45s;
}
.fit-meter-fill.pos { left: 50%; background: var(--term-accent); border-radius: 0 999px 999px 0; }
.fit-meter-fill.neg { right: 50%; background: #8f9bc4; border-radius: 999px 0 0 999px; }
.fit-meter-mid { position: absolute; left: 50%; top: -1px; bottom: -1px; width: 2px; margin-left: -1px; background: var(--term-fg-dim); }
.fit-meter-ends { display: flex; justify-content: space-between; font: 11px 'Share Tech Mono', monospace; color: var(--term-fg-dim); text-transform: uppercase; letter-spacing: .06em; }
.fit-meter-text { font: 600 15px 'Bricolage Grotesque', system-ui, sans-serif; color: var(--term-fg-bright); text-align: center; }

.fit-face { width: 72px; height: 72px; flex: none; image-rendering: pixelated; border-radius: 12px; }
@media (prefers-reduced-motion: reduce) {
    .fit-meter-fill { transition: none; }
}

.rq-question { display: grid; gap: 4px; }
.rq-label { margin: 0; font-size: 22px; font-weight: 600; color: var(--term-fg-bright); font-family: 'Bricolage Grotesque', system-ui, sans-serif; }
.rq-help { margin: 0; color: var(--term-fg-dim); font-size: 14px; }
.rq-opts { display: grid; gap: 8px; margin: 12px 0; }
.rq-opt {
    text-align: left;
    display: grid;
    grid-template-columns: 28px 1fr;
    gap: 10px;
    align-items: center;
    padding: 12px 14px;
    border-radius: 8px;
    border: 1px solid var(--term-line);
    background: var(--term-bg);
    color: var(--term-fg);
    font: 16px 'Bricolage Grotesque', system-ui, sans-serif;
    cursor: pointer;
}
.rq-opt:hover { border-color: var(--term-accent); }
.rq-opt[aria-pressed="true"] { border-color: var(--term-accent); background: color-mix(in srgb, var(--term-accent) 14%, transparent); }
.rq-key { font: 13px 'Share Tech Mono', monospace; color: var(--term-fg-dim); border: 1px solid var(--term-line); border-radius: 4px; text-align: center; }
.rq-range { display: flex; flex-wrap: wrap; gap: 12px; margin: 12px 0; }
.rq-range label { display: grid; gap: 4px; font: 13px 'Share Tech Mono', monospace; color: var(--term-fg-dim); flex: 1 1 140px; }
.rq-nav { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; margin-top: 8px; }

/* day picker (DayPicker.razor) */
.dp-days { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; }
.dp-day {
    flex: none;
    width: 66px;
    padding: 10px 0;
    border-radius: 8px;
    border: 1px solid var(--term-line);
    background: var(--term-bg);
    color: var(--term-fg);
    cursor: pointer;
    display: grid;
    gap: 2px;
    justify-items: center;
    font-family: inherit;
}
.dp-day[aria-pressed="true"] { background: var(--term-accent); color: var(--term-bg); border-color: var(--term-accent); }
.dp-w, .dp-c { font: 11px 'Share Tech Mono', monospace; text-transform: uppercase; }
.dp-d { font-size: 22px; font-weight: 700; font-variant-numeric: tabular-nums; }
.dp-long { margin: 8px 0; font: 13px 'Share Tech Mono', monospace; color: var(--term-fg-dim); }
.dp-slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; margin-bottom: 12px; }
.dp-slot {
    padding: 11px 0;
    border-radius: 8px;
    border: 1px solid var(--term-line);
    background: var(--term-bg);
    color: var(--term-fg);
    font: 15px 'Share Tech Mono', monospace;
    cursor: pointer;
    font-variant-numeric: tabular-nums;
}
.dp-slot[aria-pressed="true"] { border-color: var(--term-accent); background: color-mix(in srgb, var(--term-accent) 16%, transparent); }

@media (prefers-reduced-motion: reduce) {
    .share * { transition: none !important; }
}

/* ---- shared panels inside the share page ----
   BookMeetingPanel and ContactRequestPanel are used on /cv/{slug} too, so
   they render the app's own edx-* classes. Inside the share page those read
   as small square outlines next to its large rounded buttons; this scope
   gives them the share page's shape instead, without touching the panels or
   any other page. */

.share .edx-btn {
    font: 500 15px/1 'Bricolage Grotesque', system-ui, sans-serif;
    text-transform: none;
    letter-spacing: 0;
    border-radius: 8px;
    padding: 12px 16px;
    border: 1px solid var(--term-line);
    background: transparent;
    color: var(--term-fg);
}
.share .edx-btn:hover { border-color: var(--term-accent); color: var(--term-fg-bright); }
.share .edx-btn.primary { background: var(--term-accent); border-color: var(--term-accent); color: var(--term-bg); }
.share .edx-btn.primary:hover { color: var(--term-bg); }
.share .edx-btn:disabled { opacity: .45; }

.share .edx-input {
    font: 15px 'Bricolage Grotesque', system-ui, sans-serif;
    color: var(--term-fg);
    background: var(--term-bg);
    border: 1px solid var(--term-line);
    border-radius: 8px;
    padding: 11px 12px;
    width: 100%;
    box-sizing: border-box;
}
.share textarea.edx-input { resize: vertical; min-height: 90px; }

.share .edx-field { display: grid; gap: 6px; margin-bottom: 14px; }
.share .edx-btn-label { font: 13px 'Share Tech Mono', monospace; color: var(--term-fg-dim); }
.share .edx-banner { border-radius: 8px; }
.share .edx-toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
