@import url('https://fonts.googleapis.com/css2?family=Coming+Soon&display=swap');

/* ===== Reset ===== */
*, *::before, *::after { box-sizing: border-box; }
body, div, dl, dt, dd, h1, h2, h3, h4, h5, h6,
pre, form, fieldset, input, textarea, blockquote, th, td,
article, aside, figure, figcaption, footer, header, main, nav, section { margin: 0; padding: 0; }
table { border-collapse: collapse; border-spacing: 0; }
fieldset, img { border: 0; }
ul, ol, li { padding: 0; margin: 0; list-style: none; }
strong, b { font-weight: bold; }
em, i { font-style: italic; }
a img { border: none; }

/* ===== Tokens ===== */
:root {
  --orange: #c85a00;
  --text:   #5c5c5c;
  --link:   #7a7a7a;
  --border: #ccc;
  --bg:     #fff;
  --font-body:    cambria, georgia, serif;
  --font-display: 'Coming Soon', cursive;
}

/* ===== Base ===== */
body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
}

a         { color: var(--link); }
a:link    { text-decoration: underline; }
a:hover   { text-decoration: none; }

p { margin-bottom: 1em; }

img { max-width: 100%; height: auto; display: block; }

/* ===== Layout ===== */
#whitewrap { display: block; width: 100%; }

#wrapper {
  background: var(--bg);
  margin: 0 auto;
  max-width: 1000px;
  padding: 0 1rem;
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 1rem;
  align-items: start;
}

#columns-container,
#container,
#bottom-container,
#footer,
#columns-clear {
  grid-column: 1 / -1;
}

/* ===== Header ===== */
#header {
  grid-column: 1;
  grid-row: 1;
  padding: 0.25rem 0 0;
  text-align: left;
  z-index: 1;
}

.header-link-top { display: inline-block; margin: 0 0 0.35rem; }

.header-link-image-inside {
  display: inline-block;
  margin-left: 0;
}
.header-link-image-inside img { max-width: 300px; height: auto; }

/* ===== Navigation ===== */
#navigation {
  grid-column: 1 / -1;
  grid-row: 1;
  display: flex;
  align-items: flex-end;
  min-height: 6.2rem;
  padding: 0.25rem 0;
  padding-left: 7.5rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 0.5rem;
}

ul.navigation {
  display: flex;
  justify-content: flex-end;
  margin-left: auto;
  gap: 0;
  list-style: none;
}

ul.navigation li a {
  display: block;
  padding: 0.5rem 0.75rem;
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--text);
  text-decoration: none;
}

ul.navigation li a:hover { text-decoration: underline; }

ul.navigation li.current_page_item a {
  font-weight: bold;
  color: var(--orange);
}

/* ===== Two-column layout ===== */
#columns-container {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
  padding: 1rem 0;
}

.leafs-column-1 { flex: 2; min-width: 0; }
.leafs-column-2 { flex: 1; min-width: 0; }

/* Single-column pages */
#container { padding: 1rem 0; }

/* ===== Content blocks ===== */
.headway-leaf        { margin-bottom: 1rem; }
.headway-leaf-inside { padding: 0.25rem; }
.headway-leaf-inside > :last-child { margin-bottom: 0; }

.leaf-top {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--orange);
  padding-bottom: 0.4rem;
  margin-bottom: 0.75rem;
  border-bottom: 1px solid var(--border);
}

/* ===== Page / post titles ===== */
.page-title,
.entry-title,
.entry-title a {
  display: block;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: normal;
  color: var(--orange);
  text-decoration: none;
  margin-bottom: 1rem;
  line-height: 1.3;
}
.entry-title a:hover { text-decoration: none; }

/* ===== Entry content ===== */
.entry-content {
  font-family: var(--font-body);
  font-size: 0.9rem;
  line-height: 1.7;
  color: var(--text);
}

.entry-content::after {
  content: "";
  display: block;
  clear: both;
}

.entry-content p  { margin-bottom: 1em; }
.entry-content a  { color: var(--link); }
.entry-meta {
  margin-bottom: 1rem;
  font-size: 0.85rem;
  color: #666;
}

