/*
 * AddBox marketing portal — global styles shared by all editions.
 * Component styling lives inline in the reference markup (exported 1:1 from the design);
 * this file holds base rules, interactive states and breakpoints.
 * Tokens: ../../design/tokens/tokens.css
 */

/* ---------- base ---------- */
html { scroll-padding-top: 88px; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body { margin: 0; background: #ffffff; color: #0f172a; font-family: 'Inter', ui-sans-serif, system-ui, sans-serif; -webkit-font-smoothing: antialiased; }
html[lang|="ar"] body { font-family: 'IBM Plex Sans Arabic', 'Noto Sans Arabic', Tahoma, sans-serif; }
img { max-width: 100%; }
a { color: #003366; }
a:hover { color: #0066cc; }
*:focus-visible { outline: 2px solid #0066cc; outline-offset: 2px; }
input, select, textarea, button { font: inherit; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ---------- show / hide driven by portal.js ---------- */
[data-show] { display: contents; }
[data-show][hidden] { display: none !important; }

/* ---------- disclosure widgets (FAQ, menus) ---------- */
summary { list-style: none; cursor: pointer; }
summary::-webkit-details-marker { display: none; }
details[open] .faq-plus { transform: rotate(45deg); }

/* ---------- tabs ---------- */
.tab[aria-selected="true"] { background: #003366; color: #ffffff; border-color: #003366; }
.tab-dark[aria-selected="true"] { background: #ffffff; color: #003366; border-color: #ffffff; }

/* ---------- contact: who-are-you choice cards ---------- */
.choice { display: flex; align-items: center; gap: 14px; width: 100%; min-height: 76px; padding: 14px 16px; border: 1.5px solid #cbd5e1; border-radius: 16px; background: #ffffff; color: #0f172a; text-align: start; cursor: pointer; font: inherit; transition: border-color .15s, background-color .15s, box-shadow .15s; }
.choice:hover { border-color: #0066cc; }
.choice-ic { flex: none; width: 44px; height: 44px; border-radius: 12px; background: #f1f5f9; color: #475569; display: flex; align-items: center; justify-content: center; }
.choice-dot { flex: none; width: 22px; height: 22px; box-sizing: border-box; border-radius: 999px; border: 2px solid #cbd5e1; background: #ffffff; color: #ffffff; display: flex; align-items: center; justify-content: center; }
.choice-dot svg { opacity: 0; }
.choice[aria-checked="true"] { border-color: #003366; background: #eff6ff; box-shadow: inset 0 0 0 1.5px #003366, 0 10px 15px -3px rgba(0, 51, 102, .15); }
.choice[aria-checked="true"] .choice-ic { background: #003366; color: #ffffff; }
.choice[aria-checked="true"] .choice-dot { background: #003366; border-color: #003366; }
.choice[aria-checked="true"] .choice-dot svg { opacity: 1; }
@media (prefers-reduced-motion: reduce) { .choice { transition: none; } }

/* ---------- forms ---------- */
button[aria-busy="true"] { opacity: .7; cursor: progress; }
input:user-invalid, select:user-invalid, textarea:user-invalid { border-color: #dc2626 !important; }

/* ---------- navigation ---------- */
.nav-links { display: flex; }
.nav-burger { display: none; }
.dd { position: relative; }
.dd > summary { list-style: none; }
.dd-panel { position: absolute; top: calc(100% + 10px); inset-inline-end: 0; z-index: 60; }

/* ---------- breakpoints ---------- */
@media (max-width: 1080px) {
  .nav-links { display: none; }
  .nav-burger { display: block; }
}
@media (max-width: 640px) {
  section > div { padding-top: 64px !important; padding-bottom: 64px !important; }
  .float-card { display: none !important; }
  dl > div { grid-template-columns: 1fr !important; }
  .inset { right: 8px !important; bottom: -20px !important; width: 62% !important; }
  [dir="rtl"] .inset { right: auto !important; left: 8px !important; }
  th, td, caption { padding-left: 14px !important; padding-right: 14px !important; }
  table { font-size: 14px !important; }
}
@media (max-width: 560px) {
  .nav-cta { display: none !important; }
  .cs-label { display: none; }
}
