/* Shared layout for the secondary pages (sign-in, account, pricing, legal…), on top of jobolic-theme.css.
   Mobile first; one reading column, wider on desktop where a page needs it. */
[hidden], .hidden { display: none !important; }
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

.jb-page { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; max-width: 1180px; margin: 0 auto; }
.jb-main { flex: 1; width: 100%; max-width: 480px; margin: 0 auto; padding: 8px 24px 40px; display: flex; flex-direction: column; gap: 18px; }
.jb-main.is-wide { max-width: 760px; }
.jb-main.is-xwide { max-width: 1080px; }
.jb-stack { display: flex; flex-direction: column; gap: 12px; }
.jb-fields { display: grid; gap: 14px; }
.jb-note { margin: 0; font-size: 13px; line-height: 1.5; color: var(--jb-muted); }
.jb-text-btn { min-height: 44px; padding: 0; border: 0; background: none; font: inherit; font-size: 14px; font-weight: 700; color: var(--jb-gold-soft); cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.jb-text-btn:hover { color: var(--jb-gold); }
.jb-text-btn.is-quiet { color: var(--jb-muted); font-weight: 600; }
.jb-text-btn.is-quiet:hover { color: var(--jb-text); }
.jb-panel-title { margin: 0; font-family: var(--jb-serif); font-weight: 400; font-size: 28px; line-height: 1.1; }
.jb-panel-title em { font-style: italic; color: var(--jb-gold); }
[dir="rtl"] .jb-panel-title { font-family: 'Cairo', var(--jb-sans); font-weight: 700; font-size: 22px; }
.jb-h2 { margin: 0; font-size: 17px; font-weight: 800; line-height: 1.3; color: var(--jb-text); }
.jb-center { text-align: center; justify-content: center; }

/* Password field with a show / hide button */
.jb-pw { position: relative; }
.jb-pw .jb-input { padding-inline-end: 52px; }
.jb-pw-toggle {
  position: absolute; inset-inline-end: 3px; top: 50%; transform: translateY(-50%);
  width: 44px; height: 44px; border: 0; border-radius: 10px; background: none; color: var(--jb-muted);
  display: flex; align-items: center; justify-content: center; cursor: pointer;
}
.jb-pw-toggle:hover { color: var(--jb-gold-soft); }

/* Segmented choice (audience, language) */
.jb-seg { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 4px; padding: 4px; border: 1px solid var(--jb-line); border-radius: 16px; background: var(--jb-read); }
.jb-seg button { min-height: 40px; padding: 0 12px; border: 0; border-radius: 12px; background: none; color: var(--jb-muted); font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; }
.jb-seg button:hover { color: var(--jb-text); }
.jb-seg button[aria-pressed="true"] { background: var(--jb-raised); color: var(--jb-text); box-shadow: inset 0 0 0 1px var(--jb-gold-deep); }
.jb-seg.is-small { grid-auto-columns: auto; border-radius: 14px; }
.jb-seg.is-small button { min-height: 32px; padding: 0 10px; font-size: 13px; border-radius: 10px; }

/* Sign-in providers */
.jb-provider { width: 100%; height: 54px; padding: 0 20px; border-radius: 27px; display: flex; align-items: center; justify-content: center; gap: 12px; font: inherit; font-size: 16px; font-weight: 700; text-decoration: none; cursor: pointer; }
.jb-provider svg { width: 20px; height: 20px; flex-shrink: 0; }
.jb-provider.is-google { background: #F3EEE2; color: #0B1226; border: 0; }
.jb-provider.is-google:hover { background: #fff; }
.jb-provider.is-apple { background: #000; color: #fff; border: 1px solid #2A3B6B; }
.jb-provider.is-apple:hover { border-color: var(--jb-muted); }
.jb-or { display: flex; align-items: center; gap: 12px; font-size: 13px; font-weight: 600; color: var(--jb-muted); }
.jb-or::before, .jb-or::after { content: ""; flex: 1; height: 1px; background: var(--jb-line); }

/* Banners */
.jb-banner { padding: 12px 14px; border-radius: 14px; border: 1px solid var(--jb-line); background: var(--jb-read); display: flex; gap: 10px; align-items: flex-start; font-size: 14px; line-height: 1.45; color: var(--jb-body); }
.jb-banner > svg { flex-shrink: 0; margin-top: 1px; }
.jb-banner b { display: block; color: var(--jb-text); }
.jb-banner.is-gold { border-color: rgba(224,181,91,.45); background: rgba(224,181,91,.07); color: var(--jb-gold-soft); }
.jb-banner.is-coral { border-color: rgba(240,133,122,.45); background: rgba(240,133,122,.07); color: #F7B2AA; }
.jb-banner.is-ok { border-color: rgba(134,215,168,.45); background: rgba(134,215,168,.07); color: var(--jb-ok); }

/* Editorial rows (settings, lists) */
.jb-rows { display: flex; flex-direction: column; }
.jb-row { min-height: 64px; padding: 12px 0; display: flex; align-items: center; gap: 14px; border-bottom: 1px solid var(--jb-line); }
.jb-row:first-child { border-top: 1px solid var(--jb-line); }
.jb-row > .jb-grow { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.jb-row b { font-size: 15px; font-weight: 700; }
.jb-row small { font-size: 13px; color: var(--jb-muted); line-height: 1.4; }
.jb-btn-outline { min-height: 40px; padding: 0 16px; border-radius: 20px; border: 1px solid var(--jb-gold-deep); background: transparent; color: var(--jb-gold-soft); font: inherit; font-size: 14px; font-weight: 800; cursor: pointer; white-space: nowrap; text-decoration: none; display: inline-flex; align-items: center; justify-content: center; }
.jb-btn-outline:hover { border-color: var(--jb-gold); color: var(--jb-gold); }
.jb-btn-outline.is-coral { border-color: rgba(240,133,122,.5); color: var(--jb-coral); }
.jb-pill { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px; border-radius: 13px; font-size: 12px; font-weight: 800; }
.jb-pill.is-ok { background: rgba(134,215,168,.12); color: var(--jb-ok); }
.jb-pill.is-idle { background: rgba(157,169,204,.12); color: var(--jb-muted); }
.jb-pill.is-gold { background: rgba(224,181,91,.14); color: var(--jb-gold-soft); }

/* Long-form text (legal pages) */
.jb-prose { font-size: 15px; line-height: 1.65; color: var(--jb-body); }
.jb-prose h2 { margin: 32px 0 10px; font-family: var(--jb-serif); font-weight: 400; font-size: 28px; line-height: 1.15; color: var(--jb-text); }
.jb-prose h3 { margin: 22px 0 8px; font-size: 16px; font-weight: 800; color: var(--jb-text); }
.jb-prose p, .jb-prose ul, .jb-prose ol { margin: 0 0 12px; }
.jb-prose ul, .jb-prose ol { padding-inline-start: 22px; }
.jb-prose li { margin-bottom: 6px; }
.jb-prose a { color: var(--jb-gold-soft); text-decoration: underline; text-underline-offset: 3px; }
.jb-prose strong { color: var(--jb-text); }
[dir="rtl"] .jb-prose h2 { font-family: 'Cairo', var(--jb-sans); font-weight: 700; font-size: 22px; }

/* Header language switch */
.jb-header .jb-seg { flex-shrink: 0; }

@media (min-width: 960px) {
  .jb-header { padding: 28px 40px 0; }
  .jb-main { padding-top: 32px; }
  .jb-footer { padding-inline: 40px; }
}
.jb-pill:empty { display: none; }
a.jb-back, a.jb-quiet-link, a.jb-cta, a.jb-cta-ghost { text-decoration: none; }
.jb-seg a { min-height: 32px; padding: 0 10px; border-radius: 10px; display: flex; align-items: center; justify-content: center; color: var(--jb-muted); font-size: 13px; font-weight: 700; text-decoration: none; }
.jb-seg a:hover { color: var(--jb-text); }
.jb-seg a[aria-current="true"] { background: var(--jb-raised); color: var(--jb-text); box-shadow: inset 0 0 0 1px var(--jb-gold-deep); }
.jb-prose section { padding-bottom: 6px; }
.jb-prose section + section { border-top: 1px solid var(--jb-line); margin-top: 18px; }
.jb-prose .jb-kv { display: grid; gap: 12px; margin: 0 0 12px; padding: 14px 16px; border: 1px solid var(--jb-line); border-radius: 14px; background: var(--jb-read); font-size: 14px; }
.jb-prose .jb-k { display: block; font-size: 12px; font-weight: 700; color: var(--jb-muted); }
.jb-prose div > div { margin-bottom: 4px; }
@media (min-width: 640px) { .jb-prose .jb-kv { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
