/* =============================================================
   ICoMS 2027 — Modern Theme Overlay
   A clean, modern visual layer on top of the legacy WordPress
   export. Loaded AFTER style.css so it wins by source order.
   Palette: refined emerald brand + warm amber accent + slate ink.
   ============================================================= */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@500;600;700;800&family=Inter:wght@400;500;600;700&display=swap');

:root {
  --brand:        #0a7d54;
  --brand-dark:   #065c3c;
  --brand-darker: #044a30;
  --brand-light:  #e7f4ee;
  --accent:       #f6a623;
  --accent-dark:  #e08e0b;

  --ink:          #1f2933;
  --muted:        #5b6b7b;
  --line:         #e6eaf0;
  --bg:           #ffffff;
  --bg-soft:      #f5f7fa;
  --bg-tint:      #f0f6f3;

  --shadow-sm: 0 1px 3px rgba(16,40,30,.08), 0 1px 2px rgba(16,40,30,.06);
  --shadow:    0 10px 30px rgba(16,40,30,.10);
  --shadow-lg: 0 20px 50px rgba(16,40,30,.16);

  --radius:    16px;
  --radius-sm: 10px;

  --maxw: 1200px;
  --font-head: 'Poppins', 'Roboto', 'Segoe UI', system-ui, sans-serif;
  --font-body: 'Inter', 'Roboto', 'Segoe UI', system-ui, sans-serif;
}

* { box-sizing: border-box; }

/* Pin the rem base to 16px.
   Legacy quirk: bootstrap.min.css sets html{font-size:10px} (index.html used it alone),
   while all.css resets it to 1em=16px (inner pages load it). That made every rem value
   — including the nav font-size — render ~37% smaller on index than on inner pages.
   Pinning it here guarantees one identical rem base for all 19 pages. */
html { font-size: 16px !important; scroll-behavior: smooth; }

body {
  font-family: var(--font-body) !important;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.7;
  font-size: 16px;
  overflow-x: hidden;
}

/* ---- Headings ---- */
h1, h2, h3, h4, h5 {
  font-family: var(--font-head);
  color: var(--ink);
  line-height: 1.25;
  font-weight: 700;
  letter-spacing: -.01em;
}
h3 {
  font-size: 1.5rem;
  margin: 0 0 1rem;
  position: relative;
  padding-bottom: .55rem;
}
h3::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 52px; height: 4px;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--brand), var(--accent));
}
p { color: var(--ink); }

a { color: var(--brand); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--brand-dark); }

.container { max-width: var(--maxw); }

/* ============================================================
   HEADER / NAV  (shared across all pages)
   ============================================================ */
.main-header {
  background: #fff;
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 1000;
}
.main-header .top-bar { display: none; }  /* legacy empty top bar */

.main-header .container > .upper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  padding: 14px 0;
}
/* neutralize bootstrap column widths inside the flex header */
.main-header .container > .upper > * {
  float: none !important;
  width: auto !important;
  margin-left: 0 !important;
}
.logo-wrapper { flex: 0 0 auto; }
.site-logo {
  max-height: 64px;
  width: auto;
}
.slogan {
  flex: 1 1 auto;
  text-align: center;
  padding: 0 16px;
}
.slogan img { max-height: 54px; width: auto; }
.site-address {
  flex: 0 0 auto;
  font-style: normal;
  text-align: right;
  color: var(--muted);
}
.site-address .row { margin: 0; }
.site-address a {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  color: var(--muted);
  font-size: .92rem;
}
.site-address a:hover { color: var(--brand); }
.site-address i.fa { color: var(--brand); }
.site-address p { margin: 0; line-height: 1.3; }

/* Nav */
.main-nav-wrapper {
  background: linear-gradient(90deg, var(--brand-dark), var(--brand));
  border: 0 !important;
}
.main-nav-wrapper .navbar { margin: 0; min-height: auto; border: 0; }
.main-nav-wrapper .navbar-collapse { padding: 0; }
.main-nav-wrapper #menu-top-nav.navbar-nav > li {
  position: relative;
}
@media (min-width: 768px) {
  .main-nav-wrapper #menu-top-nav.navbar-nav {
    display: flex !important;
    flex-wrap: wrap;
    width: 100%;
    justify-content: center !important;
    gap: 4px;
  }
  .main-nav-wrapper #menu-top-nav.navbar-nav > li {
    float: none !important;
  }
}
.main-nav-wrapper #menu-top-nav.navbar-nav > li > a {
  display: block !important;
  color: #eafff5 !important;
  font-family: var(--font-head) !important;
  font-weight: 600 !important;
  font-size: 1.08rem !important;
  letter-spacing: .02em;
  padding: 18px 22px !important;
  border-radius: 8px;
  white-space: nowrap;
  position: relative;
  transition: background .2s ease, color .2s ease;
}
.main-nav-wrapper #menu-top-nav.navbar-nav > li > a::after {
  content: "";
  position: absolute;
  left: 22px; right: 22px; bottom: 10px;
  height: 3px;
  border-radius: 3px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .25s ease;
}
.main-nav-wrapper #menu-top-nav.navbar-nav > li > a:hover { background: rgba(255,255,255,.10) !important; color:#fff !important; }
.main-nav-wrapper #menu-top-nav.navbar-nav > li > a:hover::after,
.main-nav-wrapper #menu-top-nav.navbar-nav > li.current-menu-item > a::after { transform: scaleX(1); }
.main-nav-wrapper #menu-top-nav.navbar-nav > li.current-menu-item > a { color: #fff !important; }

/* Mobile nav toggle */
.navbar-toggle {
  border: 0;
  background: transparent;
  margin: 12px 0;
}
.navbar-toggle .icon-bar { background: #fff; width: 24px; height: 3px; border-radius: 3px; }
@media (max-width: 767px) {
  .main-nav-wrapper .navbar-collapse { background: var(--brand-dark); }
  .main-nav-wrapper #menu-top-nav.navbar-nav { flex-direction: column; }
  .main-nav-wrapper #menu-top-nav.navbar-nav > li > a { padding: 14px 18px; }
  .main-nav-wrapper #menu-top-nav.navbar-nav > li > a::after { display:none; }
  .slogan { display:none; }
  .site-address { text-align:left; }
  .site-address a { justify-content:flex-start; }
  .main-header .container > .upper { gap: 12px; }
}

/* ============================================================
   GENERIC SECTION HELPERS
   ============================================================ */
.page-body { padding: 48px 0; }
.section-soft { background: var(--bg-soft); }

/* Card primitive */
.m-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 26px;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.m-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: #d4e8dd;
}

