/*
Theme Name: Agun News
Theme URI:
Author: Agun News
Description: Custom Bengali news website theme. Orange, black and white.
Version: 1.1.0
Text Domain: agun-news
*/

/* =========================
   Tokens
   ========================= */

:root {
    --orange: #f47b20;
    --orange-dark: #d8640c;
    --orange-light: #fff1e6;
    --black: #111111;
    --ink: #1a1a1a;
    --gray-900: #222222;
    --gray-700: #555555;
    --gray-500: #888888;
    --gray-300: #d9d9d9;
    --gray-100: #f3f3f3;
    --white: #ffffff;

    --font-body: "Noto Serif Bengali", "Noto Sans Bengali", "Nirmala UI", Georgia, serif;
    --font-head: "Noto Serif Bengali", "Noto Sans Bengali", "Nirmala UI", Georgia, serif;
    --font-article: "Noto Serif Bengali", "Noto Sans Bengali", "Nirmala UI", Georgia, serif;

    --container: 1280px;
    --gutter: 20px;
    --radius: 4px;
    --shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
}

/* =========================
   Base
   ========================= */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    margin: 0;
    padding: 0;
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    padding: 0;
    font-family: var(--font-body);
    font-size: 16px;
    background: var(--white);
    color: var(--ink);
    line-height: 1.7;
}

body.drawer-open {
    overflow: hidden;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color 0.15s ease;
}

a:hover {
    color: var(--orange);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

h1, h2, h3, h4 {
    font-family: var(--font-head);
    line-height: 1.3;
    margin: 0;
    color: var(--black);
}

.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 var(--gutter);
}

.container--narrow {
    max-width: 860px;
}

.screen-reader-text {
    position: absolute !important;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    white-space: nowrap;
}

.skip-link:focus {
    position: fixed !important;
    top: 8px;
    left: 8px;
    width: auto;
    height: auto;
    clip: auto;
    clip-path: none;
    z-index: 2000;
    padding: 10px 16px;
    background: var(--orange);
    color: var(--white);
    font-weight: 700;
}

/* =========================
   Header
   ========================= */

.site-header {
    background: var(--white);
}

.site-header-inner {
    padding-top: 8px;
    padding-bottom: 4px;
}

.site-branding {
    text-align: center;
}

.site-date {
    display: block;
    margin-top: 0;
    line-height: 1.3;
    font-size: 17px;
    font-weight: 600;
    color: var(--black);
}

.site-title {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-head);
    font-size: 40px;
    font-weight: 800;
    letter-spacing: -0.5px;
    color: var(--black);
    line-height: 1.1;
}

.site-title:hover {
    color: var(--black);
}

.site-title-flame {
    font-size: 0.8em;
}

.site-description {
    margin: 4px 0 0;
    font-size: 13px;
    color: var(--gray-700);
}

.custom-logo-link {
    display: inline-block;
    line-height: 0;
}

.custom-logo-link img {
    max-height: 110px;
    width: auto;
    margin: 0 auto;
}

.site-branding .site-description {
    display: none;
}

/* Search: an icon in the ribbon; the field drops down when it is clicked */

.header-actions {
    display: flex;
    justify-content: flex-end;
    flex: 0 0 auto;
}

.header-search {
    display: none;
    position: absolute;
    top: 100%;
    right: var(--gutter);
    z-index: 40;
    width: 320px;
    max-width: calc(100vw - 2 * var(--gutter));
    align-items: stretch;
    border: 2px solid var(--black);
    border-top: 3px solid var(--orange);
    border-radius: 0 0 var(--radius) var(--radius);
    overflow: hidden;
    background: var(--white);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
}

.search-open .header-search {
    display: flex;
}

.header-search input {
    flex: 1;
    min-width: 0;
    padding: 8px 12px;
    border: 0;
    outline: none;
    font-family: inherit;
    font-size: 15px;
    color: var(--ink);
    background: transparent;
    -webkit-appearance: none;
}

.header-search input::-webkit-search-cancel-button {
    -webkit-appearance: none;
}

.header-search-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    border: 0;
    background: var(--black);
    color: var(--white);
    cursor: pointer;
}

.header-search-submit:hover,
.header-search:focus-within .header-search-submit {
    background: var(--orange);
}