.entry-content h1 { font-size: 1.5rem;   color: #000;    margin: 0.75rem 0; font-family: var(--font-body); font-weight: normal; }
.entry-content h2 { font-size: 1.375rem; color: #444;    margin: 0.75rem 0; font-family: var(--font-body); font-weight: normal; }
.entry-content h3 { font-size: 1.125rem; color: #7a7a7a; margin: 0.5rem 0;  font-family: var(--font-body); font-weight: normal; }
.entry-content h4 { font-size: 0.95rem;  color: #7a7a7a; margin: 0.5rem 0;  font-family: var(--font-body); font-weight: normal; }

.entry-content ul      { list-style: disc;    padding-left: 2rem; margin: 1rem 0; }
.entry-content ul li   { list-style: disc;    margin-bottom: 0.25rem; }
.entry-content ol      { list-style: decimal; padding-left: 2rem; margin: 1rem 0; }
.entry-content ol li   { list-style: decimal; margin-bottom: 0.25rem; }

.video-embed {
  position: relative;
  width: 100%;
  max-width: 100%;
  aspect-ratio: 16 / 9;
}

.video-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* ===== Image alignment ===== */
.alignleft,    .align-left   { float: left;  margin: 0 0.75rem 0.75rem 0; }
.alignright,   .align-right  { float: right; margin: 0 0 0.75rem 0.75rem; }
.aligncenter                 { display: block; margin: 0 auto 1rem; }

.post-image       { border: 3px double #eaeaea; padding: 1px; }
.post-image-left  { float: left;  margin: 0 0.75rem 0.75rem 0; }
.post-image-right { float: right; margin: 0 0 0.75rem 0.75rem; }

/* ===== Home — rotator images → static grid ===== */
.rotator-images {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  gap: 0.4rem;
  margin-bottom: 1rem;
}
.rotator-images img { width: 100%; height: auto; }

/* ===== Your Letters gallery ===== */
.letters-carousel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 9rem;
  gap: 1rem;
  align-items: start;
}

.letters-carousel-stage {
  min-width: 0;
}

.letters-carousel-figure {
  margin-bottom: 0;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fbfaf5;
  padding: 0.75rem;
}

.letters-carousel-figure img {
  width: 100%;
  max-height: 46rem;
  object-fit: contain;
  margin: 0 auto;
  background: #fff;
}

.letters-carousel-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: 0.75rem;
}

.letters-carousel-button {
  border: 1px solid var(--border);
  background: #fff;
  color: var(--orange);
  font-family: var(--font-display);
  font-size: 0.95rem;
  line-height: 1;
  padding: 0.55rem 0.8rem;
  border-radius: 999px;
  cursor: pointer;
}

.letters-carousel-button:hover,
.letters-carousel-button:focus-visible {
  background: #fff3e8;
}

.letters-carousel-status {
  flex: 1;
  margin-bottom: 0;
  text-align: center;
  font-size: 0.85rem;
  color: #6a6a6a;
}

.letters-carousel-dots {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.45rem;
  margin-top: 0.85rem;
}

.letters-carousel-dot {
  width: 0.8rem;
  height: 0.8rem;
  border: 0;
  border-radius: 999px;
  background: #d9c6b7;
  cursor: pointer;
}

.letters-carousel-dot[aria-current="true"] {
  background: var(--orange);
}

.js .letters-carousel .thumbs {
  grid-template-columns: 1fr;
}

.js .letters-carousel {
  grid-template-columns: 1fr;
}

.js .letters-carousel #leaf-46-thumbs {
  display: none;
}

.js .letters-carousel .thumb {
  border: 2px solid transparent;
}

.js .letters-carousel .thumb[aria-current="true"] {
  border-color: var(--orange);
}

ul.thumbs {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  gap: 0.5rem;
  list-style: none;
}
ul.thumbs li { list-style: none; }
ul.thumbs li a { display: block; }
ul.thumbs li img { width: 100%; height: auto; }

/* legacy gallery loader hidden */
#leaf-46-loading { display: none; }

/* ===== Sidebar ===== */
.sidebar { list-style: none; padding: 0; margin: 0; }
.sidebar li.widget { margin-bottom: 1.5rem; }

.nav-below {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

/* ===== Footer ===== */
#footer {
  border-top: 1px solid var(--border);
  padding: 1rem 0;
  margin-top: 2rem;
  text-align: center;
  font-family: var(--font-body);
  font-size: 0.75rem;
  line-height: 1.5;
  color: #585858;
}
#footer a         { color: #222; text-decoration: underline; }
#footer a:hover   { text-decoration: none; }

/* ===== Utilities ===== */
.clear        { clear: both; }
.clearfix::after { content: ""; display: block; clear: both; }
.hidden       { display: none; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

body.home {
  background: #f6f0bf url("/wp-content/uploads/2011/03/background.gif") top center repeat-x;
}

body.home #wrapper {
  max-width: 1000px;
}

body.home #columns-container {
  gap: 1rem;
  align-items: flex-start;
  padding-top: 1rem;
}

body.home #column-1-page-5 {
  flex: 1.85;
}

