:root {
  color-scheme: dark;
  --bg: #000000;
  --surface: #262626;
  --surface-2: #171717;
  --text: #ffffff;
  --muted: rgba(255, 255, 255, 0.66);
  --subtle: rgba(255, 255, 255, 0.09);
  --line: rgba(255, 255, 255, 0.14);
  --accent: #7DC247;
  --accent-text: #000000;
  --header-bg: #262626;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.24);
  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --shell: 1400px;
  --header-height: 76px;
  --transition: 180ms ease;
}

:root[data-theme="light"] {
  color-scheme: light;
  --bg: #ffffff;
  --surface: #ffffff;
  --surface-2: #f4f4f4;
  --text: #000000;
  --muted: rgba(0, 0, 0, 0.62);
  --subtle: rgba(0, 0, 0, 0.055);
  --line: rgba(0, 0, 0, 0.13);
  --accent: #7DC247;
  --accent-text: #000000;
  --header-bg: #ffffff;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.09);
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  transition: background-color var(--transition), color var(--transition);
}

body.menu-open { overflow: hidden; }

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent); }
button, input, textarea, select { font: inherit; }
button { color: inherit; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.site-shell {
  width: min(calc(100% - 40px), var(--shell));
  margin-inline: auto;
}

.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 !important;
  width: auto;
  height: auto;
  top: 8px;
  left: 8px;
  padding: 10px 14px;
  background: var(--accent);
  color: var(--accent-text);
  z-index: 10000;
}

.latest-bar {
  min-height: 34px;
  background: var(--accent);
  color: var(--accent-text);
  font-size: 12px;
  font-weight: 650;
  letter-spacing: 0.01em;
}

.latest-bar-inner {
  display: flex;
  align-items: center;
  min-height: 34px;
  overflow: hidden;
}

.latest-bar strong {
  flex: 0 0 auto;
  margin-right: 16px;
  text-transform: uppercase;
  letter-spacing: 0.13em;
}

