/* ============================================================
   Shape Standard — site layer on top of template 05 (Bloom)
   Only additive rules live here. The template stylesheet is untouched.
   ============================================================ */

:root {
  --ink-soft: #2b2437;
  --violet-deep: #4c1d95;
  --paper: #fffdfa;
  --measure-line: rgba(244, 63, 94, 0.55);
  --coral-deep: #be123c;
}

body {
  background: var(--paper);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1 0 auto;
}

.footer {
  flex-shrink: 0;
}

[hidden] {
  display: none !important;
}

.container {
  max-width: 1120px;
}

/* ---------- top bar ---------- */
.topbar {
  background: rgba(255, 253, 250, 0.94);
}

/* .topbar-inner shares the .container class; its own padding shorthand would
   otherwise remove the horizontal gutter. */
.topbar-inner {
  padding-left: 24px;
  padding-right: 24px;
}

.brand {
  letter-spacing: -0.01em;
}

.topnav a {
  font-size: 0.86rem;
}

.mobile-menu {
  display: none;
  position: relative;
  margin-left: auto;
}

.mobile-menu summary {
  list-style: none;
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--violet);
  background: var(--violet-soft);
  padding: 8px 14px;
  border-radius: 999px;
}

.mobile-menu summary::-webkit-details-marker {
  display: none;
}

.mobile-menu summary::after {
  content: ' ▾';
  font-size: 0.7rem;
}

.mobile-menu[open] summary::after {
  content: ' ▴';
}

.mobile-menu nav {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  z-index: 30;
  min-width: 190px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 18px 40px -20px rgba(76, 29, 149, 0.35);
  padding: 8px;
  display: grid;
  gap: 2px;
}

.mobile-menu nav a {
  padding: 9px 12px;
  border-radius: 8px;
  font-size: 0.88rem;
  color: var(--ink);
  text-decoration: none;
}

.mobile-menu nav a[aria-current='page'] {
  background: var(--violet-soft);
  color: var(--violet);
  font-weight: 700;
}

@media (max-width: 760px) {
  html {
    scroll-padding-top: 90px;
  }
  .footer-inner {
    padding-bottom: 72px;
  }
  .topbar-inner {
    flex-wrap: nowrap;
    gap: 8px;
    padding: 12px 18px;
  }
  .topnav {
    display: none;
  }
  .mobile-menu {
    display: block;
  }
}

@media (max-width: 560px) {
  .hero-meta > span:nth-child(even),
  .meta-row > span:nth-child(even) {
    display: none;
  }
  .hero-meta,
  .meta-row {
    gap: 6px 12px;
  }
}

/* ---------- hero ---------- */
.hero--compact {
  padding: 44px 0 66px;
}

.hero--compact h1 {
  max-width: 18ch;
  font-size: clamp(2.1rem, 4.6vw, 3.35rem);
}

.hero--compact .lede {
  max-width: 62ch;
  font-size: 1.06rem;
}

.hero .accent {
  color: var(--violet);
}

.hero-meta {
  font-variant-numeric: tabular-nums;
}

/* ---------- calculator shell ---------- */
.calc-shell {
  position: relative;
  z-index: 2;
  margin-top: -38px;
  padding-bottom: 12px;
}

.calc-grid {
  display: grid;
  grid-template-columns: 1.02fr 0.98fr;
  gap: 0;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 24px 70px -32px rgba(76, 29, 149, 0.35);
  overflow: hidden;
}

.calc-form {
  padding: 30px 32px 28px;
}

.calc-form-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 18px;
  margin-bottom: 22px;
}

.calc-form-head h2 {
  font-size: 1.35rem;
  margin-top: 2px;
}

.calc-form .kicker {
  margin-bottom: 8px;
  font-size: 0.72rem;
}

.unit-toggle {
  display: inline-flex;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--bg-soft);
  flex-shrink: 0;
}

.unit-toggle button {
  border: 0;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 999px;
  cursor: pointer;
}

