/* MIDTRANS skin "Executive Maritime" (production; approved by the owner 2026-12-01).
   Step 2 of the rollout: linked from the seven home pages only, after
   /assets/meridian/site-*.css and /assets/css/home-cinema-*.css. Restyles
   colour, type, depth and spacing only; no script reads or hides anything here.
   Previewed as v1-v6b under /_skin-preview/. */

:root[data-skin="meridian"] {
  /* depth: five distinct navies again */
  --surface-night: #061527;
  --color-navy: #0b1f3a;
  --ink-deep: #132c4e;
  --ink-marine: #0e2546;
  --color-ink: #0f1d30;
  --ink-steel: #2b3a4e;
  --ink-slate: #5a6472;
  --color-muted: #5a6472;
  /* ivory wash, hairlines */
  --surface-wash: #f8f7f4;
  --color-soft: #f1efea;
  --color-faint: #f5f3ee;
  --color-white: #ffffff;
  --color-line: #e2dfd7;
  --color-footer: #e8e5de;
  /* the brand blue stays; brass is the accent */
  --color-blue: #0074b7;
  --color-blue-dark: #005f96;
  --color-teal: #0074b7;
  --accent-sky: #c59b48;
  --skin-brass: #b8893a;
  --skin-brass-on-dark: #c59b48;
  --skin-brass-text: #8c6623;
  --skin-brass-rim: #b8893a;
  --skin-blue-cta: #005f96;
  --shadow-soft: 0 20px 50px rgba(6, 21, 39, 0.08);
  --radius: 8px;
  /* type: a clean geometric sans where the device has one; nothing is downloaded */
  --font-sans: Inter, "Helvetica Neue", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, "Meridian Cairo Arabic", sans-serif;
  --font-latin: var(--font-sans);
  /* the home system (inline #mt-home-system) */
  --mt-navy: #0b1f3a;
  --mt-soft: #f8f7f4;
  --mt-line: #e2dfd7;
  --mt-text: #4a5260;
  --mt-blue: #0074b7;
  --mt-blue-d: #0b1f3a;
  --mt-blue-bright: #c59b48;
  --mt-r: 12px;
  --mt-btn-r: 8px;
  --mt-gap: clamp(56px, 6vw, 88px);
  --mt-pad: clamp(22px, 1.6vw + 14px, 36px);
  --mt-shadow: 0 20px 50px rgba(6, 21, 39, 0.08);
}
:root[data-skin="meridian"][dir="rtl"],
:root[data-skin="meridian"] [lang="ar"] {
  --font-sans: "Meridian Cairo", Cairo, Arial, sans-serif;
}
:root[data-skin="meridian"] .template-home.public-site { --home-section-space: clamp(56px, 6vw, 88px); }

/* the home cards' own colour sets (inline data-homex / milestones / blog strip) */
:root[data-skin="meridian"] :is(.hx-her, .hx-app, .hx-duo, .mt-milestones, .mt-blog-strip, .mt-home-voice) {
  --hi: #0b1f3a; --hm: #5a6472; --hb: #0b1f3a; --hb2: #132c4e;
  --hw: #f3ebdd; --hl: #e2dfd7; --hwl: #e8dcc4; --hnv: #0b1f3a; --hc: #ffffff;
}

/* ---------------------------------------------------------------- type */
:root[data-skin="meridian"] body { font-family: var(--font-sans); color: var(--color-ink); background: var(--surface-wash); }
:root[data-skin="meridian"]:not([dir="rtl"]) :is(h1, h2, h3) { letter-spacing: -0.012em; }
:root[data-skin="meridian"][dir="rtl"] body { line-height: 1.85; letter-spacing: 0; }
:root[data-skin="meridian"][dir="rtl"] :is(h1, h2, h3) { line-height: 1.45; letter-spacing: 0; }

