:root {
    --paper: #f7f6f2;
    --surface: #fff;
    --surface-soft: #eeede8;
    --ink: #172c30;
    --muted: #657374;
    --line: #dcded8;
    --accent: #bc4930;
    --accent-hover: #9b3824;
    --serif: Georgia, 'Times New Roman', serif;
    --sans: Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --bs-body-bg: var(--paper);
    --bs-body-color: var(--ink);
    --bs-border-color: var(--line);
    --bs-primary: #bc4930;
    --bs-link-color: var(--accent);
    --bs-link-hover-color: var(--accent-hover);
    --bs-secondary-color: var(--muted);
    --bs-tertiary-bg: var(--surface-soft);
    --bs-border-radius: .65rem
}

[data-bs-theme=dark] {
    --paper: #152225;
    --surface: #1b2b2e;
    --surface-soft: #223438;
    --ink: #e8ece5;
    --muted: #a9b7b4;
    --line: #344649;
    --accent: #f18e6d;
    --accent-hover: #ffb69c;
    --bs-body-bg: var(--paper);
    --bs-body-color: var(--ink);
    --bs-border-color: var(--line);
    --bs-secondary-color: var(--muted)
}

* {
    box-sizing: border-box
}

body {
    font-family: var(--sans);
    background: var(--paper);
    color: var(--ink);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased
}

a {
    color: inherit;
    text-underline-offset: 4px
}

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

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

button,
a,
input,
textarea,
select {
    touch-action: manipulation
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    outline: 3px solid var(--accent) !important;
    outline-offset: 4px;
    box-shadow: none !important
}

::selection {
    background: #efbba3;
    color: #172c30
}

.container {
    max-width: 1240px;
    padding-inline: 24px
}

.skip-link {
    position: absolute;
    top: -80px;
    left: 16px;
    background: var(--ink);
    color: var(--paper);
    padding: 12px;
    z-index: 2000
}

.skip-link:focus {
    top: 10px
}

main {
    min-height: 50vh
}

.site-header {
    background: var(--paper)
}

.masthead {
    display: flex;
    align-items: center;
    gap: 24px;
    min-height: 104px
}

.brand {
    font-size: 2.75rem;
    font-weight: 850;
    letter-spacing: -.09em;
    text-decoration: none;
    line-height: 1;
    color: var(--ink);
    font-family: var(--sans)
}

.brand-dot {
    color: var(--accent)
}

.masthead-note {
    font-size: .78rem;
    line-height: 1.4;
    max-width: 150px;
    border-left: 1px solid var(--line);
    padding-left: 20px;
    color: var(--muted)
}

.header-actions {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 16px
}

.theme-switch,
.language-toggle,
.account-toggle {
    border: 0;
    background: none;
    color: var(--ink);
    padding: 5px 0;
    font-size: .8rem;
    font-weight: 700
}

.theme-switch {
    font-size: 1.6rem;
    line-height: 1
}

.account-toggle {
    display: flex;
    gap: 8px;
    align-items: center
}

.avatar {
    background: var(--surface-soft);
    border: 1px solid var(--line);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    width: 44px;
    height: 44px;
    font-weight: 700;
    color: var(--ink)
}

.avatar-sm {
    height: 30px;
    width: 30px;
    font-size: .75rem
}

.editorial-nav {
    padding: 0;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    font-size: .82rem
}

.editorial-nav .nav-link {
    color: var(--muted);
    font-weight: 600;
    padding: 17px 16px !important;
    border: 0;
    background: none
}

.editorial-nav .nav-link:first-child {
    padding-left: 0 !important
}

.editorial-nav .nav-link.active,
.editorial-nav .nav-link:hover {
    color: var(--accent)
}

.nav-search {
    display: flex;
    border-left: 1px solid var(--line);
    padding-left: 20px;
    align-items: center
}

.nav-search input {
    background: none;
    border: 0;
    outline: none;
    font-size: .78rem;
    width: 180px;
    color: var(--ink);
    padding: 10px 0
}

