/* ==========================================================================
   Editorial Policy Page Stylesheet
   ========================================================================== */

/* Container & General Setup */
.ed-policy-section {
    padding: clamp(100px, 12vw, 140px) 0 clamp(40px, 6vw, 80px);
    background-color: #ffffff;
    line-height: 1.6;
}

/* Constrain to a clean, readable content width matching design */
.ed-policy-section .container,
.ed-policy-section .mg-container,
.ed-policy-form-section .mg-container {
    max-width: 1640px;
    box-sizing: border-box;
}

.ed-policy-cta-section .mg-container {
    max-width: 1180px;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.ed-policy-hero {
    margin-bottom: clamp(40px, 8vw, 80px);
    max-width: 1080px;
    width: 100%;
}

.ed-policy-hero .ed-policy-title {
    color: #000000;
    font-size: clamp(34px, 4.5vw, 52px);
    font-weight: 500;
    margin-bottom: 16px;
    line-height: 120%;
}

.ed-policy-hero .ed-policy-subtitle {
    color: #666;
    font-size: clamp(16px, 2vw, 18px);
    font-weight: 400;
    line-height: 150%;
    margin-bottom: 24px;
}

.ed-policy-hero .ed-policy-subtitle p {
    color: inherit;
    font-size: inherit;
    line-height: inherit;
    margin-bottom: 14px;
}

.ed-policy-hero .ed-policy-subtitle p:last-child {
    margin-bottom: 0;
}

.ed-policy-hero .ed-policy-last-updated {
    color: #8A8A8A;
    font-size: 14px;
    font-weight: 400;
    line-height: 18px;
    border-radius: 50px;
    background: #F4F4F4;
    display: inline-block;
    padding: 6px 12px;
    align-items: flex-start;
}

/* ==========================================================================
   Main 2-Column Layout
   ========================================================================== */
.ed-policy-content-wrapper {
    display: flex;
    gap: clamp(40px, 5vw, 60px);
    align-items: flex-start;
}

/* Sticky Sidebar */
.ed-policy-sidebar {
    width: 220px;
    flex-shrink: 0;
    position: sticky;
    top: 110px;
    align-self: flex-start;
}

.ed-policy-toc-title {

    margin: 0 0 24px 0;
    color: #666;
    font-size: 14px;
    font-weight: 400;
    line-height: 18px;
}

.ed-policy-toc-list {
    list-style: none;
    padding: 0;
    margin: 0;
    border-left: 2px solid #EAEAEA;
}

.ed-policy-toc-list li {
    margin-bottom: 0;
}

.ed-policy-toc-list a {
    display: block;
    padding: 8px 16px;
    text-decoration: none;
    transition: color 0.2s ease, border-color 0.2s ease;
    border-left: 2px solid transparent;
    margin-left: -2px;
    color: #141211;
    font-size: 14px;
    font-weight: 400;
    line-height: 18px;
}

.ed-policy-toc-list a:hover {
    color: #E21E31;
}

.ed-policy-toc-list a.active {
    color: #E21E31;
    border-left-color: #E21E31;
    font-weight: 500;
}

/* Main Content Area */
.ed-policy-main-content {
    flex-grow: 1;
    min-width: 0;
}

.ed-policy-content-section {
    margin-bottom: clamp(48px, 6vw, 72px);
}

.ed-policy-content-section:last-child {
    margin-bottom: 0;
}

.ed-policy-section-title {
    color: #000000;
    font-size: clamp(24px, 2.5vw, 32px);
    font-weight: 500;
    line-height: 1.25;
    margin-bottom: 12px;
}

.ed-policy-section-desc {
    color: #666;
    font-size: clamp(16px, 2vw, 18px);
    font-weight: 400;
    line-height: 150%;
    margin-bottom: clamp(24px, 5vw, 40px);
}

.ed-policy-section-desc p {
    color: inherit;
    font-size: inherit;
    line-height: inherit;
    margin-bottom: 12px;
}

.ed-policy-section-desc p:last-child {
    margin-bottom: 0;
}

/* ==========================================================================
   Section 1: Our Editorial Process (3-column grid)
   ========================================================================== */
.ed-policy-process-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

@media (max-width: 1024px) {
    .ed-policy-process-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .ed-policy-process-grid {
        grid-template-columns: 1fr;
    }
}

.ed-policy-process-card {
    border-radius: 12px;
    background: #F4F4F4;
    padding: 24px;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
}

.ed-policy-process-card .ed-policy-step-label {
    display: block;
    color: #E21E31;
    font-size: 16px;
    font-weight: 400;
    line-height: 150%;
    margin-bottom: clamp(24px, 4.25vw, 40px);
}

.ed-policy-process-card h4 {
    color: #141211;
    font-size: clamp(18px, 1.5vw, 20px);
    font-weight: 600;
    line-height: 120%;
    margin-bottom: 16px;
}


.ed-policy-process-card p {
    color: #666;
    font-size: clamp(14px, 2vw, 16px);
    font-weight: 400;
    line-height: 150%;
    margin-bottom: 12px;
}

/* ==========================================================================
   Section 2: Transparency
   ========================================================================== */
.ed-policy-text-content,
.ed-policy-text-content p {
    color: #666;
    font-size: clamp(16px, 1.5vw, 18px);
    font-weight: 400;
    line-height: 150%;
    margin-bottom: 12px;
}

.ed-policy-text-content p {
    margin-bottom: 12px;
}

.ed-policy-text-content p:last-child {
    margin-bottom: 0;
}

/* ==========================================================================
   Section 3: Sources We Use (2-column grid + Links + Note)
   ========================================================================== */
.ed-policy-sources-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-bottom: 32px;
}

