@charset "utf-8";
/* ==========================================================================
   WECE 2026 — Modern IEEE-style presentation layer
   Overrides the legacy 2012 skeleton theme. Load AFTER css/style.css.
   Content (text, links, images) is untouched — this file only restyles.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Design tokens
   -------------------------------------------------------------------------- */
:root {
  --ink:        #1b2733;
  --ink-2:      #3d4f61;
  --muted:      #6b7a8a;
  --faint:      #94a2b0;

  --navy:       #0d2d4a;
  --navy-2:     #16405f;
  --accent:     #00629b;
  --accent-2:   #0089cc;
  --accent-tint:#eaf3f9;

  --brand:      #c1452b;
  --date:       #9d1b1b;

  --line:       #dde4ec;
  --line-2:     #eef2f6;
  --bg:         #f5f7fa;
  --card:       #ffffff;

  --radius:     4px;
  --radius-lg:  8px;
  --shadow-sm:  0 1px 2px rgba(16, 38, 60, .06);
  --shadow-md:  0 4px 14px rgba(16, 38, 60, .08);

  --maxw:       1200px;
  --gutter:     32px;

  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue",
          "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", Arial, sans-serif;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia,
           "Times New Roman", serif;
}

/* --------------------------------------------------------------------------
   2. Base & typography reset
   -------------------------------------------------------------------------- */
html { -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--sans) !important;
  font-size: 16px;
  line-height: 1.75;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "kern" 1;
}

p, li, td, th, dd, dt, blockquote, label, span, div {
  font-family: inherit;
}

/* Neutralise obsolete presentational typography attributes */
font[size],
font[face] { font-size: inherit !important; font-family: inherit !important; }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--sans) !important;
  color: var(--navy);
  font-weight: 600;
  letter-spacing: -.011em;
  margin: 0 0 .6em;
  line-height: 1.3;
}
h1 { font-size: 40px; letter-spacing: -.02em; }
h2 { font-size: 30px; }
h3 { font-size: 25px; margin-bottom: .7em; }
h4 { font-size: 20px; }
h5 { font-size: 17px; }
h6 { font-size: 15.5px; }

/* kill legacy base.css heading metrics */
h1, h2, h3, h4, h5, h6 { line-height: 1.3 !important; }

p { margin: 0 0 1.15em; }
p:last-child { margin-bottom: 0; }

a {
  color: var(--accent);
  text-decoration: none;
  transition: color .16s ease, border-color .16s ease, background-color .16s ease;
}
a:hover { color: var(--accent-2); text-decoration: underline; text-underline-offset: 2px; }
a:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 2px; border-radius: 2px; }

img { max-width: 100%; height: auto; border: 0; }

hr {
  border: 0;
  height: 1px;
  background: var(--line);
  margin: 40px 0;
  clear: both;
}

small { font-size: 87%; color: var(--muted); }

/* Semantic text helpers (replace obsolete <font color>) */
.on-dark  { color: #fff !important; }
.tx-brand { color: var(--brand) !important; font-weight: 600; }
.tx-date  { color: var(--date)  !important; font-weight: 600; }
.tx-accent{ color: var(--accent)!important; font-weight: 600; }
.tx-muted { color: var(--ink-2) !important; }

b, strong { font-weight: 600; color: inherit; }

/* --------------------------------------------------------------------------
   3. Layout shell
   -------------------------------------------------------------------------- */
#wrap {
  max-width: var(--maxw) !important;
  margin: 0 auto;
  background: var(--card);
  border: 0 !important;
  box-shadow: 0 0 0 1px var(--line), var(--shadow-md) !important;
  overflow: hidden;
}

.container {
  width: 100% !important;
  max-width: var(--maxw);
  padding: 0 var(--gutter);
  box-sizing: border-box;
}

#full-width { width: 100%; padding: 0; clear: both; }
#full-width img.full-width { width: 100%; display: block; }

/* --------------------------------------------------------------------------
   4. Header
   -------------------------------------------------------------------------- */
