@charset "UTF-8";

/*!
Theme Name: MatchSelect Child
Theme URI: https://matchselect.jp/
Description: 条件と相性から大人の出会いを選ぶ、マッチセレクト専用Cocoon子テーマ
Author: MatchSelect
Template: cocoon-master
Version: 1.4.3
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: #393530;
  --ms-navy-deep: #272421;
  --ms-wine: #a47c58;
  --ms-wine-dark: #866243;
  --ms-gold: #c3a17b;
  --ms-ivory: #f7f4ee;
  --ms-paper: #ffffff;
  --ms-white: #ffffff;
  --ms-ink: #292724;
  --ms-muted: #6f6962;
  --ms-line: #e6dfd5;
  --ms-soft-blue: #f0ede8;
  --ms-shadow: 0 18px 50px rgba(72, 58, 43, 0.1);
  --ms-shell: min(1160px, calc(100% - 48px));
  --ms-narrow: min(820px, calc(100% - 48px));
  --ms-radius: 3px;
  --ms-serif: "Noto Serif JP", "Yu Mincho", "Hiragino Mincho ProN", Georgia, serif;
  --ms-sans: "Noto Sans JP", -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;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--ms-serif);
}

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(31, 28, 25, 0.95) 0%, rgba(31, 28, 25, 0.82) 31%, rgba(31, 28, 25, 0.2) 62%, rgba(31, 28, 25, 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;
}

/* Featured comparisons */
.ms-featured-comparisons {
  border-top: 1px solid var(--ms-line);
  background: var(--ms-paper);
}

