:root {
  --jds-ink: #2e241c;
  --jds-muted: #6f685f;
  --jds-green: #334b2c;
  --jds-green-dark: #243820;
  --jds-copper: #b96532;
  --jds-sand: #f6f0e8;
  --jds-sand-2: #ece1d3;
  --jds-line: #ded8d0;
  --jds-reading: 740px;
  --jds-max: 1200px;
}

.jds-editorial {
  color: var(--jds-ink);
  background: #fff;
  font-family: "Outfit", sans-serif;
  font-size: 16px;
  line-height: 1.75;
  text-rendering: optimizeLegibility;
}

.jds-editorial img { display: block; max-width: 100%; }
.jds-editorial h1,
.jds-editorial h2,
.jds-editorial h3 {
  color: var(--jds-ink);
  font-family: "Cormorant Garamond", Georgia, serif;
}

.jds-guide-hero {
  min-height: 410px;
  position: relative;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: #45483c;
}

.jds-guide-hero > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.jds-guide-hero__shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(22,24,18,.76), rgba(22,24,18,.42) 44%, rgba(22,24,18,.04) 72%);
}

.jds-guide-hero__inner {
  position: relative;
  z-index: 1;
  width: min(var(--jds-max), calc(100% - 48px));
  margin: 0 auto;
  padding: 70px 0 64px;
}

.jds-guide-hero h1 {
  max-width: 820px;
  margin: 0 0 15px;
  color: #fff;
  font-size: clamp(50px, 5.7vw, 74px);
  font-weight: 500;
  letter-spacing: -.025em;
  line-height: .96;
}

.jds-guide-hero p {
  max-width: 650px;
  margin: 0;
  color: rgba(255,255,255,.9);
  font-size: 18px;
  line-height: 1.6;
}

.jds-guide-layout,
.jds-post-layout {
  width: min(var(--jds-max), calc(100% - 48px));
  margin: 0 auto;
  display: grid;
  justify-content: center;
  align-items: start;
}

.jds-guide-layout {
  grid-template-columns: 190px minmax(0, var(--jds-reading));
  gap: 52px;
  padding: 64px 0 96px;
}

.jds-post-layout {
  grid-template-columns: 150px minmax(0, var(--jds-reading)) 90px;
  gap: 42px;
  padding: 48px 0 96px;
}

.jds-toc,
.jds-share-rail {
  position: sticky;
  top: 94px;
  align-self: start;
  padding-top: 8px;
}

.jds-rail-title {
  margin-bottom: 16px;
  color: var(--jds-copper);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .15em;
  text-transform: uppercase;
}

.jds-rail-title::after {
  content: "";
  display: block;
  width: 30px;
  height: 1px;
  margin-top: 9px;
  background: var(--jds-copper);
}

.jds-toc-list {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: jds-toc;
}

.jds-toc-list li { margin: 0 0 13px; counter-increment: jds-toc; }
.jds-toc-list a {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 5px;
  color: var(--jds-muted);
  font-size: 12px;
  line-height: 1.4;
  text-decoration: none;
}
.jds-toc-list a::before { content: counter(jds-toc) "."; color: var(--jds-ink); }
.jds-toc-list a:hover,
.jds-toc-list a.is-active { color: var(--jds-copper); font-weight: 600; }

.jds-reading-flow { min-width: 0; }
.jds-reading-flow > *:first-child,
.jds-editor-content > *:first-child,
.jds-post-content > *:first-child { margin-top: 0; }

.jds-reading-flow h2 {
  margin: 66px 0 14px;
  font-size: clamp(36px, 4.2vw, 48px);
  font-weight: 600;
  letter-spacing: -.015em;
  line-height: 1.04;
}

.jds-reading-flow h3 {
  margin: 35px 0 10px;
  font-size: 29px;
  line-height: 1.12;
}

.jds-reading-flow p,
.jds-reading-flow li { color: var(--jds-muted); }
.jds-reading-flow p { margin: 0 0 23px; }
.jds-reading-flow ul,
.jds-reading-flow ol { margin: 0 0 26px; padding-left: 24px; }
.jds-reading-flow li { margin-bottom: 8px; }
.jds-reading-flow a { color: var(--jds-copper); text-underline-offset: 3px; }
.jds-reading-flow blockquote {
  margin: 42px 0;
  padding: 4px 0 4px 25px;
  border-left: 2px solid var(--jds-copper);
  color: var(--jds-ink);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 25px;
  line-height: 1.45;
}
.jds-reading-flow figure { margin: 45px 0; }
.jds-reading-flow figcaption {
  padding-top: 8px;
  color: #8b837a;
  font-size: 11px;
}
.jds-reading-flow img { width: 100%; height: auto; }
.jds-lead,
.jds-post-content > p:first-child {
  color: var(--jds-ink) !important;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 23px;
  line-height: 1.55;
}

