/* ========================================
   STATIC PAGE TEMPLATE STYLES
   Clean, professional styling for static content pages
======================================== */

/* Container */
.static-page-container {
    background: #f8f9fa;
    min-height: 100vh;
    padding: 2rem 0;
}

.static-page-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    line-height: 1.7;
}

/* Header */
.static-page-header {
    margin-bottom: 2rem;
    text-align: center;
    padding: 2rem;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border: 1px solid #e9ecef;
}

.static-page-title {
    font-size: 2.2rem;
    font-weight: 700;
    color: #212529;
    margin: 0 0 1rem 0;
    line-height: 1.3;
}


/* Content */
.static-page-content {
    background: #fff;
    border-radius: 8px;
    padding: 2.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border: 1px solid #e9ecef;
    font-size: 1.05rem;
    color: #495057;
    line-height: 1.7;
    margin-bottom: 2rem;
}

.static-page-content h2 {
    font-size: 1.8rem;
    font-weight: 600;
    color: #212529;
    margin: 2.5rem 0 1.5rem 0;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #dee2e6;
}

.static-page-content h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #212529;
    margin: 2rem 0 1rem 0;
    padding-left: 1rem;
    border-left: 3px solid #dd230f;
    background: #f8f9fa;
    padding: 0.8rem 0 0.8rem 1rem;
}

.static-page-content h4 {
    font-size: 1.3rem;
    font-weight: 600;
    color: #212529;
    margin: 1.8rem 0 1rem 0;
    text-transform: none;
    letter-spacing: normal;
}

.static-page-content p {
    margin: 0 0 1.8rem 0;
    text-align: left;
    color: #374151;
    font-weight: 400;
}

.static-page-content ul,
.static-page-content ol {
    margin: 1.5rem 0;
    padding-left: 2rem;
}

.static-page-content ul li,
.static-page-content ol li {
    margin: 0.5rem 0;
    padding: 0.3rem 0;
    background: none;
    border: none;
    position: static;
}

.static-page-content ul li::before {
    content: none;
}

.static-page-content ol {
    counter-reset: none;
}

.static-page-content ol li {
    border: none;
}

.static-page-content ol li::before {
    content: none;
}

.static-page-content ul {
    list-style-type: disc;
}

.static-page-content ol {
    list-style-type: decimal;
}

.static-page-content blockquote {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-left: 4px solid #dd230f;
    border-radius: 6px;
    padding: 1.5rem;
    margin: 2rem 0;
    font-style: italic;
    color: #495057;
    position: static;
    box-shadow: none;
}

.static-page-content blockquote::before {
    content: none;
}

.static-page-content a {
    color: #1a8cff;
    text-decoration: underline;
    font-weight: 500;
}

.static-page-content a:hover {
    color: #176ec1;
    text-decoration: none;
}

.static-page-content strong {
    font-weight: 600;
    color: #1a2a3a;
}

.static-page-content em {
    font-style: italic;
    color: #495057;
}

/* Code blocks */
.static-page-content code {
    background: #f8fafb;
    padding: 0.2rem 0.4rem;
    border-radius: 3px;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 0.9em;
    color: #dd230f;
}

.static-page-content pre {
    background: #f8fafb;
    padding: 1.5rem;
    border-radius: 6px;
    overflow-x: auto;
    margin: 1.5rem 0;
    border: 1px solid #e1e8ed;
}

.static-page-content pre code {
    background: none;
    padding: 0;
    color: inherit;
}

/* Tables */
.static-page-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
    background: #fff;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.static-page-content th {
    background: #f8fafb;
    padding: 1rem;
    text-align: left;
    font-weight: 600;
    color: #1a2a3a;
    border-bottom: 2px solid #e1e8ed;
}

.static-page-content td {
    padding: 1rem;
    border-bottom: 1px solid #e1e8ed;
    color: #2d3a4a;
}

.static-page-content tr:hover {
    background: #fafbfc;
}

/* Footer */
.static-page-footer {
    margin-top: 2rem;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 6px;
    text-align: center;
    border: 1px solid #dee2e6;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.static-page-meta {
    font-size: 0.9rem;
    color: #6c757d;
    font-weight: 400;
}

