/* ============================================================
   SubjectCoach IB Practice — indigo design system
   Aligned with the site-wide public look (Science / English):
   "Plus Jakarta Sans" typography + indigo (#5b4dd6 / #7c6df0)
   on a soft violet canvas. Success states stay green.
   ============================================================ */

.ib-shell {
    /* Core palette */
    --ib-indigo: #5b4dd6;
    --ib-indigo-light: #7c6df0;
    --ib-indigo-dark: #4a3fc0;
    --ib-indigo-deeper: #3a31a6;
    --ib-ink: #1d1147;          /* body strong / inputs */
    --ib-heading: #2e1065;      /* section headings */
    --ib-muted: #6b6189;        /* secondary text */
    --ib-muted-strong: #4a4470; /* small captions */
    --ib-border: #ece8f7;       /* hairlines */
    --ib-input-border: #d9d2f0;
    --ib-tint: #f0ecfb;         /* indigo pill tint */
    --ib-surface: #ffffff;
    --ib-bg: #faf8ff;           /* shell background */
    --ib-bg-muted: #f5f2ff;     /* alternating band */
    --ib-gold: #f4b740;
    --ib-success: #16a34a;
    --ib-success-ink: #15803d;
    --ib-success-tint: #ecfdf5;
    --ib-success-border: #a7e3c7;
    --ib-shadow: 0 8px 24px rgba(91, 77, 214, .08);
    --ib-shadow-lg: 0 14px 34px rgba(91, 77, 214, .14);
    --ib-grad: linear-gradient(135deg, #5b4dd6 0%, #7c6df0 100%);
    --ib-grad-hover: linear-gradient(135deg, #4a3fc0 0%, #6a5be8 100%);

    background: var(--ib-bg);
    color: var(--ib-ink);
    min-height: 70vh;
    font-family: "Plus Jakarta Sans", "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

.ib-shell *,
.ib-shell *::before,
.ib-shell *::after {
    box-sizing: border-box;
}

.ib-hero,
.ib-page-head,
.ib-band {
    padding: 42px max(22px, calc((100vw - 1180px) / 2));
}

.ib-hero {
    background: linear-gradient(135deg, #2e1065 0%, #4c1d95 52%, #5b4dd6 100%);
    color: #ffffff;
    position: relative;
    overflow: hidden;
}

.ib-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(900px 360px at 88% -10%, rgba(124, 109, 240, .55), transparent 60%),
        radial-gradient(620px 300px at 0% 120%, rgba(244, 183, 64, .16), transparent 60%);
    pointer-events: none;
}

.ib-hero__content {
    position: relative;
    max-width: 820px;
}

.ib-kicker {
    margin: 0 0 10px;
    color: var(--ib-indigo);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.ib-hero .ib-kicker {
    color: #d8d2ff;
}

.ib-hero h1,
.ib-page-head h1 {
    margin: 0;
    max-width: 900px;
    font-size: 40px;
    line-height: 1.12;
    font-weight: 800;
    letter-spacing: -.01em;
}

.ib-lead,
.ib-page-head p {
    max-width: 820px;
    margin: 16px 0 0;
    font-size: 18px;
    line-height: 1.65;
}

.ib-page-head p {
    color: var(--ib-muted);
}

.ib-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 26px;
}

/* ── Breadcrumb — back-navigation up the course / topic / skill trail ── */
.ib-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    margin-bottom: 16px;
    font-size: 13.5px;
    font-weight: 700;
    line-height: 1.5;
}

.ib-breadcrumb a {
    color: var(--ib-muted);
    text-decoration: none;
    transition: color .15s ease;
}

.ib-breadcrumb a:hover,
.ib-breadcrumb a:focus {
    color: var(--ib-indigo);
    text-decoration: none;
}

.ib-breadcrumb [aria-current="page"] {
    color: var(--ib-ink);
}

.ib-breadcrumb > * + *::before {
    content: "\203A";
    margin: 0 9px;
    color: #b9b0d6;
    font-weight: 600;
}

/* On the dark hero, lighten the breadcrumb for contrast. */
.ib-hero .ib-breadcrumb a {
    color: rgba(255, 255, 255, 0.78);
}
.ib-hero .ib-breadcrumb a:hover,
.ib-hero .ib-breadcrumb a:focus {
    color: #ffffff;
}
.ib-hero .ib-breadcrumb [aria-current="page"] {
    color: #ffffff;
}
.ib-hero .ib-breadcrumb > * + *::before {
    color: rgba(255, 255, 255, 0.5);
}

.ib-btn {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 11px 20px;
    border-radius: 999px;
    font-weight: 800;
    text-decoration: none;
    transition: transform .15s ease, background-color .15s ease, color .15s ease, border-color .15s ease, box-shadow .15s ease;
}

/* Defensive: keep text legible on hover/focus/active regardless of any
   inherited global a:hover rule that would otherwise darken it. */
.ib-btn:hover,
.ib-btn:focus,
.ib-btn:active,
.ib-btn:visited {
    text-decoration: none;
}

.ib-btn-primary {
    background: #ffffff;
    color: var(--ib-indigo-dark);
    box-shadow: 0 8px 22px rgba(15, 5, 50, .22);
}
.ib-btn-primary:hover,
.ib-btn-primary:focus {
    background: #f3f0ff;
    color: var(--ib-indigo-deeper);
    transform: translateY(-1px);
}

.ib-btn-secondary {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.55);
    color: #ffffff;
}
.ib-btn-secondary:hover,
.ib-btn-secondary:focus {
    background: rgba(255, 255, 255, 0.18);
    border-color: rgba(255, 255, 255, 0.9);
    color: #ffffff;
}

.ib-band {
    background: var(--ib-surface);
}

.ib-band-muted {
    background: var(--ib-bg-muted);
}

.ib-section-head {
    max-width: 760px;
    margin-bottom: 22px;
}

.ib-section-head h2,
.ib-feature-grid h2,
.ib-empty-state h2 {
    margin: 0 0 8px;
    color: var(--ib-heading);
    font-size: 25px;
    font-weight: 800;
    letter-spacing: -.01em;
}

.ib-section-head p,
.ib-feature-grid p,
.ib-empty-state p {
    margin: 0;
    color: var(--ib-muted);
    line-height: 1.65;
}

.ib-course-grid,
.ib-feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px;
}

