:root {
  --mipa-red: #8b0000;
  --mipa-red-dark: #6b0000;
  --mipa-red-hover: #b30000;
  --link-color: #7c0404;
  --link-hover: #9e0606;
  --bg-outer: #292929;
  --bg-page: #ffffff;
  --ink: #000000;
  --ink-soft: #3b3b3b;
  --muted: #666666;
  --line: #cccccc;
  --line-soft: #e6e6e6;
  --tab-bg: #e8e8e8;
  --table-head: #f0f0f0;
  --table-odd: #f7f7f7;
  --table-even: #ffffff;
  --footer-bg: #292929;
  --footer-text: #e8d9c8;
  --footer-text-muted: #cbb8a4;
  --footer-link: #f0e4d5;
  --footer-link-hover: #ffffff;
  --side-bg: #faf7f2;
  --side-block: #f6f6f2;
  --danger: #9b2c2c;
  --ok: #2f6b2f;
  --font: "Mukta", system-ui, sans-serif;
  /* misalpav.com = Bootstrap 5.2 .container */
  --wrap: 1140px;
  --page-pad: 1rem;
  --radius: 0;
}

@media (min-width: 1400px) {
  :root { --wrap: 1320px; }
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font);
  font-size: 17px;
  font-weight: 500;
  line-height: 1.3;
  color: var(--ink-soft);
  background: var(--bg-outer);
}

.site-main a:not(.btn):not(.btn-outline):not(.nav-link) {
  color: var(--link-color, #7c0404);
  text-decoration: none !important;
}
.site-main a:not(.btn):not(.btn-outline):not(.nav-link):hover,
.site-main a:not(.btn):not(.btn-outline):not(.nav-link):focus {
  color: var(--link-hover, #9e0606);
}

.wrap, .container {
  width: min(var(--wrap), calc(100% - 1.5rem));
  max-width: var(--wrap);
  margin: 0 auto;
  padding-left: var(--page-pad);
  padding-right: var(--page-pad);
}
.narrow {
  width: min(560px, calc(100% - 1.5rem));
  margin: 0 auto;
  padding-left: var(--page-pad);
  padding-right: var(--page-pad);
}
.muted { color: var(--muted); }
.nowrap { white-space: nowrap; }
.center { text-align: center; }

svg.ico {
  width: 16px !important;
  height: 16px !important;
  max-width: 16px !important;
  max-height: 16px !important;
  display: inline-block;
  vertical-align: -0.2em;
}

/* ===== Page shell (misalpav: full-bleed #page on #292929 body) ===== */
.site-page {
  background: var(--bg-page, #ffffff);
  min-height: 100vh;
  width: 100%;
  max-width: none;
  margin: 0;
}

/* ===== Header (misalpav red) ===== */
.site-header {
  background: var(--branding-bg, var(--mipa-red));
}
.site-header a,
.site-menubar a {
  text-decoration: none !important;
}

.site-topbar {
  background: var(--mipa-red-dark);
  color: rgba(255, 255, 255, 0.88);
  font-size: 13px;
  padding: 0.25rem 0;
}
.topbar-inner {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 0.85rem;
  flex-wrap: wrap;
}
.site-topbar a {
  color: #fff !important;
  font-size: 13px;
  font-weight: 500;
  text-decoration: none !important;
}
.site-topbar a:hover { opacity: 0.9; text-decoration: none !important; }
.site-topbar a.topbar-submit {
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 4px;
  padding: 0.15rem 0.55rem;
  font-weight: 700;
}
.site-topbar a.topbar-submit:hover {
  background: rgba(255, 255, 255, 0.28);
  opacity: 1;
}

.contributor-bar {
  background: linear-gradient(90deg, #6b0000, #8b0000 40%, #6b0000);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  color: #fff;
}
.contributor-bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
  padding: 0.55rem 0;
}
.contributor-bar-text {
  font-size: 0.92rem;
  font-weight: 500;
}
.contributor-bar-text strong { font-weight: 700; }
.contributor-bar-actions {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
}
.contributor-bar .btn-sm {
  padding: 0.28rem 0.7rem;
  font-size: 0.82rem;
  font-weight: 700;
  border-radius: 4px;
  text-decoration: none !important;
}
/* सर्व बटणे: पांढरा बॅकग्राउंड + गडद मजकूर (contrast) */
.contributor-bar .btn,
.contributor-bar a.btn,
.contributor-bar .btn-outline,
.contributor-bar a.btn-outline {
  background: #fff !important;
  color: #6b0000 !important;
  border: 1px solid #fff !important;
}
.contributor-bar .btn:hover,
.contributor-bar a.btn:hover,
.contributor-bar .btn-outline:hover,
.contributor-bar a.btn-outline:hover {
  background: #fff0f0 !important;
  color: #8b0000 !important;
  border-color: #ffd6d6 !important;
}

.side-box--submit .side-box-head {
  background: #6b0000;
}
.side-submit-lead {
  margin: 0 0 0.65rem;
  font-size: 0.9rem;
  color: #444;
  line-height: 1.4;
}
.side-submit-actions {
  display: grid;
  gap: 0.45rem;
}
.side-submit-actions .btn {
  text-align: center;
  text-decoration: none !important;
}
.side-submit-actions .btn-outline {
  background: #fff !important;
  color: var(--mipa-red) !important;
  border: 1px solid rgba(139, 0, 0, 0.35) !important;
}
.side-submit-link {
  display: inline-block;
  margin-top: 0.15rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--mipa-red) !important;
}

.submit-panel {
  margin: 0 0 1.15rem;
  padding: 1rem 1.1rem;
  background: #fff8f6;
  border: 1px solid #e8cfc8;
  border-left: 4px solid var(--mipa-red);
}
.submit-panel h3 {
  margin: 0 0 0.35rem;
  font-size: 1.15rem;
  color: #6b0000;
}
.submit-panel .muted { margin: 0 0 0.75rem; }
.submit-panel-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}
.submit-panel-actions .btn {
  text-decoration: none !important;
}
.submit-panel-actions .btn-outline {
  background: #fff !important;
  color: var(--mipa-red) !important;
  border: 1px solid rgba(139, 0, 0, 0.35) !important;
}

.site-branding-bar {
  background: var(--branding-bg, var(--mipa-red));
  padding: 0.45rem 0 0.35rem;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.18);
}
.site-top-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  color: #fff !important;
  min-width: 0;
  text-decoration: none !important;
}
.site-logo {
  max-height: 58px;
  width: 58px;
  height: 58px;
  display: block;
  border-radius: 50%;
  object-fit: cover;
  background: #fff;
  border: 2px solid rgba(255, 255, 255, 0.65);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.12);
}
.brand-mark {
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  color: var(--mipa-red);
  font-size: 0.8rem;
  font-weight: 800;
  border: 2px solid rgba(255, 255, 255, 0.55);
  flex: 0 0 auto;
}
.brand-text-wrap {
  display: flex;
  flex-direction: column;
  gap: 0.05rem;
  line-height: 1.05;
  min-width: 0;
}
.brand-text {
  color: #fff;
  font-size: clamp(1.75rem, 3.2vw, 2.3rem);
  font-weight: 700;
  line-height: 1.1;
  white-space: nowrap;
  text-decoration: none !important;
}

