/* MNT_NAV_V2 + DATA_PAGE_V1 (2026-09-16). Loaded only by MNT's base.html.
   Kept out of style.css, which SediTracker also serves; new class names only,
   so nothing here can restyle an existing element. Remove the <link> in
   base.html and this file is inert. */

/* ---- two-row nav ---- */
.mnt-nav {
  background: #fff;
  border-top: 1px solid var(--line);
  border-bottom: 2px solid var(--ink);
}
.mnt-nav-row {
  max-width: var(--content-w);
  margin: 0 auto;
  padding: 0 1.25rem;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  column-gap: 1rem;
}
.mnt-nav-groups { display: flex; flex-wrap: wrap; }
.mnt-nav-tab {
  color: var(--ink);
  padding: 0.85rem 1.2rem;
  font-weight: 500;
  font-size: 0.95rem;
  position: relative;
  white-space: nowrap;
  text-decoration: none;
  transition: color 0.12s;
}
.mnt-nav-tab:first-child { padding-left: 0; }
.mnt-nav-tab:hover { color: var(--brand-red); text-decoration: none; }
.mnt-nav-tab.is-active { color: var(--brand-red); font-weight: 700; }
.mnt-nav-tab.is-active::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 2px;
  background: var(--brand-red);
}
.mnt-nav .primary-nav-search { margin-left: auto; }

.mnt-nav-sub { background: #f6f6f6; border-top: 1px solid var(--line); }
.mnt-nav-sub-inner {
  max-width: var(--content-w);
  margin: 0 auto;
  padding: 0 1.25rem;
  display: flex;
  overflow-x: auto;
  scrollbar-width: thin;
}
.mnt-nav-subtab {
  color: var(--ink);
  padding: 0.6rem 0.95rem;
  font-size: 0.88rem;
  font-weight: 500;
  white-space: nowrap;
  position: relative;
  text-decoration: none;
}
.mnt-nav-subtab:first-child { padding-left: 0; }
a.mnt-nav-subtab:hover { color: var(--brand-red); text-decoration: none; }
.mnt-nav-subtab.is-active { color: var(--brand-red); font-weight: 700; }
.mnt-nav-subtab.is-active::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 2px;
  background: var(--brand-red);
}
.mnt-nav-subtab.is-coming { color: #9e9e9e; cursor: default; }
.mnt-nav-subtab.is-coming small {
  margin-left: 0.35rem;
  font-size: 0.62rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: 1px solid #d6d6d6;
  border-radius: 2px;
  padding: 0 0.25rem;
  vertical-align: 1px;
}
.mnt-nav a:focus-visible { outline: 2px solid var(--brand-red); outline-offset: -2px; }

@media (max-width: 1250px) {
  .mnt-nav-tab { font-size: 0.9rem; padding-left: 0.9rem; padding-right: 0.9rem; }
  .mnt-nav-tab:first-child { padding-left: 0; }
}
/* Phone: both rows scroll sideways; search takes its own full-width row
   (it used to sit off the right edge of the screen). */
@media (max-width: 720px) {
  .mnt-nav-row { padding: 0 1rem; }
  .mnt-nav-groups {
    flex-wrap: nowrap;
    overflow-x: auto;
    width: 100%;
    scrollbar-width: none;
  }
  .mnt-nav-groups::-webkit-scrollbar { display: none; }
  .mnt-nav .primary-nav-search { width: 100%; margin: 0 0 0.6rem; }
  .mnt-nav .primary-nav-search input[type="search"] { flex: 1; width: auto; min-width: 0; }
  .mnt-nav-sub-inner { padding: 0 1rem; }
}

/* ---- data page template ---- */
.dp-desc { color: var(--ink-mute, #555); margin: -0.25rem 0 0.6rem; max-width: 80ch; font-size: 0.95rem; }
.dp-cover {
  display: flex; flex-wrap: wrap; align-items: center;
  gap: 0.35rem 0.8rem;
  margin: 0 0 0.9rem;
  font-size: 0.88rem;
  color: var(--ink-mute, #666);
}
.dp-cover strong { color: var(--ink); }
.dp-bar { position: relative; flex: 0 0 140px; height: 6px; background: #eee; }
.dp-bar i { position: absolute; left: 0; top: 0; bottom: 0; background: var(--brand-red); }
.data-table { table-layout: fixed; width: 100%; }
.data-table th, .data-table td { white-space: normal; vertical-align: top; }
.data-table .fin-date { white-space: nowrap; }
