/*
 * MediaOCU Ghost theme
 * Team design from backend/public/style.css, ported as-is. Theme-only additions are at the end.
 */

:root {
    --ocu-blue-900: #0a2f63;
    --ocu-blue-700: #184c9a;
    --ocu-blue-500: #2f6cc6;
    --ocu-gray-900: #1f2937;
    --ocu-gray-700: #4b5563;
    --ocu-gray-500: #6b7280;
    --ocu-gray-200: #e5e7eb;
    --ocu-gray-100: #f3f4f6;
    --white: #ffffff;
    --danger: #9e1b32;
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--gh-font-body, "Source Serif 4", Georgia, "Times New Roman", serif);
    color: var(--ocu-gray-900);
    background:
        radial-gradient(circle at 0 0, rgba(24, 76, 154, 0.1), transparent 34%),
        radial-gradient(circle at 100% 100%, rgba(10, 47, 99, 0.1), transparent 36%),
        var(--ocu-gray-100);
    line-height: 1.6;
}

.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    background: var(--ocu-blue-900);
    color: var(--white);
    padding: 10px 14px;
    border-radius: 0 0 10px 10px;
    z-index: 1000;
}

.skip-link:focus {
    left: 12px;
}

a {
    color: inherit;
}

a:focus-visible,
button:focus-visible,
input:focus-visible {
    outline: 3px solid rgba(47, 108, 198, 0.45);
    outline-offset: 2px;
}

.site-header,
.auth-masthead,
.page-shell,
.auth-layout,
.site-footer {
    width: calc(100% - 24px);
    margin-inline: auto;
}

.site-header,
.auth-masthead,
.site-footer,
.hero,
.section-block,
.auth-editorial,
.auth-panel,
.cta {
    border: 1px solid rgba(10, 47, 99, 0.16);
    background: var(--white);
    box-shadow: 0 14px 26px rgba(10, 47, 99, 0.08);
}

.site-header,
.auth-masthead {
    margin-top: 0;
    border-left: 0;
    border-right: 0;
    border-top: 0;
}

.top-rail {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    border-bottom: 1px solid rgba(10, 47, 99, 0.16);
    font-size: 0.82rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--ocu-gray-700);
}

.top-rail-left {
    display: grid;
    justify-items: start;
    gap: 2px;
}

.top-rail-right {
    display: flex;
    justify-content: flex-end;
}

.welcome-top {
    color: var(--ocu-blue-900);
    letter-spacing: 0.03em;
    text-transform: none;
}

.welcome-top strong {
    font-weight: 800;
}

.brand-row {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 16px;
    align-items: center;
    padding: 14px;
}

.brand-link {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.brand-logo {
    width: clamp(58px, 8vw, 84px);
    height: clamp(58px, 8vw, 84px);
    object-fit: contain;
    object-position: center;
    display: block;
}

.brand-text {
    display: inline-flex;
    flex-direction: column;
    line-height: 1.05;
}

.brand-text strong {
    font-size: clamp(1.4rem, 3vw, 2.1rem);
    color: var(--ocu-blue-900);
}

.brand-text small {
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--ocu-gray-700);
}

.top-nav {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
}

.top-nav a {
    text-decoration: none;
    color: var(--ocu-blue-900);
    font-weight: 700;
    border-radius: 6px;
    padding: 8px 10px;
}

.top-nav a:hover,
.top-nav a[aria-current="page"] {
    background: rgba(24, 76, 154, 0.1);
}

.top-nav .settings-menu {
    position: relative;
}

.top-nav .settings-menu summary {
    list-style: none;
    cursor: pointer;
    text-decoration: none;
    color: var(--ocu-blue-900);
    font-weight: 700;
    border-radius: 6px;
    padding: 8px 10px;
    border: none;
    background: transparent;
}

.top-nav .settings-menu summary:hover,
.top-nav .settings-menu[open] summary {
    background: rgba(24, 76, 154, 0.1);
}

.top-nav .settings-menu summary::-webkit-details-marker {
    display: none;
}

.header-action,
.button-primary,
.button-secondary,
.button-danger,
.google-access,
.submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 16px;
    border-radius: 8px;
    border: 1px solid transparent;
    text-decoration: none;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.header-action,
