/* Phone hardening for generic 246-format species guides only.
   /kus/246 uses its frozen template and never loads this file. */
#species-observation-guide .species-tabs-arrow { display: none; }
@media (max-width: 760px) {
    /* Long species names in the protected watermark must not establish the
       intrinsic width of the plate grid on narrow screens. */
    #detail-field-plate-card .field-plate-layout,
    #detail-field-plate-card .field-plate-layout > *,
    #detail-field-plate-card #field-plate-canvas {
        min-width: 0;
        max-width: 100%;
    }
    #detail-field-plate-card #field-plate-canvas { width: 100%; }
    #detail-field-plate-card .plate-diag-panel,
    #detail-field-plate-card .plate-nav-stepper,
    #detail-field-plate-card .plate-toggle-group-bottom,
    #detail-field-plate-card .plate-copy-watermark {
        min-width: 0;
        max-width: 100%;
        box-sizing: border-box;
    }
    #detail-field-plate-card .plate-diag-panel { width: 100%; padding: 16px 13px; overflow: hidden; }
    #detail-field-plate-card .plate-copy-watermark { width: 100%; overflow: hidden; }
    #detail-field-plate-card .plate-nav-stepper { width: 100%; gap: 5px; }
    #detail-field-plate-card .plate-step-btn { flex: 0 1 auto; min-width: 0; padding: 7px 9px; gap: 4px; }
    #detail-field-plate-card .plate-step-dots { flex: 1 1 auto; min-width: 0; justify-content: center; gap: 3px; }
    #detail-field-plate-card .plate-step-dot { flex: 0 1 8px; min-width: 5px; }
    #detail-field-plate-card .plate-step-dot.active { flex-basis: 14px; width: 14px; }
    #detail-field-plate-card .plate-toggle-group-bottom { width: 100%; overflow-x: auto; overflow-y: hidden; }
    #detail-field-plate-card .plate-toggle-group-bottom .plate-toggle-btn { min-width: 0; overflow-wrap: anywhere; }
    #species-observation-guide.ref246-guide {
        width: 100%;
        max-width: 100%;
        padding: 18px 13px;
        overflow: hidden;
        border: 0;
        border-radius: 0;
        background: #fff;
        box-shadow: none;
    }
    #species-observation-guide .ref246-subsection,
    #species-observation-guide .ref246-sources {
        border-color: transparent;
        border-radius: 0;
        background: #fff;
        box-shadow: none;
    }
    #species-observation-guide .ref246-spotlight { background: #fff; }
    #species-observation-guide .ref246-guide-head { gap: 10px; align-items: center; text-align: center; }
    #species-observation-guide .ref246-guide-head > div { width: 100%; }
    #species-observation-guide .ref246-guide-head .section-title { display: block; text-align: center; }
    #species-observation-guide .ref246-guide-head .section-title::after { display: none; }
    #species-observation-guide .species-tabs-arrow span { font: 30px/1 Arial, sans-serif; }
    #species-observation-guide .ref246-guide-head .section-title {
        font-size: clamp(1.28rem, 6vw, 1.65rem);
        line-height: 1.14;
    }
    #species-observation-guide .ref246-eyebrow {
        max-width: 100%;
        line-height: 1.35;
        white-space: normal;
        justify-content: center;
    }
    #species-observation-guide .ref246-guide-badge { align-self: center; }
    #species-observation-guide .species-tabs-carousel { display: grid; grid-template-columns: 32px minmax(0, 1fr) 32px; align-items: center; gap: 5px; margin-top: 18px; }
    #species-observation-guide .species-tabs-arrow { display: flex; align-items: center; justify-content: center; width: 32px; min-height: 44px; padding: 0; border: 1px solid #c8dbce; border-radius: 10px; background: #edf7f0; color: #30634a; cursor: pointer; }
    #species-observation-guide .species-tabs-arrow:disabled { opacity: .3; cursor: default; }
    #species-observation-guide .species-tabs-arrow:focus-visible { outline: 2px solid #30634a; outline-offset: 2px; }
    #species-observation-guide .ref246-tabs {
        width: 100%;
        display: flex;
        box-sizing: border-box;
        margin-top: 0;
        max-width: 100%;
        flex-wrap: nowrap;
        gap: 5px;
        padding: 0;
        scrollbar-width: none;
        scroll-snap-type: x mandatory;
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
    }
    #species-observation-guide .ref246-tab {
        flex: 0 0 calc((100% - 5px) / 2);
        min-width: 0;
        max-width: none;
        box-sizing: border-box;
        gap: 5px;
        padding: 8px 9px;
        font-size: 0.68rem;
        white-space: nowrap;
    }
    #species-observation-guide .ref246-quick-head { gap: 8px; flex-direction: column; align-items: center; text-align: center; }
    #species-observation-guide .ref246-quick-head > div { width: 100%; }
    #species-observation-guide .ref246-quick-kicker { justify-content: center; }
    #species-observation-guide .ref246-quick-head h3 { text-align: center; }
    #species-observation-guide .ref246-quick-rule { white-space: normal; align-self: center; text-align: center; }
    #species-observation-guide .ref246-quick-grid article {
        min-height: 92px;
        grid-template-columns: 36px minmax(0, 1fr);
        align-items: center;
        align-content: center;
        gap: 10px;
        padding: 13px 12px;
    }
    #species-observation-guide .ref246-quick-grid article > i {
        width: 36px;
        height: 36px;
    }
    #species-observation-guide .ref246-quick-grid article > div {
        display: contents;
        min-width: 0;
    }
    #species-observation-guide .ref246-quick-grid strong {
        grid-column: 1 / -1;
        grid-row: 1;
        box-sizing: border-box;
        width: 100%;
        margin: 0;
        padding: 0 42px;
        text-align: center;
        line-height: 1.3;
        white-space: normal;
        overflow-wrap: anywhere;
    }
    #species-observation-guide .ref246-quick-grid p {
        grid-column: 2;
        grid-row: 2;
        text-align: center;
    }
    #species-observation-guide .ref246-quick-grid article > i {
        grid-column: 1;
        grid-row: 1 / 3;
        align-self: center;
    }
    #species-observation-guide .ref246-quick-num {
        right: 8px;
        bottom: -7px;
        font-size: 2.35rem;
    }
    #species-observation-guide .ref246-tool-head {
        align-items: flex-start;
        flex-wrap: wrap;
        row-gap: 5px;
    }
    #species-observation-guide .ref246-tool-head span {
        min-width: 0;
        line-height: 1.3;
    }
    #species-observation-guide .ref246-tool-head small { flex: 0 0 auto; }
    #species-observation-guide .ref246-sex-tool .ref246-tool-head { flex-direction: column; align-items: center; text-align: center; gap: 7px; }
    #species-observation-guide .ref246-sex-tool .ref246-tool-head small { order: -1; }
    #species-observation-guide .ref246-sex-tool .ref246-tool-head > span { width: 100%; justify-content: center; text-align: center; }
    #species-observation-guide .ref246-flight-tool .ref246-tool-head { flex-direction: column; align-items: center; text-align: center; gap: 7px; }
    #species-observation-guide .ref246-flight-tool .ref246-tool-head > span { width: 100%; justify-content: center; text-align: center; }
    #species-observation-guide .ref246-flight-tool .ref246-tool-head > small { align-self: center; text-align: center; }
    #species-observation-guide .ref246-now-card { display: grid; grid-template-columns: 38px minmax(0,1fr) 38px; align-items: center; text-align: center; }
    #species-observation-guide .ref246-now-card::after { grid-column: 3; width: 38px; height: 38px; content: ""; }
    #species-observation-guide .ref246-now-card > .ref246-now-icon { grid-column: 1; }
    #species-observation-guide .ref246-now-card > div:not(.ref246-now-icon) { grid-column: 2; width: 100%; text-align: center; }
    #species-observation-guide .ref246-now-card > div > span { display: block; text-align: center; }
    #species-observation-guide .ref246-now-card h4,
    #species-observation-guide .ref246-now-card p { text-align: center; }
    #species-observation-guide .ref246-check-head { display: grid; grid-template-columns: 43px minmax(0,1fr) 43px; align-items: center; text-align: center; }
    #species-observation-guide .ref246-check-head::before { grid-column: 1; width: 43px; height: 1px; content: ""; }
    #species-observation-guide .ref246-check-head > div { grid-column: 2; width: 100%; text-align: center; }
    #species-observation-guide .ref246-check-head > div > span { display: block; text-align: center; }
    #species-observation-guide .ref246-check-head h4 { text-align: center; }
    #species-observation-guide .ref246-check-head > strong { grid-column: 3; }
    #species-observation-guide .ref246-dyk { display: grid; grid-template-columns: 28px minmax(0,1fr) 28px; align-items: start; text-align: center; }
    #species-observation-guide .ref246-dyk::after { grid-column: 3; width: 28px; height: 1px; content: ""; }
    #species-observation-guide .ref246-dyk > i { grid-column: 1; }
    #species-observation-guide .ref246-dyk > div { grid-column: 2; width: 100%; }
    #species-observation-guide .ref246-dyk strong { display: block; text-align: center; }
    #species-observation-guide .ref246-dyk p { text-align: left; }
    #species-observation-guide .ref246-sex-divider { width: 44px; margin-left: -22px; background: transparent; border: 0; box-shadow: none; transform: none; touch-action: none; cursor: ew-resize; user-select: none; }
    #species-observation-guide .ref246-sex-divider::before { content: ''; position: absolute; left: 21px; top: 0; bottom: 0; width: 2px; background: white; box-shadow: 0 0 2px #30634a; }
    #species-observation-guide .ref246-sex-divider:focus-visible { outline: 2px solid #30634a; outline-offset: -2px; }
    #species-observation-guide .ref246-sex-stage,
    #species-observation-guide .ref246-sex-range {
        width: min(calc(100% + 46px), calc(100vw - 32px));
        max-width: none;
        margin-left: 50%;
        margin-right: 0;
        transform: translateX(-50%);
        box-sizing: border-box;
    }
    #species-observation-guide .ref246-sex-range { display: block; }
}

@media (max-width: 430px) {
    #species-observation-guide.ref246-guide { padding: 15px 10px; }
    #species-observation-guide .ref246-subsection,
    #species-observation-guide .ref246-sources { padding: 14px 11px; }
    #species-observation-guide .ref246-tabs { margin-top: 0; }
    #species-observation-guide .ref246-tab {
        min-width: 0;
        min-height: 44px;
        padding-inline: 8px;
        font-size: 0.65rem;
    }
    #species-observation-guide .ref246-quick-head h3 { font-size: 1rem; }
    #species-observation-guide .ref246-quick-grid strong { font-size: 0.78rem; }
    #species-observation-guide .ref246-quick-grid p { font-size: 0.69rem; }
    #species-observation-guide .ref246-sex-stage,
    #species-observation-guide .ref246-flight-stage { height: 190px; }
}