.static-page-date {
    font-style: italic;
    color: #dc3545;
    font-weight: 500;
}

/* Not found state */
.static-page-not-found {
    text-align: center;
    padding: 3rem 0;
}

.static-page-not-found h2 {
    color: #6c757d;
    margin-bottom: 1rem;
}

/* Forms */
.static-page-content form {
    max-width: 600px;
    margin: 2rem auto;
    padding: 2rem;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    border: 1px solid #e9ecef;
}

.static-page-content center {
    display: block;
    text-align: center;
}

.static-page-content center form {
    margin: 2rem auto;
}

.static-page-content label {
    display: block;
    font-weight: 600;
    color: #212529;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
    text-align: left;
}

.static-page-content input[type="text"],
.static-page-content input[type="email"],
.static-page-content input[type="tel"],
.static-page-content input[type="number"],
.static-page-content input[type="password"],
.static-page-content input[type="url"],
.static-page-content textarea,
.static-page-content select {
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    line-height: 1.5;
    color: #212529;
    background-color: #fff;
    border: 2px solid #dee2e6;
    border-radius: 6px;
    transition: all 0.2s ease;
    font-family: inherit;
    box-sizing: border-box;
}

.static-page-content input[type="text"]:focus,
.static-page-content input[type="email"]:focus,
.static-page-content input[type="tel"]:focus,
.static-page-content input[type="number"]:focus,
.static-page-content input[type="password"]:focus,
.static-page-content input[type="url"]:focus,
.static-page-content textarea:focus,
.static-page-content select:focus {
    outline: none;
    border-color: #dd230f;
    box-shadow: 0 0 0 3px rgba(221, 35, 15, 0.1);
}

.static-page-content input[type="text"]:hover,
.static-page-content input[type="email"]:hover,
.static-page-content input[type="tel"]:hover,
.static-page-content input[type="number"]:hover,
.static-page-content input[type="password"]:hover,
.static-page-content input[type="url"]:hover,
.static-page-content textarea:hover,
.static-page-content select:hover {
    border-color: #adb5bd;
}

.static-page-content input[type="text"]::placeholder,
.static-page-content input[type="email"]::placeholder,
.static-page-content input[type="tel"]::placeholder,
.static-page-content input[type="number"]::placeholder,
.static-page-content input[type="password"]::placeholder,
.static-page-content input[type="url"]::placeholder,
.static-page-content textarea::placeholder {
    color: #6c757d;
    opacity: 1;
}

.static-page-content textarea {
    min-height: 120px;
    resize: vertical;
}

.static-page-content button[type="submit"],
.static-page-content input[type="submit"] {
    background-color: #dd230f;
    color: #fff;
    border: 2px solid #dd230f;
    padding: 0.875rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
    text-transform: none;
    letter-spacing: normal;
    display: inline-block;
    margin-top: 1rem;
    min-width: 150px;
}

.static-page-content button[type="submit"]:hover,
.static-page-content input[type="submit"]:hover {
    background-color: #b81d0c;
    border-color: #b81d0c;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(221, 35, 15, 0.2);
}

.static-page-content button[type="submit"]:active,
.static-page-content input[type="submit"]:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(221, 35, 15, 0.2);
}

.static-page-content button[type="submit"]:focus,
.static-page-content input[type="submit"]:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(221, 35, 15, 0.2);
}

/* Form field groups */
.static-page-content form > br {
    display: none;
}

.static-page-content .form-group {
    margin-bottom: 1.5rem;
}