.search-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    min-height: 48px;
    align-self: stretch;
    border: 0;
    background: transparent;
    color: var(--white);
    cursor: pointer;
}

.search-toggle:hover,
.search-toggle:focus-visible,
.search-toggle[aria-expanded="true"] {
    background: var(--orange);
    color: var(--white);
    outline: none;
}

/* Hamburger button (sits in the ribbon) */

.menu-toggle {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    min-height: 48px;
    align-self: stretch;
    padding: 0;
    background: transparent;
    color: var(--white);
    border: 0;
    cursor: pointer;
    font-family: inherit;
    font-size: 15px;
    font-weight: 600;
    line-height: 1;
}

.menu-toggle:hover,
.menu-toggle:focus-visible {
    background: var(--orange);
    outline: none;
}

.menu-toggle-bars {
    display: inline-flex;
    flex-direction: column;
    justify-content: space-between;
    width: 22px;
    height: 16px;
}

.menu-toggle-bars span {
    display: block;
    height: 3px;
    width: 100%;
    background: currentColor;
    border-radius: 2px;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.drawer-open .menu-toggle-bars span:nth-child(1) {
    transform: translateY(6.5px) rotate(45deg);
}

.drawer-open .menu-toggle-bars span:nth-child(2) {
    opacity: 0;
}

.drawer-open .menu-toggle-bars span:nth-child(3) {
    transform: translateY(-6.5px) rotate(-45deg);
}

/* =========================
   Main navigation (horizontal)
   ========================= */

.main-navigation {
    position: sticky;
    top: 0;
    z-index: 500;
    background: var(--black);
    border-bottom: 3px solid var(--orange);
}

.admin-bar .main-navigation {
    top: 32px;
}

@media (max-width: 782px) {
    .admin-bar .main-navigation {
        top: 46px;
    }
}

/* Back-to-top button */

.back-to-top {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 900;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border: 2px solid var(--black);
    border-radius: 50%;
    background: var(--orange);
    color: var(--white);
    cursor: pointer;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.22);
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.2s ease, transform 0.2s ease, background 0.15s ease;
}

.back-to-top[hidden] {
    display: inline-flex;
    pointer-events: none;
}

.back-to-top.is-visible {
    opacity: 1;
    transform: none;
    pointer-events: auto;
}

.back-to-top:hover,
.back-to-top:focus-visible {
    background: var(--black);
    border-color: var(--orange);
    outline: none;
}

.main-navigation-inner {
    position: relative;
    display: flex;
    align-items: stretch;
    gap: 8px;
}

.main-navigation ul {
    list-style: none;
    margin: 0;
    padding: 0;
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    align-items: stretch;
    justify-content: center;
    gap: 0;
    overflow-x: auto;
    scrollbar-width: none;
}

.main-navigation ul::-webkit-scrollbar {
    display: none;
}

.main-navigation li {
    flex: 0 0 auto;
    display: flex;
}

.main-navigation a {
    display: flex;
    align-items: center;
    padding: 13px 18px;
    color: var(--white);
    font-size: 16px;
    font-weight: 600;
    white-space: nowrap;
    border-bottom: 3px solid transparent;
}

.main-navigation a:hover,
.main-navigation .current-menu-item > a,
.main-navigation .current_page_item > a {
    color: var(--orange);
    border-bottom-color: var(--orange);
}

/* =========================
   Off-canvas drawer
   ========================= */

.drawer-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
    z-index: 1000;
}

.site-drawer {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    height: 100vh;
    height: 100dvh;
    width: min(290px, 84vw);
    background: var(--black);
    color: var(--white);
    transform: translateX(-100%);
    transition: transform 0.28s cubic-bezier(0.2, 0.8, 0.2, 1);
    z-index: 1001;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-right: 4px solid var(--orange);
}

.drawer-open .drawer-overlay {
    opacity: 1;
    visibility: visible;
}

.drawer-open .site-drawer {
    transform: translateX(0);
}

.drawer-header {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px 8px 16px;
    background: var(--black);
    color: var(--white);
    border-bottom: 3px solid var(--orange);
}

.drawer-logo {
    display: inline-block;
    line-height: 0;
}

.drawer-logo .custom-logo-link img {
    max-height: 60px;
    width: auto;
}

.drawer-title {
    font-family: var(--font-head);
    font-weight: 800;
    font-size: 18px;
}

