/* =====================================================================
   Im Mining, Exploration & Engineering Services Ltd.
   Corporate design system — slate & gold, responsive, no CDN.
   ===================================================================== */

:root {
  --ink: #0c1f2e;
  --ink-2: #123047;
  --gold: #c9973b;
  --gold-2: #e0a62f;
  --stone: #f5f2ec;
  --stone-2: #ebe5da;
  --white: #ffffff;
  --text: #22303c;
  --muted: #5b6b7a;
  --line: #d9d2c5;
  --shadow: 0 18px 40px -18px rgba(12, 31, 46, 0.28);
  --shadow-sm: 0 8px 20px -12px rgba(12, 31, 46, 0.25);
  --radius: 14px;
  --font-display: Georgia, "Times New Roman", serif;
  --font-body: "Segoe UI", system-ui, -apple-system, Roboto, Helvetica, Arial, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--white);
  line-height: 1.65;
  font-size: 16.5px;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

.container {
  width: min(1160px, 92%);
  margin-inline: auto;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
}
.eyebrow::before {
  content: "";
  width: 2rem;
  height: 2px;
  background: var(--gold);
}

h1, h2, h3, .display {
  font-family: var(--font-display);
  color: var(--ink);
  line-height: 1.15;
  font-weight: 700;
}

h1 { font-size: clamp(2.35rem, 5.2vw, 3.9rem); letter-spacing: -0.015em; }
h2 { font-size: clamp(1.85rem, 3.4vw, 2.65rem); letter-spacing: -0.01em; }
h3 { font-size: 1.28rem; }

.lead {
  font-size: clamp(1.05rem, 1.6vw, 1.22rem);
  color: var(--muted);
  max-width: 46rem;
}

section { padding: 5.25rem 0; }
.section-stone { background: var(--stone); }
.section-ink {
  background: linear-gradient(150deg, var(--ink) 0%, var(--ink-2) 100%);
  color: #e8eef3;
}
.section-ink h2, .section-ink h3 { color: var(--white); }
.section-ink .lead { color: rgba(232, 238, 243, 0.78); }

/* ------------------------------------------------------------- buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.95rem 1.75rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn-gold { background: var(--gold-2); color: var(--ink); }
.btn-gold:hover { background: var(--gold); }
.btn-ink { background: var(--ink); color: var(--white); }
.btn-ink:hover { background: var(--ink-2); }
.btn-ghost { border-color: rgba(255, 255, 255, 0.55); color: var(--white); }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.12); }
.btn-outline { border-color: var(--ink); color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: var(--white); }
.btn .arr { transition: transform 0.15s ease; }
.btn:hover .arr { transform: translateX(4px); }

/* ---------------------------------------------------------------- nav */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header .container {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  min-height: 78px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-right: auto;
}
.brand-logo {
  width: 46px;
  height: 46px;
  object-fit: contain;
  background: var(--white);
  border-radius: 10px;
  padding: 3px;
  box-shadow: var(--shadow-sm);
}
.brand-mark {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: linear-gradient(145deg, var(--gold-2), var(--gold));
  color: var(--ink);
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.15rem;
  box-shadow: var(--shadow-sm);
}
.brand-name {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--ink);
  font-size: 1.02rem;
  line-height: 1.2;
}
.brand-sub {
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}
.site-nav { display: flex; align-items: center; gap: 1.75rem; }
.site-nav a {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text);
  padding: 0.35rem 0;
  border-bottom: 2px solid transparent;
}
.site-nav a:hover { color: var(--ink); border-bottom-color: var(--gold-2); }
.site-nav a.active { color: var(--ink); border-bottom-color: var(--gold-2); }
.nav-cta { margin-left: 0.5rem; padding: 0.72rem 1.35rem; font-size: 0.88rem; }
.nav-toggle {
  display: none;
  background: none;
  border: 1.5px solid var(--line);
  border-radius: 9px;
  padding: 0.5rem 0.65rem;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 21px;
  height: 2.2px;
  background: var(--ink);
  margin: 4.5px 0;
  border-radius: 2px;
}

@media (max-width: 960px) {
  .nav-toggle { display: block; }
  .site-nav {
    position: absolute;
    top: 78px;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
    padding: 1rem 4% 1.4rem;
    border-bottom: 1px solid var(--line);
    display: none;
  }
  .site-nav.open { display: flex; }
  .site-nav a { width: 100%; padding: 0.75rem 0.25rem; border-bottom: 1px solid var(--stone-2); }
  .nav-cta { margin: 0.6rem 0 0; width: 100%; justify-content: center; }
}