.latest-ticker {
  display: flex;
  align-items: center;
  gap: 30px;
  overflow-x: auto;
  scrollbar-width: none;
  white-space: nowrap;
  mask-image: linear-gradient(to right, #000 92%, transparent);
}

.latest-ticker::-webkit-scrollbar { display: none; }
.latest-ticker a { opacity: 0.8; }
.latest-ticker a::before { content: "•"; margin-right: 10px; }
.latest-ticker a:hover { color: inherit; opacity: 1; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--header-bg);
  background: color-mix(in srgb, var(--header-bg) 96%, transparent);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.header-main {
  min-height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.site-branding { display: flex; align-items: center; min-width: 0; }
.custom-logo-link { display: inline-flex; }
.custom-logo { width: auto; max-height: 48px; }
.site-title {
  font-size: clamp(22px, 2vw, 30px);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.045em;
}
.header-search { flex: 1 1 560px; max-width: 680px; margin-inline: auto; }
.header-search .search-form { width: 100%; max-width: none; }
.site-description { margin: 3px 0 0 14px; color: var(--muted); font-size: 12px; }

.header-actions { display: flex; align-items: center; gap: 8px; }
.icon-button {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  padding: 0;
  background: var(--subtle);
  border: 1px solid var(--line);
  border-radius: 50%;
  cursor: pointer;
  transition: transform var(--transition), background var(--transition);
}
.icon-button:hover { transform: translateY(-2px); background: var(--surface); }
.theme-icon { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.theme-icon-moon { display: none; }
:root[data-theme="light"] .theme-icon-sun { display: none; }
:root[data-theme="light"] .theme-icon-moon { display: block; }
.menu-toggle { display: none; gap: 4px; align-content: center; }
.menu-toggle span { width: 18px; height: 2px; display: block; background: currentColor; transition: transform var(--transition), opacity var(--transition); }
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.nav-wrap { border-top: 1px solid var(--line); }
.nav-inner { min-height: 52px; display: flex; align-items: center; justify-content: flex-start; gap: 24px; }
.primary-navigation { min-width: 0; overflow: visible; }
.primary-navigation ul { list-style: none; padding: 0; margin: 0; display: flex; align-items: center; gap: 28px; }
.primary-navigation li { position: relative; }
.primary-navigation a { display: block; padding: 14px 0; color: var(--muted); font-size: 13px; font-weight: 750; white-space: nowrap; }
.primary-navigation .current-menu-item > a,
.primary-navigation .current-menu-ancestor > a,
.primary-navigation a:hover { color: var(--accent); }
.primary-navigation .current-menu-item > a::after { content: ""; position: absolute; height: 2px; left: 0; right: 0; bottom: 8px; background: var(--accent); }
.primary-navigation .sub-menu { display: none; position: absolute; top: 100%; left: -18px; min-width: 220px; padding: 10px 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); box-shadow: var(--shadow); }
.primary-navigation li:hover > .sub-menu,
.primary-navigation li:focus-within > .sub-menu { display: block; }

.search-form { position: relative; width: min(100%, 260px); flex: 0 1 260px; }
.search-form label { display: block; }
.search-field {
  width: 100%;
  height: 38px;
  padding: 0 42px 0 14px;
  background: var(--subtle);
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 999px;
  outline: 0;
}
.search-field::placeholder { color: var(--muted); }
.search-field:focus { border-color: var(--text); }
.search-submit { position: absolute; top: 0; right: 0; width: 40px; height: 38px; padding: 9px; background: transparent; border: 0; cursor: pointer; }
.search-submit svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.8; }

.site-main { min-height: 55vh; }
.home-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.75fr) minmax(230px, 0.72fr) minmax(230px, 0.72fr);
  gap: 24px;
  align-items: start;
  padding-block: 32px 64px;
}
.home-column { min-width: 0; }
.sticky-column {
  position: sticky;
  top: calc(var(--header-height) + 66px);
  max-height: calc(100vh - var(--header-height) - 90px);
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: var(--line) transparent;
}
.sticky-column::-webkit-scrollbar { width: 5px; }
.sticky-column::-webkit-scrollbar-thumb { background: var(--line); border-radius: 9px; }

