:root {
  --ink: #17140f;
  --muted: #6c6258;
  --paper: #fff8e6;
  --cream: #fffdf6;
  --line: rgba(23, 20, 15, 0.14);
  --sun: #ffd928;
  --fire: #ef3b32;
  --blue: #2458d3;
  --green: #15915a;
  --shadow: 0 14px 36px rgba(23, 20, 15, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Yu Gothic", sans-serif;
  overflow-x: hidden;
}

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

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

h1,
h2,
h3,
p,
dl {
  margin-top: 0;
}

h1,
h2,
h3,
p,
dd,
strong {
  overflow-wrap: anywhere;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 12px 32px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 248, 230, 0.94);
  backdrop-filter: blur(14px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: max-content;
}

.brand img {
  width: 46px;
  height: 46px;
  border: 2px solid var(--ink);
  border-radius: 50%;
  background: var(--sun);
  object-fit: contain;
}

.brand picture {
  display: block;
  flex: 0 0 46px;
  width: 46px;
  height: 46px;
}

.brand strong,
.brand small {
  display: block;
  line-height: 1.15;
}

.brand strong {
  font-size: 1rem;
}

.brand small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 700;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 4px;
  font-size: 0.9rem;
  font-weight: 800;
}

.nav-links a {
  padding: 8px 10px;
  border-radius: 999px;
}

.nav-links a:hover {
  background: rgba(255, 217, 40, 0.46);
}

.site-nav-container {
  display: contents;
}

.site-nav-container summary {
  display: none;
}

.site-nav-container summary {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border: 2px solid var(--ink);
  border-radius: 8px;
  background: var(--cream);
  box-shadow: 4px 4px 0 rgba(23, 20, 15, 0.14);
  color: var(--ink);
  cursor: pointer;
  list-style: none;
}

.site-nav-container summary::-webkit-details-marker {
  display: none;
}

.menu-icon {
  display: grid;
  gap: 4px;
  width: 20px;
}

.menu-icon span {
  display: block;
  height: 3px;
  border-radius: 999px;
  background: currentColor;
  transition: transform 160ms ease, opacity 160ms ease;
}

.site-nav-container[open] summary {
  background: var(--ink);
  color: white;
}

.site-nav-container[open] .menu-icon span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.site-nav-container[open] .menu-icon span:nth-child(2) {
  opacity: 0;
}

.site-nav-container[open] .menu-icon span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}


.hero,
.dashboard,
.articles-section,
.research-template,
.archive-band,
.broker-band,
.policy-band,
.site-footer {
  padding: 56px 32px;
}

.hero {
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(135deg, rgba(255, 217, 40, 0.55), rgba(255, 255, 255, 0.3)),
    var(--paper);
}

.hero-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) 380px;
  gap: 28px;
  align-items: center;
  max-width: 1120px;
  margin: 0 auto;
}

.hero-copy,
.hero-panel,
.chart-panel,
.report-card,
.post-card,
.broker-card {
  min-width: 0;
}

.eyebrow {
  margin-bottom: 10px;
  color: var(--blue);
  font-size: 0.78rem;
  font-weight: 900;
}

.hero h1 {
  max-width: 700px;
  margin-bottom: 18px;
  font-size: 3.5rem;
  line-height: 1.08;
}

.hero-lead {
  max-width: 680px;
  margin-bottom: 24px;
  color: #3b332b;
  font-size: 1.08rem;
  font-weight: 700;
  line-height: 1.85;
}

.hero-actions,
.filter-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.button,
.tab,
.text-link,
.broker-card {
  border: 2px solid var(--ink);
  border-radius: 8px;
  font: inherit;
  font-weight: 900;
  transition: transform 150ms ease, box-shadow 150ms ease;
}

.button,
.text-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 16px;
}

.button:hover,
.tab:hover,
.text-link:hover,
.broker-card:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 0 rgba(23, 20, 15, 0.12);
}

.primary {
  background: var(--ink);
  color: white;
}

.secondary,
.text-link {
  background: var(--cream);
}

.hero-panel,
.reading-path a,
.stat-card,
.chart-panel,
.report-card,
.post-card,
.template-grid article,
.archive-table,
.broker-card,
.policy-band {
  border: 2px solid var(--ink);
  border-radius: 8px;
  background: var(--cream);
  box-shadow: var(--shadow);
}

.hero-panel {
  position: relative;
  overflow: hidden;
  padding: 20px;
}

.hero-panel::before {
  position: absolute;
  inset: 12px 12px auto auto;
  width: 92px;
  height: 92px;
  border-radius: 50%;
  background: rgba(255, 217, 40, 0.28);
  content: "";
}

.hero-mascot {
  position: relative;
  display: grid;
  min-height: 218px;
  place-items: center;
  margin: -4px 0 14px;
}

.hero-mascot img {
  position: relative;
  z-index: 2;
  width: min(220px, 68%);
  filter: drop-shadow(0 18px 18px rgba(23, 20, 15, 0.22));
  transform-origin: center bottom;
  animation: mascotFlex 2.8s ease-in-out infinite;
}

.hero-mascot picture {
  position: relative;
  z-index: 2;
  width: min(220px, 68%);
}

.hero-mascot picture img {
  width: 100%;
}

.motion-ring {
  position: absolute;
  inset: 50% auto auto 50%;
  z-index: 1;
  width: 170px;
  aspect-ratio: 1;
  border: 2px solid rgba(23, 20, 15, 0.22);
  border-radius: 50%;
  background: rgba(255, 217, 40, 0.22);
  transform: translate(-50%, -50%);
  animation: ringPulse 2.8s ease-in-out infinite;
}

.ring-two {
  width: 220px;
  background: rgba(239, 59, 50, 0.08);
  animation-delay: 0.42s;
}

.mascot-badge {
  position: absolute;
  z-index: 3;
  padding: 7px 10px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: var(--cream);
  font-size: 0.78rem;
  font-weight: 900;
  box-shadow: 0 7px 0 rgba(23, 20, 15, 0.12);
  animation: badgePop 2.8s ease-in-out infinite;
}

