.guide-page {
  min-height: 100vh;
  background: #f6f8f3;
  color: #12342d;
}

.guide-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
  padding: 0 var(--page-pad);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  background: var(--pine);
  box-shadow: none;
}

.guide-header .brand,
.guide-home-link {
  color: #fff;
  text-decoration: none;
}

.breadcrumbs a {
  color: #12342d;
  text-decoration: none;
}

.guide-home-link,
.breadcrumbs,
.guide-back {
  font-weight: 700;
}

.guide-back {
  display: inline-flex;
  margin-bottom: 18px;
  color: #26704f;
  text-decoration: none;
}

.guide-back:hover,
.guide-back:focus-visible,
.breadcrumbs a:hover,
.breadcrumbs a:focus-visible {
  text-decoration: underline;
}

.guide-main {
  --guide-card-pad: clamp(28px, 3vw, 44px);
  width: auto;
  margin: 0 auto;
  padding: 54px var(--page-pad) 80px;
}

.breadcrumbs {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 42px;
  color: #667b73;
  font-size: 0.92rem;
}

.breadcrumbs [aria-current="page"] {
  color: #12342d;
}

.state-context {
  margin: -16px 0 38px;
  padding: 16px 18px;
  border: 1px solid #cfe0d3;
  border-radius: 14px;
  background: #f7faf7;
  line-height: 1.55;
}

.state-context a {
  color: #26704f;
  font-weight: 800;
}

.guide-back-bottom {
  margin: 28px 0 0;
}

.guide-main article {
  padding: var(--guide-card-pad);
  border: 1px solid #dbe5dd;
  border-radius: 28px;
  background: #fff;
  box-shadow: 0 28px 70px rgba(18, 52, 45, 0.09);
}

.guide-main h1 {
  max-width: 980px;
  margin: 12px 0 28px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 4vw, 3.25rem);
  line-height: 1.12;
  letter-spacing: -0.03em;
}

.guide-direct-answer {
  margin: 0 0 38px;
  padding: 24px 26px;
  border-left: 5px solid #e4a21a;
  border-radius: 0 16px 16px 0;
  background: #edf6ef;
  font-size: clamp(1.25rem, 2.5vw, 1.65rem);
  line-height: 1.45;
}

.guide-main h2 {
  margin: 36px 0 12px;
  font-size: 1.25rem;
}

.guide-main p,
.guide-main li {
  font-size: 1.05rem;
  line-height: 1.7;
}

.guide-notes,
.guide-source,
.guide-decisions,
.guide-faq {
  margin-top: 34px;
  padding-top: 4px;
  border-top: 1px solid #dbe5dd;
}

.guide-faq-list {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.guide-faq-item {
  overflow: hidden;
  border: 1px solid #d5dfd9;
  border-radius: 14px;
  background: #f8faf6;
}

.guide-faq-item summary {
  position: relative;
  padding: 17px 52px 17px 18px;
  cursor: pointer;
  font-weight: 800;
  list-style: none;
}

.guide-faq-item summary::-webkit-details-marker {
  display: none;
}

.guide-faq-item summary::after {
  content: "+";
  position: absolute;
  top: 50%;
  right: 18px;
  color: #26704f;
  font-size: 1.3rem;
  transform: translateY(-50%);
}

.guide-faq-item[open] summary::after {
  content: "−";
}

.guide-faq-item p {
  margin: 0;
  padding: 0 18px 18px;
  color: #4e625b;
}

.permit-finder {
  margin: 42px calc(var(--guide-card-pad) * -1) 0;
  padding: 42px var(--guide-card-pad);
  border-top: 1px solid #dbe5dd;
  border-bottom: 1px solid #dbe5dd;
  background: #f8faf6;
}

.permit-finder-heading {
  max-width: 680px;
}

.permit-finder .permit-finder-heading h2 {
  margin: 8px 0 12px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 4.2vw, 3.4rem);
  line-height: 1.03;
  letter-spacing: -0.035em;
}

.permit-finder-heading > p:last-child {
  color: #5d706a;
}

.permit-filter-label {
  display: block;
  margin: 28px 0 8px;
  font-size: 0.86rem;
  font-weight: 800;
}

.permit-filter {
  width: 100%;
  min-height: 54px;
  border: 1px solid #b8cbc0;
  border-radius: 12px;
  padding: 0 16px;
  background: #fff;
  color: #12342d;
  font: inherit;
}

.permit-filter:focus-visible {
  outline: 3px solid rgba(38, 112, 79, 0.22);
  outline-offset: 2px;
}

.permit-filter-count {
  min-height: 22px;
  margin: 8px 0 14px;
  color: #667b73;
  font-size: 0.82rem !important;
  font-weight: 700;
}

.permit-project-list {
  display: grid;
  gap: 10px;
}

.permit-project {
  overflow: hidden;
  border: 1px solid #d5dfd9;
  border-radius: 14px;
  background: #fff;
}

.permit-project[hidden] {
  display: none;
}

.permit-project summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  min-height: 64px;
  padding: 14px 18px;
  color: #12342d;
  cursor: pointer;
  font-weight: 800;
  list-style: none;
}

.permit-project summary::-webkit-details-marker {
  display: none;
}

.permit-project summary::before {
  content: "+";
  grid-column: 2;
  grid-row: 1;
  justify-self: end;
  color: #26704f;
  font-size: 1.3rem;
}

.permit-project[open] summary::before {
  content: "−";
}

.permit-project summary > span:first-child {
  grid-column: 1;
  grid-row: 1;
}

