/* SmartFox subpages: the approved homepage palette and typography.
   Loaded only by the project subpage base; homepage content is unaffected. */
.sf-subpage {
  --sf-page-green: #172c23;
  --sf-page-cream: #f5f3ec;
  --sf-page-line: rgba(23, 44, 35, .18);
  --text-muted: #526257;
  background: var(--sf-page-cream);
  color: var(--sf-page-green);
}
.sf-subpage #content { min-width: 0; }
.sf-subpage h1, .sf-subpage h2, .sf-subpage h3 {
  color: inherit;
  font-weight: 500;
  letter-spacing: -.035em;
  line-height: 1.2;
  overflow-wrap: anywhere;
}
.sf-subpage h1 { font-size: clamp(2rem, 4vw, 3.25rem); }
.sf-subpage h2 { font-size: clamp(1.75rem, 2.8vw, 2.5rem); }
.sf-subpage h3 { font-size: clamp(1.375rem, 2vw, 1.75rem); }
.sf-subpage p, .sf-subpage li { line-height: 1.75; }
.sf-subpage a { color: inherit; text-underline-offset: 5px; }
.sf-subpage a:hover { color: inherit; }
.sf-subpage a:focus-visible, .sf-subpage summary:focus-visible { outline: 2px solid currentColor; outline-offset: 5px; }
.sf-subpage .sf-subhero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  background: var(--sf-page-green);
  color: var(--sf-page-cream);
}
.sf-subpage .sf-subhero--text { grid-template-columns: minmax(0, 1fr); }
.sf-subpage .sf-subhero-copy {
  min-width: 0;
  align-self: center;
  padding: 48px max(32px, calc((100vw - 1140px) / 2));
  padding-right: clamp(32px, 4vw, 64px);
}
.sf-subpage .sf-subhero h1 { margin: 0; max-width: 23ch; }
.sf-subpage .sf-subhero-eyebrow { font-size: .72rem; font-weight: 600; letter-spacing: .12em; line-height: 1.6; margin: 0 0 20px; }
.sf-subpage .sf-subhero-intro { max-width: 52ch; margin: 24px 0 0; font-size: 1.125rem; color: #dce2d8; line-height: 1.7; }
.sf-subpage .sf-subhero-image { display: block; width: 100%; height: 100%; min-height: 320px; max-height: 420px; object-fit: cover; object-position: center; }
.sf-subpage .sf-content-section { padding-top: clamp(48px, 6vw, 88px); padding-bottom: clamp(64px, 7vw, 104px); }
.sf-subpage .sf-reading { max-width: 824px; }
.sf-subpage .lead, .sf-subpage .sf-perex { font-size: 1.125rem; line-height: 1.75; max-width: 65ch; }
.sf-subpage .cms-content { max-width: 800px; font-size: 1.0625rem; line-height: 1.8; overflow-wrap: anywhere; }
.sf-subpage .cms-content h2 { margin: 48px 0 20px; font-size: clamp(1.75rem, 2.8vw, 2.5rem); }
.sf-subpage .cms-content h3 { margin: 32px 0 16px; font-size: clamp(1.375rem, 2vw, 1.75rem); }
.sf-subpage .cms-content p { line-height: 1.8; margin-bottom: 24px; }
.sf-subpage .cms-content ul, .sf-subpage .cms-content ol { padding-left: 1.5em; }
.sf-subpage .cms-content a { color: var(--sf-page-green); text-decoration: underline; }
.sf-subpage .cms-content img { max-width: 100%; height: auto; border-radius: 0; box-shadow: none; }
.sf-subpage .cms-content figure { max-width: 100%; margin: 32px 0; }
.sf-subpage .cms-content figcaption { font-size: .8125rem; color: #526257; margin-top: 12px; }
.sf-subpage .cms-content blockquote { border-left: 2px solid var(--sf-page-green); background: transparent; padding: 8px 0 8px 24px; margin: 32px 0; font-size: 1.25rem; }
.sf-subpage .cms-content table { display: block; max-width: 100%; overflow-x: auto; border-collapse: collapse; border: 0; }
.sf-subpage .cms-content th, .sf-subpage .cms-content td { background: transparent; border: 0; border-bottom: 1px solid var(--sf-page-line); padding: 16px; text-align: left; }
.sf-subpage .breadcrumbs { padding-top: 24px; padding-bottom: 0; font-size: .8125rem; }
.sf-subpage .breadcrumbs ol { flex-wrap: wrap; gap: 8px; }
.sf-subpage .sf-topic-breadcrumb { margin-bottom: 32px; font-size: .8125rem; }
.sf-subpage .sf-meta { font-size: .8125rem; color: #526257; margin: 0 0 16px; }
.sf-subpage .sf-text-link { display: inline-block; padding: 8px 0; font-weight: 600; text-decoration: none; }
.sf-subpage .sf-text-link:hover { text-decoration: underline; }
.sf-subpage .sf-editorial-list { display: block; }
.sf-subpage .sf-editorial-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: clamp(24px, 4vw, 64px); padding: 40px 0; border-top: 1px solid var(--sf-page-line); }
.sf-subpage .sf-editorial-row > div { min-width: 0; max-width: 760px; }
.sf-subpage .sf-editorial-row--text { grid-template-columns: minmax(0, 1fr); }
.sf-subpage .sf-editorial-row img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 0; }
.sf-subpage .sf-editorial-row h2, .sf-subpage .sf-editorial-row h3 { margin: 0 0 20px; }
.sf-subpage .sf-editorial-row h2 a, .sf-subpage .sf-editorial-row h3 a { text-decoration: none; }
.sf-subpage .sf-editorial-row h2 a:hover, .sf-subpage .sf-editorial-row h3 a:hover { text-decoration: underline; }
.sf-subpage .sf-editorial-row p { margin-bottom: 20px; }
.sf-subpage .sf-editorial-row .sf-meta { margin-bottom: 16px; }
.sf-subpage .sf-editorial-feature { padding: clamp(40px, 5vw, 72px) 0; }
.sf-subpage .sf-editorial-feature h2, .sf-subpage .sf-editorial-feature h3 { font-size: clamp(2rem, 3.5vw, 3.25rem); max-width: 25ch; }
.sf-subpage .sf-knowledge-section + .sf-knowledge-section { margin-top: 64px; }
.sf-subpage .sf-knowledge-section > h2 { margin-bottom: 24px; }
.sf-subpage .sf-article-cover { margin: 40px 0; }
.sf-subpage .sf-article-cover img { display: block; width: 100%; height: auto; }
.sf-subpage .faq { display: block; margin-top: 24px; }
.sf-subpage .faq-item { border: 0; border-top: 1px solid var(--sf-page-line); border-radius: 0; padding: 24px 0; background: transparent; }
.sf-subpage .faq-q { font-size: 1.25rem; font-weight: 500; line-height: 1.5; padding-right: 32px; position: relative; }
.sf-subpage .faq-q::after { position: absolute; right: 0; top: 0; float: none; }
.sf-subpage .faq-a { margin-top: 24px; max-width: 70ch; }
.sf-subpage .sf-service-faq { padding: 0 0 80px; }
.sf-subpage .gallery-grid, .sf-subpage .lb-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.sf-subpage .gallery-card, .sf-subpage .lb-thumb { border: 0; border-radius: 0; background: transparent; box-shadow: none; }
.sf-subpage .gallery-card img, .sf-subpage .lb-thumb img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 0; }
.sf-subpage .gallery-card h3 { margin: 16px 0 8px; font-size: 1.375rem; }
.sf-subpage .gallery-cats { gap: 16px 24px; }
.sf-subpage .gallery-cats a, .sf-subpage .gallery-cats .tag { padding: 8px 0; border: 0; border-radius: 0; background: transparent; color: inherit; }
.sf-subpage .gallery-cats .is-active { text-decoration: underline; text-underline-offset: 6px; }
.sf-subpage .sf-contacts .sf-contact-direct { display: inline-block; padding: 8px 0; font-size: clamp(1.375rem, 3vw, 2rem); }
.sf-subpage .sf-contacts .cms-content { margin-top: 48px; }
.sf-subpage .contact-form input, .sf-subpage .contact-form textarea, .sf-subpage .contact-form select { max-width: 100%; border-radius: 0; background: transparent; color: var(--sf-page-green); border: 1px solid var(--sf-page-line); box-shadow: none; }
.sf-subpage .contact-form input:focus, .sf-subpage .contact-form textarea:focus { outline: 2px solid var(--sf-page-green); outline-offset: 2px; box-shadow: none; }
.sf-subpage .contact-form button, .sf-subpage .btn-project { color: var(--sf-page-green); background: transparent; border: 0; border-radius: 0; box-shadow: none; font-weight: 600; padding: 12px 0; text-decoration: underline; text-underline-offset: 6px; }
.sf-subpage #site-footer { background: #294234; color: var(--sf-page-cream); border-top: 1px solid rgba(245, 243, 236, .18); padding: 32px 0; }
.sf-subpage #open_preferences_center { background-color: var(--sf-page-green); color: var(--sf-page-cream); outline: 1px solid rgba(245, 243, 236, .6); }
.sf-subpage #open_preferences_center:hover { background-color: #294234; color: var(--sf-page-cream); }
/* Archive pagination and sequential reading, without card UI. */
.sf-subpage .sf-pagination { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 16px 32px; margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--sf-page-line); }
.sf-subpage .sf-pagination a, .sf-subpage .sf-pagination-current, .sf-subpage .sf-pagination-ellipsis { display: inline-block; padding: 10px 8px; text-decoration: none; }
.sf-subpage .sf-pagination a:hover { text-decoration: underline; }
.sf-subpage .sf-pagination-pages { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px; }
.sf-subpage .sf-pagination-current { font-weight: 600; border-bottom: 2px solid var(--sf-page-green); }
.sf-subpage .sf-topic-reading { margin-top: clamp(56px, 6vw, 88px); }
.sf-subpage .sf-topic-reading > h2 { margin: 0 0 32px; font-size: .75rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; }
.sf-subpage .sf-topic-reading-list { margin: 0; padding: 0; list-style: none; }
.sf-subpage .sf-topic-reading-list a { display: grid; grid-template-columns: 40px minmax(0, 1fr) 24px; align-items: start; gap: 24px; padding: 24px 0; border-top: 1px solid var(--sf-page-line); text-decoration: none; }
.sf-subpage .sf-topic-reading-number { font-size: 1.125rem; }
.sf-subpage .sf-topic-reading-name { display: block; font-size: 1.375rem; font-weight: 500; line-height: 1.4; overflow-wrap: anywhere; }
.sf-subpage .sf-topic-reading-list .sf-meta { display: block; margin: 8px 0 0; }
.sf-subpage .sf-topic-reading-list a:hover .sf-topic-reading-name { text-decoration: underline; }
.sf-subpage .sf-topic-navigation { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; margin-top: 48px; padding-top: 32px; border-top: 1px solid var(--sf-page-line); }
.sf-subpage .sf-topic-navigation a { display: flex; flex-direction: column; gap: 12px; text-decoration: none; font-size: 1.125rem; line-height: 1.5; overflow-wrap: anywhere; }
.sf-subpage .sf-topic-navigation a:hover > span:last-child { text-decoration: underline; }
.sf-subpage .sf-topic-navigation .sf-meta { margin: 0; text-transform: uppercase; font-size: .625rem; letter-spacing: .1em; }
.sf-subpage .sf-topic-next { grid-column: 2; text-align: right; }
@media (max-width: 575.98px) {
  .sf-subpage .sf-pagination { gap: 12px 16px; }
  .sf-subpage .sf-pagination-pages { order: -1; flex-basis: 100%; }
  .sf-subpage .sf-topic-reading-list a { grid-template-columns: 24px minmax(0, 1fr) 16px; gap: 16px; }
  .sf-subpage .sf-topic-reading-name { font-size: 1.125rem; }
  .sf-subpage .sf-topic-navigation { grid-template-columns: minmax(0, 1fr); }
  .sf-subpage .sf-topic-next { grid-column: 1; text-align: left; }
}
@media (max-width: 991.98px) {
  .sf-subpage .sf-subhero { grid-template-columns: minmax(0, 1fr); }
  .sf-subpage .sf-subhero-copy { padding: 40px max(24px, calc((100vw - 720px) / 2)); }
  .sf-subpage .sf-subhero-image { height: 240px; min-height: 0; max-height: none; }
  .sf-subpage .sf-editorial-row { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 24px; }
  .sf-subpage .sf-editorial-row--text { grid-template-columns: minmax(0, 1fr); }
  .sf-subpage .gallery-grid, .sf-subpage .lb-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 575.98px) {
  .sf-subpage .sf-subhero-copy { padding: 32px 24px; }
  .sf-subpage .sf-subhero-image { height: 190px; }
  .sf-subpage .sf-subhero-intro { font-size: 1rem; }
  .sf-subpage .sf-editorial-row { grid-template-columns: minmax(0, 1fr); padding: 32px 0; }
  .sf-subpage .sf-editorial-row img { aspect-ratio: 16 / 9; }
  .sf-subpage .gallery-grid, .sf-subpage .lb-grid { gap: 16px; }
  .sf-subpage .gallery-card h3 { font-size: 1.125rem; }
  .sf-subpage .faq-q { font-size: 1.125rem; }
}
/* Editorial compass directory: scoped to its index. */
.sf-subpage .sf-knowledge-directory { margin-bottom: clamp(72px, 8vw, 120px); }
.sf-subpage .sf-knowledge-directory h2 { margin-bottom: 32px; }
.sf-subpage .sf-knowledge-directory ol { list-style: none; padding: 0; margin: 0; }
.sf-subpage .sf-knowledge-directory li { border-top: 1px solid var(--sf-page-line); }
.sf-subpage .sf-knowledge-directory li:last-child { border-bottom: 1px solid var(--sf-page-line); }
.sf-subpage .sf-knowledge-directory li a { display: grid; grid-template-columns: 48px minmax(0, 1fr) auto 24px; align-items: center; gap: 24px; padding: 22px 0; text-decoration: none; }
.sf-subpage .sf-knowledge-directory-name { font-size: clamp(1.375rem, 2.5vw, 2rem); line-height: 1.25; overflow-wrap: anywhere; }
.sf-subpage .sf-knowledge-directory li a:hover .sf-knowledge-directory-name { text-decoration: underline; }
.sf-subpage .sf-knowledge-number { color: var(--text-muted); font-variant-numeric: tabular-nums; }
.sf-subpage .sf-knowledge-index .sf-knowledge-section { scroll-margin-top: 100px; }
.sf-subpage .sf-knowledge-index .sf-knowledge-section + .sf-knowledge-section { margin-top: clamp(88px, 10vw, 144px); }
.sf-subpage .sf-knowledge-section-heading { display: grid; grid-template-columns: 100px minmax(0, 1fr); gap: 32px; padding-bottom: 40px; }
.sf-subpage .sf-knowledge-section-heading > .sf-knowledge-number { font-size: clamp(2.5rem, 5vw, 4rem); line-height: 1; }
.sf-subpage .sf-knowledge-section-heading h2 { font-size: clamp(2rem, 4vw, 3.25rem); margin: 0 0 24px; }
.sf-subpage .sf-knowledge-section-heading h2 a { text-decoration: none; }
.sf-subpage .sf-knowledge-section-heading h2 a:hover { text-decoration: underline; }
.sf-subpage .sf-knowledge-section-heading p:last-child { margin-bottom: 0; }
@media (max-width: 575.98px) {
  .sf-subpage .sf-knowledge-directory li a { grid-template-columns: 32px minmax(0, 1fr) 20px; gap: 12px; }
  .sf-subpage .sf-knowledge-directory li a > .sf-meta { grid-column: 2; grid-row: 2; }
  .sf-subpage .sf-knowledge-directory li a > span:last-child { grid-column: 3; grid-row: 1; }
  .sf-subpage .sf-knowledge-section-heading { grid-template-columns: minmax(0, 1fr); gap: 24px; padding-bottom: 32px; }
}
@media (max-width: 359.98px) {
  .sf-subpage .gallery-grid, .sf-subpage .lb-grid { grid-template-columns: minmax(0, 1fr); }
}