.badge-live {
  top: 28px;
  left: 24px;
  background: var(--ink);
  color: white;
}

.badge-profit {
  right: 26px;
  bottom: 34px;
  background: var(--sun);
  animation-delay: 0.28s;
}

.hero-panel-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.hero-panel-head span,
.stat-card span,
.stat-card small,
.post-kicker,
.broker-card span,
.broker-card small {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
}

.hero-panel-head strong {
  display: block;
  margin-top: 4px;
  font-size: 1.2rem;
}

.metric-list {
  display: grid;
  gap: 10px;
  margin-bottom: 14px;
}

.metric-list div,
.report-card dl div {
  display: grid;
  gap: 4px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.metric-list div:last-child,
.report-card dl div:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.metric-list dt,
.report-card dt {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
}

.metric-list dd,
.report-card dd {
  margin: 0;
  font-size: 1.12rem;
  font-weight: 900;
}

.hero-panel p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.7;
}

.positive {
  color: #0b7d4a;
}

.negative {
  color: #c82e27;
}

.stamp-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin: 16px 0 0;
}

.hero-copy .stamp-row {
  margin-bottom: 18px;
}

.article-panel > .stamp-row {
  margin-bottom: 16px;
}

.muki-stamp {
  display: inline-grid;
  grid-template-columns: 42px minmax(0, max-content);
  align-items: center;
  gap: 8px;
  max-width: 100%;
  min-height: 48px;
  padding: 5px 11px 5px 5px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: white;
  box-shadow: 4px 4px 0 rgba(23, 20, 15, 0.16);
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 900;
  line-height: 1.25;
  transform: rotate(-1deg);
}

.muki-stamp picture,
.muki-stamp img {
  display: block;
  width: 42px;
  height: 42px;
}

.muki-stamp img {
  border: 2px solid var(--ink);
  border-radius: 50%;
  background: var(--sun);
  object-fit: contain;
}

.muki-stamp strong,
.muki-stamp span {
  min-width: 0;
}

.muki-stamp--dark {
  background: var(--ink);
  color: white;
}

.muki-stamp--yellow {
  background: #fff4a6;
}

.muki-stamp--blue {
  background: #eef4ff;
}

.muki-stamp--alert {
  background: #fff0ef;
}

.muki-stamp--mini {
  grid-template-columns: 34px minmax(0, max-content);
  min-height: 40px;
  padding: 4px 9px 4px 4px;
  font-size: 0.72rem;
}

.muki-stamp--mini picture,
.muki-stamp--mini img {
  width: 34px;
  height: 34px;
}

.reading-path {
  display: grid;
  grid-template-columns: 1.35fr repeat(2, minmax(0, 1fr));
  gap: 16px;
  max-width: 1120px;
  margin: 0 auto;
  padding: 28px 32px 44px;
}

.reading-path a {
  display: grid;
  align-content: start;
  gap: 10px;
  min-height: 178px;
  padding: 20px;
}

.reading-path span {
  width: max-content;
  padding: 5px 9px;
  border-radius: 999px;
  background: rgba(36, 88, 211, 0.12);
  color: var(--blue);
  font-size: 0.72rem;
  font-weight: 900;
}

.reading-path strong {
  font-size: 1.35rem;
  line-height: 1.25;
}

.reading-path p {
  margin-bottom: 0;
  color: #3c342c;
  font-weight: 700;
  line-height: 1.65;
}

.reading-path small {
  color: var(--muted);
  font-weight: 900;
}

.feature-story {
  background: var(--ink) !important;
  color: white;
}

.feature-story span {
  background: var(--sun);
  color: var(--ink);
}

.feature-story p,
.feature-story small {
  color: rgba(255, 255, 255, 0.78);
}

.section-heading {
  max-width: 760px;
  margin: 0 0 22px;
}

.section-heading.split {
  display: flex;
  max-width: 1120px;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
}

.section-heading h2,
.broker-band h2,
.policy-band h2 {
  margin-bottom: 8px;
  font-size: 2.2rem;
  line-height: 1.18;
}

.section-heading p:not(.eyebrow),
.broker-band p,
.policy-band p {
  margin-bottom: 0;
  color: var(--muted);
  font-weight: 700;
  line-height: 1.75;
}

.dashboard > .section-heading,
.stats-grid,
.performance-grid,
.articles-section > .section-heading,
.filter-tabs,
.article-list,
.research-template > .section-heading,
.template-grid,
.archive-band > .section-heading,
.archive-table,
.broker-band,
.policy-band {
  max-width: 1120px;
  margin-right: auto;
  margin-left: auto;
}

.report-card h3,
.chart-panel h3 {
  margin-bottom: 12px;
  font-size: 1.35rem;
}

.dashboard {
  background: var(--paper);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.stat-card {
  min-height: 132px;
  padding: 16px;
}

.stat-card.highlight {
  background: #fff4a6;
}

.stat-card strong {
  display: block;
  margin: 12px 0 8px;
  font-size: 1.55rem;
  line-height: 1.1;
}

.performance-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 16px;
  margin-top: 16px;
}

.chart-panel,
.report-card {
  padding: 18px;
}

.chart-panel {
  background: #17140f;
  color: white;
}

.chart-panel .eyebrow {
  color: var(--sun);
}

.chart-panel canvas {
  display: block;
  width: 100%;
  height: auto;
  margin-top: 12px;
  border: 2px solid var(--ink);
  border-radius: 8px;
  background: var(--cream);
}

.report-card dl {
  display: grid;
  gap: 12px;
  margin-bottom: 0;
}

.articles-section {
  border-top: 1px solid var(--line);
  background: #fffdf6;
}

.tab {
  cursor: pointer;
  padding: 9px 13px;
  background: white;
}

.tab.active {
  background: var(--fire);
  color: white;
}