.ms-featured-grid {
  display: grid;
  border-top: 1px solid var(--ms-line);
  border-bottom: 1px solid var(--ms-line);
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.ms-featured-card {
  display: flex;
  min-width: 0;
  padding: 32px 28px 34px;
  border-right: 1px solid var(--ms-line);
  flex-direction: column;
}

.ms-featured-card:first-child {
  padding-left: 0;
}

.ms-featured-card:last-child {
  padding-right: 0;
  border-right: 0;
}

.ms-featured-card__meta {
  display: flex;
  margin-bottom: 26px;
  color: var(--ms-muted);
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  font-size: 0.68rem;
}

.ms-featured-card__meta > span {
  color: var(--ms-gold);
  font-family: var(--ms-serif);
  font-size: 1.35rem;
}

.ms-featured-card h3 {
  margin: 0 0 14px;
  color: var(--ms-navy);
  font-family: var(--ms-serif);
  font-size: 1.25rem;
  line-height: 1.58;
}

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

.ms-featured-card > p {
  margin: 0 0 24px;
  color: var(--ms-muted);
  font-size: 0.82rem;
  line-height: 1.8;
}

.ms-featured-card .ms-text-link {
  margin-top: auto;
}

.ms-featured-comparisons__all {
  margin: 30px 0 0;
  text-align: right;
}

/* 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-prose .ms-article-image {
  margin: 1.15em 0 2.35em;
}

.ms-prose .ms-article-image img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 4px;
  box-shadow: 0 12px 34px rgba(23, 38, 61, 0.1);
}

.ms-prose .ms-article-image figcaption {
  margin-top: 9px;
  color: var(--ms-muted);
  font-size: 0.69rem;
  line-height: 1.65;
}

.ms-prose .ms-summary-box,
.ms-prose .ms-toc {
  margin: 2em 0;
  padding: 24px 28px;
  border: 1px solid var(--ms-line);
  border-left: 4px solid var(--ms-wine);
  background: var(--ms-ivory);
}

.ms-prose .ms-summary-box > :first-child,
.ms-prose .ms-toc > :first-child {
  margin-top: 0;
  color: var(--ms-navy);
}

.ms-prose .ms-summary-box > :last-child,
.ms-prose .ms-toc > :last-child {
  margin-bottom: 0;
}

.ms-prose .ms-table-scroll {
  max-width: 100%;
  margin: 2em 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.ms-prose .ms-table-scroll table {
  min-width: 720px;
  margin: 0;
}

.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-site-header .ms-brand__divider,
  .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,
  .ms-featured-grid {
    grid-template-columns: 1fr;
  }

  .ms-featured-grid {
    display: block;
  }

  .ms-featured-card,
  .ms-featured-card:first-child,
  .ms-featured-card:last-child {
    padding: 28px 0 30px;
    border-right: 0;
    border-bottom: 1px solid var(--ms-line);
  }

  .ms-featured-card:last-child {
    border-bottom: 0;
  }

  .ms-featured-comparisons__all {
    margin-top: 24px;
    text-align: left;
  }

  .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;
  }
}

/*
 * Mobile editorial refinement (v1.2)
 * A restrained, magazine-like rhythm for small screens: generous breathing
 * room, crisp rules and image-led hierarchy instead of repeated soft cards.
 */
@media (max-width: 760px) {
  :root {
    --ms-shell: min(100% - 48px, 1160px);
    --ms-narrow: min(100% - 48px, 820px);
    --ms-mobile-rule: rgba(88, 75, 62, 0.16);
  }

  body {
    font-size: 16px;
    line-height: 1.9;
    letter-spacing: 0.015em;
  }

  .ms-site-header {
    box-shadow: none;
  }

  .ms-header-inner {
    min-height: 68px;
    gap: 18px;
  }

  .ms-site-header .ms-brand {
    gap: 11px;
  }

  .ms-site-header .ms-brand__monogram {
    width: 32px;
    height: 32px;
    flex-basis: 32px;
    font-size: 0.88rem;
  }

  .ms-brand__name {
    font-size: 1.16rem;
    letter-spacing: 0.085em;
  }

  .ms-menu-toggle {
    min-width: 82px;
    min-height: 44px;
    padding: 10px 0 10px 10px;
    justify-content: flex-end;
  }

  .ms-menu-toggle__label {
    font-size: 0.66rem;
    font-weight: 600;
  }

  .ms-primary-navigation {
    top: 68px;
    padding: 20px 24px 32px;
    box-shadow: 0 24px 48px rgba(44, 38, 33, 0.1);
  }

  .ms-nav-list a,
  .ms-primary-navigation .menu a {
    min-height: 50px;
    padding: 14px 0;
    font-size: 0.86rem;
    letter-spacing: 0.035em;
  }

  .ms-section {
    padding: 76px 0 82px;
  }

  .ms-section-heading {
    margin-bottom: 40px;
    gap: 18px;
  }

  .ms-section-heading h2,
  .ms-choice__intro h2,
  .ms-editorial-note h2,
  .ms-archive-hero h1,
  .ms-standard-page h1 {
    font-size: clamp(1.72rem, 7.5vw, 2.05rem);
    line-height: 1.48;
    letter-spacing: 0.025em;
  }

  .ms-section-heading > p,
  .ms-choice__intro > p:not(.ms-eyebrow),
  .ms-editorial-note__inner > div:last-child > p {
    color: #6e675f;
    font-size: 0.91rem;
    line-height: 1.95;
  }

  .ms-eyebrow {
    margin-bottom: 11px;
    font-size: 0.64rem;
    letter-spacing: 0.17em;
  }

  /* First view: keep the next strip peeking into view to invite a scroll. */
  .ms-hero {
    min-height: min(680px, calc(100svh - 68px));
  }

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

  .ms-hero__shade {
    background:
      linear-gradient(180deg, rgba(27, 27, 25, 0.18) 0%, rgba(26, 27, 27, 0.3) 34%, rgba(21, 25, 28, 0.91) 100%),
      linear-gradient(90deg, rgba(20, 27, 34, 0.66), transparent 76%);
  }

  .ms-hero__inner {
    align-items: flex-end;
  }

  .ms-hero__copy {
    width: 100%;
    padding: 62px 0 44px;
  }

  .ms-hero__eyebrow {
    margin-bottom: 18px;
    font-size: 0.59rem;
    line-height: 1.6;
    letter-spacing: 0.17em;
  }

  .ms-hero h1 {
    max-width: 12.5em;
    margin-bottom: 22px;
    font-size: clamp(2.05rem, 9vw, 2.45rem);
    line-height: 1.46;
    letter-spacing: 0.045em;
    text-wrap: pretty;
  }

  .ms-hero__copy > p:not(.ms-hero__eyebrow) {
    max-width: 34em;
    color: rgba(255, 255, 255, 0.86);
    font-size: 0.86rem;
    line-height: 1.92;
  }

  .ms-hero__actions {
    margin-top: 28px;
    gap: 0;
  }

  .ms-hero__actions .ms-button {
    width: 100%;
    min-height: 54px;
    border-radius: 2px;
  }

  .ms-hero__actions .ms-button--ghost {
    min-height: 48px;
    margin-top: 8px;
    border: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.46);
    background: transparent;
  }

  .ms-trust-strip__inner {
    display: grid;
    min-height: 92px;
    padding: 18px 0;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: start;
    gap: 12px;
  }

  .ms-trust-strip p {
    display: grid;
    color: #6d665f;
    font-size: 0.64rem;
    font-weight: 600;
    line-height: 1.55;
    gap: 5px;
  }

  .ms-trust-strip span {
    margin: 0;
    font-size: 0.75rem;
  }

  /* Topic entrances: editorial image stories, not floating app cards. */
  .ms-pillar-grid {
    display: block;
  }

  .ms-pillar-card {
    display: block;
    overflow: visible;
    padding: 0 0 42px;
    border: 0;
    border-bottom: 1px solid var(--ms-mobile-rule);
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }

  .ms-pillar-card + .ms-pillar-card {
    margin-top: 42px;
  }

  .ms-pillar-card:last-child {
    padding-bottom: 0;
    border-bottom: 0;
  }

  .ms-pillar-card:hover {
    box-shadow: none;
    transform: none;
  }

  .ms-pillar-card > img {
    aspect-ratio: 4 / 2.7;
    border-radius: 6px;
  }

  .ms-pillar-card__body {
    padding: 22px 2px 0;
  }

  .ms-pillar-card strong {
    margin-bottom: 10px;
    font-size: 1.3rem;
    line-height: 1.5;
  }

  .ms-pillar-card small {
    color: #716a63;
    font-size: 0.84rem;
    line-height: 1.85;
  }

  .ms-pillar-card .ms-text-link {
    width: 100%;
    margin-top: 18px;
    justify-content: space-between;
  }

  /* The methodology section uses open rules and rhythm instead of boxes. */
  .ms-choice {
    border-top: 1px solid var(--ms-mobile-rule);
    background: var(--ms-white);
  }

  .ms-choice__layout {
    gap: 48px;
  }

  .ms-choice__cards {
    border-top-color: var(--ms-mobile-rule);
  }

  .ms-choice-card {
    padding: 26px 0;
    border-bottom-color: var(--ms-mobile-rule);
    grid-template-columns: 38px minmax(0, 1fr);
    gap: 16px;
  }

  .ms-choice-card__number {
    padding-top: 2px;
    font-size: 1rem;
    letter-spacing: 0.06em;
  }

  .ms-choice-card h3 {
    margin-bottom: 8px;
    font-size: 1.08rem;
    line-height: 1.55;
  }

  .ms-choice-card p {
    font-size: 0.84rem;
    line-height: 1.82;
  }

  /* Dark service guide: quiet list with strong contrast, no rounded tiles. */
  .ms-section--navy {
    background:
      linear-gradient(145deg, rgba(195, 161, 123, 0.08), transparent 34%),
      #292622;
  }

  .ms-compare-grid {
    display: block;
    border-top: 1px solid rgba(220, 195, 165, 0.27);
  }

  .ms-compare-card {
    min-height: 0;
    padding: 28px 2px 30px;
    border: 0;
    border-bottom: 1px solid rgba(220, 195, 165, 0.27);
    border-radius: 0;
    background: transparent;
  }

  .ms-compare-card__label {
    margin-bottom: 11px;
    font-size: 0.64rem;
  }

  .ms-compare-card h3 {
    margin-bottom: 10px;
    font-size: 1.27rem;
  }

  .ms-compare-card p:last-child {
    font-size: 0.84rem;
    line-height: 1.85;
  }

  .ms-section-action {
    margin-top: 34px;
  }

  .ms-section-action .ms-button {
    width: 100%;
    border-radius: 2px;
  }

  /* New stories become a compact reading queue to increase scroll momentum. */
  .ms-post-grid {
    display: block;
  }

  .ms-post-card {
    display: grid;
    overflow: visible;
    padding: 0 0 25px;
    border: 0;
    border-bottom: 1px solid var(--ms-mobile-rule);
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    grid-template-columns: 112px minmax(0, 1fr);
    gap: 17px;
  }

  .ms-post-card + .ms-post-card {
    margin-top: 26px;
  }

  .ms-post-card__image,
  .ms-post-card__image img,
  .ms-post-card__placeholder {
    aspect-ratio: 4 / 3;
    border-radius: 5px;
  }

  .ms-post-card__body {
    min-width: 0;
    padding: 0;
  }

  .ms-post-card__body .ms-eyebrow {
    margin-bottom: 7px;
    overflow: hidden;
    font-size: 0.58rem;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .ms-post-card h3 {
    display: -webkit-box;
    overflow: hidden;
    margin-bottom: 8px;
    font-size: 0.98rem;
    line-height: 1.58;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
  }

  .ms-post-card__body > p:not(.ms-eyebrow) {
    display: none;
  }

  .ms-post-card__meta {
    margin-top: 10px;
    padding-top: 8px;
    font-size: 0.61rem;
  }

  .ms-editorial-note {
    padding: 74px 0 82px;
  }

  .ms-editorial-note__inner {
    gap: 28px;
  }

  .ms-editorial-note__inner > div:first-child {
    padding-top: 20px;
    border-top: 2px solid var(--ms-champagne);
  }

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

  /* Article: book-like typography, restrained corners and clear sections. */
  .single-post .ms-article,
  .ms-standard-page {
    padding: 20px 0 88px;
  }

  .single-post .ms-breadcrumb,
  .ms-standard-page .ms-breadcrumb {
    margin-bottom: 24px;
    font-size: 0.62rem;
    gap: 8px;
  }

  .single-post .ms-ad-disclosure {
    margin-bottom: 28px;
    padding: 11px 12px;
    border-color: var(--ms-mobile-rule);
    background: #fbfaf8;
    gap: 10px;
  }

  .single-post .ms-ad-disclosure > span {
    flex: 0 0 auto;
    padding: 3px 6px;
    font-size: 0.58rem;
  }

  .single-post .ms-ad-disclosure p {
    font-size: 0.67rem;
    line-height: 1.65;
  }

  .single-post .ms-article-header > .ms-eyebrow {
    margin-bottom: 16px;
    padding: 4px 10px;
    border-radius: 1px;
    font-size: 0.63rem;
  }

  .single-post .ms-article-header h1 {
    max-width: 100%;
    font-size: clamp(1.65rem, 7.2vw, 1.95rem);
    line-height: 1.5;
    letter-spacing: 0.008em;
    overflow-wrap: anywhere;
    word-break: auto-phrase;
  }

  .single-post .ms-article-header__lead {
    margin-top: 22px;
    color: #625c56;
    font-size: 0.92rem;
    line-height: 2;
  }

  .single-post .ms-article-meta {
    display: grid;
    margin-top: 28px;
    padding: 17px 0;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
  }

  .single-post .ms-editor-badge {
    min-width: 0;
    gap: 10px;
  }

  .single-post .ms-editor-badge__mark {
    width: 36px;
    height: 36px;
    flex: 0 0 36px;
  }

  .single-post .ms-editor-badge strong {
    font-size: 0.72rem;
  }

  .single-post .ms-editor-badge small {
    overflow: hidden;
    max-width: 14em;
    font-size: 0.6rem;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .single-post .ms-article-dates {
    display: grid;
    flex: 0 0 auto;
    gap: 2px;
    font-size: 0.58rem;
    line-height: 1.5;
    text-align: right;
  }

  .single-post .ms-article-hero {
    margin: 34px 0 48px;
  }

  .single-post .ms-article-hero img {
    border-radius: 6px;
    box-shadow: 0 14px 36px rgba(72, 58, 43, 0.07);
  }

  .single-post .ms-prose,
  .ms-standard-page .ms-prose {
    color: #34312e;
    font-size: 1rem;
    line-height: 2.02;
    letter-spacing: 0.015em;
  }

  .single-post .ms-prose p,
  .ms-standard-page .ms-prose p {
    margin-bottom: 1.9em;
  }

  .single-post .ms-prose h2,
  .ms-standard-page .ms-prose h2 {
    margin: 3.35em 0 1.35em;
    padding: 22px 0 0;
    border: 0;
    border-top: 2px solid var(--ms-champagne);
    background: transparent;
    font-size: 1.36rem;
    line-height: 1.62;
    letter-spacing: 0.025em;
  }

  .single-post .ms-prose h3,
  .ms-standard-page .ms-prose h3 {
    margin: 2.7em 0 1.05em;
    padding: 0 0 11px 13px;
    border-bottom-color: var(--ms-mobile-rule);
    font-size: 1.16rem;
    line-height: 1.65;
  }

  .single-post .ms-prose h3::before,
  .ms-standard-page .ms-prose h3::before {
    top: 3px;
    bottom: 13px;
    width: 2px;
  }

  .single-post .ms-prose blockquote,
  .ms-standard-page .ms-prose blockquote {
    margin: 2.2em 0;
    padding: 22px 21px;
    border-left-width: 2px;
  }

  .single-post .ms-prose .ms-summary-box,
  .single-post .ms-prose .ms-toc,
  .ms-standard-page .ms-prose .ms-summary-box,
  .ms-standard-page .ms-prose .ms-toc {
    margin: 2.2em 0;
    padding: 23px 20px;
    border-left-width: 2px;
    background: #faf8f4;
  }

  .single-post .ms-prose .ms-article-image,
  .single-post .ms-prose .wp-block-image {
    margin: 1.55em 0 2.8em;
  }

  .single-post .ms-prose .ms-article-image img,
  .single-post .ms-prose .wp-block-image img {
    border-radius: 6px;
    box-shadow: 0 12px 30px rgba(72, 58, 43, 0.07);
  }

  .single-post .ms-affiliate-cta {
    margin: 2.5em 0;
    padding: 27px 20px;
    border-width: 1px 0;
    border-radius: 0;
    background: #fbf8f2;
    box-shadow: none;
  }

  .single-post .ms-affiliate-cta > a {
    width: 100%;
    min-height: 54px;
    border-radius: 2px;
  }

  .single-post .ms-article-aside {
    margin-top: 58px;
  }

  .single-post .ms-aside-box {
    padding: 24px 20px;
    border-top-width: 2px;
  }

  .single-post .ms-aside-policy {
    margin-top: 10px;
    padding: 21px 20px;
  }

  .single-post .ms-article-footer {
    margin-top: 68px;
  }

  .single-post .ms-article-cta {
    padding: 36px 22px 38px;
  }

  .single-post .ms-article-cta h2 {
    font-size: 1.28rem;
    line-height: 1.6;
  }

  .ms-archive-hero {
    padding: 62px 0 54px;
  }

  .ms-standard-page header {
    margin: 30px 0 38px;
  }

  .ms-footer-main {
    padding: 64px 0 50px;
    gap: 46px;
  }

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

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

  .ms-footer-bottom {
    padding: 22px 0 28px;
    gap: 10px;
  }
}

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

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

  .ms-menu-toggle {
    min-width: 76px;
  }

  .ms-hero h1 {
    font-size: 2rem;
  }

  .ms-post-card {
    grid-template-columns: 102px minmax(0, 1fr);
    gap: 15px;
  }

  .single-post .ms-article-header h1 {
    font-size: 1.62rem;
  }
}

@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;
  }
}

