@charset "utf-8";

/* 記事ページ全体の共通スタイル定義。 */

:root {
  --brand-red: #e60012;
  --brand-navy: #0f2742;
  --base-bg: #f3f5f7;
  --line-light: rgba(15, 39, 66, 0.1);
  --card-shadow: 0 18px 45px rgba(15, 39, 66, 0.08);
  --transition: 0.25s ease;
  --articles-content-max: 1120px;
  --articles-content-pad: clamp(18px, 4vw, 48px);
  --articles-section-gap: clamp(40px, 5vw, 72px);
  --article-card-gap: clamp(16px, 3vw, 20px);
}

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

html {
  scroll-behavior: smooth;
}

body.articles-page {
  margin: 0;
  font-family: "Noto Sans JP", "Barlow", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #1a1a1a;
  background: var(--base-bg);
  line-height: 1.7;
}

body.articles-page #wrapper {
  margin-top: 80px;
}

body.articles-page header,
body.articles-page #container,
body.articles-page #wrapper,
body.articles-page #contents {
  min-width: 0;
}

.articles-main {
  display: grid;
  gap: var(--articles-section-gap);
  padding-bottom: clamp(60px, 9vw, 120px);
}

.articles-hero {
  padding: clamp(56px, 12vw, 110px) var(--articles-content-pad) 0;
  background: var(--base-bg);
  color: var(--brand-navy);
}

.articles-hero__inner {
  position: relative;
  z-index: 1;
  max-width: var(--articles-content-max);
  margin: 0 auto;
  display: flex;
  align-items: flex-end;
}

.articles-hero__content {
  display: flex;
  flex-direction: column;
  gap: 18px;
  max-width: 680px;
  align-items: flex-start;
}

.articles-hero__title {
  margin: 0;
  font-size: clamp(28px, 3.4vw, 42px);
  font-weight: 700;
  line-height: 1;
  color: var(--brand-navy);
}

.articles-hero__rule {
  display: block;
  width: clamp(180px, 28vw, 300px);
  height: 10px;
  margin: 20px 0 -8px;
  background: var(--brand-red);
  border: none;
}

.articles-hero__lead {
  margin: 24px 0 0;
  font-size: 16px;
  line-height: 1.9;
  color: rgba(26, 26, 26, 0.72);
}

.articles-main img,
.article-detail img {
  max-width: 100%;
  height: auto;
  display: block;
}

.articles-main a,
.article-detail a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition);
}

.articles-main a:hover,
.article-detail a:hover {
  color: var(--brand-red);
}

.section {
  padding: clamp(40px, 6vw, 68px) var(--articles-content-pad);
}

.articles-section {
  display: grid;
  gap: clamp(24px, 4vw, 36px);
  padding-top: 0;
}

.section__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto 48px;
}

.section__eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  color: var(--brand-red);
  text-transform: uppercase;
  margin-bottom: 16px;
  font-family: "Barlow", sans-serif;
}

.section__title {
  margin: 0;
  font-size: clamp(28px, 3.6vw, 42px);
  font-weight: 600;
  color: var(--brand-navy);
}

.section__summary {
  margin: 18px 0 0;
  font-size: 15px;
  line-height: 1.8;
  color: rgba(26, 26, 26, 0.72);
  max-width: 720px;
}

.article-showcase {
  max-width: var(--articles-content-max);
  width: min(100%, var(--articles-content-max));
  margin: 0 auto;
  display: grid;
  gap: clamp(28px, 5vw, 44px);
}

.article-showcase__grid {
  display: grid;
  gap: clamp(24px, 4vw, 36px);
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  justify-content: center;
}

