/* ==========================================================================
   ITPrepCerts — design system (blueprint theme)
   Loaded only for itprepcerts.com: tenant_asset('css/theme.css') resolves to
   assets/frontend/itprepcerts/css/theme.css and no other tenant has this file.
   Everything is scoped to .itp (page content), .itp-header, .itp-footer and
   .itp-mbar, so shared pages rendered for this site keep their own layout.
   Breakpoints: desktop >= 1024px, tablet 640–1023px, mobile < 640px.
   ========================================================================== */

:root {
    --itp-navy:       #14213D;
    --itp-navy-2:     #1B2B4F;
    --itp-blue:       #2563EB;
    --itp-blue-hover: #1D4ED8;
    --itp-blue-soft:  #EFF6FF;
    --itp-cyan:       #0891B2;
    --itp-cyan-text:  #0E7490;   /* cyan used for text: 5.36:1 on white */
    --itp-cyan-light: #A5F3FC;   /* cyan on navy: 12.1:1 */
    --itp-heading:    #111827;
    --itp-body:       #475569;   /* 7.58:1 on white, 7.24:1 on surface */
    --itp-muted:      #5B6777;   /* 5.6:1 on white, 5.36:1 on surface */
    --itp-surface:    #F8FAFC;
    --itp-white:      #FFFFFF;
    --itp-border:     #E2E8F0;
    --itp-border-2:   #CBD5E1;
    --itp-radius:     14px;
    --itp-shadow:     0 1px 2px rgba(17, 24, 39, .05), 0 10px 28px rgba(17, 24, 39, .07);
    --itp-wrap:       1200px;
    --itp-font:       'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;

    --tenant-primary:   var(--itp-blue);
    --tenant-secondary: var(--itp-cyan);
}

/* ── Base: the legacy global stylesheet forces Roboto and #2d3e51 on text elements ── */
html body, html body h1, html body h2, html body h3, html body h4, html body h5, html body h6,
html body p, html body div, html body span, html body b, html body strong, html body small, html body li, html body a,
html body input, html body button, html body select, html body textarea, html body label, html body dt, html body dd {
    font-family: var(--itp-font);
}
html body { background: var(--itp-white); color: var(--itp-body); }
html body :focus-visible { outline: 3px solid var(--itp-blue); outline-offset: 2px; }
[x-cloak] { display: none !important; }
.itp [hidden], .itp-header [hidden], .itp-footer [hidden], .itp-mbar[hidden] { display: none !important; }

.itp, .itp *, .itp-header, .itp-header *, .itp-footer, .itp-footer *, .itp-mbar, .itp-mbar * { box-sizing: border-box; }
.itp :is(h1, h2, h3, h4, p, div, span, li, strong, b, a, dt, dd, small, label),
.itp-header :is(h1, h2, h3, p, div, span, li, strong, a, small),
.itp-footer :is(h2, p, div, span, li, a, small),
.itp-mbar :is(p, strong, a, span) { color: inherit; }
.itp a, .itp a:hover, .itp a:focus, .itp-header a, .itp-header a:hover, .itp-header a:focus,
.itp-footer a, .itp-footer a:hover, .itp-footer a:focus, .itp-mbar a, .itp-mbar a:hover { text-decoration: none; }
.itp :is(ul, ol), .itp-header ul, .itp-footer ul { list-style: none; margin: 0; padding: 0; }
.itp :is(h1, h2, h3, h4), .itp-footer h2 { color: var(--itp-heading); letter-spacing: -0.02em; margin: 0; }
.itp p, .itp-header p, .itp-footer p, .itp-mbar p { margin: 0; }
.itp label { font-weight: 600; margin: 0; }
.itp { color: var(--itp-body); font-size: 16px; line-height: 1.6; }

.itp-wrap { margin: 0 auto; max-width: var(--itp-wrap); padding: 0 24px; width: 100%; }
.itp-narrow { max-width: 880px; }
.itp-center { margin-top: 32px; text-align: center; }
.itp .itp-center-text { text-align: center; }
.itp-skip { background: var(--itp-navy); border-radius: 0 0 10px 10px; color: #fff !important; font-weight: 600; left: 16px; padding: 12px 18px;
            position: absolute; top: -100px; z-index: 2000; }
.itp-skip:focus { top: 0; }
#itp-main:focus { outline: none; }