.nav-search button {
    border: 0;
    background: none;
    color: var(--ink);
    padding: 8px
}

.dropdown-menu {
    background: var(--surface);
    border-color: var(--line);
    font-size: .85rem;
    box-shadow: 0 12px 35px #172c3014;
    padding: 8px
}

.dropdown-item {
    color: var(--ink);
    border-radius: 4px;
    padding: 8px 12px
}

.dropdown-item:hover {
    background: var(--surface-soft);
    color: var(--accent)
}

.countries-menu {
    max-height: 360px;
    overflow-y: auto
}

.message-area {
    margin-top: 24px
}

.eyebrow {
    font-size: .69rem;
    font-weight: 750;
    letter-spacing: .17em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 16px
}

.section-heading {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 20px;
    padding: 22px 0;
    border-top: 2px solid var(--ink);
    margin-top: 48px
}

.section-heading h2 {
    font-family: var(--serif);
    font-size: 1.9rem;
    letter-spacing: -.035em;
    margin: 0
}

.section-heading a {
    font-size: .75rem;
    color: var(--muted);
    text-decoration: none
}

.edition-line {
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: var(--muted);
    font-size: .67rem;
    letter-spacing: .09em;
    text-transform: uppercase;
    padding: 23px 0
}

.edition-line .live-dot {
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent);
    margin-right: 7px
}

.front-layout {
    display: grid;
    grid-template-columns: minmax(0, 2.1fr) minmax(250px, 1fr);
    gap: 40px
}

.lead-story {
    position: relative
}

.story-image {
    display: block;
    width: 100%;
    aspect-ratio: 16/10;
    object-fit: cover;
    background: var(--surface-soft);
    border-radius: 3px
}

.lead-story .story-image {
    aspect-ratio: 1.68
}