.button-primary,
.submit {
    background: linear-gradient(140deg, var(--ocu-blue-700), var(--ocu-blue-900));
    color: var(--white);
}

.button-secondary,
.google-access {
    border-color: rgba(10, 47, 99, 0.24);
    background: var(--white);
    color: var(--ocu-blue-900);
}

.button-danger {
    background: linear-gradient(140deg, #b72c45, var(--danger));
    color: var(--white);
}

.header-action:hover,
.button-primary:hover,
.button-secondary:hover,
.button-danger:hover,
.google-access:hover,
.submit:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 16px rgba(10, 47, 99, 0.2);
}

.settings-panel {
    position: absolute;
    right: 0;
    top: calc(100% + 8px);
    width: 220px;
    border: 1px solid rgba(10, 47, 99, 0.2);
    background: var(--white);
    box-shadow: 0 12px 20px rgba(10, 47, 99, 0.14);
    border-radius: 10px;
    padding: 10px;
    display: grid;
    gap: 8px;
    z-index: 15;
}

.settings-title {
    margin: 0 0 4px;
    color: var(--ocu-blue-900);
    font-size: 0.85rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-weight: 700;
}

.settings-button {
    width: 100%;
}

.page-shell {
    margin-top: 18px;
    margin-bottom: 18px;
    display: grid;
    gap: 18px;
}

.hero {
    padding: 20px;
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 16px;
}

.story-kicker {
    margin: 0 0 10px;
    font-family: Arial, sans-serif;
    font-size: 0.78rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--ocu-blue-700);
    font-weight: 700;
}

.hero h1 {
    margin: 0;
    color: var(--ocu-blue-900);
    line-height: 1.15;
    font-size: clamp(1.8rem, 4.5vw, 3rem);
}

.story-summary {
    margin-top: 12px;
    color: var(--ocu-gray-700);
    font-size: 1.02rem;
    max-width: 64ch;
}

.lead-actions,
.account-actions {
    margin-top: 16px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.reader-status {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    border-radius: 999px;
    padding: 8px 12px;
    border: 1px solid rgba(10, 47, 99, 0.2);
    background: rgba(24, 76, 154, 0.06);
}

.reader-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    object-fit: cover;
}

.member-chip {
    margin-left: 8px;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    background: rgba(24, 76, 154, 0.12);
    color: var(--ocu-blue-900);
}

.member-panel {
    margin-top: 16px;
    display: grid;
    gap: 12px;
    justify-items: start;
}

.member-panel .account-actions {
    margin-top: 0;
}

.hero-media {
    margin: 0;
}

.lead-image {
    width: 100%;
    height: 100%;
    min-height: 280px;
    object-fit: cover;
    border-radius: 8px;
}

.image-caption {
    margin: 8px 0 0;
    font-size: 0.86rem;
    color: var(--ocu-gray-500);
}

.section-block {
    padding: 18px;
}

.section-block h2 {
    margin: 0;
    color: var(--ocu-blue-900);
    font-size: 1.7rem;
}

.feature-card {
    margin-top: 14px;
    display: grid;
    grid-template-columns: minmax(180px, 320px) 1fr;
    gap: 16px;
    border: 1px solid var(--ocu-gray-200);
    padding: 12px;
}

.feature-image {
    min-height: 220px;
    border-radius: 8px;
    background:
        linear-gradient(165deg, rgba(10, 47, 99, 0.12), rgba(24, 76, 154, 0.3)),
        url('../images/OCU.png') center/cover no-repeat;
}

.tag {
    display: inline-block;
    margin-bottom: 8px;
    padding: 4px 10px;
    border-radius: 999px;
    background: #e8efff;
    color: var(--ocu-blue-900);
    font-size: 0.78rem;
    font-weight: 700;
}

