/* css/style.css */

/* Reset margins/padding */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Body/base typography & background */
body {
  font-family: 'Domine', serif;
  line-height: 1.6;
  color: #333;
  background: #f8f8f8;
  font-size: 16px;
}

/* Header – stack banner and nav vertically */
.site-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0;
}

/* Banner image */
.site-banner {
  width: 100%;
  height: auto;
  display: block;
  margin-bottom: 0;
}

/* Navigation bar styling */
.site-nav {
  width: 100%;
  background: #f1f1f1;
  padding: 0.30rem 0;
}

.site-nav ul {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 2.0rem;
  margin: 0;
  padding: 0;
}

.site-nav a {
  color: #333;
  text-decoration: none;
  font-family: 'Domine', serif;
}

.site-nav a:hover {
  text-decoration: underline;
}

/* Full-width white wrapper */
.site-content {
  width: 100%;
  background: #fff;
  padding-bottom: 2rem;
}

/* Centered column */
.container {
  max-width: 960px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

/* Main sections */
main {
  padding: 0;
  background: none;
}

/* Hero section */
.hero {
  text-align: center;
  padding: 2rem 0;
}

.hero h1 {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}

.hero p {
  font-size: 1.2rem;
}

/* Section headings */
h2 {
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
  color: #333;
}

/* Footer */
.site-footer {
  background: #f1f1f1;
  color: #333;
  text-align: center;
  padding: 1.5rem;
  font-size: 0.9rem;
}

.site-footer a {
  color: #333;
  text-decoration: none;
}

.site-footer a:hover {
  text-decoration: underline;
}

/* Responsive nav for small screens */
@media (max-width: 960px) {
  .site-nav ul {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.3rem;
  }

  .site-nav a {
    display: inline-block;
    padding: 0.4rem 0.8rem;
    width: auto;
    text-align: center;
  }
}

/* Desktop: constrain header/content/footer into one outlined box */
@media (min-width: 961px) {
  .site-header {
    max-width: 960px;
    margin: 0 auto;
    border: 1px solid #ccc;
    border-bottom: none;
  }
  .site-content {
    max-width: 960px;
    margin: 0 auto;
    background: #fff;
    border-left: 1px solid #ccc;
    border-right: 1px solid #ccc;
  }
  .site-footer {
    max-width: 960px;
    margin: 0 auto;
    border: 1px solid #ccc;
    border-top: none;
  }
}

/* Bullet list spacing inside page sections */
.page-section ul {
  margin-left: 1.5rem;
}

.page-section ul li p,
.highlights ul li p {
  margin: 0.2rem 0 1rem 0;
  font-size: 0.9em;
  color: #555;
}

/* Link behavior */
.site-content a {
  color: #333;
  text-decoration: none;
}
.site-content a:hover {
  text-decoration: underline;
}

/* Make every heading use the site’s dark blue */
h1, h2, h3, h4, h5, h6 {
  color: #333;
}

/* Paragraph spacing inside article */
article p {
  margin-bottom: 1rem;
}

/* Add space above headers in articles */
article h2,
article h3,
article h4,
article h5,
article h6 {
  margin-top: 2rem;
}

/* Article list formatting */
article ul {
  margin-left: 2rem;
}

/* Center all H1s site-wide */
h1 {
  text-align: center;
}

/* Center the article title and metadata */
.issue h1,
.issue .issue-meta {
  text-align: center;
}

/* Add spacing before article content */
.issue article {
  margin-top: 2rem;
}

/* Author box layout */
.author-box {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 0.5em;
  margin-bottom: 1em;
  flex-wrap: wrap;
  text-align: center;
}

.author-photo {
  width: 48px !important;
  height: 48px !important;
  max-width: 48px !important;
  max-height: 48px !important;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 !important;
  display: inline-block !important;
}

.author-info {
  font-size: 0.95em;
  line-height: 1.4;
  text-align: center;
}

.author-link {
  text-decoration: none;
  color: #000080;
  font-style: normal;
}

.author-link:hover {
  text-decoration: underline;
}

.pub-date {
  color: #555;
}

/* Navigation block under articles */
.issue-nav {
  text-align: center;
  margin-top: 2rem;
}

.issue-nav a {
  display: block;
  margin: 0.5rem 0;
  text-decoration: none;
  color: #f1f1f1;
}
.issue-nav a:hover {
  text-decoration: underline;
}

/* Responsive image wrapper */
.centered-image {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin: 2em 0;
}
.centered-image img {
  max-width: 100%;
  height: auto;
}
.centered-image figcaption {
  font-size: 0.8em;
  color: #555;
  margin-top: 0.5em;
  max-width: 90%;
}

/* Table responsiveness */
.table-container {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 2rem auto;
  max-width: 100%;
  width: fit-content;
}

table {
  border-collapse: collapse;
  font-family: 'Domine', serif;
  width: 100%;
  max-width: 100%;
}

table th,
table td {
  border: 1px solid #000;
  padding: 6px 10px;
  text-align: center;
  white-space: nowrap;
  font-size: 0.95rem;
}

/* Remove bullets & center only on “index-list” sections */
.page-section.index-list > ul {
  list-style: none;
  padding: 0;
  margin: 1rem 0;
  text-align: center;
}

.page-section.index-list > ul > li {
  margin: 0.5rem 0;
  font-size: 1.25rem;
}

.page-section.index-list > ul > li > a {
  color: #333;
  text-decoration: none;
}
.page-section.index-list > ul > li > a:hover {
  text-decoration: underline;
}

p {
  margin-bottom: 1rem;
}

.highlights {
  margin: 2rem 0;
}

.highlights .tiles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.highlights .tiles li {
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 4px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.highlights .tiles li a {
  color: inherit;
  text-decoration: none;
}

.highlights .tiles .tile-image img {
  width: 100%;
  height: auto;
  display: block;
}

.highlights .tiles h2 {
  padding: 0.5rem;        /* space all around the title */
  font-weight: normal;      /* stronger than “normal” */
  font-size: 1.0rem;     /* optional: slightly larger if you like */
  margin: 0;              /* reset any default margins */
  line-height: 1.3;        /* tighten up the spacing if needed */
}

.highlights .tiles p {
  flex-grow: 1;
  margin: 0.5rem;
  font-size: 0.95rem;
  line-height: 1.4;
}

.highlights > h1 {
  margin-bottom: 0.5rem;
}

.highlights .tiles li:nth-child(n+7) {
  display: none;
}

/* —— “Load more” button styling —— */
.load-more {
  display: block;
  margin: 1rem auto;
  background-color: #333;     /* same dark blue as your nav */
  color: #fff;                   /* white text */
  border: none;                  /* remove default border */
  border-radius: 4px;            /* match card corners */
  padding: 0.6rem 1.2rem;        /* comfy click area */
  font-size: 1rem;
  font-family: 'Domine', serif;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.load-more:hover {
  background-color: #00334d;     /* a shade darker on hover */
}

.load-more:active {
  background-color: #002233;     /* even darker when clicked */
}


@media (min-width: 961px) {
  /* only on desktop */
  .issue article {
    padding: 0 2.5rem;
  }
}

/* ---- Pillar Tiles: Home Page ---- */
.tile-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  list-style: none;
  padding: 0;
  margin-top: 2rem;
}

.tile {
  aspect-ratio: 1 / 1;
  display: flex;
  flex-direction: column;
  background-color: #fff;
  border: 1px solid #ccc;
  overflow: hidden;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.tile-img {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #fff;
  padding: 0.5rem;
  overflow: hidden;
}

.tile-img img {
  width: 100%;
  height: auto;
  object-fit: contain;
  aspect-ratio: 4 / 3;
}

.tile-text {
  flex: 0 0 auto;
  padding: 1rem;
  background-color: #fff;
  text-align: left;
}

.tile-text h2 {
  font-size: 1.2rem;
  margin-top: 0;
  margin-bottom: 0.5rem;
  color: #333;
  font-family: 'Domine', serif;
}

.tile-text p {
  font-size: 0.95rem;
  line-height: 1.4;
  color: #555;
  margin-bottom: 0.75rem;
}

.tile-text a.special {
  font-weight: bold;
  color: #00509e;
  text-decoration: none;
}

.tile-text a.special:hover {
  text-decoration: underline;
}