/* Landing home polish — works with style.css */

/* Slightly larger base scale; most landing sizes are rem-based */
html { font-size: 112.5%; }
.landing-home .container {
  width: min(1200px, calc(100% - 4rem));
}
@media (max-width: 700px) {
  html { font-size: 100%; }
  .landing-home .container { width: calc(100% - 2rem); }
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: #0c3c78;
  color: #fff;
  padding: 0.65rem 1rem;
  z-index: 10000;
}
.skip-link:focus {
  left: 0.75rem;
  top: 0.75rem;
}

.landing-home .brand {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  text-decoration: none;
  color: #fff;
}
.landing-home .brand img {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #0c2340;
  box-shadow: 0 0 0 2px rgba(255,255,255,.25);
  object-fit: cover;
}
.landing-home .brand-text {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  line-height: 1.15;
}
.landing-home .brand-name {
  font-family: var(--font);
  font-size: clamp(1.2rem, 2.2vw, 1.7rem);
  font-weight: 700;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}
.landing-home .brand-sub {
  display: block;
  font-size: 0.78rem;
  color: rgba(255,255,255,.85);
  font-weight: 500;
}

.landing-home .main-nav a {
  font-weight: 600;
  font-size: 0.85rem;
}

/* Nav bar: menu left, Login / Sign Up text links right */
.landing-home .header-nav-inner {
  align-items: center;
  flex-wrap: nowrap;
}
.landing-home .main-nav a:first-child {
  padding-left: 0;
}
.landing-home .auth-links {
  flex-shrink: 0;
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}
.landing-home .auth-links a {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.85rem 0.85rem;
  border-bottom: 3px solid transparent;
}
.landing-home .auth-links a:last-child {
  padding-right: 0;
}
.landing-home .auth-links a:hover,
.landing-home .auth-links a:focus {
  background: none;
  border-bottom-color: #9ec3e8;
}

/* Full-bleed hero WITH background image */
.landing-home .hero {
  aspect-ratio: auto;
  min-height: clamp(280px, 30vw, 440px);
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  background-color: #0a2f5c;
  background-image: none;
}
.landing-home .hero-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(90deg, rgba(8, 32, 64, 0.45) 0%, rgba(12, 60, 120, 0.15) 45%, rgba(12, 60, 120, 0) 60%),
    url("../img/treasury-banner.jpg");
  background-repeat: no-repeat;
  background-position: right center;
  background-size: cover;
  z-index: 0;
}
.landing-home .hero-inner {
  position: relative;
  z-index: 1;
  padding: 2.5rem 0 2.5rem clamp(0px, 20vw, 340px);
}
.landing-home .hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin: 0 0 0.5rem;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-transform: none;
  color: #fff;
}
.landing-home .hero-eyebrow::before,
.landing-home .hero-eyebrow::after {
  content: "";
  width: 1.5rem;
  height: 1px;
  background: rgba(255, 255, 255, 0.7);
}
.landing-home .hero h1 {
  font-size: clamp(1.9rem, 3.2vw, 2.75rem);
  font-weight: 400;
  letter-spacing: 0;
  margin: 0 0 1.5rem;
  max-width: none;
  color: #fff;
  text-shadow: 0 2px 14px rgba(0,0,0,.25);
}
.landing-home .hero-lead {
  margin: 0 0 1.5rem;
  max-width: 34rem;
  font-size: 1.08rem;
  line-height: 1.55;
  color: rgba(255,255,255,.92);
  text-shadow: 0 1px 10px rgba(0,0,0,.2);
}
.landing-home .hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  align-items: center;
}
.landing-home .btn-hero-secondary {
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid rgba(255,255,255,.55);
  padding-bottom: 2px;
}
.landing-home .btn-hero-secondary:hover {
  color: #c9a227;
  border-color: #c9a227;
}
.landing-home .btn-read-more {
  background: #6c5ce7;
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.85);
  font-size: 0.82rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 1.1rem;
  border-radius: 3px;
  text-decoration: none;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}
.landing-home .btn-read-more:hover,
.landing-home .btn-read-more:focus {
  background: #5a4bd4;
  color: #fff;
}

.landing-home .feature-hero-media {
  background-size: cover;
  background-position: center;
  min-height: 200px;
}
.feature-mini-thumb {
  width: 100%;
  height: 110px;
  border-radius: 4px;
  background-size: cover;
  background-position: center;
  margin-bottom: 0.65rem;
}
.feature-mini-card .mini-summary {
  margin: 0.45rem 0 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.45;
}
.press-login-cta {
  display: inline-block;
  margin-top: 1.25rem;
}

.access-steps {
  margin: 1.25rem 0 0;
  padding: 1rem 1rem 1rem 1.5rem;
  background: #f4f7fb;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: #334155;
  font-size: 0.92rem;
  line-height: 1.55;
}
.access-steps li + li {
  margin-top: 0.45rem;
}

