/* UX layer (2026-11-25, phase 1): loaded after the other style sheets. Readable text sizes, comfortable tap targets,
   clean printing, page-to-page transitions and the site search. */

/* 1. No text below 12px */
[class*="text-[9px]"], [class*="text-[10px]"], [class*="text-[11px]"], [class*="text-[11.5px]"] { font-size: 12px !important; line-height: 1.45; }
.idx, .badge, .window-chrome-label { font-size: 12px; }
.ihchip { font-size: 12px; min-height: 44px; }

/* 2. Tap targets of at least 44px (links inside running text are left alone) */
a.inline-flex, button, .btn-gold, .btn-ghost { min-height: 44px; }
footer li > a, footer .space-y-2\.5 a, footer .space-y-3 a { display: inline-flex; align-items: center; min-height: 40px; padding-block: 0; }
@media (pointer: coarse) { footer li > a, footer .space-y-2\.5 a, footer .space-y-3 a { min-height: 44px; } }
footer a.flex.items-center.gap-3 { min-height: 44px; }
footer a[aria-label] { width: 44px; height: 44px; }
#menu-toggle { min-width: 44px; min-height: 44px; }
nav a.flex.items-center.gap-3 { min-height: 44px; }
.ihpanel button, .cf-step button { min-height: 44px; }

/* 3. Page-to-page transitions (browsers that support them; others just navigate) */
@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: 0.22s; }
@media (prefers-reduced-motion: reduce) { @view-transition { navigation: none; } }