.top-search {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex: 1 1 240px;
  max-width: 360px;
  justify-content: flex-end;
}
.top-search input {
  border: 0;
  border-radius: 2px;
  padding: 0.4rem 0.55rem;
  font: inherit;
  font-size: 15px;
  min-width: 0;
  flex: 1;
  background: #fff;
  color: #000;
}
.top-search button {
  background: transparent;
  border: 0;
  color: #fff;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  padding: 0.35rem 0.2rem;
}
.top-search button:hover { opacity: 0.9; }

/* ===== Menubar (लोगो बारशी समान पार्श्वभूमी) ===== */
.site-menubar {
  background: var(--branding-bg, var(--mipa-red));
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}
.menubar-inner {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  min-height: 2.55rem;
  gap: 0.5rem;
}
.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: #fff;
  border-radius: 3px;
  padding: 0.25rem 0.55rem;
  font: inherit;
  margin: 0.35rem 0;
  cursor: pointer;
}
.site-nav {
  display: block;
  width: 100%;
  background: var(--branding-bg, var(--mipa-red));
}
.site-menu.navbar-nav {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  width: 100%;
}
.site-menu > .nav-item {
  display: flex;
  align-items: center;
  position: relative;
}
/* misalpav exact separator */
.site-menu > .nav-item + .nav-item::before {
  content: "|";
  color: rgba(255, 255, 255, 0.7);
  font-weight: 400;
  font-size: 17px;
  line-height: 1;
  margin-right: 0.1rem;
  user-select: none;
  pointer-events: none;
}
.site-menu .nav-link {
  display: block;
  color: #fff !important;
  font-weight: 600;
  font-size: 17px;
  padding: 0.5rem 0.95rem;
  white-space: nowrap;
  line-height: 1.2;
  border-radius: 8px 8px 0 0;
  text-decoration: none !important;
}
.site-menu .nav-link:hover,
.site-menu .nav-link:focus,
.site-menu .nav-parent:hover {
  color: #fff !important;
  background: transparent;
  text-decoration: none !important;
}

.nav-item.has-sub {
  gap: 0;
  flex-wrap: nowrap;
}
.nav-sub-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 0;
  color: rgba(255, 255, 255, 0.85);
  font-size: 12px;
  padding: 0.5rem 0.55rem 0.5rem 0;
  cursor: pointer;
  line-height: 1;
}
.nav-sub-toggle:hover { color: #fff; }
.nav-item.has-sub:hover > .nav-submenu,
.nav-item.has-sub.is-open > .nav-submenu {
  display: block;
}
.nav-submenu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 40;
  min-width: 12rem;
  width: max-content;
  max-width: 18rem;
  margin: 0;
  padding: 0.35rem 0;
  list-style: none;
  background: #fff;
  border: 1px solid #e2d4c3;
  border-radius: 0 0 8px 8px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
  height: auto;
  flex: none;
  align-self: flex-start;
}
.nav-submenu li {
  display: block;
  margin: 0;
  padding: 0;
}
.nav-item.has-sub.is-open > .nav-submenu,
.nav-item.has-sub:focus-within > .nav-submenu {
  display: block;
}
.nav-submenu[hidden] { display: none !important; }
.nav-item.has-sub.is-open > .nav-submenu[hidden],
.nav-item.has-sub:hover > .nav-submenu {
  display: block !important;
}
.nav-submenu a {
  display: block;
  padding: 0.55rem 0.95rem;
  color: var(--mipa-red) !important;
  font-weight: 600;
  font-size: 16px;
  white-space: nowrap;
}
.nav-submenu a:hover {
  background: #f8eeee;
  color: var(--mipa-red-hover) !important;
}

/* ===== Main / layout ===== */
.site-main {
  padding: 0.85rem 0 1.75rem;
  background: #fff;
  color: var(--ink);
  width: 100%;
}