.jds-numbered-list { margin: 34px 0 54px; }
.jds-numbered-item {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 18px;
  padding: 21px 0;
  border-top: 1px solid var(--jds-line);
}
.jds-numbered-item:last-child { border-bottom: 1px solid var(--jds-line); }
.jds-numbered-item > span {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--jds-copper);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
}
.jds-numbered-item h3 { margin: 0 0 4px; font-size: 25px; }
.jds-numbered-item p { margin: 0; font-size: 14px; }

.jds-wide-media { margin: 54px 0 !important; }
.jds-wide-media img { height: 390px; object-fit: cover; }

.jds-detail-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 28px;
  margin-top: 20px;
  border-top: 1px solid var(--jds-line);
}
.jds-detail-list article { padding: 24px 0; border-bottom: 1px solid var(--jds-line); }
.jds-detail-list h3 { margin: 0 0 7px; font-size: 24px; }
.jds-detail-list p { margin: 0; font-size: 14px; }

.jds-soft-band {
  margin: 58px -34px;
  padding: 38px 34px;
  background: var(--jds-sand);
}
.jds-soft-band h2 { margin-top: 0; }
.jds-checklist { margin: 23px 0 0 !important; padding: 0 !important; list-style: none; }
.jds-checklist li { position: relative; padding-left: 30px; }
.jds-checklist li::before {
  content: "✓";
  position: absolute;
  top: 4px;
  left: 0;
  width: 18px;
  height: 18px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--jds-green);
  color: #fff;
  font-size: 11px;
  line-height: 1;
}
.jds-local-tip {
  margin-top: 28px;
  padding: 22px 24px;
  border: 1px solid var(--jds-sand-2);
  background: rgba(255,255,255,.72);
  color: var(--jds-muted);
}
.jds-local-tip strong {
  display: block;
  color: var(--jds-copper);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 23px;
}

.jds-faq-list { border-top: 1px solid var(--jds-line); }
.jds-faq-item { border-bottom: 1px solid var(--jds-line); }
.jds-faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 17px 0;
  border: 0;
  background: transparent;
  color: var(--jds-ink);
  text-align: left;
  font-size: 15px;
  font-weight: 500;
}
.jds-faq-question svg {
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  fill: none;
  stroke: var(--jds-copper);
  stroke-width: 1.5;
  transition: transform .2s ease;
}
.jds-faq-answer { display: none; padding: 0 34px 18px 0; color: var(--jds-muted); font-size: 14px; }
.jds-faq-item.is-open .jds-faq-answer { display: block; }
.jds-faq-item.is-open .jds-faq-question svg { transform: rotate(45deg); }

.jds-editor-faqs { border-top: 1px solid var(--jds-line); }
.jds-editor-faqs details { border-bottom: 1px solid var(--jds-line); }
.jds-editor-faqs summary {
  position: relative;
  padding: 17px 38px 17px 0;
  color: var(--jds-ink);
  cursor: pointer;
  font-weight: 500;
  list-style: none;
}
.jds-editor-faqs summary::-webkit-details-marker { display: none; }
.jds-editor-faqs summary::after {
  content: "+";
  position: absolute;
  top: 10px;
  right: 0;
  color: var(--jds-copper);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 28px;
  font-weight: 400;
  transition: transform .2s ease;
}
.jds-editor-faqs details[open] summary::after { transform: rotate(45deg); }
.jds-editor-faqs details p { padding: 0 34px 18px 0; font-size: 14px; }

.jds-related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 17px; margin-top: 24px; }
.jds-related-card { color: var(--jds-ink) !important; text-decoration: none; }
.jds-related-card img { width: 100%; aspect-ratio: 1.45; object-fit: cover; transition: transform .3s ease; }
.jds-related-card h3 { margin: 10px 0 3px; font-size: 19px; }
.jds-related-card span { color: var(--jds-copper); font-size: 11px; font-weight: 600; text-transform: uppercase; }
.jds-related-card:hover img { transform: scale(1.025); }
.jds-related-card:hover h3 { color: var(--jds-copper); }

.jds-closing-cta {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  padding: 48px max(24px, calc((100% - var(--jds-max)) / 2));
  border-top: 1px solid var(--jds-sand-2);
  border-bottom: 1px solid var(--jds-sand-2);
  background: var(--jds-sand);
}
.jds-closing-cta h2 { margin: 0 0 5px; font-size: 40px; line-height: 1; }
.jds-closing-cta p { margin: 0; color: var(--jds-muted); }
.jds-closing-cta > a {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  padding: 0 23px;
  background: var(--jds-green);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  text-decoration: none;
  text-transform: uppercase;
}
.jds-closing-cta > a:hover { background: var(--jds-green-dark); }