.articles-pagination {
  margin: clamp(24px, 4vw, 48px) auto 0;
  max-width: var(--articles-content-max);
  width: min(100%, var(--articles-content-max));
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.articles-pagination__summary {
  margin: 0;
  font-size: 14px;
  color: rgba(26, 26, 26, 0.66);
}

.articles-pagination__nav {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
}

.articles-pagination__control {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 90px;
  padding: 10px 20px;
  border-radius: 999px;
  border: 1px solid rgba(15, 39, 66, 0.2);
  background: #fff;
  color: var(--brand-navy);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: background var(--transition), color var(--transition), border-color var(--transition), opacity var(--transition);
}

.articles-pagination__control:not(.is-disabled):hover {
  background: var(--brand-navy);
  border-color: var(--brand-navy);
  color: #fff;
}

.articles-pagination__control.is-disabled {
  color: rgba(26, 26, 26, 0.4);
  border-color: rgba(15, 39, 66, 0.15);
  background: rgba(15, 39, 66, 0.04);
  cursor: not-allowed;
  pointer-events: none;
}

.articles-pagination__list {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.articles-pagination__item {
  display: flex;
}

.articles-pagination__item--ellipsis {
  color: rgba(26, 26, 26, 0.45);
  padding: 0 4px;
}

.articles-pagination__link {
  min-width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid rgba(15, 39, 66, 0.3);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  color: var(--brand-navy);
  background: #fff;
  text-decoration: none;
  transition: background var(--transition), border-color var(--transition), color var(--transition);
}

.articles-pagination__link:hover {
  border-color: var(--brand-navy);
}

.articles-pagination__link.is-current {
  background: var(--brand-navy);
  border-color: var(--brand-navy);
  color: #fff;
  cursor: default;
}

.article-card {
  display: flex;
  flex-direction: column;
  gap: var(--article-card-gap);
  background: #fff;
  border-radius: 22px;
  padding: clamp(24px, 3vw, 32px);
  border: 1px solid rgba(15, 39, 66, 0.06);
  box-shadow: 0 16px 40px rgba(15, 39, 66, 0.12);
  transition: transform var(--transition), box-shadow var(--transition);
  height: 100%;
  position: relative;
}

.article-card > .article-card__link {
  display: flex;
  flex-direction: column;
  gap: var(--article-card-gap);
  color: inherit;
  text-decoration: none;
  flex-grow: 1;
}

.article-card__link--static {
  cursor: default;
}

.article-card > .article-card__link.article-card__link--no-excerpt {
  flex-grow: 0;
}

.article-card__thumb {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  background: rgba(15, 39, 66, 0.06);
  aspect-ratio: 16 / 9;
}

.article-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.article-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 26px 60px rgba(15, 39, 66, 0.22);
}

.article-card__meta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  font-size: 12px;
  color: rgba(26, 26, 26, 0.52);
  letter-spacing: 0.04em;
}

.article-card__meta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  width: 100%;
}

.article-card__meta time {
  color: inherit;
}

.article-card__categories {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin-left: 0;
}

.article-card__categories--grouped {
  flex-direction: row;
  align-items: center;
  gap: 12px;
  margin-left: 0;
  width: auto;
}

.article-card__category-group {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 6px;
}

.article-card__category-group-title {
  font-size: 11px;
  font-weight: 600;
  color: rgba(15, 39, 66, 0.62);
  letter-spacing: 0.04em;
}

.article-card__category-group-title::after {
  content: ':';
  margin-left: 4px;
}

.article-card__category-group-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.article-card__categories:empty {
  display: none;
}

.article-card__tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(230, 0, 18, 0.08);
  color: var(--brand-red);
  font-weight: 600;
  font-size: 12px;
  line-height: 1.2;
}

.article-card__tag--link {
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.article-card__tag--link:hover {
  background: rgba(230, 0, 18, 0.16);
}

.article-card__tag--link:focus-visible {
  outline: 3px solid rgba(230, 0, 18, 0.3);
  outline-offset: 2px;
}

.article-card__tag--active {
  background: rgba(230, 0, 18, 0.24);
  color: #fff;
}

.article-card__title {
  margin: 0;
  font-size: clamp(18px, 2.4vw, 22px);
  color: var(--brand-navy);
  line-height: 1.4;
  min-height: 4.2em;
  max-height: 4.2em;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
}

.article-card__excerpt {
  margin: 0;
  font-size: 14px;
  color: rgba(26, 26, 26, 0.74);
  line-height: 1.7;
  display: grid;
  gap: 10px;
}

.article-card__excerpt p {
  margin: 0;
}

.article-card__excerpt a {
  color: inherit;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-decoration-color: rgba(15, 39, 66, 0.25);
}

.article-card__image-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  color: var(--brand-red);
  text-decoration-color: rgba(230, 0, 18, 0.4);
}