body.home #column-2-page-5 {
  flex: 0.95;
}

body.home .headway-leaf {
  margin-bottom: 1rem;
}

body.home #leaf-21 .headway-leaf-inside,
body.home #leaf-61 .headway-leaf-inside,
body.home .homepage-partnership .headway-leaf-inside {
  background: rgba(255, 255, 255, 0.96);
  border-radius: 1.4rem;
  padding: 1.15rem 1.2rem;
}

body.home .entry-title,
body.home .entry-title a,
body.home .page-title {
  color: #20a88c;
  font-family: var(--font-body);
  font-size: clamp(1.35rem, 2.3vw, 2.2rem);
  line-height: 1.22;
}

body.home .homepage-partnership .page-title {
  font-size: clamp(1.25rem, 1.9vw, 1.9rem);
}

body.home #leaf-61 .page-title {
  margin-bottom: 0.4rem;
}

body.home .entry-content {
  font-size: 1rem;
  color: #5a5a5a;
}

body.home .homepage-partnership .entry-content {
  font-size: 0.96rem;
}

body.home .homepage-partnership {
  margin-top: 0;
}

body.home .post-image {
  border: 3px double #e5e5e5;
}

body.pageid-43 .leaf-top,
body.pageid-43 .page-title,
body.pageid-43 .entry-title,
body.pageid-43 .entry-title a {
  font-family: var(--font-body);
  color: #20a88c;
}

body.pageid-43 .leaf-top {
  font-size: clamp(1.35rem, 2.3vw, 2.2rem);
  line-height: 1.22;
}

body.pageid-43 .page-title,
body.pageid-43 .entry-title,
body.pageid-43 .entry-title a {
  font-size: clamp(1.25rem, 1.9vw, 1.9rem);
  line-height: 1.22;
}

/* ===== Responsive — tablet (<900px) ===== */
@media (max-width: 900px) {
  #wrapper {
    display: block;
  }

  #navigation {
    display: block;
    min-height: 0;
    padding-left: 0;
  }

  #columns-container {
    flex-direction: column;
  }
  .leafs-column-1,
  .leafs-column-2 {
    flex: none;
    width: 100%;
  }

  .letters-carousel {
    grid-template-columns: 1fr;
  }

  .letters-carousel .navigation {
    width: auto !important;
  }

  .js .letters-carousel .thumbs {
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
  }
}

/* ===== Responsive — mobile (<600px) ===== */
@media (max-width: 600px) {
  #wrapper { padding: 0 0.75rem; }

  .header-link-image-inside img { max-width: 200px; }

  .page-title, .entry-title { font-size: 1.25rem; }

  ul.navigation { justify-content: flex-start; flex-wrap: wrap; }
  ul.navigation li a { padding: 0.4rem 0.6rem; font-size: 0.9rem; }

  .alignleft,    .align-left,   .post-image-left,
  .alignright,   .align-right,  .post-image-right {
    float: none;
    display: block;
    margin: 0 auto 1rem;
  }

  .rotator-images { grid-template-columns: 1fr 1fr; }

  .letters-carousel-controls {
    flex-wrap: wrap;
    justify-content: center;
  }

  .letters-carousel-status {
    order: 3;
    width: 100%;
  }

  body.home #leaf-21 .headway-leaf-inside,
  body.home #leaf-61 .headway-leaf-inside,
  body.home .homepage-partnership .headway-leaf-inside {
    padding-top: 0.7rem;
  }

  body.home .entry-title,
  body.home .entry-title a,
  body.home .page-title {
    font-size: 1.45rem;
    margin-bottom: 0.65rem;
  }

  body.home #leaf-61 .page-title {
    margin-bottom: 0.35rem;
  }

  body.pageid-43 .leaf-top {
    font-size: 1.45rem;
  }

  body.pageid-43 .page-title,
  body.pageid-43 .entry-title,
  body.pageid-43 .entry-title a {
    font-size: 1.45rem;
  }
}