.drawer-close {
    background: transparent;
    border: 0;
    color: var(--white);
    font-size: 30px;
    line-height: 1;
    cursor: pointer;
    padding: 0 4px;
}

.drawer-close:hover {
    color: var(--orange);
}

.drawer-search {
    flex: 0 0 auto;
    display: flex;
    padding: 10px 16px 2px;
    gap: 0;
}

.drawer-search input {
    flex: 1;
    min-width: 0;
    padding: 6px 10px;
    border: 0;
    border-radius: var(--radius) 0 0 var(--radius);
    font-family: inherit;
    font-size: 14px;
}

.drawer-search button {
    padding: 6px 12px;
    font-size: 14px;
    border: 0;
    background: var(--orange);
    color: var(--white);
    font-family: inherit;
    font-weight: 700;
    border-radius: 0 var(--radius) var(--radius) 0;
    cursor: pointer;
}

.drawer-search button:hover {
    background: var(--orange-dark);
}

.drawer-nav {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    padding: 4px 0 8px;
    scrollbar-width: thin;
    scrollbar-color: var(--orange) transparent;
}

.drawer-heading {
    font-family: var(--font-body);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--orange);
    padding: 6px 16px 2px;
}

.drawer-menu,
.drawer-menu ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.drawer-menu > li > a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    padding: 6px 16px;
    font-size: 15px;
    line-height: 1.5;
    font-weight: 600;
    color: var(--white);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    border-left: 4px solid transparent;
}

.drawer-menu > li > a:hover,
.drawer-menu > li.current > a,
.drawer-menu > li.current-menu-item > a {
    background: rgba(255, 255, 255, 0.06);
    border-left-color: var(--orange);
    color: var(--orange);
}

.drawer-menu ul a {
    display: block;
    padding: 9px 20px 9px 36px;
    font-size: 15px;
    color: var(--gray-300);
}

.drawer-count {
    font-size: 11px;
    font-weight: 600;
    color: var(--black);
    background: var(--gray-300);
    min-width: 24px;
    text-align: center;
    border-radius: 999px;
    padding: 0 7px;
}

.drawer-menu > li > a:hover .drawer-count,
.drawer-menu > li.current > a .drawer-count {
    background: var(--orange);
    color: var(--white);
}

.drawer-footer {
    flex: 0 0 auto;
    padding: 7px 16px;
    font-size: 11px;
    color: var(--gray-500);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

@media (max-height: 640px) {
    .drawer-footer,
    .drawer-heading {
        display: none;
    }
}

/* Logged-in users: keep the drawer below the WordPress admin bar. */

.admin-bar .site-drawer,
.admin-bar .drawer-overlay {
    top: 32px;
}

.admin-bar .site-drawer {
    height: calc(100vh - 32px);
    height: calc(100dvh - 32px);
}

@media (max-width: 782px) {
    .admin-bar .site-drawer,
    .admin-bar .drawer-overlay {
        top: 46px;
    }

    .admin-bar .site-drawer {
        height: calc(100vh - 46px);
        height: calc(100dvh - 46px);
    }
}

/* Home icon in menus */

.home-icon {
    display: inline-block;
    vertical-align: -4px;
    flex: 0 0 auto;
}

.main-navigation .menu-item-home > a {
    padding-left: 16px;
    padding-right: 16px;
}

.main-navigation .home-icon {
    width: 22px;
    height: 22px;
}

.drawer-menu .menu-item-home > a .home-icon {
    margin-right: 8px;
}

.drawer-menu .menu-item-home > a .home-label {
    flex: 1;
}

/* =========================
   Banner advertisement
   ========================= */

.banner-ad {
    margin: 24px auto 30px;
    text-align: center;
}

.banner-ad-label {
    display: block;
    font-size: 11px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--gray-500);
    margin-bottom: 6px;
}

.banner-ad-widget {
    display: flex;
    justify-content: center;
}

.banner-ad-widget img {
    margin: 0 auto;
}

.banner-ad-widget p {
    margin: 0;
}

.banner-ad-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
    min-height: 250px;
    margin: 0 auto;
    padding: 20px;
    border: 3px dashed var(--orange);
    background: repeating-linear-gradient(
        -45deg,
        var(--orange-light),
        var(--orange-light) 12px,
        var(--white) 12px,
        var(--white) 24px
    );
    color: var(--gray-900);
}