/* ---------------------------------------------------------------- small labels */
/* on light grounds: deep brass text */
:root[data-skin="meridian"] :is(main > section, .mega-panel) :is(.kicker, .hx-eyebrow, .eyebrow, .mt-ms-kicker, .mega-panel__eyebrow) {
  color: var(--skin-brass-text) !important;
  font-weight: 700 !important;
}
:root[data-skin="meridian"]:not([dir="rtl"]):not(:lang(zh)) :is(main > section, .mega-panel) :is(.kicker, .hx-eyebrow, .eyebrow, .mt-ms-kicker, .mega-panel__eyebrow) {
  text-transform: uppercase !important;
  letter-spacing: 0.09em !important;
  font-size: 0.74rem !important;
}
:root[data-skin="meridian"] .mega-panel__title { color: var(--skin-brass-text) !important; }
/* on dark grounds: lighter brass */
:root[data-skin="meridian"] main > .hero--cinema .eyebrow,
:root[data-skin="meridian"] .hero-operations-board__eyebrow,
:root[data-skin="meridian"] .hero-operations-board__eyebrow .br { color: var(--skin-brass-on-dark) !important; }
:root[data-skin="meridian"] main > .hero--cinema .eyebrow::before { background: var(--skin-brass) !important; }
:root[data-skin="meridian"] main > section.mt-tariff-promo .mt-apps > .kicker { color: var(--skin-brass-on-dark) !important; text-transform: none !important; letter-spacing: 0 !important; }

