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

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Assistant", sans-serif;
  font-size: 17px;
  line-height: 1.75;
  color: #334155;
  background: #ffffff;
  -webkit-font-smoothing: antialiased;
}

/* ============================================
   LAYOUT
   ============================================ */
.blog-layout {
  display: flex;
  max-width: 1400px;
  margin: 0 auto;
  padding: 40px 24px;
  gap: 60px;
}

/* ============================================
   SIDEBAR NAVIGATION
   ============================================ */
.blog-sidebar {
  position: sticky;
  top: 40px;
  width: 280px;
  min-width: 280px;
  max-height: calc(100vh - 80px);
  overflow-y: auto;
  padding-right: 20px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.blog-sidebar::-webkit-scrollbar {
  display: none;
}

/* Close button — hidden on desktop */
.sidebar-close {
  display: none;
  align-items: center;
  gap: 8px;
  background: none;
  border: none;
  cursor: pointer;
  font-family: "Assistant", sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: #64748b;
  padding: 8px 12px;
  border-radius: 8px;
  transition: all 0.2s ease;
  margin-bottom: 16px;
}

.sidebar-close:hover {
  color: #bf3425;
  background: #fef7f6;
}

.sidebar-close svg {
  flex-shrink: 0;
}

.blog-sidebar-title {
  font-family: "Archivo", sans-serif;
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.1em;
  color: #9d9d9c;
  text-transform: uppercase;
  margin-bottom: 16px;
  padding-left: 12px;
}

.blog-sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.blog-sidebar-link {
  font-family: "Assistant", sans-serif;
  font-weight: 600;
  font-size: 14px;
  color: #64748b;
  padding: 10px 12px;
  border-radius: 6px;
  text-decoration: none;
  transition: all 0.2s ease;
  display: block;
}

.blog-sidebar-link:hover {
  color: #47577c;
  background-color: #f8fafc;
}

.blog-sidebar-link.active {
  color: #bf3425;
  background-color: #fef7f6;
  font-weight: 700;
}

/* ============================================
   MOBILE NAV TOGGLE
   ============================================ */
.mobile-nav-toggle {
  display: none;
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 1001;
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, #bf3425 0%, #9d2a1e 100%);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(191, 52, 37, 0.4);
  transition: all 0.3s ease;
  align-items: center;
  justify-content: center;
}

.mobile-nav-toggle:hover {
  transform: scale(1.1);
}

.mobile-nav-toggle svg {
  width: 24px;
  height: 24px;
  stroke: #ffffff;
}

/* ============================================
   MAIN CONTENT
   ============================================ */
.blog-content {
  flex: 1;
  max-width: 900px;
  min-width: 0;
}

/* ============================================
   BLOG META
   ============================================ */
.blog-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 14px;
  color: #64748b;
  margin-bottom: 10px;
}

.blog-meta-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

.blog-meta-icon {
  width: 16px;
  height: 16px;
  color: #64748b;
  flex-shrink: 0;
}

/* ============================================
   TYPOGRAPHY
   ============================================ */
.blog-content h1 {
  font-family: "Archivo", sans-serif;
  font-weight: 700;
  font-size: 2.75rem;
  line-height: 1.15;
  color: #1e293b;
  margin-bottom: 1.5rem;
}

.blog-content h2 {
  font-family: "Archivo", sans-serif;
  font-weight: 700;
  font-size: 1.75rem;
  color: #1e293b;
  margin-top: 3.5rem;
  margin-bottom: 1.25rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid #bf3425;
}

.blog-content h3 {
  font-family: "Archivo", sans-serif;
  font-weight: 600;
  font-size: 1.25rem;
  color: #47577c;
  margin-top: 2rem;
  margin-bottom: 0.875rem;
}

.blog-content h4 {
  font-family: "Archivo", sans-serif;
  font-weight: 600;
  font-size: 1.1rem;
  color: #1e293b;
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
}

.blog-content ul,
.blog-content ol {
  margin-bottom: 1.5rem;
  padding-left: 1.5rem;
}

.blog-content li {
  margin-bottom: 0.625rem;
  font-size: 1.0625rem;
}

.blog-content a {
  color: #47577c;
  text-decoration: underline;
  text-underline-offset: 2px;
  font-weight: 600;
  transition: color 0.2s;
}

.blog-content a:hover {
  color: #bf3425;
}

/* Drop Cap */
.drop-cap::first-letter {
  float: left;
  font-family: "Archivo", sans-serif;
  font-size: 4.5rem;
  font-weight: 700;
  line-height: 0.8;
  color: #bf3425;
  margin-right: 12px;
  margin-top: 8px;
}

/* ============================================
   IMAGES
   ============================================ */