.story-grid {
    margin-top: 12px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.story-card {
    border: 1px solid var(--ocu-gray-200);
    padding: 14px;
    background: linear-gradient(180deg, #ffffff, #f8fafc);
}

.story-card h3 {
    margin: 0;
    color: var(--ocu-blue-700);
}

.story-card p {
    margin: 8px 0 0;
    color: var(--ocu-gray-700);
}

.cta {
    padding: 20px;
    text-align: center;
    background: linear-gradient(145deg, var(--ocu-blue-700), var(--ocu-blue-900));
    color: var(--white);
}

.cta p {
    margin: 8px 0 14px;
}

.cta .button-primary {
    background: var(--white);
    color: var(--ocu-blue-900);
}

.site-footer {
    padding: 10px 14px;
    margin-bottom: 0;
    color: var(--ocu-gray-700);
    text-align: center;
    font-size: 0.9rem;
    border-left: 0;
    border-right: 0;
    border-bottom: 0;
}

.top-rail,
.brand-row,
.hero,
.section-block,
.cta,
.auth-editorial,
.auth-panel,
.site-footer {
    padding-left: clamp(16px, 4vw, 56px);
    padding-right: clamp(16px, 4vw, 56px);
}

.auth-layout {
    margin-top: 18px;
    margin-bottom: 24px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    max-width: 980px;
    width: min(100% - 16px, 980px);
    margin-left: auto;
    margin-right: auto;
}

.auth-editorial,
.auth-panel {
    padding: 18px;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
}

.auth-panel {
    width: 100%;
    max-width: 100%;
}

.auth-editorial h1 {
    margin: 0;
    color: var(--ocu-blue-900);
    line-height: 1.2;
    font-size: clamp(1.7rem, 4.2vw, 2.5rem);
}

.auth-intro {
    margin-top: 10px;
    color: var(--ocu-gray-700);
}

.auth-tabs {
    position: relative;
    display: flex;
    border: 1px solid rgba(10, 47, 99, 0.2);
    border-radius: 999px;
    background: rgba(24, 76, 154, 0.06);
    padding: 3px;
    margin-bottom: 12px;
}

.auth-tabs .login,
.auth-tabs .signup {
    width: 50%;
    min-height: 46px;
    border: 0;
    background: transparent;
    font-weight: 700;
    color: var(--ocu-blue-900);
    z-index: 1;
}

.slider {
    position: absolute;
    left: 3px;
    top: 3px;
    width: calc(50% - 3px);
    height: calc(100% - 6px);
    border-radius: 999px;
    background: linear-gradient(140deg, var(--ocu-blue-500), var(--ocu-blue-900));
    transition: transform 0.22s cubic-bezier(0.2, 0.9, 0.25, 1);
}

.moveslider {
    transform: translateX(100%);
}

.login.active,
.signup.active {
    color: var(--white);
}

.form-viewport {
    overflow: hidden;
    border-radius: 10px;
}

.form {
    width: 200%;
    display: flex;
    transform: translateX(0);
    transition: transform 0.28s cubic-bezier(0.2, 0.9, 0.25, 1);
}

.moveform {
    transform: translateX(-50%);
}

.login-section,
.signup-section {
    width: 50%;
    padding-right: 6px;
    opacity: 1;
    transition: opacity 0.18s ease;
}

.auth-panel.is-signup .login-section {
    opacity: 0.58;
}

.auth-panel:not(.is-signup) .signup-section {
    opacity: 0.58;
}

.login-section form,
.signup-section form {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.login-section label,
.signup-section label {
    font-family: Arial, sans-serif;
    font-size: 0.82rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--ocu-blue-900);
    font-weight: 700;
}

.element {
    min-height: 48px;
    border: 1px solid rgba(10, 47, 99, 0.24);
    border-radius: 8px;
    padding: 0 12px;
    font-size: 1rem;
}

.element::placeholder {
    color: var(--ocu-gray-500);
}

.google-access {
    width: 100%;
    margin-bottom: 8px;
}

.auth-error {
    margin: 8px 0;
    padding: 10px 12px;
    border-radius: 8px;
    border: 1px solid rgba(158, 27, 50, 0.3);
    background: rgba(158, 27, 50, 0.08);
    color: #7f1528;
}

.auth-note {
    margin: 10px 0 0;
    color: var(--ocu-gray-500);
    font-size: 0.88rem;
}

.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;
}

/* News Page Styles */
.articles-list {
    display: grid;
    gap: 16px;
    margin-top: 12px;
}

.article-card {
    border: 1px solid var(--ocu-gray-200);
    border-radius: 8px;
    padding: 16px;
    background: linear-gradient(180deg, #ffffff, #f8fafc);
    transition: box-shadow 0.18s ease, transform 0.18s ease;
}

.article-card:hover {
    box-shadow: 0 6px 16px rgba(10, 47, 99, 0.12);
    transform: translateY(-1px);
}

.article-card.has-image {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 20px;
    align-items: start;
}

.article-image {
    display: block;
    aspect-ratio: 4 / 3;
    border-radius: 6px;
    overflow: hidden;
}

.article-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.article-body {
    min-width: 0;
}

.article-header {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 12px;
    align-items: start;
    margin-bottom: 12px;
}

.article-category {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 999px;
    background: #e8efff;
    color: var(--ocu-blue-900);
    font-size: 0.78rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.article-title {
    margin: 0;
    color: var(--ocu-blue-900);
    font-size: 1.4rem;
    line-height: 1.2;
}

.article-meta {
    margin: 8px 0 0;
    font-size: 0.9rem;
    color: var(--ocu-gray-700);
}

.article-author {
    font-weight: 700;
    color: var(--ocu-blue-700);
}

.article-date {
    margin-left: 8px;
    color: var(--ocu-gray-500);
}

.article-delete-btn {
    padding: 6px 12px;
    border: 1px solid rgba(158, 27, 50, 0.3);
    background: rgba(158, 27, 50, 0.06);
    color: #7f1528;
    border-radius: 6px;
    font-weight: 700;
    font-size: 0.85rem;
    cursor: pointer;
    transition: background 0.18s ease;
}

.article-delete-btn:hover {
    background: rgba(158, 27, 50, 0.12);
}

.article-content {
    margin-bottom: 14px;
    line-height: 1.7;
}

.article-content p {
    margin: 0;
    color: var(--ocu-gray-700);
}

.article-actions {
    display: flex;
    gap: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--ocu-gray-200);
}

.action-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border: 1px solid var(--ocu-gray-200);
    background: transparent;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--ocu-gray-700);
    cursor: pointer;
    transition: all 0.18s ease;
}

