/* Public knowledge pages: content images and practical, readable workflows */
.story-photo img { border-radius: 10px; }
.story-photo figcaption { text-align: left; }
.hub-visual { margin: 24px 0; }
.hub-visual img { display: block; width: 100%; height: auto; border-radius: 10px; }
.story-lead .kicker { font-size: .82rem; letter-spacing: 0; text-transform: none; }
.story-lead .jump { gap: 0 16px; }
.free-box { border-left: 0; border-radius: 10px; }
.editor-note { border-left: 0; padding: 24px; background: #eef4ef; border-radius: 8px; }
.story-grid { align-items: stretch; }
.card-image img { transition: transform .2s ease; }
@media(hover:hover) { .story-card:hover .card-image img { transform: scale(1.025); } }
@media(prefers-reduced-motion:reduce) { .card-image img { transition: none; } }
.visual-notice { margin: 24px 0; padding: 22px 26px; background: #f5e4ad; border-radius: 8px; display: flex; flex-wrap: wrap; gap: 8px 30px; align-items: center; }
.visual-notice strong { color: var(--torgo-graphite, #414954); font-size: 1.08rem; }
.visual-notice a { margin-left: auto; color: #245f42; font-weight: 700; }
.page-workflow { width: min(100%,1000px); margin: 32px auto 42px; }
.page-workflow h2 { font-size: clamp(1.45rem,3vw,2rem); margin: 0 0 18px; }
.page-workflow ol { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 28px; list-style: none; padding: 0; margin: 0; }
.page-workflow li { position: relative; min-width: 0; padding: 22px; background: #f3deb0; border-radius: 8px; }
.page-workflow li:nth-child(2) { background: #dcebef; }
.page-workflow li:nth-child(3) { background: #eac3b4; }
.page-workflow li:not(:last-child)::after { content: '→'; position: absolute; left: calc(100% + 5px); top: 30px; color: #27654d; font-size: 24px; }
.page-workflow li span { display: block; color: #466052; font-size: .83rem; margin-bottom: 10px; }
.page-workflow li strong { display: block; color: var(--torgo-graphite, #414954); font-size: clamp(1.03rem,1.7vw,1.28rem); line-height: 1.3; overflow-wrap: anywhere; }
.faq-intro { display: grid; grid-template-columns: minmax(0,1.15fr) minmax(0,1fr); gap: clamp(24px,4vw,48px); align-items: center; }
.faq-intro h1 { font-size: clamp(1.85rem,4.5vw,3.4rem); }
.faq-intro .faq-lead { max-width: 42ch; }
.faq-hero { margin: 0; }
.faq-hero img { width: 100%; height: auto; aspect-ratio: 1.35; object-fit: cover; border-radius: 10px; }
.faq-shortcuts { display: flex; flex-wrap: wrap; gap: 10px 18px; margin-top: 16px; font-size: .9rem; }
.faq-shortcuts a { display: inline-flex; align-items: center; min-height: 40px; font-weight: 650; }
.training-visual { min-width: 0; }
.training-photo { margin: 0 0 16px; }
.training-photo img { width: 100%; height: auto; aspect-ratio: 2.3; object-fit: cover; border-radius: 10px; }
.training-visual .hero-diagram { border-radius: 10px; box-shadow: none; background-image: none; padding: 20px; }
.torgo-info { --page:#f5f7f2; --paper:#fff; --paper-soft:#eef4ee; --text:#213b30; --muted:#516459; --accent:#176443; --border:#d4e0d6; --note:#f6e7b8; }
.torgo-info .guide { width: min(1100px,100%); }
.torgo-info .guide-header { text-align: left; display: grid; grid-template-columns: minmax(0,1fr) minmax(0,.9fr); gap: 28px; align-items: center; padding: clamp(20px,4vw,40px); }
.torgo-info .guide-header h1 { color:#183b30; font-size:clamp(1.8rem,4vw,3.2rem); line-height:1.14; letter-spacing:-.035em; }
.torgo-info .guide-header p { font-size:1.06rem; margin-top:14px; }
.torgo-info .guide-header,.torgo-info .guide-section { box-shadow:none; }
.torgo-info .guide-header .info-photo { width:100%; height:auto; border-radius:8px; }
.torgo-info .info-brand { display: inline-flex; margin-bottom:20px; }
.torgo-info .info-brand img { width:136px; height:auto; }
.torgo-info .guide-section h2 { font-size:clamp(1.35rem,3vw,2rem); line-height:1.25; }
.torgo-info .methods { grid-template-columns: repeat(2,minmax(0,1fr)); }
.torgo-info .method:last-child:nth-child(odd) { grid-column: 1/-1; }
.torgo-info .note { border-left:0; border-radius:7px; }
.info-flow { margin:26px 0; }
.info-flow img { display:block; width:100%; height:auto; border-radius:8px; }
.info-flow figcaption { margin-top:9px; color:#516459; font-size:.9rem; line-height:1.5; }
.info-public .api-content { max-width:1100px; }
.info-public .api-content h1 { color:#183b30; font-size:clamp(1.8rem,4vw,3.2rem); line-height:1.15; letter-spacing:-.035em; }
.info-api-intro { display:grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap:28px; align-items:center; margin:26px 0; }
.info-api-intro p { font-size:1.08rem; }
.info-api-intro img { width:100%; height:auto; border-radius:8px; }
.info-api-intro .info-free { margin-top:20px; padding:16px 18px; background:#f4e4b4; border-radius:8px; }
.info-api-intro .info-free strong { display:block; margin-bottom:6px; }
@media(max-width:760px) {
    .faq-intro,.torgo-info .guide-header,.info-api-intro { grid-template-columns:1fr; gap:20px; }
    .faq-hero img { aspect-ratio: 1.8; }
    .visual-notice { padding:18px; }
    .visual-notice a { margin-left:0; }
    .page-workflow ol { grid-template-columns:1fr; gap:24px; }
    .page-workflow li { padding:18px; }
    .page-workflow li:not(:last-child)::after { content:'↓'; top:100%; left:50%; transform:translateX(-50%); font-size:21px; line-height:24px; }
    .page-workflow li span { margin-bottom:6px; }
    .training-photo img { aspect-ratio:2; }
    .torgo-info .methods { grid-template-columns:1fr; }
    .torgo-info .guide-header .info-photo { max-height:300px; object-fit:cover; }
    .info-api-intro > img { grid-row: 1; }
}

/* Shared knowledge-page icons, all namespaced to the public presentation */
.knowledge-heading-icon{display:inline-block;width:30px;height:30px;vertical-align:middle;color:#176443;flex:0 0 30px;margin-inline-end:10px}
.toc>a:has(.knowledge-heading-icon){display:flex;align-items:center;gap:8px}
.toc .knowledge-heading-icon{width:24px;height:24px;flex-basis:24px;margin-inline-end:0}
.page-workflow[data-public-icons] .workflow-icon{display:flex;align-items:center;margin-bottom:12px}
.page-workflow[data-public-icons] .workflow-icon svg{width:30px;height:30px;margin:0}
.page-workflow[data-public-icons] li span{margin-top:0}
@media(max-width:640px){.knowledge-heading-icon{width:25px;height:25px;flex-basis:25px}.page-workflow[data-public-icons] .workflow-icon svg{width:26px;height:26px}}

:where(.knowledge-prose, .torgo-info .guide, .info-public) {
    --knowledge-title-marker: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 6a6 6 0 0 0-4-1.5H3v14h5a6 6 0 0 1 4 1.5 6 6 0 0 1 4-1.5h5v-14h-5A6 6 0 0 0 12 6v14'/%3E%3C/svg%3E");
    --knowledge-text-marker: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 5h14M5 10h14M5 15h14M5 20h8'/%3E%3C/svg%3E");
    --knowledge-marker-color: #176443;
}

:where(.knowledge-prose, .torgo-info .guide, .info-public)
    :is(h1, h2, h3, h4, h5, h6, p):where(:not(:empty, [hidden], .sr-only, .visually-hidden, :has(svg:not(.knowledge-heading-icon)))) {
    --knowledge-icon-size: clamp(.8125rem, 1.09em, 1.75rem);
    position: relative;
    padding-inline-start: calc(var(--knowledge-icon-size) + .52em);
}

:where(.knowledge-prose, .torgo-info .guide, .info-public)
    :is(h1, h2, h3, h4, h5, h6, p):where(:not(:empty, [hidden], .sr-only, .visually-hidden, :has(svg)))::before,
:where(.knowledge-prose, .torgo-info .guide, .info-public) :is(h1, h2, h3, h4, h5, h6, p) > svg.knowledge-heading-icon {
    position: absolute;
    inset-inline-start: 0;
    inset-block-start: calc((1lh - var(--knowledge-icon-size)) / 2);
    inline-size: var(--knowledge-icon-size);
    block-size: var(--knowledge-icon-size);
    margin: 0;
}

:where(.knowledge-prose, .torgo-info .guide, .info-public)
    :is(h1, h2, h3, h4, h5, h6, p):where(:not(:empty, [hidden], .sr-only, .visually-hidden, :has(svg)))::before {
    content: "";
    background-color: var(--knowledge-marker-color);
    mask: var(--knowledge-prose-marker, var(--knowledge-title-marker)) center / contain no-repeat;
}

:where(.knowledge-prose, .torgo-info .guide, .info-public) p {
    --knowledge-prose-marker: var(--knowledge-text-marker);
}

.knowledge-prose .story .story-lead .kicker {
    background: none;
    padding: 0;
    padding-inline-start: calc(var(--knowledge-icon-size) + .52em);
}

@media (max-width: 420px) {
    .knowledge-prose .library .section-heading {
        flex-wrap: wrap;
    }
}