/* 4. Share bar */
.ih-share { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 18px; }
.ih-share button { display: inline-flex; align-items: center; gap: 8px; padding: 0 16px; min-height: 44px; border: 1px solid rgba(148, 163, 184, 0.3); background: transparent; color: #cbd5e1; font: 600 12px "Plus Jakarta Sans", sans-serif; letter-spacing: 0.04em; cursor: pointer; transition: border-color .2s, color .2s; }
.ih-share button:hover, .ih-share button:focus-visible { border-color: rgba(212, 175, 55, 0.7); color: #fff; }
.ih-share [data-state="done"] { border-color: rgba(212, 175, 55, 0.7); color: #E6C687; }

/* 5. Site search (press / or use the search button) */
#ih-search-btn { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border: 1px solid rgba(148, 163, 184, 0.25); background: transparent; color: #cbd5e1; cursor: pointer; }
#ih-search-btn:hover, #ih-search-btn:focus-visible { border-color: rgba(212, 175, 55, 0.6); color: #E6C687; }
#ih-search { position: fixed; inset: 0; z-index: 120; display: none; background: rgba(5, 8, 14, 0.82); backdrop-filter: blur(6px); padding: 8vh 16px 16px; overflow-y: auto; }
#ih-search[data-open="true"] { display: block; }
#ih-search .ih-search__panel { max-width: 720px; margin: 0 auto; background: #0F1521; border: 1px solid rgba(212, 175, 55, 0.25); padding: 20px; }
#ih-search .ih-search__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; font: 600 12px ui-monospace, Menlo, monospace; letter-spacing: .16em; color: rgba(212, 175, 55, 0.85); }
#ih-search .ih-search__close { min-width: 44px; min-height: 44px; border: 1px solid rgba(148, 163, 184, 0.25); background: transparent; color: #cbd5e1; cursor: pointer; }
#ih-search { --pagefind-ui-scale: 1; --pagefind-ui-primary: #D4AF37; --pagefind-ui-text: #E2E8F0; --pagefind-ui-background: #0F1521; --pagefind-ui-border: rgba(148, 163, 184, 0.3); --pagefind-ui-tag: rgba(212, 175, 55, 0.15); --pagefind-ui-border-width: 1px; --pagefind-ui-border-radius: 2px; --pagefind-ui-font: "Plus Jakarta Sans", sans-serif; }

/* 6. Printing: just the article or program, on white */
@media print {
  #cookie-notice, #ih-search, #ih-search-btn, .ih-share, footer, nav, #site-nav, #read-progress, .whatsapp-fab, .bg-noise::before { display: none !important; }
  body, main, article { background: #fff !important; color: #111 !important; }
  .glass-card, .glass { background: #fff !important; border-color: #ccc !important; backdrop-filter: none !important; }
  a { color: #111 !important; text-decoration: underline; }
  h1, h2, h3, p, li, span, div { color: #111 !important; }
  section { padding-top: 12px !important; padding-bottom: 12px !important; }
  [class*="bg-"] { background-image: none !important; }
  .reveal { opacity: 1 !important; transform: none !important; }
}

/* 7. Saved shortlist (2026-11-25) */
.ih-share button[aria-pressed="true"] { border-color: rgba(212, 175, 55, 0.7); color: #E6C687; }
.ih-sl-pill { position: fixed; left: 16px; bottom: 16px; z-index: 40; display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; background: #0F1521; border: 1px solid rgba(212, 175, 55, 0.6); color: #E6C687; font: 600 12px "Plus Jakarta Sans", sans-serif; letter-spacing: 0.06em; text-decoration: none; box-shadow: 0 6px 20px rgba(0,0,0,.4); }
.ih-sl-pill:hover, .ih-sl-pill:focus-visible { background: #1a2233; color: #fff; }
.pf-save, .pf-linkbtn { min-height: 44px; padding: 0 14px; border: 1px solid rgba(148, 163, 184, 0.3); background: transparent; color: #cbd5e1; font: 600 12px "Plus Jakarta Sans", sans-serif; cursor: pointer; }
.pf-linkbtn { border: 0; padding: 0; color: #D4AF37; min-height: 44px; font-weight: 500; }
.pf-save:hover, .pf-save:focus-visible { border-color: rgba(212, 175, 55, 0.7); color: #fff; }
.pf-save[aria-pressed="true"] { border-color: rgba(212, 175, 55, 0.7); color: #E6C687; }
.pf-sl__list { list-style: none; margin: 0; padding: 0; }
.pf-sl__row { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; border-top: 1px solid rgba(148, 163, 184, 0.18); }
.pf-sl__name strong { font-family: "Playfair Display", serif; font-size: 18px; color: #F3F4F6; font-weight: 600; }
.pf-sl__name span { color: #9AA3B2; font-size: 13px; }
.pf-sl__facts { margin-top: 4px; font-size: 13px; color: #cbd5e1; }
.pf-sl__url { margin-top: 2px; font-size: 12px; color: #9AA3B2; word-break: break-all; }
.pf-sl__act { display: flex; gap: 8px; align-items: flex-start; flex-shrink: 0; }
.pf-sl__act a, .pf-sl__act button { min-height: 44px; display: inline-flex; align-items: center; padding: 0 12px; font: 600 12px "Plus Jakarta Sans", sans-serif; color: #D4AF37; background: transparent; border: 0; cursor: pointer; text-decoration: none; }
.pf-sl__printonly { display: none; }
@media print {
  .ih-sl-pill { display: none !important; }
  html.printing-sl body * { visibility: hidden !important; }
  html.printing-sl #pf-sl, html.printing-sl #pf-sl * { visibility: visible !important; }
  html.printing-sl #pf-sl { position: absolute; left: 0; top: 0; width: 100%; padding: 0 !important; border: 0 !important; background: #fff !important; }
  html.printing-sl .pf-sl__buttons, html.printing-sl #pf-sl .pf-sl__act, html.printing-sl #pf-sl > p:last-child { display: none !important; }
  html.printing-sl .pf-sl__printonly { display: block; margin-top: 8px; font-size: 12px; color: #444 !important; }
  html.printing-sl .pf-sl__name strong, html.printing-sl .pf-sl__name span, html.printing-sl .pf-sl__facts, html.printing-sl .pf-sl__url, html.printing-sl #pf-sl h3 { color: #111 !important; }
}

/* 8. Intake: restored-answers note, call preference (2026-11-25) */
.cf-restored { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; justify-content: space-between; margin-bottom: 20px; padding: 10px 14px; border: 1px solid rgba(212, 175, 55, 0.35); background: rgba(212, 175, 55, 0.06); color: #cbd5e1; font-size: 13px; }
.cf-restored button { min-height: 44px; padding: 0 8px; background: transparent; border: 0; color: #D4AF37; font: 600 13px "Plus Jakarta Sans", sans-serif; cursor: pointer; text-decoration: underline; }
.cf-call { border: 0; margin: 0; padding: 0; min-width: 0; }

/* 9. Program Watch alerts form (2026-11-25) */
.wa-scope { border: 0; margin: 0; padding: 0; min-width: 0; }
.wa-opt { display: flex; align-items: center; gap: 10px; min-height: 44px; color: #cbd5e1; font-size: 14px; flex-wrap: wrap; }
.wa-select { width: auto; min-width: 160px; margin-left: 6px; }
.wa-hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.ihpanel__save { margin-top: 12px; }

/* 10. Footer legal row: links and the Cookie Settings button share one baseline and size */
footer .flex-wrap { align-items: center; }
footer .flex-wrap > a, footer .flex-wrap > .cookie-settings-trigger { display: inline-flex; align-items: center; min-height: 44px; }
footer .cookie-settings-trigger { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }

/* 11. Footer layout: tighter link columns, three columns on tablets, brand block on its own row (2026-11-26) */
footer ul.space-y-2\.5 > li, footer ul.space-y-3 > li { margin-top: 0 !important; }
footer h4, footer .grid h3 { margin-bottom: 8px; }
@media (min-width: 640px) and (max-width: 1023px) {
  footer .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 32px; row-gap: 32px; }
  footer .grid > div:first-child { grid-column: 1 / -1; }
}
@media (max-width: 639px) {
  footer .grid { row-gap: 24px; padding-bottom: 32px !important; }
  footer .flex.flex-wrap.justify-center { justify-content: flex-start; column-gap: 20px; }
}
/* the copyright line and the legal links: stacked and left-aligned until there is room for one row */
footer .flex.justify-between.items-center { align-items: flex-start; }
footer .flex.justify-between.items-center > .flex-wrap { justify-content: flex-start; column-gap: 22px; }
@media (max-width: 1099px) { footer .flex.justify-between.items-center { flex-direction: column; gap: 4px; } }
@media (min-width: 1100px) { footer .flex.justify-between.items-center { align-items: center; } footer .flex.justify-between.items-center > .flex-wrap { justify-content: flex-end; } }
footer p { line-height: 1.6; }
/* phones: Divisions and Company side by side, Digital Ecosystem full width in two columns (the footer was about 1800 px tall) */
@media (max-width: 639px) {
  footer .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 16px; }
  footer .grid > div:first-child { grid-column: 1 / -1; }
  footer .grid > div:nth-child(2) { order: 1; }
  footer .grid > div:nth-child(4) { order: 2; }
  footer .grid > div:nth-child(3) { order: 3; grid-column: 1 / -1; }
  footer .grid > div:nth-child(3) ul { columns: 2; column-gap: 16px; }
  footer .grid > div:nth-child(3) li { break-inside: avoid; }
}

/* First screen visible in the HTML (no JS fade): a hidden hero delays the largest paint until the script runs. */
.ih-hero-scrim .reveal { opacity: 1; transform: none; transition: none; }