/* ── Buttons & links ──────────────────────────────────────────────── */
.itp-btn {
    align-items: center; border: 1.5px solid transparent; border-radius: 10px; cursor: pointer; display: inline-flex;
    font-size: 16px; font-weight: 600; gap: 8px; justify-content: center; line-height: 1.2; min-height: 48px;
    padding: 0 22px; text-align: center; transition: background-color .15s, border-color .15s, color .15s;
}
.itp-btn svg { flex-shrink: 0; height: 16px; width: 16px; }
html body .itp-btn--primary, html body .itp-btn--primary:hover, html body .itp-btn--primary:focus { color: #fff; }
.itp-btn--primary { background: var(--itp-blue); }
.itp-btn--primary:hover { background: var(--itp-blue-hover); }
html body .itp-btn--ghost { background: #fff; border-color: var(--itp-border-2); color: var(--itp-heading); }
html body .itp-btn--ghost:hover { border-color: var(--itp-blue); color: var(--itp-blue-hover); }
.itp .itp-textlink { align-items: center; color: var(--itp-blue-hover); display: inline-flex; font-weight: 600; gap: 6px; min-height: 44px; }
.itp .itp-textlink:hover { color: var(--itp-navy); text-decoration: underline; text-underline-offset: 3px; }
.itp-textlink svg { height: 16px; width: 16px; }
.itp .itp-content a, .itp .itp-faq__a a, .itp .itp-buy__note a, .itp .itp-contact a, .itp .itp-alert a, .itp .itp-card p a, .itp .itp-ac__empty a {
    color: var(--itp-blue-hover); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }

/* ── Header (block 1) ─────────────────────────────────────────────── */
.itp-header { background: rgba(255, 255, 255, .97); border-bottom: 1px solid var(--itp-border); position: sticky; top: 0; z-index: 1000; }
@supports ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
    .itp-header { background: rgba(255, 255, 255, .9); -webkit-backdrop-filter: saturate(160%) blur(10px); backdrop-filter: saturate(160%) blur(10px); }
}
.itp-header__inner { align-items: center; display: flex; gap: 16px; height: 72px; }
.itp-brand { align-items: center; display: inline-flex; flex-shrink: 0; gap: 10px; min-height: 44px; }
.itp-brand svg { display: block; height: 34px; width: 34px; }
html body .itp-brand__text { color: var(--itp-navy); font-size: 21px; font-weight: 800; letter-spacing: -0.03em; line-height: 1; }
html body .itp-brand__text em { color: var(--itp-blue); font-style: normal; }
.itp-nav { align-items: center; display: flex; gap: 2px; margin-left: 20px; }
html body .itp-nav__link {
    align-items: center; background: none; border: 0; border-radius: 8px; color: #334155; cursor: pointer; display: inline-flex;
    font-size: 15px; font-weight: 500; gap: 6px; min-height: 44px; padding: 0 13px; transition: background-color .14s, color .14s; white-space: nowrap;
}
html body .itp-nav__link:hover { background: var(--itp-surface); color: var(--itp-heading); }
html body .itp-nav__link.is-active { color: var(--itp-blue-hover); font-weight: 600; }
.itp-nav__chev { height: 14px; transition: transform .16s; width: 14px; }
.itp-nav__chev.is-open { transform: rotate(180deg); }

.itp-dd { position: relative; }
.itp-dd__panel { left: -12px; opacity: 0; padding-top: 10px; pointer-events: none; position: absolute; top: 100%; transform: translateY(6px);
                 transition: opacity .14s, transform .14s, visibility 0s linear .14s; visibility: hidden; width: 600px; z-index: 1100; }
.itp-dd__panel.is-open { opacity: 1; pointer-events: auto; transform: translateY(0); transition: opacity .14s, transform .14s, visibility 0s linear 0s; visibility: visible; }
.itp-dd__card { background: #fff; border: 1px solid var(--itp-border); border-radius: 14px; box-shadow: 0 18px 44px rgba(15, 23, 42, .14); padding: 16px 10px 8px; }
html body .itp-dd__label { color: var(--itp-muted); font-size: 12px; font-weight: 700; letter-spacing: .12em; padding: 0 12px 8px; text-transform: uppercase; }
.itp-dd__grid { display: grid; gap: 2px 6px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
html body .itp-dd__link { border-radius: 8px; color: var(--itp-heading); display: flex; flex-direction: column; min-height: 44px; padding: 8px 12px; }
html body .itp-dd__link span { font-size: 15px; font-weight: 600; }
html body .itp-dd__link small { color: var(--itp-muted); font-size: 13px; }
html body .itp-dd__link:hover, html body .itp-dd__link:focus-visible { background: var(--itp-blue-soft); color: var(--itp-blue-hover); }
.itp-dd__foot { border-top: 1px solid var(--itp-border); margin: 8px 4px 0; padding-top: 4px; }
html body .itp-dd__all { align-items: center; border-radius: 8px; color: var(--itp-blue-hover); display: flex; font-size: 15px; font-weight: 600; gap: 8px; min-height: 44px; padding: 0 10px; }
html body .itp-dd__all:hover, html body .itp-dd__all:focus-visible { background: var(--itp-blue-soft); }
.itp-dd__all svg { height: 16px; width: 16px; }

.itp-actions { align-items: center; display: flex; gap: 4px; margin-left: auto; }
html body .itp-icon-btn { align-items: center; background: none; border: 0; border-radius: 10px; color: #334155; cursor: pointer; display: inline-flex;
                          height: 44px; justify-content: center; position: relative; width: 44px; }
html body .itp-icon-btn:hover { background: var(--itp-surface); color: var(--itp-heading); }
.itp-icon-btn svg { height: 21px; width: 21px; }
html body .itp-cart-count { align-items: center; background: var(--itp-blue); border-radius: 99px; color: #fff; display: inline-flex; font-size: 11px;
                            font-weight: 700; height: 18px; justify-content: center; min-width: 18px; padding: 0 5px; position: absolute; right: 2px; top: 3px; }
html body .itp-link-btn { align-items: center; background: none; border: 0; border-radius: 10px; color: var(--itp-heading); cursor: pointer; display: inline-flex;
                          font-size: 15px; font-weight: 600; min-height: 44px; padding: 0 12px; white-space: nowrap; }
html body .itp-link-btn:hover { background: var(--itp-surface); color: var(--itp-blue-hover); }
.itp-logout { display: inline; margin: 0; }
html body .itp-burger { display: none; }
.itp-searchrow { border-top: 1px solid var(--itp-border); padding: 12px 0 14px; }

/* Mobile drawer */
.itp-mobile { background: #fff; border-top: 1px solid var(--itp-border); max-height: calc(100vh - 64px); overflow-y: auto; padding: 14px 0 22px; }
.itp-mobile .itp-ac { margin-bottom: 10px; }
html body .itp-mobile__link { align-items: center; background: none; border: 0; border-radius: 10px; color: var(--itp-heading); cursor: pointer; display: flex;
                              font-size: 17px; font-weight: 500; justify-content: space-between; min-height: 48px; padding: 0 12px; text-align: left; width: 100%; }
html body .itp-mobile__link:hover { background: var(--itp-surface); }
html body .itp-mobile__link.is-active { color: var(--itp-blue-hover); }
html body .itp-mobile__link--strong { color: var(--itp-blue-hover); font-weight: 600; }
.itp-mobile__grid { display: grid; grid-template-columns: 1fr 1fr; padding: 0 0 0 8px; }
html body .itp-mobile__sub { align-items: center; border-radius: 8px; color: #1F2937; display: flex; font-size: 16px; min-height: 44px; padding: 0 12px; }
html body .itp-mobile__sub:hover { background: var(--itp-blue-soft); color: var(--itp-blue-hover); }
.itp-mobile__auth { border-top: 1px solid var(--itp-border); display: grid; gap: 10px; margin-top: 12px; padding-top: 14px; }
.itp-mobile__auth .itp-btn { width: 100%; }

@media (max-width: 1180px) { .itp-nav { margin-left: 8px; } html body .itp-nav__link { padding: 0 10px; } }
@media (max-width: 1023px) {
    .itp-nav, .itp-actions .itp-desktop { display: none !important; }
    html body .itp-burger { display: inline-flex; }
    .itp-header__inner { gap: 8px; height: 64px; }
}
@media (min-width: 1024px) { .itp-mobile { display: none !important; } }

/* ── Search + autocomplete ────────────────────────────────────────── */
.itp-ac { display: flex; gap: 8px; margin: 0; position: relative; width: 100%; }
.itp-ac__field { align-items: center; background: #fff; border: 1.5px solid var(--itp-border-2); border-radius: 10px; display: flex; flex: 1; gap: 10px;
                 min-height: 48px; min-width: 0; padding: 0 14px; transition: border-color .15s, box-shadow .15s; }
.itp-ac__field:focus-within { border-color: var(--itp-blue); box-shadow: 0 0 0 3px rgba(37, 99, 235, .18); }
.itp-ac__field svg { color: var(--itp-muted); flex-shrink: 0; height: 18px; width: 18px; }
html body .itp-ac input { -webkit-appearance: none; appearance: none; background: transparent; border: 0; box-shadow: none; color: var(--itp-heading);
                          flex: 1; font-size: 16px; height: 44px; min-width: 0; outline: none; padding: 0; }
.itp-ac input::placeholder { color: #6B7280; opacity: 1; }
.itp-ac input::-webkit-search-cancel-button { cursor: pointer; }
.itp-ac input:focus-visible { outline: none; }
.itp-ac__pop { background: #fff; border: 1px solid var(--itp-border); border-radius: 12px; box-shadow: 0 18px 40px rgba(15, 23, 42, .16); left: 0; margin-top: 6px;
               max-height: min(380px, 60vh); overflow-y: auto; position: absolute; right: 0; text-align: left; top: 100%; z-index: 1200; }
.itp-ac__list { padding: 6px !important; }
.itp-ac__opt a { align-items: baseline; border-radius: 8px; color: var(--itp-heading) !important; column-gap: 10px; display: grid; grid-template-columns: auto 1fr auto;
                 min-height: 44px; padding: 10px 12px; }
.itp-ac__opt[aria-selected="true"] a, .itp-ac__opt a:hover { background: var(--itp-blue-soft); }
html body .itp-ac__t { color: var(--itp-heading); font-weight: 700; white-space: nowrap; }
html body .itp-ac__s { color: var(--itp-body); font-size: 15px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
html body .itp-ac__k { color: var(--itp-muted); font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
html body .itp-ac__empty { color: var(--itp-body); font-size: 15px; padding: 14px 16px; }

/* ── Sections ─────────────────────────────────────────────────────── */
.itp-section { padding: 80px 0; }
.itp-section--tight { padding: 52px 0; }
.itp-section--soft { background: var(--itp-surface); }
.itp-section__head { margin: 0 auto 40px; max-width: 720px; text-align: center; }
.itp .itp-h2 { font-size: clamp(28px, 3.1vw, 38px); font-weight: 800; line-height: 1.15; }
.itp .itp-h3 { font-size: clamp(22px, 2.2vw, 26px); font-weight: 750; line-height: 1.25; margin-bottom: 18px; }
.itp .itp-lead { color: var(--itp-body); font-size: 18px; line-height: 1.6; margin-top: 12px; }
.itp .itp-sub { color: var(--itp-body); margin: -8px 0 20px; }

/* Hero (block 2) */
.itp-hero { background:
              radial-gradient(900px 420px at 50% -10%, rgba(8, 145, 178, .32), transparent 70%),
              linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px) 0 0 / 44px 44px,
              linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px) 0 0 / 44px 44px,
              var(--itp-navy);
            color: #fff; padding: 88px 0 92px; position: relative; }
.itp-hero__inner { margin: 0 auto; max-width: 860px; text-align: center; }
.itp .itp-hero__title { color: #fff; font-size: clamp(34px, 5vw, 56px); font-weight: 800; letter-spacing: -0.035em; line-height: 1.08; }
.itp .itp-hero__text { color: #D5DCE6; font-size: 19px; line-height: 1.6; margin: 20px auto 0; max-width: 640px; }
.itp-ac--hero { background: #fff; border-radius: 14px; box-shadow: 0 20px 44px rgba(2, 6, 23, .38); margin: 34px auto 0; max-width: 680px; padding: 8px; }
.itp-ac--hero .itp-ac__field { border-color: transparent; min-height: 52px; }
.itp-ac--hero .itp-ac__field:focus-within { border-color: var(--itp-blue); box-shadow: none; }
.itp-ac--hero .itp-btn { min-height: 52px; white-space: nowrap; }
.itp .itp-hero__secondary { align-items: center; border: 1.5px solid rgba(255, 255, 255, .5); border-radius: 10px; color: #fff; display: inline-flex;
                            font-weight: 600; gap: 8px; margin-top: 22px; min-height: 48px; padding: 0 20px; transition: border-color .15s, background-color .15s; }
.itp .itp-hero__secondary:hover { background: rgba(255, 255, 255, .08); border-color: #fff; color: #fff; }
.itp-hero__secondary svg { height: 16px; width: 16px; }

/* Stats cards (block 3): live counts in four cards — 4 columns >= 1024px, 2 on tablet, 1 on mobile */
.itp-trust { background: linear-gradient(180deg, #EEF4FB 0%, var(--itp-surface) 55%, var(--itp-white) 100%); padding: 44px 0 12px; }
.itp-trust__list { display: grid !important; gap: 20px; grid-template-columns: repeat(4, minmax(0, 1fr)); list-style: none; margin: 0; padding: 0; }
.itp .itp-stat { background: var(--itp-white); border: 1px solid var(--itp-border); border-radius: 18px;
                 box-shadow: 0 1px 2px rgba(17, 24, 39, .04), 0 12px 32px -12px rgba(20, 33, 61, .16);
                 display: flex; flex-direction: column; gap: 18px; overflow: hidden; padding: 24px 24px 26px; position: relative;
                 transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
/* Soft sky-blue glow in the corner and a blue-to-cyan rule along the top edge */
.itp .itp-stat::before { background: radial-gradient(circle at 100% 0, rgba(165, 243, 252, .22), rgba(239, 246, 255, 0) 60%);
                         content: ""; height: 150px; pointer-events: none; position: absolute; right: 0; top: 0; width: 150px; }
.itp .itp-stat::after { background: linear-gradient(90deg, var(--itp-blue), var(--itp-cyan)); content: ""; height: 3px;
                        left: 0; opacity: .55; position: absolute; right: 0; top: 0; transition: opacity .2s ease; }
.itp .itp-stat:hover { border-color: #BFDBFE; box-shadow: 0 1px 2px rgba(17, 24, 39, .05), 0 22px 44px -16px rgba(29, 78, 216, .28); transform: translateY(-4px); }
.itp .itp-stat:hover::after { opacity: 1; }
.itp .itp-stat__icon { align-items: center; background: linear-gradient(135deg, var(--itp-blue-soft), #E0F2FE); border: 1px solid #DBEAFE;
                       border-radius: 14px; color: var(--itp-blue-hover); display: inline-flex; flex-shrink: 0; height: 52px;
                       justify-content: center; position: relative; transition: transform .2s ease; width: 52px; }
.itp .itp-stat__icon svg { height: 26px; width: 26px; }
.itp .itp-stat:hover .itp-stat__icon { transform: translateY(-2px); }
.itp .itp-stat__body { display: flex; flex-direction: column; gap: 6px; min-width: 0; position: relative; }
.itp .itp-stat__value { color: var(--itp-navy); font-size: clamp(26px, 2.5vw, 32px); font-weight: 800; letter-spacing: -0.025em; line-height: 1.1; white-space: nowrap; }
.itp .itp-stat__label { color: var(--itp-body); font-size: 15px; font-weight: 500; line-height: 1.45; }
@media (prefers-reduced-motion: reduce) {
    .itp .itp-stat:hover, .itp .itp-stat:hover .itp-stat__icon { transform: none; }
}

/* Vendor grid (block 4) — 4 / 3 / 2 columns */
.itp-vgrid { display: grid !important; gap: 14px; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.itp .itp-vtile { align-items: center; background: #fff; border: 1px solid var(--itp-border); border-radius: var(--itp-radius); display: flex; gap: 14px;
                  height: 100%; min-height: 76px; padding: 16px 18px; transition: border-color .15s, box-shadow .15s; }
.itp .itp-vtile:hover { border-color: var(--itp-blue); box-shadow: var(--itp-shadow); }
.itp .itp-vtile__mark { align-items: center; background: var(--itp-blue-soft); border-radius: 10px; color: var(--itp-blue-hover); display: inline-flex; flex-shrink: 0;
                        font-size: 15px; font-weight: 800; height: 44px; justify-content: center; letter-spacing: .02em; width: 44px; }
.itp .itp-vtile__mark--lg { font-size: 20px; height: 64px; width: 64px; border-radius: 14px; }
.itp-vtile__body { display: flex; flex-direction: column; min-width: 0; }
.itp .itp-vtile__name { color: var(--itp-heading); font-size: 16px; font-weight: 700; line-height: 1.3; }
.itp .itp-vtile__count { color: var(--itp-muted); font-size: 14px; }

/* Free sample band (block 5) */
.itp-band { background: linear-gradient(120deg, var(--itp-navy) 0%, var(--itp-navy-2) 60%, #123A5A 100%); color: #fff; padding: 64px 0; }
.itp-band:focus { outline: none; }
.itp-band__inner { align-items: center; display: grid; gap: 40px; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); }
.itp-band__inner > * { min-width: 0; }
.itp-band .itp-h2, .itp-band .itp-h3 { color: #fff; }
.itp .itp-band__copy p { color: #D5DCE6; font-size: 18px; line-height: 1.6; margin-top: 12px; }
.itp-picker { background: #fff; border-radius: 16px; color: var(--itp-heading); min-width: 0; padding: 22px; }
.itp .itp-picker label { color: var(--itp-heading); display: block; font-size: 15px; margin-bottom: 8px; }
.itp-picker__row { display: flex; gap: 10px; }
html body .itp-picker select { -webkit-appearance: none; appearance: none; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23475569' stroke-width='2.5'%3E%3Cpath d='M19 9l-7 7-7-7'/%3E%3C/svg%3E") no-repeat right 14px center / 14px;
                               border: 1.5px solid var(--itp-border-2); border-radius: 10px; color: var(--itp-heading); flex: 1; font-size: 16px; max-width: 100%; min-height: 48px; min-width: 0; padding: 0 40px 0 14px; text-overflow: ellipsis; width: 100%; }
.itp-picker select:focus { border-color: var(--itp-blue); box-shadow: 0 0 0 3px rgba(37, 99, 235, .18); outline: none; }
.itp .itp-picker__note { color: var(--itp-body); font-size: 14px; margin-top: 12px; }
.itp-band--card { align-items: center; border-radius: 18px; display: flex; flex-wrap: wrap; gap: 20px 32px; justify-content: space-between; padding: 36px 40px; }
.itp-band--card .itp-band__copy { flex: 1 1 420px; }
.itp-band--card .itp-h3 { margin-bottom: 0; }
.itp .itp-band--card p { font-size: 17px; margin-top: 8px; }

/* Cards: formats (block 6), why (block 8), generic */
.itp .itp-card { background: #fff; border: 1px solid var(--itp-border); border-radius: var(--itp-radius); padding: 28px; }
.itp .itp-card__icon { align-items: center; background: var(--itp-blue-soft); border-radius: 12px; color: var(--itp-blue-hover); display: inline-flex; flex-shrink: 0;
                       height: 48px; justify-content: center; width: 48px; }
.itp-card__icon svg { height: 24px; width: 24px; }
.itp .itp-card h3 { font-size: 19px; font-weight: 700; margin-bottom: 6px; }
.itp .itp-card p { color: var(--itp-body); }
.itp-formats { display: grid; gap: 20px; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 0 auto; max-width: 1000px; }
.itp-format { display: flex; flex-direction: column; gap: 10px; }
.itp-format .itp-card__icon { margin-bottom: 6px; }
.itp-format .itp-textlink { margin-top: auto; }
.itp-checks { display: grid !important; gap: 10px; margin: 6px 0 4px !important; }
.itp .itp-checks li { align-items: flex-start; color: var(--itp-body); display: flex; gap: 10px; line-height: 1.5; }
.itp-checks svg { color: var(--itp-cyan-text); flex-shrink: 0; height: 18px; margin-top: 3px; width: 18px; }
.itp-checks--grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 28px; }
.itp-why { display: grid; gap: 20px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.itp .itp-card--row { align-items: flex-start; display: flex; gap: 18px; }
.itp-helps { background: #fff; border: 1px solid var(--itp-border); border-radius: var(--itp-radius); padding: 28px 32px; }

/* Steps (block 7) */
.itp-steps { counter-reset: none; display: grid !important; gap: 20px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.itp .itp-step { background: #fff; border: 1px solid var(--itp-border); border-radius: var(--itp-radius); padding: 28px; position: relative; }
.itp .itp-step__num { align-items: center; background: var(--itp-navy); border-radius: 50%; color: #fff; display: inline-flex; font-size: 17px; font-weight: 800;
                      height: 40px; justify-content: center; margin-bottom: 16px; width: 40px; }
.itp .itp-step h3 { font-size: 19px; font-weight: 700; margin-bottom: 6px; }

/* FAQ (block 9) */
.itp-faq { margin: 0 auto; max-width: 840px; }
.itp-faq details { background: #fff; border: 1px solid var(--itp-border); border-radius: 12px; margin-bottom: 10px; }
.itp-faq details[open] { border-color: #BFDBFE; }
.itp-faq summary { align-items: center; color: var(--itp-heading); cursor: pointer; display: flex; font-size: 17px; font-weight: 600; gap: 16px;
                   justify-content: space-between; list-style: none; min-height: 56px; padding: 16px 22px; }
.itp-faq summary::-webkit-details-marker { display: none; }
.itp-faq summary:focus-visible { border-radius: 12px; }
.itp-faq summary svg { color: var(--itp-blue-hover); flex-shrink: 0; height: 20px; transition: transform .18s; width: 20px; }
.itp-faq details[open] summary svg { transform: rotate(45deg); }
.itp .itp-faq__a { color: var(--itp-body); line-height: 1.7; padding: 0 22px 20px; }

/* ── Vendor / exam pages (blocks 11–23) ───────────────────────────── */
.itp-crumbs { background: var(--itp-surface); border-bottom: 1px solid var(--itp-border); font-size: 14px; }
.itp .itp-crumbs ol { align-items: center; display: flex; flex-wrap: wrap; gap: 0 8px; min-height: 46px; padding: 0; }
.itp .itp-crumbs li { align-items: center; color: var(--itp-muted); display: inline-flex; gap: 8px; }
.itp .itp-crumbs li + li::before { color: #94A3B8; content: '/'; }
.itp .itp-crumbs a { align-items: center; color: var(--itp-body); display: inline-flex; min-height: 44px; }
.itp .itp-crumbs a:hover { color: var(--itp-blue-hover); text-decoration: underline; }
.itp .itp-crumbs [aria-current] { color: var(--itp-heading); font-weight: 600; }
.itp-pagehead { padding: 44px 0 36px; }
.itp-pagehead--center { text-align: center; }
.itp-pagehead--center p { margin-left: auto !important; margin-right: auto !important; }
.itp-pagehead__row { align-items: center; display: flex; gap: 22px; }
.itp .itp-pagehead h1 { font-size: clamp(28px, 3.4vw, 42px); font-weight: 800; line-height: 1.15; }
.itp .itp-pagehead p { color: var(--itp-body); font-size: 18px; line-height: 1.6; margin-top: 12px; max-width: 780px; }
.itp-pagehead__search { margin-top: 24px; max-width: 680px; }
.itp-pagehead--exam { padding-bottom: 28px; }
.itp-facts-chips { display: flex !important; flex-wrap: wrap; gap: 8px; margin-top: 16px !important; }
.itp .itp-facts-chips li { align-items: center; background: var(--itp-surface); border: 1px solid var(--itp-border); border-radius: 99px; color: var(--itp-heading);
                           display: inline-flex; font-size: 14px; font-weight: 600; min-height: 34px; padding: 0 14px; }

/* Exam cards — 3 / 2 / 1 columns */
.itp-egrid { display: grid !important; gap: 16px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.itp .itp-ecard { background: #fff; border: 1px solid var(--itp-border); border-radius: var(--itp-radius); display: flex; flex-direction: column; gap: 8px;
                  height: 100%; padding: 22px; transition: border-color .15s, box-shadow .15s; }
.itp .itp-ecard:hover { border-color: var(--itp-blue); box-shadow: var(--itp-shadow); }
.itp-ecard__top { align-items: center; display: flex; gap: 10px; justify-content: space-between; }
.itp .itp-ecard__code { color: var(--itp-blue-hover); font-size: 15px; font-weight: 800; letter-spacing: .01em; }
.itp .itp-ecard__vendor { color: var(--itp-muted); font-size: 13px; font-weight: 600; }
.itp .itp-ecard__name { color: var(--itp-heading); font-size: 17px; font-weight: 600; line-height: 1.4; }
.itp .itp-ecard__meta { color: var(--itp-body); font-size: 15px; }
.itp .itp-ecard__cta { align-items: center; color: var(--itp-blue-hover); display: inline-flex; font-weight: 600; gap: 6px; margin-top: auto; padding-top: 6px; }
.itp-ecard__cta svg { height: 16px; width: 16px; }
.itp-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.itp .itp-chip { background: #F1F5F9; border-radius: 99px; color: #334155; font-size: 13px; font-weight: 600; padding: 3px 10px; }
.itp .itp-chip--web { background: var(--itp-blue-soft); color: #1E40AF; }
.itp .itp-chip--pdf { background: #ECFEFF; color: #155E75; }

/* Sample-only and listed-only exams */
.itp-mini { display: grid !important; gap: 10px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.itp .itp-mini__item { background: #fff; border: 1px solid var(--itp-border); border-radius: 12px; display: grid; gap: 2px; height: 100%; min-height: 44px; padding: 14px 16px; }
.itp .itp-mini__item:hover { border-color: var(--itp-blue); }
.itp .itp-mini__code { color: var(--itp-blue-hover); font-weight: 700; }
.itp .itp-mini__name { color: var(--itp-heading); font-size: 15px; line-height: 1.4; }
.itp .itp-mini__meta { color: var(--itp-muted); font-size: 14px; }
.itp-more { background: #fff; border: 1px solid var(--itp-border); border-radius: 12px; }
.itp-more summary { color: var(--itp-heading); cursor: pointer; font-weight: 600; min-height: 52px; padding: 14px 20px; }
.itp-more__list { columns: 2; column-gap: 28px; padding: 0 20px 18px !important; }
.itp .itp-more__list li { break-inside: avoid; }
.itp .itp-more__list a { align-items: center; color: var(--itp-body); display: flex; font-size: 15px; gap: 6px; min-height: 44px; padding: 6px 0; }
.itp .itp-more__list a strong { color: var(--itp-heading); }
.itp .itp-more__list a:hover { color: var(--itp-blue-hover); }

/* Exam page layout: content + sticky purchase panel */
.itp-examgrid { align-items: start; display: grid; gap: 28px; grid-template-columns: minmax(0, 1fr) 360px; padding-bottom: 72px; }
.itp-examgrid__main { display: grid; gap: 24px; min-width: 0; }
.itp-examgrid__side { position: sticky; top: 96px; }
.itp .itp-facts { display: grid; grid-template-columns: 1fr 1fr; margin: 0; }
.itp .itp-fact { border-bottom: 1px solid var(--itp-border); padding: 14px 0; }
.itp .itp-fact:nth-child(odd) { padding-right: 16px; }
.itp .itp-fact dt { color: var(--itp-muted); font-size: 14px; font-weight: 600; }
.itp .itp-fact dd { color: var(--itp-heading); font-size: 16px; font-weight: 600; margin: 2px 0 0; }
.itp .itp-content { color: var(--itp-body); font-size: 16px; line-height: 1.75; margin-top: 24px; overflow-x: auto; }
.itp .itp-content :is(h2, h3) { color: var(--itp-heading); margin: 22px 0 10px; }
.itp .itp-content :is(ul, ol) { list-style: revert; margin: 0 0 14px; padding-left: 22px; }
.itp .itp-content p { margin: 0 0 14px; }
.itp .itp-content table { border-collapse: collapse; min-width: 480px; }
.itp .itp-content :is(td, th) { border: 1px solid var(--itp-border); padding: 8px 10px; }

.itp-buy { display: grid; gap: 12px; }
.itp-buy .itp-h3 { margin-bottom: 0; }
.itp-buy__list { border: 1px solid var(--itp-border); border-radius: 12px; }
.itp .itp-buy__list li { align-items: center; color: var(--itp-heading); display: flex; font-weight: 600; gap: 12px; justify-content: space-between; min-height: 52px; padding: 10px 16px; }
.itp .itp-buy__list li + li { border-top: 1px solid var(--itp-border); }
.itp .itp-buy__list strong { color: var(--itp-heading); font-size: 18px; font-weight: 800; }
.itp-buy .itp-btn { width: 100%; }
.itp .itp-buy__note { color: var(--itp-body); font-size: 15px; }

/* Sample questions (block 21) */
.itp-q { border-top: 1px solid var(--itp-border); padding: 22px 0; }
.itp-q:first-of-type { border-top: 0; padding-top: 4px; }
.itp .itp-q__label { color: var(--itp-cyan-text); font-size: 14px; font-weight: 800; letter-spacing: .08em; margin-bottom: 10px; text-transform: uppercase; }
.itp .itp-q__label span { color: var(--itp-muted); font-weight: 600; letter-spacing: 0; text-transform: none; }
.itp .itp-q__text { color: var(--itp-heading); font-size: 17px; line-height: 1.65; overflow-x: auto; }
.itp .itp-q__text :is(p, div) { color: var(--itp-heading); }
.itp .itp-q__text img, .itp .itp-q__exp img, .itp .itp-q__opts img { height: auto; max-width: 100%; }
.itp-q__opts { display: grid !important; gap: 8px; margin: 16px 0 !important; }
.itp .itp-q__opts li { align-items: flex-start; border: 1.5px solid var(--itp-border); border-radius: 10px; display: flex; gap: 12px; padding: 12px 14px; }
.itp .itp-q__opts b { align-items: center; background: var(--itp-surface); border: 1px solid var(--itp-border); border-radius: 6px; color: var(--itp-heading);
                      display: inline-flex; flex-shrink: 0; font-size: 14px; height: 28px; justify-content: center; width: 28px; }
.itp .itp-q__opts li > div { color: var(--itp-heading); min-width: 0; overflow-wrap: anywhere; padding-top: 2px; }
.itp .itp-q__opts li > div p { margin: 0; }
.itp-q__ans { background: var(--itp-surface); border: 1px solid var(--itp-border); border-radius: 10px; }
.itp-q__ans summary { color: var(--itp-blue-hover); cursor: pointer; font-weight: 600; min-height: 48px; padding: 12px 16px; }
.itp .itp-q__correct { color: var(--itp-heading); padding: 0 16px 8px; }
.itp .itp-q__exp { color: var(--itp-body); line-height: 1.7; overflow-x: auto; padding: 0 16px 16px; }
.itp .itp-q__exp p { margin: 0 0 10px; }

/* Mobile purchase bar */
.itp-mbar { display: none; }
@media (max-width: 1023px) {
    .itp-mbar { align-items: center; background: #fff; border-top: 1px solid var(--itp-border); bottom: 0; box-shadow: 0 -8px 24px rgba(15, 23, 42, .10);
                display: flex; gap: 12px; justify-content: space-between; left: 0; padding: 10px max(16px, env(safe-area-inset-right)) calc(10px + env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left));
                position: fixed; right: 0; z-index: 900; }
    .itp-mbar p { color: var(--itp-heading); font-size: 16px; }
    .itp-mbar .itp-btn { min-height: 46px; }
    body.itp-has-mbar main { padding-bottom: 76px; }
    /* Keep the bar's button clear of the Tawk.to chat launcher (fixed bottom-right, ~87px wide incl. offset). */
    .itp-mbar { padding-right: calc(96px + env(safe-area-inset-right)); }
    .itp-mbar .itp-btn { flex-shrink: 0; white-space: nowrap; }
}
@media (max-width: 380px) {
    .itp-mbar { gap: 8px; padding-right: calc(92px + env(safe-area-inset-right)); }
    .itp-mbar .itp-btn { padding: 0 14px; }
}

/* ── Catalogue (/exams) ───────────────────────────────────────────── */
.itp-az { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 24px; }
.itp .itp-az a { align-items: center; background: #fff; border: 1px solid var(--itp-border); border-radius: 8px; color: var(--itp-heading); display: inline-flex;
                 font-weight: 700; height: 44px; justify-content: center; min-width: 44px; }
.itp .itp-az a:hover { border-color: var(--itp-blue); color: var(--itp-blue-hover); }
.itp-azgroup { border-top: 1px solid var(--itp-border); display: grid; gap: 12px; grid-template-columns: 56px minmax(0, 1fr); padding: 18px 0; scroll-margin-top: 90px; }
.itp .itp-azgroup h3 { color: var(--itp-navy); font-size: 24px; font-weight: 800; }
.itp-azgroup ul { display: grid !important; gap: 4px 20px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.itp .itp-azgroup a { align-items: center; border-radius: 8px; color: var(--itp-heading); display: flex; gap: 10px; justify-content: space-between; min-height: 44px; padding: 0 10px; }
.itp .itp-azgroup a:hover { background: #fff; color: var(--itp-blue-hover); }
.itp .itp-azgroup small { color: var(--itp-muted); font-size: 14px; }

/* ── About (blocks 24–29) ─────────────────────────────────────────── */
.itp-rows { display: grid !important; gap: 14px; }
.itp .itp-rows li { align-items: flex-start; background: #fff; border: 1px solid var(--itp-border); border-radius: var(--itp-radius); display: flex; gap: 18px; padding: 22px 24px; }
.itp .itp-rows h3 { font-size: 18px; font-weight: 700; margin-bottom: 4px; }
.itp-for { display: grid; gap: 20px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.itp-contact { display: grid; gap: 14px; }
.itp-contact .itp-h3 { margin-bottom: 0; }

/* ── Legal / static pages and purchase options page ───────────────── */
.itp .itp-alert { background: #FFF7ED; border: 1px solid #FED7AA; border-radius: 12px; color: #9A3412; font-size: 15px; line-height: 1.6; padding: 14px 16px; }
.itp .itp-alert--info { background: var(--itp-blue-soft); border-color: #BFDBFE; color: #1E3A8A; }
.itp .itp-alert--info a { color: #1E3A8A; }
.itp .itp-card + .itp-card { margin-top: 0; }
.itp .itp-note { color: var(--itp-body); font-size: 15px; margin-top: 22px; text-align: center; }
.itp .itp-note a { color: var(--itp-blue-hover); font-weight: 600; }
.itp-products { display: grid; gap: 18px; grid-template-columns: repeat(3, minmax(0, 1fr)); padding: 10px 0 80px; }
.itp-products--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 0 auto; max-width: 820px; }
.itp-products--1 { grid-template-columns: minmax(0, 420px); justify-content: center; }
.itp .itp-product { background: #fff; border: 1.5px solid var(--itp-border); border-radius: 16px; display: flex; flex-direction: column; padding: 26px; }
.itp .itp-product--featured { border-color: var(--itp-blue); box-shadow: 0 10px 30px rgba(37, 99, 235, .12); }
.itp .itp-product h2 { font-size: 20px; font-weight: 700; }
.itp .itp-product__desc { color: var(--itp-body); font-size: 15px; margin-top: 6px; }
.itp .itp-product__price { color: var(--itp-heading); font-size: 38px; font-weight: 800; letter-spacing: -0.02em; margin: 18px 0 6px; }
.itp .itp-product__price small { font-size: 18px; vertical-align: top; }
.itp .itp-product ul { display: grid; gap: 8px; margin: 14px 0 22px; }
.itp .itp-product li { align-items: flex-start; color: var(--itp-body); display: flex; font-size: 15px; gap: 8px; }
.itp-product li svg { color: var(--itp-cyan-text); flex-shrink: 0; height: 16px; margin-top: 3px; width: 16px; }
.itp .itp-product form { margin-top: auto; }
.itp .itp-product .itp-btn { width: 100%; }

/* ── Footer (block 10) ────────────────────────────────────────────── */
.itp-footer { background: #0B1426; color: #B6C0CE; font-size: 15px; padding: 60px 0 28px; }
.itp-footer__grid { display: grid; gap: 32px; grid-template-columns: 1.4fr 1fr 1fr 1fr; }
.itp-footer__brand p { color: #B6C0CE; line-height: 1.6; margin-top: 14px !important; max-width: 300px; }
html body .itp-brand--light .itp-brand__text { color: #fff; }
html body .itp-brand--light .itp-brand__text em { color: var(--itp-cyan-light); }
.itp-footer .itp-fcol__h { color: #fff; font-size: 15px; font-weight: 700; letter-spacing: .02em; margin: 0 0 12px; }
.itp-fcol__toggle { display: none; }
.itp-fcol__list li a { align-items: center; color: #B6C0CE; display: inline-flex; min-height: 44px; }
.itp-fcol__list li a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.itp-footer__bottom { align-items: center; border-top: 1px solid rgba(255, 255, 255, .12); display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; margin-top: 40px; padding-top: 16px; }
.itp-footer__bottom p { color: #A3AEBD; font-size: 14px; }
.itp-footer__bottom a { color: #C7CFDA; display: inline-flex; min-height: 44px; align-items: center; }
.itp-footer__bottom a:hover { color: #fff; text-decoration: underline; }
.itp-footer :focus-visible { outline-color: var(--itp-cyan-light); }

/* ── Responsive ───────────────────────────────────────────────────── */
@media (max-width: 1023px) {
    .itp-section { padding: 64px 0; }
    .itp-section--tight { padding: 44px 0; }
    .itp-trust { padding: 36px 0 8px; }
    .itp-trust__list { gap: 16px; grid-auto-rows: 1fr; grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .itp .itp-stat { align-items: center; flex-direction: row; gap: 16px; padding: 20px 22px; }
    .itp-vgrid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .itp-egrid, .itp-mini { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .itp-band__inner { grid-template-columns: minmax(0, 1fr); gap: 26px; }
    .itp-examgrid { grid-template-columns: 1fr; }
    .itp-examgrid__side { position: static; }
    .itp-footer__grid { grid-template-columns: 1fr 1fr 1fr; }
    .itp-footer__brand { grid-column: 1 / -1; }
    .itp-azgroup ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .itp-for, .itp-steps { grid-template-columns: 1fr; }
    .itp-products { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 639px) {
    .itp-wrap { padding: 0 16px; }
    .itp-header__inner { height: 60px; }
    .itp-mobile { max-height: calc(100vh - 60px); }
    .itp-section { padding: 52px 0; }
    .itp-section--tight { padding: 36px 0; }
    .itp .itp-lead, .itp .itp-pagehead p, .itp .itp-band__copy p { font-size: 17px; }
    .itp-hero { padding: 52px 0 56px; }
    .itp .itp-hero__text { font-size: 17px; }
    .itp-ac--hero { flex-direction: column; padding: 8px; }
    .itp-ac--hero .itp-btn, .itp-pagehead__search .itp-btn { width: 100%; }
    .itp-pagehead__search .itp-ac { flex-direction: column; }
    .itp .itp-hero__secondary { justify-content: center; width: 100%; }
    .itp-trust { padding: 28px 0 4px; }
    .itp-trust__list { gap: 12px; grid-template-columns: minmax(0, 1fr); }
    .itp .itp-stat { border-radius: 16px; gap: 14px; padding: 16px 18px; }
    .itp .itp-stat__icon { border-radius: 12px; height: 46px; width: 46px; }
    .itp .itp-stat__icon svg { height: 23px; width: 23px; }
    .itp .itp-stat__value { font-size: 24px; }
    .itp .itp-stat__label { font-size: 14px; }
    .itp-vgrid { gap: 10px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .itp .itp-vtile { align-items: flex-start; flex-direction: column; gap: 10px; padding: 14px; }
    .itp .itp-vtile__mark { height: 38px; width: 38px; font-size: 14px; }
    .itp-band { padding: 48px 0; }
    .itp-picker { padding: 16px; }
    .itp-picker__row { flex-direction: column; }
    .itp-picker__row .itp-btn { width: 100%; }
    .itp-band--card { padding: 26px 20px; }
    .itp-band--card .itp-btn { width: 100%; }
    .itp-formats, .itp-why, .itp-egrid, .itp-mini, .itp-checks--grid, .itp-products, .itp-products--2 { grid-template-columns: 1fr; }
    .itp .itp-card, .itp .itp-step, .itp-helps { padding: 22px; }
    .itp .itp-card--row { flex-direction: column; gap: 12px; }
    .itp-faq summary { font-size: 16px; padding: 14px 16px; }
    .itp .itp-faq__a { padding: 0 16px 16px; }
    .itp-pagehead { padding: 30px 0 26px; }
    .itp-pagehead__row { align-items: flex-start; flex-direction: column; gap: 14px; }
    .itp .itp-facts { grid-template-columns: 1fr; }
    .itp .itp-fact:nth-child(odd) { padding-right: 0; }
    .itp-more__list { columns: 1; }
    .itp-azgroup { grid-template-columns: 1fr; gap: 6px; }
    .itp-azgroup ul { grid-template-columns: 1fr; }
    .itp .itp-rows li { flex-direction: column; gap: 12px; padding: 20px; }
    .itp-ac__opt a { grid-template-columns: auto 1fr; }
    html body .itp-ac__k { display: none; }

    /* footer columns become accordions; the disclaimer stays visible */
    .itp-footer { padding-top: 44px; }
    .itp-footer__grid { gap: 0; grid-template-columns: 1fr; }
    .itp-footer__brand { margin-bottom: 18px; }
    .itp-js .itp-fcol { border-top: 1px solid rgba(255, 255, 255, .12); }
    .itp-js .itp-fcol__label { border: 0; clip: rect(0 0 0 0); height: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute; width: 1px; }
    .itp-js .itp-fcol__h { margin: 0; }
    .itp-js .itp-fcol__toggle { align-items: center; background: none; border: 0; color: #fff; cursor: pointer; display: flex; font-size: 16px; font-weight: 700;
                                justify-content: space-between; min-height: 52px; padding: 0; width: 100%; }
    .itp-fcol__toggle svg { height: 16px; transition: transform .16s; width: 16px; }
    .itp-fcol.is-open .itp-fcol__toggle svg { transform: rotate(180deg); }
    .itp-js .itp-fcol:not(.is-open) .itp-fcol__list { display: none; }
    .itp-fcol__list { padding-bottom: 12px !important; }
    .itp-fcol__list li a { min-height: 44px; }
    .itp-footer__bottom { margin-top: 18px; }

    /* body copy is at least 16px on mobile */
    .itp .itp-picker__note, .itp .itp-buy__note, .itp .itp-alert, .itp .itp-note, .itp .itp-mini__name, .itp .itp-product__desc,
    .itp-footer, .itp-footer__bottom p, .itp-footer__brand p { font-size: 16px; }
}
@media (max-width: 380px) {
    html body .itp-brand__text { font-size: 19px; }
    .itp-brand svg { height: 30px; width: 30px; }
    html body .itp-icon-btn { width: 42px; }
}
@media (prefers-reduced-motion: reduce) {
    .itp *, .itp-header *, .itp-footer * { scroll-behavior: auto !important; transition: none !important; }
}
html { scroll-padding-top: 88px; }
@media (prefers-reduced-motion: no-preference) { html:has(body.itp-page) { scroll-behavior: smooth; } }

/* Shared account pages (My Content): wide tables scroll inside their own box on narrow screens
   instead of widening the page. Desktop layout is unchanged. */
@media (max-width: 1023px) {
    html body .er-acct-table { display: block; max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
}

/* Account forms (password reset, contact) */
.itp-authcard { display: grid; gap: 14px; }
.itp-authcard .itp-h3 { margin-bottom: 0; }
.itp-form { display: grid; gap: 10px; }
.itp .itp-form label { color: var(--itp-heading); font-size: 15px; }
html body .itp-form :is(input, textarea) { background: #fff; border: 1.5px solid var(--itp-border-2); border-radius: 10px; color: var(--itp-heading); font-size: 16px; min-height: 48px; padding: 10px 14px; width: 100%; }
html body .itp-form textarea { min-height: 140px; resize: vertical; }
.itp-form :is(input, textarea):focus { border-color: var(--itp-blue); box-shadow: 0 0 0 3px rgba(37, 99, 235, .18); outline: none; }
.itp-form .itp-btn { margin-top: 6px; width: 100%; }
.itp-authcard__foot { margin-top: 4px; }
.itp-contactgrid { align-items: start; display: grid; gap: 24px; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); }
.itp .itp-contact__email { color: var(--itp-blue-hover); font-size: 20px; font-weight: 700; overflow-wrap: anywhere; }
.itp-hp { height: 1px; left: -9999px; overflow: hidden; position: absolute; width: 1px; }
@media (max-width: 1023px) { .itp-contactgrid { grid-template-columns: 1fr; } }