.action-btn:hover {
    border-color: var(--ocu-blue-500);
    color: var(--ocu-blue-500);
}

.action-btn.liked {
    border-color: var(--ocu-blue-700);
    background: rgba(24, 76, 154, 0.08);
    color: var(--ocu-blue-700);
}

.action-icon {
    width: 18px;
    text-align: center;
}

.action-count {
    min-width: 20px;
}

.comments-section {
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid var(--ocu-gray-200);
}

.comments-list {
    display: grid;
    gap: 12px;
    margin-bottom: 14px;
    max-height: 320px;
    overflow-y: auto;
}

.comment {
    padding: 10px 12px;
    background: rgba(24, 76, 154, 0.04);
    border-left: 3px solid var(--ocu-blue-500);
    border-radius: 4px;
}

.comment-meta {
    margin: 0;
    font-size: 0.85rem;
    display: flex;
    gap: 8px;
    align-items: center;
}

.comment-meta strong {
    color: var(--ocu-blue-900);
}

.comment-date {
    color: var(--ocu-gray-500);
    font-size: 0.8rem;
}

.comment-text {
    margin: 6px 0 0;
    color: var(--ocu-gray-700);
    font-size: 0.95rem;
}

.no-comments {
    text-align: center;
    color: var(--ocu-gray-500);
    font-style: italic;
    margin: 12px 0;
}

.comment-form {
    display: flex;
    gap: 8px;
}

.comment-input {
    flex: 1;
    min-height: 40px;
    border: 1px solid rgba(10, 47, 99, 0.24);
    border-radius: 6px;
    padding: 0 10px;
    font-size: 0.95rem;
}

.comment-input::placeholder {
    color: var(--ocu-gray-500);
}

.comment-input:focus {
    outline: none;
    border-color: var(--ocu-blue-500);
    box-shadow: 0 0 0 3px rgba(47, 108, 198, 0.1);
}

.no-articles-message {
    text-align: center;
    padding: 40px 20px;
    color: var(--ocu-gray-700);
    font-style: italic;
}

/* Modal Styles */
.modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--white);
    border: 1px solid rgba(10, 47, 99, 0.2);
    border-radius: 10px;
    box-shadow: 0 20px 40px rgba(10, 47, 99, 0.2);
    max-width: 520px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    z-index: 1000;
    display: none;
}

.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    display: none;
}

.modal-content {
    padding: 20px;
}

.modal-header {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 12px;
    align-items: center;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--ocu-gray-200);
}