.permit-status {
  grid-column: 1 / -1;
  width: fit-content;
  border-radius: 999px;
  padding: 5px 9px;
  background: #edf2ee;
  color: #4e625b;
  font-size: 0.7rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.permit-project-required .permit-status {
  background: #fff0d2;
  color: #754c00;
}

.permit-project-not-required .permit-status {
  background: #e7f4ea;
  color: #1d603c;
}

.permit-project-check-first .permit-status,
.permit-project-depends .permit-status {
  background: #eef0f8;
  color: #38476c;
}

.permit-project-answer {
  padding: 0 18px 20px;
  color: #5d706a;
}

.permit-project-answer p,
.permit-project-answer li {
  font-size: 0.95rem;
  line-height: 1.6;
}

.permit-project-answer p strong,
.permit-project-answer li strong {
  color: #12342d;
}

.permit-project-answer ul {
  margin-bottom: 0;
  padding-left: 20px;
}

.permit-project-answer li + li {
  margin-top: 10px;
}

.permit-project-answer li span {
  display: block;
}

.permit-no-results {
  border-radius: 12px;
  padding: 16px;
  background: #edf2ee;
  color: #4e625b;
}

.guide-source a {
  color: #26704f;
  font-weight: 800;
}

.guide-community {
  margin: 42px calc(var(--guide-card-pad) * -1) 0;
  padding: 42px var(--guide-card-pad);
  border-top: 1px solid #cbd9cc;
  background: #f4f7f1;
}

.guide-community h3 { margin: 1.8rem 0 .7rem; font-size: 1.25rem; }
.guide-community-boundary { padding: 1rem; border-left: 4px solid #80629a; background: #fff; }
.guide-community-actions { display: flex; flex-wrap: wrap; gap: .8rem 1rem; align-items: center; margin: 1.25rem 0; }
.guide-community-actions span { color: #566d60; font-size: .85rem; }
.guide-proposal-link { display: inline-block; padding: .8rem 1rem; border-radius: .65rem; background: #174a37; color: #fff !important; font-weight: 800; text-decoration: none; }
.guide-project-link { display: inline-block; padding: .75rem 1rem; border: 1px solid #799080; border-radius: .65rem; background: #fff; color: #174a37 !important; font-weight: 800; text-decoration: none; }
#guide-related-projects { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .8rem; }
.guide-related-card, .guide-comment-card, .guide-reply-card { padding: 1rem; border: 1px solid #cbd9cc; border-radius: .8rem; background: #fff; }
.guide-related-card h4 { margin: .5rem 0; font-size: 1.05rem; }
.guide-related-card p { margin: 0; }
.guide-related-type { color: #5f3d78; font-size: .75rem; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; }
.guide-comment-card { margin-top: .8rem; }
.guide-reply-card { margin: .7rem 0 0 clamp(.5rem, 4vw, 2rem); background: #f9fbf7; }
.guide-comment-meta { color: #566d60; font-size: .82rem; }
.guide-comment-card button { padding: .45rem .7rem; }
#guide-discussion-form, .guide-account { margin-top: 1rem; padding: 1rem; border: 1px solid #cbd9cc; border-radius: .8rem; background: #fff; }
#guide-discussion-form label, .guide-account label { display: block; font-weight: 700; }
#guide-discussion-form textarea, .guide-account input { display: block; width: 100%; margin-top: .4rem; padding: .75rem; border: 1px solid #9fb2a5; border-radius: .6rem; font: inherit; }
.guide-account form { max-width: 480px; margin-top: 1rem; }
.guide-account label { margin-bottom: 1rem; }
.guide-discussion-actions { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: .8rem; }
.guide-discussion-actions button:first-child { border-color: #174a37; background: #174a37; color: #fff; }
.guide-community button { padding: .65rem .85rem; border: 1px solid #9fb2a5; border-radius: .6rem; background: #fff; color: #174a37; font: inherit; font-weight: 750; cursor: pointer; }
.guide-community button:disabled { opacity: .6; cursor: wait; }
.guide-community button:focus-visible, .guide-community input:focus-visible, .guide-community textarea:focus-visible, .guide-proposal-link:focus-visible, .guide-project-link:focus-visible { outline: 3px solid #efac4e; outline-offset: 3px; }
.honeypot { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }

@media (max-width: 620px) {
  #guide-related-projects { grid-template-columns: 1fr; }
  .guide-community { padding-top: 30px; }
}

.decision-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 16px;
  margin-top: 20px;
}

.decision-group {
  padding: 18px;
  border-radius: 14px;
  background: #f3f7f3;
}

.decision-group h3 {
  margin: 0 0 12px;
  font-size: 1rem;
}

.decision-group ul {
  margin: 0;
  padding-left: 20px;
}

.decision-group li + li {
  margin-top: 12px;
}

.decision-group li span {
  display: block;
  color: #5d706a;
  font-size: 0.92rem;
}

@media (max-width: 620px) {
  .guide-header {
    min-height: 64px;
    padding: 0 20px;
  }

  .guide-header .brand span {
    font-size: 0.78rem;
  }

  .guide-home-link {
    font-size: 0.86rem;
  }

  .guide-main {
    width: min(100% - 24px, 860px);
    padding: 28px 0 56px;
  }

  .breadcrumbs {
    display: none;
  }

  .guide-main > .breadcrumbs {
    display: flex;
    gap: 8px;
    margin: 0 8px 24px;
    font-size: 0.85rem;
  }

  .guide-main article {
    padding: 28px 22px;
    border-radius: 20px;
  }

  .permit-finder {
    margin-right: -22px;
    margin-left: -22px;
    padding: 34px 22px;
  }

  .permit-project summary {
    min-height: 74px;
    padding: 14px;
  }
}

.property-prompt { margin: 24px 0; padding: 22px; border: 1px solid #ccdcd2; border-radius: 14px; background: #f4f8f3; }
.property-prompt h2 { margin-top: 0; }