.footer-copy {
  margin: 0.65rem 0 0;
  font-size: 0.8rem;
  color: rgba(255,255,255,.72);
  max-width: 42rem;
  line-height: 1.45;
}
.landing-home .footer-seal {
  object-fit: contain;
  padding: 6px;
}

@media (max-width: 700px) {
  .landing-home .brand-sub { display: none; }
  .landing-home .hero {
    min-height: 420px;
  }
  .landing-home .hero-bg {
    background-image:
      linear-gradient(90deg, rgba(8, 32, 64, 0.75) 0%, rgba(12, 60, 120, 0.5) 60%, rgba(12, 60, 120, 0.2) 100%),
      url("../img/treasury-banner.jpg");
    background-position: 80% center;
  }
  .landing-home .hero-inner {
    padding-left: 0;
  }
}

@media (max-width: 900px) {
  .landing-home .header-nav-inner {
    flex-wrap: nowrap;
    gap: 0.5rem;
  }
  .landing-home .main-nav {
    overflow-x: auto;
    scrollbar-width: none;
    min-width: 0;
  }
  .landing-home .main-nav::-webkit-scrollbar { display: none; }
  .landing-home .main-nav a:first-child { padding-left: 0; }
  .landing-home .main-nav a,
  .landing-home .auth-links a {
    padding-left: 0.6rem;
    padding-right: 0.6rem;
  }
  .landing-home .auth-links a:last-child { padding-right: 0; }
}

.account-notice--error {
  background: #fff5f5;
  border-left-color: #ea5455;
}

/* Header rows: full width, 50px gutters, fixed px sizes (independent of root scale) */
.landing-home .alert-banner .container,
.landing-home .official-bar .container,
.landing-home .site-header .container {
  width: auto;
  max-width: none;
  margin: 0;
  padding-left: 50px;
  padding-right: 50px;
}
.landing-home .alert-banner {
  border-left-width: 7px;
  font-size: 16px;
}
.landing-home .alert-banner-inner {
  gap: 8px;
  padding-top: 10px;
  padding-bottom: 10px;
}
.landing-home .alert-banner p { line-height: 1.7; }
.landing-home .alert-banner-icon {
  width: 17px;
  height: 17px;
  margin-top: 5px;
  font-size: 11px;
}
.landing-home .official-bar { font-size: 12.8px; }
.landing-home .official-bar-inner {
  gap: 8px;
  padding-top: 2px;
  padding-bottom: 2px;
}
.landing-home .official-bar .flag {
  width: 16px;
  height: 11px;
  margin-top: 1px;
}
.landing-home .how-know-toggle { font-weight: 400; }

.landing-home .header-brand-inner {
  padding-top: 10px;
  padding-bottom: 10px;
}
.landing-home .brand { gap: 12px; }
.landing-home .brand img {
  width: 64px;
  height: 64px;
}
.landing-home .brand-name {
  font-size: 28.8px;
  font-weight: 400;
  letter-spacing: 0;
}

.landing-home .header-nav-inner { min-height: 59px; }
.landing-home .main-nav { gap: 35px; }
.landing-home .auth-links { gap: 35px; }
.landing-home .main-nav a,
.landing-home .auth-links a {
  font-family: "Maven Pro", sans-serif;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0;
  line-height: 27px;
  padding: 16px 0 13px;
}

@media (max-width: 900px) {
  .landing-home .alert-banner .container,
  .landing-home .official-bar .container,
  .landing-home .site-header .container {
    padding-left: 16px;
    padding-right: 16px;
  }
  .landing-home .brand-name { font-size: 20px; }
  .landing-home .brand img { width: 48px; height: 48px; }
  .landing-home .main-nav,
  .landing-home .auth-links { gap: 22px; }
  .landing-home .main-nav a,
  .landing-home .auth-links a { font-size: 14px; }
}
.landing-home .official-bar-copy > p { line-height: 16px; }
@media (min-width: 901px) {
  .landing-home .header-nav-bar .container {
    padding-left: 62px;
    padding-right: 62px;
  }
}