@media (max-width: 640px) {
    .ed-policy-sources-grid {
        grid-template-columns: 1fr;
    }
}

.ed-policy-source-card {
    padding: 24px;
    border-radius: 12px;
    border: 1px solid #F4F4F4;
    background: #ffffff;
    box-sizing: border-box;
}

.ed-policy-source-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: clamp(26px, 2.5vw, 30px);
    height: clamp(26px, 2.5vw, 30px);
    background-color: #E21E31;
    color: #ffffff;
    font-size: clamp(12px, 1.25vw, 14px);
    font-weight: 600;
    line-height: 1;
    border-radius: 4px;
    margin-bottom: clamp(24px, 4vw, 40px);
}

.ed-policy-source-card h4 {
    color: #141211;
    font-size: clamp(18px, 1.5vw, 20px);
    font-weight: 600;
    line-height: 120%;
    margin-bottom: 12px;
}

.ed-policy-source-card .ed-policy-source-desc,
.ed-policy-source-card .ed-policy-source-desc,
.ed-policy-source-card p {
    color: #666;
    font-size: clamp(14px, 1.5vw, 16px);
    font-weight: 400;
    line-height: 150%;
    margin-bottom: 12px;
}

.ed-policy-source-card p {
    margin-bottom: 0;
}

/* Reference Resources Box */
.ed-policy-sources-links-box {
    border-radius: 8px;
    border: 1px solid #F4F4F4;
    background: #F4F4F4;
    padding: 28px;
    margin-bottom: 20px;
    box-sizing: border-box;
}

.ed-policy-sources-links-box h4 {
    color: #141211;
    font-size: clamp(18px, 1.5vw, 20px);
    font-weight: 600;
    line-height: 120%;
    text-transform: capitalize;
    margin-bottom: 24px;
}

.ed-policy-sources-links-box p {
    color: #666;
    font-size: clamp(14px, 1.5vw, 16px);
    font-weight: 400;
    line-height: 150%;
    margin-bottom: 12px;
}

.ed-policy-sources-links-list {
    list-style: none;
    padding: 0;
    margin: 0 0 16px 0;
}

.ed-policy-sources-links-list li {
    position: relative;
    padding-left: 18px;
    margin-bottom: 14px;
}

.ed-policy-sources-links-list li:last-child {
    margin-bottom: 0;
}

.ed-policy-sources-links-list li::before {
    content: "•";
    color: #E21E31;
    font-size: 18px;
    position: absolute;
    left: 0;
    top: -2px;
}

.ed-policy-sources-links-list li .link-title {
    display: block;
    color: #141211;
    font-size: clamp(14px, 1.5vw, 16px);
    font-weight: 500;
    line-height: 150%;
    margin-bottom: 6px;
}

.ed-policy-sources-links-list a {
    color: #E21E31;
    font-size: clamp(14px, 1.5vw, 16px);
    text-decoration: underline;
    word-break: break-all;
    display: inline-block;
    line-height: 1.4;
}

.ed-policy-view-all-link {
    color: #666;
    font-size: clamp(14px, 1.5vw, 16px);
    font-weight: 500;
    line-height: 150%;
    margin-bottom: 12px;
    margin-top: 10px;
    text-decoration: underline;
    display: inline-block;
    transition: all 0.2s ease;
    padding: 0;
    background: none;
    text-decoration-line: underline;
    text-underline-offset: auto;
    text-underline-position: from-font;
    text-transform: capitalize;
    border: none;
}