.static-page-content .form-group:last-of-type {
    margin-bottom: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .static-page-container {
        padding: 1rem 0;
    }

    .static-page-wrapper {
        padding: 0 1rem;
    }

    .static-page-header {
        padding: 1.5rem;
        margin-bottom: 1.5rem;
        border-radius: 6px;
    }

    .static-page-title {
        font-size: 1.8rem;
    }

    .static-page-content {
        font-size: 1rem;
        padding: 1.5rem;
        border-radius: 6px;
    }

    .static-page-content h2 {
        font-size: 1.5rem;
        margin: 1.8rem 0 1rem 0;
    }

    .static-page-content h3 {
        font-size: 1.3rem;
        margin: 1.5rem 0 0.8rem 0;
    }

    .static-page-content h4 {
        font-size: 1.2rem;
        margin: 1.3rem 0 0.7rem 0;
    }

    .static-page-content ul,
    .static-page-content ol {
        padding-left: 1.5rem;
    }

    .static-page-content blockquote {
        padding: 1rem;
        margin: 1.5rem 0;
        border-radius: 4px;
    }

    .static-page-content form {
        padding: 1.5rem;
        margin: 1.5rem auto;
    }

    .static-page-content input[type="text"],
    .static-page-content input[type="email"],
    .static-page-content input[type="tel"],
    .static-page-content input[type="number"],
    .static-page-content input[type="password"],
    .static-page-content input[type="url"],
    .static-page-content textarea,
    .static-page-content select {
        padding: 0.65rem 0.875rem;
        font-size: 0.95rem;
    }

    .static-page-content button[type="submit"],
    .static-page-content input[type="submit"] {
        padding: 0.75rem 1.5rem;
        font-size: 0.95rem;
        width: 100%;
    }

    .static-page-footer {
        padding: 1rem;
        margin-top: 1.5rem;
        border-radius: 4px;
    }
}

@media (max-width: 480px) {
    .static-page-container {
        padding: 0.5rem 0;
    }

    .static-page-header {
        padding: 1rem;
        border-radius: 4px;
    }

    .static-page-title {
        font-size: 1.5rem;
    }

    .static-page-content {
        font-size: 0.95rem;
        padding: 1rem;
        border-radius: 4px;
    }

    .static-page-content h2 {
        font-size: 1.3rem;
        margin: 1.3rem 0 0.7rem 0;
    }

    .static-page-content h3 {
        font-size: 1.2rem;
        margin: 1.2rem 0 0.7rem 0;
    }

    .static-page-content h4 {
        font-size: 1.1rem;
        margin: 1rem 0 0.6rem 0;
    }

    .static-page-content ul,
    .static-page-content ol {
        padding-left: 1.2rem;
    }

    .static-page-content ul li,
    .static-page-content ol li {
        font-size: 0.9rem;
    }

    .static-page-content blockquote {
        padding: 0.8rem;
        margin: 1.2rem 0;
        border-radius: 4px;
    }

    .static-page-content form {
        padding: 1rem;
        margin: 1rem auto;
    }

    .static-page-content input[type="text"],
    .static-page-content input[type="email"],
    .static-page-content input[type="tel"],
    .static-page-content input[type="number"],
    .static-page-content input[type="password"],
    .static-page-content input[type="url"],
    .static-page-content textarea,
    .static-page-content select {
        padding: 0.6rem 0.75rem;
        font-size: 0.9rem;
    }

    .static-page-content button[type="submit"],
    .static-page-content input[type="submit"] {
        padding: 0.7rem 1.25rem;
        font-size: 0.9rem;
        width: 100%;
    }

    .static-page-footer {
        padding: 0.8rem;
        margin-top: 1.2rem;
        border-radius: 4px;
    }
}

/* About segmented tabs */
.about-tabs__list {
    display: flex;
    width: 100%;
    margin: 0 0 1.75rem 0;
    padding: 4px;
    background: #f1f3f5;
    border-radius: 10px;
    gap: 4px;
}

.about-tabs__tab {
    flex: 1 1 0;
    margin: 0;
    padding: 0.7rem 0.5rem;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: #2d3a4a;
    font: inherit;
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.2;
    cursor: pointer;
    text-align: center;
}

.about-tabs__tab:hover {
    color: #1a2a3a;
}

.about-tabs__tab[aria-selected="true"] {
    background: #fff;
    color: #dd230f;
    box-shadow: 0 1px 3px rgba(26, 42, 58, 0.12);
}

.about-tabs__tab:focus-visible {
    outline: 2px solid #dd230f;
    outline-offset: 2px;
}

