/* TIMO Oman visual system: local implementation, using TIMO and Salis assets only. */
:root {
  --timo-royal: #1E3C96;
  --timo-sky: #5FA8DC;
  --timo-navy: #183060;
  --timo-panel: #C0D8E0;
  --timo-cream: #fcfbf6;
  --salis-gold: #c5a05d;
  --salis-gold-light: #f2dfb6;
  --timo-ink: #172b4d;
  --timo-muted: #526c83;
  --timo-line: #d6e2e8;
  --timo-shadow: 0 13px 32px rgb(24 48 96 / 9%);
  --timo-shadow-hover: 0 18px 38px rgb(24 48 96 / 14%);
}

html { scroll-padding-top: 170px; }
body { color: var(--timo-ink); background: #fff; font-size: 16px; line-height: 1.82; }
.numeric-range { direction: ltr; unicode-bidi: isolate; white-space: nowrap; }
h1, h2, h3, h4 { color: var(--timo-navy); font-weight: 650; letter-spacing: -.022em; }
h2 { font-size: clamp(31px, 3vw, 44px); line-height: 1.28; }
h3 { font-size: clamp(20px, 1.7vw, 25px); line-height: 1.42; }
.container { width: min(1180px, calc(100% - 48px)); }
.section { padding-block: clamp(70px, 7.5vw, 104px); }
.section-heading { gap: 28px; margin-bottom: 36px; }
.section-heading h2 em { color: var(--timo-royal); }
.section-kicker, .eyebrow { color: var(--timo-royal); font-size: 12px; font-weight: 700; letter-spacing: .075em; }
.section-kicker::before, .section-kicker-blue::before { background: var(--salis-gold) !important; }
.lead { color: var(--timo-muted); font-size: 17px; line-height: 1.9; }
.section-tint { background: linear-gradient(180deg, #f9fcfd 0%, var(--timo-cream) 100%); border-block: 1px solid #e7edf0; }

.button { min-height: 50px; border-radius: 10px; padding: 11px 22px; font-size: 15px; font-weight: 650; box-shadow: 0 5px 13px rgb(24 48 96 / 8%); }
.button-primary { background: var(--timo-royal); color: #fff; }
.button-primary:hover { background: #17347f; box-shadow: 0 10px 20px rgb(24 48 96 / 18%); }
.button-gold { background: var(--salis-gold); border-color: var(--salis-gold); color: #182f5a; box-shadow: 0 8px 18px rgb(105 75 19 / 18%); }
.button-gold:hover { background: #d3b16d; color: #102650; }
.button-hero-outline { color: var(--timo-royal); background: #fff; border-color: #aec8da; }
.button-hero-outline:hover { color: #17347f; background: #f2f8fb; border-color: var(--timo-sky); }
.button-white { color: var(--timo-royal); background: #fff; }
.inline-link { color: var(--timo-royal); font-weight: 700; border-bottom-color: var(--salis-gold); }
.inline-link:hover { color: #17347f; }

/* Header: brand strip with navigation, then the portal strip. */
.site-header { position: sticky; top: 0; z-index: 60; background: #fff; border: 0; box-shadow: 0 3px 15px rgb(24 48 96 / 7%); }
.brand-strip { border-bottom: 1px solid #e5edf1; background: #fff; }
.brand-strip-inner { min-height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.header-brand-pair { display: inline-flex; align-items: center; gap: 15px; min-width: 0; }
.header-brand-pair img { display: block; object-fit: contain; }
.header-timo-logo { width: 160px; height: 43px; }
.header-salis-logo { width: 76px; height: 40px; }
.header-brand-divider { width: 1px; height: 28px; background: #d5e0e6; }
.brand-strip-actions { display: flex; align-items: center; justify-content: flex-end; gap: 14px; min-width: 0; }
.language-switch { min-height: 32px; color: var(--timo-royal); font-size: 12px; font-weight: 700; }
.language-switch .icon { width: 16px; height: 16px; color: var(--timo-sky); }
.portal-bar { overflow-x: auto; color: var(--timo-navy); background: #f2f8fb; border-bottom: 1px solid #dce8ee; scrollbar-width: none; scroll-snap-type: x proximity; }
.portal-bar::-webkit-scrollbar { display: none; }
.portal-bar-inner { min-height: 51px; display: flex; align-items: center; justify-content: center; gap: 8px; padding-block: 6px; white-space: nowrap; }
.portal-bar a { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 37px; padding: 7px 14px; color: #315570; background: #fff; border: 1px solid #d7e5eb; border-radius: 9px; box-shadow: 0 2px 6px rgb(24 48 96 / 5%); font-size: 12px; font-weight: 650; scroll-snap-align: start; transition: border-color .2s, background .2s, color .2s; }
.portal-bar-icon { display: inline-flex; align-items: center; justify-content: center; color: var(--timo-royal); }
.portal-bar-icon .icon { width: 16px; height: 16px; }
.portal-bar a:hover { color: #17347f; background: #edf7fb; border-color: var(--timo-sky); }
.site-nav-row { display: none; }
.main-nav { margin: 0; gap: clamp(9px, 1.25vw, 17px); }
.main-nav a { padding-block: 20px; color: #3e5975; font-size: 12px; font-weight: 600; }
.main-nav a[aria-current='page'], .main-nav a:hover { color: var(--timo-royal); }
.main-nav a[aria-current='page']::after { bottom: 10px; width: 5px; height: 5px; background: var(--salis-gold); }
.nav-more summary { color: #3e5975; font-size: 12px; font-weight: 600; }
.nav-more-list { top: 53px; border-color: var(--timo-line); box-shadow: var(--timo-shadow); }
.header-cta { min-height: 40px; color: #1d315a; background: var(--salis-gold); border-color: var(--salis-gold); padding-inline: 14px; }
.header-cta:hover { color: #1d315a; background: #d3b16d; }

/* Homepage hero and confirmed fact band. */
.home-hero { border-bottom: 4px solid var(--salis-gold); background: linear-gradient(145deg, #ffffff 0%, #f6fbfd 54%, #e7f4fb 100%); }
.home-hero .hero-inner { display: block; min-height: 0; }
.home-hero .hero-copy { width: min(820px, 100%); margin-inline: auto; padding: clamp(56px, 7vw, 88px) 0 clamp(60px, 7vw, 82px); text-align: center; }
.home-hero .hero-overline { margin-bottom: 16px; color: var(--timo-royal); font-size: 11px; font-weight: 700; letter-spacing: .18em; }
.hero-logo-pair { display: flex; align-items: center; justify-content: center; gap: 20px; min-height: 68px; margin: 0 auto 19px; }
.hero-logo-pair img { display: block; width: auto; height: 58px; max-width: none; object-fit: contain; filter: none; }
.hero-logo-pair img:first-child { width: min(330px, 61vw); }
.hero-logo-pair img:last-child { width: min(110px, 22vw); }
.hero-logo-divider { width: 1px; height: 42px; background: #b5cad5; }
.hero-operator-pill { display: inline-flex; align-items: center; justify-content: center; min-height: 30px; margin: 0 0 17px; padding: 4px 13px; color: #4c3912; background: #fbf2dc; border: 1px solid #ead4a0; border-radius: 999px; font-size: 12px; font-weight: 650; }
.home-hero h1 { margin: 0; color: var(--timo-navy); font-size: clamp(38px, 3.55vw, 52px); font-weight: 680; line-height: 1.18; letter-spacing: -.045em; }
.home-hero h1 em { color: var(--timo-royal); font-style: normal; }
.home-hero .hero-description { max-width: 665px; margin: 18px auto 28px; color: #3d5d77; font-size: clamp(16px, 1.5vw, 18px); line-height: 1.9; }
.home-hero .hero-actions { justify-content: center; gap: 12px; }
.home-hero .hero-registration-status { display: inline-flex; align-items: center; gap: 9px; margin: 22px 0 0; color: #48647b; font-size: 13px; font-weight: 600; white-space: nowrap; }
.home-hero .hero-registration-status span { color: var(--timo-royal); }
.home-hero .hero-registration-status i { color: var(--salis-gold); font-style: normal; }
.home-hero .hero-registration-status bdi { color: #48647b; }
.home-facts-band { background: var(--timo-cream); border-bottom: 1px solid #e1e9ed; }
.home-facts-grid { margin-top: 0; border: 0; border-radius: 0; box-shadow: none; background: transparent; }
.home-facts-grid article, .home-facts-grid article:nth-child(even) { min-height: 124px; padding: 22px 18px; background: transparent; border-inline-end: 1px solid #ccdbe2; }
.home-facts-grid strong { color: var(--timo-royal); font-size: clamp(22px, 2.2vw, 31px); font-weight: 700; }
.home-facts-grid span { color: #526d82; font-size: 12px; }

/* The fact section immediately after the hero. */
.about-competition-band { padding-block: clamp(48px, 5vw, 70px); color: #e8f3f8; background: var(--timo-navy); border-bottom: 4px solid var(--salis-gold); }
.about-competition-layout { display: grid; grid-template-columns: minmax(0, .88fr) minmax(0, 1.12fr); align-items: center; gap: clamp(32px, 6vw, 78px); }
.about-competition-copy .section-kicker { color: #f5d99a; }
.about-competition-copy .section-kicker::before { background: #f5d99a !important; }
.about-competition-copy h2 { margin: 10px 0 14px; color: #fff; font-size: clamp(29px, 3vw, 42px); }
.about-competition-copy p:last-child { max-width: 545px; margin: 0; color: #d6e6ef; font-size: 16px; line-height: 1.9; }
.about-facts-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.about-facts-grid article { display: grid; align-content: center; min-height: 112px; padding: 18px 19px; background: rgb(255 255 255 / 8%); border: 1px solid rgb(255 255 255 / 17%); border-radius: 13px; }
.about-facts-grid strong { display: block; color: #fff; font-size: clamp(23px, 2.3vw, 32px); font-weight: 700; line-height: 1.2; }
.about-facts-grid span { display: block; margin-top: 8px; color: #d8e7ef; font-size: 12px; line-height: 1.55; }

/* Repeated visual language across the homepage. */
.home-intro-section { padding-top: clamp(70px, 8vw, 106px); }
.intro-layout, .schools-layout { gap: clamp(34px, 6vw, 78px); }
.home-benefit-grid { gap: 16px; }
.home-benefit-grid article, .home-track-card, .award-card, .home-journey-list li, .school-points article { border-color: var(--timo-line); border-radius: 16px; box-shadow: var(--timo-shadow); }
.home-benefit-grid article { min-height: 210px; padding: 25px; border-top: 4px solid var(--salis-gold); }
.home-benefit-grid article:nth-child(2) { border-top-color: var(--timo-sky); }
.home-benefit-grid article:nth-child(3) { border-top-color: var(--timo-royal); }
.home-benefit-grid article > span { color: var(--timo-royal); font-weight: 700; }
.home-track-grid-refresh { gap: 20px; }
.home-track-card { min-height: 0; padding: 32px; background: #fff; }
.home-track-card::before { height: 5px; background: var(--timo-royal); }
.home-track-iq::before { background: var(--salis-gold); }
.track-label { color: var(--timo-royal); font-size: 26px; font-weight: 700; }
.home-track-label { color: #6e5627; font-weight: 650; }
.home-track-card > p, .home-benefit-grid p, .school-points span { color: var(--timo-muted); }
.track-intro { min-height: 58px; margin: 12px 0 17px; font-size: 15px; line-height: 1.75; }
.track-snapshot { display: grid; gap: 8px; margin: 0 0 22px; padding: 0; list-style: none; }
.track-snapshot li { display: flex; align-items: center; justify-content: space-between; gap: 14px; min-height: 36px; padding: 7px 10px; color: #315570; background: #f4f9fb; border-inline-start: 3px solid var(--timo-sky); border-radius: 7px; font-size: 12px; line-height: 1.45; }
.home-track-iq .track-snapshot li { border-inline-start-color: var(--salis-gold); }
.track-snapshot span { font-weight: 650; }
.track-snapshot bdi { color: var(--timo-navy); font-weight: 700; text-align: end; }
.awards-grid { gap: 20px; }
.award-card { min-height: 0; padding: 28px; overflow: hidden; background: linear-gradient(145deg, #142d5c, #1e3c96); border: 1px solid rgb(255 255 255 / 18%); box-shadow: 0 20px 42px rgb(24 48 96 / 20%); }
.award-card-iq { background: linear-gradient(145deg, #1e3c96, #397cb7); }
.award-card .tag { color: #fff5d8; border-color: rgb(255 255 255 / 36%); background: rgb(255 255 255 / 12%); }
.award-card-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 13px; }
.award-rule { color: #f6deaa; font-size: 11px; font-weight: 700; }
.award-card h3 { margin: 0 0 17px; color: #fff; font-size: 23px; }
.award-card p { color: #edf6fb; }
.award-card a { display: inline-flex; margin-top: 17px; color: #f7dda1; font-size: 13px; font-weight: 700; border-bottom: 1px solid rgb(247 221 161 / 55%); }
.medal-ladder { display: grid; gap: 7px; margin: 0; padding: 0; list-style: none; }
.medal-row { display: grid; grid-template-columns: 23px minmax(0, 1fr) auto; align-items: center; gap: 10px; min-height: 39px; padding: 7px 10px; color: #15315d; background: #fff; border-radius: 9px; box-shadow: 0 2px 7px rgb(1 18 60 / 12%); font-size: 12px; line-height: 1.35; }
.medal-row strong { color: #203a65; font-weight: 700; }
.medal-row > bdi, .medal-row .award-value { color: #31506e; font-weight: 750; white-space: nowrap; text-align: end; }
.medal-mark { position: relative; width: 21px; height: 21px; border: 2px solid currentColor; border-radius: 50%; }
.medal-mark::after { position: absolute; inset: 4px; content: ''; border-radius: 50%; background: currentColor; opacity: .24; }
.medal-gold { color: #b78118; }
.medal-silver { color: #6e8594; }
.medal-bronze { color: #a35c31; }
.medal-certificate { color: #5d84af; }
.medal-participation { color: #67877c; }
.results-awards-section { background: linear-gradient(180deg, #f4fafc, #fff); }
.results-awards-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.home-journey-list { gap: 14px; }
.home-journey-list li { min-height: 178px; border: 1px solid var(--timo-line); }
.home-journey-list li > span { background: var(--timo-royal); }
.home-journey-list li:nth-child(even) > span { background: var(--salis-gold); color: #24365e; }
.home-resources-band, .cta-section-vivid { border: 0; background: linear-gradient(135deg, var(--timo-navy), var(--timo-royal)); }
.home-resources-band { border-block: 4px solid var(--salis-gold); }
.home-resources-band .section-kicker-light, .cta-section-vivid .section-kicker-light { color: #f5daa0; }
.home-resources-band h2, .cta-section-vivid h2 { color: #fff; }
.home-resources-band .home-resource { border-color: rgb(255 255 255 / 26%); background: rgb(255 255 255 / 9%); border-radius: 14px; }
.home-resources-band .home-resource:hover { background: rgb(255 255 255 / 15%); }
.schools-section .button-primary { background: var(--timo-royal); }
.school-points article { background: #f8fcfe; }
.school-points strong { color: var(--timo-royal); }

/* Shared pages, forms and footer retain the unified palette. */
.page-hero { border-bottom: 4px solid var(--salis-gold); background: linear-gradient(135deg, var(--timo-navy), var(--timo-royal)); }
.page-hero h1 { color: #fff; font-weight: 650; }
.page-hero p:not(.eyebrow) { color: #ebf5fb !important; }
.page-hero .eyebrow { color: #f4d99d; }
.info-card, .detail-grid article, .stage-grid article, .resource-grid article, .news-list article, .registration-form > section, .registration-student-card, .status-panel, .paper-panel, .portal-card { border-color: var(--timo-line); border-radius: 16px; box-shadow: var(--timo-shadow); }
.registration-tabs { border-color: var(--timo-line); background: #f1f7fa; }
.registration-tab.is-active { background: var(--timo-royal); border-color: var(--timo-royal); }
.registration-form label, .portal-login label { color: var(--timo-navy); }
.registration-form input:focus, .registration-form select:focus, .portal-login input:focus, .portal-login select:focus, .school-import input:focus { border-color: var(--timo-sky); outline-color: rgb(95 168 220 / 24%); }
.site-footer { border-top: 4px solid var(--salis-gold); background: var(--timo-navy); }
.footer-identity-pair img { filter: none; }
.footer-identity-pair .timo-logo { height: 42px; width: auto; }
.footer-identity-pair .salis-logo { height: 42px; width: auto; filter: none !important; }
.site-footer .footer-email > bdi, .site-footer .footer-channel > bdi { color: #f5dc9f; }

/* WhatsApp remains available but never overlaps a mobile action. */
.whatsapp-float { display: inline-flex; align-items: center; justify-content: center; gap: 8px; width: auto; min-width: 54px; height: 54px; padding: 0 15px; color: #fff; background: #25d366; border-radius: 999px; box-shadow: 0 8px 20px rgb(0 67 39 / 24%); }
.whatsapp-float:hover { color: #fff; background: #1faf58; }
.whatsapp-icon { display: inline-flex; width: 23px; height: 23px; }
.whatsapp-icon svg { width: 100%; height: 100%; }
.whatsapp-float > b { font-size: 12px; font-weight: 650; }
@media (max-width: 760px) {
  body { padding-bottom: calc(78px + env(safe-area-inset-bottom, 0px)); }
  html { scroll-padding-top: 98px; }
  .container { width: min(100% - 32px, 600px); }
  .brand-strip-inner { min-height: 56px; }
  .header-brand-pair { gap: 10px; }
  .header-timo-logo { width: 132px; height: 36px; }
  .header-salis-logo { width: 58px; height: 32px; }
  .header-brand-divider { height: 24px; }
  .language-switch { font-size: 11px; }
  .language-switch .icon { width: 15px; height: 15px; }
  .portal-bar-inner { justify-content: flex-start; min-height: 49px; width: max-content; padding-inline: 16px; }
  .portal-bar a { min-width: auto; min-height: 35px; padding-inline: 12px; font-size: 11px; }
  .portal-bar-icon .icon { width: 15px; height: 15px; }
  .brand-strip-actions { gap: 8px; }
  .menu-toggle { display: inline-flex; align-items: center; justify-content: center; order: 2; }
  .brand-strip-actions .language-switch { order: 1; }
  .header-cta { display: none !important; }
  .main-nav { inset: 97px 0 auto !important; max-height: calc(100vh - 97px) !important; }
  .main-nav a { padding-block: 14px; }
  .home-hero .hero-copy { padding: 46px 0 50px; }
  .home-hero .hero-overline { margin-bottom: 14px; font-size: 10px; }
  .hero-logo-pair { gap: 12px; min-height: 50px; margin-bottom: 17px; }
  .hero-logo-pair img { height: 43px; }
  .hero-logo-pair img:first-child { width: min(244px, 61vw); }
  .hero-logo-pair img:last-child { width: min(78px, 21vw); }
  .hero-logo-divider { height: 31px; }
  .hero-operator-pill { margin-bottom: 15px; font-size: 11px; }
  .home-hero h1 { font-size: clamp(31px, 9vw, 38px); }
  .home-hero .hero-description { margin-top: 15px; font-size: 15px; line-height: 1.85; }
  .home-hero .hero-actions { display: grid; grid-template-columns: 1fr; width: min(328px, 100%); margin-inline: auto; }
  .home-hero .hero-actions .button { width: 100%; }
  .home-hero .hero-registration-status { flex-direction: row; flex-wrap: nowrap; justify-content: center; margin-top: 19px; white-space: nowrap; }
  .about-competition-band { padding-block: 46px; }
  .about-competition-layout { grid-template-columns: 1fr; gap: 25px; }
  .about-competition-copy h2 { font-size: 29px; }
  .about-competition-copy p:last-child { font-size: 15px; }
  .about-facts-grid { gap: 9px; }
  .about-facts-grid article { min-height: 94px; padding: 14px 13px; }
  .about-facts-grid strong { font-size: 21px; }
  .about-facts-grid span { margin-top: 6px; font-size: 11px; }
  .section { padding-block: 62px; }
  .section-heading { align-items: flex-start; flex-direction: column; gap: 12px; margin-bottom: 28px; }
  .home-benefit-grid, .home-track-grid-refresh, .awards-grid { grid-template-columns: 1fr; }
  .results-awards-grid { grid-template-columns: 1fr; }
  .home-track-card { min-height: 0; padding: 26px 22px; }
  .track-intro { min-height: 0; margin-bottom: 15px; }
  .track-snapshot li { padding: 8px 9px; font-size: 11px; }
  .award-card { padding: 22px 16px; }
  .award-card h3 { font-size: 21px; }
  .medal-row { grid-template-columns: 21px minmax(0, 1fr) auto; gap: 8px; min-height: 38px; padding: 7px 8px; font-size: 11px; }
  .medal-mark { width: 19px; height: 19px; }
  .home-journey-list { grid-template-columns: 1fr; gap: 10px; }
  .home-journey-list li { min-height: 0; }
  .footer-identity-pair .timo-logo, .footer-identity-pair .salis-logo { height: 30px; }
  .whatsapp-float, body:has(.portal-login) .whatsapp-float, body:has(.registration-app-shell) .whatsapp-float { display: inline-flex !important; width: 44px; min-width: 44px; height: 44px; right: 8px; bottom: calc(8px + env(safe-area-inset-bottom, 0px)) !important; padding: 0; border-radius: 50%; justify-content: center; }
  .whatsapp-float .whatsapp-icon { width: 22px; height: 22px; }
  .whatsapp-float b { display: none; }
  .back-top { bottom: calc(68px + env(safe-area-inset-bottom, 0px)) !important; }
}
@media (max-width: 380px) {
  .header-timo-logo { width: 116px; }
  .header-salis-logo { width: 51px; }
  .language-switch span { display: none; }
  .home-hero h1 { font-size: 39px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; } }