.modal-header h2 {
    margin: 0;
    color: var(--ocu-blue-900);
    font-size: 1.5rem;
}

.modal-close {
    padding: 6px 12px;
    border: 1px solid var(--ocu-gray-200);
    background: transparent;
    border-radius: 6px;
    cursor: pointer;
    color: var(--ocu-gray-700);
    font-weight: 600;
    transition: all 0.18s ease;
}

.modal-close:hover {
    border-color: var(--ocu-gray-500);
    color: var(--ocu-blue-900);
}

.modal-body {
    display: grid;
    gap: 12px;
}

.form-group {
    display: grid;
    gap: 6px;
}

.form-group label {
    font-weight: 700;
    color: var(--ocu-blue-900);
    font-size: 0.9rem;
    letter-spacing: 0.03em;
}

.textarea-element {
    resize: vertical;
    font-family: "Source Serif 4", Georgia, "Times New Roman", serif;
    padding: 10px 12px;
}

.modal-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 16px;
    padding-top: 12px;
    border-top: 1px solid var(--ocu-gray-200);
}

@media (max-width: 1020px) {
    .brand-row {
        grid-template-columns: 1fr;
        justify-items: start;
    }

    .hero,
    .feature-card {
        grid-template-columns: 1fr;
    }

    .story-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .modal {
        max-width: 95%;
    }
}