.ib-course-card,
.ib-feature-grid > div,
.ib-empty-state {
    position: relative;
    border: 1px solid var(--ib-border);
    border-radius: 16px;
    background: var(--ib-surface);
    padding: 22px;
    box-shadow: var(--ib-shadow);
}

.ib-course-card {
    overflow: hidden;
    color: inherit;
    text-decoration: none;
    transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}

.ib-course-card::before {
    content: '';
    position: absolute;
    inset: 0 0 auto 0;
    height: 4px;
    background: var(--ib-grad);
    opacity: 0;
    transition: opacity .2s ease;
}

.ib-course-card:hover {
    transform: translateY(-3px);
    border-color: #d8cffb;
    box-shadow: var(--ib-shadow-lg);
    text-decoration: none;
}

.ib-course-card:hover::before {
    opacity: 1;
}

.ib-course-card.is-placeholder {
    opacity: .85;
}

.ib-course-card span {
    display: inline-flex;
    margin-bottom: 12px;
    padding: 5px 11px;
    border-radius: 999px;
    background: var(--ib-tint);
    color: var(--ib-indigo);
    font-size: 12px;
    font-weight: 800;
}

.ib-course-card h3 {
    margin: 0 0 10px;
    color: var(--ib-heading);
    font-size: 20px;
    line-height: 1.25;
    font-weight: 800;
}

.ib-course-card p {
    margin: 0;
    color: var(--ib-muted);
    line-height: 1.55;
}

.ib-course-card small {
    display: block;
    margin-top: 12px;
    color: var(--ib-muted-strong);
    font-size: 13px;
    font-weight: 700;
    line-height: 1.5;
}

.ib-timeline {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 14px;
}

.ib-timeline > div {
    border-left: 4px solid var(--ib-indigo);
    border-radius: 12px;
    background: var(--ib-surface);
    padding: 18px 18px 18px 20px;
    box-shadow: var(--ib-shadow);
}

.ib-timeline span {
    display: inline-flex;
    margin-bottom: 10px;
    color: var(--ib-indigo);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.ib-timeline h3,
.ib-callout h2 {
    margin: 0 0 8px;
    color: var(--ib-heading);
    font-size: 20px;
    line-height: 1.3;
    font-weight: 800;
}

.ib-timeline p,
.ib-callout p {
    margin: 0;
    color: var(--ib-muted);
    line-height: 1.65;
}

.ib-faq-grid {
    display: grid;
    gap: 12px;
}

.ib-faq-grid details {
    border: 1px solid var(--ib-border);
    border-radius: 12px;
    background: var(--ib-surface);
    padding: 16px 18px;
    box-shadow: var(--ib-shadow);
}

.ib-faq-grid summary {
    cursor: pointer;
    color: var(--ib-heading);
    font-weight: 800;
}

.ib-faq-grid p {
    margin: 10px 0 0;
    color: var(--ib-muted);
    line-height: 1.65;
}

.ib-source-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 12px;
}

.ib-source-grid a {
    display: grid;
    gap: 6px;
    border: 1px solid var(--ib-border);
    border-radius: 12px;
    background: var(--ib-surface);
    color: inherit;
    padding: 16px;
    text-decoration: none;
    box-shadow: var(--ib-shadow);
    transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease;
}

.ib-source-grid a:hover {
    border-color: var(--ib-indigo);
    box-shadow: var(--ib-shadow-lg);
    transform: translateY(-2px);
    text-decoration: none;
}

.ib-source-grid strong {
    color: var(--ib-heading);
}

.ib-source-grid span {
    color: var(--ib-muted);
    line-height: 1.5;
}

.ib-guide-list {
    display: grid;
    gap: 12px;
}

.ib-guide-list > div {
    display: grid;
    grid-template-columns: minmax(190px, 285px) 1fr;
    gap: 18px;
    border: 1px solid var(--ib-border);
    border-radius: 12px;
    background: var(--ib-surface);
    padding: 18px;
    box-shadow: var(--ib-shadow);
}

.ib-guide-list strong {
    color: var(--ib-heading);
    line-height: 1.45;
}

.ib-guide-list span {
    color: var(--ib-muted);
    line-height: 1.62;
}

.ib-pathway-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 14px;
}

.ib-pathway-grid > div {
    border: 1px solid var(--ib-border);
    border-radius: 12px;
    background: var(--ib-surface);
    padding: 18px;
    box-shadow: var(--ib-shadow);
}

.ib-pathway-grid h3 {
    margin: 0 0 8px;
    color: var(--ib-heading);
    font-size: 18px;
    line-height: 1.35;
    font-weight: 800;
}

.ib-pathway-grid p {
    margin: 0;
    color: var(--ib-muted);
    line-height: 1.62;
}

.ib-guided-pathway-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 16px;
}

.ib-guided-pathway {
    display: flex;
    flex-direction: column;
    min-width: 0;
    border: 1px solid var(--ib-border);
    border-radius: 16px;
    background: var(--ib-surface);
    padding: 20px;
    box-shadow: var(--ib-shadow);
}

