/*
Theme Name: Liputan Nasional
Description: Tema berita editorial untuk Liputan Nasional. Beranda dengan sorotan dan headline pilihan, pencarian, arsip, artikel dengan waktu baca, berbagi tanpa SDK, dan pengaturan headline tanpa plugin tambahan. Aksesibel, responsif, dan tanpa aset eksternal.
Version: 1.2.0
Author: Liputan Nasional
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: liputan-nasional
*/

/* ==========================================================================
   1. Design tokens
   ========================================================================== */
:root {
    /* Brand */
    --ln-blue-900: #062c5c;
    --ln-blue-800: #073f84;
    --ln-blue-700: #0a4d9e;
    --ln-blue-600: #0f62bd;
    --ln-blue: var(--ln-blue-800);
    --ln-red: #c31f2c;
    --ln-red-600: #a91622;

    /* Ink and surfaces */
    --ln-ink: #101d2f;
    --ln-text: #243749;
    --ln-muted: #56657a;
    --ln-muted-2: #74839a;
    --ln-line: #e2e8f0;
    --ln-line-strong: #ccd6e3;
    --ln-surface: #f5f7fb;
    --ln-surface-2: #eaeff7;
    --ln-white: #fff;

    /* Feedback */
    --ln-focus: #0a63c9;
    --ln-success: #147746;

    /* Type */
    --ln-font-ui: 'Roboto Condensed', 'Arial Narrow', Arial, system-ui, sans-serif;
    --ln-font-article: 'Merriweather', Georgia, 'Times New Roman', serif;
    --ln-font-editorial: 'Lora', Georgia, 'Times New Roman', serif;

    /* Metrics */
    --ln-container: 1240px;
    --ln-container-wide: 1340px;
    --ln-gutter: clamp(18px, 3.4vw, 30px);
    --ln-nav-h: 56px;
    --ln-radius-sm: 4px;
    --ln-radius: 8px;
    --ln-radius-lg: 12px;
    --ln-shadow-sm: 0 1px 2px rgba(16, 35, 60, .07);
    --ln-shadow: 0 6px 22px rgba(16, 35, 60, .09);
    --ln-shadow-lg: 0 18px 44px rgba(9, 26, 50, .18);
    --ln-ease: cubic-bezier(.2, .6, .3, 1);
}

/* ==========================================================================
   2. Reset and base
   ========================================================================== */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--ln-white);
    color: var(--ln-text);
    font-family: var(--ln-font-ui);
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-wrap: break-word;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    margin: 0;
    color: var(--ln-ink);
    font-family: var(--ln-font-ui);
    line-height: 1.2;
    text-wrap: balance;
}

p {
    margin: 0;
}

a {
    color: inherit;
    text-decoration: none;
    -webkit-tap-highlight-color: transparent;
}

img,
svg,
video {
    max-width: 100%;
}

img {
    display: block;
    height: auto;
    border-style: none;
}

figure {
    margin: 0;
}

button,
input,
select,
textarea {
    font: inherit;
    color: inherit;
}

button {
    border: 0;
    background: none;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

ul,
ol {
    margin: 0;
    padding: 0;
}

::selection {
    background: #cfe1f8;
    color: #0b1f38;
}

[id] {
    scroll-margin-top: calc(var(--ln-nav-h) + 16px);
}

/* ==========================================================================
   3. Accessibility helpers and focus
   ========================================================================== */
.screen-reader-text {
    position: absolute !important;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.screen-reader-text:focus {
    clip: auto;
    width: auto;
    height: auto;
    padding: 14px 18px;
    margin: 0;
    z-index: 200;
    left: 16px;
    top: 16px;
    background: var(--ln-white);
    color: var(--ln-blue-800);
    border-radius: var(--ln-radius);
    box-shadow: var(--ln-shadow);
}

.ln-skip-link {
    position: absolute;
    left: 16px;
    top: -100px;
    z-index: 210;
    padding: 13px 20px;
    border-radius: var(--ln-radius);
    background: var(--ln-white);
    color: var(--ln-blue-800);
    font-weight: 700;
    box-shadow: var(--ln-shadow);
    transition: top .16s var(--ln-ease);
}

.ln-skip-link:focus {
    top: 14px;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible,
[tabindex]:focus-visible {
    outline: 3px solid var(--ln-focus);
    outline-offset: 2px;
    border-radius: 3px;
}

.ln-navbar a:focus-visible,
.ln-navbar button:focus-visible {
    outline-color: var(--ln-white);
    outline-offset: -3px;
}

/* ==========================================================================
   4. Layout primitives
   ========================================================================== */
.ln-wrap {
    width: 100%;
    max-width: var(--ln-container);
    margin-inline: auto;
    padding-inline: var(--ln-gutter);
}

.ln-main {
    display: block;
}

.ln-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 46px;
    padding: 0 22px;
    border-radius: var(--ln-radius);
    background: var(--ln-blue-800);
    color: var(--ln-white);
    font-size: 15px;
    font-weight: 700;
    line-height: 1;
    transition: background-color .16s var(--ln-ease), box-shadow .16s var(--ln-ease);
}

.ln-button:hover {
    background: var(--ln-blue-700);
    box-shadow: var(--ln-shadow-sm);
}

.ln-button--quiet {
    background: var(--ln-white);
    border: 1px solid var(--ln-line-strong);
    color: var(--ln-blue-800);
}

.ln-button--quiet:hover {
    background: var(--ln-surface);
    border-color: var(--ln-blue-600);
}

/* ==========================================================================
   5. Utility bar
   ========================================================================== */
.ln-utility {
    background: var(--ln-surface);
    border-bottom: 1px solid var(--ln-line);
    font-size: 12px;
    color: var(--ln-muted);
}

.ln-utility .ln-wrap {
    display: flex;
    align-items: center;
    min-height: 34px;
}

.ln-utility-date {
    letter-spacing: .02em;
}

/* ==========================================================================
   6. Masthead
   ========================================================================== */
.ln-masthead {
    background: var(--ln-white);
}

.ln-masthead-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: clamp(18px, 3vw, 38px);
    padding-block: clamp(16px, 2.4vw, 24px);
}

.ln-brand {
    flex: 0 0 auto;
    min-width: 0;
}

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

.ln-logo,
.custom-logo-link img {
    width: clamp(200px, 22vw, 268px);
    max-width: 100%;
    max-height: 92px;
    height: auto;
    object-fit: contain;
}

/* Search */
.ln-header-search {
    flex: 0 1 340px;
    min-width: 0;
}

.ln-header-search .ln-search-form {
    width: 100%;
}

.ln-search-form {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1 1 auto;
    min-width: 0;
    width: 100%;
    padding: 4px 4px 4px 14px;
    border: 1px solid var(--ln-line-strong);
    border-radius: 10px;
    background: var(--ln-white);
    color: var(--ln-muted);
    transition: border-color .16s var(--ln-ease), box-shadow .16s var(--ln-ease);
}

.ln-search-form:focus-within {
    border-color: var(--ln-blue-600);
    box-shadow: 0 0 0 3px rgba(15, 98, 189, .22);
}

.ln-search-icon {
    flex: 0 0 auto;
    color: var(--ln-muted);
}

.ln-search-form input[type="search"] {
    flex: 1 1 auto;
    width: 100%;
    min-width: 0;
    min-height: 40px;
    padding: 6px 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: var(--ln-ink);
    font-size: 16px;
    line-height: 1.4;
}

.ln-search-form input[type="search"]:focus {
    outline: none;
    box-shadow: none;
}

.ln-search-form input::placeholder {
    color: var(--ln-muted);
    opacity: 1;
}

.ln-search-submit {
    flex: 0 0 auto;
    min-height: 40px;
    padding: 0 16px;
    border-radius: 7px;
    background: var(--ln-blue-800);
    color: var(--ln-white);
    font-size: 14px;
    font-weight: 700;
    transition: background-color .16s var(--ln-ease);
}

.ln-search-submit:hover {
    background: var(--ln-blue-700);
}

/* ==========================================================================
   7. Primary navigation
   ========================================================================== */
.ln-navbar {
    position: sticky;
    top: 0;
    z-index: 60;
    background: var(--ln-blue-800);
    color: var(--ln-white);
    box-shadow: 0 1px 0 rgba(255, 255, 255, .08);
    transition: box-shadow .2s var(--ln-ease);
}

.ln-navbar.is-scrolled {
    box-shadow: var(--ln-shadow-lg);
}

body.admin-bar .ln-navbar {
    top: 32px;
}

@media (max-width: 782px) {
    body.admin-bar .ln-navbar {
        top: 46px;
    }

    body.admin-bar .ln-progress {
        top: 46px;
    }
}

.ln-navbar-inner {
    display: flex;
    align-items: stretch;
    gap: 22px;
    min-height: var(--ln-nav-h);
}

.ln-nav-panel {
    display: flex;
    flex: 1 1 auto;
    align-items: stretch;
    min-width: 0;
    overflow-x: auto;
    scrollbar-width: none;
}

.ln-nav-panel::-webkit-scrollbar {
    display: none;
}

.ln-menu {
    display: flex;
    align-items: stretch;
    gap: 26px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.ln-menu li {
    display: flex;
    align-items: stretch;
    white-space: nowrap;
}

.ln-menu li > a {
    position: relative;
    display: flex;
    align-items: center;
    padding: 0 2px;
    color: #e8f0fb;
    font-size: 15px;
    font-weight: 500;
    line-height: 1.2;
    transition: color .18s var(--ln-ease);
}

.ln-menu li > a::after {
    content: '';
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    height: 3px;
    background: #ff6b73;
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform .24s var(--ln-ease);
}

.ln-menu li.current-menu-item > a,
.ln-menu li.current-cat > a,
.ln-menu li.current_page_item > a {
    color: var(--ln-white);
    font-weight: 700;
}

.ln-menu li.current-menu-item > a::after,
.ln-menu li.current-cat > a::after,
.ln-menu li.current_page_item > a::after {
    transform: scaleX(1);
}

@media (hover: hover) {
    .ln-menu li > a:hover {
        color: var(--ln-white);
    }

    .ln-menu li > a:hover::after {
        transform: scaleX(1);
    }
}

.ln-edition {
    align-self: center;
    margin-left: auto;
    padding-left: 22px;
    border-left: 1px solid rgba(255, 255, 255, .28);
    color: #cfe0f5;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .14em;
    white-space: nowrap;
}

.ln-nav-toggle {
    display: none;
    align-items: center;
    align-self: center;
    gap: 10px;
    min-height: 44px;
    padding: 0 14px;
    border: 1px solid rgba(255, 255, 255, .34);
    border-radius: var(--ln-radius);
    background: rgba(255, 255, 255, .06);
    color: var(--ln-white);
    font-size: 14px;
    font-weight: 700;
}

.ln-nav-search {
    display: none;
    align-self: center;
    align-items: center;
    justify-content: center;
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    margin-left: auto;
    border: 1px solid rgba(255, 255, 255, .34);
    border-radius: var(--ln-radius);
    background: rgba(255, 255, 255, .06);
    color: var(--ln-white);
}

.ln-nav-search:hover {
    background: rgba(255, 255, 255, .16);
}

.ln-nav-toggle:hover {
    background: rgba(255, 255, 255, .14);
}

.ln-nav-toggle-bars {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    width: 18px;
}

.ln-nav-toggle-bars span {
    display: block;
    height: 2px;
    border-radius: 2px;
    background: currentColor;
    transition: transform .2s var(--ln-ease), opacity .2s var(--ln-ease);
}

.ln-navbar.is-open .ln-nav-toggle-bars span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}

.ln-navbar.is-open .ln-nav-toggle-bars span:nth-child(2) {
    opacity: 0;
}

.ln-navbar.is-open .ln-nav-toggle-bars span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
}