#header {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 16px 22px;
  padding: 14px var(--gutter) !important;
  background: var(--card);
  border-bottom: 1px solid var(--line);
  position: relative;
  z-index: 1000;
  min-height: 64px;
  box-sizing: border-box;
}

/* "Submit to WECE" pill — right-side CTA on the same row as the nav */
.top-link {
  order: 3;
  position: static;
  margin-left: auto;
  width: auto !important;
  height: auto !important;
  border-radius: 3px;
  background: var(--accent) !important;
  box-shadow: 0 1px 2px rgba(0, 60, 100, .18);
  transition: background .18s ease, transform .18s ease;
}
.top-link:hover { background: var(--navy) !important; transform: translateY(-1px); }
.top-link a {
  display: block;
  width: auto !important;
  padding: 7px 16px;
  font-size: 13px !important;
  font-weight: 600;
  line-height: 1.4 !important;
  letter-spacing: .02em;
  color: #fff !important;
  background: none !important;
  white-space: nowrap;
}
.top-link a:hover { color: #fff !important; text-decoration: none; width: auto !important; }
.top-link img { display: none; }

/* Logo */
#header .four.columns {
  order: 1;
  width: auto !important;
  margin: 0 !important;
  float: none;
  flex: 0 0 auto;
  align-self: center;
}
#header .four.columns a { display: block; line-height: 0; }
#header .four.columns img {
  width: auto;
  height: 46px !important;
  max-height: 46px;
  object-fit: contain;
  display: block;
}

/* --------------------------------------------------------------------------
   5. Primary navigation
   -------------------------------------------------------------------------- */
#nav-wrap {
  order: 2;
  height: auto !important;
  padding: 0 !important;
  margin: 0 !important;
  width: auto !important;
  float: none;
  flex: 1 1 auto;
  display: flex;
  justify-content: center;
  align-items: center;
  font-family: var(--sans) !important;
  font-size: 14.5px !important;
  font-weight: 500;
}
#nav-wrap > * { margin-left: 0; }

#nav {
  float: none !important;
  display: flex !important;
  align-items: center;
  justify-content: center;
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
}
#nav > li {
  float: none !important;
  position: relative;
  margin: 0 !important;
  list-style: none;
}
#nav > li > a {
  display: block;
  padding: 9px 14px;
  border-radius: var(--radius);
  color: var(--ink-2) !important;
  font-size: 14.5px;
  font-weight: 500;
  letter-spacing: .005em;
  text-transform: none !important;
  line-height: 1.4 !important;
  white-space: nowrap;
  transition: color .16s ease, background-color .16s ease;
}
#nav > li > a:hover,
#nav > li:hover > a {
  color: var(--accent) !important;
  background: var(--accent-tint) !important;
  text-decoration: none;
}
/* current section marker */
#nav > li > a.active,
#nav > li.current > a { color: var(--accent) !important; font-weight: 600; }

/* Dropdown */
#nav ul {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 216px;
  margin: 0 !important;
  padding: 8px !important;
  list-style: none;
  background: var(--card) !important;
  background-image: none !important;
  border: 1px solid var(--line) !important;
  border-top: 3px solid var(--accent);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  z-index: 1001;
}
/* invisible bridge so the menu stays open while the cursor travels to it */
#nav ul::before {
  content: "";
  position: absolute;
  left: 0; right: 0; top: -12px;
  height: 12px;
  display: block;
  pointer-events: none;
}
/* right-edge dropdowns must not be clipped by #wrap's overflow:hidden */
#nav > li:nth-child(n+4) > ul { left: auto; right: 0; }
#nav ul li {
  float: none !important;
  display: block;
  margin: 0 !important;
  border-bottom: 0 !important;
}
#nav ul li a {
  display: block;
  padding: 8px 12px !important;
  border-radius: var(--radius);
  color: var(--ink-2) !important;
  font-size: 14px !important;
  font-weight: 400;
  text-align: left !important;
  text-transform: none !important;
  line-height: 1.45 !important;
  white-space: normal;
}
#nav ul li a:hover {
  background: var(--accent-tint) !important;
  color: var(--accent) !important;
  text-decoration: none;
}
#nav li:hover > ul { display: block; }

