

/* Category links share the same visual style at every tree depth. */
.subcategory-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  min-width: 0;
}

/* Pages and blog reuse the storefront typography and spacing. */
.nav-band {
  z-index: 3;
}

.compact-header .hero {
  min-height: 145px;
  padding-top: 23px;
  padding-bottom: 27px;
}

.compact-header .hero h1 {
  font-size: clamp(29px, 3.5vw, 42px);
}

.nav-inner {
  flex-wrap: wrap;
}

.utility {
  z-index: 4;
}

.nav-dropdown {
  position: relative;
}

.nav-dropdown>summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  height: 60px;
  padding: 0 18px;
  color: #142618;
  font-size: 14px;
  font-weight: 750;
  cursor: pointer;
  list-style: none;
  white-space: nowrap;
}

.nav-dropdown>summary::-webkit-details-marker {
  display: none;
}

.nav-dropdown>summary span {
  font-size: 17px;
}

.nav-dropdown>summary:hover,
.nav-dropdown.active>summary,
.nav-dropdown[open]>summary {
  background: rgba(255, 255, 255, .22);
}

.nav-dropdown-panel {
  position: absolute;
  z-index: 20;
  top: 100%;
  left: 0;
  width: max-content;
  min-width: 225px;
  max-width: min(340px, 90vw);
  max-height: min(65vh, 480px);
  overflow-y: auto;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 0 0 7px 7px;
  background: #fff;
  box-shadow: 0 14px 25px rgba(20, 30, 22, .15);
}

.nav-dropdown-panel a,
.nav-inner .nav-dropdown-panel a {
  display: block;
  height: auto;
  padding: 9px 11px;
  color: var(--ink);
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.35;
  white-space: normal;
}

.nav-inner .nav-dropdown-panel a::after {
  display: none;
}

.nav-dropdown-panel a:hover,
.nav-dropdown-panel a:focus-visible,
.nav-inner .nav-dropdown-panel a:hover {
  border-radius: 4px;
  background: var(--moss);
  color: var(--pine);
}

.nav-dropdown-panel .nav-dropdown-all {
  border-bottom: 1px solid var(--line);
  margin-bottom: 6px;
  color: #367e35;
  font-weight: 750;
}

.nav-dropdown-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-dropdown-list .nav-dropdown-list {
  margin-left: 12px;
  padding-left: 8px;
  border-left: 1px solid var(--line);
}

.utility-right .nav-dropdown>summary {
  height: 40px;
  padding: 0;
  color: #f1f3ee;
  font-size: 12.5px;
  font-weight: 600;
}

.utility-right .nav-dropdown-panel {
  left: auto;
  right: 0;
}

.utility-right .menu-admin-shortcut {
  padding: 5px 9px;
  border: 1px solid rgba(225, 192, 31, .65);
  border-radius: 4px;
  color: var(--amber);
  white-space: nowrap;
}

.foot .footer-submenu {
  margin-top: 10px;
  margin-left: 8px;
  padding-left: 13px;
  border-left: 1px solid #687d61;
}

.foot .footer-submenu li a {
  font-size: 12px;
}

@media (max-width: 760px) {
  .nav-inner>.nav-dropdown>summary {
    height: 46px;
  }

  .nav-inner .nav-dropdown-panel {
    position: static;
    width: 100%;
    max-width: 100%;
    max-height: none;
    border: 0;
    box-shadow: none;
  }

  .utility-right .nav-dropdown-panel {
    right: 0;
  }
}

.cms-content {
  min-height: 340px;
  padding-top: 28px;
  padding-bottom: 85px;
}

.cms-article {
  margin-inline: auto;
  max-width: 850px;
  padding-top: 25px;
}

.cms-eyebrow {
  margin: 0 0 13px;
  color: var(--forest-dark);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.cms-article h1 {
  margin: 0 0 20px;
  font: 800 clamp(32px, 4vw, 48px)/1.14 var(--font-display);
  letter-spacing: -.035em;
  color: var(--ink);
}

.cms-lead {
  max-width: 68ch;
  margin: 0 0 27px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.7;
}

.cms-text {
  max-width: 75ch;
  color: var(--ink);
  font-size: 16px;
  line-height: 1.9;
  overflow-wrap: anywhere;
}

.cms-article>a {
  color: var(--forest-dark);
  font-weight: 700;
}

.cms-block {
  margin: 0 0 30px;
}

.cms-block-title {
  margin: 0 0 12px;
  font: 750 clamp(20px, 3vw, 26px)/1.3 var(--font-display);
  color: var(--ink);
}

.cms-block-text>p {
  margin: 0 0 18px;
}

.cms-block-text>p:last-child {
  margin-bottom: 0;
}

.cms-block-text a {
  color: var(--forest-dark);
  text-underline-offset: 3px;
}

.cms-block-text .feature-list {
  margin-top: 0;
}

.cms-block-text .spec-table {
  width: 100%;
}

.cms-block-image {
  margin: 0;
}

.cms-block-image img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 490px;
  object-fit: contain;
  object-position: left center;
  border-radius: 8px;
}