.article-card__image-link::after {
  content: "↗";
  font-size: 11px;
}

.article-card__action-link {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--brand-red);
  letter-spacing: 0.03em;
  text-decoration: none;
  margin-top: auto;
  align-self: flex-start;
  transition: color var(--transition);
}

.article-card__action-link::after {
  content: "→";
  font-size: 14px;
  transform: translateX(0);
  transition: transform var(--transition);
}

.article-card__action-link:hover,
.article-card__action-link:focus-visible {
  color: #ff2d3f;
}

.article-card__action-link:focus-visible {
  outline: 2px solid rgba(230, 0, 18, 0.32);
  outline-offset: 2px;
}

.article-card__action-link:hover::after,
.article-card__action-link:focus-visible::after {
  transform: translateX(2px);
}

.article-card__excerpt img {
  max-width: 100%;
  height: auto;
  border-radius: 14px;
  display: block;
}

.articles-status {
  margin: 0 auto clamp(20px, 3vw, 32px);
  padding: clamp(14px, 2vw, 20px) clamp(18px, 3vw, 28px);
  border-radius: 16px;
  background: rgba(15, 39, 66, 0.06);
  color: rgba(15, 39, 66, 0.82);
  font-size: 13px;
  line-height: 1.5;
  max-width: var(--articles-content-max);
  width: min(100%, var(--articles-content-max));
}

.articles-status[data-status="error"] {
  background: rgba(230, 0, 18, 0.08);
  color: var(--brand-red);
}

.articles-status[data-status="loading"] {
  background: rgba(15, 39, 66, 0.08);
}

.articles-filter {
  max-width: var(--articles-content-max);
  width: min(100%, var(--articles-content-max));
  margin: 0 auto clamp(20px, 4vw, 36px);
  padding: clamp(18px, 3vw, 26px) clamp(20px, 4vw, 32px);
  display: grid;
  gap: clamp(12px, 2vw, 18px);
  border-radius: 20px;
  background: rgba(15, 39, 66, 0.04);
}

.articles-filter__label {
  font-size: 14px;
  font-weight: 600;
  color: rgba(15, 39, 66, 0.82);
  letter-spacing: 0.02em;
}

.articles-filter__controls {
  display: flex;
  align-items: flex-end;
  gap: clamp(10px, 2vw, 16px);
  flex-wrap: wrap;
}

.articles-filter__groups {
  display: grid;
  flex: 1 1 auto;
  width: 100%;
  max-width: 680px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  align-items: start;
  justify-content: start;
  gap: clamp(12px, 3vw, 20px);
}

.articles-filter__group {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.articles-filter__group-label {
  font-size: 12px;
  font-weight: 600;
  color: rgba(15, 39, 66, 0.68);
  letter-spacing: 0.02em;
}

.articles-filter__select {
  width: 100%;
  min-width: 0;
  padding: 11px 38px 11px 16px;
  border-radius: 999px;
  border: 1px solid rgba(15, 39, 66, 0.16);
  background: #fff;
  font-size: 14px;
  color: rgba(15, 39, 66, 0.82);
  cursor: pointer;
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, rgba(15, 39, 66, 0.4) 50%),
    linear-gradient(135deg, rgba(15, 39, 66, 0.4) 50%, transparent 50%);
  background-position: calc(100% - 18px) calc(50% - 1px), calc(100% - 12px) calc(50% - 1px);
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
}

.articles-filter__select:focus-visible {
  outline: 3px solid rgba(230, 0, 18, 0.24);
  outline-offset: 2px;
}

.articles-filter__reset {
  font-size: 13px;
  font-weight: 600;
  color: var(--brand-red);
  text-decoration: none;
  border-bottom: 1px solid rgba(230, 0, 18, 0.4);
  padding-bottom: 2px;
}

