/* Knowledge index and static article pages; shared header/footer remain in gray-gold.css. */
body.knowledge-page{background:#faf9f6}
.knowledge-page .site-footer{margin-top:0}
.knowledge-main{padding-bottom:42px}
.knowledge-wrap{width:86%;max-width:1120px;margin:0 auto}
.knowledge-breadcrumb{display:flex;align-items:center;flex-wrap:wrap;gap:7px 12px;padding:17px 0;font-size:14px;line-height:1.8;color:#757a72}
.knowledge-breadcrumb a:hover{color:#93733b;text-decoration:underline;text-underline-offset:4px}
.knowledge-breadcrumb>span[aria-hidden]{color:#b5b5a9}
.knowledge-list-header{display:flex;justify-content:space-between;align-items:center;gap:32px;padding:22px 0 28px}
.knowledge-eyebrow{font-size:14px;letter-spacing:.14em;line-height:1.6;color:#a38a57;margin-bottom:7px}
.knowledge-list-header h1{font:500 46px/1.5 var(--serif);margin:0;color:#282e2a;letter-spacing:.04em}
.knowledge-list-header>p{font-size:16px;line-height:2;color:#70766d}
.knowledge-filters{display:flex;flex-wrap:wrap;gap:10px;padding:0 0 24px}
.knowledge-filters a{display:inline-flex;align-items:center;justify-content:center;gap:10px;min-height:44px;padding:7px 18px;border:1px solid #deddd3;background:#fff;border-radius:999px;font-size:14px;line-height:1.7;transition:background .2s,color .2s,border-color .2s;color:#646d62}
.knowledge-filters a span{color:#9b906f;font-size:14px}
.knowledge-filters a[aria-current=page]{background:#2b312e;border-color:#2b312e;color:#fff}
.knowledge-filters a[aria-current=page] span{color:#dfc58d}
.knowledge-filters a:hover{border-color:#a38a57}
.knowledge-results-heading{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-bottom:18px}
.knowledge-results-heading h2{font:500 23px/1.6 var(--serif);color:#343b34;letter-spacing:.03em}
.knowledge-results-heading>p{font-size:14px;color:#7f857b}
.knowledge-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:26px 24px}
.knowledge-card{min-width:0;background:#fff;border:1px solid #e5e1d7;border-radius:16px;overflow:hidden;box-shadow:0 5px 18px #343b3404;transition:box-shadow .22s,border-color .22s}
.knowledge-card[hidden]{display:none!important}
.knowledge-card>a{display:flex;flex-direction:column;height:100%;border-radius:16px}
.knowledge-card-image{aspect-ratio:16/10;overflow:hidden;background:#e9e6dc}
.knowledge-card-image img{width:100%;height:100%;object-fit:cover;transition:transform .4s ease}
.knowledge-card-image-full{background:#2a231b}
.knowledge-card-image-full img{object-fit:contain}
.knowledge-card-copy{padding:20px 21px 22px;display:flex;flex-direction:column;flex:1}
.knowledge-category{font-size:14px;line-height:1.6;color:#96783d;margin-bottom:9px;letter-spacing:.04em}
.knowledge-card h2{font:500 21px/1.65 var(--serif);color:#2f3531;letter-spacing:.01em;margin:0 0 10px}
.knowledge-page .knowledge-excerpt{font-size:14px;line-height:1.9;color:#7b8076;margin:0 0 18px;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden}
.knowledge-read{align-self:flex-start;margin-top:auto;display:inline-flex;align-items:center;justify-content:center;min-height:38px;padding:6px 16px;border-radius:999px;background:#f3f0e8;color:#7f693f;font-size:14px;line-height:1.7}
.knowledge-card:hover{border-color:#c9b894;box-shadow:0 8px 24px #343b340d}
.knowledge-card:hover .knowledge-card-image img{transform:scale(1.035)}
.knowledge-card:hover .knowledge-card-image-full img{transform:none}
.knowledge-card>a:focus-visible{outline:3px solid #a38a57;outline-offset:-4px}
.knowledge-list-note{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-top:32px;padding:23px 0 0;border-top:1px solid #e0ddd3}
.knowledge-list-note p{font-size:14px;line-height:1.9}
.knowledge-button{display:inline-flex;justify-content:center;align-items:center;min-height:44px;padding:8px 20px;border:1px solid #2b312e;border-radius:999px;background:#2b312e;color:#fff;font-size:14px;line-height:1.8;text-align:center;transition:background .2s,border-color .2s}
.knowledge-button:hover{background:#414b42;border-color:#414b42}
.knowledge-button-outline{background:transparent;border-color:#c9b995;color:#8d713d}
.knowledge-button-outline:hover{background:#f1ece1;border-color:#aa9060}
.knowledge-detail-wrap{max-width:1060px}
.knowledge-article-header {
  padding: 18px 0 25px;
  margin-bottom: 26px;
  border-bottom: 1px solid #dfdfd4;
}
.knowledge-article-header h1{font:bold 25px/1.6 var(--serif);letter-spacing:2px;color:#2d342f;margin:0 0 16px;max-width:880px;text-wrap:pretty}
.knowledge-article-dates {
 display: flex;
 flex-wrap: wrap;
 gap: 5px 24px;
 margin: 0;
 font-size: 14px;
 line-height: 1.8;
 color: #697363;
}
.knowledge-article-dates > div { display: flex; align-items: baseline; gap: 8px; }
.knowledge-article-dates dd { margin: 0; }
.knowledge-article-dates time { color: #3f493d; font-variant-numeric: tabular-nums; }
.knowledge-article-dates .knowledge-article-updated,
.knowledge-article-dates .knowledge-article-updated time { color: #92552f; }
.knowledge-reading-stats {
  margin: 7px 0 0;
  color: #697363;
  font-size: 14px;
  line-height: 1.7;
}
.knowledge-article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 276px;
  column-gap: 36px;
  align-items: start;
}
.knowledge-sidebar {
  grid-column: 2;
  grid-row: 1;
  min-width: 0;
  display: grid;
  gap: 23px;
}
.knowledge-sidebar-section h2 {
  margin: 0 0 10px;
  padding: 8px 12px;
  border-radius: 7px;
  background: #eeece3;
  color: #394239;
  font: 600 16px/1.5 var(--sans);
}
.knowledge-sidebar-categories { display: flex; flex-wrap: wrap; gap: 7px; }
.knowledge-sidebar-categories a {
  display: inline-flex;
  gap: 5px;
  padding: 5px 9px;
  border: 1px solid #dfd9c8;
  border-radius: 6px;
  color: #6b614c;
  font-size: 13px;
  line-height: 1.4;
}
.knowledge-sidebar-categories a[aria-current],
.knowledge-sidebar-categories a:hover { background: #eeece3; color: #584524; }
.knowledge-sidebar-categories span { color: #77643e; }
.knowledge-sidebar-posts { list-style: none; margin: 0; padding: 0; }
.knowledge-sidebar-posts li + li { border-top: 1px solid #e6e3da; }
.knowledge-sidebar-posts a {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  align-items: start;
  gap: 10px;
  padding: 9px 0;
  color: #394239;
  font-size: 14px;
  line-height: 1.55;
}
.knowledge-sidebar-posts a:hover span { color: #826337; text-decoration: underline; }
.knowledge-sidebar-posts img { width: 76px; height: 54px; object-fit: cover; border-radius: 5px; }
.knowledge-sidebar-posts .knowledge-sidebar-cover { object-fit: contain; background: #2a231b; }
.knowledge-sidebar-posts time { display: block; margin-top: 3px; color: #697363; font-size: 12px; }
.knowledge-toc {
  position: fixed;
  top: clamp(116px, 22vh, 200px);
  right: 0;
  z-index: 96;
  width: 0;
  color: #394239;
}
.knowledge-toc[open] { width: min(274px, calc(100vw - 52px)); }
.knowledge-toc summary {
  position: absolute;
  top: 0;
  right: 100%;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px;
  writing-mode: vertical-rl;
  white-space: nowrap;
  border-radius: 7px 0 0 7px;
  background: #313b32;
  color: #fff;
  font: 500 14px/1.4 var(--sans);
  cursor: pointer;
  list-style: none;
}
.knowledge-toc summary::-webkit-details-marker { display: none; }
.knowledge-toc summary .fa {
  display: block;
  flex: none;
  width: 16px;
  height: 16px;
  color: #e8d5a5;
}
.knowledge-toc summary .fa svg {
  display: block;
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.knowledge-toc:not([open]) summary .fa-angle-double-right,
.knowledge-toc[open] summary .fa-angle-double-left { display: none; }
.knowledge-toc summary:focus-visible,
.knowledge-toc a:focus-visible { outline: 2px solid #ac915b; outline-offset: -3px; }
.knowledge-toc nav {
  max-height: min(48dvh, 420px);
  overflow: auto;
  overscroll-behavior: contain;
  padding: 10px;
  border: 1px solid #ded9c9;
  border-radius: 0 0 0 7px;
  background: #faf9f6;
  box-shadow: 0 8px 26px #252b2226;
}
.knowledge-toc ol { margin: 0; padding: 0; list-style: none; counter-reset: article-outline; }
.knowledge-toc li { counter-increment: article-outline; }
.knowledge-toc a {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 8px;
  padding: 7px 8px;
  border-radius: 4px;
  color: #394239;
  font-size: 14px;
  line-height: 1.6;
  overflow-wrap: anywhere;
}
.knowledge-toc a::before { content: counter(article-outline, decimal-leading-zero); color: #826337; }
.knowledge-toc-subheading { margin-left: 12px; }
.knowledge-toc a:hover { background: #eeece3; }
.knowledge-article-content { grid-column: 1; grid-row: 1; min-width: 0; width: 100%; }
.knowledge-closing { margin-top: 28px; background: #f0eee6; padding: 24px; border-radius: 14px; }
.knowledge-closing h2 { font: 500 23px/1.7 var(--serif); color: #2e3630; letter-spacing: .015em; margin: 0 0 13px; }
.knowledge-closing p { font-size: 15px; line-height: 2.05; color: #697363; letter-spacing: .01em; }
.knowledge-actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:18px}
.knowledge-related{margin-top:36px;padding-top:28px;border-top:1px solid #dfdfd4}
.knowledge-related .knowledge-grid{grid-template-columns:repeat(2,minmax(0,1fr));max-width:820px}
.knowledge-related .knowledge-card-image{aspect-ratio:1.9/1}
@media(max-width:1000px){
 .knowledge-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
 .knowledge-wrap{width:88%}
 .knowledge-list-header{gap:24px}
 .knowledge-list-header>p{font-size:15px}
 .knowledge-article-layout{grid-template-columns:minmax(0,1fr) 200px;column-gap:28px}
}
@media(max-width:760px){
 .knowledge-wrap{width:88%}
 .knowledge-main{padding-bottom:28px}
 .knowledge-breadcrumb{padding:13px 0;font-size:14px;gap:5px 9px}
 .knowledge-list-header{display:block;padding:14px 0 21px}
 .knowledge-eyebrow{font-size:14px;margin-bottom:7px}
 .knowledge-list-header h1{font-size:32px}
 .knowledge-list-header>p{margin-top:11px;font-size:14px;line-height:1.95}
 .knowledge-filters{gap:8px;padding-bottom:20px}
 .knowledge-filters a{padding:7px 13px;gap:8px}
 .knowledge-results-heading{margin-bottom:14px;gap:12px}
 .knowledge-results-heading h2{font-size:21px}
 .knowledge-grid{gap:19px}
 .knowledge-card-copy{padding:17px 18px 19px}
 .knowledge-card h2{font-size:20px}
 .knowledge-list-note{align-items:flex-start;flex-direction:column;gap:12px;margin-top:25px;padding-top:19px}
 .knowledge-list-note .knowledge-button{align-self:flex-start}
 .knowledge-article-header{padding:13px 0 20px;margin-bottom:20px}
 .knowledge-article-header h1{font-size:27px;font-weight:500;line-height:1.65;letter-spacing:.015em;margin-bottom:13px}
 .knowledge-article-layout { display: flex; flex-direction: column; gap: 28px; }
 .knowledge-sidebar { width: 100%; order: 1; }
 .knowledge-toc { top: auto; bottom: calc(67px + env(safe-area-inset-bottom, 0px)); right: 9px; }
 .knowledge-toc[open] { width: min(300px, calc(100vw - 18px)); }
 .knowledge-toc summary {
   top: auto;
   right: 0;
   bottom: 100%;
   writing-mode: horizontal-tb;
   border-radius: 7px;
   padding: 10px 12px;
 }
 .knowledge-toc[open] summary { border-radius: 7px 7px 0 0; }
 .knowledge-toc nav { border-radius: 7px 0 7px 7px; }
 .knowledge-closing{padding:20px 18px}
 .knowledge-closing h2{font-size:22px}
 .knowledge-closing p{line-height:1.95}
 .knowledge-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
 .knowledge-actions .knowledge-button{padding:8px 10px}
 .knowledge-related{margin-top:29px;padding-top:23px}
 .knowledge-related .knowledge-results-heading>.knowledge-button{padding:6px 14px}
}
@media(max-width:600px){.knowledge-grid,.knowledge-related .knowledge-grid{grid-template-columns:1fr}.knowledge-card-image{aspect-ratio:16/10}.knowledge-related .knowledge-card-image{aspect-ratio:1.9/1}}
@media(prefers-reduced-motion:reduce){.knowledge-card,.knowledge-card-image img,.knowledge-button,.knowledge-filters a{transition:none}}

/* COMPACT_TOC_NO_SCROLL */
.knowledge-toc{top:110px}
.knowledge-toc[open]{width:min(310px,calc(100vw - 52px))}
.knowledge-toc nav{max-height:none;overflow:visible;overscroll-behavior:auto;padding:7px}
.knowledge-toc a{font-size:13px;line-height:1.35;padding:3px 5px;gap:6px}
.knowledge-toc-subheading{margin-left:9px}
@media(max-height:720px) and (min-width:761px){
 .knowledge-toc{top:92px}
 .knowledge-toc a{font-size:12px;line-height:1.3;padding:2px 5px}
}
@media(max-width:760px){
 .knowledge-toc{top:auto}
 .knowledge-toc[open]{width:min(340px,calc(100vw - 18px))}
 .knowledge-toc a{font-size:12.5px;line-height:1.35;padding:2.5px 5px}
}
@media(max-width:760px) and (max-height:700px){
 .knowledge-toc[open]{width:calc(100vw - 18px)}
 .knowledge-toc ol{columns:2;column-gap:8px}
 .knowledge-toc li{break-inside:avoid}
 .knowledge-toc-subheading{margin-left:4px}
 .knowledge-toc a{font-size:12px;line-height:1.3;padding:2px 5px;gap:4px}
}

/* TOC_CENTER_AND_HIERARCHY */
.knowledge-toc li{counter-increment:none}
.knowledge-toc a{display:block}
.knowledge-toc a::before{content:none}
.knowledge-toc .knowledge-toc-subheading{margin-left:0}
.knowledge-toc .knowledge-toc-subheading>a::before{content:"- ";white-space:pre;color:inherit}
@media(min-width:761px){
 .knowledge-toc{top:50%;transform:translateY(-50%)}
 .knowledge-toc:not([open]) summary{transform:translateY(-50%)}
}