.image-placeholder {
    background: linear-gradient(145deg, var(--ink), #3b6365);
    color: #e8ece5;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--serif);
    font-size: 3rem;
    letter-spacing: -.08em;
    text-decoration: none
}

.image-placeholder small {
    font: 700 .65rem var(--sans);
    letter-spacing: .2em
}

.story-link {
    text-decoration: none;
    display: block
}

.story-link:hover h2,
.story-link:hover h3,
.story-title a:hover {
    color: var(--accent)
}

.story-kicker {
    font-size: .66rem;
    font-weight: 750;
    text-transform: uppercase;
    letter-spacing: .13em;
    color: var(--accent);
    margin: 19px 0 10px
}

.lead-story h1 {
    font-family: var(--serif);
    font-size: clamp(2.1rem, 3.5vw, 3.2rem);
    line-height: 1.09;
    letter-spacing: -.045em;
    margin: 0 0 15px;
    font-weight: 500
}

.story-deck {
    font-size: .95rem;
    color: var(--muted);
    line-height: 1.65;
    max-width: 65ch
}

.story-meta {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
    color: var(--muted);
    font-size: .69rem;
    margin-top: 20px
}

.story-meta span+span:before {
    content: '·';
    margin-right: 10px;
    color: var(--muted)
}

.front-sidebar {
    border-left: 1px solid var(--line);
    padding-left: 32px
}

.sidebar-heading {
    font-size: .7rem;
    text-transform: uppercase;
    letter-spacing: .13em;
    font-weight: 750;
    border-bottom: 1px solid var(--line);
    padding-bottom: 15px;
    margin: 0 0 8px
}

.sidebar-story {
    padding: 19px 0;
    border-bottom: 1px solid var(--line);
    display: flex;
    gap: 15px
}

.sidebar-story-number {
    color: var(--accent);
    font: italic 1.6rem var(--serif);
    line-height: 1.1;
    min-width: 24px
}

.sidebar-story h3 {
    font-family: var(--serif);
    font-weight: 500;
    line-height: 1.25;
    font-size: 1.18rem;
    margin: 4px 0 8px;
    letter-spacing: -.025em
}

.sidebar-story .story-kicker {
    margin: 0;
    font-size: .59rem
}

.sidebar-story .story-meta {
    margin-top: 8px;
    font-size: .64rem
}

.editor-note {
    margin-top: 28px;
    padding: 23px;
    background: var(--surface-soft);
    border-radius: 3px
}

.editor-note h3 {
    font: 1.5rem var(--serif);
    letter-spacing: -.04em
}

.editor-note p {
    font-size: .79rem;
    color: var(--muted)
}

.editor-note a {
    font-size: .74rem;
    color: var(--accent)
}

.topics-strip {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    padding: 19px 0;
    border-bottom: 1px solid var(--line);
    margin-top: 26px
}

.topics-strip>span {
    font-size: .64rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .11em;
    margin-right: 8px;
    color: var(--muted)
}

.topic-chip {
    border: 1px solid var(--line);
    border-radius: 30px;
    text-decoration: none;
    padding: 5px 12px;
    font-size: .71rem;
    white-space: nowrap
}

.topic-chip:hover {
    background: var(--surface-soft);
    border-color: var(--muted)
}

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

.story-card {
    padding-bottom: 26px;
    border-bottom: 1px solid var(--line)
}

.story-card h2,
.story-card h3 {
    font-family: var(--serif);
    font-size: 1.55rem;
    font-weight: 500;
    line-height: 1.2;
    letter-spacing: -.035em;
    margin: 0 0 12px
}

.story-card .story-deck {
    font-size: .81rem
}

.story-card .story-meta {
    margin-top: 14px
}

.story-card .story-kicker {
    margin-top: 16px
}

.story-card .story-image {
    aspect-ratio: 1.6
}

.ad-slot {
    border: 1px dashed var(--line);
    background: var(--surface-soft);
    color: var(--muted);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 84px;
    margin: 36px 0
}

.ad-slot span {
    font-size: .55rem;
    letter-spacing: .16em;
    text-transform: uppercase;
    opacity: .65
}

.ad-sidebar {
    min-height: 220px
}

.ad-footer {
    margin: 0 0 34px;
    min-height: 70px
}

.site-footer {
    margin-top: 72px;
    padding: 38px 0 20px;
    border-top: 1px solid var(--line)
}

.footer-main {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5px 0 30px
}

.footer-main .brand {
    font-size: 2rem
}

.footer-main p {
    color: var(--muted);
    font-size: .74rem;
    margin: 12px 0 0
}

.footer-main nav {
    display: flex;
    gap: 25px;
    flex-wrap: wrap
}

.footer-main nav a {
    font-size: .75rem;
    text-decoration: none;
    color: var(--muted)
}

.footer-bottom {
    border-top: 1px solid var(--line);
    padding-top: 18px;
    display: flex;
    justify-content: space-between;
    color: var(--muted);
    font-size: .65rem
}

.footer-bottom a {
    text-decoration: none
}

.pagination {
    gap: 8px;
    margin: 36px 0
}

.page-link {
    background: var(--surface);
    color: var(--ink);
    border-color: var(--line);
    border-radius: 4px !important;
    font-size: .78rem;
    padding: 9px 14px
}

.page-item.disabled .page-link {
    background: none;
    color: var(--muted)
}

.page-link:hover {
    color: var(--accent);
    background: var(--surface-soft);
    border-color: var(--line)
}

.empty-state {
    padding: 65px 24px;
    border: 1px solid var(--line);
    text-align: center;
    background: var(--surface)
}

.empty-state h2 {
    font: 2rem var(--serif)
}

.empty-state p {
    color: var(--muted);
    max-width: 460px;
    margin: 15px auto 25px
}

.page-intro {
    padding: 45px 0 30px
}

.page-intro h1 {
    font: clamp(2.2rem, 4vw, 3.2rem)/1.1 var(--serif);
    letter-spacing: -.045em
}

.page-intro p {
    color: var(--muted);
    max-width: 640px
}

.btn {
    font-size: .81rem;
    font-weight: 600;
    border-radius: 5px;
    padding: .62rem 1rem;
    box-shadow: none
}

.btn-primary,
.btn-info {
    --bs-btn-bg: var(--accent);
    --bs-btn-border-color: var(--accent);
    --bs-btn-color: #fff;
    --bs-btn-hover-bg: var(--accent-hover);
    --bs-btn-hover-border-color: var(--accent-hover);
    --bs-btn-hover-color: #fff;
    --bs-btn-active-bg: var(--accent-hover);
    --bs-btn-active-border-color: var(--accent-hover);
    color: #fff !important
}

.btn-outline-secondary,
.btn-outline-light,
.btn-outline-info {
    --bs-btn-color: var(--ink);
    --bs-btn-border-color: var(--line);
    --bs-btn-hover-color: var(--ink);
    --bs-btn-hover-bg: var(--surface-soft);
    --bs-btn-hover-border-color: var(--muted);
    --bs-btn-active-color: var(--ink);
    --bs-btn-active-bg: var(--surface-soft);
    --bs-btn-active-border-color: var(--muted)
}

.btn-sm {
    padding: .4rem .7rem;
    font-size: .73rem
}

.article-header {
    max-width: 900px;
    margin: 45px auto 30px;
    text-align: center
}

.article-header h1 {
    font: clamp(2.25rem, 5vw, 4.3rem)/1.07 var(--serif);
    letter-spacing: -.05em;
    margin: 16px auto 22px;
    max-width: 850px
}

.article-header .article-deck {
    font-size: 1.13rem;
    line-height: 1.6;
    color: var(--muted);
    max-width: 720px;
    margin: 0 auto
}

.article-header .story-meta {
    justify-content: center;
    margin-top: 23px
}

.article-cover {
    width: 100%;
    max-height: 620px;
    aspect-ratio: 1.95;
    object-fit: cover;
    border-radius: 3px
}

.article-layout {
    display: grid;
    grid-template-columns: 80px minmax(0, 720px) minmax(180px, 1fr);
    gap: 35px;
    margin-top: 40px
}

.article-body {
    font-family: var(--serif);
    font-size: 1.18rem;
    line-height: 1.9;
    overflow-wrap: anywhere
}

.article-body p {
    margin-bottom: 1.5em
}

.article-body p:first-child:first-letter {
    font-size: 3.2em;
    float: left;
    line-height: .9;
    padding: 8px 9px 0 0;
    color: var(--accent)
}

.article-tools {
    position: sticky;
    top: 24px;
    align-self: start;
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: center
}

.article-tools button,
.article-tools a {
    background: none;
    border: 1px solid var(--line);
    width: 43px;
    height: 43px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    text-decoration: none;
    color: var(--muted)
}

.article-tools button:hover {
    border-color: var(--accent);
    color: var(--accent)
}

.article-sidebar {
    border-left: 1px solid var(--line);
    padding-left: 24px;
    font-size: .75rem;
    color: var(--muted)
}

.article-sidebar h3 {
    font-family: var(--serif);
    color: var(--ink);
    font-size: 1.4rem
}

.article-languages {
    display: flex;
    gap: 7px;
    flex-wrap: wrap;
    align-items: center;
    margin-bottom: 23px
}

.article-languages a {
    font-size: .66rem;
    border: 1px solid var(--line);
    padding: 4px 9px;
    text-decoration: none;
    border-radius: 3px
}

.article-languages a.active {
    border-color: var(--accent);
    color: var(--accent)
}

.audio-panel {
    padding: 18px 20px;
    background: var(--surface-soft);
    margin-bottom: 28px;
    border-radius: 5px
}

.audio-panel p {
    font-size: .7rem;
    font-weight: 650;
    margin: 0 0 10px
}

.audio-panel audio {
    width: 100%;
    height: 36px
}

.article-section {
    max-width: 720px;
    margin: 45px auto 0
}

.article-section h2 {
    font: 1.8rem var(--serif);
    letter-spacing: -.03em
}

.comment-item {
    border-bottom: 1px solid var(--line);
    padding: 22px 0;
    display: flex;
    gap: 15px
}

.comment-item p {
    margin: 7px 0;
    white-space: pre-line;
    overflow-wrap: anywhere;
    font-size: .9rem
}

.comment-item time {
    color: var(--muted);
    font-size: .68rem
}

.comment-item img {
    border-radius: 50%;
    object-fit: cover;
    width: 40px;
    height: 40px
}

.comment-item .avatar {
    width: 40px;
    height: 40px
}

.comment-heading {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap
}

.comment-heading strong {
    font-size: .8rem
}

.comment-delete {
    font-size: .65rem;
    color: var(--muted)
}

.form-control,
.form-select {
    background: var(--surface) !important;
    color: var(--ink) !important;
    border: 1px solid var(--line) !important;
    padding: .75rem .9rem;
    box-shadow: none !important;
    border-radius: 5px
}

.form-control::placeholder {
    color: var(--muted);
    opacity: .7
}

.form-control:focus,
.form-select:focus {
    border-color: var(--accent) !important
}

.form-label {
    font-size: .77rem;
    font-weight: 650;
    color: var(--ink)
}

.form-text {
    color: var(--muted);
    font-size: .72rem
}

.errorlist {
    color: #b23830;
    font-size: .8rem;
    padding-left: 20px
}

.editor-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 295px;
    gap: 26px;
    align-items: start
}