.article-list {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.post-card {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
  padding: 16px;
}

.post-card img {
  width: 76px;
  height: 76px;
  border: 2px solid var(--ink);
  border-radius: 50%;
  background: var(--sun);
  object-fit: contain;
}

.post-card h3 {
  margin: 6px 0 8px;
  font-size: 1.28rem;
}

.post-card p {
  margin-bottom: 10px;
  color: #3c342c;
  font-weight: 700;
  line-height: 1.7;
}

.post-card a {
  color: var(--blue);
  font-size: 0.92rem;
  font-weight: 900;
}

.category-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  max-width: 1120px;
  margin: 18px auto 0;
}

.category-strip a {
  display: grid;
  gap: 7px;
  min-height: 96px;
  padding: 16px;
  border: 2px solid var(--ink);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: var(--shadow);
}

.category-strip span,
.tag-row span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
}

.category-strip strong {
  font-size: 1.1rem;
  line-height: 1.25;
}

.research-template {
  border-top: 1px solid var(--line);
  background: #eef4ff;
}

.template-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.template-grid article {
  min-height: 190px;
  padding: 16px;
}

.template-grid span {
  color: var(--blue);
  font-weight: 900;
}

.template-grid h3 {
  margin: 8px 0;
  font-size: 1.2rem;
}

.template-grid p {
  margin-bottom: 0;
  color: var(--muted);
  font-weight: 700;
  line-height: 1.7;
}

.archive-band {
  border-top: 1px solid var(--line);
  background: var(--paper);
}

.archive-table {
  display: grid;
  overflow: hidden;
}

.archive-table div {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1.4fr auto;
  gap: 14px;
  align-items: center;
  padding: 16px;
  border-bottom: 1px solid var(--line);
}

.archive-table div:last-child {
  border-bottom: 0;
}

.archive-table span {
  font-weight: 900;
}

.archive-table em {
  color: var(--muted);
  font-style: normal;
  font-weight: 700;
}

.archive-table a {
  color: var(--blue);
  font-weight: 900;
}

.broker-band {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 18px;
  align-items: center;
  border-top: 1px solid var(--line);
  background: #e9f7ef;
}

.broker-card {
  display: grid;
  gap: 8px;
  min-height: 138px;
  padding: 18px;
  background: #101820;
  color: white;
}

.broker-card span,
.broker-card small {
  color: rgba(255, 255, 255, 0.72);
}

.broker-card strong {
  font-size: 1.35rem;
}

.policy-band {
  margin-top: 0;
  padding: 24px;
}

.article-hero {
  padding: 56px 32px 34px;
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}

.article-hero-inner,
.article-body {
  max-width: 920px;
  margin: 0 auto;
}

.article-hero h1 {
  margin-bottom: 14px;
  font-size: 2.65rem;
  line-height: 1.12;
}

.article-hero p:not(.eyebrow) {
  max-width: 760px;
  margin-bottom: 0;
  color: #3b332b;
  font-weight: 700;
  line-height: 1.85;
}

.article-body {
  display: grid;
  gap: 20px;
  padding: 34px 32px 62px;
}

.collection-body {
  display: grid;
  gap: 14px;
  max-width: 920px;
  margin: 0 auto;
  padding: 34px 32px 62px;
}

.article-panel {
  min-width: 0;
  padding: 22px;
  border: 2px solid var(--ink);
  border-radius: 8px;
  background: var(--cream);
  box-shadow: var(--shadow);
}

.collection-card {
  padding: 22px;
  border: 2px solid var(--ink);
  border-radius: 8px;
  background: var(--cream);
  box-shadow: var(--shadow);
}

.article-panel h2 {
  margin-bottom: 12px;
  font-size: 1.55rem;
}

.article-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.article-meta-row span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 5px 9px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff4a6;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
}

.collection-card h2 {
  margin: 8px 0 10px;
  font-size: 1.48rem;
}

.collection-card h2 a,
.article-panel a {
  color: var(--blue);
}

.article-panel p,
.article-panel li,
.collection-card p {
  color: #3c342c;
  font-weight: 700;
  line-height: 1.8;
}

.article-panel p:last-child,
.collection-card p:last-child {
  margin-bottom: 0;
}

.notice-box {
  padding: 16px;
  border: 2px solid var(--ink);
  border-radius: 8px;
  background: #fff4a6;
}

.profile-grid,
.fact-grid,
.link-grid,
.pros-cons,
.step-list {
  display: grid;
  gap: 12px;
}