/* ==========================================================================
   8. Reading progress and back to top
   ========================================================================== */
.ln-progress {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    z-index: 90;
    height: 3px;
    pointer-events: none;
}

body.admin-bar .ln-progress {
    top: 32px;
}

.ln-progress-bar {
    display: block;
    height: 100%;
    background: linear-gradient(90deg, var(--ln-red) 0%, #ff7a80 100%);
    transform: scaleX(0);
    transform-origin: 0 50%;
    transition: transform .1s linear;
}

.ln-to-top {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 70;
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: var(--ln-blue-800);
    color: var(--ln-white);
    box-shadow: var(--ln-shadow);
    transition: background-color .16s var(--ln-ease), transform .16s var(--ln-ease);
}

.ln-to-top:hover {
    background: var(--ln-blue-700);
    transform: translateY(-2px);
}

.ln-to-top[hidden] {
    display: none;
}

/* ==========================================================================
   9. Home highlight, kicker and hero
   ========================================================================== */
.ln-highlight {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 0;
    border-bottom: 1px solid var(--ln-line);
    font-size: 14px;
}

.ln-highlight-label {
    flex: 0 0 auto;
    padding: 4px 9px;
    border-radius: 2px;
    background: var(--ln-red);
    color: var(--ln-white);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.ln-highlight-link {
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
    color: var(--ln-ink);
    font-weight: 600;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ln-highlight-link:hover {
    color: var(--ln-blue-700);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.ln-highlight-time {
    flex: 0 0 auto;
    color: var(--ln-muted);
    font-size: 12px;
    font-variant-numeric: tabular-nums;
}

.ln-kicker {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin: 26px 0 14px;
}

.ln-kicker-label {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: var(--ln-ink);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .16em;
    text-transform: uppercase;
}

.ln-kicker-label::before {
    content: '';
    width: 3px;
    height: 14px;
    background: var(--ln-red);
}

.ln-kicker-note {
    color: var(--ln-muted);
    font-size: 12.5px;
}

.ln-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.72fr) minmax(0, 1fr);
    gap: 24px;
    align-items: stretch;
}

.ln-hero {
    position: relative;
    display: flex;
    align-items: flex-end;
    min-height: 470px;
    overflow: hidden;
    border-radius: var(--ln-radius);
    background: var(--ln-blue-900);
    isolation: isolate;
}

.ln-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(180deg, rgba(4, 15, 32, .04) 18%, rgba(4, 15, 32, .38) 48%, rgba(3, 12, 26, .93) 100%);
    pointer-events: none;
}

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

.ln-hero-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .7s var(--ln-ease);
}

@media (hover: hover) {
    .ln-hero:hover .ln-hero-media img {
        transform: scale(1.03);
    }
}

.ln-hero-body {
    position: relative;
    z-index: 2;
    width: 100%;
    padding: clamp(20px, 3vw, 34px);
    color: var(--ln-white);
}

.ln-hero .ln-category-label {
    display: inline-block;
    padding: 6px 10px;
    border-radius: 2px;
    background: var(--ln-red);
    color: var(--ln-white);
    font-size: 10.5px;
    letter-spacing: .08em;
}

.ln-hero-title {
    margin-top: 14px;
    color: var(--ln-white);
    font-size: clamp(27px, 3.3vw, 42px);
    font-weight: 800;
    line-height: 1.14;
    letter-spacing: -.02em;
}

.ln-hero-title a {
    color: inherit;
}

