@charset "UTF-8";

/*!
Theme Name: MatchSelect Child
Theme URI: https://matchselect.jp/
Description: 条件と相性から大人の出会いを選ぶ、マッチセレクト専用Cocoon子テーマ
Author: MatchSelect
Template: cocoon-master
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: matchselect-child
*/

:root {
  --ms-navy: #17263d;
  --ms-navy-deep: #0e1b2d;
  --ms-wine: #8b4055;
  --ms-wine-dark: #713247;
  --ms-gold: #b99a63;
  --ms-ivory: #f8f5ef;
  --ms-paper: #fffdf9;
  --ms-white: #ffffff;
  --ms-ink: #20242b;
  --ms-muted: #626975;
  --ms-line: #ded8cf;
  --ms-soft-blue: #edf1f5;
  --ms-shadow: 0 18px 50px rgba(23, 38, 61, 0.09);
  --ms-shell: min(1160px, calc(100% - 48px));
  --ms-narrow: min(820px, calc(100% - 48px));
  --ms-radius: 3px;
  --ms-serif: "Yu Mincho", "Hiragino Mincho ProN", "Noto Serif JP", Georgia, serif;
  --ms-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
}

html {
  box-sizing: border-box;
  scroll-behavior: smooth;
}

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

body {
  margin: 0;
  color: var(--ms-ink);
  background: var(--ms-paper);
  font-family: var(--ms-sans);
  font-size: 16px;
  line-height: 1.85;
  letter-spacing: 0.025em;
  -webkit-font-smoothing: antialiased;
}

