/* Answer-led layouts for eligibility, course comparisons and next-step guides. */
.guide-reading-progress { position: fixed; top: 70px; left: 0; width: 0; height: 3px; background: #2e7169; z-index: 35; pointer-events: none; }
.comparison-guide { padding-bottom: 64px; overflow-wrap: anywhere; }
.guide-header { padding: 24px 0; background: linear-gradient(110deg, #f2f7f4, #fcfdfb); border-bottom: 1px solid #d7e2df; }
.guide-header .shell { max-width: 760px; }
.guide-header .breadcrumb { margin: 0 0 16px; color: #617579; font-size: 14px; }
.guide-header .breadcrumb span { color: #617579; }
.guide-kicker { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 12px; color: #536d68; font-size: 14px; }
.guide-kicker .category-pill { padding: 4px 8px; background: #dcebe4; border-radius: 5px; font-size: 14px; }
.guide-header h1 { max-width: 830px; margin: 14px 0 10px; color: #14333a; font-size: clamp(28px, 4vw, 44px); line-height: 1.4; letter-spacing: normal; font-weight: 900; text-wrap: balance; }
.guide-description { max-width: 760px; margin: 0; color: #526c68; font-size: 17px; line-height: 1.8; }
.guide-byline { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 24px; margin-top: 16px; font-size: 14px; color: #526c68; }
.guide-author { display: inline-flex; align-items: center; gap: 8px; color: #264d45; font-weight: 700; }
.guide-author > span { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: #d5e7de; color: #285c50; font: italic 800 14px Inter, sans-serif; }
.guide-dates { display: flex; flex-wrap: wrap; gap: 4px 14px; }
.guide-dates > span { white-space: nowrap; }
.guide-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px; padding-top: 28px; }
.guide-main { min-width: 0; width: 100%; max-width: 760px; justify-self: center; }
.guide-answer { padding: 22px 24px; margin-bottom: 24px; background: #eff6f0; border-left: 4px solid #42765d; border-radius: 0 12px 12px 0; font-size: 16px; }
.guide-answer p { margin: 0; }
.guide-answer strong { color: #204d36; }
.guide-answer a.guide-answer__link { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; margin-top: 8px; font-size: 14px; }
.guide-mobile-contents { padding: 0; margin: 0 0 28px; border-color: #d7e2df; border-radius: 8px; background: #fff; }
.guide-mobile-contents summary { display: flex; align-items: center; gap: 12px; min-height: 54px; padding: 14px 16px; color: #264d45; font-size: 14px; font-weight: 800; cursor: pointer; list-style: none; }
.guide-mobile-contents summary::-webkit-details-marker { display: none; }
.guide-mobile-contents summary span { margin-left: auto; color: #617579; font-size: 14px; font-weight: 500; }
.guide-mobile-contents summary::after { content: '+'; font-size: 20px; font-family: Inter, sans-serif; font-weight: 500; }
.guide-mobile-contents[open] summary::after { content: '−'; }
.guide-mobile-contents[open] summary { border-bottom: 1px solid #e2ebe6; }
.guide-mobile-contents nav { padding: 12px 18px 14px; }
.guide-mobile-contents ol { padding-left: 20px; }
.guide-mobile-contents a { display: flex; align-items: center; min-height: 44px; font-size: 14px; line-height: 1.65; }
.guide-body { font-size: 17px; line-height: 1.9; }
.guide-body h2 { margin: 38px 0 16px; padding-bottom: 0; border: 0; font-size: clamp(23px, 3vw, 29px); line-height: 1.5; letter-spacing: normal; }
.guide-body h2:first-child { margin-top: 0; }
.guide-body h3 { margin-top: 26px; font-size: 20px; line-height: 1.55; }
.guide-body p, .guide-body li { margin-bottom: 14px; }
.guide-body ul, .guide-body ol { padding-left: 24px; }
.guide-body blockquote { font-style: normal; font-size: 16px; }
.guide-body .article-table { margin: 20px 0 32px; border: 1px solid #d7e2df; border-radius: 10px; }
.guide-body .article-table table { margin: 0; min-width: 0; box-shadow: none; table-layout: fixed; }
.guide-body .article-table th { padding: 15px; background: #e9f1ec; color: #254c3d; font-size: 14px; line-height: 1.65; letter-spacing: normal; }
.guide-body .article-table th:first-child { width: 20%; }
.guide-body .article-table td { padding: 16px 15px; font-size: 15px; line-height: 1.8; }
.guide-body .article-table td:first-child { color: #254c3d; font-weight: 700; }
.guide-body .article-table tr:nth-child(even) td { background: #f9fbf9; }
.guide-source-note { margin-top: 34px; padding: 20px 0; border-block: 1px solid #d7e2df; }
.guide-source-note > strong { color: #294f42; font-size: 15px; }
.guide-source-note p { color: #617579; font-size: 14px; line-height: 1.8; margin: 8px 0 12px; }
.guide-source-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 24px; }
.guide-source-actions a { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; color: #2e7169; font-size: 14px; font-weight: 700; text-decoration: underline; text-underline-offset: 4px; }
.guide-source-actions .article-source { margin: 0; padding: 0; background: none; border: 0; border-radius: 0; }
.guide-section-label { color: #617579; font-size: 14px; font-weight: 700; }
.guide-next { padding: 24px 0 0; }
.guide-next > p { margin: 0 0 5px; }
.guide-next h2 { margin: 0 0 10px; font-size: 20px; line-height: 1.55; }
.guide-next > a { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; padding: 14px 16px; border: 1px solid #d7e2df; border-radius: 10px; color: #2e7169; font-size: 15px; font-weight: 700; }
.guide-next > a:hover { background: #f1f7f5; border-color: #2e7169; }
.guide-sidebar { display: none; min-width: 0; }
.guide-desktop-contents { margin: 0; padding: 0 0 24px 22px; background: none; border: 0; border-left: 1px solid #d7e2df; border-radius: 0; }
.guide-desktop-contents > strong { margin-bottom: 12px; font-size: 14px; }
.guide-desktop-contents ol { padding-left: 17px; color: #617579; }
.guide-desktop-contents li { margin-bottom: 4px; padding-left: 2px; }
.guide-desktop-contents a { padding: 7px 0; min-height: 44px; font-size: 14px; line-height: 1.75; font-weight: 500; text-decoration: none; }
.guide-desktop-contents a:hover { text-decoration: underline; text-underline-offset: 3px; }
.guide-sidebar-note { padding: 24px 0 0 22px; border-left: 1px solid #d7e2df; }
.guide-sidebar-note h2 { margin: 8px 0; font-size: 20px; line-height: 1.55; }
.guide-sidebar-note p { margin: 0 0 10px; color: #617579; font-size: 14px; line-height: 1.8; }
.guide-sidebar-note a { display: inline-block; min-height: 44px; padding: 10px 0; color: #2e7169; font-size: 14px; font-weight: 700; text-decoration: underline; text-underline-offset: 4px; }
.guide-sidebar-note .article-source { margin: 0; background: none; border: 0; border-radius: 0; }
.comparison-guide :is(a, summary, .guide-sidebar):focus-visible { outline: 3px solid #2e7169; outline-offset: 4px; border-radius: 3px; }
.comparison-guide :is(h2, h3) { scroll-margin-top: 96px; }

/* Keep the actual article's ordered steps readable without repeating them in a second component. */
.comparison-guide--process .guide-steps { margin: 20px 0 32px; padding: 0; list-style: none; counter-reset: pet-step; }
.comparison-guide--process .guide-steps > li { position: relative; counter-increment: pet-step; margin: 0; padding: 18px 18px 18px 64px; border-bottom: 1px solid #d7e2df; background: #f7faf7; }
.comparison-guide--process .guide-steps > li:first-child { border-radius: 10px 10px 0 0; }
.comparison-guide--process .guide-steps > li:last-child { border-bottom: 0; border-radius: 0 0 10px 10px; }
.comparison-guide--process .guide-steps > li::before { position: absolute; top: 19px; left: 18px; display: grid; place-items: center; width: 28px; height: 28px; content: counter(pet-step, decimal-leading-zero); border-radius: 50%; background: #e0eee4; color: #28583c; font: 700 12px/1 Inter, sans-serif; }
.comparison-guide--process .guide-steps > li > strong { display: block; margin-bottom: 4px; }
.guide-checklist { min-width: 0; margin: 32px 0 0; padding: 22px; border: 1px solid #bdd4c5; border-radius: 12px; background: #f4f9f4; scroll-margin-top: 96px; }
.guide-checklist legend { max-width: 100%; padding: 0 8px; color: #244c35; font-size: 20px; font-weight: 800; line-height: 1.6; }
.guide-checklist > p { margin: 0 0 16px; color: #526c68; font-size: 14px; line-height: 1.85; }
.guide-checklist__items { display: grid; gap: 2px; }
.guide-checklist__items label { display: flex; align-items: flex-start; gap: 12px; min-height: 48px; padding: 12px 0; border-bottom: 1px solid #d8e5db; color: #294e3c; font-size: 15px; line-height: 1.8; cursor: pointer; }
.guide-checklist__items label:last-child { border-bottom: 0; }
.guide-checklist__items input { width: 20px; height: 20px; margin: 3px 0 0; accent-color: #2e7169; flex-shrink: 0; }
.guide-checklist__items input:focus-visible { outline: 3px solid #2e7169; outline-offset: 4px; }
.guide-checklist__status { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 20px; margin-top: 14px; padding-top: 14px; border-top: 1px solid #bdd4c5; }
.guide-checklist__status output { color: #28543d; font-size: 13px; font-weight: 700; }
.guide-checklist__status button { min-height: 44px; padding: 8px 0; border: 0; background: none; color: #2e7169; font: inherit; font-size: 13px; font-weight: 700; text-decoration: underline; text-underline-offset: 4px; cursor: pointer; }
.guide-checklist__status button:focus-visible { outline: 3px solid #2e7169; outline-offset: 4px; }

@media (min-width: 1100px) {
    .guide-header { padding-top: 28px; padding-bottom: 28px; }
    .guide-header .shell { max-width: 1120px; }
    .guide-layout { grid-template-columns: minmax(0, 760px) 260px; gap: 64px; padding-top: 36px; }
    .guide-sidebar { display: block; position: sticky; top: 96px; align-self: start; max-height: calc(100vh - 116px); max-height: calc(100dvh - 116px); overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; }
    .guide-mobile-contents { display: none; }
}

@media (max-width: 599px) {
    .guide-header { padding: 16px 0 18px; }
    .guide-header .breadcrumb { margin-bottom: 12px; }
    .guide-header h1 { margin-top: 12px; font-size: 28px; }
    .guide-description { font-size: 16px; line-height: 1.7; }
    .guide-byline { gap: 6px; margin-top: 12px; }
    .guide-dates { width: 100%; font-size: 14px; }
    .guide-layout { padding-top: 16px; }
    .guide-answer { padding: 18px; font-size: 16px; line-height: 1.9; }
    .guide-body { font-size: 16px; line-height: 1.95; }
    .guide-body h2 { font-size: 23px; }
    .guide-body h3 { font-size: 19px; }
    .guide-body .article-table--comparison { overflow: visible; border: 0; border-radius: 0; }
    .article-table--comparison table, .article-table--comparison tbody { display: block; width: 100%; overflow: visible; }
    .article-table--comparison thead { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
    .article-table--comparison tbody tr { display: block; margin-bottom: 14px; border: 1px solid #d7e2df; border-radius: 10px; overflow: hidden; }
    .guide-body .article-table--comparison td { display: block; width: 100%; padding: 12px 16px; border-bottom: 1px solid #e5ece7; background: #fff; font-size: 15px; }
    .guide-body .article-table--comparison td:first-child { padding: 10px 16px; background: #e9f1ec; font-size: 14px; }
    .guide-body .article-table--comparison tr td:last-child { border-bottom: 0; }
    .guide-body .article-table--comparison tr:nth-child(even) td { background: #fff; }
    .guide-body .article-table--comparison tr:nth-child(even) td:first-child { background: #e9f1ec; }
    .article-table--comparison td:not(:first-child)::before { display: block; margin-bottom: 4px; content: attr(data-label); color: #2e7169; font: 700 14px/1.65 Inter, 'Noto Sans Devanagari', sans-serif; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
}