@media (hover: hover) {
    .ln-hero:hover .ln-hero-title a {
        text-decoration: underline;
        text-decoration-thickness: 2px;
        text-underline-offset: 4px;
    }
}

.ln-hero-excerpt {
    max-width: 54ch;
    margin-top: 12px;
    color: #d6e2f1;
    font-size: 14.5px;
    line-height: 1.65;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.ln-hero-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 9px;
    margin-top: 18px;
    color: #c8d6e8;
    font-size: 12.5px;
}

.ln-side-list {
    display: grid;
    grid-auto-rows: 1fr;
    gap: 20px;
    min-width: 0;
}

.ln-side {
    display: grid;
    grid-template-columns: minmax(0, 42%) minmax(0, 1fr);
    gap: 16px;
    align-items: center;
    min-width: 0;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--ln-line);
}

.ln-side:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

.ln-side-media {
    display: block;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border-radius: 6px;
    background: var(--ln-surface-2);
}

.ln-side-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .45s var(--ln-ease);
}

@media (hover: hover) {
    .ln-side:hover .ln-side-media img {
        transform: scale(1.04);
    }
}

.ln-side-body {
    min-width: 0;
}

.ln-side-title {
    margin-top: 7px;
    font-size: clamp(17px, 1.5vw, 20px);
    font-weight: 700;
    line-height: 1.32;
    letter-spacing: -.01em;
}

.ln-side-title a:hover {
    color: var(--ln-blue-700);
}

.ln-side-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 10px;
    color: var(--ln-muted);
    font-size: 12px;
}

/* Topics */
.ln-topics {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 9px;
    margin: 26px 0 30px;
    padding: 14px 0;
    border-top: 1px solid var(--ln-line);
    border-bottom: 1px solid var(--ln-line);
}

.ln-topics-label {
    margin-right: 6px;
    color: var(--ln-ink);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.ln-topics a {
    padding: 7px 13px;
    border-radius: 999px;
    background: var(--ln-surface);
    color: #33465e;
    font-size: 12.5px;
    line-height: 1.2;
    transition: background-color .16s var(--ln-ease), color .16s var(--ln-ease);
}

.ln-topics a:hover {
    background: var(--ln-surface-2);
    color: var(--ln-blue-700);
}

/* ==========================================================================
   10. Feed layout and section headings
   ========================================================================== */
.ln-layout {
    display: grid;
    grid-template-columns: minmax(0, 2.15fr) minmax(0, 1fr);
    gap: clamp(28px, 4vw, 52px);
    margin: 32px 0 64px;
    align-items: start;
}

.ln-feed {
    min-width: 0;
}

.ln-section-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 14px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--ln-ink);
}

.ln-section-title {
    font-size: 22px;
    font-weight: 800;
    line-height: 1.25;
    letter-spacing: -.01em;
}

.ln-section-sub {
    color: var(--ln-muted);
    font-size: 12px;
    text-align: right;
}

.ln-dot {
    flex: 0 0 auto;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--ln-red);
}

/* ==========================================================================
   11. Story cards
   ========================================================================== */
.ln-card {
    display: grid;
    grid-template-columns: 186px minmax(0, 1fr);
    gap: 22px;
    align-items: start;
    padding: 22px 0;
    border-bottom: 1px solid var(--ln-line);
}

.ln-card-media {
    display: block;
    aspect-ratio: 3 / 2;
    overflow: hidden;
    border-radius: 6px;
    background: var(--ln-surface-2);
}

.ln-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .45s var(--ln-ease);
}

@media (hover: hover) {
    .ln-card:hover .ln-card-media img {
        transform: scale(1.04);
    }
}

.ln-card-body {
    min-width: 0;
}

.ln-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    color: var(--ln-muted);
    font-size: 11.5px;
    line-height: 1.4;
}

.ln-meta-sep {
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: #a9b4c2;
}