.full-width-image {
  width: 100%;
  border-radius: 12px;
  margin: 2rem 0;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  display: block;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.full-width-image:hover {
  transform: scale(1.01);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.image-caption {
  font-size: 0.875rem;
  color: #64748b;
  text-align: center;
  margin-top: -1.25rem;
  margin-bottom: 2rem;
  font-style: italic;
}

/* ============================================
   SPLIT LAYOUT
   ============================================ */
.split-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: start;
  margin: 2.5rem 0;
}

.split-layout.reverse {
  direction: rtl;
}

.split-layout.reverse > * {
  direction: ltr;
}

.split-image img {
  width: 100%;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  display: block;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.split-image img:hover {
  transform: scale(1.01);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.split-image .image-caption {
  margin-top: 0.5rem;
  margin-bottom: 0;
}

.split-text h3 {
  margin-top: 0;
}

/* ============================================
   HIGHLIGHT BOXES
   ============================================ */
.highlight-box {
  background: linear-gradient(135deg, #fef7f6 0%, #fff8f7 100%);
  border-radius: 12px;
  padding: 1.5rem 2rem;
  margin: 2rem 0;
  border: 1px solid #fbd5d0;
}

.highlight-box p {
  margin-bottom: 0;
}

.highlight-box h4 {
  color: #bf3425;
  margin-top: 0;
}

.highlight-box.dark {
  background: linear-gradient(135deg, #1e293b 0%, #2d3a52 100%);
  border-color: #334155;
  color: #e2e8f0;
}

.highlight-box.dark h4 {
  color: #f87171;
}

.highlight-box.dark p {
  color: #cbd5e1;
  margin-bottom: 0;
}

/* ============================================
   INFOGRAPHIC PLACEHOLDERS
   ============================================ */
.infographic-placeholder {
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  border: 2px dashed #cbd5e1;
  border-radius: 12px;
  padding: 2.5rem 2rem;
  margin: 2.5rem 0;
  text-align: center;
  color: #64748b;
}

.infographic-label {
  font-family: "Archivo", sans-serif;
  font-weight: 700;
  font-size: 0.875rem;
  color: #47577c;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}

.infographic-description {
  font-size: 0.9375rem;
  color: #64748b;
  line-height: 1.6;
  text-align: left;
}

/* ============================================
   LEARN MORE CARDS
   ============================================ */
.learn-more-container {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin: 2rem 0;
}

.learn-more-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  text-decoration: none;
  transition: all 0.3s ease;
}

.learn-more-card:hover {
  border-color: #bf3425;
  box-shadow: 0 8px 25px -5px rgba(191, 52, 37, 0.15);
  transform: translateY(-2px);
}

.learn-more-icon {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, #47577c 0%, #1e293b 100%);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.3s;
  color: #ffffff;
}

.learn-more-card:hover .learn-more-icon {
  background: linear-gradient(135deg, #bf3425 0%, #9d2a1e 100%);
}

.learn-more-icon svg {
  width: 24px;
  height: 24px;
  color: #ffffff;
}

.learn-more-text {
  display: flex;
  flex-direction: column;
}

.learn-more-title {
  font-family: "Archivo", sans-serif;
  font-weight: 600;
  font-size: 1rem;
  color: #1e293b;
  transition: color 0.3s;
}

.learn-more-card:hover .learn-more-title {
  color: #bf3425;
}

.learn-more-desc {
  font-size: 0.875rem;
  color: #64748b;
  margin-top: 0.25rem;
}

/* ============================================
   CTA SECTION
   ============================================ */
.cta-section {
  background: linear-gradient(135deg, #fef7f6 0%, #ffffff 100%);
  border: 2px solid #bf3425;
  border-radius: 16px;
  padding: 2rem;
  margin: 2.5rem 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, #bf3425, #47577c);
}

.cta-section p {
  margin-bottom: 1.25rem;
  color: #1e293b;
  font-size: 1.125rem;
}

.cta-button {
  display: inline-block;
  padding: 0.875rem 2rem;
  background: linear-gradient(135deg, #bf3425 0%, #9d2a1e 100%);
  color: #ffffff !important;
  font-family: "Archivo", sans-serif;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px -5px rgba(191, 52, 37, 0.4);
  color: #ffffff !important;
}

/* ============================================
   REFERENCES LIST
   ============================================ */
.references-list {
  padding-left: 1.5rem;
}

.references-list li {
  font-size: 0.9375rem;
  color: #475569;
  margin-bottom: 1rem;
  line-height: 1.65;
}

.references-list a {
  font-weight: 400;
  word-break: break-all;
}

/* ============================================
   AUTHOR SECTION
   ============================================ */
.author-section {
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 1px solid #e2e8f0;
}

.author-card {
  display: flex;
  gap: 32px;
  align-items: flex-start;
  background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
  border-radius: 20px;
  padding: 2rem;
  border: 1px solid #e2e8f0;
}

.author-image-wrapper {
  flex-shrink: 0;
}

.author-image {
  width: 180px;
  height: 180px;
  border-radius: 16px;
  object-fit: cover;
  display: block;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.15);
}

.author-info {
  flex: 1;
  min-width: 0;
}

.author-name {
  font-family: "Archivo", sans-serif;
  font-weight: 700;
  font-size: 1.5rem;
  color: #1e293b;
  margin-bottom: 4px;
  text-decoration: underline;
  text-decoration-color: #bf3425;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

.author-title {
  font-size: 1rem;
  font-weight: 600;
  color: #47577c;
  margin-bottom: 16px;
}

.author-social {
  display: flex;
  gap: 12px;
  margin-bottom: 24px;
}

.author-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: #f8fafc;
  border-radius: 10px;
  transition:
    transform 0.2s,
    background 0.2s;
  text-decoration: none;
}

.author-social a:hover {
  transform: scale(1.1);
  background: #e2e8f0;
}

.author-social svg {
  width: 24px;
  height: 24px;
}

.about-author-label {
  font-family: "Archivo", sans-serif;
  font-weight: 700;
  font-size: 0.875rem;
  color: #bf3425;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 12px;
}

.author-bio {
  font-size: 0.9375rem;
  color: #475569;
  line-height: 1.7;
  text-align: justify;
  margin: 0;
}

/* ============================================
   SECTION SCROLL MARGIN
   ============================================ */
section {
  scroll-margin-top: 40px;
}

/* ============================================
   RESPONSIVE — 1024px
   ============================================ */
@media (max-width: 1024px) {
  .blog-layout {
    flex-direction: column;
    gap: 32px;
  }

  /* Sidebar becomes horizontal pills on tablet */
  .blog-sidebar {
    position: relative;
    top: 0;
    width: 100%;
    min-width: 100%;
    max-height: none;
    padding-right: 0;
    padding-bottom: 24px;
    border-bottom: 1px solid #e2e8f0;
    align-self: auto;
  }

  .blog-sidebar-nav {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 8px;
  }

  .blog-sidebar-link {
    font-size: 13px;
    padding: 8px 12px;
  }

  .blog-content h1 {
    font-size: 2rem;
  }

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

  .split-layout.reverse {
    direction: ltr;
  }

  .split-layout.reverse > * {
    direction: ltr;
  }

  .learn-more-container {
    grid-template-columns: 1fr;
  }

  .author-card {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .author-social {
    justify-content: center;
  }

  .author-bio {
    text-align: center;
  }
}

/* ============================================
   RESPONSIVE — 768px (Mobile, sidebar overlay)
   ============================================ */
@media (max-width: 768px) {
  /* Show hamburger button */
  .mobile-nav-toggle {
    display: flex;
  }

  /* Sidebar becomes full-screen overlay */
  .blog-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    background: #ffffff;
    z-index: 999;
    padding: 20px;
    overflow-y: auto;
    transform: translateY(-100%);
    transition: transform 0.3s ease;
    border-bottom: none;
    max-height: 100vh;
    align-self: auto;
  }

  .blog-sidebar.active {
    transform: translateY(0);
  }

  /* Show close button inside sidebar */
  .sidebar-close {
    display: flex;
  }

  .blog-sidebar-nav {
    flex-direction: column;
    gap: 4px;
  }

  .blog-sidebar-link {
    font-size: 16px;
    padding: 14px 16px;
    border-radius: 8px;
  }

  .blog-sidebar-title {
    font-size: 12px;
    margin-bottom: 20px;
    padding-top: 8px;
  }

  .blog-layout {
    padding: 20px 16px;
    gap: 0;
  }

  .blog-content h1 {
    font-size: 1.75rem;
  }

  .blog-content h2 {
    font-size: 1.4rem;
    margin-top: 2.5rem;
  }

  .split-layout {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .split-layout.reverse {
    direction: ltr;
  }

  .split-layout.reverse > * {
    direction: ltr;
  }

  .learn-more-container {
    grid-template-columns: 1fr;
  }

  .author-card {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 1.5rem;
  }

  .author-social {
    justify-content: center;
  }

  .author-bio {
    text-align: left;
  }

  .highlight-box {
    padding: 1.25rem 1.5rem;
  }

  .infographic-placeholder {
    padding: 1.5rem 1rem;
  }
}

/* ============================================
   RESPONSIVE — 640px
   ============================================ */
@media (max-width: 640px) {
  .blog-content h1 {
    font-size: 1.5rem;
  }

  .blog-content h2 {
    font-size: 1.25rem;
  }

  .blog-meta {
    gap: 10px;
    font-size: 13px;
  }

  .cta-section {
    padding: 1.5rem 1rem;
  }

  .cta-button {
    padding: 0.75rem 1.5rem;
    font-size: 0.9375rem;
  }

  .author-image {
    width: 140px;
    height: 140px;
  }
}

/* ============================================
   RESPONSIVE — 480px
   ============================================ */
@media (max-width: 480px) {
  .blog-content h1 {
    font-size: 1.35rem;
  }

  .blog-layout {
    padding: 16px 12px;
  }
}
/* <!-- INFOGRAPHIC PLACEHOLDER 1 --> */


/* ===== wheel-rim infographics ===== */
/* ============================================================
   ADDCOMPOSITES BLOG — CFRP WHEEL RIM INFOGRAPHICS
   8 self-contained namespaced components. Palette:
   #47577c brand blue · #bf3425 Addcomposites red ·
   #9d9d9c grey · #c8cdd8 muted.
   Animation: #NS-root gains .NS-animated on viewport entry.
   ============================================================ */

/* ============================================================
   BLOCK 2 — wrforce · horizontal bars + labeled table
   ============================================================ */
.wrforce-root {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.07);
  padding: 28px;
  max-width: 860px;
  margin: 0 auto;
  overflow: hidden;
}
.wrforce-eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #9d9d9c;
  margin: 0 0 8px;
}
.wrforce-title {
  font-size: 20px;
  font-weight: 700;
  color: #47577c;
  margin: 0 0 6px;
}
.wrforce-subtitle {
  font-size: 13px;
  color: #9d9d9c;
  margin: 0 0 28px;
}
.wrforce-head,
.wrforce-row {
  display: grid;
  grid-template-columns: 150px 1fr 90px 60px;
  align-items: center;
  gap: 12px;
}
.wrforce-head {
  padding-bottom: 8px;
  border-bottom: 1.5px solid #e2e8f0;
  margin-bottom: 6px;
}
.wrforce-head-axis {
  font-size: 11px;
  font-weight: 700;
  color: #9d9d9c;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.wrforce-head-sep,
.wrforce-head-sf {
  font-size: 10px;
  font-weight: 700;
  color: #9d9d9c;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  text-align: right;
}
.wrforce-head-sep:nth-of-type(2) { text-align: center; }
.wrforce-row {
  padding: 8px 0;
  border-radius: 8px;
  transition: background 0.18s;
}
.wrforce-row:hover { background: #f8fafc; }
.wrforce-label {
  font-size: 13px;
  font-weight: 500;
  color: #47577c;
}
.wrforce-label strong { font-weight: 800; }
.wrforce-bar-track {
  background: #f1f5f9;
  border-radius: 6px;
  height: 30px;
  position: relative;
  overflow: hidden;
}
.wrforce-bar-fill {
  height: 100%;
  border-radius: 6px;
  width: 0;
  transition: width 1.1s cubic-bezier(0.22, 1, 0.36, 1);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: 10px;
}
.wrforce-fill-blue { background: #47577c; }
.wrforce-fill-red { background: #bf3425; }
.wrforce-bar-val {
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  opacity: 0;
  transition: opacity 0.3s 0.7s;
  white-space: nowrap;
}
.wrforce-root.wrforce-animated .wrforce-bar-val { opacity: 1; }
.wrforce-sim {
  font-size: 12px;
  font-weight: 600;
  color: #64748b;
  text-align: center;
}
.wrforce-sf {
  font-size: 14px;
  font-weight: 800;
  color: #47577c;
  text-align: right;
}
.wrforce-notes {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid #f1f5f9;
  display: grid;
  gap: 10px;
}
.wrforce-note {
  display: grid;
  grid-template-columns: 150px 90px 1fr;
  align-items: baseline;
  gap: 12px;
}
.wrforce-note-k {
  font-size: 12px;
  font-weight: 700;
  color: #47577c;
}
.wrforce-note-v {
  font-size: 14px;
  font-weight: 800;
  color: #bf3425;
}
.wrforce-note-v-muted { color: #9d9d9c; }
.wrforce-note-d {
  font-size: 11px;
  color: #64748b;
  line-height: 1.45;
}
@media (max-width: 640px) {
  .wrforce-root { padding: 20px 16px; }
  .wrforce-head { display: none; }
  .wrforce-row {
    grid-template-columns: 1fr 44px;
    grid-template-areas: "label sf" "bar bar" "sim sim";
    gap: 6px;
    padding: 12px 0;
    border-bottom: 1px solid #f1f5f9;
  }
  .wrforce-label { grid-area: label; }
  .wrforce-bar-track { grid-area: bar; }
  .wrforce-sf { grid-area: sf; }
  .wrforce-sim { grid-area: sim; text-align: left; font-size: 11px; }
  .wrforce-sim::before { content: "simultaneous "; color: #9d9d9c; }
  .wrforce-note { grid-template-columns: 1fr; gap: 2px; }
}

/* ============================================================
   BLOCK 3 — wrval · comparison / paired bars
   ============================================================ */
.wrval-root {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.07);
  padding: 28px;
  max-width: 860px;
  margin: 0 auto;
  overflow: hidden;
}
.wrval-eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #9d9d9c;
  margin: 0 0 8px;
}
.wrval-title {
  font-size: 20px;
  font-weight: 700;
  color: #47577c;
  margin: 0 0 6px;
}
.wrval-subtitle {
  font-size: 13px;
  color: #9d9d9c;
  margin: 0 0 24px;
}
.wrval-legend {
  display: flex;
  gap: 20px;
  margin-bottom: 22px;
  flex-wrap: wrap;
}
.wrval-legend-item {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  color: #64748b;
  font-weight: 600;
}
.wrval-dot {
  width: 12px;
  height: 12px;
  border-radius: 3px;
}
.wrval-dot-sim { background: #47577c; }
.wrval-dot-tel { background: #bf3425; }
.wrval-group {
  margin-bottom: 22px;
}
.wrval-group-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}
.wrval-group-name {
  font-size: 13px;
  font-weight: 700;
  color: #47577c;
}
.wrval-diff {
  font-size: 12px;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: 5px;
}
.wrval-diff-pos { background: #ebedf5; color: #2e3f5c; }
.wrval-diff-neg { background: #fdecea; color: #7a2418; }
.wrval-pair {
  display: grid;
  gap: 8px;
}
.wrval-bar-row {
  display: grid;
  grid-template-columns: 36px 1fr 78px;
  align-items: center;
  gap: 12px;
}
.wrval-bar-tag {
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #9d9d9c;
  text-align: right;
}
.wrval-bar-track {
  background: #f1f5f9;
  border-radius: 6px;
  height: 26px;
  overflow: hidden;
}
.wrval-bar-fill {
  height: 100%;
  border-radius: 6px;
  width: 0;
  transition: width 1.1s cubic-bezier(0.22, 1, 0.36, 1);
}
.wrval-fill-sim { background: #47577c; }
.wrval-fill-tel { background: #bf3425; }
.wrval-bar-num {
  font-size: 13px;
  font-weight: 800;
  color: #47577c;
  text-align: right;
}
.wrval-foot {
  font-size: 11.5px;
  color: #64748b;
  line-height: 1.5;
  margin: 4px 0 0;
  padding-top: 16px;
  border-top: 1px solid #f1f5f9;
}
@media (max-width: 640px) {
  .wrval-root { padding: 20px 16px; }
  .wrval-bar-row { grid-template-columns: 30px 1fr 68px; gap: 8px; }
}

/* ============================================================
   BLOCK 4 — wrmat · two-column comparison matrix
   ============================================================ */
.wrmat-root {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.07);
  padding: 28px;
  max-width: 860px;
  margin: 0 auto;
  overflow: hidden;
}
.wrmat-eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #9d9d9c;
  margin: 0 0 8px;
}
.wrmat-title {
  font-size: 20px;
  font-weight: 700;
  color: #47577c;
  margin: 0 0 6px;
}
.wrmat-subtitle {
  font-size: 13px;
  color: #9d9d9c;
  margin: 0 0 24px;
}
.wrmat-grid {
  display: grid;
  grid-template-columns: 60px 1fr 1fr;
  gap: 10px;
  align-items: stretch;
}
.wrmat-corner {
  border-bottom: 2px solid #e2e8f0;
}
.wrmat-colhead {
  text-align: center;
  padding: 6px 8px 12px;
  border-bottom: 2px solid #47577c;
}
.wrmat-colhead-ud { border-bottom-color: #bf3425; }
.wrmat-col-name {
  display: block;
  font-size: 15px;
  font-weight: 800;
  color: #47577c;
}
.wrmat-colhead-ud .wrmat-col-name { color: #bf3425; }
.wrmat-col-sub {
  display: block;
  font-size: 11px;
  color: #9d9d9c;
  margin-top: 2px;
}
.wrmat-rowhead {
  display: flex;
  align-items: center;
  font-size: 14px;
  font-weight: 800;
  color: #47577c;
}
.wrmat-cell {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 14px 16px;
  border-radius: 10px;
  background: #f8fafc;
  border: 1px solid #e8ecf3;
  opacity: 0;
  transform: translateY(10px) scale(0.96);
  transition: opacity 0.45s ease, transform 0.45s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.16s;
}
.wrmat-root.wrmat-animated .wrmat-cell {
  opacity: 1;
  transform: translateY(0) scale(1);
}
.wrmat-root.wrmat-animated .wrmat-cell[data-cell="0"] { transition-delay: 0.05s; }
.wrmat-root.wrmat-animated .wrmat-cell[data-cell="1"] { transition-delay: 0.1s; }
.wrmat-root.wrmat-animated .wrmat-cell[data-cell="2"] { transition-delay: 0.15s; }
.wrmat-root.wrmat-animated .wrmat-cell[data-cell="3"] { transition-delay: 0.2s; }
.wrmat-root.wrmat-animated .wrmat-cell[data-cell="4"] { transition-delay: 0.25s; }
.wrmat-root.wrmat-animated .wrmat-cell[data-cell="5"] { transition-delay: 0.3s; }
.wrmat-cell:hover {
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.09);
}
.wrmat-cell-hi { background: #ebedf5; border-color: #d6dcea; }
.wrmat-cell-lo { background: #fafbfc; }
.wrmat-cell-accent { background: #fdf1ef; border-color: #f5d5d0; }
.wrmat-cell-main {
  font-size: 13px;
  font-weight: 700;
  color: #1e293b;
  line-height: 1.3;
}
.wrmat-cell-accent .wrmat-cell-main { color: #bf3425; }
.wrmat-cell-sub {
  font-size: 11px;
  color: #64748b;
  margin-top: 3px;
  line-height: 1.4;
}
.wrmat-legend {
  display: flex;
  gap: 22px;
  margin-top: 22px;
  padding-top: 16px;
  border-top: 1px solid #f1f5f9;
  flex-wrap: wrap;
}
.wrmat-legend-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: #64748b;
}
.wrmat-swatch {
  width: 12px;
  height: 12px;
  border-radius: 3px;
  flex-shrink: 0;
}
.wrmat-swatch-twill { background: #47577c; }
.wrmat-swatch-ud { background: #bf3425; }
@media (max-width: 640px) {
  .wrmat-root { padding: 20px 16px; }
  .wrmat-grid { grid-template-columns: 44px 1fr 1fr; gap: 6px; }
  .wrmat-cell { padding: 10px 10px; }
  .wrmat-col-name { font-size: 13px; }
}

/* ============================================================
   BLOCK 5 — writer · two SVG trend lines (dashoffset draw)
   ============================================================ */
.writer-root {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.07);
  padding: 28px;
  max-width: 860px;
  margin: 0 auto;
  overflow: hidden;
}
.writer-eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #9d9d9c;
  margin: 0 0 8px;
}
.writer-title {
  font-size: 20px;
  font-weight: 700;
  color: #47577c;
  margin: 0 0 6px;
}
.writer-subtitle {
  font-size: 13px;
  color: #9d9d9c;
  margin: 0 0 24px;
  line-height: 1.5;
}
.writer-chart-area {
  display: grid;
  gap: 28px;
}
.writer-chart-head {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 10px 14px;
  margin-bottom: 10px;
}
.writer-chart-name {
  font-size: 13px;
  font-weight: 800;
  color: #47577c;
}
.writer-chart-target {
  font-size: 11px;
  font-weight: 600;
  color: #9d9d9c;
}
.writer-chart-settle {
  font-size: 11px;
  font-weight: 600;
  color: #bf3425;
  margin-left: auto;
}
.writer-chart-settle strong { font-weight: 800; }
.writer-svg {
  width: 100%;
  height: 180px;
  display: block;
}
.writer-grid {
  stroke: #f1f5f9;
  stroke-width: 1;
}
.writer-target-line {
  stroke: #9d9d9c;
  stroke-width: 1.5;
  stroke-dasharray: 4 3;
}
.writer-step-marker {
  stroke: #bf3425;
  stroke-width: 1.5;
  stroke-dasharray: 3 3;
  opacity: 0.55;
}
.writer-line {
  fill: none;
  stroke-width: 3;
  stroke-linejoin: round;
  stroke-linecap: round;
  vector-effect: non-scaling-stroke;
}
.writer-line-disp { stroke: #47577c; }
.writer-line-tw { stroke: #bf3425; }
.writer-axis-x {
  display: flex;
  justify-content: space-between;
  padding: 0 2px 0 40px;
  margin-top: 4px;
}
.writer-axis-x span {
  font-size: 10px;
  font-weight: 600;
  color: #9d9d9c;
  flex: 1;
  text-align: center;
}
.writer-axis-caption {
  display: flex;
  justify-content: space-between;
  margin-top: 6px;
  padding-left: 40px;
}
.writer-axis-caption span {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #9d9d9c;
}
.writer-yhint {
  text-transform: none !important;
  letter-spacing: 0 !important;
  font-weight: 600 !important;
  color: #64748b !important;
}
.writer-foot {
  font-size: 11.5px;
  color: #64748b;
  line-height: 1.5;
  margin: 4px 0 0;
  padding-top: 16px;
  border-top: 1px solid #f1f5f9;
}
.writer-foot-marker {
  color: #bf3425;
  font-weight: 800;
}
@media (max-width: 640px) {
  .writer-root { padding: 20px 16px; }
  .writer-chart-settle { margin-left: 0; }
}

/* ============================================================
   BLOCK 6 — wrzone · rim cross-section diagram
   ============================================================ */
.wrzone-root {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.07);
  padding: 28px;
  max-width: 860px;
  margin: 0 auto;
  overflow: hidden;
}
.wrzone-eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #9d9d9c;
  margin: 0 0 8px;
}
.wrzone-title {
  font-size: 20px;
  font-weight: 700;
  color: #47577c;
  margin: 0 0 6px;
}
.wrzone-subtitle {
  font-size: 13px;
  color: #9d9d9c;
  margin: 0 0 24px;
  line-height: 1.5;
}
.wrzone-diagram {
  display: flex;
  justify-content: center;
}
.wrzone-outer {
  position: relative;
  width: 100%;
  max-width: 560px;
  border: 3px solid #47577c;
  border-radius: 14px;
  padding: 40px 22px 22px;
  background: #f4f6fb;
  opacity: 0;
  transform: scale(0.96);
  transition: opacity 0.5s ease, transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}
.wrzone-root.wrzone-animated .wrzone-outer { opacity: 1; transform: scale(1); }
.wrzone-tag {
  font-size: 11px;
  font-weight: 800;
  color: #47577c;
}
.wrzone-tag-outer {
  position: absolute;
  top: 12px;
  left: 18px;
}
.wrzone-bead {
  position: absolute;
  top: 12px;
  right: 18px;
  font-size: 10px;
  font-weight: 700;
  color: #9d9d9c;
}
.wrzone-barrel {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  border: 2px solid #bf3425;
  border-radius: 10px;
  padding: 26px 12px 14px;
  background: #fdf1ef;
  margin-bottom: 16px;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.45s ease 0.15s, transform 0.45s ease 0.15s;
}
.wrzone-root.wrzone-animated .wrzone-barrel { opacity: 1; transform: translateY(0); }
.wrzone-barrel-label {
  position: absolute;
  top: 8px;
  left: 12px;
  font-size: 10px;
  font-weight: 700;
  color: #bf3425;
}
.wrzone-inner {
  background: #fff;
  border: 1px solid #f5d5d0;
  border-radius: 8px;
  padding: 18px 8px;
  text-align: center;
}
.wrzone-inner .wrzone-tag { color: #bf3425; }
.wrzone-center-wrap {
  position: relative;
  width: 60%;
  margin: 0 auto;
  display: grid;
  gap: 6px;
  border: 2px solid #47577c;
  border-radius: 10px;
  padding: 14px 12px;
  background: #ebedf5;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.45s ease 0.3s, transform 0.45s ease 0.3s;
}
.wrzone-root.wrzone-animated .wrzone-center-wrap { opacity: 1; transform: translateY(0); }
.wrzone-center {
  background: #fff;
  border: 1px solid #d6dcea;
  border-radius: 6px;
  padding: 10px;
  text-align: center;
}
.wrzone-tag-center { color: #47577c; }
.wrzone-hub-label {
  position: absolute;
  bottom: -20px;
  right: 0;
  font-size: 10px;
  font-weight: 700;
  color: #9d9d9c;
}
.wrzone-legend {
  margin-top: 34px;
  padding-top: 16px;
  border-top: 1px solid #f1f5f9;
  display: grid;
  gap: 8px;
}
.wrzone-legend-item {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 12px;
  color: #64748b;
}
.wrzone-key {
  width: 16px;
  height: 16px;
  border-radius: 4px;
  flex-shrink: 0;
}
.wrzone-key-outer { background: #47577c; }
.wrzone-key-barrel { background: #bf3425; }
.wrzone-key-center { background: #ebedf5; border: 1.5px solid #47577c; }
@media (max-width: 640px) {
  .wrzone-root { padding: 20px 16px; }
  .wrzone-barrel { grid-template-columns: 1fr; }
  .wrzone-center-wrap { width: 100%; }
}

/* ============================================================
   BLOCK 7 — wrply · schematic plybook table
   ============================================================ */
.wrply-root {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.07);
  padding: 28px;
  max-width: 860px;
  margin: 0 auto;
  overflow: hidden;
}
.wrply-eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #9d9d9c;
  margin: 0 0 8px;
}
.wrply-title {
  font-size: 20px;
  font-weight: 700;
  color: #47577c;
  margin: 0 0 6px;
}
.wrply-subtitle {
  font-size: 13px;
  color: #9d9d9c;
  margin: 0 0 22px;
  line-height: 1.5;
}
.wrply-legend {
  display: flex;
  gap: 20px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}
.wrply-legend-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: #64748b;
  font-weight: 600;
}
.wrply-chip {
  width: 22px;
  height: 22px;
  border-radius: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 800;
}
.wrply-chip-t { background: #47577c; color: #fff; }
.wrply-chip-u { background: #bf3425; color: #fff; }
.wrply-table {
  display: grid;
  gap: 8px;
}
.wrply-prow {
  display: grid;
  grid-template-columns: 108px 1fr 76px;
  align-items: center;
  gap: 12px;
  padding: 9px 10px;
  border-radius: 10px;
  background: #f8fafc;
  border: 1px solid #eef1f6;
  opacity: 0;
  transform: translateX(-12px);
  transition: opacity 0.4s ease, transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}
.wrply-root.wrply-animated .wrply-prow { opacity: 1; transform: translateX(0); }
.wrply-root.wrply-animated .wrply-prow[data-row="0"] { transition-delay: 0.05s; }
.wrply-root.wrply-animated .wrply-prow[data-row="1"] { transition-delay: 0.12s; }
.wrply-root.wrply-animated .wrply-prow[data-row="2"] { transition-delay: 0.19s; }
.wrply-root.wrply-animated .wrply-prow[data-row="3"] { transition-delay: 0.26s; }
.wrply-root.wrply-animated .wrply-prow[data-row="4"] { transition-delay: 0.33s; }
.wrply-root.wrply-animated .wrply-prow[data-row="5"] { transition-delay: 0.4s; }
.wrply-zone {
  font-size: 13px;
  font-weight: 800;
  color: #47577c;
}
.wrply-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}
.wrply-p {
  font-size: 11px;
  font-weight: 700;
  padding: 3px 7px;
  border-radius: 5px;
  white-space: nowrap;
  font-family: "Inter", monospace;
}
.wrply-t {
  background: #ebedf5;
  color: #47577c;
}
.wrply-u {
  background: #fdecea;
  color: #bf3425;
  border: 1px solid #f5d5d0;
}
.wrply-more {
  background: transparent;
  color: #9d9d9c;
  font-style: italic;
  font-weight: 600;
}
.wrply-count {
  font-size: 12px;
  font-weight: 700;
  color: #64748b;
  text-align: right;
  white-space: nowrap;
}
@media (max-width: 640px) {
  .wrply-root { padding: 20px 16px; }
  .wrply-prow {
    grid-template-columns: 1fr auto;
    grid-template-areas: "zone count" "stack stack";
    gap: 8px;
  }
  .wrply-zone { grid-area: zone; }
  .wrply-count { grid-area: count; }
  .wrply-stack { grid-area: stack; }
}

/* ============================================================
   BLOCK 8 — wrmass · horizontal bar chart
   ============================================================ */
.wrmass-root {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.07);
  padding: 28px;
  max-width: 860px;
  margin: 0 auto;
  overflow: hidden;
}
.wrmass-eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #9d9d9c;
  margin: 0 0 8px;
}
.wrmass-title {
  font-size: 20px;
  font-weight: 700;
  color: #47577c;
  margin: 0 0 6px;
}
.wrmass-subtitle {
  font-size: 13px;
  color: #9d9d9c;
  margin: 0 0 26px;
  line-height: 1.5;
}
.wrmass-row {
  display: grid;
  grid-template-columns: 148px 1fr 60px;
  align-items: center;
  gap: 12px;
  padding: 8px 0;
  border-radius: 8px;
  transition: background 0.18s;
}
.wrmass-row:hover { background: #f8fafc; }
.wrmass-label {
  font-size: 13px;
  font-weight: 600;
  color: #47577c;
  text-align: right;
  line-height: 1.3;
}
.wrmass-label em {
  font-style: normal;
  font-weight: 500;
  color: #9d9d9c;
  font-size: 11px;
  display: block;
}
.wrmass-row-base .wrmass-label { color: #bf3425; }
.wrmass-bar-track {
  background: #f1f5f9;
  border-radius: 6px;
  height: 32px;
  overflow: hidden;
}
.wrmass-bar-fill {
  height: 100%;
  border-radius: 6px;
  width: 0;
  transition: width 1.1s cubic-bezier(0.22, 1, 0.36, 1);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: 12px;
}
.wrmass-fill-alt { background: #47577c; }
.wrmass-fill-base { background: #bf3425; }
.wrmass-bar-val {
  font-size: 12px;
  font-weight: 800;
  color: #fff;
  opacity: 0;
  transition: opacity 0.3s 0.7s;
  white-space: nowrap;
}
.wrmass-root.wrmass-animated .wrmass-bar-val { opacity: 1; }
.wrmass-delta {
  font-size: 13px;
  font-weight: 800;
  color: #9d9d9c;
  text-align: right;
}
.wrmass-delta-base {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #bf3425;
}
.wrmass-foot {
  font-size: 11.5px;
  color: #64748b;
  line-height: 1.5;
  margin: 12px 0 0;
  padding-top: 16px;
  border-top: 1px solid #f1f5f9;
}
@media (max-width: 640px) {
  .wrmass-root { padding: 20px 16px; }
  .wrmass-row {
    grid-template-columns: 1fr 52px;
    grid-template-areas: "label delta" "bar bar";
    gap: 6px 10px;
    padding: 10px 0;
  }
  .wrmass-label { grid-area: label; text-align: left; }
  .wrmass-label em { display: inline; }
  .wrmass-delta { grid-area: delta; }
  .wrmass-bar-track { grid-area: bar; }
}