.articles-filter__reset:hover,
.articles-filter__reset:focus-visible {
  color: #ff2d3f;
  border-bottom-color: rgba(255, 45, 63, 0.4);
}

.articles-empty {
  margin: 12px auto 0;
  font-size: 14px;
  color: rgba(26, 26, 26, 0.6);
  max-width: var(--articles-content-max);
  width: min(100%, var(--articles-content-max));
}

.article-body {
  display: grid;
  gap: 28px;
  font-size: 15px;
  color: rgba(26, 26, 26, 0.82);
}

.article-body__empty {
  margin: 0;
  font-size: 14px;
  color: rgba(26, 26, 26, 0.6);
}

.article-body h2 {
  font-size: 24px;
  font-weight: 600;
  color: var(--brand-red);
  margin: 32px 0 12px;
}

#articles_detail .article-body h2 {
  margin: 24px 0 12px;
  position: relative;
}

#articles_detail .article-body h2::after {
  content: "";
  display: block;
  width: 60px;
  height: 3px;
  background: rgba(230, 0, 18, 0.5);
  margin-top: 14px;
}

.article-body h3 {
  font-size: 18px;
  font-weight: 600;
  margin: 26px 0 10px;
  color: var(--brand-navy);
}

#articles_detail .article-body h3 {
  margin-top: 20px;
}

.article-body p {
  margin: 0;
}

#articles_detail .article-body p {
  color: rgba(26, 26, 26, 0.76);
}

.article-body a {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-decoration-color: rgba(230, 0, 18, 0.4);
}

.article-body strong {
  font-weight: 700;
  color: var(--brand-navy);
}

.article-body em {
  font-style: normal;
  font-weight: 500;
  color: rgba(230, 0, 18, 0.92);
}

.article-body pre,
.article-body code {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  background: rgba(15, 39, 66, 0.06);
  border-radius: 12px;
  padding: 12px 16px;
  font-size: 13px;
  line-height: 1.6;
}

.article-body pre {
  overflow-x: auto;
  margin: 0;
}

.article-body code {
  padding: 2px 6px;
}

.article-body table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  margin: 12px 0;
}

.article-body table th,
.article-body table td {
  padding: 10px 14px;
  border-bottom: 1px solid rgba(15, 39, 66, 0.12);
  text-align: left;
  vertical-align: top;
}

.article-body table th {
  font-weight: 600;
  color: var(--brand-navy);
  background: rgba(15, 39, 66, 0.04);
}

.article-body table caption {
  caption-side: bottom;
  padding: 8px 4px 0;
  font-size: 12px;
  color: rgba(26, 26, 26, 0.6);
}

.article-body figure {
  margin: 0;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--card-shadow);
}

#articles_detail .article-body figure {
  margin: 12px auto 26px;
  border-radius: 22px;
  box-shadow: 0 20px 50px rgba(15, 39, 66, 0.18);
}

.article-body figcaption {
  padding: 12px 18px;
  font-size: 12px;
  color: rgba(26, 26, 26, 0.6);
  background: rgba(15, 39, 66, 0.04);
}

#articles_detail .article-body figcaption {
  background: rgba(15, 39, 66, 0.08);
  color: rgba(26, 26, 26, 0.7);
}

.article-body ul {
  padding-left: 20px;
  margin: 0;
  display: grid;
  gap: 10px;
  list-style: none;
}

#articles_detail .article-body ul {
  gap: 12px;
}

.article-body li {
  position: relative;
  padding-left: 16px;
}

.article-body li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brand-red);
}

.article-detail {
  padding: 40px 32px 0;
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  gap: 48px;
}

#articles_detail .article-detail {
  padding: 64px 48px 84px;
  gap: 48px;
}

.breadcrumbs {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  letter-spacing: 0.04em;
  color: rgba(26, 26, 26, 0.58);
  flex-wrap: nowrap;
  max-width: 100%;
  overflow-x: auto;
  white-space: nowrap;
  -webkit-overflow-scrolling: touch;
}

#articles_detail .breadcrumbs {
  font-size: 13px;
  gap: 10px;
  color: rgba(26, 26, 26, 0.5);
}

.breadcrumbs::-webkit-scrollbar {
  display: none;
}