.ib-guided-pathway__head span {
    display: inline-flex;
    margin-bottom: 8px;
    color: var(--ib-indigo);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.ib-guided-pathway__head h3 {
    margin: 0 0 8px;
    color: var(--ib-heading);
    font-size: 19px;
    line-height: 1.3;
    font-weight: 800;
}

.ib-guided-pathway__head p,
.ib-guided-pathway__checkpoint {
    margin: 0;
    color: var(--ib-muted);
    line-height: 1.58;
}

.ib-guided-pathway__steps {
    display: grid;
    gap: 8px;
    margin: 16px 0;
    padding: 0;
    list-style: none;
    counter-reset: pathway-step;
}

.ib-guided-pathway__steps li {
    counter-increment: pathway-step;
}

.ib-guided-pathway__steps a {
    position: relative;
    display: grid;
    gap: 4px;
    min-height: 62px;
    padding: 11px 12px 11px 50px;
    border: 1px solid var(--ib-border);
    border-radius: 10px;
    color: inherit;
    text-decoration: none;
    transition: border-color .15s ease, box-shadow .15s ease, background-color .15s ease;
}

.ib-guided-pathway__steps a::before {
    content: counter(pathway-step);
    position: absolute;
    left: 12px;
    top: 11px;
    display: grid;
    place-items: center;
    width: 28px;
    height: 28px;
    border-radius: 9px;
    background: var(--ib-grad);
    color: #ffffff;
    font-size: 13px;
    font-weight: 800;
    box-shadow: 0 4px 10px rgba(91, 77, 214, .32);
}

.ib-guided-pathway__steps a:hover,
.ib-guided-pathway__steps a:focus {
    border-color: #d2c8f8;
    background: var(--ib-bg);
    box-shadow: var(--ib-shadow);
    text-decoration: none;
}

.ib-guided-pathway__steps strong {
    color: var(--ib-heading);
    font-size: 14px;
    line-height: 1.35;
}

.ib-guided-pathway__steps span {
    color: var(--ib-muted);
    font-size: 12px;
    font-weight: 700;
    line-height: 1.35;
}

.ib-guided-pathway__checkpoint {
    margin-top: auto;
    padding-top: 2px;
    color: var(--ib-muted-strong);
    font-size: 13px;
    font-weight: 700;
}

.ib-guided-pathway__actions,
.ib-assignment-success__actions,
.ib-assignment-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    margin-top: 14px;
}

.ib-pathway-start,
.ib-pathway-assign {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    align-self: flex-start;
    min-height: 42px;
    padding: 10px 16px;
    border-radius: 999px;
    background: var(--ib-grad);
    color: #ffffff;
    font-weight: 800;
    text-decoration: none;
    box-shadow: 0 8px 20px rgba(91, 77, 214, .26);
    transition: transform .15s ease, box-shadow .15s ease, background .15s ease, color .15s ease, border-color .15s ease;
}

.ib-pathway-start:hover,
.ib-pathway-start:focus,
.ib-pathway-start:visited,
.ib-pathway-assign:hover,
.ib-pathway-assign:focus,
.ib-pathway-assign:visited {
    color: #ffffff;
    text-decoration: none;
}

.ib-pathway-start:hover,
.ib-pathway-start:focus {
    background: var(--ib-grad-hover);
    transform: translateY(-1px);
}

.ib-pathway-assign {
    border: 1px solid var(--ib-input-border);
    background: var(--ib-surface);
    color: var(--ib-indigo);
    box-shadow: none;
}

.ib-pathway-assign:hover,
.ib-pathway-assign:focus {
    border-color: var(--ib-indigo);
    background: var(--ib-tint);
    color: var(--ib-indigo-dark);
}

.ib-assignment-layout {
    display: grid;
    grid-template-columns: minmax(280px, 1fr) minmax(320px, 1.1fr);
    gap: 18px;
    align-items: start;
}

.ib-assignment-panel,
.ib-assignment-success,
.ib-assignment-errors {
    border: 1px solid var(--ib-border);
    border-radius: 14px;
    background: var(--ib-surface);
    padding: 20px;
    box-shadow: var(--ib-shadow);
}

.ib-assignment-panel__head h2,
.ib-assignment-success h2 {
    margin: 0 0 8px;
    color: var(--ib-heading);
    font-size: 22px;
    line-height: 1.25;
    font-weight: 800;
}

.ib-assignment-panel__head p,
.ib-assignment-success p,
.ib-assignment-errors p {
    margin: 0;
    color: var(--ib-muted);
    line-height: 1.6;
}

.ib-assignment-errors {
    margin-bottom: 18px;
    border-color: #fecaca;
    background: #fff7f7;
}

.ib-assignment-success {
    margin-bottom: 18px;
    border-color: var(--ib-success-border);
    background: var(--ib-success-tint);
}

.ib-assignment-skill-list,
.ib-assignment-students {
    display: grid;
    gap: 10px;
    margin-top: 16px;
}

.ib-assignment-skill-list label,
.ib-assignment-students label {
    display: grid;
    grid-template-columns: 22px 1fr;
    gap: 10px;
    align-items: start;
    min-width: 0;
    margin: 0;
    border: 1px solid var(--ib-border);
    border-radius: 10px;
    background: var(--ib-bg);
    padding: 12px;
    transition: border-color .15s ease, background .15s ease;
}

.ib-assignment-skill-list label:hover,
.ib-assignment-students label:hover {
    border-color: #d2c8f8;
    background: var(--ib-bg-muted);
}

.ib-assignment-skill-list input,
.ib-assignment-students input {
    margin-top: 3px;
    accent-color: var(--ib-indigo);
}

.ib-assignment-skill-list strong {
    display: block;
    color: var(--ib-heading);
    font-size: 14px;
    line-height: 1.35;
}

.ib-assignment-skill-list em {
    display: block;
    margin-top: 3px;
    color: var(--ib-muted);
    font-size: 12px;
    font-style: normal;
    font-weight: 700;
    line-height: 1.35;
}

.ib-assignment-field {
    display: grid;
    gap: 6px;
    margin-top: 16px;
}

.ib-assignment-field span,
.ib-assignment-students legend {
    color: var(--ib-muted-strong);
    font-size: 13px;
    font-weight: 800;
}

.ib-assignment-field select,
.ib-assignment-field input[type="date"] {
    min-height: 44px;
    width: 100%;
    border: 1px solid var(--ib-input-border);
    border-radius: 10px;
    background: var(--ib-surface);
    color: var(--ib-ink);
    padding: 8px 10px;
}