.banner-ad-placeholder strong {
    font-size: 26px;
    color: var(--orange-dark);
}

.banner-ad-placeholder span {
    font-size: 13px;
    color: var(--gray-700);
}

/* =========================
   Post cards
   ========================= */

.post-card {
    position: relative;
}

.post-image {
    display: block;
    overflow: hidden;
    background: var(--gray-100);
    border-radius: var(--radius);
}

.post-image img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.post-card:hover .post-image img {
    transform: scale(1.04);
}

.post-image-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: linear-gradient(135deg, var(--black) 0%, var(--gray-900) 55%, var(--orange) 56%, var(--orange-dark) 100%);
    color: var(--white);
    font-family: var(--font-head);
    font-weight: 800;
    font-size: 48px;
}

.cat-badge {
    display: inline-block;
    background: var(--orange);
    color: var(--white);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.3px;
    padding: 2px 9px;
    border-radius: 2px;
    margin-bottom: 8px;
}

.cat-badge:hover {
    background: var(--black);
    color: var(--white);
}

.post-card-title {
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 8px;
}

.post-card-title a:hover {
    color: var(--orange);
}

.post-card-excerpt {
    margin: 0 0 8px;
    font-size: 14px;
    color: var(--gray-700);
}

.post-meta {
    display: block;
    font-size: 13px;
    color: var(--gray-500);
}

.post-card--card .post-card-body {
    padding-top: 10px;
}

/* Hero card */

.post-card--hero .post-card-body {
    padding-top: 16px;
}

.post-card--hero .post-card-title {
    font-size: 26px;
    font-weight: 800;
    line-height: 1.25;
}

.post-card--hero .post-card-excerpt {
    font-size: 15px;
}

/* Compact (thumbnail left) */

.post-card--compact {
    display: grid;
    grid-template-columns: 110px 1fr;
    gap: 14px;
    align-items: start;
    padding: 10px 0;
    border-bottom: 1px solid var(--gray-300);
}

.post-card--compact:last-child {
    border-bottom: 0;
}

.post-card--compact .post-image img,
.post-card--compact .post-image-placeholder {
    aspect-ratio: 3 / 2;
}

.post-card--compact .post-image-placeholder {
    font-size: 26px;
}

.post-card--compact .cat-badge {
    font-size: 11px;
    padding: 1px 7px;
    margin-bottom: 5px;
}

.post-card--compact .post-card-title {
    font-size: 15px;
    line-height: 1.4;
    margin-bottom: 4px;
}

.post-card--compact .post-meta {
    font-size: 12px;
}

/* =========================
   Home: hero
   ========================= */

.home-hero {
    padding: 6px 0 20px;
    border-bottom: 4px solid var(--black);
}

.home-hero-grid {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 28px;
}

.home-hero-side {
    display: flex;
    flex-direction: column;
}

.home-hero-side .post-card--compact:first-child {
    padding-top: 0;
}

/* =========================
   Home: category sections
   ========================= */

.home-section {
    padding: 22px 0 6px;
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    border-bottom: 2px solid var(--black);
    margin-bottom: 14px;
}

.section-title {
    position: relative;
    font-size: 22px;
    font-weight: 800;
    padding: 6px 16px;
    background: var(--orange);
    color: var(--white);
    margin-bottom: -2px;
}

.section-title a {
    color: var(--white);
}

.section-title a:hover {
    color: var(--black);
}

.section-title::after {
    content: "";
    position: absolute;
    right: -12px;
    top: 0;
    border-style: solid;
    border-width: 0 0 100% 12px;
    border-color: transparent transparent transparent var(--orange);
    height: 100%;
    width: 0;
}

.section-more {
    font-size: 14px;
    font-weight: 600;
    color: var(--gray-700);
    white-space: nowrap;
}

.section-more:hover {
    color: var(--orange);
}

.section-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 32px;
}

/* Lead + list on the left, two image tiles stacked on the right */

.section-grid--tiles {
    grid-template-columns: 1.05fr 1fr 1fr;
    gap: 24px;
}

/* Only a lead and the tiles (section with just 3 posts) */

.section-grid--nolist {
    grid-template-columns: 1.2fr 1fr;
}

.section-list .post-card--compact:first-child {
    padding-top: 0;
}

