/*
Theme Name: Sơn La Photo Daily
Theme URI: https://nhiepanh.sonla.org.vn/
Author: Chi hội Nhiếp ảnh tỉnh Sơn La
Description: Giao diện báo điện tử hiện đại dành cho tin tức và tác phẩm nhiếp ảnh Sơn La.
Version: 2.0.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: sonla-photo-atelier
*/

:root {
  --brand: #075a96;
  --brand-dark: #063e69;
  --accent: #cf2029;
  --ink: #171717;
  --muted: #68727a;
  --line: #dfe3e6;
  --soft: #f3f5f6;
  --surface: #fff;
  --shell: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: #fff; font-family: Arial, Helvetica, sans-serif; font-size: 16px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
body.menu-open, body.search-open { overflow: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--brand); }
button, input { font: inherit; }
.shell { width: min(calc(100% - 32px), var(--shell)); margin-inline: auto; }
.skip-link, .screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
.skip-link:focus { z-index: 9999; width: auto; height: auto; top: 8px; left: 8px; padding: 10px 14px; clip: auto; color: #fff; background: var(--brand-dark); }
.image-placeholder { display: grid; place-items: center; width: 100%; height: 100%; min-height: 90px; color: #fff; background: linear-gradient(135deg, var(--brand), #8db5d0); font-weight: 800; }
.reading-progress { height: 3px; position: fixed; z-index: 1000; top: 0; right: 0; left: 0; transform: scaleX(0); transform-origin: left center; background: var(--accent); }

/* Header */
.site-header { position: relative; z-index: 100; background: #fff; }
.portal-top { color: #65707a; border-bottom: 1px solid var(--line); font-size: 12px; }
.portal-top-inner { min-height: 32px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.masthead { min-height: 92px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 30px; }
.brand { display: inline-flex; align-items: center; gap: 12px; justify-self: start; }
.brand-logo img { width: 58px; height: 58px; object-fit: contain; }
.brand-symbol { width: 56px; height: 56px; display: grid; place-items: center; color: #fff; background: var(--brand); border-radius: 50%; font-weight: 800; }
.brand-wordmark { display: grid; color: var(--brand-dark); font-size: 24px; font-weight: 800; line-height: .95; letter-spacing: -.04em; }
.brand-wordmark span { color: var(--accent); }
.masthead-center { display: grid; gap: 3px; color: var(--brand); text-align: center; }
.masthead-center strong { font-size: 12px; letter-spacing: .14em; }
.masthead-center span { color: var(--muted); font-family: Georgia, serif; font-size: 13px; }
.masthead-actions { display: flex; align-items: center; justify-self: end; gap: 8px; }
.header-topic { margin-right: 8px; color: var(--brand); font-size: 12px; font-weight: 700; }
.icon-button { width: 40px; height: 40px; display: grid; place-items: center; padding: 0; border: 0; background: transparent; cursor: pointer; }
.icon-button svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.menu-toggle { display: none; }
.nav-shell { border-top: 1px solid var(--line); border-bottom: 3px solid var(--brand); }
.nav-inner { min-height: 46px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.primary-nav .menu { display: flex; align-items: center; flex-wrap: wrap; gap: 0; margin: 0; padding: 0; list-style: none; }
.primary-nav a { display: block; padding: 13px 15px 12px; font-size: 14px; font-weight: 700; }
.primary-nav li:first-child a { padding-left: 0; }
.primary-nav .current-menu-item > a, .primary-nav a:hover { color: var(--accent); }
.nav-feature { padding-left: 16px; border-left: 1px solid var(--line); color: var(--brand); font-size: 13px; font-weight: 800; text-transform: uppercase; }
.news-pulse { border-bottom: 1px solid var(--line); background: #fafafa; }
.pulse-inner { min-height: 39px; display: grid; grid-template-columns: auto minmax(0,1fr) auto; align-items: center; gap: 14px; }
.pulse-label { color: var(--accent); font-size: 11px; font-weight: 800; text-transform: uppercase; }
.pulse-inner > a { min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: 13px; font-weight: 600; }
.pulse-inner time { color: var(--muted); font-size: 11px; }
.search-panel { position: fixed; z-index: 90; inset: 0; padding-top: 150px; color: #fff; background: rgba(6,62,105,.97); }
.search-panel[hidden] { display: none; }
.search-form-large { max-width: 850px; }
.search-form-large label { display: block; margin-bottom: 18px; font-size: 13px; font-weight: 700; text-transform: uppercase; }
.search-form-large > div { display: grid; grid-template-columns: 1fr auto; border-bottom: 2px solid rgba(255,255,255,.55); }
.search-form-large input { min-width: 0; padding: 12px 0 16px; border: 0; outline: 0; color: #fff; background: transparent; font-size: 36px; }
.search-form-large button { padding: 0 22px; border: 0; color: #fff; background: var(--accent); cursor: pointer; font-weight: 700; }

/* Home */
.home-main { padding: 26px 0 52px; }
.top-news-grid { display: grid; grid-template-columns: 220px minmax(0,1fr) 285px; grid-template-areas: "list main side"; gap: 20px; padding-bottom: 24px; border-bottom: 1px solid var(--line); }
.top-news-list { grid-area: list; display: grid; align-content: start; gap: 14px; padding-right: 18px; border-right: 1px solid var(--line); }
.mini-story { display: grid; grid-template-columns: 88px 1fr; gap: 11px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.mini-story:last-child { border-bottom: 0; }
.mini-story-media { aspect-ratio: 4 / 3; overflow: hidden; background: var(--soft); }
.mini-story-media img, .mini-story-media .image-placeholder { width: 100%; height: 100%; min-height: 0; object-fit: cover; }
.mini-story span, .latest-card span, .story-category { color: var(--accent); font-size: 10px; font-weight: 800; text-transform: uppercase; }
.mini-story h2 { margin: 4px 0 0; font-size: 14px; line-height: 1.3; }
.top-news-main { grid-area: main; min-width: 0; }
.top-news-main-media { aspect-ratio: 16 / 9; display: block; margin-bottom: 13px; overflow: hidden; background: var(--soft); }
.top-news-main-media img, .top-news-main-media .image-placeholder { width: 100%; height: 100%; object-fit: cover; }
.top-news-main h1 { margin: 6px 0 9px; color: #102c42; font-family: Arial, Helvetica, sans-serif; font-size: 30px; line-height: 1.15; letter-spacing: -.02em; }
.top-news-main p { margin: 0; color: var(--muted); font-size: 14px; }
.top-news-side { grid-area: side; display: grid; align-content: start; gap: 16px; padding-left: 18px; border-left: 1px solid var(--line); }
.side-story { padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.side-story-media { aspect-ratio: 16 / 9; display: block; margin-bottom: 8px; overflow: hidden; background: var(--soft); }
.side-story-media img, .side-story-media .image-placeholder { width: 100%; height: 100%; object-fit: cover; }
.side-story h2 { margin: 0; font-size: 16px; line-height: 1.28; }
.quick-news { display: grid; gap: 0; }
.quick-news strong { padding-bottom: 8px; color: var(--brand); border-bottom: 2px solid var(--brand); font-size: 13px; text-transform: uppercase; }
.quick-news a { padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 13px; line-height: 1.35; }

.latest-band, .source-digest { padding-top: 30px; }
.portal-section-title, .photo-desk-title { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 17px; padding-bottom: 8px; border-bottom: 2px solid var(--brand); }
.portal-section-title h2, .photo-desk-title h2 { margin: 0; color: var(--brand-dark); font-size: 21px; text-transform: uppercase; }
.portal-section-title a, .photo-desk-title a { color: var(--muted); font-size: 12px; font-weight: 700; }
.latest-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 18px; }
.latest-card { min-width: 0; padding-right: 18px; border-right: 1px solid var(--line); }
.latest-card:last-child { padding-right: 0; border-right: 0; }
.latest-card-media { aspect-ratio: 3 / 2; display: block; margin-bottom: 9px; overflow: hidden; background: var(--soft); }
.latest-card-media img, .latest-card-media .image-placeholder { width: 100%; height: 100%; object-fit: cover; }
.latest-card h3 { margin: 5px 0 0; font-size: 16px; line-height: 1.3; }

.portal-modules { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 34px 30px; margin-top: 36px; }
.category-module { min-width: 0; }
.module-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 16px; padding: 9px 0 8px; border-top: 3px solid var(--brand); border-bottom: 1px solid var(--line); }
.module-header h2 { margin: 0; color: var(--brand-dark); font-size: 21px; text-transform: uppercase; }
.module-more { color: var(--muted); font-size: 12px; }
.module-lead { display: grid; grid-template-columns: 46% 1fr; gap: 16px; padding-bottom: 13px; border-bottom: 1px solid var(--line); }
.module-lead-media { aspect-ratio: 4 / 3; overflow: hidden; background: var(--soft); }
.module-lead-media img, .module-lead-media .image-placeholder { width: 100%; height: 100%; object-fit: cover; }
.module-lead h3 { margin: 0 0 8px; font-size: 19px; line-height: 1.28; }
.module-lead p { margin: 0; color: var(--muted); font-size: 13px; }
.module-list { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); column-gap: 22px; }
.module-list article { padding: 11px 0; border-bottom: 1px solid var(--line); }
.module-list h3 { margin: 0; font-size: 14px; line-height: 1.38; }

.photo-desk { margin-top: 40px; padding: 28px 0 32px; color: #fff; background: #0a263b; }
.photo-desk-title { border-color: #5d8db1; }
.photo-desk-title h2 { color: #fff; }
.photo-desk-title a { color: #b7c9d5; }
.photo-desk-grid { display: grid; grid-template-columns: 1.25fr repeat(3,1fr); gap: 8px; }
.photo-desk-grid article { position: relative; min-height: 235px; overflow: hidden; background: var(--brand-dark); }
.photo-desk-grid article:first-child { min-height: 300px; }
.photo-desk-grid a { position: absolute; inset: 0; }
.photo-desk-grid a::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg,rgba(0,0,0,.78),transparent 65%); }
.photo-desk-grid img, .photo-desk-grid .image-placeholder { width: 100%; height: 100%; object-fit: cover; }
.photo-desk-grid h3 { position: absolute; z-index: 2; right: 14px; bottom: 13px; left: 14px; margin: 0; font-size: 16px; line-height: 1.3; }
.source-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 0; border: 1px solid var(--line); }
.source-grid article { min-height: 150px; padding: 18px; border-right: 1px solid var(--line); }
.source-grid article:last-child { border-right: 0; }
.source-grid span { color: var(--accent); font-size: 10px; font-weight: 800; text-transform: uppercase; }
.source-grid h3 { margin: 9px 0 13px; font-size: 16px; line-height: 1.33; }
.source-grid time { color: var(--muted); font-size: 11px; }

/* Single */
.single-main { padding: 34px 0 58px; }
.article-header { max-width: var(--shell); }
.breadcrumbs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; color: var(--muted); font-size: 12px; }
.section-kicker { color: var(--accent); font-size: 11px; font-weight: 800; text-transform: uppercase; }
.article-header h1 { max-width: 940px; margin: 8px 0 14px; color: #102c42; font-family: Arial, Helvetica, sans-serif; font-size: 44px; line-height: 1.14; letter-spacing: -.02em; }
.article-deck { max-width: 850px; margin: 0 0 17px; color: var(--muted); font-size: 18px; line-height: 1.55; }
.article-meta { display: flex; flex-wrap: wrap; gap: 10px 20px; color: var(--muted); font-size: 12px; }
.article-meta strong { color: var(--ink); }
.article-cover { margin-top: 28px; }
.article-cover img { width: 100%; max-height: 720px; object-fit: cover; }
.article-cover figcaption { margin-top: 8px; color: var(--muted); font-size: 12px; text-align: center; }
.article-layout { display: grid; grid-template-columns: 105px minmax(0,720px) minmax(260px,300px); justify-content: space-between; gap: 28px; margin-top: 34px; }
.article-rail { font-size: 12px; }
.rail-sticky { display: grid; gap: 8px; position: sticky; top: 18px; }
.rail-label { margin-top: 12px; color: var(--muted); font-size: 10px; font-weight: 800; text-transform: uppercase; }
.article-rail a, .copy-link { padding: 0; border: 0; color: var(--brand); background: transparent; cursor: pointer; font-size: 12px; font-weight: 700; text-align: left; }
.article-content { min-width: 0; color: #242424; font-family: Arial, Helvetica, sans-serif; font-size: 18px; line-height: 1.78; letter-spacing: 0; word-spacing: 0; }
.article-content > :first-child { margin-top: 0; }
.article-content p { margin: 0 0 1.35em; }
.article-content h2, .article-content h3 { color: #102c42; line-height: 1.25; }
.article-content h2 { margin: 1.7em 0 .65em; font-size: 28px; }
.article-content h3 { margin: 1.5em 0 .55em; font-size: 22px; }
.article-content img { width: 100%; height: auto; }
.article-content figure, .article-content .wp-block-image { width: 100%; margin: 2em 0; }
.article-content figcaption { color: var(--muted); font-size: 12px; text-align: center; }
.article-content blockquote { margin: 1.7em 0; padding: 10px 0 10px 20px; border-left: 4px solid var(--brand); color: #183f5e; font-family: Arial, Helvetica, sans-serif; font-size: 21px; }
.article-content a { color: var(--brand); text-decoration: underline; }
.article-content table { width: 100%; border-collapse: collapse; font-size: 15px; }
.article-content th, .article-content td { padding: 10px; border: 1px solid var(--line); text-align: left; }
.article-aside { display: grid; align-content: start; gap: 22px; }
.rail-widget { padding-top: 10px; border-top: 3px solid var(--brand); }
.rail-title, .rail-widget .widget-title { margin: 0 0 12px; color: var(--brand-dark); font-size: 18px; text-transform: uppercase; }
.rail-widget ul { margin: 0; padding: 0; list-style: none; }
.rail-widget li { padding: 9px 0; border-bottom: 1px solid var(--line); }
.rail-story { display: grid; grid-template-columns: 82px 1fr; gap: 10px; padding: 0 0 11px; margin-bottom: 11px; border-bottom: 1px solid var(--line); }
.rail-story > a { aspect-ratio: 4 / 3; overflow: hidden; }
.rail-story img, .rail-story .image-placeholder { width: 100%; height: 100%; min-height: 0; object-fit: cover; }
.rail-story h3 { margin: 0 0 5px; font-size: 13px; line-height: 1.3; }
.rail-story time { color: var(--muted); font-size: 10px; }
.aside-profile { padding: 20px; color: #fff; background: var(--brand-dark); }
.aside-profile > span { font-size: 10px; font-weight: 800; text-transform: uppercase; }
.aside-profile h2 { margin: 8px 0 18px; font-family: Arial, Helvetica, sans-serif; font-size: 20px; line-height: 1.3; }
.aside-profile a { color: #fff; border-bottom: 1px solid #fff; font-size: 11px; font-weight: 700; text-transform: uppercase; }
.related-section { margin-top: 46px; padding-top: 20px; border-top: 3px solid var(--brand); }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 16px; }
.section-head h2 { margin: 3px 0 0; color: var(--brand-dark); font-size: 23px; text-transform: uppercase; }
.related-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 18px; }
.related-media { aspect-ratio: 3 / 2; display: block; margin-bottom: 9px; overflow: hidden; }
.related-media img, .related-media .image-placeholder { width: 100%; height: 100%; object-fit: cover; }
.related-card time { color: var(--muted); font-size: 10px; }
.related-card h3 { margin: 5px 0 0; font-size: 16px; line-height: 1.3; }

/* Archives, search, 404 */
.archive-main { padding: 34px 0 58px; }
.archive-header { display: flex; align-items: end; justify-content: space-between; gap: 30px; margin-bottom: 24px; padding-bottom: 12px; border-bottom: 3px solid var(--brand); }
.archive-header .section-kicker { display: none; }
.archive-header h1 { margin: 0; color: var(--brand-dark); font-size: 32px; text-transform: uppercase; }
.archive-description { max-width: 550px; color: var(--muted); font-size: 14px; }
.archive-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 30px 20px; }
.archive-card-media { aspect-ratio: 3 / 2; display: block; margin-bottom: 10px; overflow: hidden; background: var(--soft); }
.archive-card-media img, .archive-card-media .image-placeholder { width: 100%; height: 100%; object-fit: cover; }
.archive-card h2 { margin: 6px 0 8px; font-size: 19px; line-height: 1.3; }
.archive-card p { margin: 0 0 9px; color: var(--muted); font-size: 13px; }
.story-meta { display: flex; gap: 12px; color: var(--muted); font-size: 11px; }
.pagination { margin-top: 34px; }
.nav-links { display: flex; flex-wrap: wrap; gap: 6px; }
.page-numbers { min-width: 38px; min-height: 38px; display: grid; place-items: center; padding: 0 10px; border: 1px solid var(--line); font-size: 12px; }
.page-numbers.current { color: #fff; background: var(--brand); border-color: var(--brand); }
.search-page-form { display: grid; grid-template-columns: 1fr auto; border-bottom: 2px solid var(--brand); }
.search-page-form input { min-width: 0; padding: 10px 0; border: 0; outline: 0; font-size: 19px; }
.search-page-form button { border: 0; color: #fff; background: var(--brand); padding-inline: 20px; }
.empty-state { padding: 45px 0; }
.not-found-card { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 45px; padding: 70px 0; }
.not-found-code { color: var(--brand); font-size: 150px; font-weight: 900; line-height: .8; }
.not-found-card h1 { margin: 0 0 12px; font-size: 42px; }
.button-dark { min-height: 42px; display: inline-flex; align-items: center; justify-content: center; padding: 0 18px; color: #fff; background: var(--brand); font-size: 12px; font-weight: 700; text-transform: uppercase; }
.search-header .search-page-form { width: min(420px,100%); }

/* Footer */
.site-footer { margin-top: 20px; color: #d8e0e6; background: #0a263b; }
.footer-main { display: grid; grid-template-columns: 1.4fr .7fr 1fr; gap: 50px; padding-block: 34px; }
.footer-brand strong { color: #fff; font-size: 24px; }
.footer-brand p, .footer-contact p { max-width: 520px; margin: 10px 0 0; font-size: 13px; }
.site-footer h2 { margin: 0 0 10px; color: #fff; font-size: 14px; text-transform: uppercase; }
.footer-links { display: grid; grid-template-columns: 1fr 1fr; gap: 7px 18px; margin: 0; padding: 0; list-style: none; font-size: 13px; }
.footer-bottom { min-height: 54px; display: flex; align-items: center; justify-content: space-between; gap: 20px; border-top: 1px solid rgba(255,255,255,.16); color: #94a6b3; font-size: 11px; }

@media (max-width: 1050px) {
  .top-news-grid { grid-template-columns: minmax(0,1fr) 280px; grid-template-areas: "main side" "list list"; }
  .top-news-list { grid-template-columns: repeat(3,minmax(0,1fr)); padding: 18px 0 0; border: 0; border-top: 1px solid var(--line); }
  .mini-story { border-bottom: 0; }
  .article-layout { grid-template-columns: minmax(0,720px) minmax(250px,300px); }
  .article-rail { display: none; }
}

@media (max-width: 820px) {
  .masthead { grid-template-columns: 1fr auto; min-height: 78px; }
  .masthead-center, .header-topic { display: none; }
  .menu-toggle { display: grid; }
  .nav-shell { max-height: 0; overflow: hidden; border-bottom-width: 0; transition: max-height .25s ease; }
  .menu-open .nav-shell { max-height: 520px; border-bottom-width: 3px; }
  .nav-inner { align-items: stretch; flex-direction: column; padding: 12px 0 16px; }
  .primary-nav .menu { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); }
  .primary-nav a, .primary-nav li:first-child a { padding: 9px 0; }
  .nav-feature { padding: 10px 0 0; border: 0; border-top: 1px solid var(--line); }
  .latest-grid, .source-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .latest-card:nth-child(2) { border-right: 0; }
  .latest-card:nth-child(-n+2) { margin-bottom: 18px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
  .source-grid article:nth-child(2) { border-right: 0; }
  .source-grid article:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .portal-modules { grid-template-columns: 1fr; }
  .photo-desk-grid { grid-template-columns: repeat(2,1fr); }
  .photo-desk-grid article, .photo-desk-grid article:first-child { min-height: 260px; }
  .article-layout { grid-template-columns: 1fr; }
  .article-aside { grid-template-columns: 1fr 1fr; }
  .archive-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .footer-main { grid-template-columns: 1.3fr .7fr; }
  .footer-contact { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
  .shell { width: min(calc(100% - 24px), var(--shell)); }
  .portal-top-inner { min-height: 27px; font-size: 10px; }
  .portal-top-inner span:last-child { max-width: 230px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
  .masthead { min-height: 70px; }
  .brand-logo img, .brand-symbol { width: 44px; height: 44px; }
  .brand-wordmark { font-size: 19px; }
  .icon-button { width: 36px; height: 36px; }
  .pulse-inner { grid-template-columns: auto minmax(0,1fr); gap: 10px; }
  .pulse-inner time { display: none; }
  .home-main { padding-top: 16px; }
  .top-news-grid { grid-template-columns: 1fr; grid-template-areas: "main" "side" "list"; gap: 18px; }
  .top-news-main h1 { font-size: 27px; }
  .top-news-side { grid-template-columns: repeat(2,minmax(0,1fr)); padding: 18px 0 0; border: 0; border-top: 1px solid var(--line); }
  .quick-news { grid-column: 1 / -1; }
  .top-news-list { grid-template-columns: 1fr; }
  .mini-story { border-bottom: 1px solid var(--line); }
  .latest-band, .source-digest { padding-top: 24px; }
  .latest-grid { grid-template-columns: 1fr; }
  .latest-card { display: grid; grid-template-columns: 120px 1fr; gap: 12px; padding: 0 0 14px; margin: 0 0 14px; border-right: 0; border-bottom: 1px solid var(--line); }
  .latest-card-media { grid-row: 1 / span 2; margin: 0; }
  .latest-card span { align-self: end; }
  .latest-card h3 { margin-top: 0; }
  .portal-section-title h2, .photo-desk-title h2 { font-size: 18px; }
  .module-lead { grid-template-columns: 42% 1fr; }
  .module-lead h3 { font-size: 17px; }
  .module-lead p { display: none; }
  .module-list { grid-template-columns: 1fr; }
  .photo-desk { margin-top: 30px; }
  .photo-desk-grid { grid-template-columns: 1fr; }
  .photo-desk-grid article, .photo-desk-grid article:first-child { min-height: 260px; }
  .source-grid { grid-template-columns: 1fr; }
  .source-grid article { min-height: 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .article-header h1 { font-size: 34px; line-height: 1.16; }
  .article-deck { font-size: 16px; }
  .article-cover { width: 100%; margin-top: 22px; }
  .article-layout { width: min(calc(100% - 24px),var(--shell)); margin-top: 28px; }
  .article-content { font-size: 17px; line-height: 1.75; }
  .article-aside { grid-template-columns: 1fr; }
  .related-grid { grid-template-columns: 1fr; }
  .related-card { display: grid; grid-template-columns: 115px 1fr; gap: 10px; }
  .related-media { grid-row: 1 / span 2; margin: 0; }
  .archive-header { align-items: flex-start; flex-direction: column; gap: 10px; }
  .archive-header h1 { font-size: 27px; }
  .archive-grid { grid-template-columns: 1fr; }
  .archive-card { display: grid; grid-template-columns: 120px 1fr; gap: 12px; }
  .archive-card-media { margin: 0; }
  .archive-card h2 { font-size: 16px; }
  .archive-card p { display: none; }
  .not-found-card { grid-template-columns: 1fr; gap: 25px; }
  .not-found-code { font-size: 100px; }
  .footer-main { grid-template-columns: 1fr; gap: 26px; }
  .footer-contact { grid-column: auto; }
  .footer-bottom { align-items: flex-start; flex-direction: column; justify-content: center; gap: 4px; padding-block: 14px; }
}