/* Buttons */
.btn, a.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-head);
  font-weight: 600;
  border-radius: 999px;
  padding: 12px 26px;
  border: 0;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-success, .btn-primary {
  background: linear-gradient(135deg, var(--brand), var(--brand-dark));
  color: #fff !important;
  box-shadow: 0 8px 20px rgba(10,125,84,.30);
}
.btn-success:hover, .btn-primary:hover { background: linear-gradient(135deg, var(--brand-dark), var(--brand-darker)); color:#fff; }
.btn-warning {
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: #3a2a00 !important;
  box-shadow: 0 8px 20px rgba(246,166,35,.32);
}
.btn-warning:hover { color:#3a2a00; }
.btn-block { display: flex; width: 100%; justify-content: center; }

/* ============================================================
   HERO — pure CSS gradient + text overlay (index)
   No photographic banner any more: three shifting gradient washes
   in the brand palette stay crisp at every width and never clash.
   ============================================================ */
.m-hero {
  position: relative;
  color: #fff;
  overflow: hidden;
  width: 100%;
  isolation: isolate;
  background: #0a7d54;
}
.m-hero-slides { position: absolute; inset: 0; z-index: 0; }
.m-slide {
  position: absolute; inset: 0;
  opacity: 0;
  transform: scale(1.06);
  transition: opacity 1.2s ease, transform 9s ease;
}
.m-slide.active { opacity: 1; transform: scale(1); }

/* three gradient variants — same family as the inner-page .m-page-hero */
.m-slide.m-bg-1 {
  background:
    radial-gradient(circle at 84% 80%, rgba(246,166,35,.30), transparent 46%),
    radial-gradient(circle at 10% 12%, rgba(255,255,255,.13), transparent 42%),
    linear-gradient(115deg, #033b26 0%, #0a7d54 52%, #064e35 100%);
}
.m-slide.m-bg-2 {
  background:
    radial-gradient(circle at 18% 84%, rgba(246,166,35,.26), transparent 46%),
    radial-gradient(circle at 88% 8%, rgba(122,224,190,.20), transparent 44%),
    linear-gradient(125deg, #062e3d 0%, #0b6b57 56%, #07392c 100%);
}
.m-slide.m-bg-3 {
  background:
    radial-gradient(circle at 72% 16%, rgba(255,255,255,.16), transparent 45%),
    radial-gradient(circle at 6% 94%, rgba(246,166,35,.22), transparent 48%),
    linear-gradient(105deg, #05472e 0%, #0c8a5e 48%, #04442f 100%);
}

/* hairline diagonals keep the flat gradient from banding */
.m-hero::before {
  content: "";
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background-image: repeating-linear-gradient(115deg, rgba(255,255,255,.05) 0 1px, transparent 1px 26px);
}

/* left-weighted scrim keeps the headline legible on every gradient */
.m-hero-overlay {
  position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background: linear-gradient(96deg, rgba(2,32,21,.60) 0%, rgba(2,32,21,.32) 44%, rgba(2,32,21,.04) 74%, transparent 100%);
}
.m-hero-overlay::after {
  content: ""; position: absolute; inset: auto 0 0 0; height: 170px;
  background: linear-gradient(180deg, transparent, rgba(2,26,17,.45));
}

/* Paris watermark — inline vector, index only */
.m-hero-skyline {
  position: absolute; right: 7%; bottom: 0; z-index: 1;
  height: 92%; width: auto; opacity: .10;
  fill: #fff; pointer-events: none;
}
@media (max-width: 900px) { .m-hero-skyline { display: none; } }

.m-hero .container { position: relative; z-index: 3; }
.m-hero-inner { padding: 96px 0 104px; max-width: 800px; }

/* carousel controls */
.m-hero-dots {
  position: absolute; left: 0; right: 0; bottom: 20px; z-index: 3;
  display: flex; justify-content: center; gap: 10px;
}
.m-hero-dots button {
  width: 11px; height: 11px; border: 0; border-radius: 999px;
  background: rgba(255,255,255,.45); cursor: pointer; padding: 0;
  transition: width .25s ease, background .25s ease;
}
.m-hero-dots button.active { background: #fff; width: 28px; }
.m-hero-arrow {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 3;
  width: 46px; height: 46px; border: 0; border-radius: 999px;
  background: rgba(255,255,255,.18); color: #fff; cursor: pointer;
  font-size: 1.2rem; display: flex; align-items: center; justify-content: center;
  backdrop-filter: blur(3px); transition: background .2s ease;
}
.m-hero-arrow:hover { background: rgba(255,255,255,.34); }
.m-hero-arrow.prev { left: 20px; }
.m-hero-arrow.next { right: 20px; }
.m-hero-inner { padding: 84px 0 92px; max-width: 820px; }
.m-hero .eyebrow {
  display:inline-block;
  background: rgba(255,255,255,.16);
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255,255,255,.25);
  padding: 7px 16px;
  border-radius: 999px;
  font-size: .82rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 22px;
}
.m-hero h1 {
  color: #fff;
  font-size: clamp(1.7rem, 6.6vw, 3.4rem);
  font-weight: 800;
  line-height: 1.12;
  margin: 0 0 18px;
  text-shadow: 0 2px 18px rgba(0,0,0,.25);
}
.m-hero h1 .accent { color: var(--accent); }
.m-hero .sub {
  font-size: 1.18rem;
  font-weight: 500;
  color: #eafff5;
  margin-bottom: 8px;
}
.m-hero .meta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 26px;
  margin: 26px 0 34px;
  font-size: 1.02rem;
}
.m-hero .meta .item { display:flex; align-items:center; gap:10px; }
.m-hero .meta i.fa { color: var(--accent); font-size: 1.15rem; }
.m-hero .cta { display:flex; flex-wrap:wrap; gap:14px; }

/* ============================================================
   STAT / GLANCE ROW
   ============================================================ */
.m-glance {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin: -52px 0 56px;
  position: relative;
  z-index: 3;
}
.m-glance .m-stat {
  background:#fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px 22px;
  text-align:center;
  border-top: 4px solid var(--brand);
}
.m-glance .m-stat:nth-child(2){ border-top-color: var(--accent); }
.m-glance .m-stat:nth-child(3){ border-top-color: #2fa7d6; }
.m-glance .m-stat:nth-child(4){ border-top-color: var(--brand-dark); }
.m-glance .m-stat .num {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.7rem;
  color: var(--brand);
  line-height: 1.1;
}
.m-glance .m-stat .lbl {
  color: var(--muted);
  font-size: .9rem;
  margin-top: 6px;
}

/* ============================================================
   IMPORTANT DATES (modern cards replacing .thumbnail blocks)
   ============================================================ */
.m-dates {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.m-date {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 24px;
  text-align:center;
  box-shadow: var(--shadow-sm);
  transition: transform .25s ease, box-shadow .25s ease;
  position: relative;
  overflow: hidden;
}
.m-date:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.m-date .ic {
  width: 60px; height:60px;
  display:inline-flex; align-items:center; justify-content:center;
  border-radius: 16px;
  background: var(--brand-light);
  color: var(--brand);
  font-size: 1.5rem;
  margin-bottom: 14px;
}
.m-date:nth-child(2) .ic { background:#fff3dd; color: var(--accent-dark); }
.m-date:nth-child(3) .ic { background:#e3f3fb; color:#2fa7d6; }
.m-date h4 {
  font-family: var(--font-head);
  color: var(--brand);
  margin: 0 0 6px;
  font-size: 1.05rem;
}
.m-date .date {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--ink);
}

/* ============================================================
   SIDEBAR QUICK MENU
   ============================================================ */
.side-nav-box {
  background:#fff;
  border:1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow:hidden;
  margin-bottom: 24px;
}
.side-nav-box header {
  background: linear-gradient(135deg, var(--brand), var(--brand-dark));
  color:#fff;
  padding: 16px 20px;
}
.side-nav-box header h3 { color:#fff; margin:0; font-size:1.15rem; }
.side-nav-box header h3::after { display:none; }
.side-nav-box nav ul { list-style:none; margin:0; padding:0; }
.side-nav-box nav li a {
  display:flex; align-items:center; gap:10px;
  padding: 13px 20px;
  color: var(--ink);
  font-weight:500;
  border-bottom: 1px solid var(--line);
  transition: background .2s ease, color .2s ease, padding-left .2s ease;
}
.side-nav-box nav li a::before {
  content:"\f105";
  font-family: FontAwesome;
  color: var(--brand);
  font-size:.9rem;
}
.side-nav-box nav li a:hover {
  background: var(--brand-light);
  color: var(--brand-dark);
  padding-left: 26px;
}
.side-nav-box nav li:last-child a { border-bottom:0; }

/* Sponsors */
.m-sponsors {
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  justify-content:center;
  gap: 26px;
  background:#fff;
  border:1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 28px;
}
.m-sponsors img {
  max-height: 70px;
  width:auto;
  opacity: 1;
  transition: transform .25s ease;
}
.m-sponsors img:hover { transform: scale(1.05); }

/* Publication logos */
.m-pub-logos { display:flex; align-items:center; gap:18px; flex-wrap:wrap; justify-content:center; margin:18px 0; }
.m-pub-logos img { max-height: 40px !important; width: auto !important; height: auto !important; }
.pub-spms { max-width: 78px !important; height: auto !important; }

/* ============================================================
   FOOTER
   ============================================================ */
.main-footer {
  background: linear-gradient(135deg, var(--brand-darker), var(--brand-dark));
  color: #cdeede;
  padding: 40px 0 26px;
}
.footer-top-bar { display:none; }
.main-footer .copyright {
  color: #cdeede;
  text-align:center;
  margin: 0;
  font-size: .92rem;
  border-top: 1px solid rgba(255,255,255,.14);
  padding-top: 20px;
}

/* ============================================================
   LEGACY COMPONENT POLISH (applies site-wide)
   ============================================================ */
/* Old .thumbnail date cards -> keep but soften */
.thumbnail {
  border: 1px solid var(--line) !important;
  border-radius: var(--radius-sm) !important;
  box-shadow: var(--shadow-sm) !important;
  transition: transform .2s ease, box-shadow .2s ease;
}
.thumbnail:hover { transform: translateY(-4px); box-shadow: var(--shadow) !important; }
.thumbnail .caption h3 { font-size: 1.05rem; }

/* Tables (committee, program, etc.) */
table {
  width: 100%;
  border-collapse: collapse;
  margin: 18px 0;
  background:#fff;
  border-radius: var(--radius-sm);
  overflow:hidden;
  box-shadow: var(--shadow-sm);
  font-size: .96rem;
}
table th, table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}
table thead th, table tr:first-child th {
  background: var(--brand);
  color:#fff;
  font-family: var(--font-head);
  font-weight:600;
}
table tbody tr:nth-child(even) { background: var(--bg-soft); }
table tbody tr:hover { background: var(--brand-light); }

/* Generic images float cleanup */
img { max-width: 100%; height: auto; }

/* Section spacing for inner content */
.home-vission-section h3,
.page-body h3 { margin-top: 30px; }

/* Responsive */
@media (max-width: 991px) {
  .m-glance { grid-template-columns: repeat(2, 1fr); }
  .m-dates { grid-template-columns: 1fr; }
}
@media (max-width: 575px) {
  .m-glance { grid-template-columns: 1fr; }
  .m-hero-inner { padding: 56px 0 64px; }
  .home-content-area { padding-top: 70px; }
}

/* ============================================================
   INNER PAGE CONTENT  (rebuilt page bodies: sub / cfp / reg ...)
   ============================================================ */

/* Page title */
.m-page-title {
  font-family: var(--font-head);
  font-size: clamp(1.55rem, 3vw, 2.05rem);
  font-weight: 700;
  color: var(--brand-dark);
  margin: 0 0 26px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
  position: relative;
  text-transform: none;
  letter-spacing: -.01em;
}
.m-page-title::after {
  content: "";
  position: absolute; left: 0; bottom: -1px;
  width: 88px; height: 4px; border-radius: 4px;
  background: linear-gradient(90deg, var(--brand), var(--accent));
}

/* Stacked cards */
.m-card + .m-card { margin-top: 24px; }
.m-card h3 { color: var(--brand-dark); }
.m-card > :first-child { margin-top: 0; }
.m-card > :last-child { margin-bottom: 0; }
.m-card p { color: var(--ink); }

/* Template download tiles */
.m-downloads { display: flex; flex-wrap: wrap; gap: 16px; margin: 20px 0 4px; }
.m-download {
  display: flex; align-items: center; gap: 14px;
  flex: 1 1 250px;
  padding: 15px 18px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  text-decoration: none !important;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.m-download:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--brand); }
.m-download .ic {
  flex: 0 0 auto; width: 46px; height: 46px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  background: var(--brand-light); color: var(--brand); font-size: 1.45rem;
}
.m-download .tx { line-height: 1.35; }
.m-download .tx b { display: block; font-family: var(--font-head); color: var(--ink); font-size: .98rem; }
.m-download .tx span { display: block; color: var(--muted); font-size: .84rem; margin-top: 2px; }
.m-download .tx a { color: var(--brand); font-weight: 600; }
.m-download .tx b a { color: var(--ink); text-decoration: none !important; }
.m-download .tx b a:hover { color: var(--brand); }

/* Callout / note */
.m-note {
  display: flex; gap: 12px;
  background: #fff8ec;
  border-left: 4px solid var(--accent);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 14px 18px;
  margin: 18px 0 0;
  font-size: .95rem;
  color: #6b4c00;
}
.m-note i.fa { color: var(--accent-dark); margin-top: 3px; }
.m-note strong { color: #8a4300; }

/* Numbered steps */
.m-steps { counter-reset: mstep; list-style: none; padding: 0; margin: 6px 0 0; }
.m-steps > li {
  position: relative;
  padding: 15px 0 15px 56px;
  border-bottom: 1px dashed var(--line);
}
.m-steps > li:last-child { border-bottom: 0; }
.m-steps > li::before {
  counter-increment: mstep;
  content: counter(mstep);
  position: absolute; left: 0; top: 13px;
  width: 34px; height: 34px; border-radius: 50%;
  background: linear-gradient(135deg, var(--brand), var(--brand-dark));
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-head); font-weight: 700; font-size: .95rem;
}
.m-steps a { font-weight: 600; }

/* Publication split (cover + text) */
.m-pub { display: flex; gap: 24px; align-items: flex-start; flex-wrap: wrap; }
.m-pub .cover {
  flex: 0 0 118px; width: 118px; max-width: 118px; height: auto;
  border-radius: 6px;
  box-shadow: var(--shadow);
}
.m-pub .body { flex: 1 1 320px; }
.m-pub .body > :first-child { margin-top: 0; }
.m-pub-logos {
  display: flex; align-items: center; justify-content: flex-start;
  gap: 20px; flex-wrap: wrap; margin: 18px 0 0;
}
.m-pub-logos img { max-height: 40px !important; width: auto !important; height: auto !important; }

/* Award items */
.m-award { padding: 16px 0; border-bottom: 1px dashed var(--line); }
.m-award:last-child { border-bottom: 0; padding-bottom: 0; }
.m-award h4 {
  margin: 0 0 6px;
  font-family: var(--font-head);
  color: var(--brand);
  font-size: 1.08rem;
}
.m-award h4 i.fa { color: var(--accent); margin-right: 8px; }
.m-award p { margin: 0; color: var(--ink); }

@media (max-width: 767px) {
  .m-page-title { margin-bottom: 20px; }
  .m-pub { gap: 16px; }
  .m-pub .cover { flex-basis: 92px; width: 92px; max-width: 92px; }
  .m-card { padding: 20px; }
}

/* ---- Tables inside cards ---- */
.m-card table, .m-table {
  width: 100% !important;
  border-collapse: collapse !important;
  margin: 16px 0 !important;
  font-size: .95rem;
  background: #fff;
  border: 1px solid var(--line) !important;
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.m-card table th, .m-table th {
  background: linear-gradient(135deg, var(--brand), var(--brand-dark)) !important;
  color: #fff !important;
  font-family: var(--font-head);
  font-weight: 600;
  padding: 12px 14px !important;
  text-align: left;
  border: 0 !important;
}
.m-card table td, .m-table td {
  padding: 11px 14px !important;
  border: 0 !important;
  border-top: 1px solid var(--line) !important;
  vertical-align: top;
}
.m-card table tr:nth-child(even) td, .m-table tr:nth-child(even) td { background: var(--bg-soft); }
.m-card table tr:hover td, .m-table tr:hover td { background: var(--brand-light); }
/* legacy tables often use <td> for the header row */
.m-card table tr:first-child td, .m-table tr:first-child td {
  background: linear-gradient(135deg, var(--brand), var(--brand-dark)) !important;
  color: #fff !important;
  font-family: var(--font-head);
  font-weight: 600;
}
.m-card table tr:first-child:hover td, .m-table tr:first-child:hover td { background: linear-gradient(135deg, var(--brand), var(--brand-dark)) !important; }

/* Neutralize Bootstrap grid columns nested inside a card (they float + add gutters) */
.m-card > [class*="col-"] {
  float: none !important;
  width: 100% !important;
  max-width: 100% !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}
.m-card > .row { margin-left: 0 !important; margin-right: 0 !important; }

/* ---- Lists / images inside cards ---- */
.m-card ul, .m-card ol { padding-left: 1.35rem; margin: 10px 0; }
.m-card li { margin: 6px 0; }
.m-card img { max-width: 100%; height: auto; }
.m-card p { margin: 0 0 12px; }
.m-card p:last-child { margin-bottom: 0; }

/* ---- News items ---- */
.m-news-item { padding: 18px 0; border-bottom: 1px dashed var(--line); }
.m-news-item:last-child { border-bottom: 0; padding-bottom: 0; }
.m-news-item:first-child { padding-top: 0; }
.m-news-item .m-news-date {
  display: inline-block;
  font-family: var(--font-head);
  font-weight: 600;
  color: var(--brand);
  background: var(--brand-light);
  border-radius: 999px;
  padding: 3px 12px;
  font-size: .8rem;
  margin-bottom: 9px;
}
.m-news-item p { margin: 0 !important; }

/* ---- Photo gallery (history) ---- */
.m-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 14px;
  margin: 8px 0;
}
.m-gallery img {
  width: 100%; height: 150px; object-fit: cover;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
  transition: transform .22s ease, box-shadow .22s ease;
}
.m-gallery img:hover { transform: translateY(-4px) scale(1.02); box-shadow: var(--shadow); }

/* ---- Generic inner-page content protection ---- */
.home-content-area > h2:first-child,
.home-content-area > h1:first-child { margin-top: 0; }

/* ============================================================
   INNER PAGE HERO  (replaces the legacy 3-panel banner.png)
   ============================================================ */
.m-page-hero {
  position: relative;
  color: #fff;
  padding: 46px 0 44px;
  overflow: hidden;
  /* same trap as .m-hero: a block section with overflow:hidden inside the
     legacy float-based wrapper collapsed to 0px wide — pin it explicitly. */
  width: 100%;
  display: block;
  background:
    radial-gradient(circle at 12% 18%, rgba(255,255,255,.12), transparent 44%),
    radial-gradient(circle at 92% 92%, rgba(246,166,35,.22), transparent 50%),
    linear-gradient(115deg, #044a30 0%, #0a7d54 52%, #075c3f 100%);
}
.m-page-hero::before {
  content: "";
  position: absolute; inset: 0;
  background-image: repeating-linear-gradient(115deg, rgba(255,255,255,.055) 0 1px, transparent 1px 24px);
  pointer-events: none;
}
.m-page-hero::after {
  content: "";
  position: absolute; right: -90px; top: -110px;
  width: 340px; height: 340px; border-radius: 50%;
  border: 44px solid rgba(255,255,255,.055);
  pointer-events: none;
}
.m-page-hero .container {
  position: relative; z-index: 2;
  display: flex; align-items: center; justify-content: space-between;
  gap: 22px; flex-wrap: wrap;
}
.m-page-hero .m-crumb {
  font-size: .85rem; letter-spacing: .04em;
  color: #bfe6d5; margin: 0 0 10px;
}
.m-page-hero .m-crumb a { color: #eafff5; text-decoration: none; }
.m-page-hero .m-crumb a:hover { color: #fff; text-decoration: underline; }
.m-page-hero .m-crumb .sep { margin: 0 9px; opacity: .55; }
.m-page-hero h1 {
  color: #fff !important;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: clamp(1.5rem, 3.1vw, 2.25rem);
  line-height: 1.16;
  letter-spacing: -.012em;
  margin: 0;
  text-shadow: 0 2px 16px rgba(0,0,0,.22);
  padding: 0;
}
.m-page-hero h1::after { display: none; }
.m-page-hero h1 a { color: var(--accent) !important; text-decoration: underline; text-underline-offset: 3px; }
.m-page-hero h1 a:hover { color: #ffd68a !important; }
.m-page-hero .m-hero-meta {
  display: flex; flex-wrap: wrap; gap: 18px 24px;
  font-size: .96rem; color: #e6f6ee; font-weight: 500;
}
.m-page-hero .m-hero-meta .it { display: inline-flex; align-items: center; gap: 9px; white-space: nowrap; }
.m-page-hero .m-hero-meta i.fa { color: var(--accent); font-size: 1.05rem; }
@media (max-width: 767px) {
  .m-page-hero { padding: 30px 0 28px; }
  .m-page-hero .m-hero-meta { font-size: .9rem; gap: 10px 18px; }
  .m-page-hero h1 { font-size: 1.45rem; }
}

/* ============================================================
   CONTENT-TYPE IMAGE POLISH  (legacy pages embed huge images)
   ============================================================ */
/* Large stand-alone figures inside content cards: cap the height,
   centre them and give a soft card look. Auto width/height keeps
   the aspect ratio intact (CSS 10.4 constraint algorithm). */
.m-card .fig-wrap,
.m-card p.fig,
.m-card p[align="center"] {
  text-align: center;
}
.m-card img { max-width: 100%; }
.m-figure img,
.m-card > .full-width > p > img,
.m-card > p > img,
.m-card p[align="center"] > img,
.m-card p.text-center > img {
  max-height: 400px;
  width: auto;
  height: auto;
  border-radius: 10px;
}
.m-figure {
  margin: 6px 0 10px;
  text-align: center;
}
.m-figure figcaption,
.m-fig-cap {
  display: block;
  font-size: .88rem;
  color: var(--muted);
  margin-top: 8px;
  font-style: normal;
}
/* rows of small photos (icoms2025 / history) */
.m-pic-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
  margin: 14px 0;
}
.m-pic-grid img {
  width: 100% !important;
  height: 190px !important;
  max-height: 190px !important;
  object-fit: cover;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
  transition: transform .22s ease, box-shadow .22s ease;
}
.m-pic-grid img:hover { transform: translateY(-4px) scale(1.02); box-shadow: var(--shadow); }

/* ============================================================
   YEAR BLOCKS  (history / icoms2025 / best)
   ============================================================ */
.m-year {
  font-family: var(--font-head);
  color: var(--brand-dark);
  font-size: 1.28rem;
  font-weight: 700;
  margin: 34px 0 4px;
  padding: 0 0 10px 16px;
  border-bottom: 1px solid var(--line);
  position: relative;
}
.m-year::before {
  content: "";
  position: absolute; left: 0; top: 4px; bottom: 14px;
  width: 5px; border-radius: 4px;
  background: linear-gradient(180deg, var(--brand), var(--accent));
}
.m-year::after { display: none; }
.m-year:first-child { margin-top: 6px; }
.m-year-sub {
  text-align: center;
  color: var(--muted);
  font-size: .95rem;
  margin: 2px 0 14px;
}

/* ============================================================
   AWARD ITEMS  (best.html)
   ============================================================ */
.m-award-item {
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--brand);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  background: var(--bg-soft);
  margin: 12px 0;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.m-award-item:hover { transform: translateX(3px); box-shadow: var(--shadow-sm); border-left-color: var(--accent); }
.m-award-item .code {
  display: inline-block;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: .8rem;
  letter-spacing: .06em;
  color: #fff;
  background: linear-gradient(135deg, var(--brand), var(--brand-dark));
  border-radius: 999px;
  padding: 3px 12px;
  margin-bottom: 9px;
}
.m-award-item .ttl { display: block; font-weight: 600; color: var(--ink); margin: 0 0 7px; }
.m-award-item .who { display: block; font-weight: 700; color: var(--brand-dark); font-size: .98rem; }
.m-award-item .aff { display: block; color: var(--muted); font-size: .9rem; margin-top: 2px; }

/* ============================================================
   SPEAKERS  (keynote / invited)
   ============================================================ */
.m-speaker {
  display: flex;
  gap: 26px;
  align-items: flex-start;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow-sm);
  margin: 0 0 24px;
  transition: box-shadow .25s ease, border-color .25s ease;
}
.m-speaker:hover { box-shadow: var(--shadow); border-color: #d4e8dd; }
.m-speaker .photo {
  flex: 0 0 176px;
  width: 176px;
}
.m-speaker .photo img {
  width: 100% !important;
  height: auto !important;
  max-height: 240px !important;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
}
.m-speaker .info { flex: 1 1 320px; min-width: 0; }
.m-speaker .info h3 {
  margin: 0 0 4px;
  padding: 0;
  font-size: 1.3rem;
  color: var(--brand-dark);
}
.m-speaker .info h3::after { display: none; }
.m-speaker .aff {
  color: var(--muted);
  font-size: .93rem;
  margin: 0 0 14px;
  line-height: 1.5;
}
.m-speaker .bio { margin: 0 0 16px; font-size: .95rem; }
.m-speaker .talk {
  background: var(--accent);
  color: #fff;
  border-radius: 10px;
  padding: 11px 16px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: .95rem;
  margin: 0 0 14px;
}
.m-speaker .talk i.fa { margin-right: 8px; }
.m-speaker .talk .lbl { opacity: .85; font-weight: 500; }
.m-speaker .abstract {
  background: var(--brand-light);
  border-left: 4px solid var(--brand);
  border-radius: 0 10px 10px 0;
  padding: 14px 18px;
  font-size: .95rem;
  color: #26564a;
  margin: 0;
}
.m-speaker .abstract .lbl {
  display: block;
  font-family: var(--font-head);
  font-weight: 700;
  color: var(--brand-dark);
  margin-bottom: 6px;
}
@media (max-width: 640px) {
  .m-speaker { flex-direction: column; gap: 16px; padding: 20px; }
  .m-speaker .photo { flex-basis: auto; width: 150px; }
}

/* ============================================================
   CONTACT  (contact.html)
   ============================================================ */
.m-contact-head {
  display: flex; align-items: center; gap: 20px;
  padding-bottom: 20px; margin-bottom: 20px;
  border-bottom: 1px dashed var(--line);
}
.m-contact-head img { width: 96px; height: 96px; flex: 0 0 96px; object-fit: contain; }
.m-contact-head h3 { margin: 0 0 4px; padding: 0; font-size: 1.25rem; color: var(--brand-dark); }
.m-contact-head h3::after { display: none; }
.m-contact-head .role { color: var(--muted); font-size: .95rem; margin: 0; }
.m-contact-list { list-style: none; padding: 0; margin: 0; }
.m-contact-list li {
  display: flex; align-items: flex-start; gap: 14px;
  padding: 14px 0; border-bottom: 1px dashed var(--line);
}
.m-contact-list li:last-child { border-bottom: 0; padding-bottom: 0; }
.m-contact-list .ic {
  flex: 0 0 42px; width: 42px; height: 42px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  background: var(--brand-light); color: var(--brand); font-size: 1.05rem;
}
.m-contact-list .k {
  display: block; font-family: var(--font-head); font-weight: 600;
  color: var(--muted); font-size: .8rem; letter-spacing: .06em;
  text-transform: uppercase; margin-bottom: 2px;
}
.m-contact-list .v { display: block; color: var(--ink); font-size: 1.02rem; font-weight: 500; }
.m-contact-list a.v { color: var(--brand); }
.m-contact-list a.v:hover { color: var(--brand-dark); text-decoration: underline; }

/* ============================================================
   NOTE / FEE LISTS  (reg.html)
   ============================================================ */
.m-note-list { list-style: none; padding: 0; margin: 0 0 20px; }
.m-note-list li {
  position: relative;
  padding: 9px 0 9px 30px;
  border-bottom: 1px dashed var(--line);
  font-size: .95rem;
  color: var(--ink);
}
.m-note-list li:last-child { border-bottom: 0; }
.m-note-list li::before {
  content: "\f0da";
  font-family: FontAwesome;
  position: absolute; left: 8px; top: 9px;
  color: var(--brand);
}
.m-fee-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin: 18px 0 0; }
.m-fee-col {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-top: 4px solid var(--brand);
  border-radius: var(--radius-sm);
  padding: 20px;
}
.m-fee-col:nth-child(2) { border-top-color: var(--accent); }
.m-fee-col h4 {
  margin: 0 0 12px;
  font-family: var(--font-head);
  color: var(--brand-dark);
  font-size: 1.02rem;
}
.m-fee-col ul { list-style: none; padding: 0; margin: 0; }
.m-fee-col li {
  position: relative;
  padding: 6px 0 6px 24px;
  font-size: .93rem;
  color: var(--ink);
  border-bottom: 1px dashed rgba(0,0,0,.06);
}
.m-fee-col li:last-child { border-bottom: 0; }
.m-fee-col li::before {
  content: "\f00c";
  font-family: FontAwesome;
  position: absolute; left: 4px; top: 7px;
  color: var(--brand);
  font-size: .8rem;
}
@media (max-width: 640px) { .m-fee-cols { grid-template-columns: 1fr; } }

/* ============================================================
   EMPTY STATE  (social.html)
   ============================================================ */
.m-empty {
  text-align: center;
  padding: 54px 24px;
  background: var(--bg-tint);
  border: 2px dashed #cfe4d9;
  border-radius: var(--radius);
}
.m-empty .ic {
  width: 74px; height: 74px; margin: 0 auto 16px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: #fff; color: var(--brand);
  font-size: 1.9rem; box-shadow: var(--shadow-sm);
}
.m-empty h4 {
  font-family: var(--font-head);
  color: var(--brand-dark);
  font-size: 1.15rem;
  margin: 0 0 8px;
}
.m-empty p { color: var(--muted); margin: 0; font-size: .95rem; }

/* ---- venue info block ---- */
.m-venue-info {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 14px;
  margin: 0 0 20px;
}
.m-venue-info .row-item {
  display: flex; align-items: flex-start; gap: 12px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
}
.m-venue-info .ic {
  flex: 0 0 36px; width: 36px; height: 36px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  background: var(--brand-light); color: var(--brand);
}
.m-venue-info .k {
  display: block; font-family: var(--font-head); font-weight: 600;
  font-size: .76rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted);
}
.m-venue-info .v { display: block; color: var(--ink); font-size: .93rem; word-break: break-word; }
.m-venue-info a.v { color: var(--brand); }

/* ---- news polish ---- */
.m-news-item .m-news-date i.fa { margin-right: 6px; }

/* ============================================================
   TABLE / FIGURE HELPERS  (date, reg, history, icoms2025)
   ============================================================ */
.m-table .ta-r, .m-card table .ta-r { text-align: right !important; white-space: nowrap; }
.m-dates-tbl tbody td { padding-top: 15px !important; padding-bottom: 15px !important; }
.m-dates-tbl tbody td:first-child { font-weight: 500; }
.m-dates-tbl tbody td:first-child i.fa { color: var(--brand); width: 22px; display: inline-block; margin-right: 6px; font-size: 1rem; }
.m-dates-tbl tbody td:last-child { font-family: var(--font-head); color: var(--brand-dark); font-size: 1.02rem; }
.m-fee-tbl tbody td:first-child { font-weight: 500; }

/* figure / caption inside the legacy history pages */
p.m-figure { margin: 14px 0 0; text-align: center; }
p.m-figure img { display: block; margin: 0 auto; }
p.m-fig-cap {
  text-align: center;
  color: var(--muted);
  font-size: .9rem;
  margin: 8px 0 6px;
  font-style: normal;
}
p.m-pub-line {
  text-align: center;
  color: var(--muted);
  font-size: .9rem;
  margin: 6px 0 16px;
  line-height: 1.65;
}
p.m-year-sub { margin-bottom: 12px; }

/* ============================================================
   SPEAKER BLOCK (legacy keynote / invited markup, CSS only)
   ============================================================ */
.m-card .speaker-photo,
.m-card p[align="center"] > img + br { }

/* A real <thead> means the first <tbody> row is data, not a header row —
   undo the legacy "first row = header" styling for those tables. */
.m-table thead ~ tbody tr:first-child td,
.m-card table thead ~ tbody tr:first-child td {
  background: #fff !important;
  color: var(--ink) !important;
  font-family: var(--font-body) !important;
  font-weight: 400 !important;
}
.m-table thead ~ tbody tr:first-child:hover td,
.m-card table thead ~ tbody tr:first-child:hover td { background: var(--brand-light) !important; }
.m-table thead ~ tbody tr:nth-child(even) td,
.m-card table thead ~ tbody tr:nth-child(even) td { background: var(--bg-soft) !important; }
.m-table thead ~ tbody tr:nth-child(even):hover td,
.m-card table thead ~ tbody tr:nth-child(even):hover td { background: var(--brand-light) !important; }

/* venue: the website row spans the full grid width */
.m-venue-info .row-item.wide { grid-column: 1 / -1; }

/* inline row of 2 legacy images (slide + portrait) — keep them uncropped */
p.m-pic-row {
  display: flex; gap: 12px; justify-content: center; align-items: flex-start;
  flex-wrap: wrap; margin: 14px 0;
}
p.m-pic-row img {
  max-height: 300px !important; width: auto !important; height: auto !important;
  border-radius: var(--radius-sm); box-shadow: var(--shadow-sm);
}

/* ---- legacy float containment -------------------------------------------
   style.css ships `.full-width { width:100%; float:left }`. Inside our
   .m-card that float was not contained, so the card collapsed to its padding
   and every paragraph spilled outside the border (seen on com.html).
   `display: flow-root` makes each card establish its own block formatting
   context, and the direct child float is neutralised outright. */
.m-card { display: flow-root; }
.m-card > .full-width { float: none !important; width: 100% !important; }
.m-card::after { content: ""; display: block; clear: both; }

/* ============================================================
   COMMITTEE GROUPS  (com.html)
   ============================================================ */
.m-committee-group { margin: 0 0 26px; }
.m-committee-group:last-of-type { margin-bottom: 0; }
.m-committee-group h4 {
  font-family: var(--font-head);
  color: var(--brand-dark);
  font-size: 1.06rem;
  margin: 0 0 12px;
  padding-left: 15px;
  position: relative;
}
.m-committee-group h4::before {
  content: "";
  position: absolute; left: 0; top: 3px; bottom: 3px; width: 4px;
  border-radius: 3px;
  background: linear-gradient(180deg, var(--brand), var(--accent));
}
.m-people { list-style: none; padding: 0; margin: 0; }
.m-people li {
  position: relative;
  padding: 6px 0 6px 20px;
  font-size: .94rem;
  line-height: 1.5;
  color: var(--ink);
  break-inside: avoid;
}
.m-people li::before {
  content: "";
  position: absolute; left: 3px; top: 13px;
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--brand); opacity: .55;
}
.m-people.cols { columns: 2; column-gap: 34px; }
@media (max-width: 700px) { .m-people.cols { columns: 1; } }
.m-note.m-recruit { align-items: flex-start; margin-top: 6px; }
.m-note.m-recruit strong { display: block; margin-bottom: 4px; }
.m-note.m-recruit p { margin: 0; }

/* ---- hero responsive: keep the carousel arrows clear of the headline ----- */
@media (max-width: 1330px) {
  .m-hero .container { padding-left: 84px; padding-right: 84px; }
}
@media (max-width: 767px) {
  .m-hero .container { padding-left: 15px; padding-right: 15px; }
  .m-hero-arrow { display: none; }
  .m-hero-inner { padding: 62px 0 72px; }
  .m-hero .eyebrow { letter-spacing: .10em; padding: 6px 13px; }
}

/* ============================================================
   INNER PAGE HERO · v2   (2026-10-21)
   All 17 inner pages share one markup:
     .m-page-hero > .container > (.m-page-hero-text | .m-hero-meta)
   so the whole restyle is CSS-only.
   ============================================================ */

.m-page-hero {
  padding: 54px 0 48px;
  isolation: isolate;
  box-shadow: 0 12px 30px -20px rgba(3, 58, 37, .60);
  background-color: #055235;
  background-image:
    radial-gradient(120% 95% at 4% 0%, rgba(255,255,255,.17), transparent 46%),
    url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%20200%20460%27%3E%3Cpath%20fill%3D%27%23ffffff%27%20fill-opacity%3D%270.07%27%20fill-rule%3D%27evenodd%27%20d%3D%27M100%2010%20L58%20140%20L58%20330%20L40%20345%20L40%20460%20L160%20460%20L160%20345%20L142%20330%20L142%20140%20Z%20M72%20175%20L84%20175%20L84%20200%20L72%20200%20Z%20M93%20175%20L107%20175%20L107%20200%20L93%20200%20Z%20M116%20175%20L128%20175%20L128%20200%20L116%20200%20Z%20M72%20232%20L84%20232%20L84%20257%20L72%20257%20Z%20M93%20232%20L107%20232%20L107%20257%20L93%20257%20Z%20M116%20232%20L128%20232%20L128%20257%20L116%20257%20Z%20M72%20289%20L84%20289%20L84%20314%20L72%20314%20Z%20M93%20289%20L107%20289%20L107%20314%20L93%20314%20Z%20M116%20289%20L128%20289%20L128%20314%20L116%20314%20Z%27%2F%3E%3Crect%20x%3D%2752%27%20y%3D%27138%27%20width%3D%2796%27%20height%3D%277%27%20rx%3D%272%27%20fill%3D%27%23ffffff%27%20fill-opacity%3D%270.07%27%2F%3E%3Crect%20x%3D%2752%27%20y%3D%27326%27%20width%3D%2796%27%20height%3D%277%27%20rx%3D%272%27%20fill%3D%27%23ffffff%27%20fill-opacity%3D%270.07%27%2F%3E%3C%2Fsvg%3E"),
    radial-gradient(95% 125% at 96% 104%, rgba(246,166,35,.28), transparent 58%),
    linear-gradient(112deg, #033b25 0%, #0a7d54 50%, #07543a 100%);
  background-repeat: no-repeat;
  background-position: 0 0, right 5% bottom, 0 0, 0 0;
  background-size: auto, auto 100%, auto, auto;
}

/* hairlines + a 3px amber rule that closes the band */
.m-page-hero::before {
  content: "";
  position: absolute; inset: 0;
  pointer-events: none;
  background-image:
    repeating-linear-gradient(115deg, rgba(255,255,255,.042) 0 1px, transparent 1px 26px),
    linear-gradient(90deg,
      rgba(246,166,35,0) 0%,
      rgba(246,166,35,.85) 30%,
      rgba(255,225,170,.95) 55%,
      rgba(246,166,35,.85) 78%,
      rgba(246,166,35,0) 100%);
  background-repeat: repeat, no-repeat;
  background-size: auto, 100% 3px;
  background-position: 0 0, 0 100%;
}

/* the old decorative ring clashed with the new tower mark */
.m-page-hero::after { content: none; }

/* stack the hero vertically: breadcrumb -> title -> meta chips */
.m-page-hero .container { display: block; }

/* breadcrumb as a small glass eyebrow pill */
.m-page-hero .m-crumb {
  display: inline-flex;
  align-items: center;
  font-size: .71rem;
  font-weight: 600;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: rgba(216, 243, 231, .95);
  background: rgba(255, 255, 255, .09);
  border: 1px solid rgba(255, 255, 255, .17);
  border-radius: 999px;
  padding: 5px 14px 5px 12px;
  line-height: 1.5;
  margin: 0 0 17px;
}
.m-page-hero .m-crumb a { color: rgba(236, 253, 245, .95) !important; }
.m-page-hero .m-crumb .sep { margin: 0 7px; opacity: .45; }

.m-page-hero h1 {
  font-size: clamp(1.6rem, 3.4vw, 2.45rem) !important;
  line-height: 1.14 !important;
  letter-spacing: -.015em;
  max-width: 780px;
  margin: 0 !important;
}

/* meta chips */
.m-page-hero .m-hero-meta {
  margin-top: 21px;
  gap: 10px;
  font-size: .92rem;
  color: #ecfaf3;
}
.m-page-hero .m-hero-meta .it {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px 8px 13px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .105);
  border: 1px solid rgba(255, 255, 255, .21);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  font-weight: 500;
  letter-spacing: .012em;
  white-space: nowrap;
}
.m-page-hero .m-hero-meta .it i.fa { color: #ffc463; }

/* tablet / small: drop the tower so it never crowds the title */
@media (max-width: 900px) {
  .m-page-hero {
    background-image:
      radial-gradient(120% 95% at 4% 0%, rgba(255,255,255,.17), transparent 46%),
      radial-gradient(95% 125% at 96% 104%, rgba(246,166,35,.28), transparent 58%),
      linear-gradient(112deg, #033b25 0%, #0a7d54 50%, #07543a 100%);
    background-position: 0 0, 0 0, 0 0;
    background-size: auto, auto, auto;
  }
}

@media (max-width: 767px) {
  .m-page-hero { padding: 32px 0 30px; }
  .m-page-hero .m-crumb { font-size: .66rem; padding: 4px 12px 4px 10px; margin-bottom: 14px; }
  .m-page-hero h1 { font-size: 1.5rem !important; max-width: none; }
  .m-page-hero .m-hero-meta { margin-top: 16px; gap: 8px; font-size: .85rem; }
  .m-page-hero .m-hero-meta .it { padding: 7px 13px 7px 11px; gap: 7px; }
}

/* ============================================================
   HOME HERO · banner-image mode (v1)
   Designer delivers a finished 1920x720 banner that already carries
   the headline, so on >=1201px we hide the HTML text layer and let the
   artwork speak. Narrow screens keep the gradient + HTML text until the
   1600x1200 tablet / 1080x1200 portrait artwork arrives.
   ============================================================ */
@media (min-width: 1201px) {
  /* artwork is 8:3 — let height follow width, but never collapse or run away */
  .m-hero {
    aspect-ratio: 8 / 3;
    min-height: 380px;
    max-height: 820px;
  }

  .m-slide.m-bg-1 {
    background-image: url("../images/banner/home-1-1920x720.jpg");
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
  }

  /* the banner owns the typography now */
  .m-hero .eyebrow,
  .m-hero h1,
  .m-hero .sub,
  .m-hero .meta { display: none; }

  /* keep only the CTA row, aligned to the artwork's text edge (8.33%) */
  .m-hero .container {
    position: absolute;
    inset: 0;
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
    display: block;
    z-index: 3;
  }
  .m-hero-inner { position: absolute; inset: 0; padding: 0; max-width: none; }
  /* the artwork leaves ~36% of empty band at the bottom — park the CTA in it */
  .m-hero .cta {
    position: absolute;
    left: 8.33%;
    bottom: 20%;
    margin: 0;
  }

  /* a photo already has contrast — drop the heavy left scrim */
  .m-hero-overlay {
    background: linear-gradient(180deg, transparent 62%, rgba(3,26,18,.34) 100%);
  }
  .m-hero-overlay::after { display: none; }

  /* the artwork has its own texture and its own tower */
  .m-hero::before { display: none; }
  .m-hero-skyline { display: none; }

  /* single banner for now */
  .m-hero-arrow { display: none; }
}

/* the CTA needs to read on a photo, not on a flat gradient */
@media (min-width: 1201px) {
  .m-hero .cta { gap: 15px; }
  .m-hero .cta .btn { padding: 14px 30px; font-size: 1.02rem; }
  /* base .btn-success / .btn-warning carry color:!important — must out-shout it */
  .m-hero .cta .btn.btn-success {
    background: #fff !important;
    border: 1px solid #fff !important;
    color: #064e35 !important;
    box-shadow: 0 10px 26px rgba(2,20,13,.30) !important;
  }
  .m-hero .cta .btn.btn-success:hover {
    background: #eef6f1 !important;
    border-color: #eef6f1 !important;
    color: #033b26 !important;
  }
  .m-hero .cta .btn.btn-warning {
    background: rgba(255,255,255,.10) !important;
    border: 1.5px solid rgba(255,255,255,.80) !important;
    color: #fff !important;
    box-shadow: none !important;
  }
  .m-hero .cta .btn.btn-warning:hover {
    background: rgba(255,255,255,.22) !important;
    border-color: #fff !important;
    color: #fff !important;
  }
}


/* single banner for now — drop the carousel arrows everywhere until
   banners 2 and 3 land (index.html only carries slide 1) */
.m-hero-arrow { display: none; }

/* partner names without logo artwork (ICoMS 2027) */
.m-partner-list { list-style: none; margin: 8px 0 14px; padding: 0; }
.m-partner-list li {
  position: relative;
  padding: 7px 0 7px 18px;
  font-size: .92rem;
  line-height: 1.45;
  color: var(--text, #24453a);
  border-bottom: 1px dashed rgba(10,125,84,.18);
}
.m-partner-list li::before {
  content: "";
  position: absolute; left: 0; top: 14px;
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent, #f6a623);
}

/* ICoMS 2026 history entry — sub-headings and speaker / award lists */
.m-h-sub {
  font-family: var(--font-head);
  color: var(--brand-dark);
  font-size: 1.04rem;
  font-weight: 700;
  margin: 24px 0 10px;
  padding-left: 12px;
  border-left: 3px solid var(--accent);
}
.m-h-people { list-style: none; margin: 8px 0 12px; padding: 0; }
.m-h-people li {
  position: relative;
  padding: 8px 0 8px 17px;
  font-size: .93rem;
  line-height: 1.6;
  color: var(--ink);
  border-bottom: 1px dashed rgba(10,125,84,.18);
}
.m-h-people li::before {
  content: "";
  position: absolute; left: 0; top: 16px;
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent);
}
.m-h-people em { color: var(--muted); font-style: italic; }
p.m-pub-line a { color: var(--brand); font-weight: 600; }

/* ============================================================
   PARTNER LOGO WALL  (ICoMS 2027 · index.html + sponsor.html)
   Replaces the temporary plain-text .m-partner-list once the
   university logo artwork is supplied.
   ============================================================ */
.m-partner-logos {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 12px 14px;
  margin: 12px 0 20px;
  padding: 0;
}
.m-partner-logos li {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 1 auto;
  min-width: 108px;
  min-height: 86px;
  padding: 12px 14px;
  background: #fff;
  border: 1px solid rgba(10,125,84,.16);
  border-radius: 10px;
  box-shadow: 0 3px 12px rgba(6,60,42,.06);
}
.m-partner-logos img {
  display: block;
  max-width: 100%;
  max-height: 62px;
  width: auto;
  height: auto;
  object-fit: contain;
}
@media (max-width: 480px) {
  .m-partner-logos li { flex: 1 1 44%; min-width: 0; }
}

/* small group label used on sponsor.html (index.html keeps its own <h3>) */
.m-partner-label {
  font-family: var(--font-head);
  font-size: .98rem;
  font-weight: 700;
  color: var(--brand-dark);
  margin: 18px 0 0;
}
.m-card > .m-partner-label:first-of-type { margin-top: 4px; }

/* legacy theme styles every <li> with a decorative bullet — kill it here */
.m-partner-logos li { list-style: none !important; }
.m-partner-logos li::before { content: none !important; display: none !important; }

/* the homepage sidebar is only ~216px wide — a 2-column grid keeps
   the five logo tiles compact; horizontal wordmarks span both columns */
.home-sidebar .m-partner-logos {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.home-sidebar .m-partner-logos li {
  min-width: 0;
  min-height: 78px;
  padding: 8px 10px;
}
.home-sidebar .m-partner-logos li.wide { grid-column: 1 / -1; }
.home-sidebar .m-partner-logos img { max-height: 56px; }

/* narrow screens: keep group labels aligned with the logo tiles and
   let horizontal wordmarks own a full row instead of being squeezed */
.m-partner-label { text-align: left !important; }
@media (max-width: 767px) {
  .m-partner-logos li.wide { flex: 1 1 100%; }
}


/* ============================================================
   PARTNER LOGO WALL · UNIFORM TILES  (2026-11-23)
   Co-Sponsored / Supported logos now all share one identical
   white tile and one identical image box. Used on index.html
   (sidebar) and sponsor.html (main column).
   ============================================================ */
.m-partner-logos.uniform {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 12px 0 20px;
}
.m-partner-logos.uniform li {
  min-width: 0;
  min-height: 96px;
  padding: 10px 12px;
  border-radius: 10px;
}
.m-partner-logos.uniform img {
  width: 100%;
  height: 56px;
  max-height: none;
  object-fit: contain;
}
/* narrow homepage sidebar: 2 columns */
.home-sidebar .m-partner-logos.uniform {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.home-sidebar .m-partner-logos.uniform li { min-height: 80px; padding: 8px 10px; }
.home-sidebar .m-partner-logos.uniform img { height: 46px; }
/* in the 2-column sidebar an odd last tile takes a full row instead of leaving a hole */
.home-sidebar .m-partner-logos.uniform li:last-child:nth-child(odd) { grid-column: 1 / -1; }
@media (max-width: 767px) {
  .m-partner-logos.uniform { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  /* 2 columns + odd count: let the last tile own a full row everywhere */
  .m-partner-logos.uniform li:last-child:nth-child(odd) { grid-column: 1 / -1; }
}
@media (max-width: 480px) {
  .m-partner-logos.uniform li { min-height: 76px; }
}

/* ============================================================
   INNER PAGE SIDEBAR EXTRAS  (2026-11-23)
   Six compact modules filling the empty left column on all
   inner pages. index.html keeps its own partner wall instead.
   ============================================================ */
.m-side-photo {
  position: relative;
  overflow: hidden;
  min-height: 196px;
  margin-bottom: 20px;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
  background: #063b2e;
}
.m-side-photo img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.m-side-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,
    rgba(2, 25, 35, .22) 0%,
    rgba(2, 33, 38, .55) 42%,
    rgba(4, 42, 33, .95) 100%);
}
.m-side-photo-inner {
  position: relative;
  z-index: 1;
  min-height: 196px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 6px;
  padding: 18px 18px 16px;
  color: #fff;
}
.m-side-kicker {
  font-family: var(--font-head);
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: #ffd48a;
}
.m-side-photo-inner strong {
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.25;
}
.m-side-city { font-size: .8rem; color: rgba(255,255,255,.9); }
.m-side-city i { color: #ffd48a; margin-right: 4px; }
a.m-side-photo-link {
  align-self: flex-start;
  margin-top: 4px;
  font-size: .78rem;
  font-weight: 600;
  color: #ffd48a !important;
}
a.m-side-photo-link:hover { color: #fff !important; }

.m-side-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
  padding: 16px 16px 14px;
  margin-bottom: 18px;
}
.m-side-card h4 {
  display: flex !important;
  align-items: center;
  gap: 8px;
  font-family: var(--font-head) !important;
  font-size: .95rem !important;
  font-weight: 700 !important;
  line-height: 1.3 !important;
  letter-spacing: 0 !important;
  color: var(--brand-dark) !important;
  background: none !important;
  border: 0 !important;
  border-bottom: 1px solid var(--line) !important;
  border-radius: 0 !important;
  margin: 0 0 10px !important;
  padding: 0 0 10px !important;
  text-transform: none !important;
}
.m-side-card h4::before, .m-side-card h4::after { display: none !important; }
.m-side-card h4 i { color: var(--brand); font-size: .9rem; }

.m-side-date {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 7px 0;
  border-bottom: 1px dashed var(--line);
}
.m-side-date:last-child { border-bottom: 0; }
.m-side-date span { font-size: .76rem; color: var(--muted); }
.m-side-date b {
  font-family: var(--font-head);
  font-size: .88rem;
  color: var(--brand-dark);
}

a.m-side-more {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 10px;
  font-size: .78rem;
  font-weight: 600;
  color: var(--brand) !important;
}
a.m-side-more:hover { color: var(--brand-dark) !important; }

a.m-side-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 9px 12px;
  margin-bottom: 8px;
  border-radius: 8px;
  font-family: var(--font-head);
  font-size: .82rem;
  font-weight: 600;
  text-decoration: none;
}
a.m-side-btn.primary {
  background: linear-gradient(135deg, var(--brand), var(--brand-dark));
  color: #fff !important;
}
a.m-side-btn.primary:hover { color: #fff !important; filter: brightness(1.08); }
a.m-side-btn.outline {
  background: #fffaf0;
  border: 1px solid var(--accent);
  color: #a4690a !important;
}
a.m-side-btn.outline:hover { color: #7c4d05 !important; background: #fff3dd; }

.m-side-links a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 0;
  font-size: .8rem;
  line-height: 1.35;
  color: var(--ink) !important;
  border-bottom: 1px dashed var(--line);
}
.m-side-links a:last-child { border-bottom: 0; }
.m-side-links a:hover { color: var(--brand) !important; }
.m-side-links a i { flex: 0 0 16px; text-align: center; color: var(--brand); }
.m-side-links a span {
  margin-left: auto;
  font-size: .64rem;
  letter-spacing: .05em;
  color: var(--muted);
}

p.m-side-note {
  font-size: .76rem;
  line-height: 1.55;
  color: var(--muted) !important;
  margin: 0 0 8px !important;
}
.m-side-publogos { display: flex; align-items: center; gap: 14px; margin: 8px 0 2px; }
.m-side-publogos img { max-height: 28px; width: auto; height: auto; }
a.m-side-mail {
  display: block;
  font-size: .84rem;
  font-weight: 600;
  color: var(--brand) !important;
  word-break: break-all;
  margin-bottom: 8px;
}
a.m-side-mail:hover { color: var(--brand-dark) !important; }

@media (max-width: 991px) {
  .m-side-photo { min-height: 170px; }
  .m-side-photo-inner { min-height: 170px; }
}

/* legacy .page-body switches to center alignment on small screens —
   keep the sidebar modules left-aligned and readable */
.m-side-card, .m-side-photo-inner { text-align: left !important; }


/* ============================================================
   INNER PAGE HERO · PHOTO BACKGROUND  (v3 · 2026-11-23)
   Every non-index page now uses the Istanbul panorama for the
   title band. Only the background changes: the v2 breadcrumb,
   title, chips, spacing and the 3px amber closing rule remain.
   `section.m-page-hero` outranks the v2 `.m-page-hero` rules.
   ============================================================ */
section.m-page-hero {
  background-color: #062b3a;
  background-image:
    linear-gradient(90deg,
      rgba(2, 26, 38, .93) 0%,
      rgba(2, 31, 45, .86) 30%,
      rgba(3, 34, 50, .58) 57%,
      rgba(4, 30, 46, .16) 100%),
    url("../images/banner/page-hero-2560x480.jpg");
  background-repeat: no-repeat;
  background-position: 0 0, center center;
  background-size: auto, cover;
}
/* diagonal hatching looks dirty on a photo — keep only the amber rule */
section.m-page-hero::before {
  background-image: linear-gradient(90deg,
    rgba(246,166,35,0) 0%,
    rgba(246,166,35,.85) 30%,
    rgba(255,225,170,.95) 55%,
    rgba(246,166,35,.85) 78%,
    rgba(246,166,35,0) 100%);
  background-repeat: no-repeat;
  background-size: 100% 3px;
  background-position: 0 100%;
}
@media (max-width: 767px) {
  /* keep the mosque + coloured houses in frame on narrow screens */
  section.m-page-hero { background-position: 0 0, 44% center; }
}


/* ============================================================
   HISTORY 2026 · THREE-PHOTO ROWS  (2026-11-26)
   The four .m-pic-row blocks inside the ICoMS 2026 card (tagged
   .two-up — legacy class name kept) use a fixed 3-per-row grid.
   The one 2-photo row (.pair) stretches over 2 columns so it does
   not leave a hole. Other years and pages are unaffected.
   ============================================================ */
p.m-pic-row.two-up {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  justify-content: stretch;
  margin: 14px 0;
}
p.m-pic-row.two-up.pair {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
p.m-pic-row.two-up img {
  display: block;
  width: 100% !important;
  max-width: 100% !important;
  height: auto !important;
  max-height: none !important;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
}
@media (max-width: 767px) {
  p.m-pic-row.two-up, p.m-pic-row.two-up.pair {
    grid-template-columns: 1fr;
    gap: 10px;
  }
}


/* ============================================================
   CO-SPONSOR DUO  (2026-11-26)
   Co-Sponsored has 2 logos after Istanbul University was removed;
   give this group its own 2-column grid so no cell is left empty
   in sponsor.html's 3-column wall. Sidebar was already 2 columns.
   ============================================================ */
.m-partner-logos.uniform.duo { grid-template-columns: repeat(2, minmax(0, 1fr)); }