/* Image tiles: headline written on the image, whole tile is a link.
   The column stretches to the height of the lead + list beside it. */

.section-tiles {
    display: grid;
    grid-template-rows: 1fr 1fr;
    gap: 12px;
    padding-left: 24px;
    border-left: 1px solid var(--gray-300);
}

.post-card--overlay {
    position: relative;
    min-height: 150px;
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--black);
    border-top: 3px solid var(--orange);
}

.overlay-link {
    position: absolute;
    inset: 0;
    display: block;
    color: var(--white);
}

.overlay-link:hover,
.overlay-link:focus {
    color: var(--white);
}

.overlay-media {
    position: absolute;
    inset: 0;
    display: block;
    overflow: hidden;
}

.overlay-media img,
.overlay-media .post-image-placeholder {
    display: block;
    width: 100%;
    height: 100%;
    aspect-ratio: auto;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.post-card--overlay:hover .overlay-media img,
.post-card--overlay:hover .overlay-media .post-image-placeholder {
    transform: scale(1.05);
}

.overlay-caption {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 44px 14px 12px;
    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.92) 0%,
        rgba(0, 0, 0, 0.72) 32%,
        rgba(0, 0, 0, 0.18) 62%,
        rgba(0, 0, 0, 0) 100%
    );
}

.overlay-caption .cat-badge {
    align-self: flex-start;
    margin-bottom: 8px;
}

.overlay-title {
    display: block;
    font-family: var(--font-head);
    font-size: 17px;
    font-weight: 700;
    line-height: 1.35;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.overlay-link:hover .overlay-title {
    text-decoration: underline;
    text-decoration-color: var(--orange);
    text-decoration-thickness: 2px;
    text-underline-offset: 4px;
}

.overlay-caption .post-meta {
    margin-top: 6px;
    color: rgba(255, 255, 255, 0.78);
}


/* =========================
   Archives / listing
   ========================= */

.page-header {
    padding: 28px 0 16px;
    margin-bottom: 24px;
    border-bottom: 2px solid var(--black);
}

.page-title {
    display: inline-block;
    font-size: 26px;
    font-weight: 800;
    background: var(--orange);
    color: var(--white);
    padding: 6px 18px;
    margin-bottom: -2px;
}

.page-title span {
    font-weight: 500;
}

.archive-description {
    margin-top: 12px;
    color: var(--gray-700);
}

.post-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px 28px;
}

.post-grid--3 {
    grid-template-columns: repeat(3, 1fr);
}

.post-grid-lead {
    grid-column: 1 / -1;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--gray-300);
}

.post-grid-lead .post-card--hero {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 28px;
    align-items: center;
}

.no-posts {
    padding: 40px 0;
    text-align: center;
    color: var(--gray-700);
}

.pagination {
    margin: 40px 0 10px;
    text-align: center;
}

.pagination .nav-links {
    display: inline-flex;
    gap: 6px;
}

.pagination .page-numbers {
    display: inline-block;
    padding: 8px 14px;
    border: 2px solid var(--black);
    font-weight: 600;
    border-radius: var(--radius);
}

.pagination .page-numbers.current,
.pagination .page-numbers:hover {
    background: var(--orange);
    border-color: var(--orange);
    color: var(--white);
}

/* =========================
   Single article
   ========================= */

.single-article {
    padding: 30px 0 10px;
}

.entry-header {
    margin-bottom: 22px;
}

.entry-title {
    font-size: 36px;
    font-weight: 800;
    line-height: 1.25;
    margin: 6px 0 14px;
}

.entry-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px 16px;
    font-size: 14px;
    color: var(--gray-500);
    padding-bottom: 12px;
    border-bottom: 1px solid var(--gray-300);
}

