.guide-page {
    --guide-accent: #315018;
    --guide-accent-soft: #edf4e7;
    --guide-border: rgba(49, 80, 24, 0.17);
    box-sizing: border-box;
    color: #26341f;
    margin: 0 auto;
    max-width: 1440px;
    padding: 0.35rem 0 3rem;
    width: 100%;
}

.guide-page *,
.guide-page *::before,
.guide-page *::after {
    box-sizing: border-box;
}

.guide-hero {
    align-items: flex-start;
    background: linear-gradient(135deg, var(--guide-accent), color-mix(in srgb, var(--guide-accent) 72%, #d7a31b));
    border-radius: 18px;
    box-shadow: 0 18px 48px rgba(35, 61, 24, 0.16);
    color: #fff;
    display: flex;
    gap: 2rem;
    justify-content: space-between;
    overflow: hidden;
    padding: clamp(1.5rem, 4vw, 3rem);
    position: relative;
}

.guide-hero::after {
    background: radial-gradient(circle, rgba(255, 255, 255, 0.2) 0 2px, transparent 3px);
    background-size: 22px 22px;
    content: "";
    inset: 0 0 0 55%;
    opacity: 0.45;
    pointer-events: none;
    position: absolute;
}

.guide-hero-text {
    max-width: 790px;
    position: relative;
    z-index: 1;
}

.guide-eyebrow {
    display: block;
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    margin-bottom: 0.75rem;
    opacity: 0.84;
    text-transform: uppercase;
}

.guide-hero h1 {
    color: inherit;
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 900;
    letter-spacing: -0.035em;
    line-height: 1;
    margin: 0 0 1rem;
}

.guide-hero p {
    font-size: clamp(1rem, 1.5vw, 1.15rem);
    line-height: 1.65;
    margin: 0;
    max-width: 720px;
    opacity: 0.92;
}

.guide-meta {
    display: flex;
    flex-wrap: wrap;
    font-size: 0.78rem;
    gap: 0.55rem 1.25rem;
    margin-top: 1.4rem;
    opacity: 0.78;
}

.guide-return {
    align-items: center;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.32);
    border-radius: 10px;
    color: #fff;
    display: inline-flex;
    flex: 0 0 auto;
    font-size: 0.85rem;
    font-weight: 800;
    gap: 0.45rem;
    padding: 0.72rem 0.9rem;
    position: relative;
    text-decoration: none;
    z-index: 1;
}

.guide-return:hover {
    background: rgba(255, 255, 255, 0.22);
    color: #fff;
}

.guide-return .icon,
.guide-footer .icon {
    filter: brightness(0) invert(1);
    height: 1rem;
    width: 1rem;
}

.guide-layout {
    align-items: start;
    display: grid;
    gap: clamp(1.25rem, 3vw, 2.5rem);
    grid-template-columns: minmax(190px, 250px) minmax(0, 1fr);
    padding-top: 2rem;
}

.guide-toc {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid var(--guide-border);
    border-radius: 14px;
    box-shadow: 0 10px 28px rgba(49, 80, 24, 0.07);
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    padding: 1rem;
    position: sticky;
    top: 1rem;
}

.guide-toc strong {
    color: var(--guide-accent);
    font-size: 0.8rem;
    letter-spacing: 0.04em;
    margin: 0.15rem 0 0.6rem;
    text-transform: uppercase;
}

.guide-toc a {
    border-radius: 7px;
    color: #52604b;
    font-size: 0.84rem;
    line-height: 1.35;
    padding: 0.48rem 0.55rem;
    text-decoration: none;
}

.guide-toc a:hover {
    background: var(--guide-accent-soft);
    color: var(--guide-accent);
}

.guide-content {
    min-width: 0;
}

.guide-intro-card {
    align-items: flex-start;
    background: var(--guide-accent-soft);
    border: 1px solid color-mix(in srgb, var(--guide-accent) 22%, transparent);
    border-radius: 14px;
    display: flex;
    gap: 0.9rem;
    margin-bottom: 2.5rem;
    padding: 1.1rem 1.2rem;
}

.guide-intro-card > .icon {
    background-color: var(--guide-accent);
    border-radius: 50%;
    flex: 0 0 2rem;
    height: 2rem;
    padding: 0.35rem;
    width: 2rem;
}

.guide-intro-card strong {
    color: var(--guide-accent);
    display: block;
    margin-bottom: 0.25rem;
}

.guide-intro-card p,
.guide-callout p {
    margin: 0;
}

.guide-section {
    scroll-margin-top: 1.25rem;
    margin-bottom: clamp(3.5rem, 7vw, 6rem);
    position: relative;
}

.guide-section-number {
    align-items: center;
    background: var(--guide-accent);
    border-radius: 9px;
    color: #fff;
    display: inline-flex;
    font-size: 0.8rem;
    font-weight: 900;
    height: 2rem;
    justify-content: center;
    margin-bottom: 0.75rem;
    width: 2rem;
}

.guide-section h2 {
    color: var(--guide-accent);
    font-size: clamp(1.55rem, 2.7vw, 2.2rem);
    font-weight: 900;
    letter-spacing: -0.025em;
    line-height: 1.12;
    margin: 0 0 1rem;
}

.guide-section h3 {
    color: var(--guide-accent);
    font-size: 1.02rem;
    margin: 0.6rem 0 0.45rem;
}

.guide-section > p,
.guide-card p,
.guide-intro-card p,
.guide-callout p,
.guide-faq p {
    color: #56614f;
    line-height: 1.7;
}

.guide-term-grid,
.guide-two-column,
.guide-example-grid {
    display: grid;
    gap: 0.85rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin: 1.35rem 0;
}

.guide-term-grid > div,
.guide-card {
    background: #fff;
    border: 1px solid var(--guide-border);
    border-radius: 12px;
    box-shadow: 0 7px 22px rgba(49, 80, 24, 0.05);
    padding: 1rem;
}

.guide-term-grid strong {
    color: var(--guide-accent);
    display: block;
    font-size: 0.9rem;
    margin-bottom: 0.3rem;
}

.guide-term-grid span {
    color: #606b5a;
    font-size: 0.84rem;
    line-height: 1.55;
}

.guide-card > .icon {
    height: 1.75rem;
    width: 1.75rem;
}

.guide-status-row {
    display: grid;
    gap: 0.7rem;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-top: 1.2rem;
}

.guide-status {
    border: 1px solid;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    font-size: 0.78rem;
    gap: 0.15rem;
    padding: 0.75rem 0.85rem;
}

.guide-status strong {
    font-size: 0.9rem;
}

.guide-status.normal { background: #edf8ed; border-color: #b9deb8; color: #246729; }
.guide-status.critical { background: #fff8df; border-color: #ecd58e; color: #7b5b08; }
.guide-status.negative { background: #fff0f0; border-color: #e8b5b5; color: #9b2525; }

.guide-steps {
    counter-reset: none;
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
    list-style: none;
    margin: 1.4rem 0;
    padding: 0;
}

.guide-steps li {
    align-items: flex-start;
    display: flex;
    gap: 0.85rem;
}

.guide-steps li > span {
    align-items: center;
    background: var(--guide-accent-soft);
    border: 1px solid color-mix(in srgb, var(--guide-accent) 25%, transparent);
    border-radius: 50%;
    color: var(--guide-accent);
    display: inline-flex;
    flex: 0 0 2.1rem;
    font-size: 0.82rem;
    font-weight: 900;
    height: 2.1rem;
    justify-content: center;
}

.guide-steps strong {
    color: #34442d;
}

.guide-steps p {
    color: #64705e;
    line-height: 1.55;
    margin: 0.2rem 0 0;
}

.guide-steps.compact li > div {
    color: #586352;
    line-height: 1.55;
    padding-top: 0.25rem;
}

.guide-callout {
    border: 1px solid;
    border-left-width: 5px;
    border-radius: 10px;
    margin: 1.15rem 0;
    padding: 0.9rem 1rem;
}

.guide-callout strong {
    display: block;
    margin-bottom: 0.28rem;
}

.guide-callout.info { background: #eff7fb; border-color: #8fc4dd; color: #265f77; }
.guide-callout.success { background: #eff8ef; border-color: #9bc79b; color: #2e6f32; }
.guide-callout.warning { background: #fff8e5; border-color: #dfbd62; color: #795b12; }
.guide-callout.info p, .guide-callout.success p, .guide-callout.warning p { color: inherit; }

.guide-figure {
    background: #fff;
    border: 1px solid var(--guide-border);
    border-radius: 14px;
    box-shadow: 0 14px 38px rgba(49, 80, 24, 0.09);
    margin: 2rem 0;
    overflow: hidden;
    padding: 0;
}

.guide-figure-canvas {
    background: #e8ece5;
    line-height: 0;
    overflow: hidden;
    position: relative;
}

.guide-figure-canvas img {
    display: block;
    height: auto;
    width: 100%;
}

.guide-marker {
    align-items: center;
    background: #d99b13;
    border: 3px solid #fff;
    border-radius: 50%;
    box-shadow: 0 4px 12px rgba(55, 36, 3, 0.34);
    color: #fff;
    display: flex;
    font-size: clamp(0.62rem, 1.3vw, 0.88rem);
    font-weight: 900;
    height: clamp(1.55rem, 3.2vw, 2.2rem);
    justify-content: center;
    left: var(--x);
    line-height: 1;
    position: absolute;
    top: var(--y);
    transform: translate(-50%, -50%);
    width: clamp(1.55rem, 3.2vw, 2.2rem);
    z-index: 2;
}

.guide-figure figcaption {
    color: var(--guide-accent);
    font-size: 0.85rem;
    font-weight: 800;
    padding: 0.9rem 1rem 0.35rem;
}

.guide-legend {
    display: grid;
    gap: 0.7rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    list-style: none;
    margin: 0;
    padding: 0.6rem 1rem 1rem;
}

.guide-legend li {
    align-items: flex-start;
    color: #5b6655;
    display: flex;
    font-size: 0.8rem;
    gap: 0.55rem;
    line-height: 1.45;
}

.guide-legend li > span {
    align-items: center;
    background: #d99b13;
    border-radius: 50%;
    color: #fff;
    display: flex;
    flex: 0 0 1.45rem;
    font-size: 0.7rem;
    font-weight: 900;
    height: 1.45rem;
    justify-content: center;
}

.guide-legend strong {
    color: #394733;
}

.guide-example-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.guide-example-grid > div {
    background: var(--guide-accent-soft);
    border: 1px solid var(--guide-border);
    border-radius: 12px;
    display: grid;
    gap: 0.3rem;
    grid-template-columns: 1fr auto;
    padding: 1rem;
}

.guide-example-grid span { color: #667160; font-size: 0.78rem; }
.guide-example-grid strong { color: var(--guide-accent); }
.guide-example-grid b { border-top: 1px solid var(--guide-border); color: #3e4c38; font-size: 0.8rem; grid-column: 1 / -1; margin-top: 0.35rem; padding-top: 0.55rem; }

.guide-check-list {
    display: grid;
    gap: 0.75rem;
    list-style: none;
    margin: 1.2rem 0;
    padding: 0;
}

.guide-check-list li {
    background: #fff;
    border: 1px solid var(--guide-border);
    border-radius: 9px;
    color: #596454;
    line-height: 1.55;
    padding: 0.85rem 0.95rem 0.85rem 2.5rem;
    position: relative;
}

.guide-check-list li::before {
    align-items: center;
    background: var(--guide-accent-soft);
    border-radius: 50%;
    color: var(--guide-accent);
    content: "✓";
    display: flex;
    font-weight: 900;
    height: 1.35rem;
    justify-content: center;
    left: 0.75rem;
    position: absolute;
    top: 0.85rem;
    width: 1.35rem;
}

.guide-flow {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    margin: 1.4rem 0;
}

.guide-flow span {
    background: var(--guide-accent-soft);
    border: 1px solid var(--guide-border);
    border-radius: 9px;
    color: var(--guide-accent);
    font-size: 0.83rem;
    font-weight: 800;
    padding: 0.65rem 0.8rem;
}

.guide-flow b {
    color: #d99b13;
}

.guide-faq {
    border-bottom: 1px solid var(--guide-border);
    margin-top: 1.2rem;
}

.guide-faq details {
    border-top: 1px solid var(--guide-border);
    padding: 0.15rem 0;
}

.guide-faq summary {
    color: #35452e;
    cursor: pointer;
    font-weight: 800;
    list-style: none;
    padding: 1rem 2.2rem 1rem 0;
    position: relative;
}

.guide-faq summary::-webkit-details-marker { display: none; }
.guide-faq summary::after { color: var(--guide-accent); content: "+"; font-size: 1.4rem; position: absolute; right: 0.35rem; top: 0.75rem; }
.guide-faq details[open] summary::after { content: "−"; }
.guide-faq p { margin: -0.25rem 2rem 1rem 0; }

.guide-footer {
    align-items: center;
    background: var(--guide-accent);
    border-radius: 12px;
    display: flex;
    justify-content: space-between;
    padding: 1rem;
}

.guide-footer a {
    align-items: center;
    color: #fff;
    display: inline-flex;
    font-size: 0.84rem;
    font-weight: 800;
    gap: 0.4rem;
    text-decoration: none;
}

@media (max-width: 960px) {
    .guide-layout { grid-template-columns: 1fr; }
    .guide-toc { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); position: static; }
    .guide-toc strong { grid-column: 1 / -1; }
}

@media (max-width: 680px) {
    .guide-page { padding-bottom: 1rem; }
    .guide-hero { border-radius: 13px; flex-direction: column; gap: 1.2rem; }
    .guide-hero::after { inset: 45% 0 0; }
    .guide-return { width: 100%; }
    .guide-layout { padding-top: 1rem; }
    .guide-toc { grid-template-columns: 1fr; }
    .guide-term-grid, .guide-two-column, .guide-example-grid, .guide-legend, .guide-status-row { grid-template-columns: 1fr; }
    .guide-section { margin-bottom: 3.5rem; }
    .guide-figure { border-radius: 10px; margin-left: -0.35rem; margin-right: -0.35rem; }
    .guide-figure figcaption { padding-left: 0.8rem; padding-right: 0.8rem; }
    .guide-legend { padding-left: 0.8rem; padding-right: 0.8rem; }
    .guide-footer { align-items: flex-start; flex-direction: column; gap: 0.8rem; }
}

@media print {
    .guide-return, .guide-toc, .guide-footer { display: none; }
    .guide-hero { box-shadow: none; }
    .guide-layout { display: block; }
    .guide-section, .guide-figure { break-inside: avoid; }
}
