:root {
  --maroon: #aa0b22;
  --maroon-dark: #94081d;
  --text: #2d2d2d;
  --footer: #474747;
  --footer-black: #060606;
  --border: #d8d8d8;
  --card-border: #cc102a;
  --content-width: 1000px;
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--text);
  background: #ffffff;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

.top-strip {
  background: var(--maroon);
  color: #fff;
  font-size: 12px;
  line-height: 1;
}

.top-strip__inner {
  max-width: 1366px;
  height: 23px;
  margin: 0 auto;
  padding: 0 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  white-space: nowrap;
}

.top-strip__left {
  min-width: 130px;
}

.top-strip__center {
  flex: 1;
  text-align: center;
  font-weight: 700;
}

.top-strip__right {
  display: flex;
  gap: 16px;
  font-size: 11px;
}

.top-strip__right a {
  color: #fff;
}

.site-header {
  background: #fff;
  border-bottom: 1px solid #ececec;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.site-header__inner {
  max-width: 1366px;
  margin: 0 auto;
}

.brand-row {
  min-height: 96px;
  padding: 6px 14px 2px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 16px;
}

.brand-logo {
  width: 394px;
  max-width: 100%;
  height: auto;
  display: block;
}

.header-meta {
  display: flex;
  justify-content: center;
  align-items: center;
  min-width: 0;
}

.header-meta__links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  color: #5a5a5a;
  font-size: 13px;
  font-weight: 700;
}

.header-meta__links a {
  color: #4f4f4f;
}

.header-meta__divider {
  color: #7d7d7d;
}

.caret {
  display: inline-block;
  width: 10px;
  height: 10px;
  margin-left: 4px;
  vertical-align: middle;
  background-color: currentColor;
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  -webkit-mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-position: center;
}

.search-form {
  display: flex;
  align-items: center;
}

.search-form input {
  width: 192px;
  height: 26px;
  border: 1px solid #d8d8d8;
  border-right: 0;
  padding: 0 12px;
  font-size: 13px;
  outline: none;
}

.search-form button {
  width: 35px;
  height: 26px;
  border: 1px solid #4b66b4;
  background: #4b66b4;
  color: #fff;
  cursor: pointer;
  display: grid;
  place-items: center;
  font-size: 15px;
}

.main-nav {
  min-height: 38px;
  border-top: 1px solid #ea3942;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 38px;
  padding: 0 18px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 17px;
  font-weight: 700;
  color: #5c5c5c;
}

.main-nav a.active {
  color: var(--maroon);
}

main {
  min-height: 760px;
}

.hero-space {
  min-height: 500px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 76px 18px 54px;
}

.portal-copy {
  max-width: 940px;
  text-align: center;
}

.portal-eyebrow {
  margin: 0 0 10px;
  color: #8a8a8a;
  font-size: 13px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 700;
}

.hero-space h1 {
  margin: 0;
  color: var(--maroon);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 34px;
  line-height: 1.2;
  font-weight: 700;
  text-align: center;
}

.portal-intro {
  max-width: 860px;
  margin: 14px auto 0;
  color: #5b5b5b;
  font-size: 16px;
  line-height: 1.75;
}