.entry-meta-text {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.entry-meta .post-meta {
    display: inline;
    font-size: 14px;
}

/* Share bar after the article */

.entry-share {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 28px 0 8px;
    padding: 12px 16px;
    border: 1.5px solid var(--black);
    border-left: 4px solid var(--orange);
    border-radius: var(--radius);
    background: var(--gray-100);
}

.entry-share-label {
    font-family: var(--font-head);
    font-size: 17px;
    font-weight: 700;
    color: var(--black);
}

.entry-share .share-menu {
    top: auto;
    bottom: calc(100% + 8px);
    border-top: 1.5px solid var(--black);
    border-bottom: 3px solid var(--orange);
}

/* Share button + popover */

.share {
    position: relative;
    margin-left: auto;
}

.share-toggle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    border: 1.5px solid var(--black);
    border-radius: 999px;
    background: var(--white);
    color: var(--black);
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.share-toggle:hover,
.share-toggle:focus-visible,
.share-toggle[aria-expanded="true"] {
    background: var(--orange);
    border-color: var(--orange);
    color: var(--white);
    outline: none;
}

.share-menu {
    position: absolute;
    right: 0;
    top: calc(100% + 8px);
    z-index: 30;
    min-width: 200px;
    padding: 6px;
    background: var(--white);
    border: 1.5px solid var(--black);
    border-top: 3px solid var(--orange);
    border-radius: var(--radius);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.14);
}

.share-menu[hidden] {
    display: none;
}

.share-item {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 8px 10px;
    border: 0;
    border-radius: var(--radius);
    background: none;
    color: var(--ink);
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
}

.share-item:hover,
.share-item:focus-visible {
    background: var(--orange-light);
    color: var(--orange-dark);
    outline: none;
}

.share-item svg {
    flex: 0 0 auto;
    color: var(--orange);
}

.share-item--copy {
    border-top: 1px solid var(--gray-300);
    border-radius: 0 0 var(--radius) var(--radius);
    margin-top: 4px;
    padding-top: 10px;
}

.share-item--copy.is-copied {
    color: var(--orange-dark);
}

.share-item--copy.is-copied svg {
    color: var(--black);
}

.entry-thumbnail {
    margin: 0 0 24px;
}

.entry-thumbnail img {
    width: 100%;
    border-radius: var(--radius);
}

.entry-thumbnail figcaption {
    font-size: 13px;
    color: var(--gray-500);
    margin-top: 6px;
}

.entry-content {
    font-family: var(--font-article);
    font-size: 20px;
    line-height: 1.85;
    color: var(--gray-900);
}

.entry-content p {
    margin: 0 0 1.3em;
}

.entry-content h2,
.entry-content h3 {
    margin: 1.4em 0 0.6em;
}

.entry-content a {
    color: var(--orange-dark);
    text-decoration: underline;
}

.entry-content blockquote {
    margin: 1.5em 0;
    padding: 12px 20px;
    border-left: 4px solid var(--orange);
    background: var(--orange-light);
    font-style: italic;
}

.entry-content img {
    border-radius: var(--radius);
}

.entry-footer {
    margin-top: 24px;
    padding-top: 16px;
    border-top: 1px solid var(--gray-300);
    font-size: 14px;
}

.entry-footer a {
    display: inline-block;
    padding: 2px 10px;
    margin: 2px;
    background: var(--gray-100);
    border-radius: 999px;
}

.entry-footer a:hover {
    background: var(--orange);
    color: var(--white);
}

.related-posts {
    margin-top: 40px;
}

/* =========================
   Responsive
   ========================= */