/* Mobile menu button injected by js/nav-resp.js */
#menu-icon {
  display: none;
  margin-left: auto;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  color: var(--navy) !important;
  font-family: var(--sans) !important;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  user-select: none;
}
#menu-icon .mn-clk { font-weight: 400; color: var(--muted); }
#menu-icon.active { background: var(--accent-tint); border-color: var(--accent-tint); }
.menu-toggle { display: none !important; }

/* --------------------------------------------------------------------------
   6. Hero / slider (home)
   -------------------------------------------------------------------------- */
#full-width { position: relative; background: var(--bg); }
.theme-default #slider {
  box-shadow: none !important;
  margin: 0 !important;
  background: var(--navy);
}
.theme-default #slider img { max-height: 340px; width: 100%; object-fit: cover; display: block; }
.theme-default .nivoSlider { position: relative; background: var(--navy); }
.nivo-controlNav { bottom: 14px !important; z-index: 20; padding: 0 20px; }
.nivo-controlNav a {
  width: 9px; height: 9px;
  margin: 0 4px;
  background: rgba(255,255,255,.55) !important;
  border-radius: 50%;
  border: 0;
  text-indent: -9999px;
  display: inline-block;
}
.nivo-controlNav a.active { background: #fff !important; }
.nivo-directionNav a { opacity: .55; transition: opacity .2s ease; }
.nivo-directionNav a:hover { opacity: 1; }
.nivo-caption { display: none !important; }

/* --------------------------------------------------------------------------
   7. Sub-page hero banner
   -------------------------------------------------------------------------- */
#full-width .full-width {
  display: block;
  width: 100%;
  height: 280px;
  object-fit: cover;
  vertical-align: bottom;
}
.page-subtitle {
  position: relative;
  width: auto !important;
  max-width: 640px;
  height: auto !important;
  margin: -92px 0 40px var(--gutter) !important;
  bottom: auto !important;
  left: auto !important;
  padding: 24px 30px !important;
  background: var(--card) !important;
  border-radius: var(--radius-lg) 0 var(--radius-lg) 0;
  border-left: 4px solid var(--accent);
  box-shadow: var(--shadow-md);
  z-index: 98;
  box-sizing: border-box;
}
.page-subtitle h3 {
  color: var(--navy) !important;
  font-size: 27px;
  font-weight: 600;
  margin: 0 0 4px;
}
.page-subtitle p {
  color: var(--muted) !important;
  font-size: 15px;
  line-height: 1.6;
  margin: 0;
}

/* --------------------------------------------------------------------------
   8. Content areas
   -------------------------------------------------------------------------- */
.home-content,
.page-content {
  clear: both;
  padding: 44px var(--gutter) 64px;
  color: var(--ink);
  font-size: 16px;
  line-height: 1.78;
}
.home-content p,
.page-content p { margin: 0 0 1.2em; }

/* Sub-page body text: justified for a tidy, professional column */
.page-content p { text-align: justify; hyphens: auto; }
.page-content p[align="center"] { text-align: center; }
.page-content p[align="right"] { text-align: right; }
.page-content p[align="left"] { text-align: left; }