.editor-main,
.editor-settings,
.panel-surface {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 6px
}

.editor-main {
    padding: 30px
}

.editor-settings {
    padding: 24px;
    position: sticky;
    top: 24px
}

.editor-settings h2 {
    font-size: .83rem;
    font-weight: 750;
    margin-bottom: 20px
}

.editor-settings .field-block {
    margin-bottom: 22px
}

.editor-title input {
    font-family: var(--serif);
    font-size: 1.8rem;
    font-weight: 400;
    line-height: 1.2
}

.editor-main textarea {
    font-size: 1rem;
    line-height: 1.8;
    min-height: 420px
}

.editor-toolbar {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin: 15px 0
}

.editor-toolbar span {
    font-size: .7rem;
    color: var(--muted);
    margin-left: auto
}

.editor-assistant {
    padding: 20px;
    background: var(--surface-soft);
    border-radius: 5px;
    margin: 20px 0
}

.editor-assistant h2 {
    font-size: .9rem;
    font-weight: 700
}

.editor-assistant p {
    font-size: .76rem;
    color: var(--muted)
}

.editor-assistant textarea {
    min-height: 100px;
    font-size: .85rem
}

.editor-status {
    font-size: .75rem;
    color: var(--muted);
    min-height: 24px
}

.editor-preview {
    font: 1.12rem/1.85 var(--serif);
    white-space: pre-wrap;
    border: 1px solid var(--line);
    padding: 24px;
    border-radius: 5px;
    min-height: 200px;
    overflow-wrap: anywhere
}