@media (max-width: 960px) {
    .home-hero-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .home-hero-side {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 0 24px;
        padding-top: 10px;
    }

    .section-grid,
    .section-grid--tiles {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .section-tiles {
        grid-template-rows: none;
        grid-template-columns: repeat(2, 1fr);
        gap: 14px;
        padding-left: 0;
        border-left: 0;
        padding-top: 14px;
    }

    .post-card--overlay {
        min-height: 0;
        aspect-ratio: 16 / 10;
    }

    .post-grid,
    .post-grid--3 {
        grid-template-columns: repeat(2, 1fr);
    }

    .post-grid-lead .post-card--hero {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .site-footer-inner {
        grid-template-columns: 1fr;
        gap: 32px;
    }
}

@media (max-width: 640px) {
    /* Phones: compact logo header pinned above the ribbon, no date */
    .site-header {
        position: sticky;
        top: 0;
        z-index: 510;
    }

    .admin-bar .site-header {
        top: 46px;
    }

    .main-navigation {
        top: var(--header-h, 72px);
    }

    .admin-bar .main-navigation {
        top: calc(46px + var(--header-h, 72px));
    }

    .site-header-inner {
        padding-top: 4px;
        padding-bottom: 4px;
    }

    .site-branding {
        line-height: 0;
    }

    .site-title {
        font-size: 26px;
    }

    .custom-logo-link img {
        max-height: 46px;
    }

    .site-date {
        display: none;
    }

    .menu-toggle,
    .search-toggle {
        width: 44px;
        min-height: 44px;
    }

    .header-search {
        left: var(--gutter);
        right: var(--gutter);
        width: auto;
        max-width: none;
    }

    .header-search input {
        padding: 11px 12px;
        font-size: 16px;
    }

    .main-navigation ul {
        justify-content: flex-start;
    }

    .main-navigation a {
        padding: 11px 14px;
        font-size: 15px;
    }

    .home-hero-side {
        grid-template-columns: 1fr;
    }

    .section-tiles {
        grid-template-columns: 1fr;
    }

    .overlay-title {
        font-size: 18px;
    }

    .post-card--hero .post-card-title {
        font-size: 24px;
    }

    .post-grid,
    .post-grid--3 {
        grid-template-columns: 1fr;
    }

    .entry-title {
        font-size: 26px;
    }

    .entry-content {
        font-size: 19px;
        line-height: 1.8;
    }

    .section-title,
    .page-title {
        font-size: 18px;
    }

    .banner-ad-placeholder {
        min-height: 140px;
        padding: 14px;
    }

    .banner-ad-placeholder strong {
        font-size: 20px;
    }
}

/* =========================
   Comments
   ========================= */

.comments-area {
    margin-top: 40px;
    padding-top: 24px;
    border-top: 2px solid var(--black);
}

.comments-title,
.comment-reply-title {
    font-size: 22px;
    margin-bottom: 16px;
}

.comment-list {
    list-style: none;
    margin: 0 0 30px;
    padding: 0;
}

.comment-list .comment {
    padding: 16px 0;
    border-bottom: 1px solid var(--gray-300);
}

.comment-author .avatar {
    border-radius: 50%;
    float: left;
    margin-right: 12px;
}

.comment-metadata {
    font-size: 13px;
    color: var(--gray-500);
}

.comment-form label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 4px;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    width: 100%;
    max-width: 100%;
    padding: 10px 12px;
    border: 2px solid var(--gray-300);
    border-radius: var(--radius);
    font-family: inherit;
    font-size: 15px;
    background: var(--white);
    color: var(--ink);
}

.comment-form input:focus,
.comment-form textarea:focus {
    outline: none;
    border-color: var(--orange);
}

.comment-form p {
    margin: 0 0 14px;
}

.comment-form .comment-notes,
.comment-form .logged-in-as {
    font-size: 14px;
    color: var(--gray-700);
}

.comment-form .submit,
.wp-block-button__link,
button.button {
    display: inline-block;
    padding: 10px 22px;
    background: var(--orange);
    color: var(--white);
    border: 0;
    border-radius: var(--radius);
    font-family: inherit;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
}

.comment-form .submit:hover {
    background: var(--black);
}

/* =========================
   Category sections: no badges, larger titles
   ========================= */

.home-section .section-lead .post-card-title {
    font-size: 21px;
    line-height: 1.35;
}

.home-section .post-card--compact .post-card-title {
    font-size: 17px;
}

.home-section .overlay-title {
    font-size: 19px;
}

.home-section .overlay-caption {
    padding-top: 60px;
}

@media (max-width: 640px) {
    .home-section .section-lead .post-card-title {
        font-size: 19px;
    }

    .home-section .post-card--compact .post-card-title {
        font-size: 16px;
    }
}

/* =========================
   Social media links
   ========================= */

.social-links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.25);
    color: var(--white);
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

.social-link svg {
    width: 20px;
    height: 20px;
}

.social-link .social-label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(1px, 1px, 1px, 1px);
    white-space: nowrap;
}

.social-link:hover,
.social-link:focus-visible {
    background: var(--orange);
    border-color: var(--orange);
    color: var(--white);
    transform: translateY(-2px);
    outline: none;
}

/* Footer column */

.footer-social {
    margin-top: 22px;
}

/* Drawer: compact row of icons */