/* ---------------------------------------------------------------- header and mega menu */
:root[data-skin="meridian"] .site-header .nav-item:is(:hover, :focus-within) > .nav-trigger,
:root[data-skin="meridian"] .site-header .nav-trigger[aria-expanded="true"],
:root[data-skin="meridian"] .site-header .nav-trigger[aria-current] {
  box-shadow: inset 0 -2px 0 var(--skin-brass);
}
:root[data-skin="meridian"] .mega-panel { background: #fffdf9; border: 1px solid var(--color-line); box-shadow: 0 24px 60px rgba(6, 21, 39, 0.12); }
:root[data-skin="meridian"] .mega-panel__links a:is(:hover, :focus-visible) { box-shadow: inset 0 -2px 0 var(--skin-brass); }

/* ---------------------------------------------------------------- primary calls to action */
/* on dark grounds (header, hero, operations desk): dark MIDTRANS blue, brass rim */
:root[data-skin="meridian"] .site-header .header-actions .button--primary,
:root[data-skin="meridian"] main > section.hero .button--primary,
:root[data-skin="meridian"] .hero-quote :is(.hx-btn--pri, .mt-steps-next) {
  background: var(--skin-blue-cta) !important;
  color: #ffffff !important;
  border: 1px solid var(--skin-brass-rim) !important;
  box-shadow: none !important;
  transition: border-color 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
}
:root[data-skin="meridian"] .site-header .header-actions .button--primary:is(:hover, :focus-visible),
:root[data-skin="meridian"] main > section.hero .button--primary:is(:hover, :focus-visible),
:root[data-skin="meridian"] .hero-quote :is(.hx-btn--pri, .mt-steps-next):is(:hover, :focus-visible) {
  background: #004f7d !important;
  border-color: var(--skin-brass-on-dark) !important;
  box-shadow: 0 0 0 1px var(--skin-brass-on-dark), 0 8px 22px rgba(184, 137, 58, 0.18) !important;
}
/* on light grounds (page sections, not the three dark ones): admiralty navy, brass rim */
:root[data-skin="meridian"] main > section:not(.hero):not(.hero-board-band):not(.mt-tariff-promo) :is(.hx-btn--pri, .button--primary, a.button:not(.button--secondary):not(.button--ghost):not(.button--whatsapp)) {
  background: #0b1f3a !important;
  color: #ffffff !important;
  border: 1px solid var(--skin-brass-rim) !important;
}
:root[data-skin="meridian"] main > section:not(.hero):not(.hero-board-band):not(.mt-tariff-promo) :is(.hx-btn--pri, .button--primary, a.button:not(.button--secondary):not(.button--ghost):not(.button--whatsapp)):is(:hover, :focus-visible) {
  background: #132c4e !important;
  border-color: var(--skin-brass) !important;
  box-shadow: 0 0 0 1px var(--skin-brass) !important;
}
/* the tariff promo sits on navy: its buttons follow the dark rule */
:root[data-skin="meridian"] main > section.mt-tariff-promo :is(.hx-btn--pri, .button--primary) { background: var(--skin-blue-cta) !important; }

/* ---------------------------------------------------------------- rates ticker
   v5 (owner 2026-12-01: «مشاكل في الالوان»): inner pages give the price pill a
   white ground, so every colour of the strip is set here, the same on all pages. */
:root[data-skin="meridian"] [data-news-strip] .mt-ticker { color: #ffffff !important; }
:root[data-skin="meridian"] .mt-ticker__label { background: #061527 !important; }
:root[data-skin="meridian"] .mt-ticker__item { color: #ffffff !important; }
:root[data-skin="meridian"] .mt-ticker__route { color: #ffffff !important; }
:root[data-skin="meridian"] .mt-ticker__price {
  background: rgba(255, 255, 255, 0.06) !important;
  border: 1px solid rgba(197, 155, 72, 0.38) !important;
  color: #ffffff !important;
  box-shadow: none !important;
}
:root[data-skin="meridian"] .mt-ticker__size { color: var(--skin-brass-on-dark) !important; }
:root[data-skin="meridian"] [data-news-strip],
:root[data-skin="meridian"] [data-news-strip] .mt-ticker { background: #061527 !important; }
:root[data-skin="meridian"] .mt-ticker__price { color: #ffffff; font-variant-numeric: tabular-nums; }
:root[data-skin="meridian"] .mt-ticker__ar { color: var(--skin-brass-on-dark) !important; }
:root[data-skin="meridian"] .mt-ticker__label-date { color: var(--skin-brass-on-dark) !important; }
:root[data-skin="meridian"] .mt-ticker__label-main { color: #ffffff; }

/* ---------------------------------------------------------------- hero */
:root[data-skin="meridian"] .hero--cinema .cinema__grade {
  background-image:
    linear-gradient(to top, rgba(6, 21, 39, 0.95) 0%, rgba(6, 21, 39, 0.66) 36%, rgba(6, 21, 39, 0.10) 72%),
    linear-gradient(to right, rgba(6, 21, 39, 0.88) 0%, rgba(6, 21, 39, 0.42) 44%, rgba(6, 21, 39, 0) 76%) !important;
}
:root[data-skin="meridian"][dir="rtl"] .hero--cinema .cinema__grade {
  background-image:
    linear-gradient(to top, rgba(6, 21, 39, 0.95) 0%, rgba(6, 21, 39, 0.66) 36%, rgba(6, 21, 39, 0.10) 72%),
    linear-gradient(to left, rgba(6, 21, 39, 0.88) 0%, rgba(6, 21, 39, 0.42) 44%, rgba(6, 21, 39, 0) 76%) !important;
}

/* ---------------------------------------------------------------- operations desk */
:root[data-skin="meridian"] .hero-operations-board--home { background: var(--surface-night); box-shadow: 0 28px 64px rgba(6, 21, 39, 0.35); border: 1px solid rgba(184, 137, 58, 0.22); }
:root[data-skin="meridian"] .hero-operations-board__modes a:is(:hover, :focus-visible, [aria-current], [aria-selected="true"], .is-active) { box-shadow: inset 0 -2px 0 var(--skin-brass) !important; }
:root[data-skin="meridian"] .hero-quote .mt-steps-dots > i.on { background: var(--skin-brass) !important; }
:root[data-skin="meridian"] .hero-quote .mt-steps-count { color: #e8dcc4; }
:root[data-skin="meridian"] .hero-quote select { border-color: var(--color-line) !important; }
:root[data-skin="meridian"] .hero-quote select:focus-visible { outline: 2px solid var(--skin-brass); outline-offset: 1px; }
:root[data-skin="meridian"] .hero-operations-board, :root[data-skin="meridian"] .hero-stat-strip { font-variant-numeric: tabular-nums; }

/* ---------------------------------------------------------------- stats */
:root[data-skin="meridian"] .network-band { background: var(--color-navy); }
:root[data-skin="meridian"] :is(.network-stat, .hero-stat-strip) strong { color: var(--skin-brass-on-dark); }

/* ---------------------------------------------------------------- inner pages and tariff tables */
:root[data-skin="meridian"] .hs-results-table { font-variant-numeric: tabular-nums; }
:root[data-skin="meridian"] .hs-results-table th { background: var(--color-soft); color: var(--color-navy); border-bottom: 1px solid var(--color-line); }
:root[data-skin="meridian"] .hs-results-table tbody tr:nth-child(even) td { background: #fbfaf7; }
:root[data-skin="meridian"] .faq-item { border-color: var(--color-line); }

/* ---------------------------------------------------------------- footer */
:root[data-skin="meridian"] .site-footer { background: linear-gradient(160deg, #061527 0%, #0b1f3a 60%, #132c4e 100%) !important; }
:root[data-skin="meridian"] .site-footer h3 { color: var(--skin-brass-on-dark); }

/* ---------------------------------------------------------------- contact channels (v4, owner 2026-12-01: «غير متسقين»)
   One family: the two main actions stay navy (quote, contact); WhatsApp,
   Telegram and WeChat are white with navy text and a thin rim in each app's
   colour. Telegram's colours are inline !important in the page, so the white
   is painted with an inset shadow and the text with text-fill. The closed
   WeChat box no longer takes a grid row (the extra gap before «Contact us»). */
:root[data-skin="meridian"] main > section .conversion-actions :is(a.button--whatsapp, .mt-wechat > summary.button) {
  --skin-channel: #1ea952;
  background: #ffffff !important;
  color: #0b1f3a !important;
  -webkit-text-fill-color: #0b1f3a;
  border: 1px solid var(--skin-channel) !important;
  box-shadow: inset 0 0 0 999px #ffffff !important;
  height: 46px !important;
  min-height: 46px !important;
  box-sizing: border-box !important;
  animation: none !important;
}
:root[data-skin="meridian"] main > section .conversion-actions a.button--telegram { --skin-channel: #1f7fb5; }
:root[data-skin="meridian"] main > section .conversion-actions .mt-wechat > summary.button { --skin-channel: #07a658; }
:root[data-skin="meridian"] main > section .conversion-actions :is(a.button--whatsapp, .mt-wechat > summary.button):is(:hover, :focus-visible) {
  box-shadow: inset 0 0 0 999px #f8f7f4, 0 0 0 1px var(--skin-channel) !important;
}
:root[data-skin="meridian"] .conversion-actions .mt-wechat:not([open])::details-content { display: none; }

/* ---------------------------------------------------------------- content tables (v5: lane rates, tariff tables)
   An ivory header with a navy label and a brass hairline, quiet row lines,
   numbers that line up. */
:root[data-skin="meridian"] main table { font-variant-numeric: tabular-nums; }
:root[data-skin="meridian"] main table th {
  background: var(--color-soft) !important;
  color: var(--color-navy) !important;
  border-bottom: 1px solid var(--skin-brass) !important;
  font-weight: 700;
}
:root[data-skin="meridian"] main table td { border-bottom: 1px solid #ece9e2 !important; }
:root[data-skin="meridian"] main table tbody tr:hover td { background: #fbfaf7; }

/* ---------------------------------------------------------------- v6 (owner 2026-12-01: «ضع الاطار الذهبي … على ازرار هذا الويبسايت»)
   Every button wears the brass rim: the secondary and ghost ones keep their
   ground and text, only the edge turns brass, and it lights on hover. */
:root[data-skin="meridian"] :is(.site-header, main) :is(a.button--secondary, a.button--ghost, button.button--secondary, button.button--ghost, .hx-btn--sec) {
  border: 1px solid var(--skin-brass-rim) !important;
}
:root[data-skin="meridian"] :is(.site-header, main) :is(a.button--secondary, a.button--ghost, button.button--secondary, button.button--ghost, .hx-btn--sec):is(:hover, :focus-visible) {
  border-color: var(--skin-brass-on-dark) !important;
  box-shadow: 0 0 0 1px var(--skin-brass-on-dark) !important;
}

/* store badges (v6, owner 2026-12-01: «صور المتاجر غير محترفة و لا مناسبه»):
   the three raster badges are replaced, in CSS only, by one badge of the site:
   navy ground, the approved brass rim, the store's own mark
   (/assets/store-marks/*.svg) and its name in white. The link, its
   aria-label and the page stay as they are; the image is only hidden. */
:root[data-skin="meridian"] .footer-reference-store-badge {
  display: inline-flex !important;
  align-items: center;
  gap: 10px;
  height: 44px;
  padding: 0 16px 0 12px;
  background: #0b1f3a !important;
  border: 1px solid var(--skin-brass) !important;
  border-radius: 8px !important;
  box-shadow: none !important;
  color: #ffffff !important;
  text-decoration: none !important;
  font: 600 15px/1 var(--font-latin, "Helvetica Neue", Arial, sans-serif);
  letter-spacing: 0;
  white-space: nowrap;
  direction: ltr;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}
:root[data-skin="meridian"] .footer-reference-store-badge img { display: none !important; }
:root[data-skin="meridian"] .footer-reference-store-badge::before {
  content: "";
  flex: 0 0 22px;
  width: 22px;
  height: 22px;
  background: center / contain no-repeat;
}
:root[data-skin="meridian"] .footer-reference-store-badge[href*="apps.apple.com"]::before { background-image: url("/assets/store-marks/apple.svg"); filter: brightness(0) invert(1); }
:root[data-skin="meridian"] .footer-reference-store-badge[href*="play.google.com"]::before { background-image: url("/assets/store-marks/google-play.svg"); }
:root[data-skin="meridian"] .footer-reference-store-badge[href*="appgallery"]::before { background-image: url("/assets/store-marks/appgallery.svg"); }
:root[data-skin="meridian"] .footer-reference-store-badge[href*="apps.apple.com"]::after { content: "App Store"; }
:root[data-skin="meridian"] .footer-reference-store-badge[href*="play.google.com"]::after { content: "Google Play"; }
:root[data-skin="meridian"] .footer-reference-store-badge[href*="appgallery"]::after { content: "AppGallery"; }
:root[data-skin="meridian"] .footer-reference-store-badge:is(:hover, :focus-visible) { border-color: var(--skin-brass-on-dark) !important; box-shadow: 0 0 0 1px var(--skin-brass-on-dark) !important; }
:root[data-skin="meridian"] .footer-reference-stores__grid { gap: 12px !important; flex-wrap: wrap; }

/* the operations desk's three text links wear the brass rim, so they get the
   inside room of a button (owner 2026-12-01: «الكلمات ملاصقة لاطار الزر»), and
   at least 12px from «Next» above them (visual-guard rule 5) */
:root[data-skin="meridian"] .hero-quote .hx-duo__actions { margin-top: 8px !important; gap: 12px !important; row-gap: 12px !important; flex-wrap: wrap !important; }
:root[data-skin="meridian"] .hero-quote .hx-duo__actions a.hx-btn.hx-btn--sec {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 36px !important;
  height: auto !important;
  padding: 6px 14px !important;
  line-height: 1.3 !important;
  border-radius: 8px !important;
  white-space: nowrap;
}

/* store badges v7 (owner 2026-12-05 «صحح»): the older raster rule in styles.css gives each badge
   flex: 1 1 0, max-width 134px and overflow hidden, which cut «AppGallery», «Google Play» and
   «App Store» on phones. Each badge now keeps its own width and the row wraps. */
:root[data-skin="meridian"] .public-site .footer-reference-store-badge { flex: 0 0 auto !important; max-width: none !important; width: auto !important; overflow: visible !important; }

/* menu polish v8 (owner 2026-12-06 «اعمل بوليش و زبط التنسيق»): white menu lines on the dark home header, 44px touch target,
   X only when open on the home page (as elsewhere), Track/Contact/Login in one row (wraps when a language needs more room),
   languages in 4 columns with centred codes. */
@media (max-width:1200px){
 .public-site .mobile-menu__actions{display:flex!important;flex-wrap:wrap;gap:10px!important}
 .public-site .mobile-menu__actions .button{flex:1 1 auto;width:auto;min-width:0;padding-inline:10px;white-space:nowrap}
 .public-site .mobile-menu__actions .button--primary{flex-basis:100%}
 .public-site .mobile-menu__language-options{grid-template-columns:repeat(4,minmax(0,1fr))}
 .public-site .mobile-menu__language-options button{min-height:44px;justify-content:center;text-align:center}
 :root body.mt-cinema-dark.public-site.template-home .site-header .mobile-menu>summary{min-height:44px;gap:8px}
 :root body.mt-cinema-dark .site-header .mobile-menu:not([open])>summary::before{background:linear-gradient(#fff,#fff) 0 0/100% 2px no-repeat,linear-gradient(#fff,#fff) 0 50%/100% 2px no-repeat,linear-gradient(#fff,#fff) 0 100%/100% 2px no-repeat}
 :root body.mt-cinema-dark.public-site.template-home .site-header .mobile-menu[open]>summary{font-size:0;gap:0;min-width:44px;justify-content:center;padding:9px 12px}
}
/* home hero title polish v8 (owner 2026-12-06 «بدها polish»): one column (<700px): less empty space above the title and the
   title uses the full column (2 lines instead of 3 at 430-699px); up to 1200px: balanced line breaks and a clearer gap
   before the subtitle. The two-column hero from 700px keeps its layout. */
@media (max-width:699px){
 :root body.mt-cinema.template-home section.hero .hero__copy h1{margin-top:12px!important;line-height:1.04!important;max-inline-size:none!important;max-width:none!important}
 :root body.mt-cinema.template-home section.hero .cinema__t1{line-height:1.02!important}
 :root body.mt-cinema.template-home section.hero .hero__intro .eyebrow{margin-top:18px}
}
@media (max-width:1200px){
 :root body.mt-cinema.template-home section.hero h1 .cinema__t1{text-wrap:balance}
 :root body.mt-cinema.template-home section.hero h1 .cinema__t2{text-wrap:balance;margin-top:.45em!important;line-height:1.25!important;letter-spacing:0!important;color:rgba(255,255,255,.86)}
}

/* menu X centred whatever the summary text (owner 2026-12-06) */html body .site-header .mobile-menu[open]>summary{position:relative}html body .site-header .mobile-menu[open]>summary::before{position:absolute;inset:0;margin:auto!important}/* arrow on a dark (blue) link card: white, translucent (owner 2026-12-06, all link cards) */html body.public-site a.link-card:is(:hover,:active,:focus-visible) .link-card__arrow{background:rgba(255,255,255,.16)!important;color:#fff!important;box-shadow:inset 0 0 0 1px rgba(255,255,255,.45)}/* section titles: twice the space between lines (1.12 -> 1.25), all pages (owner 2026-12-06) */html:root body.public-site :is(.section-heading h2,.faq-intro h2,.conversion-block__title,.conversion-block h2){line-height:1.25!important}
