/* 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;
}