.ib-assignment-field select:focus,
.ib-assignment-field input[type="date"]:focus {
    outline: none;
    border-color: var(--ib-indigo-light);
    box-shadow: 0 0 0 3px rgba(124, 109, 240, .18);
}

.ib-assignment-students {
    max-height: 310px;
    overflow: auto;
    border: 0;
    padding: 0;
}

.ib-assignment-students legend {
    margin-bottom: 2px;
}

.ib-assignment-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.ib-assignment-form .ib-next-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.ib-callout {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    border: 1px solid var(--ib-border);
    border-radius: 16px;
    background: linear-gradient(135deg, #f5f2ff 0%, #ece8fb 100%);
    padding: 24px;
}

.ib-callout > div {
    max-width: 760px;
}

.ib-btn-dark {
    background: var(--ib-grad);
    color: #ffffff;
    box-shadow: 0 8px 20px rgba(91, 77, 214, .26);
}
.ib-btn-dark:hover,
.ib-btn-dark:focus {
    background: var(--ib-grad-hover);
    color: #ffffff;
    transform: translateY(-1px);
}

/* ── Skill / topic menu — numbered-badge list (mirrors /online-practice) ── */
.ib-topic-list {
    display: grid;
    gap: 10px;
    counter-reset: ib-skill;
}

.ib-topic-row {
    display: grid;
    grid-template-columns: 2.6em 1fr;
    grid-template-rows: auto auto;
    align-items: start;
    column-gap: 16px;
    row-gap: 3px;
    padding: 15px 18px;
    border: 1px solid var(--ib-border);
    border-radius: 12px;
    background: var(--ib-surface);
    color: inherit;
    text-decoration: none;
    box-shadow: var(--ib-shadow);
    counter-increment: ib-skill;
    transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease;
}

.ib-topic-row::before {
    content: counter(ib-skill);
    grid-column: 1;
    grid-row: 1 / span 2;
    align-self: center;
    display: grid;
    place-items: center;
    width: 2.4em;
    height: 2.4em;
    border-radius: 10px;
    background: var(--ib-grad);
    color: #ffffff;
    font-size: 14px;
    font-weight: 800;
    box-shadow: 0 4px 12px rgba(91, 77, 214, .3);
    transition: box-shadow .16s ease, transform .16s ease;
}

.ib-topic-row:hover {
    border-color: #d2c8f8;
    box-shadow: var(--ib-shadow-lg);
    transform: translateY(-2px);
    text-decoration: none;
}

.ib-topic-row:hover::before {
    box-shadow: 0 6px 16px rgba(91, 77, 214, .42);
    transform: scale(1.04);
}

.ib-topic-row strong {
    grid-column: 2;
    grid-row: 1;
    align-self: center;
    color: var(--ib-heading);
    font-size: 15px;
    line-height: 1.35;
}

.ib-topic-row span {
    grid-column: 2;
    grid-row: 2;
    color: var(--ib-muted);
    font-size: 13.5px;
    line-height: 1.5;
}

/* A row with no description: keep the title vertically centred on the badge. */
.ib-topic-row strong:only-child {
    grid-row: 1 / span 2;
}

.ib-practice-stage {
    position: relative;
}

.ib-practice-stage--loading {
    opacity: .72;
    pointer-events: none;
}

.ib-seed-card {
    border: 1px solid var(--ib-border);
    border-radius: 16px;
    background: var(--ib-surface);
    padding: 24px;
    box-shadow: var(--ib-shadow);
}

.ib-seed-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 14px;
}

.ib-seed-meta span {
    border-radius: 999px;
    background: var(--ib-tint);
    color: var(--ib-indigo);
    font-size: 12px;
    font-weight: 800;
    padding: 5px 11px;
}

.ib-seed-card h2 {
    margin: 0 0 12px;
    color: var(--ib-heading);
    font-size: 24px;
    font-weight: 800;
}

.ib-seed-card h3 {
    margin: 22px 0 8px;
    color: var(--ib-heading);
    font-size: 17px;
    font-weight: 800;
}

.ib-practice-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(360px, 560px);
    gap: 22px;
    align-items: start;
}

.ib-practice-layout-single {
    grid-template-columns: 1fr;
}

.ib-practice-layout--source-first {
    grid-template-columns: minmax(520px, 1.1fr) minmax(0, .9fr);
}

.ib-practice-layout--source-first .ib-graph-panel {
    grid-column: 1;
    grid-row: 1;
}

.ib-practice-layout--source-first .ib-practice-main {
    grid-column: 2;
    grid-row: 1;
}

.ib-question {
    color: var(--ib-ink);
    font-size: 18px;
    line-height: 1.65;
}

.ib-answer-form {
    margin-top: 22px;
    border-top: 1px solid var(--ib-border);
    padding-top: 18px;
}

.ib-answer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 14px;
}

.ib-answer-grid label {
    display: grid;
    gap: 6px;
    margin: 0;
    min-width: 0;
}

.ib-answer-grid span {
    color: var(--ib-ink);
    font-size: 13px;
    font-weight: 800;
}

.ib-answer-grid input,
.ib-answer-grid select {
    box-sizing: border-box;
    width: 100%;
    min-width: 0;
    min-height: 44px;
    border: 1px solid var(--ib-input-border);
    border-radius: 10px;
    padding: 9px 11px;
    background: var(--ib-surface);
    color: var(--ib-ink);
    transition: border-color .15s ease, box-shadow .15s ease;
}

.ib-answer-grid input:focus,
.ib-answer-grid select:focus {
    outline: none;
    border-color: var(--ib-indigo-light);
    box-shadow: 0 0 0 3px rgba(124, 109, 240, .18);
}

.ib-answer-grid input::placeholder {
    font-family: "Plus Jakarta Sans", "Segoe UI", Inter, Arial, sans-serif;
    font-size: 10px;
    font-weight: 400;
    color: #9a93b3;
}

.ib-answer-grid__wide {
    grid-column: 1 / -1;
}

.ib-practice-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 16px;
}