.ms-affiliate-cta {
  margin: 30px 0;
  padding: 26px;
  border: 1px solid #d9c9ad;
  border-radius: 16px;
  background: #fffaf2;
  box-shadow: 0 12px 30px rgba(23, 38, 61, 0.08);
  text-align: center;
}

.ms-affiliate-cta__eyebrow {
  margin: 0 0 8px;
  color: #8a5a2b;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.ms-affiliate-cta strong {
  display: block;
  margin-bottom: 8px;
  color: #17263d;
  font-size: 1.2rem;
}

.ms-affiliate-cta > a {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-width: min(100%, 320px);
  min-height: 52px;
  margin-top: 12px;
  padding: 12px 24px;
  border-radius: 999px;
  background: #b06438;
  color: #fff;
  font-weight: 700;
  line-height: 1.4;
  text-decoration: none;
}

.ms-affiliate-cta > a:hover,
.ms-affiliate-cta > a:focus-visible {
  background: #8f4d2a;
  color: #fff;
}

.ms-affiliate-cta__note {
  margin: 12px 0 0;
  color: #5b6574;
  font-size: 0.82rem;
}

/*
 * Editorial luxury system (v1.1)
 * Inspired by the restraint of premium Japanese editorial media while keeping
 * MatchSelect's own identity, content hierarchy and conversion components.
 */
