/* GSWM shared brand: the tokens and masthead both tools already draw with.
   Values are lifted from research/web/workspace-theme.css and Prep Dog's
   workspace.css so the workspace pages sit between them without a seam.
   Blue carries every interactive state; gold is kept for the firm's own marks
   (rules under headings, section numerals). */
@import url("fonts/fonts.css");

:root {
  --ink: #14213D;
  --ink-2: #25324F;
  --body: #3E4759;
  --muted: #65758B;
  --brand: #1A4F8B;
  --brand-deep: #123A69;
  --brand-soft: #EAF1FA;
  --brand-line: #C4D8EE;
  --gold: #BFA054;
  --line: #DCE3EC;
  --line-2: #EDF1F6;
  --panel: #F7F9FC;
  --surface: #FFFFFF;
  --danger: #B4453E;

  --serif: 'Source Serif 4', Georgia, 'Times New Roman', serif;
  --sans: 'IBM Plex Sans', 'Segoe UI', system-ui, sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, monospace;

  --radius: 12px;
  --shadow-card: 0 1px 2px rgba(20,33,61,.05), 0 10px 28px -18px rgba(20,33,61,.32);
  --shadow-button: 0 1px 2px rgba(18,58,105,.24), 0 4px 12px rgba(18,58,105,.16);
  --focus-ring: 0 0 0 3px rgba(26,79,139,.14);
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
  font-family: var(--sans);
  color: var(--body);
  -webkit-font-smoothing: antialiased;
  /* The cool wash both tools use behind their white cards. */
  background:
    radial-gradient(1100px 620px at 50% -12%, #E4EDF9 0%, rgba(228,237,249,0) 68%),
    linear-gradient(#FBFCFE, #F4F7FB);
  background-color: #F4F7FB;
  background-attachment: fixed;
}
::selection { background: #D6E4F5; }
a:focus-visible, button:focus-visible, input:focus-visible {
  outline: 3px solid var(--brand); outline-offset: 3px;
}

/* Masthead: the same bar as the research pages and Prep Dog's header. */
.gs-header {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  min-height: 86px; width: 100%; padding: 16px 38px;
  background: var(--surface); border-bottom: 1px solid var(--line);
}
.gs-firm { display: flex; align-items: center; gap: 18px; min-width: 0; color: var(--brand-deep); text-decoration: none; }
.gs-firm img { display: block; flex: none; width: 52px; height: 52px; object-fit: contain; }
.gs-firm-name { display: flex; flex-direction: column; gap: 7px; text-transform: uppercase; }
.gs-firm-name > span { font-size: 11px; font-weight: 500; line-height: 1.4; letter-spacing: 1.25px; }
.gs-firm-name small { font-size: 8px; font-weight: 400; line-height: 1.4; letter-spacing: 2.4px; color: var(--muted); }
.gs-header-end { display: flex; align-items: center; gap: 22px; flex: none; }
.gs-product { display: inline-flex; align-items: center; gap: 14px; font-size: 12px; color: var(--brand-deep); white-space: nowrap; }
.gs-product strong { font-size: 14px; font-weight: 500; color: var(--ink); }
.gs-product > span[aria-hidden] { color: #8A98A9; font-size: 16px; }

/* Buttons. */
.gs-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 12px 20px; min-height: 44px;
  font: 600 14px/1.4 var(--sans); text-decoration: none;
  border: 1px solid var(--line); border-radius: 8px; cursor: pointer;
  color: var(--ink); background: var(--surface);
  transition: background-color .15s ease, border-color .15s ease, box-shadow .15s ease, transform .06s ease;
}
.gs-btn:hover { background: var(--brand-soft); border-color: var(--brand-line); color: var(--brand-deep); }
.gs-btn:active { transform: translateY(1px); }
.gs-btn[disabled], .gs-btn[aria-disabled="true"] { cursor: default; color: #8A98A9; background: var(--panel); border-color: var(--line); transform: none; }
.gs-btn-primary { color: #fff; background: var(--brand); border-color: var(--brand); box-shadow: var(--shadow-button); }
.gs-btn-primary:hover { color: #fff; background: var(--brand-deep); border-color: var(--brand-deep); }
.gs-btn-quiet { min-height: 0; padding: 8px 12px; font-size: 13px; color: var(--muted); border-color: transparent; background: transparent; }

.gs-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-card); }

.gs-eyebrow { font-family: var(--mono); font-size: 10.5px; letter-spacing: .18em; text-transform: uppercase; color: var(--brand-deep); }

.gs-footer {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 24px;
  padding: 16px 32px; border-top: 1px solid var(--line-2);
  font-family: var(--mono); font-size: 10.5px; color: rgba(20,33,61,.45);
}

@media (max-width: 640px) {
  .gs-header { padding: 16px 20px; gap: 14px; }
  .gs-firm { gap: 12px; }
  .gs-firm img { width: 44px; height: 44px; }
  .gs-firm-name > span { font-size: 10px; letter-spacing: 1px; }
  .gs-firm-name small { font-size: 7px; letter-spacing: 2px; }
  .gs-header-end { gap: 10px; }
  .gs-product .gs-product-sub, .gs-product > span[aria-hidden] { display: none; }
  .gs-footer { padding: 16px; }
}

/* The account menu (account-menu.js): one control in the masthead's corner. */
.gs-account { position: relative; }
.gs-account-button {
  display: inline-flex; align-items: center; gap: 9px; padding: 5px 10px 5px 5px;
  border: 1px solid transparent; border-radius: 999px; background: transparent;
  font: 500 13.5px/1 var(--sans); color: var(--ink); cursor: pointer;
}
.gs-account-button:hover, .gs-account-button[aria-expanded="true"] { background: var(--brand-soft); border-color: var(--brand-line); }
.gs-avatar {
  display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%;
  background: var(--ink); color: #fff; font: 600 12px/1 var(--sans); letter-spacing: .5px;
}
.gs-chevron { width: 7px; height: 7px; border-right: 1.5px solid var(--muted); border-bottom: 1.5px solid var(--muted); transform: translateY(-2px) rotate(45deg); }
.gs-account-menu {
  position: absolute; right: 0; top: calc(100% + 8px); z-index: 50; min-width: 230px;
  padding: 6px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-card);
}
.gs-account-who { display: grid; gap: 3px; padding: 10px 12px 12px; margin-bottom: 4px; border-bottom: 1px solid var(--line-2); }
.gs-account-who strong { font: 600 14px/1.3 var(--sans); color: var(--ink); }
.gs-account-who span { font-size: 12.5px; color: var(--muted); overflow-wrap: anywhere; }
.gs-account-item { display: block; padding: 9px 12px; border-radius: 8px; font-size: 13.5px; color: var(--body); text-decoration: none; }
.gs-account-item:hover, .gs-account-item:focus-visible { background: var(--brand-soft); color: var(--brand-deep); outline: none; }
@media (max-width: 640px) { .gs-account-first, .gs-chevron { display: none; } .gs-account-button { padding: 3px; } }