.about-tabs--ready .about-tabs__panel:not(.is-active) {
    display: none;
}

.about-tabs__panel.is-active {
    display: block;
}

.staff-listing--embedded {
    margin: 0;
    padding: 0;
}

.static-page-content .staff-section__title,
.static-page-content .staff-card__title {
    margin: 0 0 0.5rem 0;
    padding: 0;
    border: 0;
    background: none;
    font-size: 1.5rem;
    color: #1a2a3a;
}

.static-page-content .staff-section__title {
    font-size: 1.75rem;
    margin: 0 0 0.75rem 0;
    padding-bottom: 0.75rem;
    border-bottom: 3px solid #dd230f;
}

.static-page-content .staff-card p,
.static-page-content .staff-section__description {
    margin: 0;
}

.static-page-content .staff-card__contact-link {
    color: #dd230f;
    text-decoration: none;
    font-weight: 500;
}

.static-page-content .staff-card__contact-link:hover {
    color: #cd3423;
    text-decoration: underline;
}

.staff-listing--embedded .staff-cards-grid {
    margin-bottom: 1.5rem;
}

.about-contact__section {
    margin: 0 0 2rem;
}

.about-contact__section:last-child {
    margin-bottom: 0;
}

.about-contact__section h2,
.about-careers__job h2,
.magazine-page__advertise h2 {
    font-size: 1.35rem;
    margin: 0 0 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 3px solid #dd230f;
}

.about-contact__address {
    white-space: pre-line;
}

.about-contact__ways,
.about-contact__directors {
    list-style: none;
    margin: 0.75rem 0 0;
    padding: 0;
}

.about-contact__ways li,
.about-contact__directors li {
    margin: 0 0 0.85rem;
}

.about-contact__ways li {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.15rem;
}

.about-contact__ways a,
.about-contact__section a[href^="mailto:"] {
    overflow-wrap: anywhere;
}

.about-contact__list {
    margin: 1.5rem 0 0 0;
}

.about-contact__row {
    display: grid;
    grid-template-columns: 6rem 1fr;
    gap: 0.75rem 1.25rem;
    margin: 0 0 1rem 0;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e9ecef;
}

.about-contact__row:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: 0;
}

.about-contact dt {
    margin: 0;
    font-weight: 600;
    color: #1a2a3a;
}

.about-contact dd {
    margin: 0;
}

.about-careers__intro {
    margin-top: 0;
}

.about-careers__job {
    margin: 0 0 2.25rem;
}

.about-careers__job:last-child {
    margin-bottom: 0;
}

.about-careers__job h3 {
    margin: 1.15rem 0 0.35rem;
    font-size: 1.05rem;
}

.about-careers__job ul {
    margin: 0.25rem 0 0 1.2rem;
}

.about-careers__apply a,
.magazine-page__advertise a {
    display: inline-block;
    margin-top: 0.35rem;
}

.about-careers__mail {
    white-space: pre-line;
}

.magazine-page__lead {
    font-size: 1.15rem;
}

.static-page-content a.magazine-page__donate {
    display: inline-block;
    margin-top: 0.25rem;
    padding: 0.7rem 1.15rem;
    background: #dd230f;
    color: #fff;
    font-weight: 600;
    text-decoration: none;
    border-radius: 6px;
}

.static-page-content a.magazine-page__donate:hover {
    background: #c41f0d;
    color: #fff;
    text-decoration: none;
}

body.single-magazine_edition .navless-logo {
    max-width: 1200px;
    padding-left: 2rem;
    padding-right: 2rem;
}

.static-page-content--magazine-edition {
    max-width: none;
    padding: 2.5rem 2.75rem 2.75rem;
}

.magazine-edition__hero {
    display: grid;
    grid-template-columns: minmax(260px, 440px) minmax(0, 1fr);
    gap: 2.75rem;
    align-items: center;
}

/* The cover sits straight on the white page. A soft shadow lifts it
   off the background; no frame, padding, or tint behind it. */
.magazine-edition__cover-frame {
    margin: 0;
    padding: 0;
    background: none;
}