body.ms-menu-open {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

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

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

::selection {
  color: var(--ms-white);
  background: var(--ms-wine);
}

:focus-visible {
  outline: 3px solid var(--ms-gold);
  outline-offset: 3px;
}

.ms-shell {
  width: var(--ms-shell);
  margin-inline: auto;
}

.ms-shell--narrow {
  width: var(--ms-narrow);
}

.ms-shell--article {
  max-width: 1080px;
}

.ms-skip-link {
  position: fixed;
  z-index: 10000;
  top: 12px;
  left: 12px;
  padding: 10px 16px;
  color: var(--ms-white);
  background: var(--ms-navy);
  transform: translateY(-180%);
}

.ms-skip-link:focus {
  transform: translateY(0);
}

/* Header */
.ms-site-header {
  position: sticky;
  z-index: 1000;
  top: 0;
  border-bottom: 1px solid rgba(23, 38, 61, 0.12);
  background: rgba(255, 253, 249, 0.97);
  backdrop-filter: blur(14px);
}

.admin-bar .ms-site-header {
  top: 32px;
}

.ms-header-inner {
  display: flex;
  width: var(--ms-shell);
  min-height: 78px;
  margin-inline: auto;
  align-items: center;
  justify-content: space-between;
  gap: 36px;
}

.ms-brand {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: baseline;
  gap: 18px;
}

.ms-brand__name {
  color: var(--ms-navy);
  font-family: var(--ms-serif);
  font-size: clamp(1.35rem, 2vw, 1.75rem);
  font-weight: 700;
  letter-spacing: 0.08em;
  white-space: nowrap;
}

.ms-brand__tagline {
  color: var(--ms-muted);
  font-size: 0.69rem;
  letter-spacing: 0.08em;
  white-space: nowrap;
}

.ms-primary-navigation {
  display: flex;
  align-items: center;
  gap: 22px;
}

.ms-nav-list,
.ms-primary-navigation .menu {
  display: flex;
  margin: 0;
  padding: 0;
  align-items: center;
  gap: clamp(18px, 2.2vw, 32px);
  list-style: none;
}

.ms-nav-list a,
.ms-primary-navigation .menu a {
  position: relative;
  display: block;
  padding: 26px 0 24px;
  color: var(--ms-navy);
  font-size: 0.79rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.ms-nav-list a::after,
.ms-primary-navigation .menu a::after {
  position: absolute;
  right: 0;
  bottom: 18px;
  left: 0;
  height: 2px;
  background: var(--ms-wine);
  content: "";
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 180ms ease;
}

.ms-nav-list a:hover::after,
.ms-primary-navigation .menu a:hover::after,
.ms-nav-list .current-menu-item a::after {
  transform: scaleX(1);
  transform-origin: left;
}

.ms-search-link {
  display: grid;
  width: 38px;
  height: 38px;
  border: 1px solid var(--ms-line);
  border-radius: 50%;
  place-items: center;
}

.ms-search-link:hover {
  color: var(--ms-white);
  border-color: var(--ms-wine);
  background: var(--ms-wine);
}

.ms-search-link svg {
  width: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-width: 1.8;
}

.ms-menu-toggle {
  display: none;
  border: 0;
  color: var(--ms-navy);
  background: transparent;
}

.ms-site-main {
  overflow: hidden;
}

/* Shared typography and controls */
.ms-eyebrow {
  margin: 0 0 10px;
  color: var(--ms-wine);
  font-size: 0.7rem;
  font-weight: 800;
  line-height: 1.4;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.ms-section {
  padding: clamp(72px, 8vw, 112px) 0;
}

.ms-section--ivory {
  background: var(--ms-ivory);
}

.ms-section--navy {
  color: var(--ms-white);
  background:
    radial-gradient(circle at 12% 20%, rgba(185, 154, 99, 0.14), transparent 32%),
    var(--ms-navy-deep);
}

.ms-section-heading {
  display: grid;
  margin-bottom: 36px;
  grid-template-columns: minmax(300px, 1fr) minmax(260px, 0.75fr);
  align-items: end;
  gap: 48px;
}

.ms-section-heading h2,
.ms-choice__intro h2,
.ms-editorial-note h2,
.ms-archive-hero h1,
.ms-standard-page h1,
.ms-not-found h1 {
  margin: 0;
  color: var(--ms-navy);
  font-family: var(--ms-serif);
  font-size: clamp(2rem, 4vw, 3.35rem);
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: 0.045em;
}

.ms-section-heading > p,
.ms-section-heading > a {
  margin: 0 0 6px;
}

.ms-section-heading--light h2,
.ms-section-heading--light p {
  color: var(--ms-white);
}

.ms-section-heading--light .ms-eyebrow {
  color: #d8bd8a;
}

.ms-button {
  display: inline-flex;
  min-height: 52px;
  padding: 13px 23px;
  border: 1px solid transparent;
  border-radius: var(--ms-radius);
  align-items: center;
  justify-content: center;
  gap: 24px;
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  transition: transform 160ms ease, background-color 160ms ease, border-color 160ms ease;
}

.ms-button:hover {
  transform: translateY(-2px);
}

.ms-button--wine {
  color: var(--ms-white);
  border-color: var(--ms-wine);
  background: var(--ms-wine);
}

.ms-button--wine:hover {
  border-color: var(--ms-wine-dark);
  background: var(--ms-wine-dark);
}

.ms-button--ghost {
  color: var(--ms-white);
  border-color: rgba(255, 255, 255, 0.58);
  background: rgba(14, 27, 45, 0.22);
}

.ms-button--ghost:hover {
  background: rgba(14, 27, 45, 0.58);
}

.ms-button--light {
  color: var(--ms-navy);
  background: var(--ms-white);
}

.ms-text-link {
  display: inline-flex;
  color: var(--ms-wine);
  align-items: center;
  gap: 18px;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.05em;
}

.ms-text-link b {
  transition: transform 160ms ease;
}

.ms-text-link:hover b {
  transform: translateX(5px);
}

.ms-text-link--large {
  margin-top: 24px;
  font-size: 0.88rem;
}

/* Home hero */
.ms-hero {
  position: relative;
  min-height: min(680px, calc(100vh - 78px));
  color: var(--ms-white);
  background: var(--ms-navy-deep);
}

.ms-hero__image,
.ms-hero__shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.ms-hero__image {
  object-fit: cover;
  object-position: center center;
}

.ms-hero__shade {
  background: linear-gradient(90deg, rgba(10, 22, 38, 0.95) 0%, rgba(10, 22, 38, 0.82) 31%, rgba(10, 22, 38, 0.2) 62%, rgba(10, 22, 38, 0.04) 100%);
}

.ms-hero__inner {
  position: relative;
  z-index: 1;
  display: flex;
  min-height: inherit;
  align-items: center;
}

.ms-hero__copy {
  width: min(630px, 56%);
  padding: 72px 0 78px;
}

.ms-hero__eyebrow {
  margin: 0 0 22px;
  color: #e0c796;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.18em;
}

.ms-hero h1 {
  margin: 0 0 28px;
  font-family: var(--ms-serif);
  font-size: clamp(2.55rem, 5vw, 4.55rem);
  font-weight: 500;
  line-height: 1.34;
  letter-spacing: 0.055em;
  text-wrap: balance;
}

.ms-hero__copy > p:not(.ms-hero__eyebrow) {
  width: min(520px, 100%);
  margin: 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.98rem;
  line-height: 2;
}

.ms-hero__actions {
  display: flex;
  margin-top: 36px;
  flex-wrap: wrap;
  gap: 12px;
}

.ms-trust-strip {
  border-bottom: 1px solid var(--ms-line);
  background: var(--ms-paper);
}

.ms-trust-strip__inner {
  display: flex;
  min-height: 62px;
  align-items: center;
  justify-content: center;
  gap: clamp(30px, 7vw, 90px);
}

.ms-trust-strip p {
  margin: 0;
  color: var(--ms-muted);
  font-size: 0.76rem;
  font-weight: 700;
}

.ms-trust-strip span {
  margin-right: 8px;
  color: var(--ms-wine);
}

/* Pillars */
.ms-pillar-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.ms-pillar-card {
  overflow: hidden;
  border: 1px solid var(--ms-line);
  border-radius: var(--ms-radius);
  background: var(--ms-white);
  box-shadow: 0 8px 25px rgba(23, 38, 61, 0.04);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.ms-pillar-card:hover {
  box-shadow: var(--ms-shadow);
  transform: translateY(-5px);
}

.ms-pillar-card > img {
  width: 100%;
  aspect-ratio: 4 / 2.55;
  object-fit: cover;
}

.ms-pillar-card__body {
  display: flex;
  padding: 24px 25px 25px;
  flex-direction: column;
}

.ms-pillar-card strong {
  display: block;
  margin: 0 0 9px;
  color: var(--ms-navy);
  font-family: var(--ms-serif);
  font-size: 1.34rem;
  line-height: 1.45;
}

.ms-pillar-card small {
  display: block;
  min-height: 5.8em;
  color: var(--ms-muted);
  font-size: 0.82rem;
  line-height: 1.75;
}

.ms-pillar-card .ms-text-link {
  margin-top: 18px;
}

/* Two-axis guide */
.ms-choice {
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.94), rgba(255, 255, 255, 0.97)),
    repeating-linear-gradient(90deg, transparent 0, transparent 59px, rgba(23, 38, 61, 0.035) 60px);
}

.ms-choice__layout {
  display: grid;
  grid-template-columns: minmax(300px, 0.88fr) minmax(480px, 1.12fr);
  align-items: center;
  gap: clamp(60px, 8vw, 120px);
}

.ms-choice__intro > p:not(.ms-eyebrow) {
  margin: 26px 0 0;
  color: var(--ms-muted);
}

.ms-choice__cards {
  border-top: 1px solid var(--ms-line);
}

.ms-choice-card {
  display: grid;
  padding: 27px 6px;
  border-bottom: 1px solid var(--ms-line);
  grid-template-columns: 58px 1fr;
  gap: 20px;
}

.ms-choice-card__number {
  color: var(--ms-gold);
  font-family: var(--ms-serif);
  font-size: 1.7rem;
  line-height: 1.25;
}

.ms-choice-card h3 {
  margin: 0 0 6px;
  color: var(--ms-navy);
  font-family: var(--ms-serif);
  font-size: 1.25rem;
}

.ms-choice-card p {
  margin: 0;
  color: var(--ms-muted);
  font-size: 0.85rem;
  line-height: 1.75;
}

/* Service guide */
.ms-compare-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.ms-compare-card {
  min-height: 270px;
  padding: 32px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.055);
}

.ms-compare-card__label {
  margin: 0 0 34px;
  color: #d8bd8a;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.ms-compare-card h3 {
  margin: 0 0 16px;
  font-family: var(--ms-serif);
  font-size: 1.4rem;
  font-weight: 600;
}

.ms-compare-card p:last-child {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.83rem;
}

.ms-section-action {
  margin: 34px 0 0;
  text-align: center;
}

/* Post cards */
.ms-post-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.ms-post-card {
  overflow: hidden;
  border: 1px solid var(--ms-line);
  background: var(--ms-white);
}

.ms-post-card__image,
.ms-post-card__image img,
.ms-post-card__placeholder {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 1.8;
  object-fit: cover;
}

.ms-post-card__placeholder {
  background:
    linear-gradient(135deg, rgba(139, 64, 85, 0.12), rgba(23, 38, 61, 0.05)),
    var(--ms-soft-blue);
}

.ms-post-card__body {
  padding: 24px;
}

.ms-post-card h3 {
  margin: 0 0 10px;
  color: var(--ms-navy);
  font-family: var(--ms-serif);
  font-size: 1.17rem;
  line-height: 1.55;
}

.ms-post-card h3 a:hover {
  color: var(--ms-wine);
}

.ms-post-card__body > p:not(.ms-eyebrow) {
  display: -webkit-box;
  overflow: hidden;
  margin: 0;
  color: var(--ms-muted);
  font-size: 0.78rem;
  line-height: 1.7;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.ms-post-card__meta {
  display: flex;
  margin-top: 20px;
  padding-top: 15px;
  border-top: 1px solid var(--ms-line);
  color: var(--ms-muted);
  align-items: center;
  justify-content: space-between;
  font-size: 0.69rem;
}

.ms-post-card__meta span {
  color: var(--ms-wine);
  font-size: 1rem;
}

.ms-empty-state {
  padding: 46px;
  border: 1px solid var(--ms-line);
  background: var(--ms-white);
  text-align: center;
}

.ms-empty-state h2,
.ms-empty-state h3 {
  margin: 0 0 10px;
  color: var(--ms-navy);
  font-family: var(--ms-serif);
  font-size: 1.4rem;
}

.ms-empty-state p:last-child {
  margin: 0;
  color: var(--ms-muted);
}

/* Editorial note */
.ms-editorial-note {
  padding: clamp(70px, 8vw, 108px) 0;
  border-top: 1px solid var(--ms-line);
  background: var(--ms-paper);
}

.ms-editorial-note__inner {
  display: grid;
  grid-template-columns: 1fr 0.85fr;
  align-items: start;
  gap: clamp(60px, 9vw, 130px);
}

.ms-editorial-note__inner > div:last-child {
  padding-top: 18px;
}

.ms-editorial-note__inner > div:last-child > p {
  margin: 0 0 22px;
  color: var(--ms-muted);
}

/* Article */
.ms-article,
.ms-standard-page {
  padding: 34px 0 100px;
  background: var(--ms-paper);
}

.ms-breadcrumb {
  display: flex;
  overflow: hidden;
  margin: 0 0 22px;
  color: var(--ms-muted);
  align-items: center;
  gap: 10px;
  font-size: 0.7rem;
  white-space: nowrap;
}

.ms-breadcrumb a:hover {
  color: var(--ms-wine);
}

.ms-breadcrumb span:last-child {
  overflow: hidden;
  text-overflow: ellipsis;
}

.ms-ad-disclosure {
  display: flex;
  margin: 0 0 44px;
  padding: 11px 14px;
  border: 1px solid #e5d6da;
  background: #fbf6f7;
  align-items: center;
  gap: 12px;
}

.ms-ad-disclosure > span {
  padding: 3px 7px;
  color: var(--ms-white);
  background: var(--ms-wine);
  font-size: 0.61rem;
  font-weight: 800;
  letter-spacing: 0.1em;
}

.ms-ad-disclosure p {
  margin: 0;
  color: #66565c;
  font-size: 0.72rem;
  line-height: 1.6;
}

.ms-article-header {
  max-width: 920px;
}

.ms-article-header h1 {
  margin: 0;
  color: var(--ms-navy);
  font-family: var(--ms-serif);
  font-size: clamp(2.25rem, 5vw, 4rem);
  font-weight: 600;
  line-height: 1.34;
  letter-spacing: 0.035em;
  text-wrap: balance;
}

.ms-article-header__lead {
  max-width: 820px;
  margin: 22px 0 0;
  color: #535b66;
  font-size: 1.02rem;
  line-height: 1.9;
}

.ms-article-meta {
  display: flex;
  margin-top: 32px;
  padding: 22px 0;
  border-top: 1px solid var(--ms-line);
  border-bottom: 1px solid var(--ms-line);
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.ms-editor-badge {
  display: flex;
  align-items: center;
  gap: 12px;
}

.ms-editor-badge__mark {
  display: grid;
  width: 42px;
  height: 42px;
  color: var(--ms-white);
  border-radius: 50%;
  background: var(--ms-navy);
  font-family: var(--ms-serif);
  place-items: center;
}

.ms-editor-badge strong,
.ms-editor-badge small {
  display: block;
}

.ms-editor-badge strong {
  color: var(--ms-navy);
  font-size: 0.8rem;
}

.ms-editor-badge small {
  color: var(--ms-muted);
  font-size: 0.67rem;
}

.ms-article-dates {
  display: flex;
  color: var(--ms-muted);
  gap: 18px;
  font-size: 0.69rem;
}

.ms-article-hero {
  margin: 40px 0 54px;
}

.ms-article-hero img {
  width: 100%;
  max-height: 610px;
  object-fit: cover;
}

.ms-article-hero figcaption {
  margin-top: 8px;
  color: var(--ms-muted);
  font-size: 0.67rem;
}

.ms-article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 235px;
  align-items: start;
  gap: clamp(48px, 7vw, 86px);
}

.ms-prose {
  min-width: 0;
  color: #30353d;
  font-size: 1rem;
  line-height: 2.05;
}

.ms-prose > *:first-child {
  margin-top: 0;
}

.ms-prose p {
  margin: 0 0 1.75em;
}

.ms-prose h2 {
  margin: 3.2em 0 1.15em;
  padding: 0 0 0.65em 18px;
  border-bottom: 1px solid var(--ms-line);
  border-left: 4px solid var(--ms-wine);
  color: var(--ms-navy);
  font-family: var(--ms-serif);
  font-size: clamp(1.55rem, 3vw, 2rem);
  font-weight: 600;
  line-height: 1.5;
}

.ms-prose h3 {
  margin: 2.5em 0 0.9em;
  color: var(--ms-navy);
  font-family: var(--ms-serif);
  font-size: 1.35rem;
  line-height: 1.55;
}

.ms-prose h4 {
  margin: 2em 0 0.7em;
  color: var(--ms-navy);
  font-size: 1.05rem;
}

.ms-prose a {
  color: var(--ms-wine);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.ms-prose ul,
.ms-prose ol {
  margin: 1.6em 0 2em;
  padding-left: 1.5em;
}

.ms-prose li {
  margin-bottom: 0.55em;
}

.ms-prose blockquote {
  margin: 2em 0;
  padding: 26px 30px;
  border: 0;
  border-left: 4px solid var(--ms-gold);
  background: var(--ms-ivory);
}

.ms-prose blockquote p:last-child {
  margin-bottom: 0;
}

.ms-prose table {
  width: 100%;
  margin: 2em 0;
  border-spacing: 0;
  border-collapse: collapse;
  font-size: 0.82rem;
  line-height: 1.6;
}

.ms-prose th,
.ms-prose td {
  padding: 14px 15px;
  border: 1px solid #cfd4d8;
  vertical-align: top;
}

.ms-prose th {
  color: var(--ms-white);
  background: var(--ms-navy);
  font-weight: 700;
}

.ms-prose tr:nth-child(even) td {
  background: #f6f7f8;
}

.ms-prose .wp-block-button__link {
  padding: 13px 23px;
  color: var(--ms-white);
  border-radius: var(--ms-radius);
  background: var(--ms-wine);
  text-decoration: none;
}

.ms-prose .wp-block-image {
  margin: 2.2em 0;
}

.ms-prose .wp-block-image figcaption {
  color: var(--ms-muted);
  font-size: 0.69rem;
  text-align: left;
}

.ms-article-aside {
  position: sticky;
  top: 112px;
}

.admin-bar .ms-article-aside {
  top: 144px;
}

.ms-aside-box {
  padding: 24px;
  border-top: 3px solid var(--ms-navy);
  background: var(--ms-ivory);
}

.ms-aside-box h2 {
  margin: 0 0 14px;
  color: var(--ms-navy);
  font-family: var(--ms-serif);
  font-size: 1.05rem;
}

.ms-aside-box ul {
  margin: 0;
  padding: 0;
  color: var(--ms-muted);
  list-style: none;
}

.ms-aside-box li {
  position: relative;
  padding: 9px 0 9px 19px;
  border-top: 1px solid var(--ms-line);
  font-size: 0.72rem;
  line-height: 1.55;
}

.ms-aside-box li::before {
  position: absolute;
  top: 12px;
  left: 0;
  color: var(--ms-wine);
  content: "✓";
}

.ms-aside-policy {
  display: block;
  margin-top: 12px;
  padding: 20px 22px;
  color: var(--ms-white);
  background: var(--ms-wine);
}

.ms-aside-policy strong,
.ms-aside-policy span {
  display: block;
}

.ms-aside-policy strong {
  margin-bottom: 4px;
  font-family: var(--ms-serif);
}

.ms-aside-policy span {
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.66rem;
}

.ms-article-footer {
  width: calc(100% - 321px);
  margin-top: 66px;
}

.ms-article-cta {
  padding: clamp(30px, 5vw, 52px);
  color: var(--ms-white);
  background: var(--ms-navy);
  text-align: center;
}

.ms-article-cta .ms-eyebrow {
  color: #d8bd8a;
}

.ms-article-cta h2 {
  margin: 0 0 13px;
  font-family: var(--ms-serif);
  font-size: clamp(1.4rem, 3vw, 2rem);
}

.ms-article-cta > p:not(.ms-eyebrow) {
  max-width: 620px;
  margin: 0 auto 24px;
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.82rem;
}

.ms-related {
  border-top: 1px solid var(--ms-line);
}

/* Archive and pages */
.ms-archive-hero {
  padding: 80px 0 68px;
  border-bottom: 1px solid var(--ms-line);
  background: var(--ms-paper);
}

.ms-archive-hero > .ms-shell > p:last-child,
.ms-archive-description {
  max-width: 680px;
  margin: 18px 0 0;
  color: var(--ms-muted);
}

.ms-archive-hero .page-title .page-title-text {
  font: inherit;
}

.ms-standard-page header {
  margin: 38px 0 42px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--ms-line);
}

.ms-not-found {
  min-height: 66vh;
  padding: 120px 0;
  background: var(--ms-ivory);
  text-align: center;
}

.ms-not-found p:not(.ms-eyebrow) {
  max-width: 620px;
  margin: 22px auto 30px;
  color: var(--ms-muted);
}

.ms-pagination {
  margin-top: 44px;
}

.ms-pagination .nav-links {
  display: flex;
  justify-content: center;
  gap: 8px;
}

.ms-pagination .page-numbers {
  display: grid;
  min-width: 42px;
  height: 42px;
  padding: 0 10px;
  border: 1px solid var(--ms-line);
  background: var(--ms-white);
  place-items: center;
}

.ms-pagination .current {
  color: var(--ms-white);
  border-color: var(--ms-navy);
  background: var(--ms-navy);
}

/* Footer */
.ms-site-footer {
  color: rgba(255, 255, 255, 0.76);
  background: var(--ms-navy-deep);
}

.ms-footer-main {
  display: grid;
  width: var(--ms-shell);
  margin-inline: auto;
  padding: 72px 0 60px;
  grid-template-columns: minmax(280px, 0.9fr) minmax(450px, 1.1fr);
  gap: clamp(60px, 10vw, 150px);
}

.ms-brand--footer .ms-brand__name {
  color: var(--ms-white);
}

.ms-footer-brand p {
  max-width: 390px;
  margin: 20px 0 0;
  font-size: 0.78rem;
  line-height: 1.9;
}

.ms-footer-nav {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 42px;
}

.ms-footer-nav h2 {
  margin: 0 0 18px;
  color: var(--ms-white);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
}

.ms-footer-nav ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.ms-footer-nav li {
  margin: 8px 0;
}

.ms-footer-nav a {
  font-size: 0.73rem;
}

.ms-footer-nav a:hover {
  color: var(--ms-white);
}

.ms-footer-bottom {
  display: flex;
  width: var(--ms-shell);
  margin-inline: auto;
  padding: 20px 0 26px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  justify-content: space-between;
  gap: 24px;
}

.ms-footer-bottom p {
  margin: 0;
  font-size: 0.63rem;
}

/* Remove parent-theme chrome that conflicts with this child layout. */
.mobile-menu-buttons,
.mobile-menu-buttons-spacer,
.go-to-top-button,
#go-to-top,
.navi-footer-in > .menu-footer,
.sidebar-scroll,
.footer-in.wrap {
  display: none !important;
}

@media (max-width: 1100px) {
  .ms-brand__tagline {
    display: none;
  }

  .ms-nav-list,
  .ms-primary-navigation .menu {
    gap: 18px;
  }

  .ms-nav-list a,
  .ms-primary-navigation .menu a {
    font-size: 0.72rem;
  }
}

@media (max-width: 960px) {
  .admin-bar .ms-site-header {
    top: 46px;
  }

  .ms-header-inner {
    min-height: 70px;
  }

  .ms-menu-toggle {
    display: inline-flex;
    padding: 10px 0 10px 12px;
    align-items: center;
    gap: 12px;
  }

  .ms-menu-toggle__label {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.08em;
  }

  .ms-menu-toggle__icon {
    display: grid;
    width: 24px;
    gap: 5px;
  }

  .ms-menu-toggle__icon i {
    display: block;
    height: 1px;
    background: currentColor;
    transition: transform 180ms ease, opacity 180ms ease;
  }

  .ms-menu-toggle[aria-expanded="true"] .ms-menu-toggle__icon i:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
  }

  .ms-menu-toggle[aria-expanded="true"] .ms-menu-toggle__icon i:nth-child(2) {
    opacity: 0;
  }

  .ms-menu-toggle[aria-expanded="true"] .ms-menu-toggle__icon i:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
  }

  .ms-primary-navigation {
    position: fixed;
    top: 70px;
    right: 0;
    left: 0;
    display: none;
    max-height: calc(100vh - 70px);
    padding: 22px 24px 30px;
    border-top: 1px solid var(--ms-line);
    background: var(--ms-paper);
    box-shadow: 0 25px 45px rgba(23, 38, 61, 0.13);
    overflow-y: auto;
  }

  .admin-bar .ms-primary-navigation {
    top: 116px;
  }

  .ms-primary-navigation[data-open] {
    display: block;
  }

  .ms-nav-list,
  .ms-primary-navigation .menu {
    display: block;
  }

  .ms-nav-list a,
  .ms-primary-navigation .menu a {
    padding: 14px 2px;
    border-bottom: 1px solid var(--ms-line);
    font-size: 0.9rem;
  }

  .ms-nav-list a::after,
  .ms-primary-navigation .menu a::after {
    display: none;
  }

  .ms-search-link {
    margin-top: 20px;
  }

  .ms-hero {
    min-height: 650px;
  }

  .ms-hero__copy {
    width: 64%;
  }

  .ms-section-heading,
  .ms-choice__layout,
  .ms-editorial-note__inner {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .ms-choice__layout {
    gap: 48px;
  }

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

  .ms-article-aside {
    position: static;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  .ms-aside-policy {
    margin-top: 0;
  }

  .ms-article-footer {
    width: 100%;
  }
}

@media (max-width: 760px) {
  :root {
    --ms-shell: min(100% - 34px, 1160px);
    --ms-narrow: min(100% - 34px, 820px);
  }

  body {
    font-size: 15px;
  }

  .ms-brand__name {
    font-size: 1.25rem;
  }

  .ms-hero {
    min-height: 660px;
  }

  .ms-hero__image {
    object-position: 64% center;
  }

  .ms-hero__shade {
    background: linear-gradient(90deg, rgba(10, 22, 38, 0.96) 0%, rgba(10, 22, 38, 0.79) 58%, rgba(10, 22, 38, 0.3) 100%);
  }

  .ms-hero__copy {
    width: 88%;
  }

  .ms-hero h1 {
    font-size: clamp(2.1rem, 10vw, 3.25rem);
  }

  .ms-hero__copy > p:not(.ms-hero__eyebrow) {
    font-size: 0.88rem;
  }

  .ms-trust-strip__inner {
    padding: 14px 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 3px;
  }

  .ms-pillar-grid,
  .ms-compare-grid,
  .ms-post-grid {
    grid-template-columns: 1fr;
  }

  .ms-pillar-card small {
    min-height: 0;
  }

  .ms-compare-card {
    min-height: 0;
  }

  .ms-article,
  .ms-standard-page {
    padding-top: 20px;
  }

  .ms-ad-disclosure {
    margin-bottom: 30px;
  }

  .ms-article-header h1 {
    font-size: clamp(2rem, 9vw, 2.8rem);
  }

  .ms-article-meta {
    align-items: flex-start;
    flex-direction: column;
  }

  .ms-article-hero {
    width: 100vw;
    margin: 30px calc(50% - 50vw) 44px;
  }

  .ms-article-hero figcaption {
    padding-inline: 17px;
  }

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

  .ms-prose {
    font-size: 0.96rem;
    line-height: 1.95;
  }

  .ms-prose h2 {
    margin-top: 2.7em;
    padding-left: 14px;
  }

  .ms-prose table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }

  .ms-footer-main {
    grid-template-columns: 1fr;
    gap: 44px;
  }

  .ms-footer-nav {
    grid-template-columns: 1fr;
  }

  .ms-footer-bottom {
    flex-direction: column;
  }
}

@media (max-width: 480px) {
  .ms-hero__copy {
    width: 100%;
  }

  .ms-hero__actions {
    align-items: stretch;
    flex-direction: column;
  }

  .ms-button {
    width: 100%;
  }

  .ms-section-heading h2,
  .ms-choice__intro h2,
  .ms-editorial-note h2 {
    font-size: 1.85rem;
  }

  .ms-empty-state {
    padding: 32px 22px;
  }

  .ms-choice-card {
    grid-template-columns: 42px 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