.unit-toggle button[aria-pressed='true'] {
  background: #fff;
  color: var(--violet);
  box-shadow: 0 2px 8px rgba(76, 29, 149, 0.12);
}

.field-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 5px;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px 14px 10px;
  background: #fff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.field:focus-within {
  border-color: var(--violet);
  box-shadow: 0 0 0 4px rgba(109, 40, 217, 0.09);
}

.field-label {
  display: flex;
  align-items: baseline;
  gap: 6px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.field-unit {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--faint);
}

.field input {
  border: 0;
  outline: 0;
  background: transparent;
  font-family: var(--font-head);
  font-size: 1.55rem;
  font-weight: 700;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  width: 100%;
  padding: 0;
  appearance: textfield;
}

.field input::-webkit-outer-spin-button,
.field input::-webkit-inner-spin-button {
  appearance: none;
  margin: 0;
}

.field input::placeholder {
  color: #c9c1d8;
  font-weight: 600;
}

.field-hint {
  font-size: 0.72rem;
  line-height: 1.35;
  color: var(--faint);
}

.field-hint a {
  color: var(--violet);
  font-weight: 600;
}

.calc-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.btn-primary,
.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 700;
  padding: 11px 18px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}

.btn-primary {
  background: var(--violet);
  color: #fff;
}

.btn-primary:hover {
  background: var(--violet-deep);
  color: #fff;
  transform: translateY(-1px);
}

.btn-ghost {
  background: #fff;
  color: var(--ink);
  border-color: var(--line-strong);
}

.btn-ghost:hover {
  border-color: var(--violet);
  color: var(--violet);
  background: var(--violet-soft);
}

.form-error {
  margin-top: 12px;
  font-size: 0.84rem;
  color: #b42318;
  background: #fef3f2;
  border: 1px solid #fecdca;
  border-radius: 10px;
  padding: 9px 12px;
}

.privacy-note {
  margin-top: 12px;
  font-size: 0.75rem;
  color: var(--faint);
}

.measure-tips {
  margin-top: 18px;
  border-top: 1px solid var(--line);
  padding-top: 14px;
}

.measure-tips__title {
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 7px;
}

.measure-tips ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 5px;
}

.measure-tips li {
  position: relative;
  padding-left: 15px;
  font-size: 0.76rem;
  line-height: 1.4;
  color: var(--muted);
}

.measure-tips li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.5em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--coral);
}

/* ---------- result panel ---------- */
.calc-result {
  border-left: 1px solid var(--line);
  background:
    radial-gradient(120% 80% at 100% 0%, rgba(109, 40, 217, 0.07), transparent 60%),
    linear-gradient(180deg, #fbf9ff 0%, #fff 55%);
  padding: 30px 32px 28px;
  min-height: 430px;
}

.result-empty {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  min-height: 370px;
  padding-top: 6px;
}

.empty-figure {
  width: 110px;
  height: auto;
  margin-bottom: 16px;
  opacity: 0.85;
}

.empty-kicker {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--coral-deep);
  margin-bottom: 4px;
}

.result-empty h3 {
  font-size: 1.25rem;
  margin-bottom: 8px;
}

.result-empty p:last-child {
  color: var(--muted);
  font-size: 0.9rem;
  max-width: 36ch;
}

.result-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  animation: resultIn 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes resultIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  .result-card { animation: none; }
}

.result-head {
  border-bottom: 1px solid var(--line);
  padding-bottom: 10px;
}

.result-eyebrow {
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--violet);
  margin-bottom: 3px;
}

.result-head h3 {
  font-size: 1.9rem;
  letter-spacing: -0.025em;
}

.result-figure {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 16px;
  align-items: center;
}

.result-figure svg {
  width: 100%;
  max-width: 150px;
  height: auto;
}

.result-ratios {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 0;
}

.result-ratios > div {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 7px 9px;
  background: rgba(255, 255, 255, 0.72);
}

