/* seamus.css: Tito Go's look on Fiesta. Loaded after tokens.css and
   theme.css, so these override Day's tokens and nothing else: the
   components stay Fiesta's, and a Fiesta upgrade lands untouched.
   Values from Tito Go's base_colors.css and radius_scale.css. */

@font-face {
  font-display: swap;
  font-family: "Schibsted Grotesk";
  font-style: normal;
  font-weight: 400 900;
  src: url(fonts/schibsted-grotesk-var.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6,
    U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122,
    U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-display: swap;
  font-family: "Schibsted Grotesk";
  font-style: normal;
  font-weight: 400 900;
  src: url(fonts/schibsted-grotesk-ext.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7,
    U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
    U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --seamus-chrome: "Schibsted Grotesk", system-ui, sans-serif;
  --rst-radius: 7px;
  --rst-radius-sm: 4px;
  --rst-bg: light-dark(#faf9f9, #101219);
  --rst-surface: light-dark(#ffffff, #1b1e27);
  --rst-surface-2: light-dark(#fcfbfb, #15171e);
  --rst-line: light-dark(#ebe6df, #383c4a);
  --rst-line-strong: light-dark(#807b73, #7c8191);
  --rst-header-rule: var(--rst-line);
  --rst-text: light-dark(#201c16, #e2e6f0);
  --rst-text-muted: light-dark(#5a554e, #a7adbd);
  --rst-text-faint: light-dark(#807b73, #8a90a0);
  --rst-accent: light-dark(#1a45c4, #8fb3ff);
  --rst-accent-soft: light-dark(#e8eefc, #18244a);
  --rst-rail-bg: light-dark(#f1f0f0, #15171e);
  --rst-nav-current-bg: light-dark(#ffffff, #1b1e27);
  --rst-nav-current-fg: light-dark(#201c16, #e2e6f0);
  --rst-tone-positive-fg: light-dark(#14653f, #6ee7a8);
  --rst-tone-negative-fg: light-dark(#a3262c, #f79aa0);
}

/* Schibsted on the chrome only, as Tito Go has it: the rail, page
   titles, box heads and stat figures. What people read and type stays
   on their own system font. */
[rst-shell-brand], [rst-shell-title], [rst-shell-nav],
[rst-page-header] h1, [rst-box-head] h2, [rst-stat] [rst-stat-value],
.seamus-brand {
  font-family: var(--seamus-chrome);
}
[rst-page-header] h1 { font-weight: 650; letter-spacing: -0.01em; }
[rst-shell-brand] { font-weight: 750; letter-spacing: -0.01em; }

.seamus-brand-mark {
  display: inline-grid;
  place-items: center;
  inline-size: 1.5rem;
  block-size: 1.5rem;
  border-radius: 6px;
  background: var(--rst-accent);
  color: var(--rst-on-accent-fill, #fff);
  font-size: 0.8125rem;
  font-weight: 800;
  margin-inline-end: 0.5rem;
}

.seamus-up { font-size: 0.8125rem; color: var(--rst-text-muted); }

/* A block on the page editor: its kind as an eyebrow over its words. */
.seamus-kind {
  font-family: var(--seamus-chrome);
  font-size: 0.71875rem;
  font-weight: 650;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--rst-accent);
}
.seamus-preview-link { word-break: break-all; }
.seamus-row-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--rst-sp-2);
  margin-block-start: var(--rst-sp-2);
}
.seamus-row-actions form { display: contents; }
.seamus-photo {
  inline-size: 6rem;
  block-size: 6rem;
  object-fit: cover;
  border-radius: var(--rst-radius);
}
/* Move and remove controls sit above the row's stretched name link. */
.seamus-row-tools {
  position: relative;
  z-index: 1;
  display: flex;
  gap: var(--rst-sp-1);
  align-items: center;
}
.seamus-row-tools form { display: contents; }

/* Fiesta's rail draws text links; Seamus puts an icon before each. */
[rst-shell-sidebar] [rst-shell-nav] a {
  display: flex;
  align-items: center;
  gap: 0.625rem;
}
[rst-shell-nav] a .icon { flex: none; inline-size: 1rem; block-size: 1rem; }
.seamus-brand-mark { flex: none; line-height: 1; }
[rst-row-main] .seamus-kind { display: block; margin-block-end: 0.125rem; }

/* The sign-in page, after Tito's: one 26rem card centred on the paper,
   the mark on top, a quiet pattern behind. ui's signin partial draws a
   brand column beside the door; here they stack. */
.seamus-signin {
  background:
    radial-gradient(light-dark(rgb(32 28 22 / .055), rgb(226 230 240 / .05))
      1px, transparent 1.5px) 0 0 / 22px 22px,
    var(--rst-bg);
  display: grid;
  margin: 0;
  min-height: 100vh;
  padding: 2rem 1rem;
  place-content: safe center;
  place-items: center;
}
.seamus-signin main { width: min(26rem, calc(100vw - 2rem)); }
.seamus-signin [rst-signin] {
  box-sizing: border-box;
  width: 100%;
  background: var(--rst-surface);
  border: 1px solid var(--rst-line);
  border-radius: 14px;
  box-shadow: 0 16px 64px light-dark(rgb(30 30 50 / .08), rgb(0 0 0 / .25));
  display: block;
  margin: 0;
  max-width: none;
  padding: 2rem 1.75rem 1.75rem;
}
.seamus-signin [rst-signin-brand] {
  display: block;
  padding: 0;
  text-align: center;
  border: 0;
  background: none;
}
.seamus-signin [rst-signin-mark] {
  display: block;
  height: auto;
  margin: .25rem auto 1.5rem;
  width: 4.5rem;
}
.seamus-signin [rst-signin-mark] svg {
  color: var(--rst-accent);
  display: block;
  height: 4.5rem;
  width: 4.5rem;
}
/* The heading names Seamus already; the brand's name is for readers. */
.seamus-signin [rst-signin-name] {
  clip-path: inset(50%);
  height: 1px;
  overflow: hidden;
  position: absolute;
  white-space: nowrap;
  width: 1px;
}
.seamus-signin [rst-signin-pitch] {
  color: var(--rst-text-muted);
  margin: .25rem 0 0;
}
.seamus-signin [rst-signin-door] { padding: 0; }
.seamus-signin [rst-signin-door] h1 {
  font-family: var(--seamus-chrome);
  font-size: 1.5rem;
  font-weight: 650;
  letter-spacing: -.015em;
  margin: 0 0 1rem;
  text-align: center;
}
.seamus-signin [rst-signin-door] > p { text-align: center; }
.seamus-signin-foot {
  color: var(--rst-text-muted);
  font-size: .8125rem;
  margin: 1.5rem 0 0;
  text-align: center;
}
@media (prefers-contrast: more) {
  .seamus-signin { background: var(--rst-bg); }
}

/* Empty states as Tito draws them: a card like any other, with a solid
   hairline, not a dashed outline that reads as a drop target. */
.rst-empty, [rst-empty] {
  border: 1px solid var(--rst-line);
  border-radius: calc(var(--rst-radius) * 2);
  box-shadow: 0 1px 2px light-dark(rgb(30 30 50 / .04), rgb(0 0 0 / .2));
}

/* The onboarding: the sign-in card, a little wider, with the steps
   above each question. */
.seamus-focus main { width: min(30rem, calc(100vw - 2rem)); }
.seamus-focus-card {
  background: var(--rst-surface);
  border: 1px solid var(--rst-line);
  border-radius: 14px;
  box-shadow: 0 16px 64px light-dark(rgb(30 30 50 / .08), rgb(0 0 0 / .25));
  padding: 1.75rem 1.75rem 2rem;
}
.seamus-focus-top {
  align-items: center;
  display: flex;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}
.seamus-focus-top .seamus-brand-mark {
  block-size: 2.25rem;
  font-size: 1.125rem;
  inline-size: 2.25rem;
  border-radius: 9px;
  margin: 0;
}
.seamus-steps {
  display: flex;
  gap: .375rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.seamus-steps li {
  background: var(--rst-line);
  block-size: .375rem;
  border-radius: 999px;
  inline-size: 1.75rem;
}
.seamus-steps li.done, .seamus-steps li[aria-current] {
  background: var(--rst-accent);
}
.seamus-focus-card h1 {
  font-family: var(--seamus-chrome);
  font-size: 1.625rem;
  font-weight: 650;
  letter-spacing: -.015em;
  line-height: 1.2;
  margin: 0 0 .5rem;
}
.seamus-focus-lede { color: var(--rst-text-muted); margin: 0 0 1.5rem; }
.seamus-focus-card form > [rst-btn] { margin-top: 1rem; }