:root {
  --ms-champagne: #c3a17b;
  --ms-champagne-deep: #9c7952;
  --ms-warm-paper: #f7f4ee;
  --ms-warm-line: #e6dfd5;
  --ms-charcoal: #292724;
}

body {
  color: var(--ms-charcoal);
  background: var(--ms-white);
  letter-spacing: 0.018em;
}

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

.ms-site-header {
  border-bottom-color: rgba(41, 39, 36, 0.1);
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 3px 18px rgba(50, 43, 36, 0.025);
}

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

.ms-brand {
  gap: 18px;
}

.ms-brand__name {
  color: #282725;
  font-family: var(--ms-serif);
  font-size: clamp(1.45rem, 2.05vw, 1.9rem);
  font-weight: 600;
  letter-spacing: 0.14em;
}

.ms-site-header .ms-brand__monogram {
  position: relative;
  display: grid;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  color: var(--ms-champagne-deep);
  border: 1px solid #bca17f;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.2rem;
  line-height: 1;
  place-items: center;
}

.ms-site-header .ms-brand__monogram::after {
  position: absolute;
  inset: 4px;
  border: 1px solid rgba(179, 145, 104, 0.38);
  content: "";
}

.ms-site-header .ms-brand__divider {
  width: 1px;
  height: 34px;
  margin-inline: 3px 0;
  background: #d8c5ad;
}