.breadcrumbs a {
  text-decoration: underline;
  text-decoration-color: rgba(230, 0, 18, 0.4);
}

.breadcrumbs .current {
  color: var(--brand-navy);
  font-weight: 600;
}

.article-detail__status {
  margin: 16px 0 0;
  padding: 12px 18px;
  border-radius: 16px;
  background: rgba(15, 39, 66, 0.06);
  color: rgba(15, 39, 66, 0.82);
  font-size: 13px;
  line-height: 1.5;
}

.article-detail__status[data-status="error"] {
  background: rgba(230, 0, 18, 0.08);
  color: var(--brand-red);
}

.article-detail__status[data-status="loading"] {
  background: rgba(15, 39, 66, 0.08);
  color: rgba(15, 39, 66, 0.82);
}

#articles_detail .breadcrumbs .current {
  color: var(--brand-red);
}

.article-hero {
  display: grid;
  gap: 28px;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  background: #fff;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--card-shadow);
}

#articles_detail .article-hero {
  gap: 0;
  box-shadow: 0 30px 65px rgba(15, 39, 66, 0.18);
}

.article-hero__image {
  height: 100%;
}

#articles_detail .article-hero__image {
  position: relative;
}

#articles_detail .article-hero__image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(15, 39, 66, 0.1), rgba(230, 0, 18, 0.18));
  opacity: 0;
  transition: opacity var(--transition);
}

#articles_detail .article-hero:hover .article-hero__image::after {
  opacity: 1;
}

.article-hero__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.article-hero__content {
  padding: 42px 40px;
  display: grid;
  gap: 18px;
}

#articles_detail .article-hero__content {
  padding: 44px 48px;
  gap: 20px;
}

.article-hero__tag {
  display: inline-flex;
  width: fit-content;
  padding: 6px 16px;
  border-radius: 999px;
  background: rgba(230, 0, 18, 0.08);
  color: var(--brand-red);
  font-weight: 600;
  font-size: 13px;
  font-family: "Barlow", sans-serif;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.article-hero__tag--link {
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.article-hero__tag--link:hover {
  background: rgba(230, 0, 18, 0.16);
}

.article-hero__tag--link:focus-visible {
  outline: 3px solid rgba(230, 0, 18, 0.3);
  outline-offset: 2px;
}

.article-hero__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.article-hero__tags--grouped {
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
}

.article-hero__tag-group {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 10px;
}

.article-hero__tag-group-label {
  font-size: 12px;
  font-weight: 600;
  color: rgba(15, 39, 66, 0.72);
  letter-spacing: 0.04em;
}

.article-hero__tag-group-label::after {
  content: ':';
  margin-left: 4px;
}

.article-hero__tag-group-items {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

#articles_detail .article-hero__tags {
  gap: 12px;
}

.article-hero__title {
  margin: 0;
  font-size: clamp(30px, 4vw, 40px);
  line-height: 1.25;
  color: var(--brand-navy);
}

#articles_detail .article-hero__title {
  font-size: clamp(30px, 4vw, 38px);
  line-height: 1.18;
}

.article-hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  font-size: 13px;
  color: rgba(26, 26, 26, 0.6);
}

#articles_detail .article-hero__meta {
  background: rgba(15, 39, 66, 0.05);
  padding: 12px 16px;
  border-radius: 12px;
  gap: 10px 18px;
}

.article-hero__meta-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  position: relative;
  padding-left: 0;
}

.article-hero__meta-item--tags {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.article-hero__meta-item--tags::before {
  display: none;
}

.article-hero__meta-item::before {
  content: "";
  display: inline-block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(26, 26, 26, 0.3);
  margin-right: 8px;
}

#articles_detail .article-hero__meta-item {
  padding-left: 0;
}

#articles_detail .article-hero__meta-item::before {
  background: rgba(230, 0, 18, 0.6);
  margin: 0;
  width: 6px;
  height: 6px;
}

.article-hero__meta-item:first-of-type::before {
  display: none;
}

.article-hero__lead {
  margin: 0;
  font-size: 15px;
  color: rgba(26, 26, 26, 0.75);
}

