/* Sol for the pt-BR subpages. Sora and the base document styles come from site.css. */
@font-face {
  font-family: 'Rubik';
  font-style: normal;
  font-weight: 300 900;
  font-display: swap;
  src: url('./fonts/rubik-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, 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;
}
@font-face {
  font-family: 'Rubik';
  font-style: normal;
  font-weight: 300 900;
  font-display: swap;
  src: url('./fonts/rubik-latin.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-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('./fonts/ibmplexmono-500-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('./fonts/ibmplexmono-500-latin.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-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('./fonts/ibmplexmono-600-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('./fonts/ibmplexmono-600-latin.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;
}

html:has(body.sol) { scroll-padding-top: 24px; }

body.sol {
  /* web/src/generated/tokens.css */
  --role-action-bg: #FFC629;
  --role-action-bg-pressed: #F0B400;
  --role-text-primary: #1C1A17;
  --role-text-secondary: #4F4A43;
  --role-text-muted: #6B645A;
  --role-border-default: #E9E8E5;
  --role-surface-page: #F7F7F5;
  --role-surface-card: #FFFFFF;
  --role-radius-card: 16px;
  --role-radius-control: 26px;
  --role-font-ui: 'Rubik', sans-serif;
  --role-action-fg: #1C1A17;
  --role-link: #1D5FD1;
  --role-surface-sunken: #F0F0ED;
  --role-border-strong: #D3CDC2;
  --role-border-frame: #D9D6CF;
  --role-border-control: #8C8880;
  --role-font-mono: 'IBM Plex Mono', monospace;
  --role-shadow: #000000;
  --brand-mark-bg: #80DBAD;
  --brand-mark-fg: #065F46;
  --brand-mark-font: 'Sora', sans-serif;
  --brand-mark-radius: 8px;

  --rz-ink: var(--role-text-primary);
  --rz-primary: var(--role-link);
  --rz-primary-pressed: var(--role-link);
  --rz-muted: var(--role-text-secondary);
  --rz-border: var(--role-border-default);
  --rz-subtle: var(--role-surface-sunken);
  --rz-surface: var(--role-surface-card);
  display: flex;
  flex-direction: column;
  min-height: 100dvh;
  font-family: var(--role-font-ui);
  color: var(--role-text-primary);
  background: var(--role-surface-page);
}

body.sol .bar {
  width: 100%;
  max-width: 480px;
  padding: 0 16px;
  margin: 0 auto;
}

.sol .skip { display: flex; align-items: center; min-height: 48px; }
.sol main.bar { flex: 1 0 auto; padding-block: 16px 48px; }
.sol main.not-found { padding-top: 48px; }
.sol h1 { font-size: 2.25rem; line-height: 1.1; overflow-wrap: break-word; }
.sol h2 { font-size: 1.5rem; line-height: 1.25; }
.sol .section { margin-top: 32px; }
.sol main p, .sol main li { color: var(--role-text-secondary); }
.sol main a { color: var(--role-link); overflow-wrap: anywhere; }
/* :only-child also matches an anchor surrounded by prose. Standalone links carry text-link. */
.sol .crumbs a, .sol .btn, .sol .faq-index a, .sol .not-found .links a,
.sol main p > a.text-link:only-child {
  display: inline-flex;
  align-items: center;
  min-width: 48px;
  min-height: 48px;
  max-width: 100%;
}
.sol .crumbs { align-items: center; margin-bottom: 16px; }

.sol-header {
  position: relative;
  z-index: var(--z-header);
  padding: max(12px, env(safe-area-inset-top)) 0 12px;
  background: var(--role-text-primary);
  color: var(--role-surface-card);
}
.sol-nav {
  position: relative;
  display: flex;
  align-items: center;
  height: 48px;
  padding: 0 4px 0 8px;
  border: 1px solid rgb(255 255 255 / 12%);
  border-radius: 24px;
  background: rgb(255 255 255 / 6%);
}
.sol-brand, .sol-nav .nav-login {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  color: inherit;
  text-decoration: none;
  font-weight: 600;
}
.sol-brand { gap: 8px; }
.sol-mark {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: var(--brand-mark-radius);
  background: var(--brand-mark-bg);
  color: var(--brand-mark-fg);
  font: 600 14px/20px var(--brand-mark-font);
}
.sol-nav .nav-login {
  justify-content: center;
  margin-left: auto;
  min-width: 48px;
  padding: 0 12px;
  font-size: 0.875rem;
}
.sol-menu-toggle {
  position: absolute;
  width: 1px;
  height: 1px;
  clip-path: inset(50%);
  overflow: hidden;
}
.sol-menu-button {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 0;
  border-radius: 24px;
  color: inherit;
  background: transparent;
  cursor: pointer;
}
.sol-menu-button .menu-icon, .sol-menu-button .menu-icon::before, .sol-menu-button .menu-icon::after { width: 20px; }
.sol-menu-button .menu-icon { height: 14px; }
.sol-menu-button .menu-icon::before { top: 1px; box-shadow: 0 5px currentColor; }
.sol-menu-button .menu-icon::after { top: 11px; }
.sol-nav > :focus-visible,
.sol-menu-toggle:focus-visible + .sol-menu-button { outline: 2px solid var(--role-surface-card); outline-offset: 2px; }
.sol-menu-toggle:checked + .sol-menu-button .menu-icon::before,
.sol-menu-button[aria-expanded="true"] .menu-icon::before { transform: translateY(5px) rotate(45deg); box-shadow: none; }
.sol-menu-toggle:checked + .sol-menu-button .menu-icon::after,
.sol-menu-button[aria-expanded="true"] .menu-icon::after { transform: translateY(-5px) rotate(-45deg); }
.sol-nav .primary {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  display: none;
  flex-direction: column;
  width: min(320px, 100%);
  max-height: calc(100dvh - 80px);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 8px;
  border: 1px solid var(--role-border-frame);
  border-radius: var(--role-radius-card);
  background: var(--role-surface-card);
  color: var(--role-text-primary);
  box-shadow: 0 8px 24px color-mix(in srgb, var(--role-shadow) 18%, transparent);
}
.sol-menu-toggle:checked ~ .primary,
.sol-menu-button[aria-expanded="true"] ~ .primary { display: flex; }
.sol-nav .primary a {
  display: flex;
  align-items: center;
  min-height: 48px;
  padding: 0 12px;
  border-radius: 12px;
  color: inherit;
  font-weight: 500;
  text-decoration: none;
}
.sol-nav .primary a[aria-current="page"] { background: var(--role-surface-sunken); font-weight: 600; }
.sol .btn, .sol-nav .primary .btn {
  justify-content: center;
  width: 100%;
  min-height: 52px;
  border-radius: var(--role-radius-control);
  background: var(--role-action-bg);
  color: var(--role-action-fg) !important;
  font-weight: 600;
}
.sol .btn:active { background: var(--role-action-bg-pressed); }
.sol .btn.secondary {
  min-height: 48px;
  border: 1px solid var(--role-border-control);
  box-shadow: none;
  background: var(--role-surface-card);
  font-weight: 500;
}
.sol .actions { gap: 12px; }
.sol .member-cta, .sol .panel {
  border: 1px solid var(--role-border-frame);
  border-radius: var(--role-radius-card);
  background: var(--role-surface-card);
}
.sol .member-cta { margin-top: 32px; padding: 16px; }
.sol .flow, .sol .faq-layout { grid-template-columns: minmax(0, 1fr); gap: 16px; }
.sol .flow { counter-reset: step; }
.sol .flow .panel { counter-increment: step; margin: 0; padding: 20px; }
.sol .flow .panel::before {
  display: block;
  margin-bottom: 12px;
  content: counter(step, decimal-leading-zero);
  font: 600 14px/20px var(--role-font-mono);
  color: var(--role-text-muted);
}
.sol .flow h2 { color: var(--role-text-primary); }
.sol .rules {
  border-color: var(--role-border-frame);
  background: var(--role-surface-card);
  font-variant-numeric: tabular-nums;
}
.sol .rules td { font-family: var(--role-font-mono); font-size: 0.875rem; }
.sol .faq-index { position: static; max-height: none; overflow: visible; }
.sol .faq-index > ul { display: flex; flex-wrap: wrap; gap: 8px; }
.sol .faq-index ul ul { display: none; }
.sol .faq-index .faq-index-group {
  min-height: 48px;
  padding: 0 16px;
  border: 1px solid var(--role-border-control);
  border-radius: 24px;
  background: var(--role-surface-card);
  color: var(--role-link);
}
.sol-footer { padding: 40px 0 max(40px, env(safe-area-inset-bottom)); background: var(--role-surface-sunken); }
.sol-footer .sol-brand { min-height: auto; }
.sol-footer .sol-mark { width: 28px; height: 28px; font-size: 12px; }
.sol-footer nav {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: repeat(5, auto);
  grid-auto-flow: column;
  gap: 0 12px;
  margin: 24px 0;
}
.sol-footer nav a {
  display: flex;
  align-items: center;
  min-height: 48px;
  color: var(--role-text-secondary);
  font-size: 0.875rem;
  line-height: 20px;
  font-weight: 500;
  text-decoration: none;
}
.sol-footer p { margin: 0; color: var(--role-text-muted); font-size: 0.75rem; line-height: 18px; }
.sol-footer nav + p { padding-top: 16px; border-top: 1px solid var(--role-border-strong); }
.sol-footer .age-notice { margin-top: 8px; }

@media (hover: hover) {
  .sol .nav-login:hover, .sol-brand[href]:hover, .sol-footer nav a:hover { text-decoration: underline; }
  .sol-menu-button:hover { background: rgb(255 255 255 / 12%); }
  .sol-nav .primary a:hover, .sol .faq-index-group:hover, .sol .btn.secondary:hover { background: var(--role-surface-sunken); }
  .sol .btn:hover, .sol-nav .primary .btn:hover { background: var(--role-action-bg-pressed); }
}