.portal-stats {
  margin-top: 28px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.stat-card {
  border: 1px solid #e2e2e2;
  border-radius: 4px;
  background: #fff;
  padding: 18px 18px 16px;
  text-align: left;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

.stat-label {
  display: block;
  margin-bottom: 8px;
  color: #7a7a7a;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
}

.stat-card strong {
  color: #262626;
  font-size: 18px;
  line-height: 1.35;
}

.portal-actions {
  margin-top: 30px;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
}

.portal-updates {
  margin: 34px auto 0;
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 18px;
  text-align: left;
}

.updates-panel,
.facts-panel {
  border: 1px solid #e3e3e3;
  border-radius: 6px;
  background: #fff;
  padding: 22px 22px 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

.updates-kicker {
  margin: 0 0 8px;
  color: #8d8d8d;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 700;
}

.updates-panel h2,
.facts-panel h2 {
  margin: 0 0 18px;
  color: #262626;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 22px;
  line-height: 1.2;
}

.updates-list {
  display: grid;
  gap: 14px;
}

.update-item {
  padding: 14px 15px;
  border-left: 3px solid var(--maroon);
  background: #fafafa;
}

.update-date {
  display: inline-block;
  margin-bottom: 6px;
  color: var(--maroon);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.update-item p {
  margin: 0;
  color: #4d4d4d;
  font-size: 14px;
  line-height: 1.55;
}

.facts-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.fact-box {
  border: 1px solid #ececec;
  border-radius: 4px;
  padding: 15px 14px 14px;
  background: linear-gradient(180deg, #fff 0%, #fcfcfc 100%);
}

.fact-label {
  display: block;
  margin-bottom: 7px;
  color: #7a7a7a;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
}

.fact-box strong {
  color: #222;
  font-size: 16px;
  line-height: 1.4;
}

.facts-note {
  margin: 14px 0 0;
  color: #666;
  font-size: 13px;
  line-height: 1.65;
}

.action-button {
  min-height: 44px;
  border: 1px solid var(--card-border);
  border-radius: 4px;
  padding: 10px 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--maroon);
  background: #fff;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.01em;
  transition: background-color 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

.action-button:hover {
  transform: translateY(-1px);
  background: rgba(170, 11, 34, 0.04);
}

.action-button--primary {
  background: var(--maroon);
  color: #fff;
}

.action-button--primary:hover {
  background: var(--maroon-dark);
}

.related-links {
  max-width: 980px;
  margin: 0 auto 84px;
  padding: 0 18px;
  text-align: center;
}

.related-links h2 {
  margin: 0;
  color: var(--maroon);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 23px;
  font-weight: 700;
}

.section-rule {
  width: 52px;
  height: 1px;
  margin: 10px auto 22px;
  background: var(--maroon);
}

.links-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px 12px;
  justify-content: center;
}

.link-card {
  min-height: 39px;
  border: 1px solid var(--card-border);
  color: var(--maroon);
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 8px 13px;
  text-align: left;
  background: #fff;
}

.link-card::after {
  content: "→";
  font-size: 18px;
  line-height: 1;
  color: var(--maroon);
  flex: 0 0 auto;
}

.link-card:nth-child(4),
.link-card:nth-child(5) {
  grid-column: span 1;
}

.link-card:nth-child(4) {
  grid-column: 1 / span 1;
}

.link-card:nth-child(5) {
  grid-column: 2 / span 1;
}

.site-footer {
  background: var(--footer-black);
  color: #fff;
}

.site-footer__inner {
  background: var(--footer);
  padding: 0;
}

.footer-top-rule {
  width: min(710px, calc(100% - 40px));
  height: 1px;
  margin: 18px auto 16px;
  background: #a91a2b;
}

.footer-main {
  max-width: 1366px;
  margin: 0 auto;
  padding: 16px 20px 24px;
  display: flex;
  justify-content: center;
  gap: 80px;
  align-items: center;
}

.footer-brand img {
  width: 330px;
  max-width: 100%;
  height: auto;
  display: block;
}

.footer-brand__note {
  max-width: 340px;
  margin: 18px 0 0;
  color: #f0f0f0;
  font-size: 12px;
  line-height: 1.6;
  display: none;
}

.footer-contact {
  padding-top: 2px;
  margin-top: 0;
  font-size: 11px;
  line-height: 1.45;
  text-align: left;
  color: #eaeaea;
}

.footer-contact p {
  margin: 0 0 12px;
  display: flex;
  align-items: flex-start;
}

.footer-contact p:last-child {
  margin-bottom: 0;
}

.contact-icon {
  width: 16px;
  height: 16px;
  margin-right: 12px;
  margin-top: 1px;
  flex-shrink: 0;
  stroke: currentColor;
}

.icon {
  display: inline-block;
  width: 18px;
  margin-right: 8px;
}

.footer-links {
  max-width: 960px;
  margin: 0 auto;
  padding: 30px 20px 10px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
}

.footer-links h3 {
  margin: 0 0 6px;
  padding-bottom: 5px;
  border-bottom: 1px solid #a8a8a8;
  display: inline-block;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 14px;
  font-weight: 700;
}

.footer-links a {
  display: block;
  margin: 0 0 5px;
  color: #ececec;
  font-size: 12px;
  line-height: 1.4;
}

.copyright {
  background: var(--footer-black);
  text-align: center;
  padding: 8px 10px 10px;
  font-size: 14px;
  color: #fff;
}

@media (max-width: 1200px) {
  .brand-row {
    grid-template-columns: 1fr;
    justify-items: center;
  }

  .header-meta {
    order: 3;
  }

  .search-form {
    order: 2;
  }

  .main-nav {
    flex-wrap: wrap;
    gap: 18px 28px;
    padding: 10px 18px 12px;
  }

  .footer-main,
  .footer-links {
    padding-left: 24px;
    padding-right: 24px;
  }
}

@media (max-width: 900px) {
  .header-meta__divider {
    display: none;
  }

  .top-strip__inner {
    justify-content: center;
    white-space: normal;
    height: auto;
    padding: 8px 12px;
    line-height: 1.4;
  }

  .top-strip__left,
  .top-strip__right {
    display: none;
  }

  .brand-logo {
    width: min(394px, 100%);
  }

  .portal-stats,
  .portal-updates {
    grid-template-columns: 1fr;
  }

  .footer-links {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px 16px;
    text-align: center;
  }

  .footer-main {
    flex-direction: column;
    gap: 30px;
  }
  .footer-contact {
    display: none;
  }

  .link-card:nth-child(4),
  .link-card:nth-child(5) {
    grid-column: auto;
  }

  .hero-space {
    min-height: 420px;
    padding-top: 34px;
  }

  .copyright {
    font-size: 16px;
  }

  .footer-brand img {
    width: min(280px, 100%);
  }

  .footer-brand__note {
    max-width: 320px;
  }
}

@media (max-width: 640px) {
  .brand-row {
    padding-top: 10px;
  }

  .search-form input {
    width: 170px;
  }

  .main-nav {
    font-size: 15px;
  }

  .hero-space h1 {
    font-size: 26px;
  }

  .portal-intro {
    font-size: 15px;
  }

  .stat-card strong {
    font-size: 16px;
  }

  .updates-panel h2,
  .facts-panel h2 {
    font-size: 20px;
  }

  .facts-grid {
    grid-template-columns: 1fr;
  }

  .action-button {
    width: 100%;
  }

  .footer-main {
    gap: 20px;
  }

  .footer-contact,
  .footer-links a {
    font-size: 12px;
  }

  .footer-links h3 {
    font-size: 14px;
  }

  .copyright {
    font-size: 14px;
  }
}

select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234f4f4f' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 14px;
  padding-right: 40px !important;
}

input[type="date"]::-webkit-calendar-picker-indicator {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234f4f4f' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='18' rx='2' ry='2'%3E%3C/rect%3E%3Cline x1='16' y1='2' x2='16' y2='6'%3E%3C/line%3E%3Cline x1='8' y1='2' x2='8' y2='6'%3E%3C/line%3E%3Cline x1='3' y1='10' x2='21' y2='10'%3E%3C/line%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  color: transparent;
  cursor: pointer;
  width: 16px;
  height: 16px;
}

/* Dropdown Menu Styles */
.nav-dropdown {
  position: relative;
  display: inline-block;
  cursor: pointer;
}

.nav-dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: #fff;
  box-shadow: 0 4px 16px rgba(0,0,0,0.15);
  min-width: 200px;
  z-index: 100;
  flex-direction: column;
  padding: 8px 0;
  border: 1px solid #e0e0e0;
  border-radius: 2px;
}

.header-meta__links .nav-dropdown-menu {
  top: calc(100% + 8px);
  min-width: 160px;
}

.nav-dropdown-menu a {
  padding: 10px 18px !important;
  color: #333 !important;
  font-size: 15px !important;
  font-family: Arial, Helvetica, sans-serif !important;
  text-decoration: none;
  display: block;
  font-weight: 600 !important;
  text-align: left;
  transition: background-color 0.2s, color 0.2s;
}

.header-meta__links .nav-dropdown-menu a {
  font-size: 13px !important;
}

.nav-dropdown-menu a:hover {
  background-color: #f8f8f8;
  color: var(--maroon) !important;
}

.nav-dropdown:hover .nav-dropdown-menu {
  display: flex;
}