.ms-brand__tagline {
  color: #706b65;
  font-family: var(--ms-serif);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
}

.ms-nav-list a,
.ms-primary-navigation .menu a {
  padding-block: 31px 29px;
  color: #393633;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.065em;
}

.ms-nav-list a::after,
.ms-primary-navigation .menu a::after {
  bottom: 22px;
  height: 1px;
  background: var(--ms-champagne);
}

.ms-search-link {
  color: #514c47;
  border-color: var(--ms-warm-line);
}

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

.single-post .ms-site-main {
  background: var(--ms-white);
}

.single-post .ms-article {
  padding: 38px 0 112px;
  background: var(--ms-white);
}

.single-post .ms-shell--article {
  max-width: 1180px;
}

.single-post .ms-breadcrumb {
  margin-bottom: 18px;
  color: #8b857e;
  font-size: 0.67rem;
  letter-spacing: 0.025em;
}

.single-post .ms-breadcrumb a:hover,
.single-post .ms-prose a {
  color: var(--ms-champagne-deep);
}

.single-post .ms-ad-disclosure {
  margin-bottom: 34px;
  padding: 10px 14px;
  border-color: var(--ms-warm-line);
  background: #fbfaf8;
}

.single-post .ms-ad-disclosure > span {
  color: var(--ms-white);
  background: var(--ms-champagne);
}

.single-post .ms-ad-disclosure p {
  color: #706a63;
}

.single-post .ms-article-layout {
  grid-template-columns: minmax(0, 780px) minmax(220px, 1fr);
  column-gap: clamp(48px, 6vw, 76px);
  row-gap: 0;
}

.single-post .ms-article-main {
  display: contents;
  min-width: 0;
}

.single-post .ms-article-header {
  grid-column: 1 / -1;
  grid-row: 1;
  max-width: none;
}