.cms-content.is-editing .cms-block {
  margin: 0;
}

.cms-content.is-editing .cms-block .inline-block-controls {
  margin: 0 0 5px;
}

.cms-content.is-editing .cms-block-title {
  margin-bottom: 6px;
}

.cms-content.is-editing .cms-block-text .feature-list {
  margin-bottom: 0;
}

.cms-content.is-editing .cms-blocks>.inline-insert {
  margin: 8px 0 14px;
}

.cms-content.is-editing .cms-block-text {
  min-height: 2em;
}

.cms-content.is-editing .cms-lead:empty,
.cms-content.is-editing .cms-block-title:empty {
  min-height: 1.5em;
}

.cms-content.is-editing .inline-history {
  max-width: 850px;
}

.cms-post-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 17px;
  margin-top: 31px;
}

.cms-post-list article {
  padding: 25px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: white;
}

.cms-post-image {
  display: block;
  margin: -25px -25px 20px;
  overflow: hidden;
  border-radius: 8px 8px 0 0;
  background: #f2f5f0;
}

.cms-post-image img {
  display: block;
  width: 100%;
  height: 230px;
  object-fit: cover;
}

.cms-post-list time {
  color: var(--muted);
  font-size: 12px;
}

.cms-post-list h2 {
  margin: 12px 0 10px;
  font-size: 21px;
  line-height: 1.3;
}

.cms-post-list h2 a {
  color: var(--ink);
  text-decoration: none;
}

.cms-post-list h2 a:hover {
  color: var(--forest-dark);
  text-decoration: underline;
}

.cms-post-list p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

@media (max-width: 760px) {
  .cms-post-list {
    grid-template-columns: 1fr;
  }
}

.setup-notice {
  margin-top: 22px;
  padding: 17px 20px;
  border: 1px solid #d7c87a;
  border-radius: 7px;
  background: #fffbe6;
  color: #39361e;
}

.setup-notice strong {
  display: block;
  margin-bottom: 7px;
}

