/*
 * InstaPrints design system — ported from the reference app's src/styles.css
 * (oklch custom properties) into static hex values Bootstrap 5.3 can use
 * directly. See the Phase 1 spec §4 for the full oklch→hex table.
 */
:root {
  --ip-background: #F8F8FA;
  --ip-foreground: #343154;
  --ip-card: #FFFFFF;
  --ip-primary: #2E2E52;
  --ip-primary-foreground: #FDFDFD;
  --ip-secondary: #EEEFF6;
  --ip-muted: #EFEFF3;
  --ip-muted-foreground: #6B6B85;
  --ip-accent: #E3EEFB;
  --ip-destructive: #D53427;
  --ip-border: #D9DAE3;
  --ip-brand: #465AF7;
  --ip-cyan: #4FA7C4;
  --ip-cyan-deep: #337E97;
  --ip-success: #377E5E;
  --ip-foil-gold: #CBA35C;
  --ip-foil-silver: #D7D8DD;
  --ip-radius: 0.75rem;
  --ip-shadow-print: 0 18px 40px -18px rgba(46, 46, 82, .35);
  --ip-gradient-brand: linear-gradient(135deg, var(--ip-brand), var(--ip-cyan-deep));
  --ip-font-display: Helvetica, Arial, sans-serif;
  --ip-font-sans: 'Inter', system-ui, sans-serif;
}

body {
  background: var(--ip-background);
  color: var(--ip-foreground);
  font-family: var(--ip-font-sans);
}

h1, h2, h3, .font-display { font-family: var(--ip-font-display); }

a { color: var(--ip-brand); text-decoration: none; }
a:hover { color: var(--ip-primary); }