.ed-policy-view-all-link:hover {
    color: #E21E31;
    background: transparent;
}

.ed-policy-view-all-link:focus-visible,
.ed-policy-view-all-link:focus {
    outline: 2px solid #E21E31;
    color: #E21E31;
    background: transparent;
}

/* Sources Note */
.ed-policy-sources-note {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    border-radius: 12px;
    background: #F4F4F4;
    padding: 18px 24px;
    color: #666;
    font-size: 14px;
    font-style: normal;
    font-weight: 400;
    line-height: 150%;
}

.ed-policy-sources-note svg {
    min-width: 20px;
    flex-shrink: 0;
    margin-top: 2px;
}

.ed-policy-sources-note p {
    margin-bottom: 8px;
}

.ed-policy-sources-note p:last-child {
    margin-bottom: 0;
}

/* ==========================================================================
   Section 4: Disclaimer Card
   ========================================================================== */
.ed-policy-disclaimer {
    color: #ffffff;
    padding: 24px 24px 48px;
    box-sizing: border-box;
    border-radius: 8px;
    background: #141211;
}

.ed-policy-disclaimer-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.ed-policy-disclaimer-header svg {
    flex-shrink: 0;
}

.ed-policy-disclaimer-header h3 {
    font-size: 20px;
    font-weight: 600;
    line-height: 1.2;
    color: #ffffff;
    margin: 0;
}

.ed-policy-disclaimer-body {
    padding-left: 40px;
}

/* Subheadings inside disclaimer (General Disclaimer, Technical Information, etc.) */
.ed-policy-disclaimer-body h3,
.ed-policy-disclaimer-body h4,
.ed-policy-disclaimer-body h5,
.ed-policy-disclaimer-body p strong {
    color: #ffffff;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.35;
    margin-top: 24px;
    margin-bottom: 6px;
    display: block;
}

.ed-policy-disclaimer-body h3:first-child,
.ed-policy-disclaimer-body h4:first-child,
.ed-policy-disclaimer-body h5:first-child,
.ed-policy-disclaimer-body p:first-child strong {
    margin-top: 0;
}

.ed-policy-disclaimer-body p {
    color: #f4f4f4;
    font-size: 14px;
    font-weight: 400;
    line-height: 150%;
    margin-bottom: 12px;
}

.ed-policy-disclaimer-body p:last-child {
    margin-bottom: 0;
}

/* ==========================================================================
   Form Section ("Report an Error")
   ========================================================================== */
.ed-policy-form-section {
    background-color: #f4f4f4;
    padding: clamp(60px, 7vw, 80px) 0;
    margin-bottom: 0;
}

.ed-policy-form-wrapper {
    display: flex;
    gap: clamp(40px, 5vw, 72px);
    align-items: flex-start;
    justify-content: space-between;
}

.ed-policy-form-content {
    flex: 0 0 42%;
    max-width: 680px;
}

.ed-policy-form-content .ed-policy-section-title {
    font-size: clamp(24px, 3vw, 36px);
    font-weight: 500;
    line-height: 1.25;
    margin-bottom: 16px;
    color: #000;
}

.ed-policy-form-content .ed-policy-section-desc p {
    color: #666;
    font-size: clamp(16px, 2vw, 18px);
    font-weight: 400;
    line-height: 150%;
}

.ed-policy-form-content .ed-policy-section-desc p:last-child {
    margin-bottom: 0;
}

/* Form Card Container */
.ed-policy-form-body {
    flex: 1;
    background-color: #ffffff;
    padding: clamp(24px, 4vw, 40px);
    border-radius: 8px;
    max-width: 640px;
    box-sizing: border-box;
}

/* WPCF7 & Custom Form Structure */
.ed-policy-form-body .wpcf7 form p {
    margin: 0;
    font-size: 14px;
}

.ed-policy-form-body .wpcf7 form p a {
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: color 0.3s ease;
    color: #E21E31;
}

.ed-policy-form-body .wpcf7 form p a:hover {
    color: #E21E31;
}

.ed-policy-form-body .early-access-form,
.ed-policy-form-body .editorial-form {
    display: flex;
    flex-direction: column;
    width: 100%;
    gap: 0;
}

.ed-policy-form-body .early-access-row {
    margin-bottom: 18px;
    width: 100%;
}

.ed-policy-form-body .early-access-row:last-child {
    margin-bottom: 0;
}