.profile-grid,
.pros-cons {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.fact-grid,
.link-grid,
.step-list {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.fact-card,
.link-card,
.step-card,
.faq-item,
.comparison-row,
.profile-card {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}

.profile-card h3,
.fact-card h3,
.link-card h3,
.step-card h3,
.faq-item h3 {
  margin-bottom: 8px;
  font-size: 1.08rem;
}

.profile-card dl,
.fact-card dl {
  display: grid;
  gap: 10px;
  margin-bottom: 0;
}

.profile-card div,
.fact-card div {
  display: grid;
  grid-template-columns: 116px minmax(0, 1fr);
  gap: 10px;
}

.profile-card dt,
.fact-card dt,
.comparison-row span {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 900;
}

.profile-card dd,
.fact-card dd {
  margin: 0;
  font-weight: 800;
}

.comparison-table {
  display: grid;
  gap: 8px;
}

.performance-table-wrap {
  max-width: 100%;
  overflow-x: auto;
}

.performance-summary-table {
  width: 100%;
  border-collapse: collapse;
  background: white;
  table-layout: fixed;
}

.performance-summary-table th,
.performance-summary-table td {
  padding: 12px;
  border: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
  word-break: break-all;
}

.performance-summary-table th {
  background: #fff4a6;
  color: var(--ink);
  font-size: 0.84rem;
  font-weight: 900;
}

.performance-summary-table td {
  color: #3c342c;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.performance-summary-table th:nth-child(1),
.performance-summary-table td:nth-child(1) {
  width: 24%;
}

.performance-summary-table th:nth-child(2),
.performance-summary-table td:nth-child(2) {
  width: 23%;
}

.performance-summary-table th:nth-child(3),
.performance-summary-table td:nth-child(3) {
  width: 20%;
}

.performance-summary-table th:nth-child(4),
.performance-summary-table td:nth-child(4) {
  width: 33%;
}

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

.pagination-nav > a,
.pagination-nav > span {
  min-height: 72px;
}

.pagination-nav a {
  display: grid;
  gap: 4px;
  align-content: center;
  padding: 14px 16px;
  border: 2px solid var(--ink);
  border-radius: 8px;
  background: white;
  box-shadow: var(--shadow);
  color: var(--ink);
  text-decoration: none;
}

.pagination-nav a span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
}

.pagination-nav a strong {
  color: var(--blue);
  font-size: 1.08rem;
}

.comparison-row {
  display: grid;
  grid-template-columns: 1fr 1.2fr 1.2fr;
  gap: 12px;
  align-items: start;
}

.comparison-row strong {
  line-height: 1.35;
}

.link-card {
  display: grid;
  gap: 8px;
  color: var(--ink);
}

.link-card span {
  color: var(--blue);
  font-size: 0.78rem;
  font-weight: 900;
}

.faq-list {
  display: grid;
  gap: 12px;
}

.data-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.data-links a {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 10px 14px;
  border: 2px solid var(--ink);
  border-radius: 8px;
  background: white;
  box-shadow: 4px 4px 0 var(--ink);
  color: var(--ink);
  font-weight: 900;
  text-decoration: none;
}

.logic-code {
  overflow-x: auto;
  margin: 14px 0 0;
  padding: 14px;
  border: 2px solid var(--ink);
  border-radius: 8px;
  background: #17140f;
  color: white;
  font-size: 0.92rem;
  line-height: 1.65;
}

.logic-code code {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

.source-list a {
  color: var(--blue);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.collection-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 14px 0 0;
}

.collection-metrics div {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff4a6;
}

.collection-metrics dt {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
}

.collection-metrics dd {
  margin: 6px 0 0;
  font-weight: 900;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.tag-row span {
  padding: 6px 9px;
  border-radius: 999px;
  background: rgba(36, 88, 211, 0.12);
  color: var(--blue);
}

.article-panel ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 20px;
}

.sitemap-link-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.sitemap-link-list li {
  display: grid;
  gap: 4px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}

.sitemap-link-list a {
  color: var(--blue);
  font-weight: 900;
}

.sitemap-link-list span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.article-kpis {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.article-kpis div {
  padding: 16px;
  border: 2px solid var(--ink);
  border-radius: 8px;
  background: #fff4a6;
}

.article-kpis span,
.article-kpis small {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 900;
}

.article-kpis strong {
  display: block;
  margin: 8px 0;
  font-size: 1.4rem;
}

.breadcrumb {
  display: flex;
  gap: 8px;
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 900;
}

.breadcrumb a {
  color: var(--blue);
}

.site-footer {
  display: grid;
  gap: 8px;
  background: var(--ink);
  color: white;
}

.site-footer p {
  max-width: 860px;
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.7;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 4px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.9rem;
  font-weight: 900;
}

.not-found {
  min-height: 100svh;
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  align-items: center;
  gap: 36px;
  padding: 56px 32px;
  background: var(--paper);
}

.not-found img {
  width: 220px;
}

.not-found h1 {
  max-width: 720px;
  font-size: 3rem;
}

.not-found p:not(.eyebrow) {
  max-width: 620px;
  margin-bottom: 24px;
  font-size: 1.05rem;
  line-height: 1.8;
  font-weight: 700;
}

.is-hidden {
  display: none;
}

@keyframes mascotFlex {
  0%,
  100% {
    transform: translateY(0) rotate(-1deg) scale(1);
  }
  38% {
    transform: translateY(-10px) rotate(1.5deg) scale(1.045);
  }
  62% {
    transform: translateY(-4px) rotate(-0.8deg) scale(0.99);
  }
}

@keyframes ringPulse {
  0%,
  100% {
    opacity: 0.72;
    transform: translate(-50%, -50%) scale(0.92);
  }
  52% {
    opacity: 0.18;
    transform: translate(-50%, -50%) scale(1.12);
  }
}

@keyframes badgePop {
  0%,
  100% {
    transform: translateY(0);
  }
  45% {
    transform: translateY(-6px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-mascot img,
  .motion-ring,
  .mascot-badge {
    animation: none;
  }
}

@media (max-width: 980px) {
  .site-header {
    align-items: center;
    flex-direction: row;
  }

  .site-nav-container {
    display: block;
    position: relative;
    margin-left: auto;
  }

  .site-nav-container summary {
    display: grid;
  }

  .site-nav-container nav {
    display: none;
    position: absolute;
    top: calc(100% + 14px);
    right: 0;
    z-index: 30;
    width: min(82vw, 320px);
    overflow: hidden;
    background: var(--cream);
    box-shadow: 0 18px 36px rgba(23, 20, 15, 0.18);
    border: 2px solid var(--ink);
    border-radius: 8px;
    padding: 0;
    gap: 0;
    grid-template-columns: 1fr;
  }

  .site-nav-container[open] nav {
    display: grid;
  }

  .site-nav-container nav a {
    display: block;
    padding: 15px 16px;
    border-bottom: 1px solid var(--line);
    border-radius: 0;
    min-height: 0;
    font-weight: 900;
    color: var(--ink);
    background: transparent;
  }

  .site-nav-container nav a:last-child {
    border-bottom: 0;
  }

  .site-nav-container nav a:hover {
    background: rgba(255, 217, 40, 0.42);
    color: var(--ink);
  }

  .hero-shell,
  .performance-grid,
  .broker-band,
  .not-found {
    grid-template-columns: 1fr;
  }

  .reading-path,
  .category-strip,
  .stats-grid,
  .template-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero h1 {
    font-size: 2.75rem;
  }
}

@media (max-width: 420px) {
  .site-header {
    gap: 10px;
  }

  .brand {
    min-width: 0;
  }

  .brand img {
    width: 40px;
    height: 40px;
  }

  .brand strong {
    font-size: 0.94rem;
  }

  .brand small {
    display: none;
  }

  .site-nav-container summary {
    width: 42px;
    height: 42px;
  }
}

@media (max-width: 640px) {
  .performance-summary-table,
  .performance-summary-table tbody,
  .performance-summary-table tr,
  .performance-summary-table td {
    display: block;
    width: 100%;
  }

  .performance-summary-table thead {
    display: none;
  }

  .performance-summary-table tr {
    margin-bottom: 10px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: white;
    overflow: hidden;
  }

  .performance-summary-table td {
    display: grid;
    grid-template-columns: 82px minmax(0, 1fr);
    gap: 10px;
    border: 0;
    border-bottom: 1px solid var(--line);
  }

  .performance-summary-table td:last-child {
    border-bottom: 0;
  }

  .performance-summary-table td::before {
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 900;
    content: "";
  }

  .performance-summary-table td:nth-child(1)::before {
    content: "日付";
  }

  .performance-summary-table td:nth-child(2)::before {
    content: "評価額";
  }

  .performance-summary-table td:nth-child(3)::before {
    content: "前日比";
  }

  .performance-summary-table td:nth-child(4)::before {
    content: "保有銘柄";
  }
}

@media (max-width: 980px) {
  .site-header,
  .hero,
  .dashboard,
  .articles-section,
  .research-template,
  .archive-band,
  .broker-band,
  .policy-band,
  .site-footer {
    padding-right: 18px;
    padding-left: 18px;
  }

  .hero h1 {
    font-size: 2rem;
    line-height: 1.15;
  }

  .hero-lead {
    font-size: 1rem;
  }

  .metric-list dd {
    font-size: 1rem;
  }

  .hero-mascot {
    min-height: 208px;
  }

  .hero-mascot img {
    width: 188px;
  }

  .motion-ring {
    width: 152px;
  }

  .ring-two {
    width: 204px;
  }

  .badge-profit {
    right: auto;
    left: calc(50% + 68px);
    bottom: 38px;
  }

  .section-heading h2,
  .broker-band h2,
  .policy-band h2,
  .article-hero h1 {
    font-size: 1.75rem;
  }

  .section-heading.split {
    align-items: flex-start;
    flex-direction: column;
  }

  .reading-path,
  .category-strip,
  .stats-grid,
  .template-grid {
    grid-template-columns: 1fr;
    width: 100%;
    max-width: 100%;
    padding-right: 18px;
    padding-left: 18px;
  }

  .hero-shell,
  .performance-grid,
  .article-list,
  .archive-table,
  .broker-band,
  .policy-band {
    width: 100%;
    max-width: calc(100vw - 36px);
  }

  .hero-copy,
  .hero-panel,
  .reading-path a,
  .stat-card,
  .chart-panel,
  .report-card,
  .post-card,
  .template-grid article,
  .archive-table,
  .broker-card {
    max-width: 100%;
  }

  .hero h1,
  .hero-lead,
  .hero-panel p {
    word-break: break-all;
  }

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

  .post-card img {
    width: 58px;
    height: 58px;
  }

  .profile-grid,
  .fact-grid,
  .link-grid,
  .pros-cons,
  .step-list,
  .comparison-row {
    grid-template-columns: 1fr;
  }

  .profile-card div,
  .fact-card div {
    grid-template-columns: 1fr;
  }

  .stamp-row {
    align-items: flex-start;
  }

  .muki-stamp {
    grid-template-columns: 36px minmax(0, 1fr);
    width: 100%;
    border-radius: 8px;
  }

  .muki-stamp picture,
  .muki-stamp img {
    width: 36px;
    height: 36px;
  }

  .archive-table div {
    grid-template-columns: 1fr;
  }

  .article-hero,
  .article-body,
  .collection-body {
    padding-right: 18px;
    padding-left: 18px;
  }

  .article-kpis,
  .collection-metrics,
  .pagination-nav {
    grid-template-columns: 1fr;
  }
}

/* UI refresh: reader-first blog surface */
:root {
  --ink: #141411;
  --muted: #676b73;
  --paper: #f6f3ea;
  --cream: #fffdf8;
  --surface: #ffffff;
  --surface-warm: #fff8dc;
  --line: rgba(20, 20, 17, 0.12);
  --sun: #f5c84b;
  --fire: #df5142;
  --blue: #1f5eff;
  --green: #13845c;
  --violet: #6957d4;
  --radius: 8px;
  --shadow: 0 18px 48px rgba(20, 20, 17, 0.11);
  --shadow-soft: 0 10px 30px rgba(20, 20, 17, 0.08);
}

body {
  background:
    linear-gradient(180deg, #fffaf0 0, #f7f4ec 360px, #eef3f8 100%);
  color: var(--ink);
  font-feature-settings: "palt";
}

body::selection {
  background: rgba(245, 200, 75, 0.55);
}

a {
  text-underline-offset: 3px;
}

.site-header {
  padding: 10px max(18px, calc((100vw - 1180px) / 2));
  border-bottom: 1px solid rgba(20, 20, 17, 0.1);
  background: rgba(255, 253, 248, 0.9);
  box-shadow: 0 10px 28px rgba(20, 20, 17, 0.06);
}

.brand {
  min-width: 0;
}

.brand img {
  width: 44px;
  height: 44px;
  border: 1px solid var(--ink);
  box-shadow: 0 6px 16px rgba(20, 20, 17, 0.1);
}

.brand picture {
  flex-basis: 44px;
  width: 44px;
  height: 44px;
}

.brand strong {
  letter-spacing: 0;
}

.brand small {
  color: #77705f;
}

.nav-links {
  gap: 2px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.68);
}

.nav-links a {
  min-height: 34px;
  padding: 8px 12px;
  border-radius: 999px;
  color: #302d29;
}

.nav-links a:hover {
  background: var(--ink);
  color: white;
}

.site-nav-container summary {
  border: 1px solid var(--ink);
  box-shadow: var(--shadow-soft);
}

.site-nav-container nav {
  border: 1px solid var(--ink);
  box-shadow: 0 20px 50px rgba(20, 20, 17, 0.16);
}

.hero,
.dashboard,
.articles-section,
.research-template,
.archive-band,
.broker-band,
.policy-band,
.site-footer {
  padding: 58px max(18px, calc((100vw - 1180px) / 2));
}

.hero {
  border-bottom: 0;
  background:
    linear-gradient(135deg, rgba(245, 200, 75, 0.32), rgba(255, 255, 255, 0.76) 45%, rgba(238, 243, 248, 0.92)),
    var(--paper);
}

.hero-shell {
  grid-template-columns: minmax(0, 1fr) minmax(320px, 390px);
  gap: 26px;
  max-width: 1180px;
}

.eyebrow {
  color: var(--violet);
  letter-spacing: 0.08em;
}

.hero h1 {
  max-width: 720px;
  font-size: clamp(2.2rem, 5vw, 4.1rem);
  line-height: 1.03;
}

.hero-lead {
  max-width: 680px;
  color: #3f454d;
  font-size: 1.05rem;
  line-height: 1.78;
}

.hero-brief {
  display: grid;
  grid-template-columns: minmax(0, 1.28fr) repeat(2, minmax(0, 0.82fr));
  gap: 10px;
  margin: 22px 0;
}

.hero-brief-card {
  display: grid;
  gap: 6px;
  min-height: 112px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: var(--shadow-soft);
}

.hero-brief-card span,
.hero-brief-card small {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 900;
}

.hero-brief-card strong {
  font-size: 1.18rem;
  line-height: 1.28;
}

.hero-brief-card--lead {
  background: var(--ink);
  color: white;
}

.hero-brief-card--lead span,
.hero-brief-card--lead small {
  color: rgba(255, 255, 255, 0.72);
}

.hero-brief-card--lead strong {
  color: var(--sun);
}

.hero-actions {
  gap: 8px;
}

.button,
.tab,
.text-link,
.broker-card,
.data-links a {
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  box-shadow: none;
}

.button,
.text-link {
  min-height: 46px;
}

.button:hover,
.tab:hover,
.text-link:hover,
.broker-card:hover,
.data-links a:hover,
.reading-path a:hover,
.post-card:hover,
.collection-card:hover,
.link-card:hover,
.pagination-nav a:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(20, 20, 17, 0.12);
}

.primary {
  background: var(--ink);
}

.secondary,
.text-link {
  background: white;
}

.hero-promo-stack {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 18px;
}

.hero-promo {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  min-height: 104px;
  padding: 14px;
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  background: white;
  box-shadow: var(--shadow-soft);
}

.hero-promo-mark {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: var(--radius);
  background: var(--ink);
  color: var(--sun);
  font-weight: 900;
}

.hero-promo-copy {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.hero-promo-label {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 900;
}

.hero-promo-title {
  font-size: 1rem;
  line-height: 1.28;
}

.hero-promo-text {
  margin: 0;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 700;
  line-height: 1.45;
}

.hero-promo-cta {
  grid-column: 2;
  color: var(--blue);
  font-size: 0.82rem;
  font-weight: 900;
}

.hero-promo-x {
  background: #121417;
  color: white;
}

.hero-promo-x .hero-promo-text,
.hero-promo-x .hero-promo-label {
  color: rgba(255, 255, 255, 0.72);
}

.hero-promo-moomoo {
  background: linear-gradient(135deg, #fff6cb, #ffffff);
}

.hero-panel,
.reading-path a,
.stat-card,
.chart-panel,
.report-card,
.post-card,
.template-grid article,
.archive-table,
.broker-card,
.policy-band,
.article-panel,
.collection-card {
  border: 1px solid rgba(20, 20, 17, 0.14);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}

.hero-panel {
  padding: 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(255, 248, 220, 0.88));
}

.hero-panel::before {
  display: none;
}

.hero-mascot {
  min-height: 196px;
}

.hero-mascot img {
  width: min(206px, 64%);
}

.motion-ring {
  border: 1px solid rgba(20, 20, 17, 0.2);
}

.mascot-badge {
  border: 1px solid var(--ink);
  box-shadow: var(--shadow-soft);
}

.metric-list {
  gap: 8px;
}

.metric-list div,
.report-card dl div {
  padding: 10px 0;
}

.metric-list dd,
.report-card dd {
  font-size: 1.08rem;
}

.stamp-row {
  gap: 8px;
}

.muki-stamp {
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  box-shadow: none;
  transform: none;
}

.reading-path {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  max-width: 1180px;
  padding: 26px max(18px, calc((100vw - 1180px) / 2)) 48px;
}

.reading-path a {
  min-height: 164px;
  background: rgba(255, 255, 255, 0.9);
}

.reading-path strong {
  font-size: 1.18rem;
}

.feature-story {
  background: var(--ink) !important;
}

.section-heading {
  max-width: 760px;
}

.dashboard {
  background: rgba(255, 255, 255, 0.64);
}

.dashboard > .section-heading,
.stats-grid,
.performance-grid,
.articles-section > .section-heading,
.filter-tabs,
.article-list,
.research-template > .section-heading,
.template-grid,
.archive-band > .section-heading,
.archive-table,
.broker-band,
.policy-band {
  max-width: 1180px;
}

.stats-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.stat-card {
  min-height: 118px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.94);
}

.stat-card.highlight {
  background: var(--surface-warm);
}

.stat-card strong {
  font-size: clamp(1.22rem, 2vw, 1.62rem);
}

.performance-grid {
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 14px;
}

.chart-panel {
  background: #111827;
}

.chart-panel canvas {
  aspect-ratio: 2.45 / 1;
  border: 0;
  border-radius: var(--radius);
}

.report-card {
  background: white;
}

.articles-section {
  border-top: 0;
  background: #f4f7fb;
}

.filter-tabs {
  position: sticky;
  top: 66px;
  z-index: 10;
  width: max-content;
  max-width: min(1180px, calc(100vw - 36px));
  overflow-x: auto;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(14px);
}

.tab {
  padding: 9px 14px;
  border: 0;
  border-radius: 999px;
}

.tab.active {
  background: var(--ink);
}

.article-list {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.post-card {
  grid-template-columns: 56px minmax(0, 1fr);
  min-height: 190px;
  background: white;
}

.post-card picture,
.post-card img {
  width: 56px;
  height: 56px;
}

.post-card h3 {
  font-size: 1.14rem;
}

.post-card p {
  font-size: 0.95rem;
  line-height: 1.65;
}

.post-card a {
  display: inline-flex;
  width: max-content;
  max-width: 100%;
  margin-top: auto;
  color: var(--blue);
}

.category-strip {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  max-width: 1180px;
}

.category-strip a {
  min-height: 86px;
  border: 1px solid var(--line);
  background: white;
  box-shadow: var(--shadow-soft);
}

.research-template {
  border-top: 0;
  background: #fffdf8;
}

.template-grid {
  max-width: 1180px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.template-grid article {
  background: white;
}

.archive-band {
  border-top: 0;
  background: #eef3f8;
}

.archive-table {
  background: white;
}

.archive-table div {
  grid-template-columns: 1.08fr 1fr 1.35fr auto;
}

.broker-band {
  border-top: 0;
  background: #eaf6ef;
}

.broker-card {
  background: #101820;
}

.policy-band {
  background: white;
}

.article-hero {
  padding: 54px max(18px, calc((100vw - 980px) / 2)) 34px;
  border-bottom: 0;
  background:
    linear-gradient(135deg, rgba(245, 200, 75, 0.26), rgba(255, 255, 255, 0.84)),
    var(--paper);
}

.article-hero-inner,
.article-body {
  max-width: 980px;
}

.article-hero h1 {
  max-width: 880px;
  font-size: clamp(2rem, 4.4vw, 3.25rem);
}

.article-hero p:not(.eyebrow) {
  max-width: 820px;
  color: #3f454d;
}

.article-body,
.collection-body {
  padding-right: max(18px, calc((100vw - 980px) / 2));
  padding-left: max(18px, calc((100vw - 980px) / 2));
}

.article-panel,
.collection-card {
  background: rgba(255, 255, 255, 0.94);
}

.article-panel h2 {
  font-size: 1.42rem;
}

.article-panel p,
.article-panel li,
.collection-card p {
  color: #343a43;
  font-weight: 650;
}

.article-panel a,
.collection-card h2 a,
.source-list a {
  color: var(--blue);
  text-decoration: underline;
  text-decoration-thickness: 1px;
}

.article-meta-row span,
.tag-row span,
.collection-metrics div {
  border: 1px solid var(--line);
  background: #f5f7fb;
}

.fact-card,
.link-card,
.step-card,
.faq-item,
.comparison-row,
.profile-card {
  border: 1px solid var(--line);
  background: #ffffff;
}

.comparison-row {
  border-left: 4px solid rgba(31, 94, 255, 0.28);
}

.performance-summary-table {
  border-collapse: separate;
  border-spacing: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.performance-summary-table th,
.performance-summary-table td {
  border-width: 0 0 1px;
  word-break: normal;
}

.performance-summary-table th {
  background: #111827;
  color: white;
}

.performance-summary-table tr:last-child td {
  border-bottom: 0;
}

.pagination-nav a {
  border: 1px solid var(--line);
}

.site-footer {
  background: #111827;
  color: white;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.78);
  font-weight: 800;
}

@media (max-width: 1100px) {
  .hero-shell,
  .performance-grid,
  .broker-band {
    grid-template-columns: 1fr;
  }

  .article-list,
  .reading-path {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-brief,
  .hero-promo-stack {
    grid-template-columns: 1fr;
  }
}

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

  .hero,
  .dashboard,
  .articles-section,
  .research-template,
  .archive-band,
  .broker-band,
  .policy-band,
  .site-footer {
    padding-top: 40px;
    padding-bottom: 40px;
  }

  .hero h1 {
    font-size: 2.08rem;
  }

  .hero-brief-card {
    min-height: 96px;
  }

  .hero-panel {
    padding: 14px;
  }

  .stats-grid,
  .article-list,
  .reading-path,
  .template-grid,
  .category-strip,
  .fact-grid,
  .link-grid,
  .step-list,
  .profile-grid,
  .pros-cons {
    grid-template-columns: 1fr;
  }

  .filter-tabs {
    top: 62px;
    width: auto;
    border-radius: var(--radius);
  }

  .post-card {
    min-height: 0;
  }

  .archive-table div {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .article-body {
    gap: 14px;
    padding-top: 22px;
    padding-bottom: 44px;
  }

  .article-panel,
  .collection-card {
    padding: 18px;
  }
}

/* UI refresh: Open Design reader-first direction */
:root {
  --paper: #f5f7fb;
  --cream: #fffefa;
  --surface: #ffffff;
  --surface-warm: #fff6c7;
  --line: rgba(22, 28, 38, 0.12);
  --radius: 10px;
  --shadow: 0 22px 60px rgba(22, 28, 38, 0.11);
  --shadow-soft: 0 12px 34px rgba(22, 28, 38, 0.08);
}

body {
  background:
    radial-gradient(circle at 14% 0%, rgba(245, 200, 75, 0.32), transparent 310px),
    linear-gradient(180deg, #fffdf6 0, #f5f7fb 420px, #eef3f8 100%);
}

.site-header {
  background: rgba(255, 255, 255, 0.88);
}

.hero {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(255, 247, 204, 0.78) 48%, rgba(239, 245, 255, 0.98)),
    var(--paper);
}

.hero-shell {
  align-items: stretch;
}

.hero-copy {
  display: grid;
  align-content: center;
}

.hero h1 {
  max-width: 760px;
  letter-spacing: 0;
}

.hero-lead {
  max-width: 740px;
  color: #313946;
}

.hero-brief {
  grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, 0.8fr));
}

.hero-brief-card {
  position: relative;
  overflow: hidden;
}

.hero-brief-card::after {
  position: absolute;
  inset: auto 14px 12px auto;
  width: 34px;
  height: 4px;
  border-radius: 999px;
  background: rgba(31, 94, 255, 0.2);
  content: "";
}

.hero-brief-card--lead::after {
  background: var(--sun);
}

.reader-trail {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: -2px 0 18px;
}

.reader-trail span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 36px;
  padding: 6px 10px 6px 6px;
  border: 1px solid rgba(22, 28, 38, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.84);
  color: #394150;
  font-size: 0.84rem;
  font-weight: 900;
  box-shadow: 0 8px 20px rgba(22, 28, 38, 0.06);
}

.reader-trail strong {
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border-radius: 999px;
  background: var(--ink);
  color: var(--sun);
  font-size: 0.76rem;
}

.hero-promo-stack {
  margin-top: 16px;
}

.hero-promo {
  grid-template-columns: 46px minmax(0, 1fr) auto;
  min-height: 112px;
  transition: transform 150ms ease, box-shadow 150ms ease;
}

.hero-promo:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 34px rgba(22, 28, 38, 0.14);
}

.hero-promo-mark {
  width: 46px;
  height: 46px;
}

.hero-promo-cta {
  grid-column: auto;
  align-self: end;
  white-space: nowrap;
}

.hero-panel {
  display: grid;
  align-content: start;
  min-height: 100%;
  border-color: rgba(22, 28, 38, 0.16);
}

.hero-mascot {
  min-height: 184px;
}

.hero-mascot picture,
.hero-mascot img {
  max-width: 196px;
}

.motion-ring {
  width: 146px;
}

.ring-two {
  width: 190px;
}

.reading-path {
  gap: 12px;
}

.reading-path a {
  position: relative;
  min-height: 154px;
  overflow: hidden;
}

.reading-path a::before {
  position: absolute;
  inset: 0 auto 0 0;
  width: 5px;
  background: var(--blue);
  content: "";
}

.reading-path a.feature-story::before {
  background: var(--sun);
}

.dashboard {
  background: rgba(255, 255, 255, 0.72);
}

.stats-grid {
  margin-top: 18px;
}

.stat-card {
  display: grid;
  align-content: start;
  border-color: rgba(22, 28, 38, 0.12);
}

.stat-card.highlight {
  background: linear-gradient(135deg, #fff3a4, #ffffff);
}

.performance-grid {
  align-items: stretch;
}

.chart-panel {
  overflow: visible;
  padding: 20px;
  background: #101828;
}

.chart-panel canvas {
  width: 100%;
  max-width: 100%;
  min-height: 310px;
  background: #ffffff;
  box-shadow: inset 0 0 0 1px rgba(22, 28, 38, 0.08);
}

.report-card {
  display: grid;
  align-content: start;
}

.articles-section {
  background:
    linear-gradient(180deg, #f7f9fc, #ffffff);
}

.filter-tabs {
  scrollbar-width: none;
}

.filter-tabs::-webkit-scrollbar {
  display: none;
}

.article-list {
  align-items: stretch;
}

.post-card {
  position: relative;
  align-content: start;
  border-color: rgba(22, 28, 38, 0.12);
  transition: transform 150ms ease, box-shadow 150ms ease, border-color 150ms ease;
}

.post-card:hover {
  border-color: rgba(31, 94, 255, 0.28);
}

.post-card:first-child,
.post-card:nth-child(2) {
  grid-column: span 1;
  background:
    linear-gradient(135deg, rgba(255, 246, 199, 0.8), rgba(255, 255, 255, 0.98));
}

.post-card:first-child::after,
.post-card:nth-child(2)::after {
  position: absolute;
  top: 14px;
  right: 14px;
  padding: 5px 8px;
  border-radius: 999px;
  background: #101828;
  color: white;
  font-size: 0.68rem;
  font-weight: 900;
  content: "NEW";
}

.post-card:nth-child(2)::after {
  background: var(--blue);
  content: "DATA";
}

.post-card h3 {
  padding-right: 38px;
}

.category-strip a {
  transition: transform 150ms ease, box-shadow 150ms ease;
}

.category-strip a:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 32px rgba(22, 28, 38, 0.12);
}

.broker-band {
  background:
    linear-gradient(135deg, #e9f8ef, #ffffff);
}

.broker-card {
  min-height: 126px;
}

.site-footer {
  background:
    linear-gradient(135deg, #101828, #17140f);
}

@media (min-width: 1101px) {
  .post-card:first-child,
  .post-card:nth-child(2) {
    min-height: 216px;
  }
}

@media (max-width: 1100px) {
  .hero-copy {
    align-content: start;
  }

  .hero-promo {
    grid-template-columns: 46px minmax(0, 1fr);
  }

  .hero-promo-cta {
    grid-column: 2;
    align-self: start;
  }

  .chart-panel canvas {
    min-height: 280px;
  }
}

@media (max-width: 760px) {
  .hero,
  .dashboard,
  .articles-section,
  .research-template,
  .archive-band,
  .broker-band,
  .policy-band,
  .site-footer {
    padding-right: 16px;
    padding-left: 16px;
  }

  .hero-shell,
  .performance-grid,
  .article-list,
  .broker-band,
  .policy-band {
    max-width: calc(100vw - 32px);
  }

  .hero h1 {
    max-width: 100%;
    font-size: 2rem;
  }

  .hero-lead {
    line-height: 1.72;
  }

  .hero-brief,
  .hero-promo-stack {
    gap: 8px;
  }

  .reader-trail {
    margin-bottom: 14px;
  }

  .reader-trail span {
    flex: 1 1 100%;
  }

  .hero-promo {
    min-height: 0;
    padding: 12px;
  }

  .hero-promo-text {
    font-size: 0.82rem;
  }

  .hero-panel {
    order: -1;
  }

  .hero-mascot {
    min-height: 156px;
  }

  .hero-mascot picture,
  .hero-mascot img {
    max-width: 158px;
  }

  .badge-live {
    top: 14px;
    left: 14px;
  }

  .badge-profit {
    right: 12px;
    left: auto;
    bottom: 18px;
  }

  .reading-path {
    padding-top: 18px;
    padding-bottom: 32px;
  }

  .chart-panel {
    padding: 14px;
  }

  .chart-panel canvas {
    min-height: 236px;
  }

  .post-card h3 {
    padding-right: 0;
  }

  .post-card:first-child::after,
  .post-card:nth-child(2)::after {
    position: static;
    width: max-content;
    grid-column: 2;
    order: -1;
  }
}