/* White text on the deep-blue program day headers */
.on-dark { color: #fff !important; }
.home-content p[align="justify"],
.page-content p[align="justify"],
p[align="justify"] { text-align: justify; hyphens: auto; }

/* Section headings inside content */
.home-content h3,
.page-content h3 {
  font-size: 27px;
  font-weight: 600;
  color: var(--navy);
  margin: 8px 0 20px;
  padding: 0 0 12px;
  border-bottom: 1px solid var(--line);
}
.home-content h4,
.page-content h4 {
  font-size: 19px;
  font-weight: 600;
  color: var(--navy-2);
  margin: 34px 0 14px;
  padding: 0 0 0 12px;
  border-left: 3px solid var(--accent);
  border-bottom: 0;
  line-height: 1.4 !important;
}
.home-content h4.subtitle,
.page-content h4.subtitle {
  border-left: 0;
  border-bottom: 1px solid var(--line);
  padding: 0 0 10px;
  margin: 40px 0 18px;
  color: var(--navy);
  font-size: 21px;
  text-transform: none;
}
.home-content h5,
.page-content h5 {
  font-size: 16.5px;
  font-weight: 600;
  color: var(--navy-2);
  margin: 26px 0 12px;
}

/* Lists */
.home-content ul, .home-content ol,
.page-content ul, .page-content ol { margin: 0 0 1.3em; padding-left: 1.35em; }
.home-content li, .page-content li { margin-bottom: .4em; line-height: 1.7; }
.home-content ul ul, .page-content ul ul { margin: .35em 0 .5em; }

/* Lead paragraph of the home page */
.home-content > .content-wrapper > p:first-of-type { font-size: 16.5px; }

/* --------------------------------------------------------------------------
   9. Tables — the biggest legacy offender
   -------------------------------------------------------------------------- */
.home-content table,
.page-content table {
  width: 100% !important;
  border-collapse: collapse !important;
  border-spacing: 0;
  margin: 26px 0 30px;
  background: var(--card) !important;
  border: 1px solid var(--line) !important;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  font-size: 15px;
}
.home-content table td,
.home-content table th,
.page-content table td,
.page-content table th {
  padding: 12px 16px !important;
  border: 0 !important;
  border-bottom: 1px solid var(--line-2) !important;
  border-right: 1px solid var(--line-2) !important;
  vertical-align: middle !important;
  color: var(--ink) !important;
  line-height: 1.6;
  font-size: 15px !important;
  text-align: left;
  background-image: none;
}
.home-content table td:last-child,
.home-content table th:last-child,
.page-content table td:last-child,
.page-content table th:last-child { border-right: 0 !important; }
.home-content table tr:last-child td,
.page-content table tr:last-child td { border-bottom: 0 !important; }

/* Strip legacy teal/grey cell fills */
.home-content table td[bgcolor],
.home-content table th[bgcolor],
.page-content table td[bgcolor],
.page-content table th[bgcolor],
.page-content table[bgcolor],
.home-content table[bgcolor] { background-color: transparent !important; }

/* Header row (only when the row actually has multiple cells) */
.home-content table tr:first-child > td:not(:only-child),
.home-content table tr:first-child > th:not(:only-child),
.page-content table tr:first-child > td:not(:only-child),
.page-content table tr:first-child > th:not(:only-child) {
  background: var(--navy) !important;
  color: #fff !important;
  font-weight: 600;
  font-size: 14.5px !important;
  letter-spacing: .02em;
  text-align: center;
}

/* Full-width day/section band (colspan header rows) */
.home-content table td[colspan][bgcolor],
.page-content table td[colspan][bgcolor],
.home-content table td[colspan][align],
.page-content table td[colspan][align] {
  background: var(--navy-2) !important;
  color: #fff !important;
  font-weight: 600;
  font-size: 15.5px !important;
  letter-spacing: .04em;
  text-align: center !important;
  padding: 14px 16px !important;
}
.home-content table td[colspan] .on-dark,
.page-content table td[colspan] .on-dark,
.home-content table tr:first-child > td:not(:only-child) .on-dark,
.page-content table tr:first-child > td:not(:only-child) .on-dark { color: #fff !important; }

/* Row-label column (first cell without a legacy fill) */
.page-content table tr:not(:first-child) > td:first-child:not([bgcolor]):not([colspan]) {
  background: #f7f9fc !important;
  font-weight: 600;
  color: var(--navy) !important;
}

/* Register page: old teal data cells become clean white rows */
.page-register table tr:not(:first-child) > td[bgcolor]:not([colspan]) {
  background: var(--card) !important;
  color: var(--ink) !important;
  text-align: center;
}
.page-register table tr:not(:first-child) > td[bgcolor] .on-dark,
.page-register table tr:not(:first-child) > td[bgcolor] > span {
  color: var(--ink) !important;
}
.page-register table tr:not(:first-child) > td:first-child:not([bgcolor]) .on-dark {
  color: var(--navy) !important;
}

/* Single-cell layout tables (used as content wrappers) */
.page-content table tr:first-child > td:only-child,
.home-content table tr:first-child > td:only-child {
  padding: 22px 26px !important;
  background: var(--card) !important;
  color: var(--ink) !important;
  border: 0 !important;
}

/* --------------------------------------------------------------------------
   10. Home: proceedings block
   -------------------------------------------------------------------------- */
.proceedings-section,
.important-dates { margin: 34px 0; }

.ieee-logo img {
  max-width: 220px;
  height: auto;
  display: block;
  margin: 4px 0 18px;
}

.ieee-highlights {
  margin: 16px 0 20px;
  padding: 12px 16px;
  background: #fdf3f1;
  border-left: 3px solid var(--brand);
  border-radius: 0 var(--radius) var(--radius) 0;
}
.ieee-highlights p { margin: 0 !important; font-size: 15px; }
.ieee-highlights strong { color: var(--brand); }

.ieee-list-image { margin: 18px 0 22px; }
.ieee-list-image img {
  max-width: 100%;
  height: auto;
  display: block;
  border: 1px solid var(--line) !important;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.indexing-records { margin: 24px 0; }
.indexing-records h5 {
  font-size: 16.5px;
  color: var(--navy-2);
  margin: 0 0 12px;
  padding: 0 0 8px;
  border-bottom: 1px solid var(--line);
}
.record-item {
  background: #f7f9fc;
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  padding: 14px 18px;
  line-height: 1.7;
}
.record-item p { margin: 0 0 8px; font-size: 15px; }
.record-item p:last-child { margin-bottom: 0; }
.record-item strong { color: var(--navy); font-weight: 600; }
.record-item a { font-weight: 500; }

/* --------------------------------------------------------------------------
   11. Home: track cards
   -------------------------------------------------------------------------- */
.track-info { margin: 30px 0 10px; }
.track-title {
  font-size: 17px !important;
  font-weight: 600;
  color: var(--navy);
  margin: 0 0 16px;
  padding: 0 0 10px;
  border-bottom: 2px solid var(--accent);
  display: block;
}
.track-item {
  background: transparent !important;
  padding: 0 !important;
  border-radius: 0;
  display: grid;
  gap: 12px;
}
.track-card {
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  border: 1px solid var(--line) !important;
  border-radius: var(--radius-lg) !important;
  overflow: hidden;
  background: var(--card);
  box-shadow: var(--shadow-sm);
  transition: box-shadow .2s ease, transform .2s ease, border-color .2s ease;
  font-family: var(--sans) !important;
}
.track-card:hover {
  transform: translateY(-2px);
  border-color: #c9d8e6 !important;
  box-shadow: var(--shadow-md);
}
.track-header {
  background-color: var(--navy) !important;
  padding: 15px 20px !important;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 16px;
}
.track-header > a:first-child {
  flex: 0 0 auto;
  font-size: 13px !important;
  font-weight: 700 !important;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #fff !important;
  border-right: 1px solid rgba(255,255,255,.28) !important;
  padding-right: 16px !important;
  white-space: nowrap;
}
.track-name {
  margin: 0 !important;
  font-size: 16px !important;
  font-weight: 600 !important;
  line-height: 1.45;
  color: #fff;
}
.track-name a { color: #fff !important; text-decoration: none; }
.track-card:hover .track-name a { text-decoration: underline; text-underline-offset: 3px; }
.forum-title {
  padding: 13px 20px !important;
  background-color: #f7f9fc !important;
  border-top: 1px solid var(--line) !important;
  font-size: 14px !important;
  color: var(--ink-2);
  line-height: 1.6;
}
.forum-title strong { color: var(--navy); font-weight: 600; }
.forum-title a { color: var(--ink-2) !important; text-decoration: none; }
.forum-title a:hover { color: var(--accent) !important; text-decoration: underline; }

/* --------------------------------------------------------------------------
   12. Home: important dates
   -------------------------------------------------------------------------- */
.date-table {
  width: 100%;
  border-collapse: collapse;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.date-row {
  display: flex;
  flex-wrap: wrap;
  margin-bottom: 0 !important;
  border-bottom: 1px solid var(--line-2);
}
.date-row:last-child { border-bottom: 0; }
.date-cell {
  flex: 1 1 25%;
  min-width: 0;
  padding: 13px 18px !important;
  border: 0 !important;
  border-right: 1px solid var(--line-2) !important;
  font-size: 15px;
  line-height: 1.55;
  box-sizing: border-box;
}
.date-cell:last-child { border-right: 0 !important; }
.date-row .date-cell:nth-child(2) { border-right: 1px solid var(--line) !important; }
.date-cell.header {
  background-color: #f2f5f9 !important;
  color: var(--navy) !important;
  font-weight: 600;
}
.date-row .date-cell:nth-child(3),
.date-row .date-cell:nth-child(4) { font-weight: 600; color: var(--date); }

/* --------------------------------------------------------------------------
   13. Speaker / committee blocks
   -------------------------------------------------------------------------- */
.page-content > div[style*="text-align:center"],
.page-content > div[style*="text-align: center"] {
  text-align: center;
  margin-bottom: 44px !important;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--line-2);
}
.page-content > div[style*="text-align:center"]:last-of-type,
.page-content > div[style*="text-align: center"]:last-of-type { border-bottom: 0; }
.page-content > div[style*="text-align:center"] img,
.page-content > div[style*="text-align: center"] img {
  width: 132px !important;
  height: 132px !important;
  object-fit: cover;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: #f7f9fc;
  margin: 0 0 16px !important;
  padding: 4px;
  box-shadow: var(--shadow-sm);
}
.page-content > div[style*="text-align:center"] p,
.page-content > div[style*="text-align: center"] p {
  font-size: 15px !important;
  color: var(--ink-2) !important;
  margin: 0 0 8px !important;
  line-height: 1.7 !important;
}
.page-content > div[style*="text-align:center"] p[style*="justify"],
.page-content > div[style*="text-align: center"] p[style*="justify"] {
  text-align: justify;
  max-width: 900px;
  margin: 14px auto 0 !important;
  color: var(--ink) !important;
  font-size: 15.5px !important;
}
.page-content > div[style*="text-align:center"] > p:first-of-type,
.page-content > div[style*="text-align: center"] > p:first-of-type {
  font-size: 18px !important;
  font-weight: 600;
  color: var(--navy) !important;
}

/* Committee lists */
.committee-section { margin-bottom: 34px !important; }
.committee-title,
.section-title {
  font-size: 20px !important;
  font-weight: 600;
  color: var(--navy);
  margin: 0 0 14px;
  padding: 0 0 8px;
  border-bottom: 1px solid var(--line);
}
.member-list { list-style: none; padding: 0; margin: 0; }
.member-list li {
  font-size: 15px !important;
  color: var(--ink-2);
  padding: 5px 0 5px 14px;
  border-left: 2px solid var(--line);
  margin-bottom: 2px;
}
.member-list li:hover { border-left-color: var(--accent); color: var(--ink); }
.member-item {
  margin-bottom: 6px !important;
  padding-left: 14px !important;
  font-size: 15px;
  color: var(--ink-2);
  line-height: 1.65;
}
.member-item span { color: var(--ink-2) !important; }

.blog-single-post { width: 100% !important; float: none; margin: 0 !important; }
#main-content { overflow: visible; }

/* --------------------------------------------------------------------------
   14. Footer
   -------------------------------------------------------------------------- */
#footer {
  width: 100% !important;
  padding: 0 !important;
  background: var(--navy) !important;
  box-shadow: none !important;
  color: #c7d3de;
  font-size: 14.5px;
  line-height: 1.75;
}
.footer-content {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 48px var(--gutter) 34px;
  box-sizing: border-box;
}
.footer-top {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  margin-bottom: 34px;
}
.footer-column {
  flex: 1 1 240px;
  min-width: 220px;
  margin: 0 !important;
}
.footer-column h4 {
  color: #fff !important;
  font-size: 14px !important;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
  margin: 0 0 16px !important;
  padding: 0 0 10px;
  border-bottom: 0 !important;
  position: relative;
}
.footer-column h4::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 28px; height: 2px;
  background: var(--accent-2);
}
.quick-links ul { list-style: none; padding: 0; margin: 0; }
.quick-links li { margin-bottom: 9px; }
.quick-links a {
  color: #c7d3de !important;
  text-decoration: none;
  display: flex;
  align-items: center;
  font-size: 14.5px;
}
.quick-links a:hover { color: #fff !important; text-decoration: none; }
.link-icon {
  display: inline-block;
  width: 12px; height: 12px;
  margin-right: 10px;
  flex: 0 0 12px;
  background: none !important;
  position: relative;
}
.link-icon::before {
  content: "";
  position: absolute;
  left: 0; top: 3px;
  width: 5px; height: 5px;
  border-top: 1.5px solid var(--accent-2);
  border-right: 1.5px solid var(--accent-2);
  transform: rotate(45deg);
}
.quick-links a:hover .link-icon::before { border-color: #fff; }

.submission-methods .method-item { margin-bottom: 14px; }
.submission-methods p { color: #c7d3de; margin: 0 0 12px; font-size: 14.5px; }
.highlight-link {
  color: #7fc4ea !important;
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid rgba(127,196,234,.35);
}
.highlight-link:hover { color: #fff !important; border-bottom-color: #fff; text-decoration: none; }

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 13px;
  font-size: 14.5px;
  color: #c7d3de;
}
.contact-item strong { color: #fff; font-weight: 600; }
.contact-item a { color: #7fc4ea !important; text-decoration: none; }
.contact-item a:hover { color: #fff !important; text-decoration: underline; }
.contact-icon {
  flex: 0 0 17px;
  width: 17px; height: 17px;
  margin-right: 0 !important;
  margin-top: 4px;
  opacity: .75;
  filter: brightness(0) invert(1);
  background-size: contain !important;
}

.logo-line-container {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 0;
  padding: 26px 0 0;
  border-top: 1px solid rgba(255,255,255,.12);
}
.logo-label {
  font-size: 12px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #8fa4b6;
  font-weight: 600;
  margin-right: 2px;
}
.logo-label + img { margin-left: 0; }
.optimal-logo {
  width: auto !important;
  height: 46px !important;
  max-width: 130px;
  object-fit: contain;
  padding: 6px 10px;
  background: rgba(255,255,255,.94) !important;
  border-radius: var(--radius);
  transition: transform .2s ease, background-color .2s ease;
}
.optimal-logo:hover { transform: translateY(-2px); background: #fff !important; }

.copyright {
  background: #081f34 !important;
  padding: 18px var(--gutter) !important;
  text-align: center;
  border-top: 1px solid rgba(255,255,255,.08);
}
.copyright p {
  margin: 0;
  color: #8fa4b6 !important;
  font-size: 13px !important;
  letter-spacing: .01em;
}

/* Legacy slim footer used on the inner pages */
.footbot {
  width: 100% !important;
  height: auto !important;
  min-height: 0;
  background: #081f34 !important;
  border-top: 1px solid rgba(255,255,255,.08) !important;
  box-shadow: none !important;
  padding: 20px var(--gutter) !important;
  text-align: center !important;
  box-sizing: border-box;
}
.footbot p {
  margin: 0 !important;
  color: #8fa4b6 !important;
  font-size: 13px;
  text-align: center !important;
}
.footbot img { display: none; }

/* --------------------------------------------------------------------------
   15. Misc components
   -------------------------------------------------------------------------- */
.contact-form {
  background: #f7f9fc;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 26px;
  text-align: center;
}
.contact-form .txbx {
  width: 100%;
  max-width: 380px;
  height: 42px;
  margin: 8px;
  padding-left: 14px;
  font-size: 15px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: none;
  box-sizing: border-box;
}
.contact-form .sendbtn,
.contact-form .send {
  padding: 11px 26px;
  background: var(--accent);
  color: #fff;
  border: 0;
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
}
.contact-form .sendbtn:hover { background: var(--navy); }

.clear { clear: both; }

/* --------------------------------------------------------------------------
   16. Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1000px) {
  :root { --gutter: 22px; }
  .footer-column { flex: 1 1 45%; }
  #header { gap: 12px 14px; }
  #nav > li > a { padding: 8px 10px; font-size: 13.5px; }
  #header .four.columns img { height: 40px !important; max-height: 40px; }
  .top-link a { padding: 6px 12px; font-size: 12.5px; }
}

@media (max-width: 900px) {
  #header { flex-wrap: wrap; padding-top: 26px !important; }
  #nav-wrap {
    order: 3;
    flex: 1 1 100%;
    justify-content: flex-start;
    margin: 14px 0 0 !important;
    padding-top: 12px !important;
    border-top: 1px solid var(--line);
  }
  #menu-icon { display: block; margin: 0 0 10px; }
  #nav {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding-bottom: 8px;
  }
  #nav > li { width: 100%; }
  #nav > li > a { padding: 11px 8px; border-radius: 0; border-bottom: 1px solid var(--line-2); }
  #nav ul {
    position: static;
    display: none !important;
    width: 100%;
    min-width: 0;
    margin: 0 !important;
    border: 0 !important;
    box-shadow: none;
    border-radius: 0;
    padding: 0 0 6px 10px !important;
    background: #fafbfd !important;
  }
  #nav li:hover > ul { display: none !important; }
  #nav ul.open { display: block !important; }
  #nav ul li a { padding: 9px 8px !important; }
  .top-link { top: -0px; right: var(--gutter); }
}

@media (max-width: 768px) {
  body { font-size: 15.5px; }
  h1 { font-size: 30px; }
  h2 { font-size: 25px; }
  h3 { font-size: 22px; }
  h4 { font-size: 18px; }

  .home-content, .page-content { padding: 30px 0 44px; }
  .page-subtitle {
    margin: -60px 0 30px var(--gutter) !important;
    padding: 18px 20px !important;
  }
  .page-subtitle h3 { font-size: 21px; }
  .page-subtitle p { font-size: 14px; }
  #full-width .full-width { max-height: 180px; }
  .theme-default #slider img { max-height: 220px; }

  .date-cell { flex: 1 1 100%; border-right: 0 !important; border-bottom: 1px solid var(--line-2) !important; }
  .date-row .date-cell:nth-child(2) { border-right: 0 !important; }
  .date-cell.header { padding-top: 14px !important; }
  .date-cell:nth-child(2) { padding-bottom: 2px !important; color: var(--muted); font-weight: 400; }
  .date-cell:nth-child(3) { padding-bottom: 2px !important; }
  .date-cell:nth-child(4) { padding-bottom: 14px !important; border-bottom: 0 !important; }
  .date-cell:nth-child(3), .date-cell:nth-child(4) { color: var(--date); font-weight: 600; }
  .date-cell:nth-child(2)::after { content: ""; }

  .home-content table,
  .page-content table { display: block; overflow-x: auto; white-space: normal; font-size: 14.5px; }
  .home-content table td,
  .page-content table td { min-width: 96px; font-size: 14px !important; }

  .track-header { flex-direction: column; align-items: flex-start !important; gap: 6px !important; }
  .track-header > a:first-child { border-right: 0 !important; padding-right: 0 !important; }

  .footer-column { flex: 1 1 100%; }
  .logo-line-container { gap: 12px; justify-content: flex-start; }
  .optimal-logo { height: 38px !important; }
  .logo-label { flex: 1 1 100%; margin-bottom: 2px; }
}

@media (max-width: 480px) {
  :root { --gutter: 16px; }
  #header .four.columns img { height: 42px !important; }
  .top-link a { font-size: 12px !important; padding: 6px 12px; }
  .logo-line-container { justify-content: center; }
}

/* --------------------------------------------------------------------------
   17. Print
   -------------------------------------------------------------------------- */
@media print {
  #header, #full-width, #footer, .footbot, #menu-icon { display: none !important; }
  #wrap { box-shadow: none !important; max-width: 100% !important; }
  body { background: #fff; font-size: 11pt; }
  a { color: #000; text-decoration: underline; }
  .track-card, .record-item, .date-table { box-shadow: none !important; border: 1px solid #ccc !important; }
}
