/* ==========================================================================
   Extracted custom styles from HTML files
   ========================================================================== */

body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* From homepage.html */
body.font-hyperlegible {
    font-size: 20px;
}

/* From single.html */
.article-content {
    font-family: 'Newsreader', serif;
    font-size: 22px;
    line-height: 1.6;
}

/* Typography for Article Content (WYSIWYG elements) */
.article-content h1,
.article-content h2,
.article-content h3,
.article-content h4,
.article-content h5,
.article-content h6 {
    font-family: 'Public Sans', 'Inter', 'Atkinson Hyperlegible', sans-serif;
    color: #002D72;
    /* text-primary */
    font-weight: 700;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.dark .article-content h1,
.dark .article-content h2,
.dark .article-content h3,
.dark .article-content h4,
.dark .article-content h5,
.dark .article-content h6 {
    color: #f1f5f9;
    /* dark:text-slate-100 */
}

.article-content h1 {
    font-size: 2.25rem;
}

.article-content h2 {
    font-size: 1.875rem;
}

.article-content h3 {
    font-size: 1.5rem;
}

.article-content h4 {
    font-size: 1.25rem;
}

.article-content h5 {
    font-size: 1.125rem;
}

.article-content h6 {
    font-size: 1rem;
}

.article-content p {
    margin-bottom: 1.5rem;
}

.article-content a {
    color: #002D72;
    /* text-primary */
    text-decoration: underline;
    text-underline-offset: 4px;
    font-weight: 500;
    transition: color 0.2s ease;
}

.article-content a:hover {
    color: #C5A059;
    /* text-accent-gold */
}

.dark .article-content a {
    color: #60a5fa;
    /* dark: blue-400 */
}

.dark .article-content a:hover {
    color: #C5A059;
}

.article-content ul,
.article-content ol {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

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

.article-content ul ul {
    list-style-type: circle;
    margin-bottom: 0;
}

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

.article-content li {
    margin-bottom: 0.5rem;
}

.article-content li>p {
    margin-bottom: 0.5rem;
}

/* Blockquote styling to match the HTML design */
.article-content blockquote {
    border-left: 4px solid #002D72;
    /* border-primary */
    padding: 1.5rem 1.5rem 1.5rem 2rem;
    margin: 2.5rem 0;
    background-color: rgba(0, 45, 114, 0.05);
    /* bg-primary/5 */
    border-top-right-radius: 0.5rem;
    border-bottom-right-radius: 0.5rem;
}

.dark .article-content blockquote {
    border-left-color: #3b82f6;
    background-color: rgba(59, 130, 246, 0.1);
}

.article-content blockquote p {
    font-weight: 700;
    font-size: 1.5rem;
    font-style: italic;
    line-height: 1.625;
    color: #0f172a;
    /* text-slate-900 */
    margin-bottom: 0;
}

.dark .article-content blockquote p {
    color: #f1f5f9;
    /* dark:text-slate-100 */
}

.article-content blockquote cite {
    display: block;
    margin-top: 1rem;
    font-size: 1.125rem;
    font-family: 'Public Sans', 'Inter', 'Atkinson Hyperlegible', sans-serif;
    /* font-display */
    font-weight: 500;
    color: #002D72;
    /* text-primary */
    font-style: normal;
}

.article-content blockquote cite::before {
    content: "— ";
}

.dark .article-content blockquote cite {
    color: #93c5fd;
}

.article-content table {
    width: 100%;
    margin-bottom: 2rem;
    border-collapse: collapse;
    font-size: 1rem;
    font-family: 'Public Sans', 'Inter', 'Atkinson Hyperlegible', sans-serif;
}

.article-content th,
.article-content td {
    border: 1px solid #e2e8f0;
    /* border-slate-200 */
    padding: 0.75rem 1rem;
    text-align: left;
}

.dark .article-content th,
.dark .article-content td {
    border-color: #334155;
    /* dark:border-slate-700 */
}

.article-content th {
    background-color: #f8fafc;
    /* bg-slate-50 */
    font-weight: 700;
    color: #002D72;
}

.dark .article-content th {
    background-color: #1e293b;
    /* dark:bg-slate-800 */
    color: #e2e8f0;
}

.article-content img {
    max-width: 100%;
    height: auto;
    border-radius: 0.75rem;
    /* rounded-xl */
    margin: 2rem auto;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    /* shadow-lg */
}

/* For WordPress captions */
.article-content .wp-caption {
    margin-bottom: 2rem;
    max-width: 100%;
}

.article-content .wp-caption img[class*="wp-image-"] {
    display: block;
    margin: 0 auto 1rem;
}

.article-content .wp-caption-text {
    font-family: 'Public Sans', 'Inter', 'Atkinson Hyperlegible', sans-serif;
    font-size: 1rem;
    font-style: italic;
    color: #475569;
    /* text-slate-600 */
    text-align: center;
}

.dark .article-content .wp-caption-text {
    color: #94a3b8;
    /* text-slate-400 */
}

.article-content pre {
    background-color: #1e293b;
    /* bg-slate-800 */
    color: #f8fafc;
    /* text-slate-50 */
    padding: 1.5rem;
    border-radius: 0.5rem;
    overflow-x: auto;
    margin-bottom: 2rem;
    font-family: monospace;
    font-size: 1rem;
    line-height: 1.5;
}

.article-content code {
    background-color: #f1f5f9;
    /* bg-slate-100 */
    color: #b91c1c;
    /* text-red-700 */
    padding: 0.2rem 0.4rem;
    border-radius: 0.25rem;
    font-family: monospace;
    font-size: 0.9em;
}

.dark .article-content code {
    background-color: #334155;
    /* dark:bg-slate-700 */
    color: #fca5a5;
    /* text-red-300 */
}

.article-content pre code {
    background-color: transparent;
    color: inherit;
    padding: 0;
}

.article-content hr {
    margin: 3rem 0;
    border: 0;
    border-top: 1px solid #e2e8f0;
}

.dark .article-content hr {
    border-top-color: #334155;
}

.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Custom component classes from original HTML */

/* Custom Logo styling to constrain size in header */
.site-logo img {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
    display: block;
}

.icon-btn {
    padding: 0.5rem;
    border-radius: 9999px;
    border-width: 1px;
    border-color: rgb(255 255 255 / 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    transition-property: color, background-color, border-color, text-decoration-color, fill, stroke;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 150ms;
}

.icon-btn:hover {
    background-color: rgb(255 255 255 / 0.2);
}

.resource-card {
    padding: 2rem;
    border-radius: 0.5rem;
    border-width: 1px;
    border-color: #E0E0E0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    transition-property: box-shadow;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 150ms;
    background-color: rgb(255 255 255 / 1);
}

.dark .resource-card {
    background-color: rgb(30 41 59 / 1);
    border-color: rgb(51 65 85 / 1);
}

.resource-card:hover {
    --tw-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color);
    box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
}

/* From innerpage.html */
.atkinson-text {
    font-size: 20px;
    font-family: 'Atkinson Hyperlegible', sans-serif;
}

.body-text {
    font-size: 22px;
    line-height: 1.6;
}

/* From news-archive.html */
.news-card-border {
    border-left-width: 2px;
    border-left-color: #002d70;
}

.search-focus:focus {
    border: 4px solid #002d70 !important;
    outline: none;
}

/* From single-news.html */
.article-content {
    font-family: 'Newsreader', serif;
    font-size: 22px;
    line-height: 1.6;
}

/* Sidebar Navigation Active State */
.sidebar-navigation-list li.current_page_item>a {
    background-color: #002D72 !important;
    /* bg-navy */
    color: #ffffff !important;
    /* text-white */
    border-left-width: 4px !important;
    border-left-color: #002D72 !important;
    /* border-navy */
    font-weight: 700 !important;
    /* font-bold */
    --tw-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    /* shadow-sm */
    --tw-shadow-colored: 0 1px 2px 0 var(--tw-shadow-color);
    box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow) !important;
}

.dark .sidebar-navigation-list li.current_page_item>a {
    border-left-color: #fac31e !important;
    /* text-primary / gold active accent for dark mode */
}

/* ==========================================================================
   Post/Page Content Styling (Typography + Gutenberg)
   Formatting for dynamic data output by the_content()
   ========================================================================== */
.post-content {
    word-wrap: break-word;
    word-break: break-word;
    /* Prevents overflow of very long strings */
}

/* Headings */
.post-content h1,
.post-content h2,
.post-content h3,
.post-content h4,
.post-content h5,
.post-content h6 {
    color: #002D72;
    /* text-navy */
    font-weight: 700;
    line-height: 1.3;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    clear: both;
}

.dark .post-content h1,
.dark .post-content h2,
.dark .post-content h3,
.dark .post-content h4,
.dark .post-content h5,
.dark .post-content h6 {
    color: #ffffff;
}

.post-content h1 {
    font-size: 2.5rem;
}

.post-content h2 {
    font-size: 2rem;
    margin-top: 3rem;
}

.post-content h3 {
    font-size: 1.75rem;
}

.post-content h4 {
    font-size: 1.5rem;
    margin-top: 2rem;
}

.post-content h5 {
    font-size: 1.25rem;
}

.post-content h6 {
    font-size: 1.125rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Text Content */
.post-content p {
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.post-content strong,
.post-content b {
    font-weight: 700;
    color: #1e293b;
    /* slate-800 */
}

.dark .post-content strong,
.dark .post-content b {
    color: #f1f5f9;
    /* slate-100 */
}

.post-content em,
.post-content i {
    font-style: italic;
}

/* Hyperlinks */
.post-content a {
    color: #002D72;
    text-decoration: underline;
    text-underline-offset: 4px;
    font-weight: 600;
    transition: color 0.2s ease, text-decoration-color 0.2s ease;
}

.post-content a:hover,
.post-content a:focus-visible {
    color: #fac31e;
    /* accent-gold */
    text-decoration-color: #fac31e;
    outline: none;
}

.dark .post-content a {
    color: #60a5fa;
    /* generic lighter blue for dark mode readability */
}

.dark .post-content a:hover,
.dark .post-content a:focus-visible {
    color: #fac31e;
}

/* Lists */
.post-content ul,
.post-content ol {
    margin-top: 1rem;
    margin-bottom: 1.5rem;
    padding-left: 2rem;
    line-height: 1.8;
}

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

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

.post-content li {
    margin-bottom: 0.5rem;
}

.post-content ul ul,
.post-content ol ol,
.post-content ul ol,
.post-content ol ul {
    margin-top: 0.5rem;
    margin-bottom: 0;
}

/* Blockquotes */
.post-content blockquote {
    border-left: 4px solid #002D72;
    padding-left: 2rem;
    padding-top: 1rem;
    padding-bottom: 1rem;
    margin-top: 2.5rem;
    margin-bottom: 2.5rem;
    margin-left: 0;
    background-color: #f1f5f9;
    /* slate-100 */
    font-style: italic;
    font-size: 1.125rem;
    color: #334155;
    /* slate-700 */
}

.dark .post-content blockquote {
    border-left-color: #fac31e;
    background-color: rgba(0, 45, 114, 0.1);
    /* transparent navy */
    color: #e2e8f0;
    /* slate-200 */
}

.post-content blockquote p:last-child {
    margin-bottom: 0;
}

/* Tables */
.post-content table {
    width: 100%;
    margin-bottom: 2rem;
    border-collapse: collapse;
    border-spacing: 0;
    text-align: left;
    display: block;
    overflow-x: auto;
    /* Makes table responsive */
    -webkit-overflow-scrolling: touch;
}

.post-content th,
.post-content td {
    padding: 0.75rem 1rem;
    border: 1px solid #cbd5e1;
    /* slate-300 */
}

.post-content th {
    background-color: #f8fafc;
    /* slate-50 */
    font-weight: 700;
    color: #002D72;
    /* navy */
}

.dark .post-content th,
.dark .post-content td {
    border-color: #475569;
    /* slate-600 */
}

.dark .post-content th {
    background-color: #1e293b;
    /* slate-800 */
    color: #f1f5f9;
}

/* Images & Media Alignment */
.post-content img {
    max-width: 100%;
    height: auto;
    border-radius: 0.5rem;
    margin-top: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1);
}

.post-content figure {
    margin: 2rem 0;
}

.post-content figcaption {
    text-align: center;
    font-size: 0.875rem;
    color: #64748b;
    /* slate-500 */
    margin-top: 0.5rem;
    font-style: italic;
}

.dark .post-content figcaption {
    color: #94a3b8;
    /* slate-400 */
}

/* WP alignment classes */
.post-content .alignleft {
    float: left;
    margin-right: 2rem;
    margin-bottom: 1rem;
}

.post-content .alignright {
    float: right;
    margin-left: 2rem;
    margin-bottom: 1rem;
}

.post-content .aligncenter {
    display: block;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 2rem;
}

/* Clearfix for floating images */
.post-content::after {
    content: "";
    display: table;
    clear: both;
}

/* HR Separators */
.post-content hr {
    margin-top: 3rem;
    margin-bottom: 3rem;
    border: 0;
    border-top: 2px solid #e2e8f0;
    /* slate-200 */
}

.dark .post-content hr {
    border-top-color: #334155;
    /* slate-700 */
}

/* ==========================================================================
   Primary Navigation Active States (Header / Mobile)
   ========================================================================== */
#site-navigation .current-menu-item>a,
#site-navigation .current_page_item>a,
#site-navigation .current-menu-parent>a,
#site-navigation .current_page_parent>a,
#site-navigation .current-page-parent>a,
#site-navigation .current-menu-ancestor>a,
#site-navigation .current_page_ancestor>a,
#site-navigation .current-page-ancestor>a,
#mobile-navigation .current-menu-item>a,
#mobile-navigation .current_page_item>a,
#mobile-navigation .current-menu-parent>a,
#mobile-navigation .current_page_parent>a,
#mobile-navigation .current-page-parent>a,
#mobile-navigation .current-menu-ancestor>a,
#mobile-navigation .current_page_ancestor>a,
#mobile-navigation .current-page-ancestor>a {
    color: #fac31e !important;
    text-decoration: underline;
    text-underline-offset: 8px;
    text-decoration-thickness: 2px;
}