/* Fullwidth generator — scoped to .page-wide-text only */

.page-wide-text .visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.page-wide-text .wide-page {
    max-width: 42rem;
    margin: 0 auto;
    padding: 1rem 1rem 0;
    flex: 1;
    width: 100%;
    box-sizing: border-box;
}

.page-wide-text .wide-page-intro {
    text-align: center;
    margin-bottom: 1.25rem;
}

.page-wide-text .wide-page-intro h1 {
    font-size: 1.5rem;
    font-weight: 800;
    color: #111827;
    margin: 0 0 0.5rem;
    letter-spacing: -0.02em;
    line-height: 1.25;
}

.page-wide-text .wide-page-lead {
    font-size: 0.9375rem;
    line-height: 1.55;
    color: #4b5563;
    margin: 0;
    max-width: 36rem;
    margin-left: auto;
    margin-right: auto;
}

.page-wide-text .wide-converter {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    padding: 1rem;
    border: 1px solid #e5e7eb;
}

.page-wide-text .wide-mode-toggle {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.page-wide-text .wide-mode-btn {
    flex: 1 1 8rem;
    min-height: 44px;
    padding: 0.625rem 1rem;
    font-size: 0.875rem;
    font-weight: 600;
    font-family: inherit;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    background: #f9fafb;
    color: #374151;
    cursor: pointer;
    transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.page-wide-text .wide-mode-btn:hover {
    border-color: #93c5fd;
    background: #eff6ff;
}

.page-wide-text .wide-mode-btn:focus-visible {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.35);
}

.page-wide-text .wide-mode-btn[aria-pressed="true"] {
    border-color: #3b82f6;
    background: #dbeafe;
    color: #1e40af;
}

.page-wide-text .wide-field {
    margin-bottom: 1rem;
}

.page-wide-text .wide-field-label {
    display: block;
    font-size: 0.8125rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.375rem;
}

.page-wide-text .wide-input,
.page-wide-text .wide-output {
    width: 100%;
    box-sizing: border-box;
    font-size: 1rem;
    font-family: 'Inter', sans-serif;
    line-height: 1.5;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.page-wide-text .wide-input {
    min-height: 7rem;
    padding: 0.75rem;
    resize: vertical;
    background: #ffffff;
    color: #111827;
}

.page-wide-text .wide-input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.page-wide-text .wide-input::placeholder {
    color: #9ca3af;
}

.page-wide-text .wide-output-wrap {
    position: relative;
}

.page-wide-text .wide-output {
    min-height: 5rem;
    max-height: 16rem;
    overflow-x: auto;
    overflow-y: auto;
    padding: 0.75rem;
    margin: 0;
    background: #f9fafb;
    color: #111827;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    word-break: break-word;
    font-weight: 500;
}

.page-wide-text .wide-output:focus-visible {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.35);
}

.page-wide-text .wide-output.is-empty {
    color: #9ca3af;
    font-weight: 400;
    font-style: italic;
}

.page-wide-text .wide-output.is-example-hint {
    color: #6b7280;
    font-weight: 400;
}

.page-wide-text .wide-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
    margin-top: 1rem;
}

.page-wide-text .wide-action-btn {
    min-height: 44px;
    padding: 0.625rem 1.125rem;
    font-size: 0.875rem;
    font-weight: 600;
    font-family: inherit;
    border-radius: 8px;
    cursor: pointer;
    border: none;
    transition: background 0.15s ease, box-shadow 0.15s ease;
}

.page-wide-text .wide-action-btn:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.35);
}

.page-wide-text .wide-copy-btn {
    grid-column: 1 / -1;
    width: 100%;
    background: #3b82f6;
    color: #ffffff;
}

.page-wide-text .wide-copy-btn:hover:not(:disabled) {
    background: #2563eb;
}

.page-wide-text .wide-copy-btn:disabled {
    background: #d1d5db;
    color: #6b7280;
    cursor: not-allowed;
}

.page-wide-text .wide-copy-btn.copied {
    background: #10b981;
}

.page-wide-text .wide-secondary-btn {
    background: #ffffff;
    color: #374151;
    border: 2px solid #e5e7eb;
}

.page-wide-text .wide-secondary-btn:hover {
    border-color: #d1d5db;
    background: #f9fafb;
}