.drawer-social {
    flex: 0 0 auto;
    padding: 6px 0 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.social-links--drawer {
    gap: 8px;
    padding: 4px 16px 0;
}

.social-links--drawer .social-link {
    width: 36px;
    height: 36px;
    border-color: rgba(255, 255, 255, 0.18);
}

.social-links--drawer .social-link svg {
    width: 18px;
    height: 18px;
}

@media (max-height: 640px) {
    .drawer-social {
        display: none;
    }
}

/* Footer bottom line */

.site-footer-bottom p {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px 10px;
}

.site-footer-bottom a {
    color: var(--gray-300);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.site-footer-bottom a:hover {
    color: var(--orange);
}

.footer-sep {
    color: var(--gray-700);
}

/* Static pages */

.static-page .entry-header {
    border-bottom: 2px solid var(--black);
    padding-bottom: 12px;
}

.static-page .entry-content {
    font-size: 19px;
}

@media (max-width: 640px) {
    .site-footer-bottom .footer-credit {
        flex-direction: column;
        gap: 4px;
    }

    .site-footer-bottom .footer-sep {
        display: none;
    }
}

/* =========================
   Footer (centred newspaper style)
   ========================= */

.site-footer {
    margin-top: 40px;
    background: var(--black);
    color: var(--white);
    border-top: 5px solid var(--orange);
}

.site-footer-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 14px;
    padding-top: 20px;
    padding-bottom: 18px;
}

.footer-brand {
    line-height: 0;
}

.footer-logo {
    display: inline-block;
    line-height: 0;
}

.footer-logo .custom-logo-link img {
    max-height: 52px;
    width: auto;
    margin: 0;
}

.footer-title {
    font-family: var(--font-head);
    font-size: 30px;
    font-weight: 800;
    color: var(--white);
    line-height: 1.2;
}

.footer-title:hover {
    color: var(--orange);
}

/* One line of sections, divided by thin rules */

.footer-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    row-gap: 8px;
}

.footer-nav li {
    display: flex;
    align-items: center;
}

.footer-nav li + li::before {
    content: "";
    display: block;
    width: 1px;
    height: 14px;
    margin: 0 14px;
    background: rgba(255, 255, 255, 0.22);
}

.footer-nav a {
    color: var(--white);
    font-size: 15px;
    font-weight: 600;
    line-height: 1.4;
}

.footer-nav a:hover {
    color: var(--orange);
}

.footer-social {
    margin: 0;
}

.footer-social .social-links {
    justify-content: center;
    gap: 10px;
}

/* Slim legal bar: page links left, credit right */

.site-footer-bottom {
    background: #000000;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 13px;
    color: var(--gray-500);
}

.site-footer-bottom-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px 24px;
    padding-top: 10px;
    padding-bottom: 10px;
}

.footer-links {
    margin: 0;
}

.footer-links ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 6px 18px;
}

.footer-links a {
    color: var(--gray-300);
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
}

.footer-links a:hover {
    color: var(--orange);
}

.site-footer-bottom .footer-credit {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 6px 10px;
    margin: 0;
}

.site-footer-bottom .footer-credit a {
    color: var(--gray-300);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.site-footer-bottom .footer-credit a:hover {
    color: var(--orange);
}

.site-footer-bottom .footer-sep {
    color: var(--gray-700);
}

@media (max-width: 782px) {
    .site-footer-bottom-inner {
        flex-direction: column;
        justify-content: center;
        text-align: center;
        gap: 10px;
    }

    .footer-links ul {
        justify-content: center;
    }

    .site-footer-bottom .footer-credit {
        justify-content: center;
    }
}

@media (max-width: 640px) {
    .site-footer-inner {
        gap: 12px;
        padding-top: 16px;
        padding-bottom: 14px;
    }

    .footer-logo .custom-logo-link img {
        max-height: 44px;
    }

    .footer-nav ul {
        gap: 6px 18px;
    }

    .footer-nav li + li::before {
        display: none;
    }

    .footer-nav a {
        font-size: 14px;
    }

    .site-footer-bottom .footer-credit {
        flex-direction: column;
        gap: 4px;
    }

    .site-footer-bottom .footer-sep {
        display: none;
    }
}

.footer-social .social-link {
    width: 34px;
    height: 34px;
}

.footer-social .social-link svg {
    width: 17px;
    height: 17px;
}

/* Logged-in users on small phones: WordPress lets the admin bar scroll away below 600px,
   so the pinned header and ribbon must not reserve space for it there. */
@media (max-width: 600px) {
    .admin-bar .site-header {
        top: 0;
    }

    .admin-bar .main-navigation {
        top: var(--header-h, 54px);
    }
}