/* Home banner: text left-aligned with the header gutter */
.landing-home .hero {
  min-height: 0;
  padding: clamp(140px, 20.8vw, 300px) 0 clamp(110px, 17.4vw, 250px);
}
.landing-home .hero-bg {
  background-image: url("../img/treasury-banner.jpg");
  background-position: center;
}
.landing-home .hero-inner {
  width: auto;
  max-width: none;
  margin: 0;
  padding: 0 72px;
}
.landing-home .hero-eyebrow {
  gap: 10px;
  margin: 0 0 4px;
  font-size: 16px;
  font-weight: 400;
}
.landing-home .hero-eyebrow::before,
.landing-home .hero-eyebrow::after {
  width: 25px;
  background: #fff;
}
.landing-home .hero h1 {
  font-size: clamp(40px, 5vw, 72px);
  line-height: 1.2;
  margin: 0;
  text-shadow: none;
}
.landing-home .hero-actions { margin-top: clamp(32px, 5.3vw, 76px); }
.landing-home .btn-read-more {
  background: #7966ff;
  border: 1px solid transparent;
  border-radius: 6px;
  box-shadow: none;
  font-size: 16px;
  font-weight: 400;
  line-height: 24px;
  padding: 14px 30px;
}
.landing-home .btn-read-more:hover,
.landing-home .btn-read-more:focus { background: #6350e8; }

@media (max-width: 900px) {
  .landing-home .hero-inner { padding: 0 16px; }
  .landing-home .hero-bg {
    background-image:
      linear-gradient(90deg, rgba(8, 32, 64, 0.6) 0%, rgba(8, 32, 64, 0.2) 70%),
      url("../img/treasury-banner.jpg");
    background-position: 75% center;
  }
}

/* Featured Stories + Press Releases */
.fs-section {
  background: #f5f7fa;
  padding: 100px 0;
}
.landing-home .fs-section .container {
  width: min(1296px, calc(100% - 144px));
}
.fs-layout {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 24px;
}
.fs-heading {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}
.fs-heading h2 {
  margin: 0;
  font-family: Merriweather, Cambria, serif;
  font-size: 48px;
  font-weight: 500;
  line-height: 1.2;
  color: #373e4a;
  white-space: nowrap;
}
.fs-heading-line {
  flex: 1;
  border-top: 1px solid #ccc;
}
.fs-card {
  background: #fff;
  border-radius: 8px;
  padding: 24px;
  overflow: hidden;
}
.fs-card--lg {
  display: grid;
  grid-template-columns: 40% 1fr;
  padding: 0;
  margin-bottom: 24px;
}
.fs-card-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 224px;
  object-fit: cover;
}
.fs-card--lg .fs-card-body { padding: 24px; }
.fs-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.fs-date,
.fs-press-date {
  display: block;
  font-family: "Open Sans", sans-serif;
  font-size: 14px;
  line-height: 1.7;
  color: #464646;
}
.fs-title {
  margin: 8px 0 4px;
  font-family: "Maven Pro", sans-serif;
  font-size: 24px;
  font-weight: 500;
  line-height: 1.2;
}
.fs-title--sm { font-size: 20px; }
.fs-title a {
  color: #373e4a;
  text-decoration: none;
}
.fs-title a:hover { color: #7966ff; }
.fs-link {
  font-family: "Open Sans", sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: #464646;
  text-decoration: none;
}
.fs-link:hover { color: #7966ff; }
.fs-press-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}
.fs-press-item {
  background: #fff;
  border-radius: 8px;
  padding: 16px;
}
.fs-press-date { font-size: 13px; margin-bottom: 6px; }
.fs-press-title {
  font-family: "Open Sans", sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: #464646;
  text-decoration: none;
}
.fs-press-title:hover { color: #7966ff; }

@media (max-width: 1100px) {
  .fs-layout { grid-template-columns: 1fr; gap: 48px; }
}
@media (max-width: 700px) {
  .fs-section { padding: 60px 0; }
  .landing-home .fs-section .container { width: calc(100% - 32px); }
  .fs-heading h2 { font-size: 32px; }
  .fs-card--lg,
  .fs-row { grid-template-columns: 1fr; }
  .fs-card-thumb img { min-height: 200px; }
}

/* Inner page banner (image + navy overlay, centered title + breadcrumb) */
.page-banner {
  position: relative;
  padding: 220px 0 80px;
  background-color: #002046;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  text-align: center;
}
.page-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background: #002046;
  opacity: 0.7;
}
.page-banner-inner {
  position: relative;
  max-width: 636px;
  margin: 0 auto;
  padding: 0 16px;
}
.page-banner-title {
  margin: 0 0 16px;
  font-family: Merriweather, Cambria, serif;
  font-size: 42px;
  font-weight: 500;
  line-height: 1.2;
  color: #fff;
}
.page-banner-crumbs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  margin: 0;
  padding: 0;
  list-style: none;
  font-family: "Open Sans", sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.8);
  text-transform: capitalize;
}
.page-banner-crumbs li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.page-banner-crumbs li + li::before {
  content: "-";
  margin: 0 8px;
}
.page-banner-crumbs svg { color: #7966ff; }
.page-banner-crumbs a {
  color: #fff;
  text-decoration: none;
}
.page-banner-crumbs a:hover { color: #c5b8ff; }

@media (max-width: 700px) {
  .page-banner { padding: 120px 0 56px; }
  .page-banner-title { font-size: 28px; }
}

/* Story detail */
.story-section {
  background: #fff;
  padding: 100px 0;
}
.landing-home .story-section .container {
  width: min(1296px, calc(100% - 144px));
}
.story-layout {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  gap: 60px;
  align-items: start;
}
.story-date,
.recent-post-date {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: "Open Sans", sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: #464646;
}
.story-title {
  margin: 0 0 16px;
  font-family: Merriweather, Cambria, serif;
  font-size: 42px;
  font-weight: 500;
  line-height: 1.2;
  color: #373e4a;
}
.story-image {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 8px;
}
.story-content {
  margin-top: 24px;
  font-family: "Open Sans", sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: #464646;
}
.story-content p { margin: 0 0 1em; }
.story-share {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 48px 0 0;
  padding: 20px 0;
  list-style: none;
  border-top: 1px solid #e5e5e5;
  border-bottom: 1px solid #e5e5e5;
  font-family: "Open Sans", sans-serif;
  color: #464646;
}
.story-share a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 35px;
  height: 35px;
  border: 1px solid #e5e5e5;
  border-radius: 50%;
  color: #777;
}
.story-share a:hover {
  background: #7966ff;
  border-color: #7966ff;
  color: #fff;
}
.recent-posts {
  background: #f5f7fa;
  border-radius: 8px;
  padding: 20px;
}
.recent-posts-title {
  margin: 0 0 30px;
  padding-bottom: 5px;
  font-family: Merriweather, Cambria, serif;
  font-size: 22px;
  font-weight: 500;
  line-height: 1.2;
  color: #373e4a;
}
.recent-posts-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.recent-post {
  display: flex;
  gap: 20px;
  padding: 15px 0;
}
.recent-post:first-child { padding-top: 0; }
.recent-post:last-child { padding-bottom: 0; }
.recent-post-thumb {
  flex: 0 0 80px;
}
.recent-post-thumb img {
  display: block;
  width: 80px;
  height: 70px;
  object-fit: cover;
}
.recent-post-title {
  margin: 0;
  font-family: "Maven Pro", sans-serif;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.2;
}
.recent-post-title a {
  color: #373e4a;
  text-decoration: none;
}
.recent-post-title a:hover { color: #7966ff; }
.recent-post-date {
  margin: 8px 0 0;
  gap: 4px;
}

@media (max-width: 991px) {
  .story-layout { grid-template-columns: 1fr; gap: 48px; }
}
@media (max-width: 700px) {
  .story-section { padding: 60px 0; }
  .landing-home .story-section .container { width: calc(100% - 32px); }
  .story-title { font-size: 28px; }
}

/* Tools cards (next to Data Center) */
.tools-card {
  padding: 32px;
  border-radius: 8px;
  color: #fff;
  font-family: "Open Sans", sans-serif;
}
.tools-card + .tools-card { margin-top: 16px; }
.tools-card--blue { background: #0a4a79; }
.tools-card--gray { background: #3f3f3f; }
.tools-card-title {
  margin-bottom: 8px;
  font-size: 22px;
  font-weight: 600;
  line-height: 1.7;
}
.tools-card-desc {
  margin: 0 0 18px;
  font-size: 16px;
  line-height: 1.7;
  color: #fff;
}
.tools-card-link {
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
}
.tools-card-link:hover {
  color: #fff;
  text-decoration: underline;
}
.landing-home .data-tools-section .section-heading {
  font-family: Merriweather, Cambria, serif;
  font-size: 48px;
  font-weight: 500;
  line-height: 1.2;
  color: #373e4a;
}
@media (max-width: 700px) {
  .landing-home .data-tools-section .section-heading { font-size: 32px; }
}

.data-intro .btn-read-more { margin-top: 8px; }

/* Logged-in header buttons (Logout / Dashboard) */
.landing-home .auth-links a.auth-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border: 0;
  border-radius: 4px;
  font-family: "Maven Pro", sans-serif;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
  text-transform: none;
  color: #fff;
}
.landing-home .auth-links a.auth-btn:hover { border: 0; opacity: 0.9; }
.landing-home .auth-links:has(.auth-btn) { gap: 8px; }
.auth-btn--danger { background: #ea5455; }
.auth-btn--primary { background: #7966ff; }

.page-banner--sm { padding: 100px 0 70px; }

/* User Data form */
.ud-section {
  background: #fff;
  padding: 34px 16px;
}
.ud-card {
  max-width: 864px;
  margin: 0 auto;
  padding: 24px 87px 32px;
  background: #fff;
  border: 1px solid #e5e5e5;
  border-radius: 3px;
}
.ud-card .btn-login { border-radius: 4px; }
@media (max-width: 700px) {
  .ud-card { padding: 24px 20px; }
  .ud-card .form-row { grid-template-columns: 1fr; gap: 0; }
}
