/* Public consultation, technical articles, and downloads.
   Load after style.css, cooperate-validation.css, and page-local styles.
   Full-width desktop layout at 1920px and above remains unchanged.
   The shared mobile navigation occupies normal document flow. */
@media (min-width: 1201px) and (max-width: 1919px) {
    .tech-page .tech-inner,
    .cooperate-page .cooperate-inner {
        width: 1400px;
        max-width: 100%;
        min-width: 0;
        margin: 0 auto;
        padding-right: clamp(24px, 3vw, 60px);
        padding-left: clamp(24px, 3vw, 60px);
    }

    .download-page .dl-container {
        max-width: 100%;
        transform: none !important;
    }
}

@media (max-width: 1200px) {
    .tech-page,
    .cooperate-page {
        padding: 28px 0 48px;
        min-height: 0;
    }

    .tech-inner,
    .cooperate-inner {
        width: 100%;
        max-width: 100%;
        min-width: 0;
        margin: 0 auto;
        padding: 0 24px;
    }

    .tech-title,
    .cooperate-title {
        font-size: clamp(26px, 3.4vw, 36px);
        line-height: 1.4;
        letter-spacing: 1px;
        margin-bottom: 32px;
        overflow-wrap: anywhere;
    }

    .tech-grid {
        gap: 32px;
        min-width: 0;
    }

    .tech-list,
    .tech-body,
    .tech-side {
        min-width: 0;
        max-width: 100%;
    }

    .tech-item {
        gap: 10px;
        min-width: 0;
    }

    .tech-head,
    .tech-link {
        max-width: 100%;
        overflow-wrap: anywhere;
        word-break: normal;
    }

    .tech-photo {
        max-width: 100%;
    }

    .tech-photo img {
        width: 100%;
        height: auto;
    }

    .cooperate-form {
        min-width: 0;
        gap: 28px;
    }

    .cooperate-form .form-row {
        gap: 20px;
    }

    .cooperate-form .form-group,
    .cooperate-form .form-block {
        min-width: 0;
        max-width: 100%;
    }

    .cooperate-form .form-input,
    .cooperate-form .inline-input,
    .cooperate-form textarea {
        min-width: 0;
        max-width: 100%;
        font-size: 16px;
    }

    .cooperate-form .form-input {
        width: 100%;
        min-height: 48px;
    }

    .cooperate-form textarea {
        width: 100%;
        min-height: 140px;
        padding: 12px;
        resize: vertical;
    }

    .cooperate-form .form-label,
    .cooperate-form .form-label-block {
        overflow-wrap: anywhere;
        line-height: 1.6;
    }

    .cooperate-form .checkbox-group {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .cooperate-form .checkbox-item {
        min-width: 0;
        max-width: 100%;
        min-height: 48px;
        padding: 10px 12px;
        border-radius: 10px;
        display: grid;
        grid-template-columns: 20px minmax(0, 1fr);
        gap: 8px 10px;
        align-items: center;
        line-height: 1.6;
    }

    .cooperate-form .checkbox-item > span {
        min-width: 0;
        overflow-wrap: anywhere;
    }

    .cooperate-form .checkbox-item input[type="checkbox"] {
        width: 20px;
        height: 20px;
        margin: 0;
    }

    .cooperate-form .inline-input {
        grid-column: 2;
        width: 100%;
        height: 44px;
        padding: 8px 10px;
        border-radius: 6px;
    }

    .cooperate-form .payment-notice {
        padding: 16px;
    }

    .cooperate-form .notice-text {
        min-width: 0;
        overflow-wrap: anywhere;
    }

    .cooperate-form .form-split {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        gap: 24px;
        padding: 24px;
    }

    .cooperate-form .bank-info,
    .cooperate-form .bank-item {
        min-width: 0;
        max-width: 100%;
        overflow-wrap: anywhere;
    }

    .cooperate-form .bank-value {
        overflow-wrap: anywhere;
    }

    .cooperate-form .bank-account {
        letter-spacing: 1px;
    }

    .cooperate-form .qr-code-wrap {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 24px;
        width: 100%;
        max-width: 360px;
        justify-self: center;
    }

    .cooperate-form .qr-item {
        min-width: 0;
        max-width: 100%;
    }

    .cooperate-form .qr-box {
        width: 100%;
        max-width: 160px;
        height: auto;
        aspect-ratio: 1;
        padding: 4px;
    }

    .cooperate-form .qr-box img {
        width: 100%;
        height: 100%;
        object-fit: contain;
    }

    .cooperate-form .submit-row {
        gap: 16px;
        flex-wrap: wrap;
        padding-top: 4px;
    }

    .cooperate-form .submit-btn {
        flex: 1 1 180px;
        min-width: 0;
        max-width: 280px;
        min-height: 48px;
        padding: 12px 20px;
        font-size: 16px;
        line-height: 1.4;
        touch-action: manipulation;
    }

    /* Existing download main and container carry inline desktop offsets. */
    .download-page {
        padding-top: 0 !important;
    }

    .dl-container {
        width: 100%;
        max-width: 100%;
        min-width: 0;
        margin: 0 auto;
        padding: 28px 24px 48px;
        transform: none !important;
    }

    .dl-title {
        font-size: 32px;
        line-height: 1.4;
        letter-spacing: 1px;
    }

    .dl-sub {
        margin-bottom: 24px;
        line-height: 1.8;
        overflow-wrap: anywhere;
    }

    .dl-grid,
    .dl-info {
        min-width: 0;
        max-width: 100%;
    }

    .dl-item {
        display: grid;
        grid-template-columns: 44px minmax(0, 1fr) auto;
        gap: 16px;
        padding: 16px;
        min-width: 0;
    }

    .dl-name {
        white-space: normal;
        overflow: visible;
        text-overflow: clip;
        overflow-wrap: anywhere;
        word-break: normal;
        line-height: 1.7;
    }

    .dl-meta {
        line-height: 1.7;
        overflow-wrap: anywhere;
    }

    .dl-btn,
    .dl-ask-btn {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-height: 44px;
        line-height: 1.4;
        touch-action: manipulation;
    }

    .dl-ask {
        margin-top: 28px;
        padding: 24px;
    }

    .dl-ask-input {
        min-width: 0;
        min-height: 48px;
        font-size: 16px;
    }

    .dl-toast {
        max-width: calc(100vw - 32px);
        width: max-content;
        bottom: 20px;
        padding: 12px 18px;
        text-align: center;
        line-height: 1.6;
        overflow-wrap: anywhere;
    }

    .tech-head:focus-visible,
    .tech-link:focus-visible,
    .dl-btn:focus-visible,
    .dl-ask-btn:focus-visible,
    .cooperate-form .submit-btn:focus-visible {
        outline: 3px solid #4a8de5;
        outline-offset: 3px;
    }
}

@media (max-width: 640px) {
    .tech-page,
    .cooperate-page {
        padding-top: 24px;
        padding-bottom: 36px;
    }

    .tech-inner,
    .cooperate-inner {
        padding-right: 16px;
        padding-left: 16px;
    }

    .tech-title,
    .cooperate-title {
        font-size: 26px;
        letter-spacing: 0;
        margin-bottom: 24px;
    }

    .tech-grid {
        gap: 28px;
    }

    .tech-list {
        gap: 18px;
    }

    .tech-num {
        width: 22px;
        font-size: 16px;
        line-height: 1.75;
        padding-top: 4px;
    }

    .tech-head {
        display: block;
        min-height: 44px;
        padding: 4px 0;
        font-size: 16px;
        line-height: 1.75;
    }

    .cooperate-form {
        gap: 24px;
    }

    .cooperate-form .form-row {
        flex-direction: column;
        gap: 20px;
    }

    .cooperate-form .checkbox-group {
        grid-template-columns: minmax(0, 1fr);
        gap: 10px;
    }

    .cooperate-form .form-split {
        padding: 16px;
        gap: 20px;
    }

    .cooperate-form .bank-item {
        display: flex;
        flex-direction: column;
        gap: 2px;
    }

    .cooperate-form .bank-title {
        margin-bottom: 6px;
    }

    .cooperate-form .qr-code-wrap {
        gap: 12px;
    }

    .cooperate-form .submit-row {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }

    .cooperate-form .submit-btn {
        flex: none;
        width: 100%;
        max-width: none;
        height: auto;
        letter-spacing: 1px;
    }

    #cooperateForm .cooperate-validation-hint,
    #cooperateForm .cooperate-validation-error {
        font-size: 13px;
    }

    #cooperateForm .cooperate-validation-summary {
        font-size: 14px;
        padding: 12px;
    }

    .dl-container {
        padding: 24px 16px 36px;
    }

    .dl-title {
        font-size: 28px;
    }

    .dl-item {
        grid-template-columns: 36px minmax(0, 1fr);
        gap: 10px 12px;
        align-items: start;
    }

    .dl-icon {
        width: 36px;
        height: 36px;
        font-size: 20px;
    }

    .dl-name {
        font-size: 15px;
        line-height: 1.65;
    }

    .dl-btn {
        grid-column: 2;
        justify-self: start;
        min-width: 96px;
        padding: 10px 20px;
        font-size: 14px;
    }

    .dl-ask {
        padding: 20px 16px;
    }

    .dl-ask-title {
        line-height: 1.6;
        overflow-wrap: anywhere;
    }

    .dl-ask-row {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }

    .dl-ask-input,
    .dl-ask-btn {
        width: 100%;
        max-width: 100%;
    }

    .dl-ask-btn {
        min-height: 48px;
        font-size: 16px;
    }
}

@media (max-width: 360px) {
    .tech-inner,
    .cooperate-inner {
        padding-right: 12px;
        padding-left: 12px;
    }

    .cooperate-title {
        font-size: 24px;
    }

    .cooperate-form .form-input {
        padding-right: 12px;
        padding-left: 12px;
    }

    .cooperate-form .payment-notice,
    .cooperate-form .form-split {
        padding: 14px;
    }

    .cooperate-form .qr-code-wrap {
        grid-template-columns: minmax(0, 1fr);
        gap: 20px;
    }

    .cooperate-form .qr-box {
        max-width: 180px;
    }

    .dl-container {
        padding-right: 12px;
        padding-left: 12px;
    }

    .dl-item {
        padding: 12px;
        gap: 8px 10px;
    }
}