.result-ratios dt {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--faint);
}

.result-ratios dd {
  margin: 0;
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
}

.result-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.result-rule {
  font-size: 0.91rem;
  line-height: 1.55;
  color: var(--ink-soft);
}

.result-boundary,
.result-sensitivity,
.result-diff,
.result-highhip {
  font-size: 0.8rem;
  line-height: 1.5;
  color: var(--muted);
  border-left: 3px solid var(--line-strong);
  padding: 2px 0 2px 10px;
}

.result-boundary {
  border-left-color: var(--coral);
}

.result-diff {
  border-left-color: var(--violet);
  color: var(--ink-soft);
}

.result-highhip {
  border-left-color: var(--coral);
  color: var(--ink-soft);
  background: var(--coral-soft);
  border-radius: 0 8px 8px 0;
  padding: 8px 10px;
}

.result-note {
  font-size: 0.78rem;
  color: var(--faint);
  line-height: 1.5;
  padding-top: 4px;
}

.result-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 2px;
}

.result-actions .btn-ghost {
  font-size: 0.8rem;
  padding: 8px 12px;
}

.link-button {
  border: 0;
  background: transparent;
  color: var(--violet);
  font: inherit;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
  padding: 0;
}

@media (max-width: 960px) {
  .calc-grid {
    grid-template-columns: 1fr;
  }
  .calc-result {
    border-left: 0;
    border-top: 1px solid var(--line);
    min-height: 0;
  }
  .result-empty {
    min-height: 0;
    align-items: center;
    text-align: center;
  }
  .result-empty p:last-child {
    margin: 0 auto;
  }
}

@media (max-width: 560px) {
  .calc-form,
  .calc-result {
    padding: 22px 20px;
  }
  .field-grid {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }
  .field {
    padding: 10px 12px 8px;
  }
  .field input {
    font-size: 1.3rem;
  }
  .field-label {
    font-size: 0.64rem;
    flex-wrap: wrap;
    gap: 4px;
  }
  .field-hint {
    font-size: 0.68rem;
  }
  .calc-form-head {
    flex-direction: column;
    gap: 12px;
  }
  .result-figure {
    grid-template-columns: 120px 1fr;
  }
}

/* ---------- mobile result bar ---------- */
.mobile-result-bar {
  display: none;
}

@media (max-width: 960px) {
  .back-top {
    bottom: 18px;
  }
  body:has(.mobile-result-bar:not([hidden])) .back-top {
    bottom: 78px;
  }
  .mobile-result-bar:not([hidden]) {
    display: flex;
    position: sticky;
    bottom: 10px;
    z-index: 25;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin: 12px 18px 0;
    padding: 10px 14px;
    border: 1px solid var(--line-strong);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 10px 30px -14px rgba(76, 29, 149, 0.4);
    backdrop-filter: blur(8px);
  }
  .mobile-result-bar span {
    display: block;
    font-size: 0.58rem;
    font-weight: 800;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    color: var(--coral);
  }
  .mobile-result-bar strong {
    font-family: var(--font-head);
    font-size: 0.95rem;
    color: var(--ink);
  }
  .mobile-result-bar button {
    border: 0;
    border-radius: 999px;
    background: var(--violet);
    color: #fff;
    font: inherit;
    font-size: 0.78rem;
    font-weight: 700;
    padding: 8px 12px;
    cursor: pointer;
    white-space: nowrap;
  }
}

/* ---------- interior page head ---------- */
.page-head {
  padding: 8px 0 34px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, #fbf8ff 0%, rgba(255, 253, 250, 0) 100%);
}

.page-head h1 {
  font-size: clamp(1.9rem, 4vw, 2.9rem);
  max-width: 22ch;
  margin-bottom: 12px;
}

.page-head .lede {
  max-width: 68ch;
  color: var(--muted);
  font-size: 1.02rem;
}

.page-head .meta-row {
  margin-top: 14px;
}