.ib-submit-btn,
.ib-next-btn {
    min-height: 44px;
    border: 0;
    border-radius: 999px;
    font-weight: 800;
    padding: 11px 20px;
    transition: transform .15s ease, background .15s ease, box-shadow .15s ease, color .15s ease, border-color .15s ease;
}

.ib-submit-btn {
    background: var(--ib-grad);
    color: #ffffff;
    box-shadow: 0 8px 20px rgba(91, 77, 214, .26);
}

.ib-submit-btn:hover:not(:disabled) {
    background: var(--ib-grad-hover);
    transform: translateY(-1px);
}

.ib-next-btn {
    border: 1px solid var(--ib-input-border);
    background: var(--ib-surface);
    color: var(--ib-indigo-dark);
}

.ib-next-btn:hover:not(:disabled) {
    border-color: var(--ib-indigo);
    background: var(--ib-tint);
}

.ib-submit-btn:disabled,
.ib-next-btn:disabled {
    cursor: wait;
}

.ib-next-btn:disabled {
    background: var(--ib-bg);
    border-color: var(--ib-border);
    color: #9a93b3;
    cursor: not-allowed;
    opacity: 0.72;
}

.ib-practice-stage--loading .ib-next-btn:disabled {
    cursor: wait;
}

.ib-practice-mode-switch {
    display: inline-flex;
    gap: 4px;
    margin-top: 18px;
    border: 1px solid var(--ib-input-border);
    border-radius: 999px;
    background: var(--ib-bg);
    padding: 4px;
}

.ib-practice-mode-switch button {
    min-height: 36px;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: var(--ib-muted-strong);
    font-weight: 800;
    padding: 7px 14px;
    transition: background .15s ease, color .15s ease, box-shadow .15s ease;
}

.ib-practice-mode-switch button.is-active {
    background: var(--ib-surface);
    color: var(--ib-indigo-dark);
    box-shadow: 0 4px 12px rgba(91, 77, 214, .12);
}

.ib-practice-mode-panel[hidden] {
    display: none !important;
}

.ib-worked-practice {
    margin-top: 18px;
    border: 1px solid #d3cbf3;
    border-radius: 14px;
    background: #f7f5ff;
    padding: 16px;
}

.ib-worked-practice__head {
    margin-bottom: 12px;
}

.ib-worked-practice__head h3 {
    margin: 0 0 4px;
    color: var(--ib-heading);
    font-size: 18px;
}

.ib-worked-practice__head p {
    margin: 0;
    color: var(--ib-muted);
    font-size: 13px;
    line-height: 1.5;
}

.ib-worked-steps {
    display: grid;
    gap: 10px;
}

.ib-worked-step {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 12px;
    margin: 0;
    border: 1px solid var(--ib-border);
    border-radius: 12px;
    background: var(--ib-surface);
    padding: 12px;
}

.ib-worked-step__number {
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    border-radius: 10px;
    background: var(--ib-grad);
    color: #ffffff;
    font-size: 13px;
    font-weight: 800;
}

.ib-worked-step__body {
    display: grid;
    gap: 6px;
    min-width: 0;
}

.ib-worked-step__body strong {
    color: var(--ib-heading);
    line-height: 1.35;
}

.ib-worked-step__body em {
    color: var(--ib-muted);
    font-size: 13px;
    font-style: normal;
    line-height: 1.45;
}

.ib-worked-step__body input {
    width: 100%;
    min-width: 0;
    min-height: 42px;
    border: 1px solid var(--ib-input-border);
    border-radius: 10px;
    background: var(--ib-surface);
    color: var(--ib-ink);
    padding: 9px 11px;
}

.ib-worked-step__body input:focus {
    outline: none;
    border-color: var(--ib-indigo-light);
    box-shadow: 0 0 0 3px rgba(124, 109, 240, .18);
}

.ib-latex-input-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
    align-items: stretch;
}

.ib-latex-builder-btn {
    min-height: 42px;
    border: 1px solid var(--ib-input-border);
    border-radius: 10px;
    background: var(--ib-surface);
    color: var(--ib-indigo-dark);
    font-size: 12px;
    font-weight: 800;
    padding: 8px 11px;
    white-space: nowrap;
    transition: border-color .15s ease, background .15s ease, color .15s ease;
}

.ib-latex-builder-btn:hover,
.ib-latex-builder-btn:focus {
    border-color: var(--ib-indigo);
    background: var(--ib-tint);
    color: var(--ib-indigo-dark);
}

.ib-latex-preview {
    min-height: 32px;
    border: 1px dashed #d7cef2;
    border-radius: 10px;
    background: #fbfaff;
    color: var(--ib-ink);
    padding: 7px 10px;
    overflow-wrap: anywhere;
    line-height: 1.35;
}

.ib-latex-preview.is-empty {
    color: #9a93b3;
}

.ib-worked-result {
    margin-top: 14px;
    border-radius: 12px;
    padding: 14px;
}

.ib-worked-result--correct {
    border: 1px solid var(--ib-success-border);
    background: var(--ib-success-tint);
}

.ib-worked-result--partial {
    border: 1px solid #fed7aa;
    background: #fff7ed;
}

.ib-worked-result__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
}

.ib-worked-result__head h4 {
    margin: 0;
    color: var(--ib-heading);
    font-size: 16px;
    font-weight: 800;
}

.ib-worked-result__head span {
    border-radius: 999px;
    background: #ffffff;
    color: var(--ib-indigo-dark);
    font-size: 12px;
    font-weight: 800;
    padding: 5px 9px;
    white-space: nowrap;
}