/* ---------------------------------------------------------------- hero */
.hero {
  position: relative;
  min-height: 640px;
  display: flex;
  align-items: center;
  color: var(--white);
  background: var(--ink);
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}
.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(12, 31, 46, 0.92) 0%, rgba(12, 31, 46, 0.62) 48%, rgba(12, 31, 46, 0.25) 100%);
}
.hero .container { position: relative; z-index: 1; padding: 6.5rem 0; }
.hero h1 { color: var(--white); max-width: 18ch; }
.hero .lead { color: rgba(255, 255, 255, 0.85); margin-top: 1.35rem; max-width: 38rem; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 0.95rem; margin-top: 2.35rem; }
.hero-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 2.5rem;
  margin-top: 3.5rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.22);
}
.hero-strip .num {
  font-family: var(--font-display);
  font-size: 1.85rem;
  color: var(--gold-2);
  font-weight: 700;
  line-height: 1;
}
.hero-strip .lbl {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.72);
  margin-top: 0.35rem;
}

.page-hero {
  position: relative;
  background: linear-gradient(120deg, var(--ink) 0%, var(--ink-2) 100%);
  color: var(--white);
  padding: 5.25rem 0;
  overflow: hidden;
}
.page-hero h1 { color: var(--white); font-size: clamp(2.1rem, 4.2vw, 3.15rem); }
.page-hero .lead { color: rgba(255, 255, 255, 0.8); margin-top: 1.1rem; }
.page-hero .crumbs {
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-2);
  font-weight: 700;
  margin-bottom: 1rem;
}
.page-hero .crumbs a { color: rgba(255, 255, 255, 0.75); }
.page-hero .crumbs a:hover { color: var(--gold-2); }

/* --------------------------------------------------------------- grids */
.grid-2 {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 3.75rem;
  align-items: center;
}
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.65rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.35rem; }
@media (max-width: 960px) {
  .grid-2 { grid-template-columns: 1fr; gap: 2.25rem; }
  .grid-3 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .grid-4 { grid-template-columns: 1fr; }
  section { padding: 3.75rem 0; }
  .hero { min-height: 540px; }
}

.media-frame {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.media-frame img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 3; }
.media-frame .badge {
  position: absolute;
  left: 1.15rem;
  bottom: 1.15rem;
  background: var(--gold-2);
  color: var(--ink);
  font-weight: 700;
  font-size: 0.82rem;
  padding: 0.65rem 1.15rem;
  border-radius: 999px;
  box-shadow: var(--shadow-sm);
}

/* ---------------------------------------------------------------- card */
.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  display: flex;
  flex-direction: column;
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.card img { aspect-ratio: 16 / 10; object-fit: cover; width: 100%; }
.card .body { padding: 1.55rem 1.65rem 1.75rem; display: flex; flex-direction: column; gap: 0.7rem; flex: 1; }
.card .body p { color: var(--muted); font-size: 0.95rem; }
.card .more {
  margin-top: auto;
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}
.card .more span { color: var(--gold); transition: transform 0.15s ease; }
.card:hover .more span { transform: translateX(4px); }

.tile {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.85rem 1.75rem;
  box-shadow: var(--shadow-sm);
}
.tile .icon-chip {
  width: 52px;
  height: 52px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, rgba(224, 166, 47, 0.16), rgba(224, 166, 47, 0.05));
  border: 1px solid rgba(201, 151, 59, 0.35);
  margin-bottom: 1.15rem;
}
.tile p { color: var(--muted); font-size: 0.94rem; margin-top: 0.55rem; }

.value-card {
  padding: 1.85rem;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
}
.value-card .n {
  font-family: var(--font-display);
  color: var(--gold-2);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.06em;
}
.value-card h3 { color: var(--white); margin: 0.55rem 0; font-size: 1.12rem; }
.value-card p { color: rgba(232, 238, 243, 0.72); font-size: 0.92rem; }

/* ------------------------------------------------------------- feature */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: center;
}
.split.rev .media-frame { order: 2; }
@media (max-width: 960px) {
  .split { grid-template-columns: 1fr; gap: 2rem; }
  .split.rev .media-frame { order: 0; }
}
.tick-list { display: grid; gap: 0.85rem; margin-top: 1.55rem; }
.tick-list li {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
  font-size: 0.98rem;
}
.tick {
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--gold-2);
  color: var(--ink);
  display: grid;
  place-items: center;
  font-size: 0.72rem;
  font-weight: 800;
  margin-top: 0.18rem;
}

/* --------------------------------------------------------------- stats */
.stats-band {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
  overflow: hidden;
}
.stats-band .cell {
  background: rgba(12, 31, 46, 0.35);
  padding: 1.85rem 1.5rem;
  text-align: center;
}
.stats-band .num {
  font-family: var(--font-display);
  font-size: 1.95rem;
  color: var(--gold-2);
  font-weight: 700;
}
.stats-band .lbl { color: rgba(255, 255, 255, 0.75); font-size: 0.84rem; margin-top: 0.35rem; }
@media (max-width: 760px) { .stats-band { grid-template-columns: repeat(2, 1fr); } }