.editor-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid var(--line)
}

.panel-tabs {
    display: flex;
    gap: 25px;
    overflow-x: auto;
    border-bottom: 1px solid var(--line);
    margin-bottom: 28px
}

.panel-tabs a {
    font-size: .8rem;
    padding: 12px 0;
    text-decoration: none;
    color: var(--muted);
    white-space: nowrap
}

.panel-tabs a.active {
    color: var(--accent);
    border-bottom: 2px solid var(--accent)
}

.panel-toolbar {
    display: flex;
    gap: 10px;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 20px
}

.panel-filters {
    display: flex;
    gap: 7px;
    flex-wrap: wrap
}

.panel-filters a {
    border: 1px solid var(--line);
    padding: 5px 12px;
    font-size: .7rem;
    border-radius: 4px;
    text-decoration: none
}

.panel-filters a.active {
    background: var(--ink);
    color: var(--paper);
    border-color: var(--ink)
}

.post-row {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 23px 24px;
    border-bottom: 1px solid var(--line)
}

.post-row:last-child {
    border-bottom: 0
}

.post-row-content {
    min-width: 0;
    flex: 1
}

.post-row h3 {
    font: 1.15rem/1.3 var(--serif);
    margin: 0 0 7px
}

.post-row h3 a {
    text-decoration: none
}

