/* Google Font Import */
@import url('https://fonts.googleapis.com/css2?family=Libre+Bodoni:wght@400&display=swap');

/* =============================================
   BASE & FLEX STICKY FOOTER
   ============================================= */
html,
body {
  height: 100%;
  width: 100%;
  overflow-x: hidden;
  margin: 0;
  padding: 0;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  /* Ensures full viewport height */
  background: black;
  color: #e6e6e6;
  font-family: "Times New Roman", serif;
  font-size: 17px;
  /* Modern readable body size */
  line-height: 1.6;
}

/* Main grows to push footer down on short pages */
main {
  flex: 1 0 auto;
  /* Key for sticky footer */
  display: flex;
}

/* Footer never shrinks and stays at bottom */
footer {
  flex-shrink: 0;
  background: #111;
  padding: 0.125rem 1rem;
  text-align: left;
  border-top: 1px solid #333;
  font-size: 1rem;
  line-height: 1.0;
  color: #aaa;
}

/* =============================================
   HEADER
   ============================================= */
header {
  width: 100%;
  border-bottom: 1px solid #333;
  padding: 1.5rem 1rem;
  text-align: center;
}

h1 {
  font-family: 'Libre Bodoni', 'Times New Roman', serif;
  font-size: 48px;
  font-weight: 400;
  margin: 0;
  letter-spacing: 2px;
  font-variant: small-caps;
  line-height: 1.1;
  color: #ffffff;
}

h1 a {
  color: #ffffff;
  text-decoration: none;
}

h2 {
  font-family: 'Libre Bodoni', 'Times New Roman', serif;
  font-size: 24px;
  font-weight: 200;
  margin: 1.5rem 0 0.75rem 0;
  letter-spacing: 2px;
  font-variant: small-caps;
  line-height: 1.1;
  color: #ffffff;
}

.date {
  font-size: 1.25rem;
  color: #aaa;
  margin-top: 0.5rem;
}

/* =============================================
   NAVIGATION MENU
   ============================================= */
.menu {
  background: #111;
  border-bottom: 1px solid #333;
  padding: 0.5rem 0;
  text-align: center;
}

.menu ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.menu li {
  display: inline-block;
  margin: 0 0.75rem;
  /* 1.25rem */
}

.menu a {
  color: #aaa;
  text-decoration: none;
  font-size: 17px;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.menu a:hover,
.menu a:focus {
  color: #ffffff;
}

.menu a.current {
  color: #ffffff;
}

/* =============================================
   THREE-COLUMN LAYOUT (CLEAN)
   ============================================= */
.content {
  position: relative;
  padding: 1rem;
  margin: 0 auto;
  /* display: grid; */
  /* grid-template-columns: repeat(3, 1fr); */
  /* gap: 0 2.5rem; */
  column-gap: 2.5rem;
  orphans: 3;
  widows: 3;
  flex: 1 1 auto;
}

.content.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0 2.5rem;
}

.content.cascade {
  column-count: 3;
  column-fill: balance;
}

/* Each column is an independent vertical stack */
.col {
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* Vertical dividers between columns */
.content::before,
.content::after {
  content: "";
  position: absolute;
  top: 1rem;
  bottom: 1rem;
  width: 1px;
  background: #333;
}

.content::before {
  left: calc(100%/3);
}

.content::after {
  left: calc(100% * 2/3);
}

/* Individual story styling (optional but nice) */
.story {
  break-inside: avoid;
  /* Prevents ugly column breaks inside stories */
  margin-bottom: 1rem;
  /* Space between stories */
  padding: 1rem;
  background: #111;
  border-radius: 6px;
}

.story h3 {
  margin: 0 0 0.25rem 0;
  font-size: 1.25rem;
  color: #ffffff;
}

.story p {
  margin: 0.5rem 0;
  font-size: 1rem;
}

/* =============================================
   LINKS & GENERAL
   ============================================= */
a {
  color: #4682B4;
}

a:link,
a:visited {
  text-decoration: none;
}

a:hover,
a:focus {
  color: #ffffff;
}

/* Ensure all text stays light */
p,
li,
small {
  color: #aaa;
}

hr {
  all: unset;
  display: block;
  border-top: 1px solid #aaa;
  margin: 0.5rem 0;
}

.hilight {
  color: #ffffff;
}

.link {
  color: #4682B4;
  font-style: italic;
}

/* =============================================
   ECONOMIC CALENDAR TABLE
   ============================================= */
.econ-calendar {
  border-collapse: separate;
  border-spacing: 10px 0;
  width: 100%;
  color: #aaa;
}

.econ-calendar td,
.econ-calendar th {
  vertical-align: top;
  padding: 0;
}

.econ-calendar td:nth-child(1),
.econ-calendar th:nth-child(1) {
  width: 60px;
  text-align: center;
}

.econ-calendar td:nth-child(2),
.econ-calendar th:nth-child(2) {
  width: 40px;
  text-align: center;
}

.econ-calendar td:nth-child(3),
.econ-calendar th:nth-child(3) {
  width: auto;
  text-align: left;
}

/* =============================================
   MOBILE RESPONSIVE DESIGN
   ============================================= */
@media (max-width: 600px) {
  .content.grid {
    grid-template-columns: 1fr;
    gap: 1rem;
    /* Safari spacing fix */
  }

  .content.cascade {
    column-count: 1;
    column-gap: 1rem;
    /* Safari spacing fix */
  }

  /* Remove vertical dividers on mobile */
  .content::before,
  .content::after {
    display: none;
  }

  /* Mobile ordering */
  .m-order-1 {
    order: 1;
  }

  .m-order-2 {
    order: 2;
  }

  .m-order-3 {
    order: 3;
  }

  .m-order-4 {
    order: 4;
  }

  /* Add as many as you need */

  h1 {
    font-size: 40px;
  }

  .menu li {
    margin: 0 0.5rem;
  }

  .menu a {
    font-size: 0.75rem;
  }
}