/* ------------------------------------------------------------- affiliate */
.affiliate-band {
  background: linear-gradient(120deg, var(--ink) 0%, var(--ink-2) 55%, #1c4257 100%);
  color: var(--white);
  border-radius: 20px;
  padding: clamp(2.25rem, 4vw, 3.5rem);
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 2.5rem;
  align-items: center;
}
.affiliate-band h2 { color: var(--white); font-size: clamp(1.65rem, 2.8vw, 2.25rem); }
.affiliate-band p { color: rgba(255, 255, 255, 0.8); margin-top: 1rem; }
.affiliate-logo {
  background: var(--white);
  border-radius: 16px;
  padding: 1.85rem;
  color: var(--ink);
  text-align: center;
  box-shadow: var(--shadow);
}
.affiliate-logo .wordmark {
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 800;
  color: var(--ink);
}
.affiliate-logo .wordmark b { color: var(--gold); }
.affiliate-logo p { color: var(--muted); font-size: 0.88rem; margin: 0.55rem 0 1.15rem; }
@media (max-width: 860px) { .affiliate-band { grid-template-columns: 1fr; } }

/* -------------------------------------------------------------- contact */
.office-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  height: 100%;
}
.office-card .flag {
  display: inline-block;
  background: var(--ink);
  color: var(--gold-2);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0.42rem 0.95rem;
  border-radius: 999px;
  margin-bottom: 1.15rem;
}
.office-card h3 { font-size: 1.18rem; }
.office-card p { color: var(--muted); margin-top: 0.5rem; font-size: 0.95rem; }
.office-card a {
  color: var(--ink);
  font-weight: 600;
  border-bottom: 1.5px solid var(--gold-2);
}
.office-card a:hover { color: var(--gold); }
.office-card .rows { margin-top: 1.15rem; display: grid; gap: 0.55rem; font-size: 0.95rem; }

.contact-form {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2.15rem;
  box-shadow: var(--shadow-sm);
}
.contact-form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.15rem; }
@media (max-width: 640px) { .contact-form .row { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: 0.42rem; margin-bottom: 1.15rem; }
.field label { font-size: 0.82rem; font-weight: 700; color: var(--ink); }
.field input, .field select, .field textarea {
  border: 1.5px solid var(--line);
  border-radius: 10px;
  padding: 0.82rem 0.95rem;
  font-size: 0.95rem;
  font-family: inherit;
  background: var(--stone);
  color: var(--text);
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--gold-2);
  background: var(--white);
}
.hp-field { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }
.form-status {
  display: none;
  border-radius: 10px;
  padding: 0.85rem 1.1rem;
  font-size: 0.92rem;
  margin-bottom: 1.15rem;
}
.form-status.ok { display: block; background: #e8f6ee; color: #1d6b42; border: 1px solid #b7e2c8; }
.form-status.err { display: block; background: #fdecec; color: #93312f; border: 1px solid #f2c2c1; }

/* ---------------------------------------------------------------- quote */
.ceo-quote {
  border-left: 4px solid var(--gold-2);
  background: var(--stone);
  padding: 1.85rem 2.15rem;
  border-radius: 0 var(--radius) var(--radius) 0;
}
.ceo-quote p {
  font-family: var(--font-display);
  font-size: 1.12rem;
  color: var(--ink);
  font-style: italic;
}
.ceo-quote .who { margin-top: 0.95rem; font-size: 0.9rem; color: var(--muted); font-style: normal; font-family: var(--font-body); }
.ceo-quote .who b { color: var(--ink); }

/* ------------------------------------------------------------------ cta */
.cta-band {
  background: linear-gradient(115deg, var(--gold) 0%, var(--gold-2) 100%);
  border-radius: 20px;
  padding: clamp(2.25rem, 4vw, 3.25rem);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.75rem;
}
.cta-band h2 { font-size: clamp(1.55rem, 2.6vw, 2.15rem); max-width: 26ch; }
.cta-band .btn-ink:hover { background: var(--ink-2); }

/* --------------------------------------------------------------- footer */
.site-footer {
  background: var(--ink);
  color: rgba(232, 238, 243, 0.78);
  padding: 4.25rem 0 2.25rem;
  font-size: 0.93rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 2.5rem;
  padding-bottom: 2.75rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}
.site-footer h4 {
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.8rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 1.1rem;
}
.site-footer a:hover { color: var(--gold-2); }
.site-footer .f-links { display: grid; gap: 0.55rem; }
.site-footer .tag {
  font-family: var(--font-display);
  color: var(--white);
  font-size: 1.25rem;
  line-height: 1.35;
}
.footer-brand-row { display: flex; align-items: center; gap: 0.8rem; margin-bottom: 1.15rem; }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  padding-top: 1.75rem;
  font-size: 0.82rem;
  color: rgba(232, 238, 243, 0.55);
}
.footer-mail {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin-top: 0.85rem;
  color: var(--gold-2);
  font-weight: 700;
}
@media (max-width: 960px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }

/* --------------------------------------------------------------- gallery */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.15rem;
}
@media (max-width: 860px) { .gallery-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .gallery-grid { grid-template-columns: 1fr; } }
.gallery-item {
  position: relative;
  border: none;
  padding: 0;
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  background: var(--ink);
  box-shadow: var(--shadow-sm);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.gallery-item:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.gallery-item img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  opacity: 0.92;
  transition: opacity 0.18s ease, transform 0.3s ease;
}
.gallery-item:hover img { opacity: 1; transform: scale(1.04); }
.gallery-cap {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 1.65rem 1rem 0.85rem;
  background: linear-gradient(transparent, rgba(12, 31, 46, 0.88));
  color: var(--white);
  font-size: 0.85rem;
  font-weight: 600;
  text-align: left;
}
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(12, 31, 46, 0.93);
  display: flex;
  align-items: center;
  justify-content: center;
}
.lightbox figure {
  max-width: min(920px, 88vw);
  text-align: center;
}
.lightbox figure img {
  max-width: 100%;
  max-height: 74vh;
  border-radius: 10px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
}
.lightbox figcaption { color: rgba(255, 255, 255, 0.85); margin-top: 1rem; font-size: 0.95rem; }
.lb-close, .lb-prev, .lb-next {
  position: absolute;
  background: rgba(255, 255, 255, 0.12);
  color: var(--white);
  border: none;
  cursor: pointer;
  border-radius: 50%;
  width: 46px;
  height: 46px;
  font-size: 1.45rem;
  line-height: 1;
}
.lb-close:hover, .lb-prev:hover, .lb-next:hover { background: rgba(255, 255, 255, 0.28); }
.lb-close { top: 1.35rem; right: 1.35rem; }
.lb-prev { left: 1.35rem; top: 50%; transform: translateY(-50%); }
.lb-next { right: 1.35rem; top: 50%; transform: translateY(-50%); }