.ip-navbar { background: #fff; border-bottom: 1px solid var(--ip-border); }
.ip-navbar .nav-link { color: var(--ip-foreground); font-weight: 600; font-size: .9rem; }
.ip-navbar .nav-link.active, .ip-navbar .nav-link:hover { color: var(--ip-brand); }

.ip-hero { background: linear-gradient(135deg, #EEF1FB, #E7F4F8); }

/* Centred content column (matches reference: ~1152px max, backgrounds stay full-bleed). */
.ip-wrap {
  padding-left: max(1.5rem, calc((100% - 1152px) / 2));
  padding-right: max(1.5rem, calc((100% - 1152px) / 2));
}
/* Narrow pages (login, forms, documents) set an inline max-width. With border-box sizing the wide-screen side padding above
   used up that whole width and squeezed the content to a sliver, so the cap must apply to the content box instead. */
.ip-wrap[style*="max-width"] { box-sizing: content-box; }

/* Full-width hero banner: the supplied photo spans the whole width and the copy sits on its pale left side. */
.ip-hero-full {
  position: relative;
  background: #DDE5EE url('../img/instaprint-hero.jpg?v=2') center right / cover no-repeat;   /* default; a slide sets its own background-image inline */
  /* Browsers that understand image-set(type()) take the smaller WebP; the rest ignore this line and keep the JPEG above. */
  background-image: image-set(url('../img/optimised/instaprint-hero-1280.webp?v=2') type('image/webp'), url('../img/instaprint-hero.jpg?v=2') type('image/jpeg'));
  min-height: clamp(380px, 28vw, 540px);
  display: flex;
  align-items: center;
}
.ip-hero-carousel .carousel-item { transition: transform .6s ease-in-out; }
@media (prefers-reduced-motion: reduce) { .ip-hero-carousel .carousel-item { transition: none; } }
.ip-hero-carousel .carousel-indicators { margin-bottom: .6rem; }
.ip-hero-carousel .carousel-indicators [data-bs-target] { background-color: var(--ip-primary); width: 10px; height: 10px; border-radius: 50%; border: 0; margin: 0 5px; }
.ip-hero-carousel .carousel-control-prev, .ip-hero-carousel .carousel-control-next { width: 4rem; }
.ip-hero-carousel .carousel-control-prev-icon, .ip-hero-carousel .carousel-control-next-icon { background-color: rgba(16,33,58,.55); border-radius: 50%; background-size: 55%; width: 2.4rem; height: 2.4rem; }
.ip-hero-noveil::before { display: none; }
.ip-logo-head { height: 48px; width: auto; }
.ip-logo-foot { height: 40px; width: auto; }
.ip-logo-white { filter: brightness(0) invert(1); }
@media (max-width: 575.98px) { .ip-logo-head { height: 40px; } }
.ip-hero-full::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(228,235,243,.96) 0%, rgba(228,235,243,.85) 28%, rgba(228,235,243,.35) 42%, rgba(228,235,243,0) 52%);
}
.ip-hero-full > * { position: relative; width: 100%; }
.ip-hero-full.ip-wrap { padding-left: max(1.5rem, calc((100% - 1320px) / 2)); }
.ip-hero-copy { max-width: 470px; padding: 2.5rem 0; }
.ip-hero-eyebrow { font-weight: 600; text-transform: uppercase; letter-spacing: .08em; font-size: .8rem; color: var(--ip-primary); margin-bottom: 1rem; }
.ip-hero-title { font-weight: 800; color: var(--ip-primary); font-size: clamp(2.8rem, 5vw, 4.4rem); line-height: 1.05; margin: 0 0 .9rem; letter-spacing: -.01em; }
.ip-hero-tag { font-weight: 700; color: var(--ip-primary); font-size: clamp(1.3rem, 2vw, 1.7rem); margin-bottom: 1rem; }
.ip-hero-text { color: #243449; font-size: clamp(1rem, 1.2vw, 1.1rem); line-height: 1.55; max-width: 400px; margin-bottom: 1.6rem; }
.ip-hero-btn { padding: .8rem 1.4rem !important; font-size: 1rem !important; border-radius: 999px !important; text-decoration: none; display: inline-flex; align-items: center; }
.ip-hero-full .btn-ip-outline { background: #fff; border-color: #fff; color: var(--ip-primary); box-shadow: 0 1px 3px rgba(16,33,58,.12); }
.ip-hero-full .btn-ip-outline:hover { background: var(--ip-primary); color: #fff; }
.ip-hero-note { color: #243449; font-size: .9rem; }
@media (max-width: 991.98px) {
  .ip-hero-full::before { background: linear-gradient(90deg, rgba(228,235,243,.95) 0%, rgba(228,235,243,.8) 60%, rgba(228,235,243,.45) 100%); }
}
@media (max-width: 575.98px) {
  .ip-hero-full { min-height: 440px; background-position: 72% center; }
  .ip-hero-full::before { background: rgba(228,235,243,.86); }
}

.ip-card {
  background: var(--ip-card);
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: var(--ip-shadow-print);
  border: none;
}
.ip-card img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
/* Images now carry width/height attributes (for layout stability); height:auto lets aspect-ratio decide the shape so they are never stretched. */
.ip-card img, picture img { height: auto; }

/* Compact product cards, as in the reference: inset rounded image, small type, tight padding. */
.ip-pcard { padding: .6rem; border-radius: .9rem; }
.ip-pcard img { border-radius: .6rem; aspect-ratio: 1 / .92; }
.ip-pcard .ip-pbody { padding: .75rem .35rem .3rem; }
.ip-pcard .ip-pname { font-size: 1rem; font-weight: 700; }
.ip-pcard .ip-pdesc { font-size: .9rem; line-height: 1.4; color: var(--ip-muted-foreground); margin-bottom: .6rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.8em; }
.ip-pcard .ip-chip { font-size: .62rem; padding: .12rem .45rem; }
.ip-pcard .ip-pfrom { font-size: .62rem; color: var(--ip-muted-foreground); }
.ip-pcard .ip-pprice { font-size: 1rem; font-weight: 700; color: var(--ip-primary); line-height: 1.2; }
.ip-pcard .ip-plink { font-size: .66rem; font-weight: 600; }
.ip-pfoot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: .5rem; }
/* Product call-to-action button: 44px+ touch target, visible focus, same palette as the other buttons. */
.ip-cta-btn { display: inline-flex; align-items: center; justify-content: center; gap: .4rem; min-height: 44px; padding: .55rem 1rem; border-radius: 999px; background: var(--ip-primary); color: #fff; font-weight: 600; font-size: .8rem; line-height: 1.1; text-decoration: none; border: 2px solid var(--ip-primary); transition: background .15s, color .15s, box-shadow .15s; }
.ip-cta-btn:hover { background: #1f1f3d; color: #fff; }
.ip-cta-btn:focus-visible { outline: 3px solid #8FA8FF; outline-offset: 2px; }
.ip-cta-btn:active { transform: translateY(1px); }
.ip-cta-btn[aria-disabled="true"], .ip-cta-btn.disabled { opacity: .55; pointer-events: none; }
.ip-pfoot .ip-cta-btn:not(.ip-cta-btn--quote) { background: #D1450E; border-color: #D1450E; font-size: .95rem; }
.ip-pfoot .ip-cta-btn:not(.ip-cta-btn--quote):hover { background: #B93C0B; border-color: #B93C0B; }
.ip-cta-btn--quote { background: #fff; color: var(--ip-primary); }
.ip-cta-btn--quote:hover { background: var(--ip-primary); color: #fff; }
.ip-cta-btn--sm { min-height: 44px; font-size: .75rem; }
.ip-pfoot .ip-cta-btn { flex: 1 1 auto; }
@media (max-width: 575.98px) { .ip-pfoot .ip-cta-btn { width: 100%; } }

.ip-chip {
  background: var(--ip-muted);
  color: var(--ip-muted-foreground);
  font-size: .72rem;
  padding: .2rem .55rem;
  border-radius: 999px;
  display: inline-block;
}

.btn-ip-primary {
  background: var(--ip-primary);
  color: #fff;
  border-radius: 999px;
  padding: .7rem 1.5rem;
  font-weight: 600;
  border: none;
}
.btn-ip-primary:hover { background: #1f1f3d; color: #fff; }

.btn-ip-outline {
  background: #fff;
  color: var(--ip-primary);
  border: 1px solid var(--ip-border);
  border-radius: 999px;
  padding: .7rem 1.5rem;
  font-weight: 600;
}

.ip-why-band { background: #15204A; color: #fff; }
.ip-why-band .ip-why-body { color: #AEB4D6; font-size: .85rem; }

.ip-footer { background: #0E1733; color: #AEB4D6; }
.ip-footer a { color: #AEB4D6; }
.ip-footer a:hover { color: #fff; }
.ip-footer .ip-footer-heading { color: #fff; font-weight: 700; margin-bottom: .6rem; }

.ip-swatch {
  border: 2px solid var(--ip-border);
  border-radius: .6rem;
  padding: .6rem;
  cursor: pointer;
  background: #fff;
  transition: border-color .15s;
}
.ip-swatch img { width: 100%; height: 56px; object-fit: cover; border-radius: .4rem; margin-bottom: .4rem; }
.ip-swatch.active, .ip-swatch:hover { border-color: var(--ip-brand); }
.ip-swatch .lbl { font-size: .8rem; font-weight: 700; color: var(--ip-primary); }
.ip-swatch .sub { font-size: .7rem; color: var(--ip-muted-foreground); }

.ip-step-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 22px; height: 22px; border-radius: 999px;
  background: var(--ip-primary); color: #fff; font-size: .72rem; font-weight: 700; margin-right: .4rem;
}

.ip-price-panel {
  background: #fff; border-radius: 1rem; padding: 1.25rem;
  box-shadow: var(--ip-shadow-print); position: sticky; top: 1rem;
}

.ip-cta-band {
  border-radius: 1.25rem;
  background: linear-gradient(120deg, var(--ip-brand), var(--ip-cyan-deep));
  color: #fff; padding: 3rem; text-align: center;
}

@media print {
  @page { size: A4; margin: 15mm; }
  body { background: #fff; color: var(--ip-foreground); font-size: 10pt; }
  header, footer, .print-hide { display: none !important; }
  .print-document { max-width: none; margin: 0; padding: 0; }
  .print-document section, .print-document tr { break-inside: avoid; }
  .print-document thead { display: table-header-group; }
}

/* Artwork upload widget (product + cart pages) */
.ip-dropzone { cursor: pointer; transition: background .15s, border-color .15s; background: #fff; }
.ip-dropzone:hover, .ip-dropzone:focus-visible, .ip-dropzone.is-over { background: #EEF1FB; border-color: var(--ip-brand) !important; outline: none; }
.ip-art-row { padding: .45rem .6rem; border: 1px solid var(--ip-border); border-radius: .6rem; background: #fff; margin-bottom: .4rem; }
.ip-art-row[data-status="error"] { border-color: #f1b0b7; background: #fff5f6; }
.ip-art-row .btn-link { font-size: .78rem; }

/* ---------- Admin shell: left sidebar + content area ---------- */
.admin-body { background: var(--ip-background); }
.admin-shell { display: flex; min-height: 100vh; }
.admin-side {
  --bs-offcanvas-bg: var(--ip-primary); --bs-offcanvas-color: #C9CBE3; --bs-offcanvas-border-width: 0;
  width: 256px; flex: 0 0 256px; background-color: var(--ip-primary) !important; color: #C9CBE3;
  display: flex; flex-direction: column; padding: 0 0 12px; border: 0;
}
@media (min-width: 992px) {
  .admin-side { position: sticky; top: 0; height: 100vh; overflow-y: auto; }
}
@media (max-width: 991.98px) {
  .admin-side { --bs-offcanvas-width: 280px; overflow-y: auto; }
}
.admin-brand { display: flex; align-items: center; gap: .6rem; padding: 1.1rem 1.25rem; border-bottom: 1px solid rgba(255,255,255,.08); }
.admin-brand img { width: auto; }
.admin-brand-tag { font-size: .65rem; letter-spacing: .08em; text-transform: uppercase; background: rgba(255,255,255,.14); color: #fff; border-radius: 999px; padding: .15rem .55rem; }
.admin-nav { padding: .5rem .75rem; flex: 1 1 auto; }
.admin-nav-heading { font-size: .68rem; letter-spacing: .09em; text-transform: uppercase; color: #9497BC; padding: 1rem .75rem .35rem; }
.admin-nav-link {
  display: flex; align-items: center; gap: .7rem; padding: .5rem .75rem; margin: 1px 0; border-radius: 8px;
  color: #D5D7EA; text-decoration: none; font-size: .9rem; font-weight: 500; transition: background .12s, color .12s;
}
.admin-nav-link i { font-size: 1.05rem; width: 1.2rem; text-align: center; opacity: .85; }
.admin-nav-link:hover { background: rgba(255,255,255,.08); color: #fff; }
.admin-nav-link.active { background: var(--ip-brand); color: #fff; box-shadow: 0 2px 8px rgba(92,110,248,.35); }
.admin-nav-link.active i { opacity: 1; }
.admin-nav-badge { margin-left: auto; background: var(--ip-destructive); color: #fff; font-size: .7rem; font-weight: 700; border-radius: 999px; padding: .05rem .5rem; }
.admin-side-foot { padding: .5rem .75rem 0; border-top: 1px solid rgba(255,255,255,.08); margin: 0 0 0; }
.admin-main { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; }
.admin-topbar { display: flex; align-items: center; gap: .75rem; padding: .65rem 1.5rem; background: #fff; border-bottom: 1px solid var(--ip-border); position: sticky; top: 0; z-index: 5; }
.admin-content { flex: 1 1 auto; }
/* Pages were written for the public 1152px column; inside the admin shell they use the available width instead. */
.admin-content .ip-wrap, .admin-content .ip-wrap[style*="max-width"] { padding-left: 1.75rem; padding-right: 1.75rem; box-sizing: border-box; }
.admin-content .table-responsive, .admin-content table { max-width: 100%; }

/* ---- Product page ---- */
.ip-config-card { background: #fff; border: 1px solid var(--ip-border); border-radius: .85rem; padding: .7rem 1rem .85rem; }
.ip-pdp .ip-config-card.mb-3 { margin-bottom: .6rem !important; }
.ip-config-title { font-size: .95rem; font-weight: 700; margin: 0 0 .5rem; color: var(--ip-primary); }
.ip-config-card .ip-swatch { padding: .45rem .55rem; }
.ip-config-card .ip-swatch img { height: 40px; margin-bottom: .25rem; }
/* Option cards with a picture: a clear square picture, label underneath, a tick when chosen, and an enlarge button. */
.ip-swatch-col { position: relative; }
.ip-config-card .ip-swatch.has-img { padding: .35rem .35rem .5rem; text-align: center; display: flex; flex-direction: column; }
.ip-config-card .ip-swatch.has-img img { height: auto; aspect-ratio: 1 / 1; object-fit: cover; border-radius: .5rem; margin: 0 0 .4rem; background: #EEEFF6; }
.ip-config-card .ip-swatch.has-img .lbl { font-size: .82rem; line-height: 1.25; }
.ip-config-card .ip-swatch.has-img .sub { font-size: .72rem; line-height: 1.3; margin-top: .15rem; }
.ip-swatch.has-img.active { border-color: var(--ip-brand); box-shadow: 0 0 0 2px var(--ip-brand); }
.ip-swatch.has-img.active::after { content: "\2713"; position: absolute; top: .55rem; left: .55rem; width: 1.4rem; height: 1.4rem; border-radius: 50%; background: var(--ip-brand); color: #fff; font-size: .85rem; font-weight: 700; line-height: 1.4rem; text-align: center; }
.ip-swatch-zoom { position: absolute; right: .55rem; top: .55rem; width: 1.9rem; height: 1.9rem; border: 0; border-radius: 50%; background: rgba(255,255,255,.92); color: var(--ip-primary); box-shadow: 0 1px 4px rgba(0,0,0,.25); display: flex; align-items: center; justify-content: center; font-size: .9rem; cursor: zoom-in; }
.ip-swatch-zoom:hover, .ip-swatch-zoom:focus-visible { background: #fff; outline: 2px solid var(--ip-brand); }
.ip-zoom-dialog { border: 0; border-radius: .85rem; padding: .75rem; max-width: min(92vw, 640px); }
.ip-zoom-dialog::backdrop { background: rgba(10,14,40,.6); }
.ip-zoom-dialog img { display: block; width: 100%; height: auto; border-radius: .6rem; }
.ip-zoom-dialog .ip-zoom-cap { font-weight: 700; margin: .5rem 0 .25rem; color: var(--ip-primary); }
@media (max-width: 575.98px) { .ip-config-card .ip-swatch.has-img .lbl { font-size: .78rem; } }
.ip-config-title label { font: inherit; margin: 0; }
.ip-swatch:focus-visible, .ip-thumb:focus-visible { outline: 3px solid var(--ip-brand); outline-offset: 2px; }
.ip-swatch.active { box-shadow: 0 0 0 1px var(--ip-brand); }
.ip-gallery-main { background: #EEEFF6; border-radius: 1rem; overflow: hidden; aspect-ratio: 4 / 3; }
.ip-gallery-main img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ip-gallery-thumbs { display: flex; gap: .5rem; flex-wrap: wrap; margin-top: .5rem; }
.ip-thumb { width: 64px; height: 64px; padding: 0; border: 2px solid var(--ip-border); border-radius: .5rem; overflow: hidden; background: #fff; cursor: pointer; }
.ip-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ip-thumb.active { border-color: var(--ip-brand); }
.ip-mobile-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 1030; display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: .6rem 1rem; background: #fff; border-top: 1px solid var(--ip-border); box-shadow: 0 -4px 16px rgba(0,0,0,.08); }
@media (max-width: 991.98px) { .ip-pdp { padding-bottom: 5rem !important; } .ip-price-panel { position: static; } }
@media (prefers-reduced-motion: reduce) { .ip-swatch, .fade, .collapsing { transition: none !important; } }
.ip-template-card { background: #F6F7FC; border: 1px solid var(--ip-border); border-radius: .75rem; padding: .85rem 1rem; }

/* ---- Help centre ---- */
.ip-help-card { display: block; background: #fff; border: 1px solid var(--ip-border); border-radius: 1rem; padding: 1rem 1.25rem; color: inherit; text-decoration: none; }
a.ip-help-card:hover, a.ip-help-card:focus-visible { border-color: var(--ip-brand); }
.ip-help-body { line-height: 1.7; font-size: 1.02rem; }
.ip-help-body h2, .ip-help-body h3 { margin-top: 1.5rem; color: var(--ip-primary); }
.ip-help-body img { max-width: 100%; height: auto; }

/* CTA variants, strip and scrolling row (Admin > Marketing) */
.ip-cta-btn--soft { background: #E3ECFF; color: #1F3F8F; border-color: #E3ECFF; }
.ip-cta-btn--soft:hover { background: #cfdcff; color: #1F3F8F; }
.ip-cta-text { display: inline-flex; align-items: center; gap: .35rem; min-height: 44px; font-weight: 600; color: var(--ip-primary); text-decoration: underline; }
.ip-cta-strip { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.1rem 1.25rem; border-radius: 1rem; background: var(--ip-secondary); border: 1px solid var(--ip-border); }
.ip-cta-band.ip-cta-strip { background: var(--ip-primary); color: #fff; border: 0; }
.ip-cta-band .ip-cta-btn { background: #fff; color: var(--ip-primary); border-color: #fff; }
.ip-cta-eyebrow { font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; opacity: .75; }
.ip-cta-sub { font-weight: 600; max-width: 46ch; }
.ip-scroll-row { display: flex; gap: 1rem; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: .5rem; }
.ip-scroll-item { flex: 0 0 min(280px, 80%); scroll-snap-align: start; }
@media (prefers-reduced-motion: reduce) { .ip-cta-btn { transition: none; } }

.ip-sticky-cta { position: fixed; right: 1rem; bottom: 4.5rem; z-index: 1030; display: flex; gap: .5rem; }
.ip-sticky-cta .ip-cta-btn { box-shadow: 0 6px 18px rgba(14,23,51,.3); }

/* ---- Accessibility (WCAG 2.1 AA) ---- */
.ip-skip { position: absolute; left: .5rem; top: .5rem; z-index: 2000; padding: .6rem 1rem; background: #fff; color: #1F3F8F; border: 2px solid #1F3F8F; border-radius: .4rem; font-weight: 600; }
.ip-skip:focus { outline: 3px solid #1F3F8F; outline-offset: 2px; }
main:focus { outline: none; }
:focus-visible { outline: 3px solid #1F3F8F; outline-offset: 2px; box-shadow: 0 0 0 5px #fff; }
.admin-side :focus-visible, .ip-footer :focus-visible, .ip-pfoot :focus-visible { outline-color: #fff; box-shadow: 0 0 0 5px #1F3F8F; }
.text-warning { color: #906C00 !important; }
.text-info { color: #087C93 !important; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto !important; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* ---- Configurator extras: scaled size pictures, fold diagrams, quote prompt ---- */
.ip-sizeico, .ip-foldico { display: block; margin: 0 auto .25rem; color: var(--ip-primary); }
.ip-foldico { width: 100%; max-width: 100px; height: auto; }
.ip-swatch .ip-dims { font-variant-numeric: tabular-nums; }
.ip-quote-cta { border: 1px dashed var(--ip-brand); border-radius: .7rem; padding: .8rem; margin-bottom: .8rem; background: #f5f8ff; }
[data-custom-orient] { display: inline-flex; align-items: center; }

/* ---- Admin menu: collapsible groups + search ---- */
.admin-nav-search { position: relative; padding: .75rem .75rem 0; }
.admin-nav-search i { position: absolute; left: 1.5rem; top: 1.35rem; color: #C4C7E2; font-size: .85rem; pointer-events: none; }
.admin-nav-search input { width: 100%; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.12); color: #fff; border-radius: 8px; padding: .45rem .75rem .45rem 2rem; font-size: .88rem; }
.admin-nav-search input::placeholder { color: #C4C7E2; }
.admin-nav-search input:focus-visible { outline: 2px solid #fff; background: rgba(255,255,255,.14); }
.admin-nav-toggle { display: flex; align-items: center; gap: .7rem; width: 100%; background: none; border: 0; color: #E4E6F5; padding: .55rem .75rem; margin-top: 2px; border-radius: 8px; font-size: .9rem; font-weight: 600; text-align: left; }
.admin-nav-toggle:hover { background: rgba(255,255,255,.08); color: #fff; }
.admin-nav-toggle:focus-visible { outline: 2px solid #fff; }
.admin-nav-toggle > i:first-child { font-size: 1.05rem; width: 1.2rem; text-align: center; opacity: .9; }
.admin-nav-count { margin-left: auto; font-size: .7rem; color: #C4C7E2; font-weight: 500; }
.admin-nav-chev { font-size: .7rem; transition: transform .15s; }
.admin-nav-toggle[aria-expanded="true"] .admin-nav-chev { transform: rotate(180deg); }
.admin-nav-items { padding: 0 0 .35rem 1.1rem; margin-left: .55rem; border-left: 1px solid rgba(255,255,255,.1); }
.admin-nav-items[hidden], .admin-nav-empty[hidden] { display: none; }
.admin-nav-items .admin-nav-link { font-size: .86rem; padding: .4rem .65rem; }
.admin-nav-empty { color: #C4C7E2; padding: .5rem .75rem; }

/* ---- Option help ("?" button beside a heading) ---- */
.ip-help-btn { margin-left: .5rem; width: 1.35rem; height: 1.35rem; padding: 0; border-radius: 50%; border: 1px solid var(--ip-border); background: #fff; color: var(--ip-primary); font-size: .75rem; font-weight: 700; line-height: 1; vertical-align: middle; }
.ip-help-btn:hover, .ip-help-btn[aria-expanded="true"] { background: var(--ip-primary); color: #fff; }
.ip-help-btn:focus-visible { outline: 3px solid var(--ip-brand); outline-offset: 2px; }
.ip-help-text { margin: -.2rem 0 .6rem; }
.ip-help-text[hidden] { display: none; }

/* Home hero slides (managed in Admin > Hero slides): copy on a clean panel at the left, the picture beside it. Nothing is written over the photo. */
.ip-hero-split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); background: #E4EBF3; min-height: clamp(380px, 32vw, 520px); }
.ip-hero-split__copy { display: flex; align-items: center; padding: 1.5rem 2rem 1.5rem max(1.5rem, calc((100vw - 1320px) / 2)); }
.ip-hero-split__copy .ip-hero-copy { max-width: 480px; padding: 1rem 0; }
.ip-hero-split__copy .ip-hero-title { font-size: clamp(2.2rem, 3.6vw, 3.4rem); }
.ip-hero-split__copy .btn-ip-outline { background: #fff; border-color: #fff; color: var(--ip-primary); box-shadow: 0 1px 3px rgba(16,33,58,.12); }
.ip-hero-split__copy .btn-ip-outline:hover { background: var(--ip-primary); color: #fff; }
.ip-hero-media { position: relative; overflow: hidden; background: #DDE5EE; }
.ip-hero-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; display: block; }
@media (max-width: 991.98px) {
  .ip-hero-split { grid-template-columns: 1fr; }
  .ip-hero-media { order: -1; aspect-ratio: 16 / 10; }
  .ip-hero-split__copy { padding: 1.25rem 1.5rem 2.25rem; }
}
.ip-hero-carousel .carousel-control-prev, .ip-hero-carousel .carousel-control-next { width: 3rem; }
/* Wide screens: the picture spans the full banner width again (as before) and the text sits over its plain left side on a soft pale fade. Phones/tablets keep picture-above-text. */
@media (min-width: 992px) {
  .ip-hero-split { display: flex; align-items: center; position: relative; }
  .ip-hero-media { position: absolute; inset: 0; order: 0; aspect-ratio: auto; }
  .ip-hero-media img { object-position: right center; }
  .ip-hero-media::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(228,235,243,.96) 0%, rgba(228,235,243,.85) 28%, rgba(228,235,243,.35) 42%, rgba(228,235,243,0) 52%); }
  .ip-hero-split__copy { position: relative; z-index: 1; width: 100%; padding-right: 1.5rem; }
}