@media (max-width: 720px) {
    .top-rail {
        grid-template-columns: 1fr;
        align-items: start;
    }

    .top-rail-right {
        justify-content: flex-start;
    }

    .settings-panel {
        left: 0;
        right: auto;
    }

    .story-grid {
        grid-template-columns: 1fr;
    }

    .article-card.has-image {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .brand-logo {
        width: 60px;
        height: 60px;
    }

    .site-header,
    .auth-masthead,
    .page-shell,
    .auth-layout,
    .site-footer {
        width: calc(100% - 16px);
    }

    .auth-editorial,
    .auth-panel {
        padding: 14px;
    }

    .brand-link {
        max-width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        transition: none !important;
        animation: none !important;
    }
}

/* ==========================================================================
   Ghost theme additions
   ========================================================================== */

h1, h2, h3, h4 {
    font-family: var(--gh-font-heading, inherit);
}

/* Linked headlines keep the team's heading look */
.hero h1 a,
.feature-card h3 a,
.story-card h3 a,
.article-title a {
    color: inherit;
    text-decoration: none;
}

.hero h1 a:hover,
.feature-card h3 a:hover,
.story-card h3 a:hover,
.article-title a:hover {
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 4px;
}

a.tag,
a.article-category {
    text-decoration: none;
}

.story-meta {
    margin: 10px 0 0;
    font-size: 0.9rem;
    color: var(--ocu-gray-500);
}

/* Header: search button and account links sit alongside the nav links */
.top-nav .nav-button {
    font: inherit;
    color: var(--ocu-blue-900);
    font-weight: 700;
    border: none;
    background: transparent;
    border-radius: 6px;
    padding: 8px 10px;
    cursor: pointer;
}

.top-nav .nav-button:hover {
    background: rgba(24, 76, 154, 0.1);
}

.settings-panel a.settings-button {
    color: var(--ocu-blue-900);
}

/* Featured story image (Ghost feature images replace the static background) */
.feature-media {
    display: block;
    min-height: 220px;
    border-radius: 8px;
    overflow: hidden;
}

.feature-media img {
    width: 100%;
    height: 100%;
    min-height: 220px;
    object-fit: cover;
    display: block;
}

/* Story cards with optional images */
.story-card {
    display: flex;
    flex-direction: column;
}

.story-card-image {
    display: block;
    margin: -14px -14px 12px;
    aspect-ratio: 16 / 9;
    overflow: hidden;
}

.story-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.story-card .tag {
    align-self: flex-start;
}

.story-card .story-meta {
    margin-top: auto;
    padding-top: 10px;
}

/* Section pages: the search bar opens Ghost's built-in search */
.search-bar-container {
    margin-top: 12px;
}

.search-trigger {
    width: 100%;
    min-height: 48px;
    border: 1px solid rgba(10, 47, 99, 0.24);
    border-radius: 8px;
    padding: 0 12px;
    font: inherit;
    font-size: 1rem;
    text-align: left;
    color: var(--ocu-gray-500);
    background: var(--white);
    cursor: text;
}

.search-trigger:hover {
    border-color: var(--ocu-blue-500);
}

a.action-btn {
    text-decoration: none;
}

.author-avatar {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 12px;
}

/* Pagination */
.pagination {
    margin-top: 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    color: var(--ocu-gray-700);
}

.pagination .page-number {
    font-size: 0.9rem;
}

.pagination a {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    padding: 0 14px;
    border: 1px solid rgba(10, 47, 99, 0.24);
    border-radius: 8px;
    color: var(--ocu-blue-900);
    font-weight: 700;
    text-decoration: none;
}

.pagination a:hover {
    background: rgba(24, 76, 154, 0.08);
}

/* Article and page template */
.post-shell {
    padding-top: 28px;
    padding-bottom: 28px;
}

.post-header {
    max-width: 760px;
    margin: 0 auto 22px;
}

.post-title {
    margin: 0;
    color: var(--ocu-blue-900);
    line-height: 1.15;
    font-size: clamp(1.9rem, 4.5vw, 3rem);
}

.post-header .story-summary {
    font-size: 1.15rem;
}

.post-header .article-meta a {
    color: var(--ocu-blue-700);
    font-weight: 700;
    text-decoration: none;
}

.post-feature {
    max-width: 1040px;
    margin: 0 auto 26px;
}

.post-feature img {
    width: 100%;
    max-height: 620px;
    object-fit: cover;
    border-radius: 8px;
    display: block;
}

.post-feature figcaption,
.gh-content figcaption {
    margin-top: 8px;
    font-size: 0.86rem;
    color: var(--ocu-gray-500);
    text-align: center;
}

/* Content grid: text column, with room for wide and full-width cards */
.gh-content {
    display: grid;
    grid-template-columns:
        [full-start] minmax(0, 1fr)
        [wide-start] minmax(0, 140px)
        [main-start] min(760px, 100%)
        [main-end] minmax(0, 140px)
        [wide-end] minmax(0, 1fr)
        [full-end];
    font-size: 1.12rem;
    line-height: 1.75;
}

.gh-content > * {
    grid-column: main;
    margin-top: 0;
    margin-bottom: 1.3em;
}

.gh-content > .kg-width-wide {
    grid-column: wide;
}

.gh-content > .kg-width-full {
    grid-column: full;
}

.kg-width-full img {
    border-radius: 0;
}

.gh-content h2,
.gh-content h3,
.gh-content h4 {
    color: var(--ocu-blue-900);
    line-height: 1.25;
    margin-top: 1.6em;
    margin-bottom: 0.6em;
}

.gh-content a {
    color: var(--ocu-blue-700);
    text-underline-offset: 3px;
}

.gh-content img {
    max-width: 100%;
    height: auto;
    border-radius: 6px;
}

.gh-content figure {
    margin-left: 0;
    margin-right: 0;
}

.gh-content blockquote:not([class]) {
    margin-left: 0;
    padding: 4px 0 4px 18px;
    border-left: 4px solid var(--ocu-blue-500);
    color: var(--ocu-gray-700);
    font-style: italic;
}

.gh-content hr {
    border: 0;
    border-top: 1px solid var(--ocu-gray-200);
    margin: 2em 0;
}

.gh-content pre {
    overflow-x: auto;
    padding: 14px;
    border-radius: 8px;
    background: var(--ocu-gray-900);
    color: var(--ocu-gray-100);
    font-size: 0.9rem;
}

.gh-content table {
    border-collapse: collapse;
    width: 100%;
}

.gh-content th,
.gh-content td {
    border: 1px solid var(--ocu-gray-200);
    padding: 8px 10px;
}

.post-comments {
    max-width: 760px;
    margin: 30px auto 0;
    padding-top: 20px;
    border-top: 1px solid var(--ocu-gray-200);
}

.site-footer .nav {
    list-style: none;
    margin: 6px 0 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px;
}

.site-footer .nav a {
    color: var(--ocu-gray-700);
}

@media (max-width: 720px) {
    .pagination {
        flex-wrap: wrap;
        justify-content: center;
    }

    .gh-content {
        font-size: 1.05rem;
    }
}