.single-post .ms-article-header > .ms-eyebrow {
  display: inline-flex;
  width: fit-content;
  margin-bottom: 18px;
  padding: 4px 13px 5px;
  color: var(--ms-white);
  border-radius: 2px;
  background: var(--ms-champagne);
  font-size: 0.68rem;
  font-weight: 700;
  line-height: 1.55;
  letter-spacing: 0.06em;
}

.single-post .ms-article-header h1 {
  color: #171615;
  font-family: var(--ms-serif);
  font-size: clamp(1.9rem, 2.7vw, 2rem);
  font-weight: 700;
  line-height: 1.48;
  letter-spacing: 0.025em;
  text-wrap: pretty;
  word-break: auto-phrase;
}

.single-post .ms-article-header__lead {
  margin-top: 20px;
  color: #59544f;
  font-size: 0.98rem;
  line-height: 2;
}

.single-post .ms-article-meta {
  max-width: 780px;
  margin-top: 27px;
  padding: 16px 0;
  border-color: var(--ms-warm-line);
}

.single-post .ms-editor-badge__mark {
  width: 38px;
  height: 38px;
  background: linear-gradient(145deg, #d0b18e, #9d7953);
  font-family: var(--ms-sans);
  font-size: 0.86rem;
}

.single-post .ms-editor-badge strong {
  color: #3d3935;
}

.single-post .ms-editor-badge small,
.single-post .ms-article-dates {
  color: #8a837c;
}

.single-post .ms-article-hero {
  grid-column: 1;
  grid-row: 2;
  margin: 38px 0 58px;
}

.single-post .ms-article-hero img {
  max-height: none;
  border-radius: 30px;
  box-shadow: 0 18px 48px rgba(72, 58, 43, 0.08);
}

.single-post .ms-article-hero figcaption {
  margin-top: 10px;
  color: #8b857e;
}

.single-post .ms-prose {
  grid-column: 1;
  grid-row: 3;
  color: #34312e;
  font-family: var(--ms-sans);
  font-size: 1.04rem;
  line-height: 2.12;
  letter-spacing: 0.025em;
}

.single-post .ms-prose p {
  margin-bottom: 1.8em;
}

.single-post .ms-prose h2 {
  margin: 3.45em 0 1.35em;
  padding: 22px 26px 23px;
  border: 0;
  border-left: 4px solid var(--ms-champagne);
  color: #252320;
  background: var(--ms-warm-paper);
  font-family: var(--ms-serif);
  font-size: clamp(1.45rem, 2.4vw, 1.72rem);
  font-weight: 700;
  line-height: 1.62;
  letter-spacing: 0.035em;
}

.single-post .ms-prose h3 {
  position: relative;
  margin: 2.9em 0 1.1em;
  padding: 4px 0 13px 18px;
  border-bottom: 1px solid var(--ms-warm-line);
  color: #2b2926;
  font-family: var(--ms-serif);
  font-size: 1.3rem;
  font-weight: 700;
  line-height: 1.65;
}

.single-post .ms-prose h3::before {
  position: absolute;
  top: 2px;
  bottom: 12px;
  left: 0;
  width: 4px;
  background: linear-gradient(to bottom, #37322d 0 48%, var(--ms-champagne) 48% 100%);
  content: "";
}

.single-post .ms-prose h4 {
  margin-top: 2.3em;
  padding-left: 13px;
  border-left: 3px solid var(--ms-champagne);
  color: #4c4237;
  font-size: 1.08rem;
}

.single-post .ms-prose a {
  text-decoration-color: rgba(156, 121, 82, 0.55);
  text-underline-offset: 4px;
}

.single-post .ms-prose blockquote {
  padding: 28px 30px;
  border-left-color: var(--ms-champagne);
  background: #faf8f4;
}

.single-post .ms-prose th,
.single-post .ms-prose td {
  padding: 15px 16px;
  border-color: #ded7cd;
}

.single-post .ms-prose th {
  color: var(--ms-white);
  background: #45403a;
}

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

.single-post .ms-prose .wp-block-image,
.single-post .ms-prose .ms-article-image {
  margin: 1.35em 0 2.7em;
}

.single-post .ms-prose .ms-article-image img,
.single-post .ms-prose .wp-block-image img {
  border-radius: 18px;
  box-shadow: 0 15px 38px rgba(72, 58, 43, 0.09);
}

.single-post .ms-prose .ms-summary-box,
.single-post .ms-prose .ms-toc {
  padding: 27px 30px;
  border-color: #ded5c9;
  border-left-color: var(--ms-champagne);
  background: #faf8f4;
}

.single-post .ms-prose .ms-summary-box > :first-child,
.single-post .ms-prose .ms-toc > :first-child {
  color: #3c3732;
  font-family: var(--ms-sans);
}

.single-post .ms-article-aside {
  top: 122px;
}

.admin-bar.single-post .ms-article-aside {
  top: 154px;
}

.single-post .ms-article-aside {
  grid-column: 2;
  grid-row: 2 / span 3;
  margin-top: 38px;
}

.single-post .ms-aside-box {
  padding: 24px 22px;
  border-top-color: var(--ms-champagne);
  background: #faf8f4;
}

.single-post .ms-aside-box .ms-eyebrow {
  color: var(--ms-champagne-deep);
  font-size: 0.67rem;
  letter-spacing: 0.2em;
}

.single-post .ms-aside-box h2 {
  color: #2c2926;
  font-family: var(--ms-serif);
  font-size: 1rem;
}

.single-post .ms-aside-box li {
  border-color: var(--ms-warm-line);
}

.single-post .ms-aside-box li::before {
  color: var(--ms-champagne-deep);
}

.single-post .ms-aside-policy {
  color: var(--ms-white);
  background: #3e3934;
}

.single-post .ms-aside-policy strong {
  font-family: var(--ms-sans);
}

.single-post .ms-article-footer {
  grid-column: 1;
  grid-row: 4;
  width: 100%;
  margin-top: 74px;
}

.single-post .ms-article-cta {
  padding: clamp(34px, 5vw, 54px);
  color: var(--ms-white);
  background:
    linear-gradient(135deg, rgba(195, 161, 123, 0.13), transparent 56%),
    #302d29;
}

.single-post .ms-article-cta .ms-eyebrow {
  color: #d9bd9d;
}

.single-post .ms-article-cta h2 {
  font-family: var(--ms-serif);
  font-weight: 700;
  letter-spacing: 0.04em;
}

.single-post .ms-article-cta .ms-button--wine {
  border-color: var(--ms-champagne);
  background: var(--ms-champagne);
}

.single-post .ms-article-cta .ms-button--wine:hover {
  border-color: var(--ms-champagne-deep);
  background: var(--ms-champagne-deep);
}

.single-post .ms-affiliate-cta {
  margin: 34px 0;
  padding: 29px;
  border-color: #d9cbb9;
  border-radius: 18px;
  background: linear-gradient(145deg, #fffdf9, #f8f3eb);
  box-shadow: 0 16px 36px rgba(72, 58, 43, 0.08);
}

.single-post .ms-affiliate-cta__eyebrow {
  color: var(--ms-champagne-deep);
  letter-spacing: 0.1em;
}

.single-post .ms-affiliate-cta strong {
  color: #2b2926;
}

.single-post .ms-affiliate-cta > a {
  min-height: 54px;
  border-radius: 4px;
  background: #393530;
  letter-spacing: 0.035em;
}

.single-post .ms-affiliate-cta > a:hover,
.single-post .ms-affiliate-cta > a:focus-visible {
  background: var(--ms-champagne-deep);
}

.single-post .ms-affiliate-cta__note {
  color: #716b64;
}

.ms-site-footer {
  background: #272421;
}

.ms-brand--footer .ms-brand__name {
  color: #dcc3a5;
}

/* Carry the same restrained editorial language across home, archives and cards. */
.ms-section-heading h2,
.ms-choice__intro h2,
.ms-editorial-note h2,
.ms-archive-hero h1,
.ms-standard-page h1,
.ms-not-found h1 {
  font-family: var(--ms-serif);
  font-size: clamp(1.9rem, 3.5vw, 2.85rem);
  font-weight: 700;
  line-height: 1.42;
  letter-spacing: 0.035em;
}

.ms-pillar-card,
.ms-post-card {
  border-color: var(--ms-warm-line);
  border-radius: 18px;
  box-shadow: 0 12px 34px rgba(72, 58, 43, 0.055);
}

.ms-pillar-card strong,
.ms-choice-card h3,
.ms-compare-card h3,
.ms-post-card h3,
.ms-empty-state h2,
.ms-empty-state h3 {
  font-family: var(--ms-serif);
  font-weight: 700;
  letter-spacing: 0.025em;
}

.ms-choice-card__number {
  font-family: var(--ms-sans);
  font-weight: 600;
}

.ms-compare-card {
  border-color: rgba(220, 195, 165, 0.22);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.045);
}

.ms-compare-card__label,
.ms-section-heading--light .ms-eyebrow,
.ms-hero__eyebrow {
  color: #dcc3a5;
}

.ms-post-card__placeholder {
  background:
    linear-gradient(135deg, rgba(195, 161, 123, 0.16), rgba(57, 53, 48, 0.045)),
    var(--ms-soft-blue);
}

.ms-trust-strip span,
.ms-eyebrow,
.ms-text-link,
.ms-post-card__meta span {
  color: var(--ms-champagne-deep);
}

.ms-editorial-note,
.ms-archive-hero {
  background: var(--ms-white);
}

@media (max-width: 960px) {
  .ms-header-inner {
    min-height: 72px;
  }

  .ms-primary-navigation {
    top: 72px;
    background: var(--ms-white);
  }

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

  .single-post .ms-article-main {
    display: block;
  }

  .single-post .ms-article-aside {
    grid-column: auto;
    grid-row: auto;
    grid-template-columns: 1fr 1fr;
    margin-top: 0;
  }
}

@media (max-width: 760px) {
  .ms-site-header .ms-brand {
    gap: 12px;
  }

  .ms-site-header .ms-brand__monogram {
    width: 36px;
    height: 36px;
    flex-basis: 36px;
    font-size: 1rem;
  }

  .ms-brand__name {
    font-size: 1.22rem;
    letter-spacing: 0.1em;
  }

  .single-post .ms-article {
    padding-top: 22px;
  }

  .single-post .ms-ad-disclosure {
    margin-bottom: 26px;
  }

  .single-post .ms-article-header > .ms-eyebrow {
    margin-bottom: 14px;
  }

  .single-post .ms-article-header h1 {
    font-size: clamp(1.7rem, 7.6vw, 2.05rem);
    line-height: 1.5;
  }

  .single-post .ms-article-header__lead {
    font-size: 0.94rem;
    line-height: 1.95;
  }

  .single-post .ms-article-meta {
    margin-top: 24px;
  }

  .single-post .ms-article-hero {
    width: auto;
    margin: 30px 0 44px;
  }

  .single-post .ms-article-hero img {
    border-radius: 20px;
  }

  .single-post .ms-article-hero figcaption {
    padding-inline: 0;
  }

  .single-post .ms-prose {
    font-size: 1rem;
    line-height: 2.02;
  }

  .single-post .ms-prose h2 {
    margin-top: 2.8em;
    padding: 18px 19px 19px;
    font-size: 1.4rem;
    line-height: 1.58;
  }

  .single-post .ms-prose h3 {
    margin-top: 2.55em;
    padding-left: 15px;
    font-size: 1.2rem;
  }

  .single-post .ms-prose .ms-summary-box,
  .single-post .ms-prose .ms-toc,
  .single-post .ms-affiliate-cta {
    padding: 23px 20px;
  }

  .single-post .ms-prose .ms-article-image img,
  .single-post .ms-prose .wp-block-image img {
    border-radius: 13px;
  }

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

/* Final small-screen cascade: keep the v1.2 editorial treatment authoritative. */
@media (max-width: 960px) {
  .ms-footer-main {
    grid-template-columns: 1fr;
    gap: 46px;
  }

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

@media (max-width: 760px) {
  .ms-site-header .ms-brand__monogram {
    width: 32px;
    height: 32px;
    flex-basis: 32px;
    font-size: 0.88rem;
  }

  .ms-brand__name {
    font-size: 1.16rem;
    letter-spacing: 0.085em;
  }

  .ms-pillar-card,
  .ms-post-card {
    overflow: visible;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }

  .ms-pillar-card {
    padding-bottom: 42px;
    border: 0;
    border-bottom: 1px solid var(--ms-mobile-rule);
  }

  .ms-pillar-card:last-child {
    padding-bottom: 0;
    border-bottom: 0;
  }

  .ms-pillar-card > img {
    border-radius: 6px;
  }

  .ms-compare-card {
    border: 0;
    border-bottom: 1px solid rgba(220, 195, 165, 0.27);
    border-radius: 0;
    background: transparent;
  }

  .ms-post-card {
    border: 0;
    border-bottom: 1px solid var(--ms-mobile-rule);
  }

  .single-post .ms-article-hero {
    margin: 34px 0 48px;
  }

  .single-post .ms-article-hero img,
  .single-post .ms-prose .ms-article-image img,
  .single-post .ms-prose .wp-block-image img {
    border-radius: 6px;
    box-shadow: 0 12px 30px rgba(72, 58, 43, 0.07);
  }

  .single-post .ms-prose h2,
  .ms-standard-page .ms-prose h2 {
    margin: 3.35em 0 1.35em;
    padding: 22px 0 0;
    border: 0;
    border-top: 2px solid var(--ms-champagne);
    background: transparent;
    font-size: 1.36rem;
    line-height: 1.62;
  }

  .single-post .ms-prose h3,
  .ms-standard-page .ms-prose h3 {
    margin: 2.7em 0 1.05em;
    padding: 0 0 11px 13px;
    font-size: 1.16rem;
    line-height: 1.65;
  }

  .single-post .ms-prose .ms-summary-box,
  .single-post .ms-prose .ms-toc,
  .ms-standard-page .ms-prose .ms-summary-box,
  .ms-standard-page .ms-prose .ms-toc {
    padding: 23px 20px;
    border-left-width: 2px;
    background: #faf8f4;
  }

  .single-post .ms-affiliate-cta {
    padding: 27px 20px;
    border-width: 1px 0;
    border-radius: 0;
    background: #fbf8f2;
    box-shadow: none;
  }

  .single-post .ms-affiliate-cta > a {
    width: 100%;
    border-radius: 2px;
  }
}

@media (max-width: 380px) {
  .ms-brand__name {
    font-size: 1.08rem;
  }

  .single-post .ms-article-header h1 {
    font-size: 1.62rem;
  }
}