.ib-worked-checks {
    display: grid;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.ib-worked-check {
    border: 1px solid rgba(255, 255, 255, .75);
    border-radius: 10px;
    background: #ffffff;
    padding: 10px 12px;
}

.ib-worked-check__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.ib-worked-check__top strong {
    color: var(--ib-ink);
}

.ib-worked-check__top span {
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
    padding: 3px 8px;
}

.ib-worked-check.is-correct .ib-worked-check__top span {
    background: var(--ib-success-tint);
    color: var(--ib-success-ink);
}

.ib-worked-check.is-review .ib-worked-check__top span {
    background: #fffbeb;
    color: #92400e;
}

.ib-worked-check p {
    margin: 6px 0 0;
    color: var(--ib-muted-strong);
    line-height: 1.45;
}

.ib-worked-check__detail {
    display: grid;
    gap: 3px;
    margin-top: 7px;
    color: var(--ib-muted-strong);
    font-size: 13px;
    line-height: 1.45;
}

.ib-latex-builder-open {
    overflow: hidden;
}

.ib-latex-builder-modal[hidden] {
    display: none !important;
}

.ib-latex-builder-modal {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: grid;
    place-items: center;
    padding: 18px;
}

.ib-latex-builder-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(21, 13, 55, .48);
}

.ib-latex-builder {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 14px;
    width: min(760px, 100%);
    max-height: calc(100vh - 36px);
    overflow: auto;
    border: 1px solid #d3cbf3;
    border-radius: 16px;
    background: var(--ib-surface, #ffffff);
    color: var(--ib-ink, #1d1147);
    box-shadow: 0 24px 70px rgba(21, 13, 55, .28);
    padding: 18px;
}

.ib-latex-builder__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.ib-latex-builder__head h3 {
    margin: 0 0 4px;
    color: var(--ib-heading, #2e1065);
    font-size: 20px;
    font-weight: 800;
}

.ib-latex-builder__head p {
    margin: 0;
    color: var(--ib-muted, #6b6189);
    font-size: 13px;
    line-height: 1.45;
}

.ib-latex-builder__head > button {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    flex: 0 0 auto;
    border: 1px solid var(--ib-input-border, #d9d2f0);
    border-radius: 999px;
    background: var(--ib-surface, #ffffff);
    color: var(--ib-heading, #2e1065);
    font-size: 22px;
    line-height: 1;
}

.ib-latex-builder__field {
    display: grid;
    gap: 8px;
}

.ib-latex-builder__field math-field,
.ib-latex-builder__field textarea {
    width: 100%;
    min-height: 84px;
    border: 1px solid var(--ib-input-border, #d9d2f0);
    border-radius: 12px;
    background: #fbfaff;
    color: var(--ib-ink, #1d1147);
    padding: 12px;
    font: inherit;
}

.ib-latex-builder__field math-field:focus,
.ib-latex-builder__field textarea:focus,
.ib-latex-builder__raw input:focus {
    outline: none;
    border-color: var(--ib-indigo-light, #7c6df0);
    box-shadow: 0 0 0 3px rgba(124, 109, 240, .18);
}

.ib-latex-builder__templates {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.ib-latex-builder__templates button {
    min-height: 36px;
    border: 1px solid var(--ib-input-border, #d9d2f0);
    border-radius: 999px;
    background: var(--ib-bg, #faf8ff);
    color: var(--ib-indigo-dark, #4a3fc0);
    font-size: 12px;
    font-weight: 800;
    padding: 7px 12px;
}

.ib-latex-builder__templates button:hover,
.ib-latex-builder__templates button:focus {
    border-color: var(--ib-indigo, #5b4dd6);
    background: var(--ib-tint, #f0ecfb);
}

.ib-latex-builder__raw {
    display: grid;
    gap: 6px;
    margin: 0;
}

.ib-latex-builder__raw span {
    color: var(--ib-ink, #1d1147);
    font-size: 13px;
    font-weight: 800;
}

.ib-latex-builder__raw input {
    width: 100%;
    min-height: 42px;
    border: 1px solid var(--ib-input-border, #d9d2f0);
    border-radius: 10px;
    background: var(--ib-surface, #ffffff);
    color: var(--ib-ink, #1d1147);
    padding: 9px 11px;
}

.ib-latex-builder__actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 10px;
}

.ib-ajax-error {
    margin-top: 18px;
    border: 1px solid #fecaca;
    border-radius: 10px;
    background: #fef2f2;
    color: #991b1b;
    padding: 12px 14px;
    font-weight: 700;
}

.ib-result {
    margin-top: 18px;
    border-radius: 12px;
    padding: 16px;
}

.ib-result h3 {
    margin-top: 0;
    font-weight: 800;
}

.ib-result-correct {
    background: var(--ib-success-tint);
    border: 1px solid var(--ib-success-border);
}

.ib-result-correct h3 {
    color: var(--ib-success-ink);
}

.ib-result-partial {
    background: #fff7ed;
    border: 1px solid #fed7aa;
}

.ib-result-partial h3 {
    color: #b45309;
}

.ib-graph-panel {
    position: sticky;
    top: 18px;
    border: 1px solid var(--ib-border);
    border-radius: 14px;
    background: linear-gradient(180deg, #ffffff 0%, #faf8ff 100%);
    padding: 14px;
    box-shadow: var(--ib-shadow-lg);
}

.ib-graph-panel__head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
}

.ib-graph-panel__head h3 {
    margin: 0;
    color: var(--ib-heading);
    font-size: 16px;
    font-weight: 800;
}

.ib-graph-panel__head span {
    color: var(--ib-muted);
    font-size: 12px;
    font-weight: 700;
}

.ib-graph-panel--source-first {
    background: var(--ib-surface);
}

.ib-graph-svg {
    display: block;
    width: 100%;
    height: auto;
}

.ib-solution-steps,
.ib-compact-list {
    margin: 0;
    padding-left: 22px;
    color: var(--ib-muted-strong);
    line-height: 1.65;
}

.ib-solution-steps li + li,
.ib-compact-list li + li {
    margin-top: 6px;
}

.ib-solution-steps li > strong,
.ib-solution-text {
    display: block;
}

.ib-solution-steps li > strong {
    color: var(--ib-ink);
}

.ib-feedback-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px;
    margin-top: 8px;
}

.ib-ai-feedback {
    margin-top: 18px;
    border: 1px solid #d3cbf3;
    border-radius: 14px;
    background: #f7f5ff;
    padding: 16px;
}

.ib-ai-feedback__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 12px;
}

.ib-ai-feedback__head h3 {
    margin: 0 0 4px;
    color: var(--ib-heading);
    font-size: 18px;
    font-weight: 800;
}

.ib-ai-feedback__head p {
    margin: 0;
    color: var(--ib-muted);
    font-size: 13px;
    line-height: 1.5;
}

.ib-ai-feedback__head span {
    flex: 0 0 auto;
    border: 1px solid #cdc2f2;
    border-radius: 999px;
    background: #ffffff;
    color: var(--ib-indigo-dark);
    font-size: 12px;
    font-weight: 800;
    padding: 6px 10px;
}

.ib-ai-feedback label {
    display: block;
}

.ib-ai-feedback label span {
    display: block;
    margin-bottom: 6px;
    color: var(--ib-ink);
    font-weight: 800;
}

.ib-ai-feedback textarea {
    width: 100%;
    min-height: 130px;
    resize: vertical;
    border: 1px solid var(--ib-input-border);
    border-radius: 10px;
    padding: 12px;
    color: var(--ib-ink);
    line-height: 1.55;
    font-family: inherit;
}

.ib-ai-feedback textarea:focus {
    outline: none;
    border-color: var(--ib-indigo-light);
    box-shadow: 0 0 0 3px rgba(124, 109, 240, .18);
}

.ib-ai-feedback__actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 10px;
}

.ib-ai-feedback__actions span {
    color: var(--ib-muted);
    font-size: 13px;
    font-weight: 700;
}

.ib-ai-feedback__actions button {
    border: 0;
    border-radius: 999px;
    background: var(--ib-grad);
    color: #ffffff;
    cursor: pointer;
    font-weight: 800;
    padding: 11px 18px;
    box-shadow: 0 8px 20px rgba(91, 77, 214, .26);
    transition: background .15s ease, transform .15s ease;
}

.ib-ai-feedback__actions button:hover:not(:disabled) {
    background: var(--ib-grad-hover);
    transform: translateY(-1px);
}

.ib-ai-feedback__actions button:disabled {
    cursor: not-allowed;
    opacity: .55;
}

.ib-ai-feedback__result {
    margin-top: 14px;
    padding-top: 0;
    color: #3c3460;
    line-height: 1.6;
}

.ib-ai-feedback__result > p {
    margin: 0;
    border-top: 1px solid #ded6f5;
    padding-top: 14px;
}

.ib-ai-report {
    overflow: hidden;
    border: 1px solid #d3cbf3;
    border-radius: 14px;
    background: #ffffff;
}

.ib-ai-report__top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    border-bottom: 1px solid #e2dbf6;
    background: #f3f0ff;
    padding: 14px 16px;
}

.ib-ai-report__eyebrow {
    display: block;
    margin-bottom: 4px;
    color: var(--ib-indigo);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.ib-ai-report__score {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 8px;
    color: var(--ib-heading);
}

.ib-ai-report__score strong {
    font-size: 28px;
    line-height: 1;
}

.ib-ai-report__score span {
    color: var(--ib-muted-strong);
    font-size: 13px;
    font-weight: 800;
}

.ib-ai-report__badge,
.ib-ai-criterion__score {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
    white-space: nowrap;
}

.ib-ai-report__badge {
    border: 1px solid #cdc2f2;
    background: #ffffff;
    color: var(--ib-indigo-dark);
    padding: 6px 10px;
}

.ib-ai-report__body {
    display: grid;
    gap: 14px;
    padding: 14px 16px 16px;
}

.ib-ai-report__section {
    border-top: 1px solid #ece7f8;
    padding-top: 14px;
}

.ib-ai-report__section:first-child {
    border-top: 0;
    padding-top: 0;
}

.ib-ai-report__section h4 {
    margin: 0 0 6px;
    color: var(--ib-heading);
    font-size: 15px;
    font-weight: 800;
}

.ib-ai-report__section p {
    margin: 0;
    color: #3c3460;
}

.ib-ai-report__twocol {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.ib-ai-report__twocol .ib-ai-report__section {
    border-top: 1px solid #ece7f8;
}

.ib-ai-criteria {
    display: grid;
}

.ib-ai-criterion {
    display: grid;
    grid-template-columns: minmax(120px, .8fr) auto minmax(0, 2fr);
    gap: 10px;
    align-items: start;
    border-top: 1px solid #f0ecfa;
    padding: 10px 0;
}

.ib-ai-criterion:first-child {
    border-top: 0;
    padding-top: 2px;
}

.ib-ai-criterion__name {
    color: var(--ib-ink);
    font-weight: 800;
}

.ib-ai-criterion__score {
    border: 1px solid var(--ib-success-border);
    background: var(--ib-success-tint);
    color: var(--ib-success-ink);
    padding: 3px 8px;
}

.ib-ai-criterion p {
    margin: 0;
    color: var(--ib-muted-strong);
}

.ib-ai-report__section--expression {
    border-left: 4px solid var(--ib-indigo);
    background: #f7f5ff;
    padding: 12px 12px 12px 14px;
}

.ib-ai-report__section--expression-impact {
    border-left-color: #b45309;
    background: #fff8ed;
}

.ib-expression-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 6px;
}

.ib-expression-head h4 {
    margin: 0;
}

.ib-expression-head span,
.ib-expression-issue span {
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
    white-space: nowrap;
}

.ib-expression-head span {
    border: 1px solid #cdc2f2;
    background: #ffffff;
    color: var(--ib-indigo-dark);
    padding: 4px 8px;
}

.ib-ai-report__section--expression-impact .ib-expression-head span {
    border-color: #fed7aa;
    background: #fffbeb;
    color: #92400e;
}

.ib-expression-reason,
.ib-expression-note {
    margin-top: 8px !important;
}

.ib-expression-note {
    color: var(--ib-muted) !important;
    font-size: 13px;
}

.ib-expression-issues {
    display: grid;
    gap: 8px;
    margin-top: 10px;
}

.ib-expression-issue {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 10px;
    align-items: start;
    border: 1px solid #ddd4f4;
    border-radius: 10px;
    background: #ffffff;
    padding: 9px 10px;
}

.ib-expression-issue span {
    border: 1px solid var(--ib-success-border);
    background: var(--ib-success-tint);
    color: var(--ib-success-ink);
    padding: 3px 7px;
}

.ib-expression-issue--impact {
    border-color: #fed7aa;
    background: #fffaf2;
}

.ib-expression-issue--impact span {
    border-color: #fed7aa;
    background: #fffbeb;
    color: #92400e;
}

.ib-expression-issue p {
    margin: 0;
}

.ib-expression-issue em {
    display: block;
    margin-top: 2px;
    color: var(--ib-muted-strong);
    font-style: normal;
}

.ib-ai-report__section--sentence blockquote {
    margin: 0;
    border-left: 4px solid var(--ib-indigo);
    background: #f7f5ff;
    padding: 10px 12px;
    color: var(--ib-ink);
    font-weight: 700;
}

@media (max-width: 720px) {
    .ib-page-head,
    .ib-band {
        padding-left: 14px;
        padding-right: 14px;
    }

    .ib-hero h1,
    .ib-page-head h1 {
        font-size: 30px;
    }

    .ib-seed-card {
        padding: 16px;
    }

    .ib-topic-row {
        column-gap: 12px;
        padding: 13px 14px;
    }

    .ib-guide-list > div {
        grid-template-columns: 1fr;
    }

    .ib-practice-layout {
        grid-template-columns: 1fr;
    }

    .ib-assignment-layout,
    .ib-assignment-grid {
        grid-template-columns: 1fr;
    }

    .ib-guided-pathway__actions,
    .ib-assignment-success__actions,
    .ib-assignment-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .ib-pathway-start,
    .ib-pathway-assign,
    .ib-assignment-actions .ib-submit-btn,
    .ib-assignment-actions .ib-next-btn {
        width: 100%;
        justify-content: center;
    }

    .ib-practice-layout--source-first .ib-graph-panel,
    .ib-practice-layout--source-first .ib-practice-main {
        grid-column: 1;
    }

    .ib-practice-layout--source-first .ib-graph-panel {
        grid-row: 1;
    }

    .ib-practice-layout--source-first .ib-practice-main {
        grid-row: 2;
    }

    .ib-graph-panel {
        position: static;
        padding: 8px;
    }

    .ib-callout {
        align-items: stretch;
        flex-direction: column;
    }

    .ib-ai-feedback__head,
    .ib-ai-feedback__actions {
        align-items: stretch;
        flex-direction: column;
    }

    .ib-practice-mode-switch {
        display: grid;
        grid-template-columns: 1fr 1fr;
        width: 100%;
    }

    .ib-worked-step {
        grid-template-columns: 1fr;
    }

    .ib-worked-step__number {
        width: 28px;
        height: 28px;
    }

    .ib-latex-input-row,
    .ib-latex-builder__head {
        grid-template-columns: 1fr;
    }

    .ib-latex-input-row,
    .ib-latex-builder__head,
    .ib-latex-builder__actions {
        display: grid;
    }

    .ib-latex-builder-btn,
    .ib-latex-builder__actions .ib-submit-btn,
    .ib-latex-builder__actions .ib-next-btn {
        width: 100%;
        justify-content: center;
    }

    .ib-latex-builder {
        max-height: calc(100vh - 24px);
        padding: 14px;
    }

    .ib-worked-result__head,
    .ib-worked-check__top {
        align-items: stretch;
        display: grid;
    }

    .ib-ai-report__top,
    .ib-ai-report__twocol,
    .ib-ai-criterion {
        grid-template-columns: 1fr;
    }

    .ib-ai-report__top {
        display: grid;
    }

    .ib-ai-report__badge,
    .ib-ai-criterion__score,
    .ib-expression-head span {
        justify-self: start;
    }

    .ib-expression-head,
    .ib-expression-issue {
        grid-template-columns: 1fr;
    }

    .ib-expression-head {
        display: grid;
    }
}

/* ── Cross-module strip — ties IB into the wider practice family ── */
.ib-modnav {
    background: linear-gradient(90deg, #f5f2ff 0%, #ffffff 50%, #f5f2ff 100%);
    border-bottom: 1px solid var(--ib-border);
    padding: 14px max(22px, calc((100vw - 1180px) / 2));
}

.ib-modnav__row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.ib-modnav__label {
    margin-right: 4px;
    color: var(--ib-muted);
    font-size: 12.5px;
    font-weight: 700;
}

.ib-modnav a,
.ib-modnav .is-current {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 18px;
    border-radius: 999px;
    border: 1.5px solid var(--ib-border);
    background: #ffffff;
    color: var(--ib-muted);
    font-size: 13px;
    font-weight: 700;
    line-height: 1;
    text-decoration: none;
    transition: transform .18s ease, border-color .18s ease, color .18s ease, box-shadow .18s ease;
}

.ib-modnav a:hover {
    transform: translateY(-1px);
    border-color: #c9c0f5;
    color: var(--ib-indigo);
    box-shadow: 0 4px 12px rgba(124, 109, 240, .12);
    text-decoration: none;
}

.ib-modnav .is-current {
    background: var(--ib-grad);
    border-color: transparent;
    color: #ffffff;
    box-shadow: 0 4px 16px rgba(124, 109, 240, .35);
}

.ib-trademark {
    background: #f1edfa;
    border-top: 1px solid #e2dbf3;
    padding: 18px max(22px, calc((100vw - 1180px) / 2));
    color: #6b6189;
    font-size: 12px;
    line-height: 1.6;
    font-family: "Plus Jakarta Sans", "Inter", system-ui, -apple-system, sans-serif;
}

.ib-trademark p {
    margin: 0;
    max-width: 1180px;
    font-style: italic;
}
