/*
Theme Name: RE START Media
Theme URI: https://restart-inc.co.jp/media/
Author: RE START
Description: RE STARTのオウンドメディア用テーマ
Version: 1.1.0
Text Domain: restart-media
*/

:root {
  --navy: #0f1a3d;
  --navy-deep: #0c1532;
  --navy-800: #152151;
  --blue: #1f6fc1;
  --cyan: #37c4f2;
  --acc-1: #0b3d6b;
  --acc-2: #0f8a9e;
  --acc-3: #26c4b8;
  --grad: linear-gradient(118deg, var(--acc-1) 0%, var(--acc-2) 52%, var(--acc-3) 100%);
  --cyan-pale: #e5f7f8;
  --ink: #16203c;
  --muted: #69748f;
  --line: #e6e9f1;
  --surface: #f4f6fa;
  --white: #fff;
  --container: min(1120px, calc(100% - 64px));
  --article: min(760px, calc(100% - 64px));
  --font: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", YuGothic, sans-serif;
  --font-en: "Schibsted Grotesk", "Noto Sans JP", sans-serif;
  --page-pad: clamp(20px, 5vw, 88px);
  --site-max-width: 1280px;
  --header-height: 78px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--white); font-family: var(--font); font-feature-settings: "palt" 1; font-size: 16px; letter-spacing: .01em; line-height: 1.75; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--cyan); outline-offset: 4px; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* Corporate header: mirrors restart-inc.co.jp. */