#articles_detail .article-hero__lead {
  font-size: 15px;
  color: rgba(26, 26, 26, 0.7);
}

.article-detail__layout {
  display: block;
  margin-bottom: 48px;
}

#articles_detail .article-detail__layout {
  margin-bottom: 64px;
}

#articles_detail .article-body {
  max-width: 760px;
  margin: 0 auto;
  gap: 32px;
}

@media (max-width: 1024px) {
  body.articles-page #wrapper {
    margin-top: 60px;
  }

  .articles-main {
    gap: clamp(32px, 6vw, 48px);
    padding-bottom: clamp(52px, 10vw, 96px);
  }

  .articles-hero {
    padding: clamp(44px, 10vw, 74px) var(--articles-content-pad) 0;
  }

  .articles-hero__content {
    max-width: 600px;
    gap: clamp(18px, 3vw, 24px);
  }

  .section {
    padding: clamp(32px, 6vw, 52px) var(--articles-content-pad);
  }

  #articles_detail .article-detail {
    padding: 56px 36px 76px;
    gap: 42px;
  }

  #articles_detail .article-hero__content {
    padding: 40px 36px;
  }

  #articles_detail .article-body {
    max-width: 720px;
  }

}

@media (max-width: 768px) {
  body.articles-page #wrapper {
    margin-top: 48px;
  }

  .articles-main {
    gap: clamp(28px, 8vw, 38px);
    padding-bottom: clamp(40px, 12vw, 72px);
  }

  .articles-hero {
    padding: clamp(32px, 12vw, 52px) var(--articles-content-pad) 0;
  }

  .articles-hero__content {
    max-width: 100%;
    gap: clamp(18px, 5vw, 26px);
  }

  .articles-hero__title {
    font-size: clamp(28px, 7vw, 36px);
  }

  .section {
    padding: clamp(28px, 8vw, 40px) var(--articles-content-pad);
  }

  .section__header {
    margin: 0 auto 32px;
  }

  .section__summary {
    margin-top: 12px;
  }

  .articles-filter {
    margin: 0 auto clamp(18px, 6vw, 28px);
    padding: clamp(16px, 4vw, 22px) clamp(18px, 6vw, 26px);
  }

  .article-showcase__grid {
    gap: clamp(20px, 6vw, 28px);
  }

  .articles-status {
    margin: 0 auto clamp(18px, 5vw, 28px);
  }

  .articles-pagination {
    align-items: stretch;
  }

  .articles-pagination__nav {
    justify-content: space-between;
    gap: 12px;
  }

  .articles-pagination__control {
    flex: 1 1 auto;
    min-width: auto;
    text-align: center;
  }

  .articles-pagination__list {
    flex: 1 1 100%;
    justify-content: center;
    flex-wrap: wrap;
    gap: 6px;
  }

  .article-card {
    padding: clamp(22px, 6vw, 28px);
  }

  .article-detail {
    padding: 32px 20px 0;
  }

  .article-hero {
    grid-template-columns: 1fr;
  }

  .article-hero__content {
    padding: 32px 24px;
  }

  #articles_detail .article-detail {
    padding: 36px 20px 72px;
    gap: 40px;
  }

  #articles_detail .article-body {
    max-width: 100%;
  }

#articles_detail .article-hero__content {
  padding: 32px 24px 36px;
}

#articles_detail .article-body {
  margin-top: 12px;
}
}

@media (max-width: 640px) {
  .section__header {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }

  .section__summary {
    max-width: none;
  }

  .article-card__title {
    min-height: 0;
    max-height: none;
  }

  .article-body table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
}