/* misalpav: Bootstrap row — main.col + sidebar.col-md-3 */
.welcome-layout {
  display: flex !important;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: flex-start;
  gap: 1.5rem;
  width: 100%;
  box-sizing: border-box;
}
.welcome-main {
  flex: 1 1 0%;
  min-width: 0;
  width: auto;
  max-width: 100%;
}
.welcome-side {
  flex: 0 0 25%;
  width: 25%;
  max-width: 25%;
  min-width: 0;
  box-sizing: border-box;
  order: 2;
}

/* ===== Tabs (misalpav: active = white box, inactive = plain link text) ===== */
.content-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  margin: 0;
  padding: 0;
  border-bottom: 1px solid var(--line);
  list-style: none;
}
.tab {
  display: inline-block;
  margin: 0 0.15rem -1px 0;
  padding: 0.5rem 1rem;
  background: transparent;
  color: var(--link-color, #7c0404) !important;
  border: 0;
  border-radius: 0;
  font-weight: 600;
  font-size: 17px;
  line-height: 1.3;
  text-decoration: none !important;
}
.tab:hover {
  color: var(--link-hover, #9e0606) !important;
  background: transparent;
}
.tab.is-active {
  background: var(--bg-page, #fff);
  color: var(--link-color, #7c0404) !important;
  border: 1px solid var(--line);
  border-bottom: 1px solid var(--bg-page, #fff);
  border-radius: 0.25rem 0.25rem 0 0;
  position: relative;
  z-index: 1;
  font-weight: 700;
}

/* ===== Portal table (misalpav views-table striped/hover) ===== */
.portal-panel {
  background: #fff;
  border: 0;
  border-top: 0;
  overflow-x: auto;
}
.portal-panel--padded {
  padding: 0.75rem;
}
.portal-panel-note {
  padding: 0.75rem 0.85rem 0;
  margin: 0;
}
.portal-empty {
  padding: 0.85rem;
  margin: 0;
}
.portal-section-title {
  margin: 0.5rem 0;
  font-size: 1rem;
  font-weight: 700;
  color: var(--ink);
}
.portal-section-title + .portal-table,
.portal-section-title + .portal-empty {
  margin-top: 0.35rem;
}
.portal-section-title:not(:first-child) {
  margin-top: 1rem;
}
.portal-filter {
  margin-bottom: 0.75rem;
}
.portal-cell-note {
  font-size: 0.85rem;
  margin-top: 0.15rem;
}
.portal-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 17px;
  color: var(--ink-soft);
  margin: 0;
}
.portal-table th {
  background: var(--table-head);
  color: var(--table-head-text, var(--ink));
  text-align: left;
  padding: 0.55rem 0.7rem;
  border-bottom: 2px solid var(--line);
  font-weight: 700;
  font-size: 17px;
  white-space: nowrap;
}
.portal-table td {
  padding: 0.45rem 0.7rem;
  border-bottom: 1px solid var(--line-soft);
  vertical-align: top;
  color: var(--ink-soft);
}
.portal-table tbody tr:nth-child(odd) { background: var(--table-odd); }
.portal-table tbody tr:nth-child(even) { background: var(--table-even); }
.portal-table tbody tr:hover { background: var(--line-soft); }
.portal-table td.col-type,
.portal-table td.col-count {
  color: var(--ink-soft);
  font-weight: 400;
}
.portal-table .title-link,
.portal-table a.title-link {
  color: var(--link-color, #7c0404) !important;
  font-weight: 600;
  text-decoration: none !important;
}
.portal-table .title-link:hover,
.portal-table a.title-link:hover {
  color: var(--link-hover, #9e0606) !important;
}
.portal-table--articles th:last-child,
.portal-table--articles td.col-count {
  text-align: center;
  width: 6.5rem;
  white-space: nowrap;
}
.portal-table--materials th:last-child,
.portal-table--materials td.col-actions {
  text-align: center;
  width: 7.5rem;
  white-space: nowrap;
}
.portal-table--gr {
  font-size: 0.84rem;
}
.portal-table--gr th,
.portal-table--gr td {
  padding: 0.32rem 0.45rem;
  vertical-align: middle;
}
.portal-table--gr .col-serial {
  width: 2.6rem;
  text-align: center;
  color: var(--ink-soft);
}
.portal-table--gr .col-date {
  width: 5.5rem;
  text-align: center;
  white-space: nowrap;
}
.portal-table--gr .col-size {
  width: 4.5rem;
  text-align: right;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.portal-table--gr .title-link {
  font-size: 0.84rem;
  line-height: 1.35;
  font-weight: 600;
}
.gr-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1rem;
  margin-bottom: 0.65rem;
}
.gr-toolbar--stacked {
  flex-direction: column;
  align-items: stretch;
  gap: 0.65rem;
}
.doc-kind-tabs {
  margin-bottom: 0.35rem;
}
.gr-title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--ink);
}
.gr-filter {
  margin: 0;
  flex: 1 1 280px;
  max-width: 420px;
}
.govdocs-filter-panel {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fafafa;
  margin: 0;
}
.govdocs-filter-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
}
.govdocs-filter-row--fields {
  align-items: flex-end;
  gap: 0.55rem 0.65rem;
}
.govdocs-filter-label {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--ink-muted, #555);
  letter-spacing: 0.02em;
  min-width: 5.5rem;
  flex-shrink: 0;
}
.govdocs-type-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}
.govdocs-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.7rem;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: #fff;
  cursor: pointer;
  font-size: 0.86rem;
  line-height: 1.2;
  user-select: none;
  transition: border-color 0.15s, background 0.15s, color 0.15s;
}
.govdocs-chip input {
  width: 1.05rem;
  height: 1.05rem;
  margin: 0;
  flex-shrink: 0;
  accent-color: var(--mipa-red, #8b0000);
  cursor: pointer;
}
.govdocs-chip span {
  font-weight: 500;
}
.govdocs-chip:has(input:checked) {
  border-color: var(--mipa-red, #8b0000);
  background: rgba(139, 0, 0, 0.07);
  color: var(--mipa-red, #8b0000);
}
.govdocs-chip:has(input:checked) span {
  font-weight: 700;
}
.govdocs-field {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  min-width: 0;
}
.govdocs-field--grow {
  flex: 1 1 12rem;
}
.govdocs-field--action {
  flex-shrink: 0;
}
.govdocs-field-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--ink-muted, #555);
}
.govdocs-field select,
.govdocs-field input[type="search"] {
  width: 100%;
  min-width: 0;
  padding: 0.45rem 0.55rem;
  border: 1px solid var(--line);
  border-radius: 4px;
  font: inherit;
  background: #fff;
  box-sizing: border-box;
}
.govdocs-field select {
  min-width: 10rem;
}
.govdocs-field input[type="search"]:focus,
.govdocs-field select:focus {
  outline: none;
  border-color: var(--mipa-red, #8b0000);
  box-shadow: 0 0 0 2px rgba(139, 0, 0, 0.12);
}
.govdocs-filter-btn {
  min-height: 2.15rem;
  padding: 0.45rem 0.85rem;
  white-space: nowrap;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.gr-cat-select select {
  min-width: 9rem;
  max-width: 11rem;
}
.govdocs-type-filter {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.65rem;
  margin: 0;
  padding: 0;
  border: 0;
}
.govdocs-filter {
  flex-wrap: wrap;
  align-items: center;
}
.chk-inline {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.82rem;
  white-space: nowrap;
}
@media (max-width: 640px) {
  .govdocs-filter-row {
    flex-direction: column;
    align-items: stretch;
  }
  .govdocs-filter-label {
    min-width: 0;
  }
  .govdocs-filter-row--fields {
    align-items: stretch;
  }
  .govdocs-field--action .govdocs-filter-btn {
    width: 100%;
  }
}
.portal-panel--dense {
  padding: 0.55rem 0.65rem;
}
.portal-table .center { text-align: center; }
.responses-table th:nth-child(4),
.responses-table td:nth-child(4) { min-width: 11rem; text-align: left; width: auto; }
.responses-table th:nth-child(2),
.responses-table td:nth-child(2) { min-width: 12rem; }
.responses-table th:last-child,
.responses-table td:last-child { text-align: left; width: auto; }

/* ===== Sidebar boxes (misalpav region-sidebar-second) ===== */
.side-box {
  background: #faf7f2;
  border: 0;
  margin: 0 0 0.35rem;
  overflow: hidden;
  border-radius: 0 0 14px 14px;
  box-shadow: 0 6px 18px rgba(107, 0, 0, 0.05);
}
.side-box + .side-box { margin-top: 0.35rem; }
.side-box-head {
  background: #8b0000;
  color: #fff !important;
  font-weight: 500;
  font-size: 17px;
  padding: 0.55rem 0.85rem;
  border-radius: 14px 14px 0 0;
  margin: 0;
  text-align: left;
}
.side-box-body {
  padding: 0.65rem 0.85rem 0.85rem;
  background: #faf7f2;
  font-size: 16px;
  text-align: left;
  color: #3b3b3b;
}
.side-box-body > :first-child { margin-top: 0; }
.side-box-body > :last-child { margin-bottom: 0; }
.welcome-box {
  text-align: center;
  padding: 0 0 0.85rem;
}
.welcome-photo {
  margin: 0 0 0.65rem;
  width: 100%;
  background: #fff;
  line-height: 0;
}
.welcome-photo img {
  width: 100%;
  height: auto;
  max-height: 22rem;
  display: block;
  object-fit: contain;
  object-position: center top;
}
.welcome-photo--empty {
  padding: 2rem 1rem;
  line-height: 1.2;
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--mipa-red);
  background: #fff;
  border-bottom: 1px solid var(--line-soft);
}
.welcome-copy {
  padding: 0 0.85rem;
  text-align: center;
}
.welcome-lead {
  margin: 0;
  color: var(--link-color, #7c0404);
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1.45;
}
.welcome-slogan {
  margin: 0.35rem 0 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.4;
}

.side-login { display: grid; gap: 0.55rem; }
.side-login label {
  display: grid;
  gap: 0.2rem;
  font-weight: 600;
  font-size: 0.95rem;
}
.side-login input {
  font: inherit;
  padding: 0.45rem 0.55rem;
  border: 1px solid var(--line);
  border-radius: 3px;
}
.req { color: var(--mipa-red); }
.side-note { margin: 0.55rem 0 0; font-size: 0.92rem; }
.side-list { list-style: none; margin: 0; padding: 0; }
.side-list li {
  padding: 0.35rem 0;
  border-bottom: 1px dotted #e0d7cb;
}
.side-list li:last-child { border-bottom: 0; }
.side-list a {
  color: var(--link-color, #7c0404);
  font-weight: 600;
  font-size: 0.95rem;
}
.side-list a:hover { color: var(--link-hover, #9e0606); }
.side-list--two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 0.45rem;
}
.side-list--two-col li {
  padding: 0.35rem 0.15rem;
  min-width: 0;
}
.side-list--two-col li:last-child,
.side-list--two-col li:nth-last-child(2):not(:last-child) {
  border-bottom: 0;
}
.side-list--two-col a {
  font-size: 0.88rem;
  line-height: 1.3;
  word-break: break-word;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  background: var(--mipa-red);
  color: #fff !important;
  border: 1px solid var(--mipa-red-dark);
  border-radius: 3px;
  padding: 0.45rem 0.85rem;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}
.btn:hover {
  background: var(--mipa-red-hover);
  border-color: var(--mipa-red-hover);
  color: #fff !important;
}
.btn-sm {
  padding: 0.28rem 0.6rem;
  font-size: 0.9rem;
}
.btn-outline {
  background: #fff !important;
  color: var(--mipa-red) !important;
  border: 1px solid rgba(139, 0, 0, 0.35) !important;
}
.btn-outline:hover {
  background: rgba(139, 0, 0, 0.06) !important;
  color: var(--link-hover, #9e0606) !important;
  border-color: var(--mipa-red) !important;
}
.btn-block { width: 100%; }

/* ===== Shared content ===== */
.section { padding: 0.5rem 0 1.2rem; }
.section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.65rem;
  padding-bottom: 0.35rem;
  border-bottom: 2px solid var(--mipa-red);
}
.section-title h2,
h1, h2, h3 {
  margin: 0;
  font-family: var(--font);
  color: #000;
  line-height: 1.25;
  font-weight: 700;
}
.section-sub { margin: 0.2rem 0 0; color: var(--muted); }

.form { display: grid; gap: 0.65rem; margin-top: 0.65rem; }
.form label { display: grid; gap: 0.22rem; font-weight: 600; }
.form input, .form select, .form textarea {
  font: inherit;
  padding: 0.5rem 0.65rem;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: #fff;
}
.form input:focus, .form select:focus, .form textarea:focus {
  outline: none;
  border-color: var(--mipa-red);
  box-shadow: 0 0 0 3px rgba(139, 0, 0, 0.15);
}
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 0.75rem;
}
.filter-bar input, .filter-bar select {
  flex: 1;
  min-width: 9rem;
  padding: 0.45rem 0.55rem;
  border: 1px solid var(--line);
  border-radius: 3px;
  font: inherit;
  background: #fff;
}

.flash-wrap { padding-top: 0.55rem; }
.alert {
  margin: 0.25rem 0 0;
  padding: 0.6rem 0.8rem;
  border-radius: 3px;
  border: 1px solid;
}
.alert-success { background: #eef5ea; border-color: #b7d1ad; color: var(--ok); }
.alert-error { background: #fdecec; border-color: #f0b4b4; color: var(--danger); }

.actas-public-banner {
  background: #5c3a21;
  color: #fff6e8;
  font-size: 0.9rem;
  font-weight: 500;
}
.actas-public-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
  padding: 0.55rem 0;
}
.actas-public-banner strong { color: #fff; }
.actas-public-banner button {
  background: #fff6e8;
  color: #5c3a21;
  border: none;
  border-radius: 6px;
  padding: 0.3rem 0.75rem;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.article-stack { display: grid; gap: 0.55rem; }
.article-card, .comment, .page-card, .auth-card, .panel {
  background: #fff;
  border: 1px solid var(--line);
  padding: 0.75rem 0.85rem;
}
.article-card h3 { margin: 0 0 0.25rem; font-size: 1.05rem; }
.article-card h3 a { color: var(--link-color, #7c0404); }
.article-card p { margin: 0 0 0.35rem; color: var(--muted); font-size: 0.95rem; }
.chip, .tag {
  display: inline-block;
  background: #f3e8e8;
  color: var(--mipa-red-dark);
  border-radius: 999px;
  padding: 0.12rem 0.45rem;
  font-size: 0.78rem;
  font-weight: 700;
}
.chip-row { display: flex; flex-wrap: wrap; gap: 0.3rem; margin: 0.45rem 0; }
.meta { color: var(--muted); font-size: 0.85rem; }

/* ===== Article node (misalpav style) ===== */
.node-article {
  background: var(--bg-page, #fff);
  padding: 0.15rem 0 1rem;
}
.node-breadcrumb {
  margin: 0 0 0.65rem;
  font-size: 15px;
  border-top: 1px solid var(--mipa-red);
  padding-top: 0.65rem;
}
.node-breadcrumb a {
  color: var(--link-color, #7c0404);
  font-weight: 600;
}
.node-breadcrumb a:hover { color: var(--link-hover, #9e0606); }
.bc-sep {
  color: #999;
  margin: 0 0.35rem;
  font-weight: 400;
}
.node-title {
  margin: 0 0 0.7rem;
  font-size: clamp(1.55rem, 3.2vw, 2.05rem);
  font-weight: 700;
  color: #000;
  line-height: 1.25;
}
.node-meta-bar {
  background: var(--bg-page, #fff);
  border: 0;
  border-bottom: 1px solid var(--line, #e8e4dc);
  padding: 0.55rem 0.85rem;
  margin: 0 0 1rem;
  font-size: 16px;
  line-height: 1.45;
  color: var(--ink-soft, #222);
}
.node-meta-label {
  font-weight: 500;
  color: var(--ink-soft, #222);
}
.node-meta-author {
  color: var(--link-color, #7c0404);
  font-weight: 700;
  margin-right: 0.15rem;
}
.node-meta-rest { font-weight: 500; }

/* Book layout: photo left, intro beside, rest below (see app.js) */
.node-body-book {
  margin: 0 0 1.25rem;
}
.node-book-top {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 0 3rem;
  align-items: start;
  margin-bottom: 1.35rem;
}
.node-book-photo {
  margin: 0;
  padding: 0;
  background: transparent;
  border: none;
}
.node-book-photo img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 360px;
  object-fit: contain;
  object-position: top center;
  padding: 0.55rem;
  border-radius: 8px;
  border: 1px solid var(--line, #e5e0d6);
  background: var(--bg-page, #fff);
  box-shadow: none;
  box-sizing: border-box;
}
.article-body--book-side,
.article-body--book-main {
  margin: 0;
  min-width: 0;
  font-size: 17px;
  line-height: 1.68;
  color: var(--ink-soft);
  text-align: left;
}
.article-body--book-side:empty {
  display: none;
}
.article-body--book-main:empty {
  display: none;
  margin: 0;
}
.article-body--book-side > *:first-child,
.article-body--book-main > *:first-child {
  margin-top: 0;
}
.article-body--book-side p,
.article-body--book-main p {
  margin: 0 0 0.95rem;
  text-align: left;
}
.article-body--book-side ul,
.article-body--book-side ol,
.article-body--book-main ul,
.article-body--book-main ol {
  margin: 0 0 0.95rem;
  padding-left: 1.5rem;
}
.article-body--book-side h2,
.article-body--book-side h3,
.article-body--book-main h2,
.article-body--book-main h3 {
  margin: 1rem 0 0.5rem;
  color: var(--ink);
  text-align: left;
}
.node-body-book .article-body img,
.node-body-book .article-body figure img {
  margin: 0.85rem 0;
  max-width: 100%;
  width: auto;
  display: block;
  border-radius: 8px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.07);
}
.node-body-book .article-body figure {
  margin: 0.85rem 0;
  text-align: left;
}
.node-tags { margin: 0 0 0.85rem; }

/* Featured: full photo visible (contain) + text on the right */
.node-hero {
  display: grid;
  grid-template-columns: minmax(220px, 38%) 1fr;
  gap: 1.15rem 1.35rem;
  align-items: stretch;
  margin: 0 0 1.35rem;
  padding: 0.85rem;
  background: linear-gradient(135deg, #faf7f2 0%, #fff 55%);
  border: 1px solid rgba(139, 0, 0, 0.12);
  border-radius: 14px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.05);
}
.node-featured {
  margin: 0;
  padding: 0.55rem;
  border-radius: 12px;
  overflow: hidden;
  background: #f3eee6;
  border: 1px solid rgba(139, 0, 0, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 220px;
  max-height: 420px;
}
.node-featured img {
  display: block;
  width: auto;
  max-width: 100%;
  max-height: 400px;
  height: auto;
  object-fit: contain;
  object-position: center;
}
.node-hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  padding: 0.15rem 0.25rem 0.15rem 0;
}
.node-kicker {
  margin: 0 0 0.35rem;
  color: var(--mipa-red);
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}
.node-hero .node-title {
  margin: 0 0 0.65rem;
  font-size: clamp(1.35rem, 2.6vw, 1.85rem);
}
.node-meta-bar--hero {
  margin-bottom: 0.75rem;
  background: rgba(255, 255, 255, 0.7);
}
.node-lead {
  margin: 0 0 0.9rem;
  color: #444;
  font-size: 1.02rem;
  line-height: 1.45;
}

/* Share bar */
.share-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem 0.75rem;
  margin: 0 0 1rem;
}
.share-bar--after-article {
  margin-top: 1.15rem;
  margin-bottom: 1.25rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--line);
}
.share-bar-label {
  font-size: 0.92rem;
  font-weight: 700;
  color: #555;
}
.share-bar-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.share-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.32rem 0.7rem;
  border-radius: 999px;
  border: 1px solid rgba(139, 0, 0, 0.18);
  background: #fff;
  color: var(--mipa-red) !important;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none !important;
  line-height: 1.2;
}
.share-btn:hover {
  background: #f8eeee;
  color: var(--link-hover, #9e0606) !important;
}
.share-btn.is-copied {
  background: var(--mipa-red);
  color: #fff !important;
  border-color: var(--mipa-red);
}
.share-wa { border-color: rgba(37, 211, 102, 0.35); color: #128c7e !important; }
.share-fb { border-color: rgba(24, 119, 242, 0.3); color: #1877f2 !important; }
.share-x { border-color: rgba(0, 0, 0, 0.2); color: #111 !important; }
.share-tg { border-color: rgba(0, 136, 204, 0.3); color: #0088cc !important; }

.article-body {
  margin: 0.35rem 0 1rem;
  font-size: 17px;
  color: var(--ink-soft);
  line-height: 1.62;
  text-align: left;
}
.article-body > *:first-child { margin-top: 0; }
.article-body p {
  margin: 0 0 0.75rem;
  text-align: left;
}
.article-body h2 {
  margin: 1.1rem 0 0.45rem;
  font-size: 1.2rem;
  color: var(--ink);
}
.article-body ul, .article-body ol {
  margin: 0 0 0.75rem;
  padding-left: 1.35rem;
}
.article-body li { margin-bottom: 0.25rem; }
.article-body img,
.article-body figure img {
  display: block;
  max-width: min(100%, 720px);
  width: auto;
  height: auto;
  margin: 1rem auto;
  border-radius: 10px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(0, 0, 0, 0.04);
  object-fit: contain;
}
.article-body figure {
  margin: 1rem 0;
  padding: 0;
  text-align: center;
}
.article-body figure figcaption {
  margin-top: 0.4rem;
  font-size: 0.92rem;
  color: var(--muted);
}

.node-taxonomy { margin: 1.25rem 0 0.85rem; }
.node-taxonomy-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border: 1px solid rgba(139, 0, 0, 0.18);
  border-radius: 12px;
  overflow: hidden;
  background: #fffdfb;
}
.node-taxonomy-table th,
.node-taxonomy-table td {
  padding: 0.75rem 1rem;
  vertical-align: top;
  border-top: 1px solid rgba(139, 0, 0, 0.12);
  text-align: left;
  font-size: 16px;
}
.node-taxonomy-table tr:first-child th,
.node-taxonomy-table tr:first-child td { border-top: 0; }
.node-taxonomy-table th {
  width: 9.5rem;
  background: rgba(139, 0, 0, 0.05);
  color: var(--mipa-red-dark);
  font-weight: 700;
}
.node-taxonomy-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.85rem;
}
.node-taxonomy-list a { font-weight: 600; }

.node-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  align-items: center;
  margin: 0.85rem 0 0.35rem;
}
.node-stat {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(139, 0, 0, 0.06);
  border: 1px solid rgba(139, 0, 0, 0.16);
  border-radius: 10px;
  padding: 0.35rem 0.8rem;
}
.node-stat-label {
  font-weight: 700;
  color: var(--mipa-red-dark);
}
.node-stat-value {
  font-weight: 700;
  color: #000;
}

.node-divider {
  border: 0;
  border-top: 1px solid rgba(139, 0, 0, 0.2);
  margin: 1.15rem 0;
}

.node-section-title {
  margin: 0 0 0.85rem;
  font-size: 1.25rem;
  color: #000;
  font-weight: 700;
}

.comment-thread {
  display: flex;
  flex-direction: column;
  gap: 0.95rem;
  margin: 0.35rem 0 1.25rem;
}

.comment-card {
  margin: 0;
}

.comment-card-inner {
  background: #fff;
  border: 1px solid var(--mipa-red);
  border-radius: 12px;
  padding: 0.95rem 1.1rem 0.75rem;
  box-shadow: none;
}

.comment-children {
  margin: 0.85rem 0 0 2.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.comment-header { margin-bottom: 0.55rem; }
.comment-title {
  margin: 0 0 0.25rem;
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.35;
}
.comment-title a,
.comment-title .permalink {
  color: var(--mipa-red);
  text-decoration: none;
}
.comment-title a:hover { text-decoration: underline; }
.comment-submitted {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.9rem;
  align-items: baseline;
  font-size: 15px;
}
.comment-author {
  font-weight: 700;
  color: var(--mipa-red);
  font-size: 15px;
}
.comment-time {
  color: #666;
  font-size: 14px;
}
.comment-content {
  font-size: 16px;
  line-height: 1.6;
  color: #111;
  margin: 0.15rem 0 0.85rem;
}

.comment-footer {
  margin-top: 0.35rem;
  padding-top: 0.65rem;
  border-top: 1px solid rgba(139, 0, 0, 0.14);
}
.comment-forbidden {
  margin: 0;
  font-size: 15px;
  color: var(--mipa-red);
  font-weight: 600;
}
.comment-forbidden a {
  color: var(--mipa-red);
  font-weight: 700;
  text-decoration: underline;
}
.comment-reply summary {
  cursor: pointer;
  color: var(--mipa-red);
  font-weight: 700;
  font-size: 15px;
  list-style: none;
}
.comment-reply summary::-webkit-details-marker { display: none; }
.comment-reply-form { margin-top: 0.65rem; }
.comment-form-wrap { margin-top: 1.1rem; }
.comment-form-title { margin-top: 0.35rem; }

@media (max-width: 720px) {
  .comment-children { margin-left: 0.85rem; }
  .comment-card-inner { padding: 0.8rem 0.85rem 0.65rem; }
}

.article-panel { border-top: 1px solid var(--line); }
.comments { margin-top: 1.1rem; padding-top: 0.75rem; border-top: 1px solid var(--line); }
.empty-state {
  background: #fff;
  border: 1px dashed var(--line);
  padding: 1.1rem;
  text-align: center;
  color: var(--muted);
}
.dense-table { width: 100%; border-collapse: collapse; }
.dense-table th, .dense-table td {
  text-align: left;
  padding: 0.55rem 0.4rem;
  border-bottom: 1px solid var(--line-soft);
  vertical-align: top;
}

/* ===== Pagination (misalpav style) ===== */
.pager {
  margin: 1rem 0 0.25rem;
  display: flex;
  justify-content: center;
}
.pager-list {
  display: inline-flex;
  flex-wrap: wrap;
  list-style: none;
  margin: 0;
  padding: 0;
  border: 1px solid #d9b3b3;
  border-radius: 4px;
  overflow: hidden;
  background: #fff;
}
.pager-item {
  margin: 0;
  border-right: 1px solid #e6cfcf;
}
.pager-item:last-child { border-right: 0; }
.pager-item a,
.pager-item span {
  display: block;
  min-width: 2.2rem;
  padding: 0.45rem 0.7rem;
  text-align: center;
  font-size: 16px;
  font-weight: 600;
  color: var(--mipa-red);
  background: #fff;
  line-height: 1.2;
  white-space: nowrap;
}
.pager-item a:hover {
  background: #f8eeee;
  color: var(--mipa-red-hover);
}
.pager-item.is-active span {
  background: var(--mipa-red);
  color: #fff;
}
.pager-ellipsis span {
  color: var(--mipa-red);
  min-width: 1.8rem;
  cursor: default;
}

/* ===== Footer ===== */
.site-footer {
  border-top: 0;
  background: var(--footer-bg, var(--bg-outer, #292929));
  color: var(--footer-text, #e8d9c8);
  margin-top: 0;
  width: 100%;
  overflow: visible;
}
.footer-brand {
  color: var(--footer-text, #e8d9c8);
  font-weight: 700;
  font-size: 1.05rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr auto;
  gap: 0.85rem 1.25rem;
  align-items: start;
  padding: 1.15rem 0 1.35rem;
}
.footer-about {
  min-width: 0;
}
.footer-tagline,
.footer-slogan {
  display: block;
}
.footer-slogan {
  opacity: 0.92;
}
.site-footer p {
  margin: 0.35rem 0 0;
  color: var(--footer-text-muted, #cbb8a4);
  font-size: 0.95rem;
  line-height: 1.45;
  word-wrap: break-word;
  overflow-wrap: anywhere;
  white-space: normal;
}
.footer-links {
  display: flex;
  gap: 0.65rem 1rem;
  flex-wrap: wrap;
  font-weight: 600;
  align-items: center;
}
.footer-links a {
  color: var(--footer-link, #f0e4d5) !important;
  text-decoration: none !important;
  white-space: nowrap;
}
.footer-links a:hover,
.footer-links a:focus {
  color: var(--footer-link-hover, #ffffff) !important;
}
.footer-copy {
  justify-self: end;
  color: var(--footer-text-muted, #cbb8a4) !important;
  margin: 0 !important;
  white-space: normal;
  word-wrap: break-word;
}

@media (max-width: 991.98px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
    align-items: stretch;
    padding: 1.25rem 0 calc(1.5rem + env(safe-area-inset-bottom, 0px));
  }
  .footer-grid > * {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }
  .footer-brand {
    font-size: 1.15rem;
  }
  .site-footer p {
    font-size: 1rem;
    margin-top: 0.4rem;
  }
  .footer-links {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.75rem 1.1rem;
    padding: 0.15rem 0;
  }
  .footer-links a {
    display: inline-block;
    padding: 0.2rem 0;
    font-size: 1rem;
  }
  .footer-copy {
    justify-self: start;
    margin-top: 0.15rem !important;
    font-size: 0.95rem;
  }
}

@media (max-width: 767.98px) {
  .welcome-layout {
    flex-direction: column;
    flex-wrap: wrap;
  }
  .welcome-main {
    flex: 1 1 auto;
    width: 100%;
    max-width: 100%;
  }
  .welcome-side {
    flex: 1 1 auto;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    order: 3;
  }
}
@media (max-width: 760px) {
  :root { --page-pad: 0.85rem; }
  .node-book-top {
    grid-template-columns: 1fr;
    gap: 0;
    margin-bottom: 1rem;
  }
  .node-book-photo img {
    max-width: min(100%, 280px);
    max-height: 260px;
    margin: 0 auto 1rem;
  }
  .node-book-side {
    display: none;
  }
  .node-hero {
    grid-template-columns: 1fr;
    gap: 0.85rem;
    padding: 0.7rem;
  }
  .node-featured {
    min-height: 0;
    max-height: none;
  }
  .node-featured img {
    max-height: 320px;
    width: 100%;
  }
  .article-body img,
  .article-body figure img {
    max-width: 100%;
    border-radius: 8px;
    margin: 0.85rem auto;
  }
  .share-bar { margin-bottom: 0.85rem; }
  .menubar-inner { justify-content: flex-start; flex-wrap: wrap; }
  .nav-toggle { display: inline-flex; }
  .site-nav {
    display: none;
    width: 100%;
  }
  .site-nav.open { display: block; }
  .site-menu.navbar-nav {
    flex-direction: column;
    align-items: stretch;
    gap: 0.25rem;
    padding-bottom: 0.4rem;
  }
  .site-menu > .nav-item + .nav-item::before {
    content: none;
  }
  .site-menu > .nav-item {
    width: 100%;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  }
  .site-menu .nav-link {
    width: 100%;
    padding: 0.7rem 0.85rem;
    border-radius: 0;
  }
  .nav-item.has-sub {
    flex-wrap: wrap;
    width: 100%;
  }
  .nav-item.has-sub .nav-parent { flex: 1 1 auto; width: auto; }
  .nav-sub-toggle {
    margin-left: auto;
    padding: 0.7rem 0.85rem;
    font-size: 14px;
  }
  .nav-submenu {
    position: static;
    width: 100%;
    min-width: 0;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    background: rgba(0, 0, 0, 0.18);
    padding: 0;
  }
  .nav-item.has-sub:hover > .nav-submenu {
    display: none !important;
  }
  .nav-item.has-sub.is-open > .nav-submenu,
  .nav-item.has-sub.is-open > .nav-submenu[hidden] {
    display: block !important;
  }
  .nav-submenu a {
    color: #fff !important;
    padding: 0.65rem 1.2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    white-space: normal;
  }
  .nav-submenu a:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #fff !important;
  }
  .top-search { max-width: none; width: 100%; }
  .portal-table { display: block; overflow-x: auto; }
  .brand-text { font-size: 1.45rem; white-space: normal; }
}

/* ===== Smooth UX / performance ===== */
html {
  scroll-behavior: smooth;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal-up { opacity: 1; transform: none; transition: none; }
}

.reveal-up {
  opacity: 0;
  transform: translateY(14px);
  transition:
    opacity 0.55s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: calc(var(--reveal-i, 0) * 0.05s);
}
.reveal-up.is-revealed {
  opacity: 1;
  transform: none;
}

.portal-table tbody tr,
.side-list li {
  transition: background-color 0.18s ease;
}

.site-logo,
.welcome-photo img {
  content-visibility: auto;
}

a, button, .tab, .nav-link {
  transition: color 0.15s ease, background-color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}