.setup-notice pre,
.debug-error {
  margin: 0;
  font: 13px/1.65 ui-monospace, SFMono-Regular, Consolas, monospace;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.debug-error {
  max-height: 440px;
  overflow: auto;
  margin: 20px 0;
  padding: 17px;
  border: 1px solid #d6a5a5;
  border-radius: 6px;
  background: #fff4f4;
  color: #6f2222;
}

/* Blog: a wide magazine index and a calm, truly centered reading column. */
.editorial-header .hero { display: none; }
.blog-layout { width: 100%; }
.blog-intro { background: transparent; position: relative; padding: 42px 0 38px; border-bottom: 1px solid var(--line); }
.blog-intro h1 { max-width: 850px; margin: 0 0 18px; font: 800 clamp(36px, 4.6vw, 62px)/1.08 var(--font-display); letter-spacing: -.045em; }
.blog-intro > p:not(.cms-eyebrow) { max-width: 640px; margin: 0; font-size: 18px; line-height: 1.7; }
.blog-intro-note { display: inline-block; margin-top: 24px; padding-left: 14px; border-left: 3px solid var(--amber); color: var(--forest-dark); font-size: 13px; font-weight: 750; }
.blog-topics { display: flex; flex-wrap: wrap; gap: 10px; margin: 28px 0; scroll-margin-top: 24px; }
.blog-topics a { display: inline-flex; align-items: center; gap: 10px; padding: 11px 17px; border: 1px solid #d5dfd1; border-radius: 99px; color: #213a29; text-decoration: none; font-size: 13px; font-weight: 700; background: #fff; }
.blog-topics a span { font-size: 11px; opacity: .7; }
.blog-topics a:hover, .blog-topics a[aria-current] { color: #fff; background: #24452e; border-color: #24452e; }
.blog-magazine-list { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 24px; margin-top: 0; }
.cms-post-list .blog-card { padding: 0; overflow: hidden; border-radius: 14px; display: flex; flex-direction: column; }
.blog-card .cms-post-image { margin: 0; border-radius: 0; flex: 0 0 auto; }
.blog-card .cms-post-image img { width: 100%; height: 240px; transition: transform .3s ease; }
.blog-card .cms-post-image:hover img { transform: scale(1.025); }
.blog-card-copy { min-width: 0; padding: 25px; display: flex; flex-direction: column; align-items: flex-start; flex: 1; }
.blog-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; font-size: 12px; color: #52644f; margin-bottom: 12px; }
.blog-meta > span { display: inline-flex; align-items: center; gap: 5px; }
.blog-topic-label { color: #2c5132; font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .055em; text-decoration: none; }
.blog-card h2 { font: 750 25px/1.2 var(--font-display); letter-spacing: -.025em; margin: 0 0 14px; }
.blog-card .cms-post-summary { color: #425142; font-size: 15px; }
.blog-read { display: inline-flex; align-items: center; gap: 10px; margin-top: auto; padding-top: 24px; color: #24452e; font-size: 13px; font-weight: 800; text-decoration: none; }
.blog-read:hover { text-decoration: underline; text-underline-offset: 4px; }
.blog-card .inline-entry { width: 100%; margin-top: 18px; border-top: 1px solid var(--line); padding-top: 12px; }
.blog-placement-controls { width: 100%; box-sizing: border-box; margin: 14px 0 0; padding: 14px; border: 1px solid #c9d9c2; border-radius: 10px; background: #f4f8ef; color: #213a29; }
.blog-placement-controls > strong { display: block; margin-bottom: 10px; font-size: 13px; }
.blog-placement-controls > div { display: flex; flex-wrap: wrap; gap: 8px; }
.blog-placement-controls .inline-small { display: inline-flex; align-items: center; gap: 6px; white-space: normal; text-align: left; }
.blog-placement-controls button[aria-pressed="true"] { background: #24452e; border-color: #24452e; color: #fff; }
.blog-placement-controls small { display: block; margin-top: 10px; }
.blog-magazine-list > .blog-card:first-child { grid-column: span 2; display: grid; grid-template-columns: 1.05fr 1fr; background: #edf3e8; }
.blog-magazine-list > .blog-card:first-child .cms-post-image { min-height: 380px; }
.blog-magazine-list > .blog-card:first-child .cms-post-image img { height: 100%; min-height: 380px; }
.blog-magazine-list > .blog-card:first-child .blog-card-copy { padding: 34px; justify-content: center; }
.blog-magazine-list > .blog-card:first-child h2 { font-size: clamp(28px,3vw,38px); }
.blog-cover-placeholder { min-height: 240px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; color: #4b6740; background: radial-gradient(ellipse at bottom right,#bde18d66,transparent 65%),#eef3e8; text-decoration: none; }
.blog-cover-placeholder svg { width: 52px; height: 52px; stroke-width: 1; }
.blog-cover-placeholder span { text-transform: uppercase; font-size: 11px; letter-spacing: .15em; }
.blog-story .cms-article { max-width: 760px; padding-top: 32px; }
.blog-story .breadcrumbs { max-width: 760px; margin-inline: auto; }
.blog-story .cms-article h1 { font-size: clamp(36px,5vw,60px); }
.blog-story .cms-lead { max-width: none; font-size: 20px; color: #425142; line-height: 1.65; }
.blog-story .cms-text { max-width: none; font-size: 18px; line-height: 1.85; }
.blog-story .cms-block { margin-bottom: 40px; scroll-margin-top: 30px; }
.blog-story .cms-block-title { font-size: clamp(24px,3vw,31px); margin-bottom: 18px; letter-spacing: -.02em; }
.blog-story .cms-block-image img { max-height: none; object-position: center; border-radius: 12px; }
.blog-toc { padding: 18px 22px; margin: 30px 0 38px; border: 1px solid #d6e0cf; border-left: 4px solid #6dac68; border-radius: 8px; background: #f2f6ed; }
.blog-toc summary { font-size: 14px; font-weight: 750; cursor: pointer; }
.blog-toc ol { margin: 18px 0 0; padding-left: 22px; columns: 2; column-gap: 26px; }
.blog-toc li { break-inside: avoid; margin-bottom: 10px; padding-left: 3px; font-size: 14px; line-height: 1.5; }
.blog-toc a { color: #2c5132; text-underline-offset: 3px; }
.blog-story-footer { border-top: 1px solid var(--line); margin-top: 45px; padding-top: 24px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; font-size: 14px; }
.blog-story-footer a { display: inline-flex; align-items: center; gap: 10px; color: #24452e; font-weight: 750; }
.blog-story .inline-history { margin-inline: auto; }
.blog-topics a:focus-visible, .blog-read:focus-visible, .blog-toc a:focus-visible { outline: 3px solid #6dac68; outline-offset: 4px; }
@media(max-width: 1000px) {
  .blog-magazine-list { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .blog-magazine-list > .blog-card:first-child { grid-column: span 2; }
}
@media(max-width: 600px) {
  .blog-intro { padding: 26px 0; }
  .blog-intro > p:not(.cms-eyebrow) { font-size: 16px; }
  .blog-magazine-list { grid-template-columns: minmax(0,1fr); gap: 20px; }
  .blog-magazine-list > .blog-card:first-child { grid-column: auto; display: flex; }
  .blog-magazine-list > .blog-card:first-child .cms-post-image, .blog-magazine-list > .blog-card:first-child .cms-post-image img { min-height: 0; height: 250px; }
  .blog-magazine-list > .blog-card:first-child .blog-card-copy, .blog-card-copy { padding: 23px; }
  .blog-topics { gap: 8px; }
  .blog-topics a { padding: 9px 12px; }
  .blog-story .cms-article { padding-top: 22px; }
  .blog-story .cms-text { font-size: 17px; }
  .blog-story .cms-lead { font-size: 18px; }
  .blog-toc ol { columns: 1; }
}
@media(prefers-reduced-motion: reduce) { .blog-card .cms-post-image img { transition: none; } }