@media (max-width: 560px) {
  body.articles-page #wrapper {
    margin-top: 40px;
  }

  .articles-main {
    gap: clamp(24px, 10vw, 34px);
    padding-bottom: clamp(36px, 14vw, 64px);
  }

  .articles-hero {
    padding: clamp(28px, 12vw, 44px) var(--articles-content-pad) 0;
  }

  .articles-hero__title {
    font-size: clamp(26px, 8vw, 34px);
  }
  .articles-hero__rule {
    width: 160px;
    height: 8px;
    margin: 18px 0 -6px;
  }
  .articles-hero__lead {
    margin-top: 18px;
  }

  .section__eyebrow {
    margin-bottom: 12px;
  }

  .section__summary {
    font-size: 14px;
  }

  .articles-status {
    font-size: 12.5px;
    padding: 12px 16px;
  }

  .articles-filter {
    padding: 14px 16px;
    gap: 10px;
  }

  .articles-filter__controls {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .articles-filter__select {
    width: 100%;
  }

  .articles-filter__reset {
    align-self: flex-start;
  }

  .articles-pagination__nav {
    flex-direction: column;
    align-items: stretch;
  }

  .articles-pagination__control {
    width: 100%;
  }

  .articles-pagination__list {
    justify-content: center;
  }

  #articles_detail .article-detail {
    padding: 36px 18px 60px;
  }

  #articles_detail .breadcrumbs {
    font-size: 12px;
  }

  #articles_detail .article-hero__content {
    padding: 28px 20px 32px;
  }
}

@media (max-width: 520px) {
  .article-showcase__grid > * {
    width: min(100%, 360px);
    margin-left: auto;
    margin-right: auto;
  }

  .articles-pagination__nav {
    width: 100%;
  }

  .articles-filter__groups {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .articles-filter__select {
    width: 100%;
  }

  #articles_detail .article-detail {
    padding: 28px 16px 60px;
    gap: 32px;
  }

  #articles_detail .breadcrumbs {
    font-size: 12px;
    gap: 8px;
  }

  #articles_detail .article-hero {
    border-radius: 18px;
    box-shadow: 0 18px 40px rgba(15, 39, 66, 0.15);
  }

  #articles_detail .article-hero__tag {
    font-size: 12px;
  }
}

@media (max-width: 480px) {
  .section,
  .articles-section {
    padding-left: clamp(12px, 6vw, 18px);
    padding-right: clamp(12px, 6vw, 18px);
  }

  .article-showcase {
    gap: 18px;
  }

  .article-showcase__grid {
    gap: 14px;
  }

  .article-card {
    padding: 15px 14px;
    border-radius: 16px;
    box-shadow: 0 10px 22px rgba(15, 39, 66, 0.12);
    gap: 12px;
    width: min(100%, 330px);
    margin-left: auto;
    margin-right: auto;
  }

  .article-card__thumb {
    border-radius: 12px;
  }

  .article-card__meta {
    font-size: 11px;
    gap: 4px;
  }

  .article-card__meta-row {
    gap: 4px;
  }

  .article-card__tag {
    font-size: 11px;
    padding: 3px 8px;
  }

  .article-card__title {
    font-size: 17px;
  }

  .article-card__excerpt {
    font-size: 13px;
  }

  .article-card__action-link {
    font-size: 12px;
  }

  .articles-filter {
    padding: 14px 14px 16px;
    border-radius: 16px;
  }

  .articles-filter__group-label {
    font-size: 11px;
  }

  #articles_detail .article-detail__status {
    padding: 10px 12px;
    font-size: 12px;
  }

  #articles_detail .article-hero__content {
    padding: 24px 18px 28px;
    gap: 14px;
  }

  #articles_detail .article-hero__title {
    font-size: clamp(24px, 6vw, 32px);
  }

  #articles_detail .article-body {
    padding: 0 4px;
  }

  #articles_detail .article-body figure {
    border-radius: 16px;
  }

  #articles_detail .article-body figcaption {
    padding: 10px 14px;
  }
}

@media (max-width: 420px) {
  .article-card {
    width: min(100%, 310px);
    padding: 14px 12px;
    border-radius: 14px;
  }

  .article-card__title {
    font-size: 16px;
  }

  .articles-hero__title {
    font-size: clamp(24px, 8vw, 32px);
  }

  .articles-filter {
    padding: 12px 12px 14px;
  }

  #articles_detail .article-hero__meta {
    font-size: 12px;
  }

  #articles_detail .article-hero__meta-item {
    gap: 6px;
  }

  #articles_detail .article-body h2 {
    font-size: 22px;
  }
}