.site-header { position: sticky; top: 0; z-index: 1000; background: rgba(255,255,255,.86); border-bottom: 1px solid transparent; -webkit-backdrop-filter: blur(18px) saturate(150%); backdrop-filter: blur(18px) saturate(150%); transition: border-color .3s, box-shadow .3s, background .3s; }
.site-header[data-scrolled="1"] { border-bottom-color: var(--line); box-shadow: 0 6px 30px -22px rgba(15,26,61,.45); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 30px; width: 100%; max-width: var(--site-max-width); height: var(--header-height); padding-inline: var(--page-pad); margin-inline: auto; }
.brand { display: flex; flex: none; align-items: center; gap: 12px; }
.brand img { width: auto; height: 42px; }
.nav { display: flex; align-items: center; gap: clamp(14px, 2vw, 34px); margin-left: auto; }
.nav a { position: relative; padding: 6px 2px; color: #37425e; font-size: 14.5px; font-weight: 500; letter-spacing: .01em; white-space: nowrap; transition: color .25s; }
.nav a::after { position: absolute; right: 100%; bottom: -2px; left: 0; height: 2px; border-radius: 2px; background: var(--grad); content: ""; transition: right .3s cubic-bezier(.2,.7,.2,1); }
.nav a:hover, .nav a:focus-visible { color: var(--ink); }
.nav a:hover::after, .nav a:focus-visible::after { right: 0; }
.header-actions { display: flex; flex: none; align-items: center; gap: 18px; }
.icon-btn { display: inline-flex; align-items: center; gap: 7px; padding: 6px; border: 0; color: #37425e; background: none; font-family: inherit; font-size: 13.5px; font-weight: 500; cursor: pointer; transition: color .25s; }
.icon-btn:hover, .icon-btn:focus-visible { color: var(--blue); }
.icon-btn svg { width: 18px; height: 18px; }
.header-cta { display: inline-flex; align-items: center; gap: 10px; padding: 11px 20px; border-radius: 999px; color: #fff; background: var(--navy-800); font-size: 14px; font-weight: 600; white-space: nowrap; transition: .35s cubic-bezier(.2,.7,.2,1); }
.header-cta:hover, .header-cta:focus-visible { background: var(--grad); box-shadow: 0 12px 26px -12px rgba(38,130,207,.6); transform: translateY(-1px); }
.nav-toggle { display: none; }

/* Breadcrumb: mirrors the light, compact treatment on restart-inc.co.jp. */
.breadcrumbs { width: var(--container); max-width: none; padding: 22px 0 0; margin: 0 auto; color: var(--muted); font-size: 13px; letter-spacing: .01em; }
.breadcrumbs ol { display: flex; align-items: center; flex-wrap: wrap; gap: 9px; padding: 0; margin: 0; list-style: none; }
.breadcrumbs li { display: flex; align-items: center; min-width: 0; }
.breadcrumbs li + li::before { margin-right: 9px; color: var(--line); content: "›"; font-size: 14px; }
.breadcrumbs a { color: var(--muted); white-space: nowrap; transition: color .2s ease; }
.breadcrumbs a:hover, .breadcrumbs a:focus-visible { color: var(--blue); }
.breadcrumbs [aria-current="page"] { flex: 0 1 auto; max-width: 52ch; min-width: 0; color: var(--ink); font-weight: 500; }
.breadcrumbs__current { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.section-kicker { display: inline-flex; align-items: center; gap: .7em; margin: 0 0 22px; color: var(--blue); font-family: var(--font-en); font-size: 13px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; }
.section-kicker::before { width: 30px; height: 2px; border-radius: 2px; background: var(--grad); content: ""; }

/* Archive: follows XMarke's image-left / copy-right editorial list. */
.archive { width: var(--container); padding: 76px 0 104px; margin: 0 auto; }
.archive__header { display: flex; align-items: end; justify-content: flex-start; gap: 20px; padding-bottom: 32px; border-bottom: 1px solid var(--line); }
.archive__header h1 { margin: 0; color: var(--navy); font-size: clamp(28px, 3.6vw, 46px); font-weight: 700; letter-spacing: .01em; line-height: 1.32; }
.archive__count { margin: 0 0 4px; color: var(--muted); font-size: .75rem; font-weight: 700; letter-spacing: .08em; }
.category-filter { display: flex; gap: 9px; overflow-x: auto; padding: 26px 0 19px; margin: 0 0 39px; border-bottom: 1px solid var(--line); scrollbar-width: thin; }
.category-filter button { flex: 0 0 auto; padding: 7px 14px; border: 1px solid var(--line); border-radius: 999px; color: #56647c; background: var(--white); font: inherit; font-size: .75rem; font-weight: 700; cursor: pointer; transition: background .18s ease, border-color .18s ease, color .18s ease; }
.category-filter button:hover, .category-filter button:focus-visible, .category-filter button[aria-pressed="true"] { border-color: var(--navy); color: var(--white); background: var(--navy); }
.media-layout, .article-content-layout { display: grid; grid-template-columns: minmax(0, 1fr) 282px; align-items: start; gap: clamp(38px, 6vw, 78px); }
.article-list { display: grid; gap: 42px; }
.article-card { position: relative; display: grid; grid-template-columns: minmax(260px, 1fr) minmax(0, 1.25fr); gap: clamp(27px, 3vw, 42px); align-items: start; padding-bottom: 42px; border-bottom: 1px solid var(--line); }
.article-card__image { position: relative; display: block; overflow: hidden; aspect-ratio: 1.63; background: linear-gradient(135deg, var(--navy), var(--blue)); }
.article-card__image img { width: 100%; height: 100%; object-fit: cover; transition: transform .38s ease, opacity .38s ease; }
.article-card__fallback { display: grid; align-content: end; width: 100%; height: 100%; padding: 22px; color: var(--white); background: linear-gradient(135deg, rgba(7,20,58,.92), rgba(40,89,173,.82)); }
.article-card__fallback::before { content: "RE:START MEDIA"; margin-bottom: 8px; color: var(--cyan); font-size: .62rem; font-weight: 800; letter-spacing: .15em; }
.article-card__fallback span { font-size: 1rem; font-weight: 700; line-height: 1.5; }
.article-card__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; color: var(--muted); font-size: .81rem; font-weight: 500; letter-spacing: .01em; }
.article-card__category { padding: 3px 10px; border: 1px solid #7cacdf; color: var(--blue); font-size: .7rem; font-weight: 700; }
.article-card__title { margin: 16px 0 0; color: var(--navy); font-size: clamp(1.28rem, 2vw, 1.75rem); font-weight: 700; letter-spacing: .01em; line-height: 1.45; }
.article-card__title a, .article-card__title a:hover, .article-card__title a:focus-visible { color: inherit; background: none; }
.article-card__excerpt { display: -webkit-box; overflow: hidden; margin: 17px 0 0; color: #7a8393; font-size: .96rem; font-weight: 500; line-height: 1.72; -webkit-box-orient: vertical; -webkit-line-clamp: 3; }
.article-card__more { display: none; }
.article-card__more span { transition: transform .18s ease; }
.article-card__more:hover span, .article-card__more:focus-visible span { transform: translateX(4px); }

/* Sidebar */
.media-sidebar { display: grid; gap: 41px; }
.sidebar-section { padding-top: 0; border-top: 0; }
.sidebar-section__title { padding-bottom: 12px; margin: 0 0 18px; border-bottom: 3px solid var(--navy); color: var(--navy); font-size: 1.13rem; font-weight: 700; letter-spacing: .01em; }
.sidebar-category-list, .sidebar-archive-list { padding: 0; margin: 0; list-style: none; }
.sidebar-category-list { display: flex; flex-wrap: wrap; gap: 9px; }
.sidebar-category-list li { border: 0; }
.sidebar-category-list a { display: inline-flex; padding: 3px 10px; border: 1px solid #7cacdf; color: var(--blue); font-size: .7rem; font-weight: 700; transition: background .18s ease, border-color .18s ease, color .18s ease; }
.sidebar-category-list a:hover, .sidebar-category-list a:focus-visible { border-color: var(--blue); color: var(--white); background: var(--blue); }
.sidebar-archive-list li { display: flex; justify-content: flex-start; align-items: center; gap: 5px; border-bottom: 1px solid var(--line); color: #9ca6b5; font-size: .68rem; }
.sidebar-archive-list a { display: inline-flex; flex: 0 0 auto; justify-content: flex-start; gap: 0; padding: 9px 1px; color: #4d5b73; font-size: .78rem; font-weight: 700; }
.sidebar-archive-list a::before { margin-right: 7px; color: var(--cyan); content: "›"; }
.sidebar-archive-list a:hover, .sidebar-archive-list a:focus-visible { color: var(--blue); }
.sidebar-post-list { display: grid; gap: 17px; }
.sidebar-post { display: grid; grid-template-columns: 84px minmax(0,1fr); gap: 12px; align-items: start; }
.sidebar-post__image { display: block; overflow: hidden; aspect-ratio: 1; background: linear-gradient(135deg, var(--navy), var(--blue)); }
.sidebar-post__image img { width: 100%; height: 100%; object-fit: cover; transition: transform .38s ease, opacity .38s ease; }
.sidebar-post__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 0; color: #8994a4; font-size: .64rem; line-height: 1.5; }
.sidebar-post__category { display: inline-flex; padding: 2px 7px; border: 1px solid #7cacdf; color: var(--blue); font-size: .6rem; font-weight: 700; line-height: 1.2; }
.sidebar-post h3 { margin: 4px 0 0; color: var(--navy); font-size: .75rem; font-weight: 800; line-height: 1.6; }
.sidebar-post h3 a, .sidebar-post h3 a:hover, .sidebar-post h3 a:focus-visible { color: inherit; text-decoration: none; }

@media (hover: hover) and (pointer: fine) {
  .article-card:hover .article-card__image img, .article-card:focus-within .article-card__image img, .sidebar-post:hover .sidebar-post__image img, .sidebar-post:focus-within .sidebar-post__image img { opacity: .78; transform: scale(1.035); }
}

@media (prefers-reduced-motion: reduce) {
  .article-card__image img, .sidebar-post__image img { transition-duration: .01ms !important; }
}
.sidebar-section--archive { display: block; }

/* Article detail: XMarke's title / date / category / image / TOC flow, recolored. */
.article-page { padding: 21px 0 106px; }
.article-header { width: var(--container); max-width: 1038px; padding: 50px 0 38px; margin: 0 auto; }
.article-header .section-kicker { margin-bottom: 17px; }
.article-header__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 11px; margin-top: 19px; color: var(--muted); font-size: .77rem; }
.article-header__category { padding: 2px 8px; border: 1px solid #7cacdf; color: var(--blue); font-size: .67rem; font-weight: 800; }
.article-header h1 { margin: 0; color: var(--navy); font-size: clamp(1.85rem, 3.7vw, 3.05rem); font-weight: 800; letter-spacing: .035em; line-height: 1.42; }
.article-hero-image { width: 100%; overflow: hidden; margin: 0 0 48px; aspect-ratio: 1.62; background: linear-gradient(135deg, var(--navy), var(--blue)); }
.article-hero-image img { width: 100%; height: 100%; object-fit: cover; }
.article-hero-image__fallback { display: grid; place-items: center; width: 100%; height: 100%; padding: 35px; color: var(--white); text-align: center; background: radial-gradient(circle at 79% 22%, rgba(89,201,215,.68), transparent 23%), linear-gradient(115deg,var(--navy-deep),var(--blue)); }
.article-hero-image__fallback span { max-width: 760px; font-size: clamp(1.35rem,3vw,2.3rem); font-weight: 800; line-height: 1.5; }
.article-content-layout { width: var(--container); margin: 0 auto; }
.article-main { min-width: 0; }
.article-campaign-banner { display: block; width: 100%; overflow: hidden; line-height: 0; transition: opacity .2s ease; }
.article-campaign-banner img { display: block; width: 100%; height: auto; }
.article-campaign-banner--top { margin: 0 0 48px; }
.article-campaign-banner--bottom { margin: 48px 0 0; }
.article-campaign-banner:focus-visible { outline: 3px solid var(--blue); outline-offset: 4px; }
@media (hover: hover) and (pointer: fine) {
  .article-campaign-banner:hover { opacity: .82; }
}
@media (prefers-reduced-motion: reduce) {
  .article-campaign-banner { transition: none; }
}
.table-of-contents { padding: 0; margin: 0 0 54px; border: 0; background: none; }
.table-of-contents::before { display: none; }
.table-of-contents__title { display: flex; align-items: center; gap: 11px; padding-bottom: 12px; margin: 0 0 3px; border-bottom: 2px solid var(--navy); color: var(--navy); font-size: 1rem; font-weight: 800; letter-spacing: .06em; }
.table-of-contents__title::before { width: 25px; height: 2px; border-radius: 2px; background: var(--grad); content: ""; }
.table-of-contents ol { padding: 0; margin: 0; list-style: none; }
.table-of-contents li { display: grid; grid-template-columns: 34px minmax(0,1fr); align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); color: #4f5c73; font-size: .86rem; line-height: 1.65; }
.table-of-contents__number { align-self: center; color: var(--blue); font-family: var(--font-en); font-size: .68rem; font-weight: 800; letter-spacing: .06em; line-height: 1; white-space: nowrap; }
.table-of-contents li[data-level="3"] { grid-template-columns: 56px minmax(0,1fr); padding-left: 16px; font-size: .8rem; }
.table-of-contents li[data-level="3"] .table-of-contents__number { margin-left: 8px; color: #7793be; }
.table-of-contents a, .table-of-contents a:hover { color: inherit; text-decoration: none; }
.article-body { color: #303d53; font-size: .98rem; line-height: 2.04; }
.article-body > *:first-child { margin-top: 0; }
.article-body p, .article-body ul, .article-body ol, .article-body figure, .article-body .wp-block-image, .article-body .wp-block-embed, .article-body blockquote, .article-body table { margin-top: 0; margin-bottom: 32px; }
.article-body hr, .article-body .wp-block-separator { display: none; }
.article-body h2, .article-body h3, .article-body h4 { color: var(--navy); scroll-margin-top: calc(var(--header-height) + 24px); }
.article-body h2 { position: relative; padding: 17px 0 16px 21px; margin: 66px 0 28px; border-bottom: 1px solid var(--line); font-size: clamp(1.34rem,2.5vw,1.75rem); font-weight: 800; letter-spacing: .04em; line-height: 1.55; }
.article-body h2::before { content: ""; position: absolute; top: 17px; bottom: 16px; left: 0; width: 5px; background: linear-gradient(var(--blue),var(--cyan)); }
.article-body h3 { padding-bottom: 10px; margin: 52px 0 23px; border-bottom: 1px solid var(--line); font-size: 1.24rem; font-weight: 800; line-height: 1.6; }
.article-body h4 { margin: 36px 0 14px; font-size: 1rem; }
.article-body a { color: var(--blue); font-weight: 700; text-decoration: underline; text-decoration-color: var(--cyan); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.article-body ul, .article-body ol { padding-left: 1.4em; }
.article-body li + li { margin-top: 7px; }
.article-body blockquote { padding: 20px 25px; margin-right: 0; margin-left: 0; border-left: 4px solid var(--cyan); color: #546278; background: var(--surface); }
.article-body blockquote p:last-child { margin-bottom: 0; }
.article-body figcaption { margin-top: 8px; color: var(--muted); font-size: .75rem; line-height: 1.6; text-align: center; }
.article-body table { display: block; width: 100%; overflow-x: auto; border-collapse: collapse; border: 1px solid var(--line); font-size: .88rem; white-space: nowrap; }
.article-body th, .article-body td { padding: 12px 15px; border: 1px solid var(--line); }
.article-body th { color: var(--navy); background: var(--surface); }
.article-body iframe { width: 100%; max-width: 100%; }
.button-arrow { display: inline-flex; align-items: center; gap: 15px; padding: 12px 16px; margin-top: 22px; color: var(--navy); background: var(--white); font-size: .79rem; font-weight: 800; transition: background .18s ease, transform .18s ease; }
.button-arrow::after { content: "→"; }
.button-arrow:hover, .button-arrow:focus-visible { background: var(--cyan); transform: translateX(4px); }
.related-posts { width: var(--container); padding: 85px 0; margin: 95px auto 0; border-top: 1px solid var(--line); }
.related-posts__header { display: flex; justify-content: space-between; align-items: end; gap: 22px; margin-bottom: 34px; }
.related-posts h2 { margin: 0; color: var(--navy); font-size: clamp(1.5rem,2.6vw,2.15rem); }
.related-posts__all { color: var(--blue); font-size: .8rem; font-weight: 800; }
.related-posts__all::after { content: " →"; }
.related-posts__all:hover { text-decoration: underline; text-underline-offset: 4px; }
.related-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 27px; }
.related-grid .article-card { display: block; padding: 0; border: 0; }
.related-grid .article-card__image { aspect-ratio: 1.6; }
.related-grid .article-card__body { padding-top: 18px; }
.related-grid .article-card__meta { font-size: .72rem; }
.related-grid .article-card__title { margin-top: 10px; font-size: 1rem; line-height: 1.55; }
.related-grid .article-card__excerpt { margin-top: 10px; font-size: .82rem; line-height: 1.65; }
.related-grid .article-card__more { display: none; }

/* The alternate article keeps the existing editorial styling without exit links. */
.site-header--standalone .header-inner { justify-content: flex-start; }
.article-content-layout--standalone { display: block; width: var(--article); }
.site-footer.site-footer--standalone { padding-block: 28px; border: 0; }
.site-footer--standalone .footer-bottom.footer-bottom--standalone { justify-content: center; padding-top: 0; margin-top: 0; border: 0; text-align: center; }

/* Corporate footer: mirrors restart-inc.co.jp. */
.wrap { width: 100%; max-width: var(--site-max-width); padding-inline: var(--page-pad); margin-inline: auto; }
.site-footer { padding-block: 64px 36px; border-top: 1px solid var(--line); color: var(--ink); background: #fff; }
.footer-top { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 40px; }
.footer-brand img { width: auto; height: 46px; margin-bottom: 20px; }
.footer-brand p { max-width: 30ch; margin: 0; color: var(--muted); font-size: 13.5px; line-height: 1.9; }
.footer-col h4 { margin: 0 0 18px; color: var(--blue); font-family: var(--font-en); font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.footer-col ul { display: flex; flex-direction: column; gap: 13px; padding: 0; margin: 0; list-style: none; }
.footer-col a { color: #37425e; font-size: 14px; transition: color .25s; }
.footer-col a:hover, .footer-col a:focus-visible { color: var(--blue); }
.footer-bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; padding-top: 28px; margin-top: 56px; border-top: 1px solid var(--line); }
.footer-bottom .legal { display: flex; flex-wrap: wrap; gap: 26px; }
.footer-bottom a { color: var(--muted); font-size: 12.5px; transition: color .25s; }
.footer-bottom a:hover, .footer-bottom a:focus-visible { color: var(--blue); }
.footer-bottom .copy { color: var(--muted); font-family: var(--font-en); font-size: 12.5px; letter-spacing: .02em; }
.empty-state { padding: 70px 20px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); text-align: center; }
.empty-state h2 { margin: 0; color: var(--navy); font-size: 1.2rem; }
.empty-state p { margin: 8px 0 0; color: var(--muted); font-size: .88rem; }
.pagination { margin-top: 54px; }
.pagination .nav-links { display: flex; align-items: center; justify-content: center; gap: 7px; }
.pagination a, .pagination span { display: grid; place-items: center; min-width: 39px; height: 39px; padding: 0 8px; border: 1px solid var(--line); color: var(--navy); font-size: .8rem; font-weight: 800; }
.pagination .current { border-color: var(--navy); color: var(--white); background: var(--navy); }
.pagination a:hover { border-color: var(--cyan); background: var(--cyan-pale); }

@media (max-width: 940px) {
  :root { --container: min(100% - 48px, 1120px); --article: min(100% - 48px, 760px); }
  .menu-toggle { display: block; }
  .site-nav { position: absolute; top: calc(100% + 1px); right: 0; left: 0; display: grid; gap: 0; max-height: 0; overflow: hidden; padding: 0 var(--container); border-bottom: 1px solid transparent; background: var(--white); opacity: 0; pointer-events: none; transform: translateY(-8px); transition: max-height .26s ease,padding .26s ease,opacity .18s ease,transform .18s ease; }
  .menu-open .site-nav { max-height: 400px; padding-top: 11px; padding-bottom: 18px; border-bottom-color: var(--line); opacity: 1; pointer-events: auto; transform: translateY(0); }
  .site-nav a { padding: 11px 0; }
  .site-nav__contact { justify-content: center; margin-top: 7px; }
  .menu-open .menu-toggle span:nth-child(2) { transform: translateY(7px) rotate(45deg); }
  .menu-open .menu-toggle span:nth-child(3) { opacity: 0; }
  .menu-open .menu-toggle span:nth-child(4) { transform: translateY(-7px) rotate(-45deg); }
  .media-layout, .article-content-layout { grid-template-columns: 1fr; }
  .media-sidebar { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 28px; padding-top: 8px; }
  .sidebar-section--archive { display: none; }
  .article-content-layout .media-sidebar { margin-top: 8px; }
}

@media (max-width: 1024px) {
  .nav { display: none; }
  .nav-toggle { display: inline-flex; }
  .site-header.is-menu-open .nav { position: absolute; top: 100%; right: 0; left: 0; display: grid; gap: 0; padding: 12px var(--page-pad) 20px; border-bottom: 1px solid var(--line); background: rgba(255,255,255,.98); box-shadow: 0 18px 24px -24px rgba(15,26,61,.35); }
  .site-header.is-menu-open .nav a { padding: 13px 2px; border-bottom: 1px solid var(--line); }
  .site-header.is-menu-open .nav a:last-child { border-bottom: 0; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 36px; }
}

@media (max-width: 860px) {
  :root { --header-height: 66px; }
}

@media (max-width: 640px) {
  :root { --container: calc(100% - 40px); --article: calc(100% - 40px); }
  :root { --page-pad: 20px; }
  .header-inner { gap: 12px; padding-inline: 20px; }
  .brand img { height: 34px; }
  .header-actions { gap: 6px; }
  .icon-btn { padding: 5px; }
  .archive { padding: 45px 0 64px; }
  .section-kicker { margin-bottom: 14px; font-size: 10px; }
  .archive__header { display: block; padding-bottom: 22px; }
  .archive__header h1 { font-size: 1.65rem; }
  .archive__count { margin-top: 9px; }
  .category-filter { gap: 7px; padding: 20px 0 15px; margin-bottom: 28px; }
  .category-filter button { padding: 6px 11px; font-size: .7rem; }
  .article-list { gap: 30px; }
  .article-card { grid-template-columns: minmax(0,1fr); gap: 16px; padding-bottom: 30px; }
  .article-card__image { aspect-ratio: 1.62; }
  .article-card__body { min-width: 0; }
  .article-card__meta { gap: 8px; font-size: .75rem; }
  .article-card__category { padding: 3px 8px; font-size: .66rem; }
  .article-card__title { margin-top: 12px; font-size: 1.12rem; line-height: 1.5; }
  .article-card__excerpt { margin-top: 12px; font-size: .85rem; line-height: 1.7; }
  .media-sidebar { grid-template-columns: 1fr; gap: 32px; padding-top: 8px; }
  .sidebar-section__title { margin-bottom: 14px; }
  .sidebar-post { grid-template-columns: 76px minmax(0,1fr); gap: 11px; }
  .sidebar-section--archive { display: block; }
  .article-page { padding-bottom: 70px; }
  .article-header { padding: 35px 0 28px; }
  .article-header h1 { font-size: 1.72rem; }
  .article-hero-image { width: 100%; margin-bottom: 40px; aspect-ratio: 1.35; }
  .article-campaign-banner--top { margin-bottom: 40px; }
  .article-campaign-banner--bottom { margin-top: 40px; }
  .table-of-contents { margin-bottom: 40px; }
  .table-of-contents__title { gap: 9px; padding-bottom: 10px; font-size: .93rem; }
  .table-of-contents__title::before { width: 21px; }
  .table-of-contents li { grid-template-columns: 32px minmax(0,1fr); padding: 10px 0; font-size: .8rem; }
  .table-of-contents__number { font-size: .66rem; }
  .table-of-contents li[data-level="3"] { grid-template-columns: 50px minmax(0,1fr); padding-left: 10px; font-size: .76rem; }
  .article-body { font-size: .93rem; line-height: 1.98; }
  .article-body h2 { padding: 14px 0 14px 17px; margin-top: 52px; font-size: 1.26rem; }
  .article-body h2::before { top: 14px; bottom: 14px; width: 4px; }
  .article-body h3 { margin-top: 38px; font-size: 1.07rem; }
  .related-posts { padding: 69px 0; margin-top: 68px; }
  .related-posts__header { display: block; }
  .related-posts__all { display: inline-block; margin-top: 11px; }
  .related-grid { grid-template-columns: 1fr; gap: 36px; }
  .related-grid .article-card__title { font-size: .95rem; }
  .site-footer { padding-block: 48px 28px; }
  .footer-brand img { height: 40px; margin-bottom: 16px; }
  .footer-bottom { align-items: flex-start; gap: 16px; padding-top: 22px; margin-top: 38px; }
  .footer-bottom .legal { gap: 10px 18px; }
  .footer-bottom .copy { font-size: 11px; }
}

@media (max-width: 560px) {
  .footer-top { grid-template-columns: 1fr; }
  .breadcrumbs--article ol { row-gap: 10px; }
  .breadcrumbs--article [aria-current="page"] { flex: 0 0 100%; width: 100%; max-width: 100%; }
}

@media (max-width: 768px) {
  .header-cta { display: none; }
}

@media (prefers-reduced-motion: reduce) { *,*::before,*::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; } }