.post-row-meta {
    font-size: .67rem;
    color: var(--muted);
    display: flex;
    gap: 12px;
    flex-wrap: wrap
}

.post-row-actions {
    display: flex;
    gap: 7px;
    align-items: center;
    flex-wrap: wrap
}

.status-pill {
    display: inline-block;
    font-size: .6rem;
    text-transform: uppercase;
    letter-spacing: .06em;
    border: 1px solid var(--line);
    padding: 4px 9px;
    border-radius: 30px;
    white-space: nowrap;
    color: var(--muted)
}

.status-published {
    background: #43705812;
    color: #47705c;
    border-color: #47705c33
}

.status-processing {
    color: var(--accent);
    border-color: var(--accent)
}

.processing-dot {
    display: inline-block;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--accent);
    margin-right: 5px;
    animation: blink 1.5s infinite
}

.metrics-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px
}

.metric {
    border: 1px solid var(--line);
    background: var(--surface);
    padding: 24px;
    border-radius: 5px
}

.metric p {
    font-size: .75rem;
    color: var(--muted)
}

.metric strong {
    font: 2.8rem var(--serif)
}

.metric small {
    display: block;
    color: var(--muted);
    font-size: .68rem;
    margin-top: 12px
}

.table {
    --bs-table-color: var(--ink);
    --bs-table-bg: var(--surface);
    --bs-table-border-color: var(--line);
    --bs-table-hover-bg: var(--surface-soft);
    font-size: .8rem
}

.table th {
    font-weight: 650;
    font-size: .65rem;
    text-transform: uppercase;
    letter-spacing: .06em;
    padding: 16px
}

.table td {
    padding: 16px
}

.log-detail {
    max-width: 360px;
    overflow-wrap: anywhere;
    font-size: .72rem
}

.progress {
    background: var(--surface-soft);
    height: 5px
}

.progress-bar {
    background: var(--accent)
}

.alert {
    font-size: .82rem;
    border-radius: 5px
}

.article-sidebar .ad-slot {
    margin-top: 24px
}

.preview-warning {
    border: 1px solid var(--accent);
    background: var(--surface-soft);
    padding: 14px 20px;
    font-size: .8rem;
    border-radius: 4px;
    margin-top: 25px
}

.text-muted,
.text-secondary,
.text-white-50 {
    color: var(--muted) !important
}

.text-white,
.text-light {
    color: var(--ink) !important
}

.text-info {
    color: var(--accent) !important
}

.bg-dark,
.bg-black,
.bg-light {
    background: var(--surface) !important
}

.card {
    --bs-card-bg: var(--surface);
    --bs-card-color: var(--ink);
    --bs-card-border-color: var(--line)
}

.shadow-lg,
.shadow-neon {
    box-shadow: none !important
}

.rounded-pill.btn {
    border-radius: 5px !important
}

.bg-info {
    background-color: var(--accent) !important
}

.bg-info.text-dark {
    color: #fff !important
}

.form-check-input {
    border-color: var(--muted);
    background-color: var(--surface)
}

.form-check-input:checked {
    background-color: var(--accent) !important;
    border-color: var(--accent)
}

.nav-pills .nav-link.active {
    background: var(--accent)
}

.border-secondary {
    border-color: var(--line) !important
}

.bg-dark[style],
.card[style] {
    color: var(--ink) !important
}

.fade-up {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important
}

.btn-outline-light:hover {
    color: var(--ink) !important
}