.ln-category-label {
    color: var(--ln-red);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

a.ln-category-label:hover {
    color: var(--ln-red-600);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.ln-card-title {
    margin-top: 9px;
    font-size: clamp(18px, 1.7vw, 21px);
    font-weight: 700;
    line-height: 1.32;
    letter-spacing: -.01em;
}

.ln-card-title a:hover {
    color: var(--ln-blue-700);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

.ln-card-excerpt {
    display: -webkit-box;
    margin-top: 9px;
    overflow: hidden;
    color: var(--ln-muted);
    font-size: 14px;
    line-height: 1.65;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

/* CSS-only image placeholder, drawn instead of downloading the logo again. */
.ln-thumb-fallback {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    height: 100%;
    min-height: 100%;
    background:
        radial-gradient(circle at 78% 18%, rgba(255, 255, 255, .14), transparent 46%),
        linear-gradient(140deg, #0d3d78 0%, var(--ln-blue-800) 52%, #052a56 100%);
}

.ln-thumb-fallback::before {
    content: 'LN';
    color: rgba(255, 255, 255, .92);
    font-family: var(--ln-font-ui);
    font-size: 22px;
    font-weight: 800;
    letter-spacing: .16em;
}

.ln-thumb-fallback::after {
    content: '';
    width: 26px;
    height: 3px;
    background: var(--ln-red);
}

.ln-hero .ln-thumb-fallback::before {
    font-size: 46px;
}

.ln-related-image .ln-thumb-fallback::before,
.ln-post-nav-image .ln-thumb-fallback::before {
    font-size: 17px;
}

/* ==========================================================================
   12. Sidebar
   ========================================================================== */
.ln-sidebar {
    min-width: 0;
}

.ln-sidebar .widget,
.ln-widget {
    margin: 0 0 32px;
    min-width: 0;
}

.widget-title {
    margin: 0 0 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--ln-ink);
    color: var(--ln-ink);
    font-size: 20px;
    font-weight: 800;
    line-height: 1.3;
}

.widget-area .widget ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.widget-area .widget li {
    padding: 11px 0;
    border-bottom: 1px solid var(--ln-line);
    color: var(--ln-muted);
    font-size: 14.5px;
    line-height: 1.55;
}

.widget-area .widget li:last-child {
    border-bottom: 0;
}

.widget-area .widget a {
    color: var(--ln-text);
}

.widget-area .widget a:hover {
    color: var(--ln-blue-700);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.widget-area .widget select,
.widget-area .widget input:not([type="checkbox"]):not([type="submit"]):not([type="radio"]),
.widget-area .widget textarea {
    width: 100%;
    max-width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--ln-line-strong);
    border-radius: 6px;
    background: var(--ln-white);
    font-size: 15px;
}

.widget-area .tagcloud {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.widget-area .tagcloud a {
    padding: 7px 12px;
    border-radius: 999px;
    background: var(--ln-surface);
    font-size: 13px !important;
}

.widget-area .tagcloud a:hover {
    background: var(--ln-surface-2);
    text-decoration: none;
}

/* Editorial ranking */
.ln-ranked {
    display: flex;
    flex-direction: column;
}

.ln-ranked-item {
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr);
    gap: 14px;
    padding: 18px 0;
    border-bottom: 1px solid var(--ln-line);
}

.ln-ranked-item:last-child {
    border-bottom: 0;
}

.ln-rank {
    color: #c3cede;
    font-size: 30px;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -.04em;
    font-variant-numeric: tabular-nums;
}

.ln-ranked-body {
    min-width: 0;
}

.ln-ranked-title {
    margin: 7px 0 8px;
    font-size: 16.5px;
    font-weight: 700;
    line-height: 1.4;
}

.ln-ranked-title a:hover {
    color: var(--ln-blue-700);
}

.ln-ranked-meta {
    display: block;
    color: var(--ln-muted);
    font-size: 12px;
}

/* About box */
.ln-about {
    margin-top: 28px;
    padding: 24px;
    border-radius: var(--ln-radius-lg);
    background: linear-gradient(158deg, #eef4fb 0%, #e5eef8 100%);
    color: var(--ln-blue-900);
}

.ln-about-label {
    margin: 0 0 10px;
    color: var(--ln-blue-800);
    font-size: 10.5px;
    font-weight: 800;
    letter-spacing: .16em;
    text-transform: uppercase;
}

.ln-about-heading {
    margin: 0 0 10px;
    color: var(--ln-blue-900);
    font-family: var(--ln-font-editorial);
    font-size: 21px;
    font-weight: 600;
    line-height: 1.45;
}

.ln-about-text {
    margin: 0;
    color: #42546b;
    font-size: 13.5px;
    line-height: 1.75;
}

.ln-about-rule {
    display: block;
    width: 36px;
    height: 3px;
    margin-top: 18px;
    background: var(--ln-red);
}

/* ==========================================================================
   13. Article
   ========================================================================== */
.ln-article-page {
    width: 100%;
    max-width: 800px;
    margin-inline: auto;
    padding: clamp(26px, 4vw, 44px) var(--ln-gutter) clamp(46px, 6vw, 68px);
}

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

.ln-article-layout {
    display: block;
}

.ln-article-layout.ln-has-sidebar {
    display: grid;
    grid-template-columns: minmax(0, 2.05fr) minmax(0, 1fr);
    gap: clamp(30px, 4vw, 48px);
    align-items: start;
    width: 100%;
    max-width: var(--ln-container);
    margin-inline: auto;
    padding: clamp(26px, 4vw, 42px) var(--ln-gutter) clamp(48px, 6vw, 68px);
}

.ln-article-layout.ln-has-sidebar > .ln-article-page {
    max-width: none;
    margin: 0;
    padding: 0;
}

.ln-article-layout.ln-has-sidebar > .ln-sidebar {
    min-width: 0;
}

.ln-article-layout.ln-has-sidebar .ln-article-body > .alignwide,
.ln-article-layout.ln-has-sidebar .ln-article-body > .alignfull {
    left: auto;
    width: 100%;
    max-width: 100%;
    transform: none;
}

/* Breadcrumb */
.ln-breadcrumb {
    margin-bottom: 18px;
    color: var(--ln-muted);
    font-size: 12.5px;
}

.ln-breadcrumb ol {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.ln-breadcrumb li {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.ln-breadcrumb li + li::before {
    content: '/';
    color: var(--ln-muted-2);
}

.ln-breadcrumb a:hover {
    color: var(--ln-blue-700);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.ln-breadcrumb li[aria-current] {
    color: var(--ln-muted);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Title block */
.ln-article-title {
    margin: 0 0 14px;
    font-size: clamp(30px, 4.2vw, 46px);
    font-weight: 800;
    line-height: 1.12;
    letter-spacing: -.022em;
}

.ln-standfirst {
    margin: 0 0 22px;
    color: #3b4d63;
    font-family: var(--ln-font-editorial);
    font-size: clamp(18px, 1.7vw, 21px);
    line-height: 1.65;
}

.ln-byline {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 28px;
    padding: 15px 0;
    border-top: 1px solid var(--ln-line);
    border-bottom: 1px solid var(--ln-line);
    color: var(--ln-muted);
    font-size: 12.5px;
}

.ln-byline-author {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    max-width: 100%;
}

.ln-byline-avatar {
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
    border-radius: 50%;
    object-fit: cover;
}

.ln-byline-name {
    min-width: 0;
    overflow-wrap: anywhere;
    color: var(--ln-ink);
    font-size: 14px;
    font-weight: 700;
}

.ln-byline-name a:hover {
    color: var(--ln-blue-700);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.ln-byline-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

/* Featured image */
.ln-figure {
    margin: 0 0 30px;
}

.ln-article-image {
    width: 100%;
    height: auto;
    border-radius: var(--ln-radius);
}

.ln-caption {
    margin-top: 10px;
    color: var(--ln-muted);
    font-size: 12.5px;
    line-height: 1.6;
}

.ln-caption a {
    color: #365879;
    text-decoration: underline;
    text-underline-offset: 2px;
}

/* Body copy */
.ln-article-body {
    color: #1f3045;
    font-family: var(--ln-font-article);
    font-size: 18.5px;
    line-height: 1.85;
}

.ln-article-body > *:first-child {
    margin-top: 0;
}

.ln-article-body p {
    margin: 0 0 1.35em;
}

.ln-article-body h2,
.ln-article-body h3,
.ln-article-body h4,
.ln-article-body h5,
.ln-article-body h6 {
    margin: 1.9em 0 .6em;
    font-family: var(--ln-font-ui);
    font-weight: 800;
    line-height: 1.3;
    letter-spacing: -.01em;
}

.ln-article-body h2 {
    font-size: clamp(23px, 2.2vw, 28px);
}

.ln-article-body h3 {
    font-size: clamp(20px, 1.9vw, 23px);
}

.ln-article-body h4 {
    font-size: 19px;
}

.ln-article-body a {
    color: #0a4d9e;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

.ln-article-body a:hover {
    color: var(--ln-blue-900);
}

.ln-article-body strong,
.ln-article-body b {
    font-weight: 700;
}

.ln-article-body ul,
.ln-article-body ol {
    margin: 0 0 1.4em;
    padding-left: 1.35em;
}

.ln-article-body li {
    margin-bottom: .5em;
    line-height: 1.8;
}

.ln-article-body li::marker {
    color: var(--ln-blue-700);
}

.ln-article-body blockquote,
.ln-article-body .wp-block-quote,
.ln-article-body .wp-block-pullquote {
    margin: 1.8em 0;
    padding: 4px 0 4px 22px;
    border-left: 4px solid var(--ln-red);
    color: #33465e;
    font-family: var(--ln-font-editorial);
    font-size: 21px;
    font-style: italic;
    line-height: 1.7;
}

.ln-article-body .wp-block-pullquote {
    padding: 1.4em 0;
    border-top: 1px solid var(--ln-line);
    border-bottom: 1px solid var(--ln-line);
    border-left: 0;
    text-align: center;
}

.ln-article-body .wp-block-quote p:last-child,
.ln-article-body .wp-block-pullquote p:last-child {
    margin-bottom: 0;
}

.ln-article-body cite,
.ln-article-body blockquote footer,
.ln-article-body .wp-block-quote cite {
    display: block;
    margin-top: .6em;
    color: var(--ln-muted);
    font-family: var(--ln-font-ui);
    font-size: 14px;
    font-style: normal;
}

.ln-article-body img {
    max-width: 100%;
    height: auto;
    border-radius: 6px;
}

.ln-article-body figure {
    margin: 1.7em 0;
}

.ln-article-body figcaption,
.ln-article-body .wp-caption-text {
    margin-top: .7em;
    color: var(--ln-muted);
    font-family: var(--ln-font-ui);
    font-size: 12.5px;
    line-height: 1.6;
}

.ln-article-body iframe,
.ln-article-body video,
.ln-article-body embed,
.ln-article-body object {
    max-width: 100%;
}

.ln-article-body .wp-block-embed__wrapper {
    overflow-wrap: anywhere;
}

.ln-article-body table {
    display: block;
    width: 100%;
    margin: 1.6em 0;
    overflow-x: auto;
    border-collapse: collapse;
    font-family: var(--ln-font-ui);
    font-size: 15px;
}

.ln-article-body td,
.ln-article-body th {
    padding: 11px 13px;
    border: 1px solid var(--ln-line-strong);
    text-align: left;
}

.ln-article-body th {
    background: var(--ln-surface);
}

.ln-article-body pre {
    margin: 1.6em 0;
    padding: 18px;
    overflow: auto;
    border-radius: var(--ln-radius);
    background: #f2f5fa;
    font-size: 14px;
    line-height: 1.6;
}

.ln-article-body code,
.ln-article-body kbd {
    padding: .12em .35em;
    border-radius: 4px;
    background: #eff3f9;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: .88em;
}

.ln-article-body pre code {
    padding: 0;
    background: none;
    font-size: inherit;
}

.ln-article-body hr {
    margin: 2.2em 0;
    border: 0;
    border-top: 1px solid var(--ln-line);
}

.ln-article-body .alignwide,
.ln-article-body .alignfull {
    position: relative;
    left: 50%;
    max-width: calc(100vw - 2 * var(--ln-gutter));
    transform: translateX(-50%);
}

.ln-article-body .alignwide {
    width: min(1080px, calc(100vw - 2 * var(--ln-gutter)));
}

.ln-article-body .alignfull {
    width: calc(100vw - 2 * var(--ln-gutter));
}

.ln-article-body .alignleft {
    float: left;
    margin: .3em 1.4em 1em 0;
}

.ln-article-body .alignright {
    float: right;
    margin: .3em 0 1em 1.4em;
}

.ln-article-body .aligncenter {
    margin-inline: auto !important;
}

.ln-article-body::after {
    content: '';
    display: block;
    clear: both;
}

/* Paginated articles */
.ln-page-links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin: 2em 0 0;
    font-family: var(--ln-font-ui);
    font-size: 14px;
}

.ln-page-links .post-page-numbers,
.ln-page-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    min-height: 42px;
    padding: 0 12px;
    border: 1px solid var(--ln-line-strong);
    border-radius: 7px;
    background: var(--ln-white);
    color: var(--ln-text);
    text-decoration: none;
}

.ln-page-links .post-page-numbers.current {
    background: var(--ln-blue-800);
    border-color: var(--ln-blue-800);
    color: var(--ln-white);
}

/* Tags */
.ln-tags {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin: 26px 0 4px;
}

.ln-tags-label {
    color: var(--ln-muted);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.ln-tags a {
    padding: 7px 12px;
    border-radius: 999px;
    background: var(--ln-surface);
    color: #33465e;
    font-size: 13px;
    font-weight: 500;
    transition: background-color .16s var(--ln-ease), color .16s var(--ln-ease);
}

.ln-tags a:hover {
    background: var(--ln-surface-2);
    color: var(--ln-blue-700);
}

/* ==========================================================================
   14. Share
   ========================================================================== */
.ln-share {
    margin: 30px 0;
    padding: 24px 0;
    border-top: 1px solid var(--ln-line);
    border-bottom: 1px solid var(--ln-line);
}

.ln-share-heading {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.ln-share-heading h2 {
    margin: 0;
    font-size: 16px;
    font-weight: 800;
    letter-spacing: 0;
}

.ln-share-mark {
    width: 3px;
    height: 16px;
    border-radius: 2px;
    background: var(--ln-red);
}

.ln-share-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 9px;
}

.ln-share-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    padding: 10px 17px;
    border: 1px solid transparent;
    border-radius: 24px;
    color: var(--ln-white);
    font-family: var(--ln-font-ui);
    font-size: 14px;
    font-weight: 600;
    line-height: 1.3;
    text-decoration: none;
    cursor: pointer;
    transition: filter .16s var(--ln-ease), box-shadow .16s var(--ln-ease);
}

.ln-share-social {
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    padding: 0;
    border-radius: 12px;
}

.ln-share-button svg {
    display: block;
    flex: 0 0 auto;
}

.ln-share-whatsapp {
    background: #147746;
}

.ln-share-facebook {
    background: #165bbb;
}

.ln-share-x {
    background: #18202b;
}

.ln-share-telegram {
    background: #0879a6;
}

.ln-share-utility {
    background: var(--ln-white);
    border-color: var(--ln-line-strong);
    color: var(--ln-blue-800);
    white-space: nowrap;
}

@media (hover: hover) {
    .ln-share-button:hover {
        filter: brightness(.94);
        box-shadow: 0 3px 10px rgba(21, 52, 83, .14);
    }
}

.ln-share [hidden] {
    display: none !important;
}

.ln-share-status {
    margin: 13px 0 0;
    color: #2f5474;
    font-size: 14px;
    line-height: 1.6;
}

.ln-share-status:empty {
    display: none;
}

.ln-manual-copy {
    margin-top: 13px;
}

.ln-manual-copy label {
    display: block;
    margin-bottom: 7px;
    font-size: 14px;
}

.ln-manual-copy input {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--ln-line-strong);
    border-radius: 6px;
    background: var(--ln-surface);
    color: #244365;
    font-size: 16px;
}

/* ==========================================================================
   15. Previous / next
   ========================================================================== */
.ln-post-navigation {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin: 32px 0;
}

.ln-post-nav-card {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
    padding: 16px;
    border: 1px solid var(--ln-line);
    border-radius: var(--ln-radius-lg);
    background: var(--ln-white);
    transition: border-color .18s var(--ln-ease), background-color .18s var(--ln-ease);
}

.ln-post-nav-card:only-child {
    grid-column: 1 / -1;
}

.ln-post-nav-card:hover {
    border-color: var(--ln-blue-600);
    background: #f8fafd;
}

.ln-post-nav-image {
    flex: 0 0 88px;
    width: 88px;
    height: 88px;
    overflow: hidden;
    border-radius: var(--ln-radius);
    background: var(--ln-surface-2);
}

.ln-post-nav-image > img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ln-post-nav-copy {
    min-width: 0;
}

.ln-post-nav-label {
    display: flex;
    align-items: center;
    gap: 7px;
    margin-bottom: 6px;
    color: var(--ln-muted);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .04em;
    line-height: 1.5;
    text-transform: uppercase;
}

.ln-post-nav-label > span {
    font-size: 16px;
}

.ln-post-nav-title {
    display: block;
    color: var(--ln-ink);
    font-size: 15px;
    font-weight: 700;
    line-height: 1.5;
    overflow-wrap: anywhere;
}

.ln-post-nav-next {
    flex-direction: row-reverse;
    text-align: right;
}

.ln-post-nav-next .ln-post-nav-label {
    justify-content: flex-end;
}

/* ==========================================================================
   16. Related articles
   ========================================================================== */
.ln-related {
    margin-top: 40px;
    padding-top: 0;
}

.ln-related .ln-section-head {
    margin-bottom: 20px;
}

.ln-related-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.ln-related-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
    border: 1px solid var(--ln-line);
    border-radius: var(--ln-radius-lg);
    background: var(--ln-white);
    transition: border-color .18s var(--ln-ease), box-shadow .18s var(--ln-ease);
}

.ln-related-card:hover {
    border-color: var(--ln-blue-600);
    box-shadow: var(--ln-shadow-sm);
}

.ln-related-image {
    display: block;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: var(--ln-surface-2);
}

.ln-related-image > img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ln-related-body {
    display: flex;
    flex-direction: column;
    gap: 7px;
    padding: 15px;
}

.ln-related-title {
    font-size: 15.5px;
    font-weight: 700;
    line-height: 1.45;
    overflow-wrap: anywhere;
}

.ln-related-title a:hover {
    color: var(--ln-blue-700);
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* ==========================================================================
   17. Author box
   ========================================================================== */
.ln-author-box {
    display: flex;
    gap: 18px;
    margin: 32px 0;
    padding: 24px;
    border-radius: var(--ln-radius-lg);
    background: var(--ln-surface);
}

.ln-author-avatar {
    flex: 0 0 64px;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    object-fit: cover;
}

.ln-author-body {
    min-width: 0;
}

.ln-author-name {
    margin: 0 0 6px;
    font-size: 17px;
    font-weight: 800;
}

.ln-author-bio {
    margin: 0 0 8px;
    color: var(--ln-muted);
    font-size: 14px;
    line-height: 1.7;
}

.ln-author-link {
    color: var(--ln-blue-700);
    font-size: 13.5px;
    font-weight: 700;
}

.ln-author-link:hover {
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* ==========================================================================
   18. Comments
   ========================================================================== */
.ln-comments {
    margin-top: 44px;
    padding-top: 0;
}

.ln-discussion-heading {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 18px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--ln-ink);
}

.ln-discussion-heading h2 {
    font-size: 22px;
    font-weight: 800;
}

.ln-comment-count {
    padding: 5px 11px;
    border-radius: 999px;
    background: var(--ln-surface-2);
    color: #3f5672;
    font-size: 12.5px;
    font-weight: 600;
}

.ln-comments .comment-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.ln-comments .comment-list .children {
    margin: 0;
    padding-left: 24px;
    border-left: 1px solid var(--ln-line);
    list-style: none;
}

.ln-comments .comment-list li {
    margin: 0;
    padding: 0;
}

.ln-comments .comment-body {
    padding: 20px 0;
    border-bottom: 1px solid var(--ln-line);
    color: #384b62;
    font-size: 15.5px;
    line-height: 1.75;
    overflow-wrap: anywhere;
}

.ln-comments .comment-author {
    display: flex;
    align-items: center;
    min-height: 40px;
    color: var(--ln-ink);
    font-size: 14px;
    font-weight: 700;
}

.ln-comments .comment-author .avatar {
    width: 40px;
    height: 40px;
    margin-right: 12px;
    border-radius: 50%;
    object-fit: cover;
}

.ln-comments .comment-metadata {
    margin: 4px 0 12px 52px;
    color: var(--ln-muted);
    font-size: 12px;
}

.ln-comments .comment-metadata a:hover {
    color: var(--ln-blue-700);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.ln-comments .comment-content p {
    margin: 0 0 12px;
}

.ln-comments .comment-content p:last-child {
    margin-bottom: 0;
}

.ln-comments .reply a {
    display: inline-block;
    padding: 4px 0;
    color: var(--ln-blue-700);
    font-size: 13px;
    font-weight: 700;
}

.ln-comments .reply a:hover {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.ln-comments .comment-awaiting-moderation {
    display: inline-block;
    padding: 9px 12px;
    border-radius: 6px;
    background: #fff6e3;
    color: #7b5a17;
    font-size: 13px;
}

.ln-comments .comment-respond {
    margin-top: 26px;
    padding: clamp(20px, 3vw, 30px);
    border: 1px solid var(--ln-line);
    border-radius: var(--ln-radius-lg);
    background: var(--ln-surface);
}

.ln-comments .comment-reply-title {
    margin: 0;
    color: var(--ln-ink);
    font-size: clamp(20px, 2vw, 24px);
    font-weight: 800;
    line-height: 1.35;
}

.ln-comments .comment-reply-title small {
    display: block;
    margin-top: 8px;
    color: var(--ln-muted);
    font-size: 13px;
    font-weight: 400;
}

.ln-comments #cancel-comment-reply-link {
    color: var(--ln-red-600);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.ln-form-intro {
    margin: 9px 0 20px;
    color: var(--ln-muted);
    font-size: 14px;
    line-height: 1.7;
}

.ln-comment-form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.ln-comment-form > p,
.ln-comment-form > div {
    grid-column: 1 / -1;
    margin: 0;
}

.ln-comment-form .comment-form-author,
.ln-comment-form .comment-form-email {
    grid-column: auto;
}

.ln-comment-form label {
    display: block;
    margin: 0 0 8px;
    color: #293f5a;
    font-size: 14px;
    font-weight: 600;
}

.ln-comment-form .required {
    color: var(--ln-red-600);
}

.ln-comment-form input:not([type="checkbox"]):not([type="submit"]):not([type="hidden"]),
.ln-comment-form textarea {
    width: 100%;
    max-width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--ln-line-strong);
    border-radius: 7px;
    background: var(--ln-white);
    color: #1b3049;
    font-family: var(--ln-font-ui);
    font-size: 16px;
    line-height: 1.6;
    box-shadow: 0 1px 2px rgba(19, 43, 68, .03);
    transition: border-color .15s var(--ln-ease), box-shadow .15s var(--ln-ease);
}

.ln-comment-form textarea {
    min-height: 150px;
    resize: vertical;
}

.ln-comment-form input:focus,
.ln-comment-form textarea:focus {
    border-color: var(--ln-blue-600);
    outline: 2px solid var(--ln-focus);
    outline-offset: 1px;
    box-shadow: 0 0 0 4px rgba(15, 98, 189, .14);
}

.ln-comment-form textarea::placeholder {
    color: var(--ln-muted);
    opacity: 1;
}

.ln-comment-form .comment-notes,
.ln-comment-form .logged-in-as,
.ln-comment-form .must-log-in {
    color: var(--ln-muted);
    font-size: 13px;
    line-height: 1.7;
}

.ln-comment-form a {
    color: var(--ln-blue-700);
    text-underline-offset: 3px;
}

.ln-comment-form .comment-form-cookies-consent {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.ln-comment-form .comment-form-cookies-consent input {
    flex: 0 0 auto;
    width: 17px;
    height: 17px;
    margin: 3px 0 0;
    accent-color: var(--ln-blue-800);
}

.ln-comment-form .comment-form-cookies-consent label {
    margin: 0;
    color: var(--ln-muted);
    font-size: 13px;
    font-weight: 400;
    line-height: 1.7;
}

.ln-comment-form .submit {
    min-height: 46px;
    padding: 12px 23px;
    border: 0;
    border-radius: 7px;
    background: var(--ln-blue-800);
    color: var(--ln-white);
    font-size: 14px;
    font-weight: 700;
    box-shadow: 0 3px 8px rgba(7, 63, 132, .12);
    transition: background-color .16s var(--ln-ease);
}

.ln-comment-form .submit:hover {
    background: var(--ln-blue-900);
}

.ln-comment-form .form-submit {
    padding-top: 2px;
}

/* Honeypot: hidden from people, visible to naive bots. */
.ln-hp {
    position: absolute !important;
    left: -9999px !important;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.ln-comments-closed {
    margin-top: 20px;
    color: var(--ln-muted);
    font-size: 14px;
}

/* ==========================================================================
   19. Pagination
   ========================================================================== */
.pagination {
    margin: 34px 0 0;
}

.pagination .nav-links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    min-height: 44px;
    padding: 0 12px;
    border: 1px solid var(--ln-line-strong);
    border-radius: var(--ln-radius);
    background: var(--ln-white);
    color: var(--ln-text);
    font-size: 14px;
    font-weight: 600;
    transition: border-color .16s var(--ln-ease), color .16s var(--ln-ease);
}

.pagination .page-numbers:hover {
    border-color: var(--ln-blue-600);
    color: var(--ln-blue-700);
}

.pagination .page-numbers.current {
    border-color: var(--ln-blue-800);
    background: var(--ln-blue-800);
    color: var(--ln-white);
}

.pagination .page-numbers.dots {
    border-color: transparent;
    background: none;
    color: var(--ln-muted);
}

.pagination .prev,
.pagination .next {
    padding: 0 16px;
}

/* ==========================================================================
   20. Archive and search headers
   ========================================================================== */
.ln-archive-head {
    max-width: 820px;
    padding: clamp(26px, 4vw, 40px) 0 4px;
}

.ln-archive-head .ln-kicker {
    margin: 0 0 10px;
}

.ln-archive-title {
    font-size: clamp(28px, 3.6vw, 38px);
    font-weight: 800;
    line-height: 1.16;
    letter-spacing: -.02em;
}

.ln-archive-count {
    margin-top: 8px;
    color: var(--ln-muted);
    font-size: 12.5px;
}

.ln-archive-desc {
    margin-top: 12px;
    color: var(--ln-muted);
    font-size: 15px;
    line-height: 1.7;
}

.ln-archive-desc a {
    color: var(--ln-blue-700);
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* ==========================================================================
   21. Empty states
   ========================================================================== */
.ln-empty {
    padding: clamp(40px, 7vw, 64px) 0;
    text-align: center;
}

.ln-empty-icon {
    margin: 0 auto 16px;
    color: #b7c4d6;
}

.ln-empty-title {
    margin-bottom: 10px;
    font-size: 21px;
    font-weight: 800;
}

.ln-empty-text {
    max-width: 46ch;
    margin: 0 auto;
    color: var(--ln-muted);
    font-size: 14.5px;
    line-height: 1.7;
}

.ln-empty-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-top: 22px;
}

/* ==========================================================================
   22. Footer
   ========================================================================== */
.ln-footer {
    margin-top: 0;
    border-top: 3px solid var(--ln-blue-800);
    background: var(--ln-surface);
}

.ln-footer .ln-wrap {
    padding-top: 42px;
}

.ln-footer-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr) minmax(0, 1fr);
    gap: clamp(26px, 4vw, 44px);
    padding-bottom: 34px;
}

.ln-footer-brand {
    min-width: 0;
}

.ln-footer .ln-logo,
.ln-footer .custom-logo-link img {
    width: 190px;
    max-height: 72px;
    /* The bundled logo is a JPEG on white; multiply removes the white box
       against the tinted footer without touching the uploaded file. */
    mix-blend-mode: multiply;
}

.ln-footer-about {
    max-width: 44ch;
    margin-top: 16px;
    color: var(--ln-muted);
    font-size: 13.5px;
    line-height: 1.75;
}

.ln-footer-title {
    margin: 0 0 14px;
    color: var(--ln-ink);
    font-size: 11.5px;
    font-weight: 800;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.ln-footer-links {
    margin: 0;
    padding: 0;
    list-style: none;
}

.ln-footer-links li {
    margin-bottom: 9px;
    line-height: 1.5;
}

.ln-footer-links a {
    color: var(--ln-text);
    font-size: 14px;
}

.ln-footer-links a:hover {
    color: var(--ln-blue-700);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.ln-footer-topics a {
    color: var(--ln-muted);
}

.ln-footer-bottom {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 18px 0;
    border-top: 1px solid var(--ln-line-strong);
    color: var(--ln-muted);
    font-size: 12.5px;
}

.ln-footer-top-link {
    color: var(--ln-blue-700);
    font-weight: 600;
}

.ln-footer-top-link:hover {
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* ==========================================================================
   23. 404
   ========================================================================== */
.ln-404 {
    max-width: 660px;
    margin-inline: auto;
    padding: clamp(48px, 8vw, 80px) 0 40px;
    text-align: center;
}

.ln-404-code {
    display: block;
    color: #d9e2ee;
    font-size: clamp(56px, 10vw, 84px);
    font-weight: 800;
    line-height: 1;
    letter-spacing: .06em;
}

.ln-404-title {
    margin: 10px 0 12px;
    font-size: clamp(26px, 3.4vw, 34px);
    font-weight: 800;
    letter-spacing: -.02em;
}

.ln-404-text {
    max-width: 48ch;
    margin-inline: auto;
    color: var(--ln-muted);
    font-size: 15px;
    line-height: 1.75;
}

.ln-404-search {
    max-width: 440px;
    margin: 24px auto 0;
}

.ln-404-search .ln-search-form {
    flex: 1 1 auto;
    width: 100%;
}

.ln-404-links {
    margin-top: 22px;
}

.ln-404-recent {
    margin-top: 20px;
    padding-top: 30px;
    border-top: 1px solid var(--ln-line);
}

.ln-card-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
    margin-top: 20px;
}

.ln-card-list .ln-card {
    display: block;
    padding: 0;
    border: 0;
}

.ln-card-list .ln-card-media {
    margin-bottom: 13px;
}

/* ==========================================================================
   24. WordPress core and Gutenberg compatibility
   ========================================================================== */
.alignleft {
    float: left;
    margin: .3em 1.4em 1em 0;
}

.alignright {
    float: right;
    margin: .3em 0 1em 1.4em;
}

.aligncenter {
    margin-inline: auto !important;
}

.wp-caption {
    max-width: 100%;
}

.wp-caption-text {
    margin-top: .6em;
    color: var(--ln-muted);
    font-size: 12.5px;
}

.sticky {
    position: relative;
}

.bypostauthor > .comment-body {
    border-left: 2px solid var(--ln-line-strong);
    padding-left: 16px;
}

.post-password-form p {
    margin-bottom: 12px;
}

.post-password-form input[type="password"] {
    min-height: 44px;
    padding: 10px 12px;
    border: 1px solid var(--ln-line-strong);
    border-radius: 6px;
}

.post-password-form input[type="submit"] {
    min-height: 44px;
    padding: 10px 18px;
    border: 0;
    border-radius: 6px;
    background: var(--ln-blue-800);
    color: var(--ln-white);
    font-weight: 700;
}

/* ==========================================================================
   25. Responsive
   ========================================================================== */
@media (min-width: 1400px) {
    .ln-wrap {
        max-width: var(--ln-container-wide);
    }

    .ln-article-layout.ln-has-sidebar {
        max-width: var(--ln-container-wide);
    }
}

@media (max-width: 1080px) {
    .ln-hero-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 22px;
    }

    .ln-hero {
        min-height: 430px;
    }

    .ln-side-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-auto-rows: auto;
        gap: 20px;
    }

    .ln-side {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
        padding-bottom: 0;
        border-bottom: 0;
    }

    .ln-side-media {
        aspect-ratio: 16 / 10;
    }

    .ln-side-title {
        font-size: 18px;
    }

    .ln-article-layout.ln-has-sidebar {
        grid-template-columns: minmax(0, 1fr);
        max-width: 880px;
    }

    .ln-article-layout.ln-has-sidebar > .ln-sidebar {
        padding-top: 8px;
        border-top: 1px solid var(--ln-line);
    }
}

@media (max-width: 1000px) {
    .ln-edition {
        display: none;
    }

    .ln-navbar-inner {
        gap: 14px;
    }

    .ln-nav-panel {
        flex: 1 1 auto;
    }

    .ln-layout {
        grid-template-columns: minmax(0, 1fr);
    }

    .ln-article-body {
        font-size: 18px;
    }

    .ln-related-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .ln-card {
        grid-template-columns: 150px minmax(0, 1fr);
        gap: 18px;
    }

    .ln-footer-grid {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    }

    .ln-footer-brand {
        grid-column: 1 / -1;
    }
}

/* JavaScript-enhanced mobile drawer. Without JS the strip stays scrollable. */
@media (max-width: 1000px) {
    .js .ln-nav-toggle {
        display: inline-flex;
    }

    .ln-nav-search {
        display: inline-flex;
    }

    .js .ln-nav-panel {
        position: absolute;
        top: 100%;
        right: 0;
        left: 0;
        display: none;
        max-height: calc(100dvh - var(--ln-nav-h));
        overflow-y: auto;
        border-top: 3px solid var(--ln-red);
        background: var(--ln-white);
        color: var(--ln-ink);
        box-shadow: var(--ln-shadow-lg);
    }

    .js .ln-navbar.is-open .ln-nav-panel {
        display: block;
    }

    .js .ln-menu {
        flex-direction: column;
        gap: 0;
        min-height: 0;
        padding: 4px 0;
    }

    .js .ln-menu li {
        display: block;
        width: 100%;
    }

    .js .ln-menu li > a {
        display: block;
        padding: 15px var(--ln-gutter);
        border-bottom: 1px solid var(--ln-line);
        color: var(--ln-ink);
        font-size: 16px;
        font-weight: 600;
        line-height: 1.4;
    }

    .js .ln-menu li > a::after {
        display: none;
    }

    .js .ln-menu li.current-menu-item > a,
    .js .ln-menu li.current-cat > a,
    .js .ln-menu li.current_page_item > a {
        background: var(--ln-surface);
        box-shadow: inset 3px 0 0 var(--ln-red);
    }

    .js .ln-menu li:last-child > a {
        border-bottom: 0;
    }

    .js .ln-nav-panel a:focus-visible {
        outline: 2px solid var(--ln-focus);
        outline-offset: -4px;
    }

    body.ln-nav-open {
        overflow: hidden;
    }

    .no-js .ln-menu {
        gap: 22px;
    }

    .no-js .ln-menu li > a {
        font-size: 14px;
    }
}

@media (max-width: 900px) {
    .ln-related-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 12px;
    }

    .ln-related-card {
        display: grid;
        grid-template-columns: 110px minmax(0, 1fr);
        align-items: center;
    }

    .ln-related-image {
        height: 100%;
        min-height: 96px;
        aspect-ratio: auto;
        border-radius: 0;
    }

    .ln-related-body {
        padding: 14px;
    }

    .ln-card-list {
        grid-template-columns: minmax(0, 1fr);
    }

    .ln-card-list .ln-card {
        display: grid;
        grid-template-columns: 120px minmax(0, 1fr);
        gap: 16px;
        align-items: center;
    }

    .ln-card-list .ln-card-media {
        margin-bottom: 0;
    }
}

@media (max-width: 720px) {
    .ln-utility {
        display: none;
    }

    .ln-masthead-inner {
        flex-wrap: wrap;
        gap: 16px;
        padding-block: 18px;
    }

    .ln-search-form {
        flex: 1 1 100%;
        width: 100%;
    }

    .ln-header-search {
        flex: 1 1 100%;
        width: 100%;
    }

    .ln-hero {
        min-height: 400px;
    }

    .ln-hero-title {
        font-size: 27px;
    }

    .ln-hero-excerpt {
        -webkit-line-clamp: 2;
    }

    .ln-side-list {
        grid-template-columns: minmax(0, 1fr);
    }

    .ln-side {
        flex-direction: row;
        align-items: center;
        gap: 14px;
    }

    .ln-side-media {
        flex: 0 0 120px;
        width: 120px;
        aspect-ratio: 4 / 3;
    }

    .ln-side-title {
        font-size: 17px;
    }

    .ln-section-sub,
    .ln-kicker-note {
        display: none;
    }

    .ln-card {
        grid-template-columns: 108px minmax(0, 1fr);
        gap: 14px;
        padding: 18px 0;
    }

    .ln-card-excerpt {
        display: none;
    }

    .ln-card-title {
        font-size: 17px;
        line-height: 1.38;
    }

    .ln-meta {
        font-size: 11px;
        gap: 6px;
    }

    .ln-article-title {
        font-size: 30px;
    }

    .ln-breadcrumb li[aria-current="page"] {
        display: none;
    }

    .ln-standfirst {
        font-size: 18px;
    }

    .ln-article-body {
        font-size: 17.5px;
        line-height: 1.8;
    }

    .ln-post-navigation {
        grid-template-columns: minmax(0, 1fr);
        gap: 12px;
    }

    .ln-post-nav-image {
        flex-basis: 76px;
        width: 76px;
        height: 76px;
    }

    .ln-comments .comment-list .children {
        padding-left: 14px;
    }

    .ln-comment-form {
        grid-template-columns: minmax(0, 1fr);
        gap: 16px;
    }

    .ln-comment-form .comment-form-author,
    .ln-comment-form .comment-form-email {
        grid-column: 1 / -1;
    }

    .ln-author-box {
        flex-direction: column;
        gap: 14px;
        padding: 20px;
    }

    .ln-footer-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 26px;
    }

    .ln-footer-brand {
        grid-column: auto;
    }

    .ln-footer-bottom {
        flex-direction: column;
        align-items: flex-start;
    }

    .ln-to-top {
        right: 14px;
        bottom: 14px;
    }

    .ln-share-button {
        padding: 10px 14px;
    }

    .ln-progress {
        height: 3px;
    }
}

@media (max-width: 480px) {
    .ln-hero {
        min-height: 360px;
    }

    .ln-hero-body {
        padding: 20px;
    }

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

    .ln-highlight-time {
        display: none;
    }

    .ln-article-title {
        font-size: 27px;
    }

    .ln-byline {
        flex-direction: column;
        align-items: flex-start;
    }

    .ln-comment-form .submit {
        width: 100%;
    }
}

/* ==========================================================================
   26. Motion, print and forced colors
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: .001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .001ms !important;
    }

    .ln-hero:hover .ln-hero-media img,
    .ln-side:hover .ln-side-media img,
    .ln-card:hover .ln-card-media img,
    .ln-to-top:hover {
        transform: none;
    }
}

@media print {
    @page {
        margin: 18mm;
    }

    body {
        background: #fff;
        color: #000;
        font-size: 11pt;
    }

    .ln-utility,
    .ln-masthead,
    .ln-navbar,
    .ln-progress,
    .ln-to-top,
    .ln-footer,
    .ln-sidebar,
    .ln-share,
    .ln-related,
    .ln-post-navigation,
    .ln-author-box,
    .ln-comments,
    .ln-breadcrumb,
    .ln-404-search,
    .ln-highlight,
    .ln-topics,
    .pagination,
    .screen-reader-text {
        display: none !important;
    }

    .ln-article-page,
    .ln-article-layout,
    .ln-article-layout.ln-has-sidebar {
        display: block;
        width: 100%;
        max-width: none;
        margin: 0;
        padding: 0;
    }

    .ln-article-title {
        font-size: 24pt;
        line-height: 1.15;
    }

    .ln-article-body {
        color: #000;
        font-size: 11pt;
        line-height: 1.55;
    }

    .ln-article-body a {
        color: #000;
        text-decoration: none;
    }

    .ln-article-body a[href^="http"]::after {
        content: ' (' attr(href) ')';
        font-size: 9pt;
        color: #444;
        word-break: break-all;
    }

    .ln-article-image {
        max-width: 100%;
        page-break-inside: avoid;
    }

    .ln-article-body h2,
    .ln-article-body h3 {
        page-break-after: avoid;
    }
}

@media (forced-colors: active) {
    .ln-navbar {
        border-bottom: 1px solid CanvasText;
        background: Canvas;
        color: CanvasText;
    }

    .ln-menu li > a,
    .ln-edition {
        color: CanvasText;
    }

    .ln-card,
    .ln-related-card,
    .ln-post-nav-card,
    .ln-about,
    .ln-author-box,
    .ln-comments .comment-respond,
    .ln-search-form {
        border: 1px solid CanvasText;
    }

    .ln-button,
    .ln-search-submit,
    .ln-to-top,
    .ln-comment-form .submit {
        border: 1px solid ButtonText;
        background: ButtonFace;
        color: ButtonText;
    }

    .ln-thumb-fallback {
        border: 1px solid CanvasText;
    }
}
