/* Hub directory, top bar, and the shared Companies / Playbook / Partnerships layout. */

/* Top bar: Hub button + where you are */
.sections { align-items: stretch; }
.sections .sec-hub { display: flex; align-items: center; gap: 7px; }
.sections .sec-hub img { width: 14px; height: 14px; }
.sec-label { display: flex; align-items: center; padding: 0 18px; border-left: 1px solid var(--line); font: 600 12px/1 Montserrat, sans-serif; letter-spacing: .08em; text-transform: uppercase; color: var(--text); }
.hero-sm { font-size: .42em; line-height: 1.1; margin-bottom: .08em; }

/* Signed-in hub: the card widens into a directory */
.screen.is-hub { overflow-y: auto; place-items: start start; padding-top: 48px; }
.signin-card.is-hub { width: min(940px, 100%); }
.signin-card.is-hub .hero { font-size: clamp(40px, 5vw, 64px); margin-bottom: 10px; }
.signin-card.is-hub .lede { font-size: 15px; margin-bottom: 18px; }
.hub-hi { font-size: 15px; color: #dce3e5; margin: 0 0 6px; font-weight: 600; }
.hub-dir { columns: 2; column-gap: 28px; }
.hub-group { break-inside: avoid; margin: 14px 0 6px; }
.hub-group h3 { margin: 0 0 4px; font-size: 10px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); padding-bottom: 6px; border-bottom: 1px solid var(--line); }
.hub-row { display: grid; grid-template-columns: 74px 1fr; gap: 12px; align-items: center; width: 100%; padding: 9px 0; background: none; border: 0; border-bottom: 1px solid #1a1e21; color: var(--text); text-align: left; cursor: pointer; font-family: Montserrat, sans-serif; }
.hub-row img { height: 20px; width: auto; max-width: 74px; object-fit: contain; object-position: left center; filter: brightness(0) invert(1); opacity: .8; }
.hub-mark { width: 10px; height: 10px; background: var(--teal); display: block; }
.hub-row b { display: block; font-size: 14px; font-weight: 600; }
.hub-row small { display: block; font-size: 12px; color: var(--muted); line-height: 1.35; margin-top: 1px; }
.hub-row:hover b, .hub-row:focus-visible b { color: var(--teal); }
.hub-row:focus-visible { outline: 1px solid var(--teal); outline-offset: 2px; }
#hub-signout { margin-top: 16px; font-size: 12px; }

/* Shared panel nav */
.x-panel .title { font-size: 30px; }
.x-nav { padding: 8px 0 24px; }
.x-nav-h { padding: 16px 22px 6px; font-size: 10px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.x-nav-i { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; width: 100%; padding: 9px 22px; background: none; border: 0; border-bottom: 1px solid #1a1e21; color: var(--text); text-align: left; cursor: pointer; font-family: Montserrat, sans-serif; }
.x-nav-i img { height: 16px; width: 56px; object-fit: contain; object-position: left center; filter: brightness(0) invert(1); opacity: .75; }
.x-nav-i b { display: block; font-size: 13px; font-weight: 600; }
.x-nav-i small { display: block; font-size: 11px; color: var(--muted); }
.x-nav-i em { font-style: normal; font-size: 12px; color: var(--muted); }
.x-nav-i:hover { background: var(--panel-2); }
.x-nav-i.is-on { background: #1e2427; }
.x-nav-i.is-on b { color: var(--teal); }

/* Page body */
.x-body { max-width: 1100px; padding-bottom: 40px; }
.x-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; padding: 22px 0 16px; border-bottom: 1px solid var(--line); margin-bottom: 18px; }
.x-head h2 { font: 400 32px/1.05 Aboreto, serif; margin: 0 0 8px; }
.x-head p { margin: 0; color: var(--muted); font-size: 13px; max-width: 72ch; line-height: 1.55; }
.x-actions { display: flex; gap: 8px; flex: none; }
.x-actions .btn { margin: 0; }
.x-h { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; margin: 26px 0 8px; }
.x-h small { text-transform: none; letter-spacing: 0; font-weight: 400; color: var(--muted); margin-left: 6px; }
.x-list td { white-space: normal; vertical-align: top; }
.x-list td b { font-weight: 600; }
.x-list a { color: var(--text); }
.x-list a:hover { color: var(--teal); }
.x-list tr[data-id] { cursor: pointer; }
.x-past td { color: var(--muted); }
.x-block { display: block; margin-top: 2px; }
.x-wrap { max-width: 360px; }
.x-row-act { white-space: nowrap !important; }
.x-status { font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: 2px 6px; border: 1px solid var(--line); color: var(--muted); }
.x-status.s-approved { color: var(--teal); border-color: rgba(26,175,169,.45); }
.x-status.s-draft { color: var(--brass); border-color: rgba(200,161,101,.45); }
.x-status.s-due { color: var(--danger); border-color: rgba(208,96,63,.5); }
.x-kind { font-size: 11px; font-weight: 600; }
.x-kind.k-training, .x-kind.k-review { color: var(--teal); }
.x-kind.k-practice { color: var(--text); }
.x-kind.k-joint { color: var(--brass); }
.x-tools { display: flex; gap: 12px; align-items: center; justify-content: space-between; margin: 14px 0 10px; }
.x-tools .ht-input { max-width: 320px; }
.x-seg { display: flex; border: 1px solid var(--line); }
.x-seg button { background: none; border: 0; color: var(--muted); padding: 8px 14px; font: 600 12px Montserrat, sans-serif; cursor: pointer; }
.x-seg button + button { border-left: 1px solid var(--line); }
.x-seg button.is-on { background: var(--teal-dim); color: var(--teal); }
.x-seg small { font-weight: 400; margin-left: 4px; }
.x-log, .x-links, .x-signed { list-style: none; margin: 0; padding: 0; }
.x-log li { padding: 7px 0; border-bottom: 1px solid #1a1e21; font-size: 13px; }
.x-log small { display: block; color: var(--muted); font-size: 11px; }
.x-links li { padding: 8px 0; border-bottom: 1px solid #1a1e21; font-size: 14px; }
.x-links a { color: var(--teal); }
.x-sign { margin-top: 28px; padding-top: 18px; border-top: 1px solid var(--line); }
.x-sign h3 { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; margin: 0 0 12px; }
.x-signed li { padding: 6px 0; border-bottom: 1px solid #1a1e21; font-size: 13px; }
.x-signed small { color: var(--muted); margin-left: 8px; }
.x-kpis { grid-template-columns: repeat(5, 1fr) !important; margin: 4px 0 8px; }
.x-form { padding: 24px 26px 40px; }
.x-form textarea { font-size: 14px; line-height: 1.5; }
.ht-flag.good { color: var(--teal); border-color: rgba(26,175,169,.45); }
.ht-flag.bad { color: var(--danger); border-color: rgba(208,96,63,.5); }

/* Dossier document */
.doc { max-width: 860px; font-size: 15px; line-height: 1.6; }
.doc section { padding: 18px 0 6px; border-top: 1px solid var(--line); }
.doc h3 { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; margin: 0 0 10px; color: var(--text); }
.doc h4 { font-size: 13px; font-weight: 700; margin: 16px 0 6px; }
.doc p { margin: 0 0 10px; color: #d6dcde; }
.doc ul { margin: 0 0 10px; padding-left: 18px; }
.doc li { margin: 3px 0; color: #d6dcde; }
.doc-head { display: grid; grid-template-columns: auto 1fr; gap: 22px; align-items: start; padding: 24px 0 18px; }
.doc-logo { width: 120px; height: 56px; object-fit: contain; object-position: left center; filter: brightness(0) invert(1); opacity: .9; }
.doc-head h2 { font: 400 36px/1.05 Aboreto, serif; margin: 4px 0 8px; }
.doc-kicker { font-size: 10px !important; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted) !important; margin: 0 !important; }
.doc-lede { font-size: 16px; color: var(--text) !important; }
.doc-links { display: flex; flex-wrap: wrap; gap: 16px; font-size: 13px; }
.doc-links a { color: var(--teal); }
.doc-note { border: 1px solid rgba(200,161,101,.5); background: rgba(200,161,101,.07); padding: 12px 14px; margin-bottom: 18px; }
.doc-note .ht-k { color: var(--brass); }
.doc-note p { margin: 4px 0 0; color: var(--text); }
.doc-facts { width: 100%; border-collapse: collapse; font-size: 14px; }
.doc-facts th { text-align: left; font-weight: 600; color: var(--muted); width: 32%; padding: 8px 12px 8px 0; vertical-align: top; border-bottom: 1px solid #1a1e21; }
.doc-facts td { padding: 8px 0; border-bottom: 1px solid #1a1e21; font-weight: 600; }
.doc-facts td small { display: block; font-weight: 400; font-size: 11px; color: #5f686d; margin-top: 2px; }
.doc-table td { white-space: normal; vertical-align: top; }
.doc-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.doc-steps { counter-reset: s; list-style: none; padding: 0; margin: 0; }
.doc-steps li { counter-increment: s; display: grid; grid-template-columns: 28px 1fr; column-gap: 8px; padding: 8px 0; border-bottom: 1px solid #1a1e21; }
.doc-steps li::before { content: counter(s); grid-row: span 3; font: 400 18px/1.2 Aboreto, serif; color: var(--teal); }
.doc-steps p { margin: 2px 0 0; font-size: 14px; }
.doc-owner { font-size: 11px; color: var(--muted); font-weight: 600; letter-spacing: .04em; }
.doc-qa { margin: 0; }
.doc-qa dt { font-weight: 700; margin-top: 12px; }
.doc-qa dd { margin: 3px 0 0; color: #d6dcde; }
.doc-open li { color: var(--brass); }
.doc-sop { padding-top: 6px; }
.doc-sop h4 { font-size: 15px; margin-top: 22px; }

/* Projections */
.pj-grid { display: grid; grid-template-columns: 340px 1fr; gap: 36px; align-items: start; }
.pj-in { display: grid; grid-template-columns: 1fr 110px 26px; gap: 8px; align-items: center; margin: 0 0 8px; text-transform: none; letter-spacing: 0; font-size: 13px; color: var(--text); font-weight: 500; }
.pj-in input { padding: 8px 10px !important; font-size: 14px !important; text-align: right; }
.pj-in em { font-style: normal; color: var(--muted); font-size: 12px; }
.pj-out { font-size: 15px; }
.pj-out td, .pj-out th { padding: 10px 8px; }
.pj-out tr:nth-child(4) td, .pj-out tr:nth-child(5) td { font-weight: 700; }

@media (max-width: 1100px) { .pj-grid { grid-template-columns: 1fr; } .x-kpis { grid-template-columns: repeat(3, 1fr) !important; } }
@media (max-width: 760px) {
  .screen.is-hub { padding-top: 16px; place-items: start center; }
  .hub-dir { columns: 1; }
  .sec-label { padding: 0 12px; font-size: 10px; }
  .x-panel { top: 60px !important; bottom: auto !important; height: auto !important; border-top: 0 !important; border-bottom: 1px solid var(--line); z-index: 930 !important; }
  .x-panel .panel-head { display: none; }
  .x-nav { display: flex; overflow-x: auto; padding: 0; scrollbar-width: none; }
  .x-nav-h { display: none; }
  .x-nav-i { display: flex; flex: none; width: auto; padding: 10px 14px; border-bottom: 0; border-right: 1px solid #1a1e21; white-space: nowrap; }
  .x-nav-i small, .x-nav-i img { display: none; }
  .x-page { bottom: 0 !important; border-top-width: 96px !important; padding: 0 16px 24px !important; }
  .x-page::before { display: none; }
  .x-head { flex-direction: column; align-items: flex-start; gap: 12px; }
  .x-head h2 { font-size: 26px; }
  .doc-head { grid-template-columns: 1fr; gap: 10px; }
  .doc-head h2 { font-size: 28px; }
  .doc-cols { grid-template-columns: 1fr; }
  .x-kpis { grid-template-columns: 1fr 1fr !important; }
  .x-tools { flex-direction: column; align-items: stretch; }
  .x-tools .ht-input { max-width: none; }
}
.screen.is-hub .marquee { display: none; }
.screen.is-hub .legal { position: static; margin-top: 18px; }
.x-kpis .ht-kpi:last-child { grid-column: auto !important; }
.hub-row img.hub-rise { height: 18px; filter: none; opacity: .9; }
