/* Load after tiny-framework/style.css */

/* -----------------------------
  Global
------------------------------ */

body {
  background-color: #ecebcd;
}

#content, #primary {
  width: 100%;
}

/* -----------------------------
   Container
------------------------------ */

.site {
  width: 100%;
  max-width: 90vw;
  margin-inline: auto;
  padding-inline: 1rem;
}

@media (min-width: 783px) {
  .site {
    max-width: min(1200px, 90vw) !important;
    padding-inline: 1.5rem;
  }
}

@media (min-width: 1200px) {
  .site {
    max-width: 1200px;
    padding-inline: 2rem;
  }
}

/* -----------------------------
    NLA accents & boxes
------------------------------ */

:root {
  --nla-green: #006666;       /* darker teal */
  --nla-green-600: #004d4d;   /* spare/darker accent */
  --nla-green-50: #e8f5e9;    /* light bg */
  --nla-shadow: 0 1px 2px rgba(0,0,0,.06), 0 2px 6px rgba(0,0,0,.04);
}

/* Visually hide, keep accessible to screen readers */
.screen-reader-text {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Section header (title) */
.entry-content .title {
  background: var(--nla-green);
  color: #fff;
  border: 1px solid #000;
  border-bottom: 0;
  border-radius: 6px 6px 0 0;
  padding: .5rem .75rem;
  margin-top: 1.25rem;
  box-shadow: var(--nla-shadow);
}

.entry-content .title h2 {
  margin: 0;
  color: inherit;
}

/* Content box (body) */
.entry-content .contentbox {
  background: #fff;
  border: 1px solid #000;
  border-radius: 0 0 6px 6px;
  padding: 1rem;
  margin: 0 0 1.25rem;
  box-shadow: var(--nla-shadow);
  display: flow-root; /* contain floats so box expands to fit */
  width: 100%;
  box-sizing: border-box; /* include padding/border in width so it fits container */
}

/* Fallback clearfix for older browsers (in case flow-root isn't supported) */
.entry-content .contentbox::after {
  content: "";
  display: table;
  clear: both;
}

.entry-content .contentbox :is(p, ul):last-child {
  margin-bottom: 0;
}

.entry-content .contentbox img {
  display: block;
  max-width: 100%;
  height: auto;
  border-radius: 4px;
}

/* Profiles rendered as a list instead of div grid */
.entry-content .profiles-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem 1.5rem; /* row / column */
}

@media (min-width: 783px) {
  .entry-content .profiles-list {
    grid-template-columns: 1fr 1fr;
  }
}

.entry-content .profiles-list > li {
  margin: 0;
}

.entry-content .profiles-list img {
  display: block;
  max-width: 100%;
  height: auto;
  border-radius: 4px;
  margin-bottom: .5rem;
}

/* -----------------------------
    Two-column lesson layout
------------------------------ */

/* Stack on small screens */
@media (max-width: 782px) {
  .entry-content .content-column.one_half,
  .entry-content .content-column.one_half.last_column {
    width: 100% !important;
    float: none !important;
    padding-right: 0;
    box-sizing: border-box;
  }
}

/* Two columns on larger screens */
@media (min-width: 783px) {
  .entry-content .content-column.one_half {
    width: 50% !important;
    float: left !important;
    padding-right: 1rem;
    box-sizing: border-box;
  }
  .entry-content .content-column.one_half.last_column {
    padding-right: 0;
  }
}

/* Caption text Prevent vertical overflow */
.wp-caption .wp-caption-text {
  padding: 0;
}

/* -----------------------------
    About page: two-column profiles
------------------------------ */
.entry-content .profiles-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem 1.5rem; /* row gap / column gap */
}

@media (min-width: 783px) {
  .entry-content .profiles-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* Space out each profile card */
.entry-content .profiles-grid > div {
  margin: 0; /* reset any stray margins */
}

/* Hide external link icon */
.fa-external-link {
  display: none;
}

/* -----------------------------
    Typography overrides
------------------------------ */
/* Force standard black for H1s (layout title and content H1s) */
.page-title,
.entry-content h1 {
  color: #000;
}