.page-body {
  padding: 34px 0 50px;
}

/* ---------- editorial sections ---------- */
.section {
  padding: 54px 0;
}

.section--tight {
  padding: 34px 0;
}

.section-head {
  max-width: 760px;
  margin-bottom: 24px;
}

.section-head h2 {
  font-size: clamp(1.5rem, 3vw, 2.05rem);
  margin-bottom: 10px;
}

.section-head p {
  color: var(--muted);
  font-size: 1rem;
  max-width: 66ch;
}

.eyebrow {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--coral-deep);
  margin-bottom: 8px;
}

.prose-wide {
  max-width: 860px;
  margin: 0 auto;
}

.prose-wide h2 {
  margin: 36px 0 12px;
  font-size: 1.55rem;
}

.prose-wide h3 {
  margin: 26px 0 8px;
  font-size: 1.15rem;
}

.prose-wide p {
  margin-bottom: 15px;
  color: var(--ink-soft);
}

.prose-wide ul,
.prose-wide ol {
  margin: 0 0 18px 20px;
  color: var(--ink-soft);
}

.prose-wide li {
  margin-bottom: 7px;
}

.prose-wide a {
  font-weight: 600;
}

.note-box,
.warn-box {
  border-radius: 14px;
  padding: 16px 18px;
  margin: 22px 0;
  font-size: 0.92rem;
  line-height: 1.55;
}

.note-box {
  background: var(--violet-soft);
  border: 1px solid #e6dcff;
}

.warn-box {
  background: #fff8ed;
  border: 1px solid #fde3b8;
}

.note-box strong,
.warn-box strong {
  color: var(--ink);
}

.formula {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.82rem;
  line-height: 1.7;
  background: #1c1726;
  color: #f4efff;
  border-radius: 12px;
  padding: 16px 18px;
  overflow-x: auto;
  margin: 18px 0;
}

/* ---------- shape cards ---------- */
.shape-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.shape-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 18px;
  background: #fff;
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.shape-card:hover {
  transform: translateY(-3px);
  border-color: var(--line-strong);
  box-shadow: 0 18px 40px -26px rgba(76, 29, 149, 0.3);
  color: inherit;
}

.shape-card .shape-figure {
  margin: 0 auto;
  width: 96px;
}

.shape-card h3 {
  font-size: 1.02rem;
  margin: 0;
}

.shape-card p {
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.45;
  margin: 0;
}

.shape-card .shape-card__meta {
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--coral-deep);
}

@media (max-width: 900px) {
  .shape-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 560px) {
  .shape-grid {
    grid-template-columns: 1fr;
  }
}

/* ---------- figure component ---------- */
.shape-figure {
  margin: 0;
  text-align: center;
}

.shape-figure svg {
  width: 100%;
  height: auto;
  display: block;
}

.shape-figure figcaption {
  font-size: 0.7rem;
  color: var(--faint);
  margin-top: 4px;
}

.shape-figure--compact figcaption {
  display: none;
}

/* ---------- chart / detail ---------- */
.shape-detail {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 30px;
  align-items: start;
  padding: 34px 0;
  border-top: 1px solid var(--line);
  scroll-margin-top: 0;
}

.shape-detail:first-of-type {
  border-top: 0;
}

.shape-detail__figure {
  position: sticky;
  top: 90px;
}

.shape-detail h2 {
  font-size: 1.5rem;
  margin-bottom: 4px;
}

.shape-detail__family {
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--coral-deep);
  margin-bottom: 10px;
}

.shape-detail p {
  color: var(--ink-soft);
  margin-bottom: 12px;
}

.shape-detail .rule-line {
  font-size: 0.84rem;
  background: var(--bg-soft);
  border-radius: 10px;
  padding: 10px 12px;
  color: var(--muted);
}