details>summary {
    cursor: pointer;
    font-size: .8rem;
    font-weight: 650
}

details[open]>summary {
    margin-bottom: 16px
}

.site-header .navbar-toggler {
    border: 0;
    padding: 12px 0
}

.nav-edition {
    font-size: .6rem;
    color: var(--muted);
    letter-spacing: .1em
}

@keyframes blink {
    50% {
        opacity: .3
    }
}

@media(min-width:1400px) {
    .container {
        max-width: 1280px
    }
}

@media(max-width:991px) {
    .masthead {
        min-height: 85px
    }

    .brand {
        font-size: 2.35rem
    }

    .masthead-note {
        display: none
    }

    .editorial-nav .nav-link {
        padding: 10px 0 !important
    }

    .editorial-nav .navbar-collapse {
        padding-bottom: 20px
    }

    .nav-search {
        border: 1px solid var(--line);
        padding-left: 12px;
        margin-top: 15px
    }

    .nav-search input {
        width: 100%
    }

    .nav-search button {
        margin-left: auto
    }

    .front-layout {
        grid-template-columns: minmax(0, 1fr) 240px;
        gap: 25px
    }

    .front-sidebar {
        padding-left: 22px
    }

    .article-layout {
        grid-template-columns: 45px minmax(0, 1fr);
        gap: 25px
    }

    .article-sidebar {
        display: none
    }

    .editor-layout {
        grid-template-columns: minmax(0, 1fr) 255px;
        gap: 20px
    }

    .metrics-grid {
        grid-template-columns: repeat(2, 1fr)
    }
}

@media(max-width:767px) {
    .container {
        padding-inline: 20px
    }

    .masthead {
        min-height: 78px;
        gap: 12px
    }

    .header-actions {
        gap: 13px
    }

    .brand {
        font-size: 2.15rem
    }

    .front-layout {
        grid-template-columns: 1fr
    }

    .front-sidebar {
        border-left: 0;
        padding-left: 0;
        border-top: 1px solid var(--line);
        margin-top: 5px;
        padding-top: 22px
    }

    .front-sidebar .editor-note {
        display: none
    }

    .sidebar-story {
        padding: 14px 0
    }

    .sidebar-story h3 {
        font-size: 1.15rem
    }

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

    .story-card h3,
    .story-card h2 {
        font-size: 1.3rem
    }

    .edition-line {
        font-size: .58rem;
        padding: 20px 0
    }

    .edition-line span:last-child {
        max-width: 130px;
        text-align: right
    }

    .lead-story h1 {
        font-size: 2.25rem
    }

    .section-heading {
        margin-top: 35px;
        padding: 20px 0
    }

    .section-heading h2 {
        font-size: 1.65rem
    }

    .footer-main {
        display: block
    }

    .footer-main nav {
        margin-top: 24px;
        gap: 20px
    }

    .footer-bottom {
        gap: 20px;
        font-size: .6rem
    }

    .article-layout {
        display: block;
        margin-top: 25px
    }

    .article-tools {
        position: static;
        flex-direction: row;
        margin-bottom: 20px;
        justify-content: flex-start
    }

    .article-tools button,
    .article-tools a {
        width: 36px;
        height: 36px
    }

    .article-header {
        margin-top: 30px;
        text-align: left
    }

    .article-header .story-meta {
        justify-content: flex-start
    }

    .article-header h1 {
        font-size: 2.5rem
    }

    .article-header .article-deck {
        font-size: 1rem
    }

    .article-cover {
        aspect-ratio: 1.35
    }

    .article-body {
        font-size: 1.12rem
    }

    .editor-layout {
        display: flex;
        flex-direction: column
    }

    .editor-main,
    .editor-settings {
        width: 100%;
        padding: 22px
    }

    .editor-settings {
        position: static
    }

    .editor-title input {
        font-size: 1.5rem
    }

    .editor-main textarea {
        min-height: 340px
    }

    .page-intro {
        padding-top: 32px
    }

    .post-row {
        padding: 20px 17px;
        align-items: flex-start;
        gap: 12px
    }

    .post-row-actions {
        max-width: 110px;
        justify-content: flex-end
    }

    .post-row h3 {
        font-size: 1rem
    }

    .panel-tabs {
        gap: 20px
    }

    .panel-tabs a {
        font-size: .75rem
    }

    .metric {
        padding: 18px
    }

    .metric strong {
        font-size: 2.3rem
    }

    .ad-slot {
        margin: 26px 0
    }

    .site-footer {
        margin-top: 48px
    }

    .editor-actions .btn {
        flex: 1
    }

    .story-card .story-deck {
        display: -webkit-box;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
        overflow: hidden
    }

    .story-grid .story-meta {
        font-size: .6rem
    }

    .theme-switch {
        font-size: 1.5rem
    }
}