.magazine-edition__cover {
    display: block;
    width: 100%;
    height: auto;
    margin: 0;
    border: 0;
    border-radius: 4px;
    box-shadow: 0 2px 6px rgba(26, 42, 58, 0.08), 0 18px 40px rgba(26, 42, 58, 0.16);
}

.static-page-content .magazine-edition__title {
    margin: 0 0 0.9rem;
    font-size: clamp(2rem, 3vw, 2.7rem);
    font-weight: 700;
    line-height: 1.12;
    color: #1a2a3a;
}

.static-page-content .magazine-edition__lead {
    margin: 0 0 1.6rem;
    max-width: 38rem;
    font-size: 1.15rem;
    line-height: 1.55;
    color: #374151;
}

.magazine-edition__downloads {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin: 0;
    padding: 0;
}

.static-page-content a.magazine-edition__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    min-height: 3rem;
    margin-top: auto;
    padding: 0.7rem 1.15rem;
    border: 2px solid #dd230f;
    border-radius: 8px;
    background: #dd230f;
    color: #fff;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.2;
    text-decoration: none;
}

.static-page-content a.magazine-edition__button:hover,
.static-page-content a.magazine-edition__button:focus-visible {
    background: #c41f0d;
    border-color: #c41f0d;
    color: #fff;
    text-decoration: none;
}

.static-page-content a.magazine-edition__button:focus-visible {
    outline: 2px solid #1a2a3a;
    outline-offset: 2px;
}

.magazine-edition__button-hint {
    padding: 0.1rem 0.35rem;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.18);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.06em;
}

.static-page-content a.magazine-edition__button--ghost {
    background: #fff;
    color: #1a2a3a;
    border-color: #d5dbe3;
}

.static-page-content a.magazine-edition__button--ghost:hover,
.static-page-content a.magazine-edition__button--ghost:focus-visible {
    background: #fff;
    border-color: #dd230f;
    color: #dd230f;
}

.magazine-edition__next {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    margin-top: 2.5rem;
}

.magazine-edition__card {
    display: flex;
    flex-direction: column;
    padding: 1.25rem 1.25rem 1.35rem;
    background: #f6f8fa;
    border-radius: 12px;
}

/* Donate and Leave a legacy sit side by side on desktop. */
.magazine-edition__card--donate {
    background: #fff7f6;
    border: 1px solid #f3d2cd;
}

.static-page-content .magazine-edition__card--donate .magazine-edition__button {
    align-self: stretch;
    width: 100%;
    margin-top: 0.35rem;
    min-height: 4.25rem;
    padding: 1.15rem 2rem;
    border-radius: 10px;
    font-size: 1.35rem;
}

.static-page-content .magazine-edition__card h2 {
    margin: 0 0 0.55rem;
    padding: 0;
    border: 0;
    background: none;
    font-size: 1.2rem;
    font-weight: 700;
    line-height: 1.3;
    color: #1a2a3a;
}

.static-page-content .magazine-edition__card p {
    margin: 0 0 1.15rem;
    font-size: 0.98rem;
    line-height: 1.55;
    color: #4b5563;
}

.static-page-content .magazine-edition__meta {
    margin: 0 0 1rem;
    font-size: 0.84rem;
    line-height: 1.4;
    color: #6b7280;
    word-break: break-word;
}

@media (max-width: 480px) {
    .about-tabs__list {
        flex-wrap: wrap;
    }

    .about-tabs__tab {
        flex: 1 1 40%;
        font-size: 0.8rem;
        padding: 0.65rem 0.25rem;
    }

    .about-contact__row {
        grid-template-columns: 1fr;
        gap: 0.25rem;
    }
}

@media (max-width: 900px) {
    body.single-magazine_edition .navless-logo {
        max-width: none;
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .static-page-content--magazine-edition {
        padding: 1.5rem;
    }

    .magazine-edition__hero,
    .magazine-edition__next {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .magazine-edition__cover-frame {
        max-width: 360px;
    }

    .static-page-content a.magazine-edition__button {
        width: 100%;
    }
}