@media (max-width: 760px) {
  .shape-detail {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .shape-detail__figure {
    position: static;
    max-width: 180px;
  }
}

/* ---------- tables ---------- */
.table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 20px 0;
  border: 1px solid var(--line);
  border-radius: 14px;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
  font-variant-numeric: tabular-nums;
  background: #fff;
}

.data-table th,
.data-table td {
  padding: 11px 14px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.data-table th {
  background: var(--bg-soft);
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--violet);
  white-space: nowrap;
}

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

.data-table td:first-child {
  font-weight: 700;
}

.data-table code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.76rem;
  line-height: 1.55;
  color: var(--ink-soft);
}

.formula-note {
  margin-top: 4px;
  font-size: 0.72rem;
  color: var(--faint);
}

@media (max-width: 640px) {
  .data-table {
    min-width: 620px;
  }
}

/* ---------- steps ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  counter-reset: step;
  margin: 22px 0;
}

.step {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px;
  background: #fff;
}

.step::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  display: block;
  font-family: var(--font-head);
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--coral-deep);
  margin-bottom: 6px;
}

.step h3 {
  font-size: 0.98rem;
  margin: 0 0 5px;
}

.step p {
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.45;
  margin: 0;
}

@media (max-width: 860px) {
  .steps {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 520px) {
  .steps {
    grid-template-columns: 1fr;
  }
}

/* ---------- breadcrumbs ---------- */
.breadcrumbs {
  padding-top: 22px;
  font-size: 0.76rem;
  color: var(--faint);
}

.breadcrumbs ol {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
  padding: 0;
}

.breadcrumbs li {
  display: inline-flex;
  gap: 6px;
  align-items: center;
}

.breadcrumbs a {
  color: var(--muted);
  text-decoration: none;
}

.breadcrumbs a:hover {
  color: var(--violet);
}

.breadcrumbs__sep {
  color: var(--line-strong);
}

/* ---------- FAQ ---------- */
.faq-block {
  padding: 40px 0 10px;
}

.faq-block h2 {
  margin-bottom: 14px;
}

.faq-list {
  border-top: 1px solid var(--line);
}

.faq-list details {
  border-bottom: 1px solid var(--line);
}

.faq-list summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 15px 0;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--ink);
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary::after {
  content: '+';
  font-size: 1.15rem;
  color: var(--violet);
  line-height: 1;
  flex-shrink: 0;
}

.faq-list details[open] summary::after {
  content: '−';
}

.faq-list details p {
  padding: 0 0 16px;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.6;
  max-width: 72ch;
}

/* ---------- sources ---------- */
.source-list {
  counter-reset: source;
  list-style: none;
  margin: 18px 0 0;
  padding: 0;
}

.source-list li {
  counter-increment: source;
  position: relative;
  padding: 0 0 14px 30px;
  font-size: 0.84rem;
  line-height: 1.55;
  color: var(--muted);
}

.source-list li::before {
  content: '[' counter(source) ']';
  position: absolute;
  left: 0;
  top: 0;
  font-weight: 700;
  color: var(--violet);
  font-variant-numeric: tabular-nums;
}

.source-list a {
  color: var(--violet);
  word-break: break-word;
}

/* ---------- about / meta ---------- */
.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  font-size: 0.78rem;
  color: var(--faint);
  margin-top: 10px;
}

.meta-row strong {
  color: var(--ink-soft);
}

.author-box {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 18px 20px;
  background: #fff;
  margin: 24px 0;
}

.author-box p {
  font-size: 0.88rem;
  color: var(--muted);
  margin: 0;
}

/* ---------- footer ---------- */
.footer {
  margin-top: 40px;
}

.footer a {
  text-decoration: none;
}

@media print {
  .topbar,
  .footer,
  .back-top,
  .calc-form,
  .result-actions,
  .breadcrumbs {
    display: none !important;
  }
  .calc-grid {
    display: block;
    box-shadow: none;
  }
  .calc-result {
    border: 0;
  }
  .shape-detail__figure {
    position: static;
  }
  body {
    background: #fff;
  }
}
