.hover-nav {
    display: inline-flex;
    align-items: center;
    position: relative;
    left: -12px;
  }

  .hover-nav-right {
    left: 12px;
  }

  .hover-nav a {
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.2s ease-in-out;
    padding-bottom: 2px;
    font-weight: bold;
    margin: 0 !important;
  }
  .hover-nav:hover a {
    visibility: visible;
    opacity: 1;
  }
  .hover-date {
    margin: 0 4px;
  }

  .article-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
  }
  .article-bar .detai-social {
    float: none;
  }
  .article-bar-logo {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
  }

  .category-toggle {
    cursor: pointer;
  }

  .editions-toggle {
    cursor: pointer;
  }

  /* Category panel - sits above .wrap, hidden until triggered */
  .category-panel {
    position: absolute;
    left: 0;
    right: 0;
    z-index: 998;
    text-align: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease;
  }
  .open-categories .category-panel {
    opacity: 1;
    visibility: visible;
  }
  .category-panel-inner {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    padding: 30px 20px;
  }

  @media screen and (max-width: 767px) {
    .category-panel-inner {
      padding: 10px 10px;
    }
  }

  .category-panel-inner a {
    display: inline-block;
    padding: 8px 18px;
    color: #aaa;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-family: 'Oswald', sans-serif;
    font-weight: 400;
    transition: color 0.3s ease;
  }
  .category-panel-inner a:hover {
    color: #fff;
    text-decoration: none;
  }
  .category-panel-inner a.active {
    color: #fff;
    font-weight: 600;
  }

  /* Open-categories transition - replicates theme open-menu effect */
  .open-categories {
    background-color: #111;
    transition: background-color 0.5s ease;
  }
  .open-categories .wrap {
    transform: translate3d(0px, 120px, 0px) scale(0.98);
  }
  
  .open-categories .wrap:before {
    visibility: visible;
    opacity: 1;
  }
  .open-categories .wrap:after {
    visibility: visible;
    opacity: 1;
  }
  .open-categories .footer {
    transform: translate3d(0px, 200px, 0px);
    color: #fff;
  }

  /* =============================================
     EDITION HOME — Header
     ============================================= */
  .edition-header {
    border-bottom: 1px solid #e5e5e5;
    margin-bottom: 40px;
    padding-bottom: 25px;
  }
  .edition-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
  }
  .edition-masthead {
    text-align: center;
    flex: 1;
  }
  .edition-logo img {
    max-height: 50px;
    margin-bottom: 8px;
  }
  .edition-date {
    font-family: 'Oswald', sans-serif;
    font-weight: 400;
    font-size: 14px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #999;
    margin: 0;
  }
  .edition-count {
    font-family: 'Lora', serif;
    font-style: italic;
    font-size: 13px;
    color: #bbb;
    margin: 4px 0 0;
  }
  .edition-nav {
    flex-shrink: 0;
    min-width: 100px;
  }
  .edition-nav a {
    font-family: 'Oswald', sans-serif;
    font-weight: 300;
    font-size: 12px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #aaa;
    transition: color 0.2s ease;
  }
  .edition-nav a:hover {
    color: #333;
    text-decoration: none;
  }
  .edition-nav-left {
    text-align: left;
  }
  .edition-nav-right {
    text-align: right;
  }

  /* =============================================
     EDITION HOME — Lead Story
     ============================================= */
  .edition-lead {
    margin-bottom: 50px;
    padding-bottom: 50px;
    border-bottom: 1px solid #e5e5e5;
  }
  .edition-lead .post-thumb {
    margin-bottom: 20px;
  }
  .edition-lead .post-thumb img {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: cover;
  }
  .edition-lead .post-meta {
    margin-bottom: 10px;
  }
  .edition-lead .post-des p {
    font-size: 16px;
    line-height: 1.7;
    color: #666;
  }

  /* =============================================
     EDITION HOME — Topic Stream
     ============================================= */
  .edition-stream {
    max-width: 780px;
    margin: 0 auto;
  }
  .edition-topic {
    margin-bottom: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid #f0f0f0;
  }
  .edition-topic:last-child {
    border-bottom: none;
  }
  .edition-topic .col-caption {
    margin-bottom: 15px;
  }
  .edition-topic-article .post-thumb {
    margin-bottom: 15px;
  }
  .edition-topic-article .post-thumb img {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: cover;
  }
  .edition-topic-article .post-title {
    margin-bottom: 8px;
  }
  .edition-topic-article .post-des p {
    font-size: 15px;
    line-height: 1.6;
    color: #777;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  /* =============================================
     EDITION HOME — Image Gallery
     ============================================= */
  .edition-gallery {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .edition-gallery-item {
    flex-shrink: 0;
    display: block;
  }
  .edition-gallery img {
    height: 140px;
    width: auto;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: 3px;
  }
  .edition-gallery-sm img {
    height: 100px;
  }

  /* =============================================
     EDITION HOME — Bottom Navigation
     ============================================= */
  .edition-bottom {
    margin-top: 50px;
    padding-top: 40px;
    border-top: 2px solid #e5e5e5;
    text-align: center;
  }
  .edition-bottom .col-caption {
    display: inline-block;
    margin-bottom: 20px;
  }
  .edition-archive-list {
    list-style: none;
    padding: 0;
    margin: 0 0 25px;
  }
  .edition-archive-list li {
    display: inline-block;
    margin: 0 8px 8px;
  }
  .edition-archive-list li a {
    font-family: 'Oswald', sans-serif;
    font-weight: 300;
    font-size: 13px;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #999;
    transition: color 0.2s ease;
  }
  .edition-archive-list li a:hover {
    color: #333;
    text-decoration: none;
  }
  .edition-archive-link {
    margin-top: 10px;
  }
  .edition-archive-link a {
    font-family: 'Oswald', sans-serif;
    font-weight: 400;
    font-size: 13px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #333;
    border-bottom: 1px solid #333;
    padding-bottom: 2px;
    transition: color 0.2s ease, border-color 0.2s ease;
  }
  .edition-archive-link a:hover {
    color: #999;
    border-color: #999;
    text-decoration: none;
  }

  /* =============================================
     EDITION HOME — Lead story layout
     ============================================= */
  .article-fullpage .post-thumb {
    text-align: center;
  }
  .article-fullpage .post-thumb img {
    display: inline-block;
    max-width: 100%;
    height: auto;
  }
  .article-fullpage h1 {
    font-size: 28px;
  }

  @media screen and (max-width: 991px) {
  .article-fullpage h1 {
    font-size: 32px;
  }
}
@media screen and (max-width: 767px) {
  .article-fullpage h1 {
    font-size: 30px;
  }
}
  /* Grid article images 10% smaller */
  .grids-large .post-thumb img {
    max-width: 90%;
    height: auto;
    display: block;
    margin: 0 auto;
  }

  /* Support badge */
  .edition-support-badge {
    display: inline-block;
    max-width: 200px;
    height: auto;
  }

  /* =============================================
     EDITION CALENDAR (mini-calendar in archive section)
     ============================================= */
  .edition-calendar {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    font-family: 'Oswald', sans-serif;
    margin-bottom: 10px;
  }
  .edition-calendar th {
    font-weight: 400;
    font-size: 10px;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #bbb;
    padding: 3px 2px;
    text-align: center;
  }
  .edition-calendar td {
    padding: 4px 2px;
    text-align: center;
  }
  .edition-calendar td a {
    font-weight: 600;
    color: #333;
    transition: color 0.2s ease;
    text-decoration: none;
  }
  .edition-calendar td a:hover {
    color: #999;
  }
  .edition-calendar .no-edition {
    color: #ccc;
  }

  /* =============================================
     SITE HOME — Masthead
     ============================================= */
  .site-masthead {
    text-align: center;
    padding: 30px 0 20px;
    border-bottom: 3px double #333;
    margin-bottom: 30px;
  }
  .site-masthead-name {
    font-family: 'Oswald', sans-serif;
    font-weight: 700;
    font-size: 52px;
    letter-spacing: 6px;
    text-transform: uppercase;
    color: #111;
    line-height: 1;
    margin-bottom: 6px;
  }
  .site-masthead-date {
    font-family: 'Lora', serif;
    font-style: italic;
    font-size: 15px;
    color: #888;
    letter-spacing: 1px;
  }

  /* =============================================
     SITE HOME — Recent Editions Strip
     ============================================= */
  .site-recent-editions {
    margin: 40px 0;
  }
  .site-editions-strip {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 8px;
  }
  .site-edition-card {
    flex-shrink: 0;
    text-align: center;
    text-decoration: none;
    color: inherit;
    width: 110px;
    transition: opacity 0.2s ease;
  }
  .site-edition-card:hover {
    opacity: 0.75;
    text-decoration: none;
  }
  .site-edition-img {
    width: 110px;
    height: 62px;
    overflow: hidden;
    border: 1px solid #e5e5e5;
    margin-bottom: 5px;
  }
  .site-edition-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  .site-edition-date {
    font-family: 'Oswald', sans-serif;
    font-size: 11px;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #999;
  }
  .site-edition-card-latest .site-edition-date {
    color: #333;
    font-weight: 600;
  }
  .site-edition-card-latest .site-edition-img {
    border-color: #333;
  }

  /* =============================================
     ARCHIVE PAGE
     ============================================= */
  .archive-container {
    max-width: 860px;
    margin: 0 auto;
    padding: 30px 0;
  }
  .archive-month-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-bottom: 30px;
  }
  .archive-month-nav h2 {
    font-family: 'Oswald', sans-serif;
    font-weight: 400;
    font-size: 22px;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: #333;
    margin: 0;
    min-width: 220px;
    text-align: center;
  }
  .archive-nav-btn {
    background: none;
    border: 1px solid #ccc;
    font-size: 20px;
    line-height: 1;
    padding: 4px 12px;
    cursor: pointer;
    color: #666;
    transition: border-color 0.2s, color 0.2s;
    font-family: 'Oswald', sans-serif;
  }
  .archive-nav-btn:hover {
    border-color: #333;
    color: #333;
  }
  .archive-nav-btn:disabled {
    opacity: 0.3;
    cursor: default;
  }
  .archive-calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 6px;
  }
  .archive-cal-header {
    font-family: 'Oswald', sans-serif;
    font-size: 11px;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #bbb;
    text-align: center;
    padding: 4px 0;
  }
  .archive-cal-cell {
    min-height: 80px;
    border: 1px solid #f0f0f0;
    padding: 6px;
    font-size: 12px;
  }
  .archive-cal-cell.empty {
    border-color: transparent;
  }
  .archive-cal-cell.has-edition {
    border-color: #e0e0e0;
    background: #fafafa;
  }
  .archive-cal-cell.has-edition:hover {
    border-color: #bbb;
    background: #f5f5f5;
  }
  .archive-day-num {
    font-family: 'Oswald', sans-serif;
    font-size: 18px;
    font-weight: 600;
    color: #222;
    margin-bottom: 4px;
  }
  .archive-day-headline {
    font-family: 'Lora', serif;
    font-size: 11px;
    line-height: 1.4;
    color: #777;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .archive-cal-cell a {
    display: block;
    text-decoration: none;
    color: inherit;
    height: 100%;
  }
  .archive-no-data {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 0;
    font-family: 'Lora', serif;
    font-style: italic;
    color: #aaa;
  }
  @media screen and (max-width: 767px) {
    .site-masthead-name { font-size: 36px; letter-spacing: 3px; }
    .archive-cal-cell { min-height: 60px; }
    .archive-day-num { font-size: 14px; }
    .archive-day-headline { display: none; }
  }

  /* =============================================
     EDITION HOME — Responsive
     ============================================= */
  @media screen and (max-width: 767px) {
    .edition-header-inner {
      flex-direction: column;
      text-align: center;
    }
    .edition-nav {
      min-width: auto;
      margin: 8px 0;
    }
    .edition-nav-left,
    .edition-nav-right {
      text-align: center;
    }
    .edition-lead {
      margin-bottom: 30px;
      padding-bottom: 30px;
    }
    .edition-topic {
      margin-bottom: 25px;
      padding-bottom: 25px;
    }
    .edition-topic-article .post-des p {
      -webkit-line-clamp: 1;
      line-clamp: 1;
    }
    .edition-gallery img {
      height: 90px;
    }
    .edition-gallery-sm img {
      height: 70px;
    }
  }

  /* =============================================
     NO-IMAGE MODE — purely typographic cards
     (ImagesEnabled=False; no accent colours)
     ============================================= */
  .edition-lead.no-image {
    padding: 20px 0 10px;
    margin-bottom: 8px;
  }
  .no-image-kicker {
    font-family: 'Oswald', sans-serif;
    font-weight: 400;
    font-size: 11px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #999;
    margin: 0 0 6px;
  }
  .edition-topic-article.no-image {
    padding: 10px 0;
  }
  .edition-topic-article.no-image .post-title {
    font-size: 15px;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 8px;
  }
  .edition-topic-article.no-image .post-des p {
    font-size: 15px;
    line-height: 1.6;
    color: #666;
    display: -webkit-box;
    -webkit-line-clamp: 6;
    line-clamp: 6;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  /* Lead headline starts the page directly (no "Headlines" kicker) */
  .edition-lead-headline {
    margin-top: 18px;
  }
  /* Centre the Ko-fi support badge within its column */
  .recent-post.edition-support {
    text-align: center;
  }