.ed-policy-form-body .early-access-field {
    width: 100%;
    display: flex;
    flex-direction: column;
}

.ed-policy-form-body .early-access-field .early-access-field {
    margin: 0;
    padding: 0;
}

/* Form Label Styling */
.ed-policy-form-body .ea-label,
.ed-policy-form-body label {
    display: block;
    font-size: 13.5px;
    font-weight: 500;
    color: #111827;
    margin-bottom: 6px;
    line-height: 1.4;
}

.ed-policy-form-body .ea-label span {
    color: #E21E31;
    font-weight: 600;
    margin-left: 0;
}

/* WPCF7 Form Control Wrapper */
.ed-policy-form-body .wpcf7-form-control-wrap {
    display: flex;
    width: 100%;
    position: relative;
}

/* Input Fields (Text, Email, URL) */
.ed-policy-form-body input[type="text"],
.ed-policy-form-body input[type="email"],
.ed-policy-form-body input[type="url"],
.ed-policy-form-body .early-access-input,
.ed-policy-form-body .wpcf7-text {
    width: 100%;
    height: 48px;
    padding: 0 16px;
    border: 1.5px solid #d1d5db;
    border-radius: 8px;
    background-color: #ffffff;
    font-size: 15px;
    color: #111827;
    box-sizing: border-box;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    font-family: inherit;
}

/* Dropdown / Select Field */
.ed-policy-form-body select,
.ed-policy-form-body .wpcf7-select {
    width: 100%;
    height: 48px;
    padding: 0 40px 0 16px;
    border: 1.5px solid #d1d5db;
    border-radius: 8px;
    background-color: #ffffff;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 18px 18px;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    font-size: 15px;
    color: #4b5563;
    box-sizing: border-box;
    cursor: pointer;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    font-family: inherit;
}

/* Textarea Field */
.ed-policy-form-body textarea,
.ed-policy-form-body .early-access-textarea,
.ed-policy-form-body .wpcf7-textarea {
    width: 100%;
    min-height: 120px;
    height: 125px;
    padding: 12px 16px;
    border: 1.5px solid #d1d5db;
    border-radius: 8px;
    background-color: #ffffff;
    font-size: 15px;
    color: #111827;
    box-sizing: border-box;
    resize: vertical;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    font-family: inherit;
}

/* Placeholder Styling */
.ed-policy-form-body input::placeholder,
.ed-policy-form-body textarea::placeholder {
    color: #9ca3af;
    opacity: 1;
}

/* Focus States */
.ed-policy-form-body input[type="text"]:focus,
.ed-policy-form-body input[type="email"]:focus,
.ed-policy-form-body input[type="url"]:focus,
.ed-policy-form-body .early-access-input:focus,
.ed-policy-form-body select:focus,
.ed-policy-form-body .wpcf7-select:focus,
.ed-policy-form-body textarea:focus,
.ed-policy-form-body .early-access-textarea:focus {
    outline: none;
    border-color: #e31b23;
    color: #000;
}

/* Submit Button & Action Wrapper */
.ed-policy-form-body .early-access-action {
    margin-top: 10px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.ed-policy-form-body input[type="submit"],
.ed-policy-form-body button[type="submit"],
.ed-policy-form-body .early-access-btn,
.ed-policy-form-body .wpcf7-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: #E21E31;
    color: #ffffff !important;
    border: none;
    padding: 13px 34px;
    border-radius: 9999px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
    box-shadow: 0 2px 8px rgba(226, 30, 49, 0.2);
    font-family: inherit;
    line-height: 1.4;
    text-decoration: none;
}

.ed-policy-form-body input[type="submit"]:hover:not(:disabled),
.ed-policy-form-body button[type="submit"]:hover:not(:disabled),
.ed-policy-form-body .early-access-btn:hover:not(:disabled),
.ed-policy-form-body .wpcf7-submit:hover:not(:disabled) {
    background-color: #C01525;
    box-shadow: 0 4px 14px rgba(226, 30, 49, 0.3);
    transform: translateY(-1px);
}

.ed-policy-form-body input[type="submit"]:disabled,
.ed-policy-form-body .early-access-btn:disabled,
.ed-policy-form-body .wpcf7-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.ed-policy-form-body .wpcf7-spinner {
    margin: 0;
}

.ed-policy-form-body .wpcf7-not-valid,
.ed-policy-form-body input.wpcf7-not-valid,
.ed-policy-form-body select.wpcf7-not-valid,
.ed-policy-form-body textarea.wpcf7-not-valid {
    border-color: #dc2626 !important;
    background-color: #ffffff !important;
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.08) !important;
}