.widget { margin-bottom: 26px; }
.widget-title,
.previous-category-post > h2,
.next-article-preview > h2 {
  position: relative;
  margin: 0 0 16px;
  padding: 0 0 10px;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
  font-weight: 850;
  line-height: 1.2;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.widget-title::after,
.previous-category-post > h2::after,
.next-article-preview > h2::after { content: ""; position: absolute; left: 0; bottom: -1px; width: 46px; height: 2px; background: var(--accent); }
.widget ul { margin: 0; padding-left: 18px; }
.widget select { max-width: 100%; }

.ad-widget-slot { margin-bottom: 26px; }
.ad-widget-slot .widget:last-child { margin-bottom: 0; }

.hero-slider { position: relative; overflow: hidden; border-radius: var(--radius-lg); background: var(--surface); box-shadow: var(--shadow); }
.hero-slider-track { position: relative; aspect-ratio: 16 / 9; }
.hero-slide { position: absolute; inset: 0; opacity: 0; visibility: hidden; transform: scale(1.02); transition: opacity 450ms ease, visibility 450ms ease, transform 650ms ease; }
.hero-slide.is-active { opacity: 1; visibility: visible; transform: scale(1); z-index: 1; }
.hero-slide-link { display: block; width: 100%; height: 100%; color: #fff; }
.hero-slide-link:hover { color: #fff; }
.hero-slide-image, .hero-slide .post-placeholder { width: 100%; height: 100%; object-fit: cover; }
.hero-slide-shade { position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,.92), rgba(0,0,0,.08) 72%); }
.hero-slide-copy { position: absolute; z-index: 2; left: clamp(20px, 4vw, 42px); right: clamp(20px, 4vw, 42px); bottom: clamp(26px, 5vw, 48px); display: flex; flex-direction: column; align-items: flex-start; }
.hero-slide-title { max-width: 760px; margin-top: 10px; font-size: clamp(26px, 3.1vw, 50px); font-weight: 900; line-height: 1.06; letter-spacing: -0.045em; text-wrap: balance; }
.hero-slide-meta { margin-top: 10px; font-size: 12px; opacity: .7; }
.post-category { display: inline-flex; align-items: center; width: fit-content; color: var(--accent); font-size: 10px; font-weight: 900; letter-spacing: .12em; line-height: 1.2; text-transform: uppercase; }
.hero-slide .post-category { padding: 7px 10px; background: var(--accent); border-radius: 999px; color: var(--accent-text); }
.slider-button { position: absolute; z-index: 4; top: 50%; width: 40px; height: 40px; display: grid; place-items: center; padding: 0; transform: translateY(-50%); background: rgba(0,0,0,.5); color: #fff; border: 1px solid rgba(255,255,255,.25); border-radius: 50%; font-size: 28px; line-height: 1; cursor: pointer; opacity: 0; transition: opacity var(--transition), background var(--transition); }
.hero-slider:hover .slider-button, .hero-slider:focus-within .slider-button { opacity: 1; }
.slider-button:hover { background: #000; }
.slider-prev { left: 14px; }
.slider-next { right: 14px; }
.slider-dots { position: absolute; z-index: 4; left: 50%; bottom: 15px; display: flex; gap: 7px; transform: translateX(-50%); }
.slider-dot { width: 7px; height: 7px; padding: 0; background: rgba(255,255,255,.5); border: 0; border-radius: 50%; cursor: pointer; }
.slider-dot.is-active { width: 22px; background: #fff; border-radius: 99px; }

.widget-post-list { display: grid; gap: 4px; }
.widget-post-card { display: grid; grid-template-columns: 104px minmax(0, 1fr); gap: 12px; padding: 10px; border-radius: var(--radius-sm); transition: background var(--transition), transform var(--transition); }
.widget-post-card:hover { background: var(--subtle); transform: translateY(-1px); }
.widget-post-media { min-width: 0; }
.widget-post-image, .widget-post-media .post-placeholder { width: 104px; height: 72px; object-fit: cover; border-radius: 8px; }
.widget-post-copy { min-width: 0; align-self: center; }
.widget-post-copy h3 { margin: 5px 0 4px; font-size: 14px; line-height: 1.28; letter-spacing: -0.015em; }
.widget-post-copy time { display: block; color: var(--muted); font-size: 10px; }
.home-column-lead .widget-post-card { grid-template-columns: 180px minmax(0, 1fr); gap: 18px; padding: 14px 0; border-radius: 0; border-bottom: 1px solid var(--line); }
.home-column-lead .widget-post-card:hover { background: transparent; transform: none; }
.home-column-lead .widget-post-image, .home-column-lead .widget-post-media .post-placeholder { width: 180px; height: 112px; border-radius: 10px; }
.home-column-lead .widget-post-copy h3 { margin: 7px 0; font-size: clamp(17px, 1.6vw, 23px); line-height: 1.22; }
.home-column-lead .widget-post-copy time { font-size: 11px; }
.post-placeholder { display: grid; place-items: center; background: var(--surface); color: var(--muted); }
.post-placeholder svg { width: 34%; height: 34%; fill: currentColor; opacity: .35; }

.content-sidebar-layout {
  display: grid;
  grid-template-columns: minmax(0, 2.15fr) minmax(280px, .85fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
  padding-block: 34px 72px;
}
.content-column { min-width: 0; }
.content-sidebar { min-width: 0; }
.breadcrumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 30px; color: var(--muted); font-size: 12px; }
.breadcrumbs a { color: var(--accent); }
.breadcrumbs a:hover { color: var(--text); }
.breadcrumbs span[aria-current="page"] { max-width: 55ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.archive-header { margin-bottom: 32px; }
.archive-header h1 { margin: 0; font-size: clamp(34px, 5vw, 64px); line-height: 1; letter-spacing: -.055em; text-wrap: balance; }
.archive-description { max-width: 65ch; margin-top: 16px; color: var(--muted); }
.archive-description p { margin: 0; }
.archive-posts { display: grid; gap: 0; }
.archive-card { display: grid; grid-template-columns: minmax(170px, 240px) minmax(0, 1fr); gap: 24px; padding-block: 24px; border-top: 1px solid var(--line); }
.archive-card:first-child { border-top: 0; padding-top: 0; }
.archive-card-media { display: block; }
.archive-card-image, .archive-card-media .post-placeholder { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: var(--radius-sm); }
.archive-card-copy { align-self: center; min-width: 0; }
.archive-card h2 { margin: 7px 0; font-size: clamp(21px, 2.2vw, 30px); line-height: 1.14; letter-spacing: -.035em; }
.card-meta, .article-meta { display: flex; flex-wrap: wrap; gap: 7px; color: var(--muted); font-size: 11px; }
.card-excerpt { margin-top: 10px; color: var(--muted); font-size: 14px; }
.card-excerpt p { margin: 0; }
.pagination .nav-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 36px; }
.page-numbers { min-width: 42px; min-height: 42px; display: grid; place-items: center; padding: 7px 12px; background: var(--subtle); border: 1px solid var(--line); border-radius: 50%; font-weight: 700; }
.page-numbers.current, .page-numbers:hover { background: var(--accent); color: var(--accent-text); }
.page-numbers.next, .page-numbers.prev { border-radius: 999px; }

.article-header { max-width: 920px; margin-bottom: 30px; }
.article-header h1 { margin: 12px 0 18px; font-size: clamp(38px, 6vw, 72px); line-height: 1.02; letter-spacing: -.058em; text-wrap: balance; }
.article-featured { margin: 0 0 38px; }
.article-featured img { width: 100%; max-height: 720px; object-fit: cover; border-radius: var(--radius); }
.article-featured figcaption { margin-top: 10px; color: var(--muted); font-size: 12px; text-align: center; }
.entry-content { font-family: ui-serif, Georgia, Cambria, "Times New Roman", serif; font-size: clamp(18px, 1.65vw, 21px); line-height: 1.82; }
.entry-content > * { max-width: 760px; margin-inline: auto; }
.entry-content > .alignwide { max-width: 1000px; }
.entry-content > .alignfull { max-width: none; width: 100%; }
.entry-content h2, .entry-content h3, .entry-content h4 { font-family: Inter, ui-sans-serif, sans-serif; line-height: 1.15; letter-spacing: -.035em; }
.entry-content h2 { margin-top: 2.2em; font-size: clamp(28px, 4vw, 42px); }
.entry-content h3 { margin-top: 1.9em; font-size: clamp(23px, 3vw, 31px); }
.entry-content a { color: var(--accent); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.entry-content a:hover { color: var(--text); }
.entry-content blockquote { padding: 10px 0 10px 26px; border-left: 3px solid var(--accent); color: var(--muted); font-size: 1.18em; font-style: italic; }
.entry-content pre, .entry-content code { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; }
.entry-content pre { overflow-x: auto; padding: 20px; background: var(--surface); border-radius: var(--radius-sm); font-size: 14px; }
.entry-content table { width: 100%; border-collapse: collapse; font-family: Inter, ui-sans-serif, sans-serif; font-size: 15px; }
.entry-content th, .entry-content td { padding: 12px; border: 1px solid var(--line); text-align: left; }
.entry-content th { background: var(--surface); }
.entry-content iframe { max-width: 100%; }
.article-ad { margin: 44px 0; padding: 18px; border: 1px dashed var(--line); border-radius: var(--radius-sm); }
.article-ad .widget { margin: 0; }
.share-links { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; margin-top: 46px; padding-block: 22px; border-block: 1px solid var(--line); }
.share-links span { margin-right: 7px; font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; }
.share-links a { padding: 8px 13px; background: var(--subtle); border-radius: 999px; font-size: 12px; font-weight: 700; }
.share-links a:hover { background: var(--accent); color: var(--accent-text); }
.author-box { display: grid; grid-template-columns: 80px minmax(0, 1fr); gap: 20px; align-items: center; margin: 40px 0; padding: 26px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.author-box img { width: 80px; height: 80px; border-radius: 50%; }
.author-box span { color: var(--muted); font-size: 11px; font-weight: 750; text-transform: uppercase; letter-spacing: .1em; }
.author-box h2 { margin: 2px 0 6px; font-size: 22px; }
.author-box p { margin: 0; color: var(--muted); font-size: 14px; }
.previous-category-post { margin-top: 52px; }
.previous-category-post .archive-card { grid-template-columns: 210px minmax(0, 1fr); }
.next-article-preview { margin-top: 52px; }
.next-preview-card { display: grid; grid-template-columns: minmax(220px, 34%) minmax(0, 1fr); gap: clamp(22px, 4vw, 46px); padding: 26px 0 8px; }
.next-preview-media { display: block; }
.next-preview-image, .next-preview-media .post-placeholder { width: 100%; aspect-ratio: 16 / 11; object-fit: cover; border-radius: var(--radius); }
.next-preview-copy { align-self: center; min-width: 0; }
.next-preview-copy h3 { margin: 9px 0 10px; font-size: clamp(25px, 3.2vw, 42px); line-height: 1.08; letter-spacing: -.045em; }
.next-preview-copy p { margin: 16px 0 13px; color: var(--muted); font-size: 16px; }
.read-more-link { display: inline-flex; gap: 8px; align-items: center; color: var(--accent); font-size: 12px; font-weight: 850; letter-spacing: .06em; text-transform: uppercase; }
.read-more-link:hover { color: var(--text); }
.post-navigation { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 42px; }
.post-navigation > div { min-width: 0; }
.post-navigation a { height: 100%; display: flex; flex-direction: column; padding: 22px; background: var(--subtle); border: 1px solid var(--line); border-radius: var(--radius-sm); }
.post-navigation .nav-next { text-align: right; }
.post-navigation small { color: var(--muted); font-size: 10px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.post-navigation span { margin-top: 5px; font-weight: 750; line-height: 1.3; }

.comments-area { margin-top: 56px; padding-top: 36px; border-top: 1px solid var(--line); }
.comments-title, .comment-reply-title { font-size: 26px; letter-spacing: -.03em; }
.comment-list { padding: 0; list-style: none; }
.comment-list .children { list-style: none; }
.comment-body { position: relative; margin-block: 20px; padding: 20px; background: var(--subtle); border-radius: var(--radius-sm); }
.comment-author { display: flex; align-items: center; gap: 10px; }
.comment-author img { border-radius: 50%; }
.comment-metadata { margin: 5px 0 12px 66px; color: var(--muted); font-size: 11px; }
.reply { font-size: 12px; font-weight: 800; }
.comment-form { display: grid; gap: 14px; }
.comment-form p { margin: 0; }
.comment-form label { display: block; margin-bottom: 6px; font-size: 12px; font-weight: 750; }
.comment-form input:not([type="checkbox"]), .comment-form textarea { width: 100%; padding: 13px 14px; background: var(--surface); color: var(--text); border: 1px solid var(--line); border-radius: 8px; }
.form-submit .submit, .button { display: inline-flex; align-items: center; justify-content: center; padding: 12px 20px; background: var(--accent); color: var(--accent-text); border: 0; border-radius: 999px; font-weight: 800; cursor: pointer; }

.empty-state, .error-page { text-align: center; }
.empty-state { padding: 70px 20px; background: var(--subtle); border-radius: var(--radius); }
.empty-state h2 { margin: 0; font-size: 34px; }
.empty-state .search-form { margin: 22px auto 0; }
.error-page { max-width: 700px; padding-block: 100px; }
.error-code { display: block; color: var(--muted); font-size: clamp(90px, 20vw, 190px); font-weight: 950; line-height: .8; letter-spacing: -.08em; }
.error-page h1 { margin: 30px 0 10px; font-size: clamp(32px, 6vw, 58px); letter-spacing: -.05em; }
.error-page p { color: var(--muted); }
.error-page .search-form { margin: 28px auto; }

.site-footer { margin-top: 30px; background: #262626; color: #fff; border-top: 1px solid rgba(255,255,255,.15); }
.footer-grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 50px; padding-block: 60px; }
.footer-brand { font-size: 26px; font-weight: 900; letter-spacing: -.04em; }
.footer-logo-link { display: inline-flex; }
.footer-logo { width: auto; max-width: min(100%, 280px); max-height: 64px; object-fit: contain; }
.footer-column-widgets { margin-top: 20px; }
.footer-grid p { max-width: 45ch; margin: 10px 0 0; color: rgba(255,255,255,.6); font-size: 13px; }
.footer-grid ul { display: flex; flex-wrap: wrap; gap: 8px 20px; margin: 0; padding: 0; list-style: none; }
.footer-grid a, .footer-bottom a { color: var(--accent); }
.footer-grid a:hover, .footer-bottom a:hover { color: #fff; }
.footer-column .widget { margin-bottom: 18px; }
.footer-column .widget:last-child { margin-bottom: 0; }
.footer-column .widget-title { color: #fff; }
.footer-note strong { display: block; font-size: 18px; }
.social-links-widget { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.social-icon { width: 42px; height: 42px; display: grid; place-items: center; background: rgba(255,255,255,.07); color: var(--accent); border: 1px solid rgba(255,255,255,.15); border-radius: 50%; transition: color var(--transition), background var(--transition), transform var(--transition); }
.social-icon:hover { background: var(--accent); color: #000; transform: translateY(-2px); }
.social-icon svg { width: 20px; height: 20px; fill: currentColor; }
.social-icon-instagram svg, .social-icon-youtube svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.social-icon .icon-fill { fill: currentColor; stroke: none; }
.footer-bottom { min-height: 74px; display: flex; align-items: center; justify-content: space-between; gap: 20px; border-top: 1px solid rgba(255,255,255,.13); color: rgba(255,255,255,.55); font-size: 12px; }

.scroll-top { position: fixed; z-index: 90; right: 22px; bottom: 22px; width: 46px; height: 46px; display: grid; place-items: center; padding: 0; background: var(--accent); color: var(--accent-text); border: 1px solid var(--line); border-radius: 50%; box-shadow: var(--shadow); cursor: pointer; opacity: 0; visibility: hidden; transform: translateY(12px); transition: opacity var(--transition), visibility var(--transition), transform var(--transition); }
.scroll-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.scroll-top svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

@media (max-width: 1180px) {
  .home-layout { grid-template-columns: minmax(0, 1.45fr) minmax(260px, .7fr); }
  .home-column-lead { grid-row: span 2; }
  .home-column-compact { position: static; max-height: none; overflow: visible; }
  .primary-navigation ul { gap: 20px; }
}

@media (max-width: 900px) {
  :root { --header-height: 68px; }
  .site-header { backdrop-filter: blur(14px); }
  .menu-toggle { display: grid; }
  .nav-wrap { position: fixed; inset: var(--header-height) 0 0; display: none; overflow-y: auto; background: var(--bg); }
  .nav-wrap.is-open { display: block; }
  .nav-inner { display: block; padding-block: 22px 40px; }
  .primary-navigation ul { display: block; }
  .primary-navigation a { padding: 13px 0; border-bottom: 1px solid var(--line); font-size: 18px; }
  .primary-navigation .current-menu-item > a::after { display: none; }
  .primary-navigation .sub-menu { position: static; display: block; padding: 0 0 0 18px; background: transparent; border: 0; box-shadow: none; }
  .primary-navigation .sub-menu a { font-size: 15px; }
  .header-search { max-width: none; }
  .home-layout { grid-template-columns: 1fr 1fr; }
  .home-column-lead { grid-column: 1 / -1; grid-row: auto; }
  .content-sidebar-layout { grid-template-columns: 1fr; }
  .content-sidebar { position: static; max-height: none; overflow: visible; border-top: 1px solid var(--line); padding-top: 38px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-note { grid-column: 1 / -1; }
}

@media (max-width: 620px) {
  :root { --header-height: 118px; }
  .site-shell { width: min(calc(100% - 28px), var(--shell)); }
  .latest-bar-inner { width: 100%; padding-inline: 14px; }
  .latest-ticker { gap: 18px; }
  .site-description { display: none; }
  .header-main { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 9px 12px; padding-block: 9px; }
  .site-branding { grid-column: 1; grid-row: 1; }
  .header-actions { grid-column: 2; grid-row: 1; }
  .header-search { grid-column: 1 / -1; grid-row: 2; width: 100%; }
  .header-search .search-field { height: 36px; font-size: 13px; }
  .home-layout { grid-template-columns: minmax(0, 1fr); gap: 12px; padding-block: 20px 46px; }
  .home-column-lead { grid-column: auto; }
  .hero-slider { border-radius: var(--radius); }
  .hero-slider-track { aspect-ratio: 4 / 3; }
  .hero-slide-title { font-size: clamp(24px, 8vw, 36px); }
  .slider-button { opacity: .85; width: 36px; height: 36px; }
  .home-column-lead .widget-post-card, .widget-post-card { grid-template-columns: 112px minmax(0, 1fr); gap: 13px; }
  .home-column-lead .widget-post-image, .home-column-lead .widget-post-media .post-placeholder, .widget-post-image, .widget-post-media .post-placeholder { width: 112px; height: 78px; }
  .home-column-lead .widget-post-copy h3 { margin: 5px 0; font-size: 16px; }
  .content-sidebar-layout { width: min(calc(100% - 28px), var(--shell)); padding-block: 24px 50px; }
  .breadcrumbs { margin-bottom: 22px; }
  .article-header h1 { font-size: clamp(36px, 12vw, 52px); }
  .article-featured { width: calc(100% + 28px); margin-left: -14px; }
  .article-featured img { border-radius: 0; }
  .entry-content { font-size: 18px; line-height: 1.75; }
  .archive-card, .previous-category-post .archive-card { grid-template-columns: 112px minmax(0, 1fr); gap: 14px; padding-block: 17px; }
  .archive-card h2 { font-size: 17px; }
  .archive-card .card-excerpt { display: none; }
  .archive-card .card-meta > span:first-child, .archive-card .card-meta > span:nth-child(2) { display: none; }
  .author-box { grid-template-columns: 56px minmax(0, 1fr); padding: 20px; }
  .author-box img { width: 56px; height: 56px; }
  .author-box p { grid-column: 1 / -1; }
  .post-navigation { grid-template-columns: 1fr; }
  .post-navigation .nav-next { text-align: left; }
  .next-preview-card { grid-template-columns: 1fr; gap: 18px; }
  .next-preview-image, .next-preview-media .post-placeholder { aspect-ratio: 16 / 9; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; padding-block: 46px; }
  .footer-note { grid-column: auto; }
  .footer-bottom { align-items: flex-start; flex-direction: column; justify-content: center; gap: 2px; }
  .scroll-top { right: 14px; bottom: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
