.guide-page .guide-start {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(22px, 4vw, 54px);
  padding: clamp(20px, 4vw, 48px);
  margin-top: 32px;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: var(--white);
  box-shadow: 0 12px 30px #18362b0b;
}
.guide-page h1 { font-size: clamp(2rem, 4vw, 3.55rem); }
.guide-lead { margin-top: 13px; color: var(--muted); }

.guide-page code {
  padding: 2px 5px;
  border-radius: 5px;
  background: #e2ebd9;
  color: #244b36;
  font: inherit;
  font-weight: 750;
  overflow-wrap: anywhere;
}

.guide-binding {
  min-width: 0;
  padding: clamp(15px, 2.5vw, 26px);
  border: 1px solid #cbdac7;
  border-radius: 16px;
  background: #ebf1e5;
}
.guide-binding h2 { font-size: 1.22rem; }
.guide-binding ol { display: grid; gap: 8px; margin: 8px 0 15px; padding-left: 1.35em; }
.guide-binding li::marker, .guide-steps > li::marker { color: #3a684c; font-weight: 800; }
.guide-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
.guide-link { font-size: .84rem; font-weight: 750; text-underline-offset: 4px; }
.guide-page .guide-redline-jump {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2px 10px;
  margin-top: 16px;
  padding: 7px 11px;
  border: 1px solid #d88f81;
  border-radius: 8px;
  background: #fae7df;
  color: #792719;
  font-size: .83rem;
  text-decoration: none;
}
.guide-page .guide-redline-jump:hover { background: #f5d6ca; }

.guide-layout { display: grid; grid-template-columns: clamp(145px, 17vw, 215px) minmax(0, 1fr); align-items: start; gap: 20px; margin-block: 23px 36px; }
.guide-toc { position: sticky; top: 16px; display: grid; gap: 5px; padding: 17px; border: 1px solid var(--line); border-radius: 15px; background: #f9f8ef; }
.guide-toc strong { padding-inline: 7px; font-size: .88rem; }
.guide-toc a { padding: 5px 7px; border-radius: 6px; color: var(--muted); font-size: .86rem; text-decoration: none; }
.guide-toc a:hover { background: #e7efe0; color: var(--ink); }
.guide-content { display: grid; gap: 16px; min-width: 0; }
.guide-section {
  min-width: 0;
  padding: clamp(16px, 3vw, 28px);
  border: 1px solid var(--line);
  border-radius: 19px;
  background: #fcfbf4;
}
.guide-section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: start; gap: 8px 14px; margin-bottom: 14px; }
.guide-section-head h2 { font-size: clamp(1.37rem, 2.7vw, 2rem); line-height: 1.2; letter-spacing: -.025em; }
.guide-section-head p { margin-top: 5px; color: var(--muted); font-size: .9rem; }
.guide-card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 0; padding: 0; list-style: none; }
.guide-card-grid li { padding: 12px; border: 1px solid #d6e0cf; border-radius: 10px; background: #edf1e6; }
.guide-card-grid h3, .guide-steps h3 { font-size: .99rem; }
.guide-card-grid p, .guide-steps p { margin-top: 4px; color: var(--muted); font-size: .88rem; }
.guide-steps { display: grid; gap: 0; margin: 0; padding-left: 1.35em; }
.guide-steps > li { padding: 9px 0 13px 2px; }
.guide-steps > li + li { border-top: 1px solid var(--line); }
.guide-steps > li:last-child { padding-bottom: 0; }
.guide-steps .survival-addresses { max-width: 550px; }
.guide-copy-status { min-height: 1.4em; }

.guide-redlines { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.guide-rule-card, .guide-rule-penalty, .guide-neighbor { padding: clamp(13px, 2.2vw, 19px); border-radius: 11px; }
.guide-rule-card { border: 1px solid #e1bfb4; background: #fff7f2; color: #583528; }
.guide-rule-card-duplication { border: 2px solid #bd6654; border-left-width: 5px; background: #fbe9e1; }
.guide-rule-card h3, .guide-rule-penalty h3, .guide-neighbor h3 { margin-bottom: 5px; font-size: 1.06rem; line-height: 1.3; }
.guide-rule-card h3 { color: #792719; }
.guide-rule-card-duplication h3 { font-size: 1.3rem; }
.guide-rule-card p, .guide-rule-penalty p, .guide-neighbor p { font-size: .9rem; overflow-wrap: anywhere; }
.guide-rule-card p + p, .guide-neighbor p + p { margin-top: 6px; }
.guide-rule-penalty { grid-column: 1 / -1; background: #692d24; color: #fff9ef; }
.guide-neighbor { margin: 13px 0 9px; border: 1px solid #d0ddcb; background: #ebf1e6; }
.guide-community-rules { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.guide-faq { display: grid; gap: 7px; }
.guide-faq details { overflow: hidden; border: 1px solid #d6ded0; border-radius: 9px; background: #eff2e9; }
.guide-faq summary { position: relative; min-height: 44px; padding: 9px 35px 9px 12px; list-style: none; font-size: .91rem; font-weight: 750; cursor: pointer; }
.guide-faq summary::-webkit-details-marker { display: none; }
.guide-faq summary::after { position: absolute; top: 8px; right: 12px; content: "+"; color: #3e664d; font-size: 1.05rem; }
.guide-faq details[open] summary::after { content: "−"; }
.guide-faq details p { padding: 0 12px 11px; color: var(--muted); font-size: .88rem; }

@media (max-width: 650px) {
  .guide-page .guide-start { grid-template-columns: 1fr; gap: 13px; margin-top: 12px; padding: 17px; border-radius: 17px; }
  .guide-lead { margin-top: 9px; font-size: .9rem; }
  .guide-page .guide-redline-jump { margin-top: 10px; }
  .guide-binding ol { font-size: .9rem; }
  .guide-actions .survival-button { padding-inline: 9px; font-size: .78rem; }
  .guide-layout { grid-template-columns: 1fr; gap: 10px; margin-block: 15px 25px; }
  .guide-toc { display: none; }
  .guide-content { gap: 11px; }
  .guide-section { border-radius: 14px; }
  .guide-card-grid, .guide-redlines { grid-template-columns: 1fr; }
}