.ed-policy-form-body .wpcf7-response-output {
    margin-top: 20px;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 14px;
    line-height: 1.5;
}

/* ==========================================================================
   Editorial Policy CTA Banner Section
   ========================================================================== */
.ed-policy-cta-section {
    position: relative;
    padding: clamp(60px, 7vw, 80px) 0;
    background-color: #ffffff;
    box-sizing: border-box;
}

.ed-policy-cta-card {
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    background-color: #030303;
    background: #030303 radial-gradient(circle at 85% 95%, rgba(220, 38, 38, 0.45) 0%, rgba(140, 15, 25, 0.25) 35%, transparent 70%);
    padding: clamp(56px, 6vw, 80px) clamp(24px, 4vw, 48px);
    text-align: center;
    box-sizing: border-box;
}

.ed-policy-cta-media {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
    overflow: hidden;
}

.ed-policy-cta-media picture,
.ed-policy-cta-media img.ed-policy-cta-bg-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center bottom;
    display: block;
}

.ed-policy-cta-overlay {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.2) 0%, rgba(0, 0, 0, 0) 50%, rgba(0, 0, 0, 0.35) 100%);
}

.ed-policy-cta-content {
    position: relative;
    z-index: 2;
    max-width: 780px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.ed-policy-cta-title {
    font-size: clamp(28px, 3.5vw, 40px);
    font-weight: 500;
    line-height: 1.25;
    color: #ffffff;
    margin: 0 0 24px 0;
    font-family: inherit;
}

.ed-policy-cta-desc {
    font-size: clamp(16px, 2vw, 18px);
    line-height: 1.6;
    color: #ffffff;
    margin: 0 0 28px 0;
    max-width: 920px;
    font-weight: 400;
}

.ed-policy-cta-desc p {
    margin: 0 0 10px;
    color: inherit;
}

.ed-policy-cta-desc p:last-child {
    margin-bottom: 0;
}

.ed-policy-cta-btn-wrap {
    display: flex;
    justify-content: center;
    width: 100%;
}

.ed-policy-cta-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 28px;
    background-color: #E21E31;
    color: #ffffff !important;
    font-weight: 500;
    font-size: clamp(14px, 2vw, 14x);
    border-radius: 99px;
    text-decoration: none !important;
    cursor: pointer;
    border: none;
    transition: all 0.25s ease;
    font-family: inherit;
}

.ed-policy-cta-btn:hover {
    background-color: #C01525;
    transform: translateY(-2px);
    color: #ffffff !important;
}

.ed-policy-cta-btn:active {
    transform: translateY(0);
}

.ed-policy-cta-btn .btn-arrow {
    display: inline-flex;
    align-items: center;
    line-height: 1;
    transition: transform 0.2s ease;
}

.ed-policy-cta-btn .btn-arrow svg {
    display: inline-block;
    width: 20px;
    height: 20px;
    vertical-align: middle;
}

.ed-policy-cta-btn:hover .btn-arrow {
    transform: translateX(4px);
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */
@media (max-width: 992px) {
    .ed-policy-content-wrapper {
        flex-direction: column;
        gap: 40px;
    }

    .ed-policy-sidebar {
        display: none;
    }

    .ed-policy-section {
        padding-inline: 0;
    }

    .ed-policy-form-wrapper {
        flex-direction: column;
        gap: 16px;
    }

    .ed-policy-form-content {
        max-width: 100%;
        flex: none;
    }

    .ed-policy-form-section {
        padding-inline: 0;
        margin-bottom: 0;
    }

    .ed-policy-form-body {
        padding: 32px 24px;
        border-radius: 12px;
        max-width: 100%;
        width: 100%;
    }

    .ed-policy-form-body .early-access-form,
    .ed-policy-form-body .editorial-form {
        gap: 0;
    }
}

@media (max-width: 640px) {
    .ed-policy-disclaimer {
        padding: 24px 20px;
    }

    .ed-policy-cta-section {
        padding: 60px 0;
    }

    .ed-policy-cta-card {
        padding: 44px 20px;
    }

    .ed-policy-cta-btn {
        width: 100%;
        max-width: 300px;
        padding: 13px 24px;
        font-size: 15px;
    }

    .ed-policy-form-body input[type="submit"],
    .ed-policy-form-body button[type="submit"],
    .ed-policy-form-body .early-access-btn,
    .ed-policy-form-body .wpcf7-submit {
        width: 100%;
        max-width: 100%;
    }
}