.page-wide-text .wide-example-btn {
    background: #f3f4f6;
    color: #1f2937;
    border: 2px solid transparent;
}

.page-wide-text .wide-example-btn:hover {
    background: #e5e7eb;
}

.page-wide-text .wide-copy-status {
    min-height: 1.25rem;
    margin-top: 0.75rem;
    font-size: 0.8125rem;
    color: #059669;
}

.page-wide-text .wide-copy-status.is-error {
    color: #b45309;
}

.page-wide-text .wide-copy-status:empty {
    display: none;
}

.page-wide-text .wide-tech-details {
    margin: 1.25rem 0 1.75rem;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: #ffffff;
    padding: 0.25rem 0.875rem 0.875rem;
}

.page-wide-text .wide-tech-details summary {
    cursor: pointer;
    font-weight: 600;
    font-size: 0.875rem;
    color: #374151;
    padding: 0.625rem 0.25rem;
    list-style-position: inside;
}

.page-wide-text .wide-tech-details summary:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.35);
    border-radius: 4px;
}

.page-wide-text .wide-tech-details-body {
    font-size: 0.875rem;
    color: #4b5563;
    line-height: 1.55;
}

.page-wide-text .wide-tech-details-body p {
    margin: 0 0 0.75rem;
}

.page-wide-text .wide-tech-details-body p:last-child {
    margin-bottom: 0;
}

.page-wide-text .wide-comparison {
    display: grid;
    gap: 0.75rem;
    margin: 1rem 0 1.75rem;
}

.page-wide-text .wide-comparison-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 0.875rem 1rem;
}

.page-wide-text .wide-comparison-title {
    margin: 0 0 0.5rem;
    font-size: 0.8125rem;
    font-weight: 700;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.page-wide-text .wide-comparison-sample {
    margin: 0 0 0.5rem;
    font-size: 1.5rem;
    font-weight: 600;
    color: #111827;
    line-height: 1.35;
    white-space: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    user-select: text;
}

.page-wide-text .wide-comparison-sample:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.35);
    border-radius: 4px;
}

.page-wide-text .wide-comparison-note {
    margin: 0;
    font-size: 0.8125rem;
    line-height: 1.45;
    color: #4b5563;
}

.page-wide-text .wide-usage {
    display: grid;
    gap: 1rem;
    margin: 1rem 0 0;
}

.page-wide-text .wide-usage-item h3 {
    margin: 0 0 0.35rem;
    font-size: 1rem;
    color: #111827;
}

.page-wide-text .wide-usage-item p {
    margin: 0;
}

.page-wide-text .wide-usage-item a {
    color: #2563eb;
    text-decoration: underline;
}

.page-wide-text .wide-usage-item a:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.35);
    border-radius: 2px;
}

/* FAQ buttons on this page: keep shared look, add keyboard focus */
.page-wide-text .faq-question {
    width: 100%;
    background: transparent;
    border: none;
    text-align: left;
    font: inherit;
    font-weight: 600;
    cursor: pointer;
}

.page-wide-text .faq-question:focus-visible {
    outline: none;
    box-shadow: inset 0 0 0 3px rgba(59, 130, 246, 0.35);
    border-radius: 6px;
}

.page-wide-text .faq-answer[hidden] {
    display: none;
}

.page-wide-text .faq-item.open .faq-answer {
    max-height: none;
}

@media (min-width: 640px) {
    .page-wide-text .wide-page {
        padding: 1.5rem 1.5rem 0;
    }

    .page-wide-text .wide-page-intro h1 {
        font-size: 2.1rem;
    }

    .page-wide-text .wide-converter {
        padding: 1.25rem 1.5rem;
    }

    .page-wide-text .wide-actions {
        display: flex;
        flex-wrap: wrap;
    }

    .page-wide-text .wide-copy-btn {
        grid-column: auto;
        flex: 1 1 10rem;
        width: auto;
    }

    .page-wide-text .wide-secondary-btn,
    .page-wide-text .wide-example-btn {
        flex: 1 1 8rem;
    }

    .page-wide-text .wide-comparison {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 0.75rem;
    }

    .page-wide-text .wide-comparison-sample {
        font-size: 1.625rem;
    }
}

@media (min-width: 1024px) {
    .page-wide-text .wide-page-intro h1 {
        font-size: 2.25rem;
    }
}