@media(max-width:420px) {
    .story-grid {
        grid-template-columns: 1fr
    }

    .story-card {
        display: grid;
        grid-template-columns: 100px minmax(0, 1fr);
        gap: 0 15px
    }

    .story-card>a {
        grid-row: 1/5
    }

    .story-card .story-image {
        aspect-ratio: 1;
        min-height: 100px
    }

    .story-card .story-kicker {
        margin: 0 0 8px
    }

    .story-card h3 {
        font-size: 1.22rem
    }

    .story-card .story-deck {
        display: none
    }

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

    .metrics-grid {
        gap: 10px
    }

    .header-actions {
        gap: 10px
    }

    .header-actions .btn {
        padding: 7px 11px
    }

    .post-row-actions {
        max-width: 80px
    }

    .article-header h1 {
        font-size: 2.15rem
    }
}

@media(prefers-reduced-motion:reduce) {

    *,
    *:before,
    *:after {
        scroll-behavior: auto !important;
        animation: none !important;
        transition: none !important
    }
}

.auth-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 450px);
    gap: 100px;
    align-items: center;
    padding-top: 70px;
    padding-bottom: 50px
}

.auth-story h1 {
    font: clamp(2.6rem, 5vw, 4rem)/1.1 var(--serif);
    letter-spacing: -.05em;
    max-width: 550px
}

.auth-story p:not(.eyebrow) {
    color: var(--muted);
    max-width: 390px;
    font-size: 1rem;
    margin: 25px 0 35px
}

.auth-story>a {
    font-size: .78rem;
    color: var(--muted);
    text-decoration: none
}

.auth-panel {
    background: var(--surface);
    border: 1px solid var(--line);
    padding: 36px;
    border-radius: 6px
}

.auth-panel h2 {
    font: 1.9rem var(--serif);
    letter-spacing: -.04em
}

.auth-panel input:not([type=checkbox]):not([type=hidden]) {
    display: block;
    width: 100%;
    background: var(--paper);
    color: var(--ink);
    padding: 11px 12px;
    border: 1px solid var(--line);
    border-radius: 4px;
    font-size: .85rem
}

.auth-panel input[type=checkbox] {
    accent-color: var(--accent)
}

.auth-panel .form-text {
    font-size: .66rem
}

.auth-panel .form-text ul {
    padding-left: 16px
}

.auth-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--muted);
    font-size: .7rem;
    margin: 23px 0
}

.auth-divider:before,
.auth-divider:after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--line)
}

@media(max-width:991px) {
    .auth-layout {
        gap: 45px
    }
}

@media(max-width:767px) {
    .auth-layout {
        display: block;
        padding-top: 35px
    }

    .auth-story {
        margin-bottom: 30px
    }

    .auth-story h1 {
        font-size: 2.35rem
    }

    .auth-story p:not(.eyebrow) {
        margin: 15px 0 20px
    }

    .auth-story>a {
        display: none
    }

    .auth-panel {
        padding: 25px
    }

    .auth-panel h2 {
        font-size: 1.7rem
    }
}