/* -------------------------------------------------------------- articles */
.article-body { max-width: 46rem; }
.article-body p { margin-top: 1.15rem; color: var(--text); }
.article-body h2 { margin-top: 2.35rem; font-size: 1.55rem; }
.article-body h3 { margin-top: 1.85rem; font-size: 1.15rem; }
.article-body ul { margin-top: 1.15rem; display: grid; gap: 0.65rem; }
.article-body ul li { display: flex; gap: 0.85rem; align-items: flex-start; }
.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1.15rem;
  margin-top: 1.65rem;
  padding-top: 1.15rem;
  border-top: 1px solid var(--line);
  font-size: 0.85rem;
  color: var(--muted);
}
.article-nav {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 3.25rem;
}

/* ------------------------------------------- send-us-a-message dialog */
.msg-fab {
  position: fixed;
  right: 1.35rem;
  bottom: 1.35rem;
  z-index: 150;
  background: var(--gold-2);
  color: var(--ink);
  border: none;
  border-radius: 999px;
  padding: 0.95rem 1.55rem;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  box-shadow: 0 14px 32px -10px rgba(12, 31, 46, 0.45);
}
.msg-fab:hover { background: var(--gold); transform: translateY(-2px); }
.msg-dialog-overlay {
  position: fixed;
  inset: 0;
  z-index: 180;
  background: rgba(12, 31, 46, 0.62);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
}
.msg-dialog-overlay.open { display: flex; }
.msg-dialog {
  position: relative;
  background: var(--white);
  border-radius: 16px;
  padding: 2.15rem;
  width: min(560px, 100%);
  max-height: 92vh;
  overflow-y: auto;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.4);
}
.msg-dialog h3 { font-size: 1.45rem; }
.msg-dialog .msg-sub { color: var(--muted); font-size: 0.92rem; margin: 0.45rem 0 1.35rem; }
.msg-dialog .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1.15rem; }
@media (max-width: 560px) { .msg-dialog .row2 { grid-template-columns: 1fr; } }
.msg-close {
  position: absolute;
  top: 0.85rem;
  right: 1rem;
  background: none;
  border: none;
  font-size: 1.65rem;
  color: var(--muted);
  cursor: pointer;
  line-height: 1;
}
.msg-close:hover { color: var(--ink); }
