/*
 * Redesign slice 4 (docs/migration/REDESIGN.md): static pages, contact, FAQ, publish landings, account pages,
 * error pages. Uses the tokens of app.css only.
 */
.text-orange { color: var(--iep-orange-600); }
.lead-sm { font-size: 1.06rem; line-height: 1.6; }

/* Static pages: text column and help aside */
.static-body { padding-top: clamp(1.75rem, 4vw, 3rem); padding-bottom: clamp(2.5rem, 5vw, 4.5rem); }
.prose > :first-child { margin-top: 0; }
.prose ul, .prose ol { padding-left: 1.3rem; }
.prose li + li { margin-top: .35rem; }
.prose img { height: auto; }
.legal-cards ul li { padding: .2rem 0; }
.help-stack { display: grid; gap: 1rem; }
@media (min-width: 992px) { aside > .help-stack { position: sticky; top: 88px; } }
.help-card { background: #fff; border: 1px solid var(--iep-line); border-radius: var(--iep-radius); padding: 1.25rem; }
.help-card h2 { margin: .75rem 0 .4rem; }
.help-card p { color: var(--iep-muted); font-size: .95rem; }
.help-card-publish { background: radial-gradient(500px 200px at 100% 0%, var(--iep-navy-700), transparent 70%), var(--iep-navy-900); border-color: var(--iep-navy-900); color: #fff; }
.help-card-publish h2 { color: #fff; }
.help-card-publish p { color: rgba(255, 255, 255, .82); }
.help-icon { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--iep-orange); color: #fff; font-size: 1.3rem; }
.help-icon-soft { background: var(--iep-orange-050); color: var(--iep-orange-600); }
.help-links { padding: 1rem 1.25rem; }
.help-links ul { list-style: none; margin: 0; padding: 0; }
.help-links a { display: flex; justify-content: space-between; align-items: center; padding: .5rem 0; color: var(--iep-text); text-decoration: none; border-bottom: 1px solid var(--iep-line); }
.help-links li:last-child a { border-bottom: 0; }
.help-links a .bi { color: var(--iep-muted); font-size: .8rem; }
.help-links a:hover, .help-links a[aria-current="page"] { color: var(--iep-orange-600); }
.help-faq { list-style: none; padding: 0; margin: 0 0 1rem; font-size: .93rem; }
.help-faq li { padding: .35rem 0; border-bottom: 1px dashed var(--iep-line); }
.help-faq a { color: var(--iep-navy-700); text-decoration: none; }
.help-faq a:hover { text-decoration: underline; }

/* Thank-you, confirmations */
.confirm-card { background: #fff; border: 1px solid var(--iep-line); border-radius: var(--iep-radius-lg); box-shadow: var(--iep-shadow); padding: clamp(1.75rem, 5vw, 3rem); text-align: center; }
.confirm-icon { display: inline-grid; place-items: center; width: 72px; height: 72px; border-radius: 50%; background: #e6f4ec; color: var(--iep-success); font-size: 2.2rem; margin-bottom: 1rem; }

/* Forms in a card (contact) */
.form-card { background: #fff; border: 1px solid var(--iep-line); border-radius: var(--iep-radius-lg); box-shadow: var(--iep-shadow); padding: clamp(1.25rem, 3.5vw, 2rem); }
.form-card h2 { margin-bottom: 1.25rem; }
.form-card .form-label, .account-card .form-label { font-weight: 600; color: var(--iep-navy-900); margin-bottom: .3rem; }
.form-card .form-control, .account-card .form-control { border-color: #c9d5e2; border-radius: var(--iep-radius-sm); min-height: 48px; }
.form-card .form-control:focus, .account-card .form-control:focus { border-color: var(--iep-navy-700); box-shadow: 0 0 0 .2rem rgba(255, 101, 1, .25); }
.form-card textarea.form-control { min-height: 9rem; }
.form-card .alert-danger, .account-card .alert-danger { border-radius: var(--iep-radius-sm); }
.g-recaptcha { min-height: 78px; }

/* FAQ accordion */
.faq-accordion { --bs-accordion-border-color: var(--iep-line); --bs-accordion-border-radius: var(--iep-radius); --bs-accordion-inner-border-radius: calc(var(--iep-radius) - 1px); --bs-accordion-btn-focus-box-shadow: 0 0 0 .2rem rgba(255, 101, 1, .3); --bs-accordion-active-bg: var(--iep-sky); --bs-accordion-active-color: var(--iep-navy-900); --bs-accordion-btn-padding-y: 1.05rem; display: grid; gap: .65rem; }
.faq-accordion .accordion-item { border: 1px solid var(--iep-line) !important; border-radius: var(--iep-radius) !important; overflow: hidden; }
.faq-accordion .accordion-header { margin: 0; }
.faq-accordion .accordion-button { font-size: 1.04rem; font-weight: 700; color: var(--iep-navy-900); gap: .75rem; border-radius: 0 !important; }
.faq-accordion .accordion-button:not(.collapsed) { box-shadow: inset 0 -1px 0 var(--iep-line); }
.faq-q { flex: 0 0 auto; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--iep-orange-050); color: var(--iep-orange-600); font-size: 1.1rem; }
.faq-accordion .accordion-body { line-height: 1.7; }
.faq-accordion .accordion-body > :last-child { margin-bottom: 0; }

/* Share links */
.share-row { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; }
.share-label { font-weight: 700; color: var(--iep-navy-900); margin-right: .25rem; }
.share-btn { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: #fff; border: 1px solid var(--iep-line); color: var(--iep-navy-900); font-size: 1.1rem; }
.share-btn:hover, .share-btn:focus-visible { background: var(--iep-navy); color: #fff; border-color: var(--iep-navy); }

/* Publish landings */
.publish-hero { background: radial-gradient(900px 420px at 90% 10%, rgba(255, 101, 1, .18), transparent 60%), radial-gradient(1200px 500px at 0% 100%, var(--iep-navy-700), transparent 60%), var(--iep-navy-900); color: #fff; padding: 1.25rem 0 clamp(2.5rem, 6vw, 4.5rem); }
.publish-hero h1 { color: #fff; font-size: clamp(2rem, 4.2vw, 3.1rem); line-height: 1.08; margin-top: clamp(1rem, 3vw, 2rem); }
.publish-hero h1 em { font-style: normal; color: var(--iep-orange); display: block; }
.publish-lead { color: rgba(255, 255, 255, .88); font-size: clamp(1.02rem, 1.4vw, 1.15rem); max-width: 60ch; margin-top: 1rem; }
.publish-lead p:last-child { margin-bottom: 0; }
.publish-hero .btn-outline-light { --bs-btn-color: #fff; --bs-btn-border-color: rgba(255, 255, 255, .45); --bs-btn-hover-bg: rgba(255, 255, 255, .12); --bs-btn-hover-color: #fff; --bs-btn-hover-border-color: #fff; }
.breadcrumb-light { --bs-breadcrumb-divider-color: rgba(255, 255, 255, .55); --bs-breadcrumb-item-active-color: rgba(255, 255, 255, .7); }
.breadcrumb-light a { color: #fff; }
.publish-figure { background: #fff; border-radius: var(--iep-radius-lg); padding: .75rem; box-shadow: var(--iep-shadow-lg); transform: rotate(1.5deg); max-width: 520px; margin-inline: auto; }
.publish-figure img { display: block; width: 100%; height: auto; border-radius: var(--iep-radius); }
.publish-figure-square { max-width: 360px; margin-inline: auto; }
@media (max-width: 991.98px) { .publish-figure { transform: none; max-width: 420px; } }
.publish-steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); counter-reset: none; }
.publish-steps li { position: relative; background: #fff; border: 1px solid var(--iep-line); border-radius: var(--iep-radius); padding: 1.25rem; box-shadow: var(--iep-shadow); }
.publish-steps .step-n { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--iep-orange); color: var(--iep-navy-900); font-weight: 800; font-size: 1.1rem; margin-bottom: .75rem; }
.feature-card { background: #fff; border: 1px solid var(--iep-line); border-radius: var(--iep-radius-lg); padding: clamp(1.25rem, 3vw, 2rem); box-shadow: var(--iep-shadow); }
.feature-card h2 { margin: .9rem 0 .75rem; }
.feature-card p { line-height: 1.7; }
.advantage-grid { list-style: none; padding: 0; margin: 0; display: grid; gap: .75rem; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.advantage-grid li { display: flex; gap: .8rem; align-items: center; background: #fff; border: 1px solid var(--iep-line); border-radius: var(--iep-radius); padding: .9rem 1rem; font-weight: 600; color: var(--iep-navy-900); }
.advantage-grid .bi { flex: 0 0 auto; width: 40px; height: 40px; padding: 10px; border-radius: 12px; background: var(--iep-orange-050); color: var(--iep-orange-600); }
.tip-card { height: 100%; background: #fff; border: 1px solid var(--iep-line); border-radius: var(--iep-radius); padding: 1.25rem; }
.tip-card h3 { font-size: 1.1rem; margin: .75rem 0 .5rem; }
.tip-card p { color: var(--iep-text); font-size: .96rem; line-height: 1.65; }
.tip-card p:last-child { margin-bottom: 0; }
.tip-icon { display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: var(--iep-sky); color: var(--iep-navy-700); font-size: 1.2rem; }
.page-publish .category-tile { min-height: 170px; }

/* Account pages */
.account-shell { background: linear-gradient(180deg, var(--iep-sky) 0, var(--iep-sky) 220px, #fff 220px); padding: clamp(1.75rem, 5vw, 3.5rem) 0 clamp(2.5rem, 6vw, 4.5rem); }
.account-card { background: #fff; border: 1px solid var(--iep-line); border-radius: var(--iep-radius-lg); box-shadow: var(--iep-shadow-lg); overflow: hidden; }
.account-main { padding: clamp(1.5rem, 4vw, 2.5rem); }
.account-head { text-align: center; margin-bottom: 1.5rem; }
.account-head h1 { font-size: clamp(1.5rem, 3vw, 1.9rem); margin: .85rem 0 .35rem; }
.account-head p { color: var(--iep-muted); margin: 0; }
.account-icon { display: inline-grid; place-items: center; width: 60px; height: 60px; border-radius: 50%; background: var(--iep-orange-050); color: var(--iep-orange-600); font-size: 1.75rem; }
.account-switch { text-align: center; margin: 1.5rem 0 0; padding-top: 1.25rem; border-top: 1px solid var(--iep-line); color: var(--iep-muted); }
.account-switch a { font-weight: 700; }
.account-side { background: radial-gradient(600px 300px at 100% 0%, var(--iep-navy-700), transparent 70%), var(--iep-navy-900); color: rgba(255, 255, 255, .88); padding: clamp(1.5rem, 4vw, 2.5rem); display: flex; flex-direction: column; justify-content: center; }
.account-side h2 { color: #fff; }
.account-benefits { list-style: none; padding: 0; margin: 1rem 0 0; display: grid; gap: .9rem; }
.account-benefits li { display: flex; gap: .75rem; align-items: flex-start; }
.account-benefits .bi { flex: 0 0 auto; color: var(--iep-orange); font-size: 1.25rem; }
@media (min-width: 992px) {
    .account-card-split { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
}
.account-tabs { display: flex; flex-wrap: wrap; gap: .4rem; justify-content: center; margin-bottom: 1rem; }
.account-tabs .btn-chip.active { color: #fff; background: var(--iep-navy); border-color: var(--iep-navy); }
.account-facts { margin: 0 0 1.5rem; border: 1px solid var(--iep-line); border-radius: var(--iep-radius); }
.account-facts > div { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .25rem 1rem; padding: .8rem 1rem; }
.account-facts > div + div { border-top: 1px solid var(--iep-line); }
.account-facts dt { color: var(--iep-muted); font-weight: 600; }
.account-facts dd { margin: 0; font-weight: 700; color: var(--iep-navy-900); word-break: break-all; }

/* Error pages */
.error-hero { background: radial-gradient(900px 380px at 50% 0%, var(--iep-sky), transparent 75%), #fff; padding: clamp(2.5rem, 7vw, 5rem) 0 clamp(3rem, 7vw, 5rem); }
.error-code { font-size: clamp(4.5rem, 14vw, 8rem); font-weight: 850; line-height: 1; letter-spacing: -.04em; margin: 0 0 .5rem; color: var(--iep-navy); background: linear-gradient(135deg, var(--iep-navy) 30%, var(--iep-orange) 100%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.error-hero h1 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); }
.error-text { color: var(--iep-muted); max-width: 60ch; margin: 1rem auto 0; }
.error-text .lead { color: var(--iep-text); }
.error-links { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; margin-top: 1.5rem; }
.form-card form > [class*="col-"] { margin-bottom: 1rem; }
.help-card h2, .form-card h2, .feature-card h2, .account-side h2 { font-weight: 750; }
.error-hero h2 { font-weight: 750; }