.jds-post-heading {
  width: min(980px, calc(100% - 48px));
  margin: 0 auto;
  padding: 58px 0 34px;
}
.jds-post-category {
  margin-bottom: 10px;
  color: var(--jds-copper);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.jds-post-heading h1 {
  max-width: 820px;
  margin: 0 0 18px;
  font-size: clamp(50px, 5.8vw, 72px);
  font-weight: 500;
  letter-spacing: -.025em;
  line-height: .98;
}
.jds-post-heading > p { max-width: 680px; margin: 0 0 22px; color: var(--jds-muted); font-size: 18px; }
.jds-post-meta { display: flex; flex-wrap: wrap; gap: 8px 24px; color: var(--jds-muted); font-size: 12px; }
.jds-post-featured {
  width: min(980px, calc(100% - 48px));
  height: min(48vw, 520px);
  margin: 0 auto;
}
.jds-post-featured img { width: 100%; height: 100%; object-fit: cover; }
.jds-read-progress {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 10000;
  width: 0;
  height: 3px;
  background: var(--jds-copper);
}
.jds-share-rail { display: grid; gap: 10px; }
.jds-share-rail a,
.jds-share-rail button {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--jds-muted);
  font-size: 12px;
  text-align: left;
  text-decoration: none;
}
.jds-share-rail a:hover,
.jds-share-rail button:hover { color: var(--jds-copper); }
.jds-post-content table { width: 100%; margin: 28px 0 45px; border-collapse: collapse; font-size: 13px; }
.jds-post-content th,
.jds-post-content td { padding: 11px 12px; border: 1px solid #cfc6bc; text-align: left; vertical-align: top; }
.jds-post-content th { background: var(--jds-sand); color: var(--jds-ink); font-weight: 600; }
.jds-post-content .wp-block-image img { width: 100%; }
.jds-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 48px 0 20px; padding-top: 20px; border-top: 1px solid var(--jds-line); }
.jds-tags a { padding: 5px 11px; background: var(--jds-sand); font-size: 12px; text-decoration: none; }
.jds-expert-note {
  display: grid;
  grid-template-columns: 70px 1fr;
  gap: 20px;
  align-items: center;
  margin: 45px 0;
  padding: 25px;
  background: var(--jds-sand);
}
.jds-expert-mark {
  width: 70px;
  height: 70px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--jds-green);
  color: #fff;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 32px;
}
.jds-expert-note h3 { margin: 0 0 4px; font-size: 26px; }
.jds-expert-note p { margin: 0; font-size: 13px; }

.jds-contact-section .ff-el-group { margin-bottom: 16px; }
.jds-contact-section input,
.jds-contact-section textarea,
.jds-contact-section select {
  width: 100%;
  padding: 13px 14px !important;
  border: 1px solid var(--jds-line) !important;
  border-radius: 0 !important;
  background: #fff !important;
}
.jds-contact-section button[type="submit"],
.jds-contact-section .ff-btn-submit {
  padding: 13px 22px !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: var(--jds-green) !important;
  color: #fff !important;
}

@media (max-width: 980px) {
  .jds-guide-layout,
  .jds-post-layout { grid-template-columns: minmax(0, 1fr); }
  .jds-toc,
  .jds-share-rail { display: none; }
}

@media (max-width: 700px) {
  .jds-editorial { font-size: 15px; }
  .jds-guide-hero { min-height: 335px; }
  .jds-guide-hero__shade { background: linear-gradient(0deg, rgba(22,24,18,.8), rgba(22,24,18,.1)); }
  .jds-guide-hero__inner,
  .jds-guide-layout,
  .jds-post-layout,
  .jds-post-heading,
  .jds-post-featured {
    width: auto;
    max-width: none;
    margin-left: 16px;
    margin-right: 16px;
  }
  .jds-guide-hero h1,
  .jds-post-heading h1 { font-size: 42px; overflow-wrap: anywhere; }
  .jds-guide-hero p { font-size: 16px; }
  .jds-guide-layout,
  .jds-post-layout { padding: 42px 0 70px; }
  .jds-reading-flow h2 { margin-top: 48px; font-size: 37px; overflow-wrap: anywhere; }
  .jds-reading-flow h3 { overflow-wrap: anywhere; }
  .jds-detail-list { grid-template-columns: 1fr; }
  .jds-soft-band { margin-inline: -16px; padding-inline: 16px; }
  .jds-wide-media img { height: 270px; }
  .jds-related-grid { grid-template-columns: 1fr; gap: 26px; }
  .jds-closing-cta { display: grid; padding: 38px 16px; }
  .jds-closing-cta h2 { font-size: 36px; }
  .jds-post-heading { padding-top: 44px; }
  .jds-post-featured { height: 280px; }
  .jds-post-content table { display: block; overflow-x: auto; white-space: nowrap; }
  .jds-expert-note { grid-template-columns: 1fr; }
}
