/* ==========================================================================
   时间计算器 · apexhotelfurniture.com
   视觉语言：白色纸面、墨色文字、青绿主色、朱红/黄/深蓝分隔色块、零圆角
   ========================================================================== */

:root {
  --teal: #02ad9f;
  --teal-dark: #01746b;
  --teal-tint: #e8f7f4;
  --red: #e8324b;
  --yellow: #fabe04;
  --blue: #0d3558;
  --ink: #1a1a1a;
  --ink-soft: #333333;
  --text: #1a1a1a;
  --text-soft: #4f4f4f;
  --muted: #626262;
  --line: #d6d6d1;
  --line-dark: #b8b8b2;
  --paper: #ffffff;
  --paper-soft: #f4f4f0;
  --paper-warm: #faf9f5;
  --shadow: 0 0 6px rgba(0, 0, 0, 0.12);
  --shadow-lift: 8px 8px 0 rgba(2, 173, 159, 0.16);
  --font-sans: "Noto Sans SC", "Noto Sans JP", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --font-num: "Montserrat", "Helvetica Neue", "Arial Narrow", Arial, sans-serif;
  --container: 1280px;
  --gutter: 24px;
  --header-h: 78px;
  --ease: cubic-bezier(0.3, 0, 0.3, 1);
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 20px);
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body.is-locked {
  overflow: hidden;
}

h1,
h2,
h3,
h4,
p,
ul,
ol,
dl,
figure,
blockquote {
  margin: 0;
}

ul,
ol {
  padding: 0;
  list-style: none;
}

h1,
h2,
h3,
h4 {
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

a {
  color: var(--ink);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: opacity 0.3s var(--ease), color 0.3s var(--ease), text-decoration-color 0.3s var(--ease);
}

a:hover {
  opacity: 0.7;
}

img,
svg {
  display: block;
  max-width: 100%;
}

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

button {
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
}

::selection {
  background: var(--teal);
  color: var(--ink);
}

:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 3px;
}

.container {
  width: min(calc(100% - var(--gutter) * 2), var(--container));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  top: -100px;
  left: 16px;
  z-index: 1000;
  padding: 10px 16px;
  background: var(--ink);
  color: #fff;
  text-decoration: none;
}

.skip-link:focus {
  top: 12px;
  opacity: 1;
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.97);
  border-bottom: 1px solid var(--line);
}

@supports (backdrop-filter: blur(12px)) {
  .site-header {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
  }
}

.header-inner {
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  min-height: 44px;
  text-decoration: none;
  flex: 0 0 auto;
}

.brand:hover {
  opacity: 1;
}

.brand-mark {
  display: block;
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
}

.brand-mark svg {
  width: 100%;
  height: 100%;
}

.brand-text {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.brand-text strong {
  font-size: 17px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0.02em;
}

.brand-text small {
  color: var(--muted);
  font-family: var(--font-num);
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 0.18em;
  line-height: 1.2;
}

.site-nav {
  margin-left: auto;
}

.site-nav ul {
  display: flex;
  align-items: center;
  gap: 2px;
}

.nav-link {
  position: relative;
  display: block;
  padding: 26px 9px;
  color: var(--ink-soft);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
  text-decoration: none;
  white-space: nowrap;
}

.nav-link::after {
  content: "";
  position: absolute;
  right: 9px;
  bottom: -1px;
  left: 9px;
  height: 3px;
  background: var(--teal);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease);
}

.nav-link:hover {
  opacity: 1;
  color: var(--teal-dark);
}

.nav-link:hover::after,
.nav-link.is-active::after {
  transform: scaleX(1);
}

.nav-link.is-active {
  color: var(--ink);
  font-weight: 600;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  margin-left: auto;
  padding: 11px;
  background: transparent;
  border: 1px solid var(--line-dark);
}

.nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  margin: 4px 0;
  background: var(--ink);
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}

.site-header.is-open .nav-toggle span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.site-header.is-open .nav-toggle span:nth-child(2) {
  opacity: 0;
}

.site-header.is-open .nav-toggle span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

/* ---------- Typography helpers ---------- */

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--teal-dark);
  font-family: var(--font-num);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 24px;
  height: 2px;
  background: currentColor;
}

.eyebrow--light {
  color: var(--yellow);
}

.eyebrow--on-teal {
  color: var(--ink);
}

.section {
  padding: 88px 0;
}

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

.section--soft {
  background: var(--paper-soft);
}

.section--lined {
  border-top: 1px solid var(--line);
}

.section-head {
  margin-bottom: 40px;
}

.section-title {
  max-width: 880px;
  margin-top: 14px;
  font-size: clamp(32px, 4vw, 48px);
  line-height: 1.13;
  letter-spacing: -0.035em;
}

.section-lede {
  max-width: 720px;
  margin-top: 18px;
  color: var(--text-soft);
  font-size: 17px;
  line-height: 1.8;
}

.section-head--split {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 40px;
}

.section-head--split .section-lede {
  max-width: 460px;
  margin: 0 0 3px;
  font-size: 15px;
}

.mono {
  font-family: var(--font-num);
  font-variant-numeric: tabular-nums;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid var(--ink);
  transition: color 0.3s var(--ease), border-color 0.3s var(--ease), gap 0.3s var(--ease);
}

.text-link::after {
  content: "→";
  font-family: var(--font-num);
}

.text-link:hover {
  opacity: 1;
  gap: 12px;
  color: var(--teal-dark);
  border-color: var(--teal-dark);
}

.text-link--light {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.6);
}

.text-link--light:hover {
  color: var(--yellow);
  border-color: var(--yellow);
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 48px;
  padding: 12px 24px;
  border: 1px solid var(--ink);
  background: transparent;
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  text-align: center;
  text-decoration: none;
  transition: background-color 0.3s var(--ease), color 0.3s var(--ease),
    border-color 0.3s var(--ease), opacity 0.3s var(--ease);
}

.btn:hover {
  opacity: 1;
}

.btn svg {
  width: 17px;
  height: 17px;
  flex: 0 0 auto;
}

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

.btn--primary:hover {
  background: var(--teal);
  border-color: var(--teal);
  color: var(--ink);
}

.btn--teal {
  background: var(--teal);
  border-color: var(--teal);
  color: var(--ink);
}

.btn--teal:hover {
  background: var(--yellow);
  border-color: var(--yellow);
}

.btn--outline:hover {
  background: var(--ink);
  color: #fff;
}

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

.btn--white:hover {
  background: var(--yellow);
  border-color: var(--yellow);
}

.btn--outline-light {
  border-color: rgba(255, 255, 255, 0.55);
  color: #fff;
}

.btn--outline-light:hover {
  background: #fff;
  border-color: #fff;
  color: var(--ink);
}

.btn--small {
  min-height: 38px;
  padding: 7px 14px;
  font-size: 13px;
}

.btn--block {
  width: 100%;
}

.btn--text {
  min-height: 40px;
  padding: 6px 0;
  border: 0;
  border-bottom: 1px solid var(--ink);
}

/* ---------- Home hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(90deg, rgba(2, 173, 159, 0.05) 1px, transparent 1px) 0 0 / 88px 88px,
    linear-gradient(rgba(2, 173, 159, 0.05) 1px, transparent 1px) 0 0 / 88px 88px,
    var(--paper);
}

.hero::before {
  content: "";
  position: absolute;
  top: 72px;
  right: -180px;
  width: 560px;
  height: 560px;
  border: 1px solid rgba(2, 173, 159, 0.35);
  border-radius: 50%;
  pointer-events: none;
}

.hero::after {
  content: "";
  position: absolute;
  top: 172px;
  right: -80px;
  width: 360px;
  height: 360px;
  border: 1px dashed rgba(26, 26, 26, 0.16);
  border-radius: 50%;
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  padding: 66px 0 78px;
}

.hero-head {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 40px;
}

.hero-kicker {
  margin-bottom: 20px;
}

.hero h1 {
  max-width: 850px;
  font-size: clamp(54px, 7vw, 92px);
  font-weight: 600;
  line-height: 0.98;
  letter-spacing: -0.055em;
}

.hero h1 .title-mark {
  position: relative;
  display: inline-block;
  z-index: 0;
}

.hero h1 .title-mark::after {
  content: "";
  position: absolute;
  right: -4px;
  bottom: 8px;
  left: 2px;
  z-index: -1;
  height: 13px;
  background: var(--yellow);
}

.hero-lead {
  max-width: 700px;
  margin-top: 24px;
  color: var(--text-soft);
  font-size: 17px;
  line-height: 1.8;
}

.hero-aside {
  display: flex;
  flex-direction: column;
  gap: 13px;
  padding-bottom: 9px;
  font-family: var(--font-num);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.13em;
  line-height: 1.5;
  text-align: right;
  text-transform: uppercase;
  color: var(--muted);
}

.hero-aside span {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 7px;
}

.hero-aside span::before {
  content: "";
  width: 5px;
  height: 5px;
  background: var(--teal);
}

.hero .calc-shell {
  margin-top: 44px;
}

/* ---------- Calculator shell ---------- */

.calc-shell {
  position: relative;
  background: var(--paper);
  border: 1px solid var(--ink);
  box-shadow: var(--shadow-lift);
}

.calc-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 45px;
  padding: 10px 24px;
  background: var(--paper-warm);
  border-bottom: 1px solid var(--ink);
  font-family: var(--font-num);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.14em;
  line-height: 1.4;
  text-transform: uppercase;
}

.calc-top-label {
  display: inline-flex;
  align-items: center;
  gap: 9px;
}

.calc-top-label::before {
  content: "";
  width: 7px;
  height: 7px;
  background: var(--teal);
}

.calc-top-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  letter-spacing: 0.08em;
}

.calc-top-status::before {
  content: "";
  width: 5px;
  height: 5px;
  border: 1px solid var(--teal);
}

.calc-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(0, 0.94fr);
  min-height: 390px;
}

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

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

.calc-form-head h2,
.calc-form-head h3 {
  font-size: 22px;
  letter-spacing: -0.02em;
}

.calc-form-head p {
  margin-top: 6px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.calc-badge {
  flex: 0 0 auto;
  padding: 3px 8px;
  background: var(--yellow);
  color: var(--ink);
  font-family: var(--font-num);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.1em;
  line-height: 1.5;
  text-transform: uppercase;
}

.date-pair {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 44px minmax(0, 1fr);
  align-items: end;
  gap: 12px;
}

.field {
  min-width: 0;
}

.field + .field {
  margin-top: 18px;
}

.field-label {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
}

.field-label .optional,
.field-hint {
  color: var(--muted);
  font-size: 12px;
  font-weight: 400;
}

.field-hint {
  margin-top: 7px;
  line-height: 1.6;
}

.input,
.select,
.textarea {
  width: 100%;
  min-height: 54px;
  padding: 10px 14px;
  background: #fff;
  border: 1px solid var(--line-dark);
  border-radius: 0;
  color: var(--ink);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.5;
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.input--date,
.input--time,
.input--datetime {
  font-family: var(--font-num);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.input--number {
  font-family: var(--font-num);
  font-size: 22px;
  font-weight: 600;
}

.input::placeholder,
.textarea::placeholder {
  color: #8a8a8a;
  font-family: var(--font-sans);
  font-weight: 400;
}

.input:hover,
.select:hover,
.textarea:hover {
  border-color: var(--ink);
}

.input:focus,
.select:focus,
.textarea:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 2px rgba(2, 173, 159, 0.22);
}

.input:disabled,
.select:disabled,
.textarea:disabled {
  background: var(--paper-soft);
  color: var(--muted);
  border-color: var(--line);
}

.select {
  appearance: none;
  padding-right: 42px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%231a1a1a' stroke-width='1.5' d='m3 6 5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 16px;
}

.textarea {
  min-height: 94px;
  resize: vertical;
  font-family: var(--font-num);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.7;
}

.swap-btn {
  display: grid;
  place-items: center;
  width: 44px;
  height: 54px;
  margin-bottom: 0;
  background: var(--paper-soft);
  border: 1px solid var(--line-dark);
  color: var(--ink);
  transition: background-color 0.3s var(--ease), border-color 0.3s var(--ease),
    transform 0.3s var(--ease);
}

.swap-btn svg {
  width: 19px;
  height: 19px;
}

.swap-btn:hover {
  background: var(--teal-tint);
  border-color: var(--teal);
  transform: rotate(180deg);
}

.form-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 24px;
  align-items: center;
  margin-top: 18px;
}

.check {
  display: inline-flex;
  align-items: flex-start;
  gap: 9px;
  min-height: 28px;
  color: var(--text-soft);
  font-size: 13px;
  line-height: 1.55;
  cursor: pointer;
}

.check input {
  width: 17px;
  height: 17px;
  margin: 2px 0 0;
  accent-color: var(--teal);
  flex: 0 0 auto;
}

.check strong {
  color: var(--ink);
  font-weight: 600;
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 24px;
}

.form-message {
  min-height: 23px;
  margin-top: 10px;
  color: var(--teal-dark);
  font-size: 13px;
  line-height: 1.6;
}

.form-message.is-error {
  color: var(--red);
}

.form-message:empty {
  min-height: 0;
  margin-top: 0;
}

.form-note {
  margin-top: 14px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.65;
}

.quick-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  margin-top: 18px;
}

.quick-label {
  margin-right: 3px;
  color: var(--muted);
  font-size: 12px;
}

.quick-btn {
  min-height: 31px;
  padding: 5px 10px;
  background: transparent;
  border: 1px solid var(--line);
  color: var(--text-soft);
  font-family: var(--font-num);
  font-size: 11px;
  font-weight: 600;
  line-height: 1.4;
  transition: background-color 0.3s var(--ease), border-color 0.3s var(--ease),
    color 0.3s var(--ease);
}

.quick-btn:hover {
  background: var(--teal-tint);
  border-color: var(--teal);
  color: var(--ink);
}

.segmented {
  display: flex;
  border: 1px solid var(--line-dark);
}

.segment {
  position: relative;
  flex: 1 1 0;
  min-width: 0;
}

.segment + .segment {
  border-left: 1px solid var(--line-dark);
}

.segment input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.segment span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 8px 10px;
  font-size: 13px;
  font-weight: 600;
  text-align: center;
  transition: background-color 0.3s var(--ease), color 0.3s var(--ease);
  cursor: pointer;
}

.segment input:checked + span {
  background: var(--ink);
  color: #fff;
}

.segment input:focus-visible + span {
  outline: 2px solid var(--teal);
  outline-offset: -3px;
}

.segment input:disabled + span {
  color: var(--muted);
  cursor: not-allowed;
}

/* Result panel */

.calc-result {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  padding: 30px 32px;
  overflow: hidden;
  background: var(--ink);
  color: #fff;
}

.calc-result::after {
  content: "";
  position: absolute;
  right: -95px;
  bottom: -105px;
  width: 300px;
  height: 300px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 50%;
  pointer-events: none;
}

.calc-result > * {
  position: relative;
  z-index: 1;
}

.result-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 17px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.19);
}

.result-label {
  color: rgba(255, 255, 255, 0.72);
  font-family: var(--font-num);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.14em;
  line-height: 1.5;
  text-transform: uppercase;
}

.result-live {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--teal);
  font-family: var(--font-num);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.result-live::before {
  content: "";
  width: 5px;
  height: 5px;
  background: var(--teal);
}

.result-main {
  display: flex;
  flex: 1;
  flex-direction: column;
  justify-content: center;
  padding: 24px 0;
}

.result-number {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 9px;
  color: #fff;
  font-family: var(--font-num);
  font-size: clamp(62px, 8vw, 92px);
  font-weight: 500;
  line-height: 0.96;
  letter-spacing: -0.06em;
  font-variant-numeric: tabular-nums;
}

.result-number .unit {
  font-family: var(--font-sans);
  font-size: 20px;
  font-weight: 500;
  letter-spacing: 0;
  color: var(--teal);
}

.result-number .unit--muted {
  color: rgba(255, 255, 255, 0.62);
  font-size: 15px;
}

.result-caption {
  margin-top: 12px;
  color: rgba(255, 255, 255, 0.75);
  font-size: 13px;
  line-height: 1.65;
}

.result-date {
  color: #fff;
  font-family: var(--font-num);
  font-size: clamp(30px, 4vw, 45px);
  font-weight: 500;
  line-height: 1.18;
  letter-spacing: -0.035em;
}

.result-date-cn {
  margin-top: 9px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
}

.result-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid rgba(255, 255, 255, 0.19);
}

.result-stat {
  padding: 14px 12px 0 0;
}

.result-stat:nth-child(even) {
  padding-right: 0;
  padding-left: 16px;
  border-left: 1px solid rgba(255, 255, 255, 0.13);
}

.result-stat:nth-child(n + 3) {
  margin-top: 13px;
  border-top: 1px solid rgba(255, 255, 255, 0.13);
  padding-top: 14px;
}

.result-stat dt {
  color: rgba(255, 255, 255, 0.55);
  font-size: 10px;
  font-weight: 500;
  line-height: 1.5;
}

.result-stat dd {
  margin: 3px 0 0;
  color: #fff;
  font-family: var(--font-num);
  font-size: 19px;
  font-weight: 500;
  line-height: 1.3;
  font-variant-numeric: tabular-nums;
}

.result-note {
  margin-top: 17px;
  padding-top: 13px;
  border-top: 1px solid rgba(255, 255, 255, 0.13);
  color: rgba(255, 255, 255, 0.55);
  font-size: 11px;
  line-height: 1.65;
}

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

.result-actions .btn {
  min-height: 37px;
  padding: 6px 12px;
  border-color: rgba(255, 255, 255, 0.35);
  color: #fff;
  font-size: 11px;
}

.result-actions .btn:hover {
  background: #fff;
  border-color: #fff;
  color: var(--ink);
}

.calc-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 20px;
  padding: 11px 24px;
  background: var(--paper-warm);
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 11px;
  line-height: 1.5;
}

.calc-foot span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.calc-foot span::before {
  content: "";
  width: 4px;
  height: 4px;
  background: var(--teal);
}

/* ---------- Value strip ---------- */

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

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

.value-item {
  display: flex;
  align-items: flex-start;
  gap: 13px;
  padding: 23px 22px;
  border-left: 1px solid var(--line);
}

.value-item:first-child {
  border-left: 0;
  padding-left: 0;
}

.value-item:last-child {
  padding-right: 0;
}

.value-item .index {
  color: var(--teal-dark);
  font-family: var(--font-num);
  font-size: 10px;
  font-weight: 700;
  line-height: 1.8;
  letter-spacing: 0.08em;
}

.value-item strong {
  display: block;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.45;
}

.value-item p {
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

/* ---------- Tool cards ---------- */

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

.tool-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 245px;
  padding: 26px 26px 22px;
  background: #fff;
  border: 1px solid var(--line);
  transition: border-color 0.3s var(--ease), transform 0.3s var(--ease),
    box-shadow 0.3s var(--ease);
}

.tool-card::before {
  content: "";
  position: absolute;
  top: -1px;
  left: -1px;
  width: 0;
  height: 3px;
  background: var(--teal);
  transition: width 0.35s var(--ease);
}

.tool-card:hover {
  border-color: var(--ink);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lift);
}

.tool-card:hover::before {
  width: calc(100% + 2px);
}

.tool-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 30px;
}

.tool-no {
  color: var(--muted);
  font-family: var(--font-num);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.13em;
}

.tool-tag {
  padding: 2px 7px;
  border: 1px solid var(--line);
  color: var(--muted);
  font-family: var(--font-num);
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.tool-card h3 {
  font-size: 23px;
  letter-spacing: -0.025em;
}

.tool-card h3 a {
  text-decoration: none;
}

.tool-card h3 a::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
}

.tool-card p {
  margin-top: 10px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}

.tool-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  padding-top: 25px;
  color: var(--ink);
  font-family: var(--font-num);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.tool-arrow {
  display: grid;
  place-items: center;
  width: 31px;
  height: 31px;
  background: var(--paper-soft);
  border: 1px solid var(--line);
  transition: background-color 0.3s var(--ease), border-color 0.3s var(--ease),
    color 0.3s var(--ease);
}

.tool-arrow svg {
  width: 14px;
  height: 14px;
}

.tool-card:hover .tool-arrow {
  background: var(--teal);
  border-color: var(--teal);
}

.tool-card--accent .tool-arrow {
  background: var(--yellow);
  border-color: var(--yellow);
}

/* ---------- Editorial split ---------- */

.editorial {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(260px, 0.7fr);
  gap: 60px;
  align-items: start;
}

.editorial-title {
  max-width: 760px;
  font-size: clamp(32px, 4.3vw, 52px);
  line-height: 1.1;
  letter-spacing: -0.04em;
}

.editorial-copy {
  max-width: 730px;
  margin-top: 25px;
  color: var(--text-soft);
  font-size: 16px;
  line-height: 1.9;
}

.editorial-copy p + p {
  margin-top: 18px;
}

.editorial-copy strong {
  color: var(--ink);
  font-weight: 600;
}

.editorial-aside {
  padding-top: 8px;
  border-top: 3px solid var(--ink);
}

.editorial-aside dl {
  margin: 0;
}

.editorial-aside div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
}

.editorial-aside dt {
  color: var(--muted);
  font-size: 12px;
}

.editorial-aside dd {
  margin: 0;
  font-family: var(--font-num);
  font-size: 13px;
  font-weight: 600;
  text-align: right;
}

.editorial-aside p {
  margin-top: 18px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.75;
}

/* ---------- Mosaic / use cases ---------- */

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

.mosaic-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 250px;
  padding: 30px;
  background: var(--paper-warm);
  border: 1px solid var(--line);
  overflow: hidden;
}

.mosaic-card::after {
  content: "";
  position: absolute;
  right: 24px;
  bottom: 24px;
  width: 44px;
  height: 44px;
  border: 1px solid currentColor;
  opacity: 0.22;
  pointer-events: none;
}

.mosaic-card--7 {
  grid-column: span 7;
}

.mosaic-card--5 {
  grid-column: span 5;
}

.mosaic-card--4 {
  grid-column: span 4;
}

.mosaic-card--8 {
  grid-column: span 8;
}

.mosaic-card--teal {
  background: var(--teal);
  border-color: var(--teal);
  color: var(--ink);
}

.mosaic-card--yellow {
  background: var(--yellow);
  border-color: var(--yellow);
  color: var(--ink);
}

.mosaic-card--blue {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
}

.mosaic-card--red {
  background: var(--red);
  border-color: var(--red);
  color: #fff;
}

.mosaic-no {
  font-family: var(--font-num);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.15em;
  opacity: 1;
}

.mosaic-card h3 {
  max-width: 470px;
  margin-top: 38px;
  font-size: clamp(23px, 2.5vw, 31px);
  line-height: 1.25;
  letter-spacing: -0.03em;
}

.mosaic-card p {
  max-width: 520px;
  margin-top: 11px;
  font-size: 13px;
  line-height: 1.75;
  opacity: 0.82;
}

.mosaic-card--blue p,
.mosaic-card--red p {
  opacity: 0.78;
}

.mosaic-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 26px;
  padding-top: 17px;
  border-top: 1px solid currentColor;
}

.mosaic-bottom span {
  font-family: var(--font-num);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 1;
}

.mosaic-bottom svg {
  width: 17px;
  height: 17px;
  opacity: 0.7;
}

/* ---------- Method / diagram ---------- */

.method {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.92fr);
  gap: 64px;
  align-items: start;
}

.method h2 {
  margin-top: 14px;
  font-size: clamp(32px, 4vw, 46px);
  letter-spacing: -0.035em;
}

.method-copy {
  margin-top: 22px;
  color: var(--text-soft);
  font-size: 16px;
  line-height: 1.9;
}

.method-copy p + p {
  margin-top: 17px;
}

.method-copy strong {
  color: var(--ink);
}

.formula {
  display: inline-block;
  padding: 2px 6px;
  background: var(--paper-soft);
  border: 1px solid var(--line);
  color: var(--ink);
  font-family: var(--font-num);
  font-size: 0.9em;
  font-style: normal;
  white-space: nowrap;
}

.diagram {
  border: 1px solid var(--ink);
  background: var(--paper-warm);
  box-shadow: 8px 8px 0 var(--paper-soft);
}

.diagram-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 13px 20px;
  border-bottom: 1px solid var(--line-dark);
  color: var(--muted);
  font-family: var(--font-num);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.diagram-body {
  padding: 6px 20px 20px;
}

.diagram-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
  padding: 19px 0;
  border-bottom: 1px solid var(--line);
}

.diagram-date {
  font-family: var(--font-num);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.diagram-arrow {
  color: var(--teal-dark);
  font-family: var(--font-num);
  font-size: 14px;
}

.diagram-chip {
  margin-left: auto;
  padding: 4px 8px;
  background: var(--ink);
  color: #fff;
  font-family: var(--font-num);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.06em;
}

.diagram-chip--teal {
  background: var(--teal);
  color: var(--ink);
}

.diagram-result {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  margin-top: 18px;
  background: var(--line);
  border: 1px solid var(--line);
}

.diagram-cell {
  padding: 16px;
  background: #fff;
}

.diagram-cell--teal {
  background: var(--teal-tint);
}

.diagram-cell span {
  display: block;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.5;
}

.diagram-cell strong {
  display: block;
  margin-top: 4px;
  font-family: var(--font-num);
  font-size: 29px;
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.04em;
}

.diagram-cell small {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 10px;
}

/* ---------- Table ---------- */

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  background: #fff;
  -webkit-overflow-scrolling: touch;
}

.data-table {
  width: 100%;
  min-width: 620px;
  border-collapse: collapse;
  text-align: left;
}

.data-table caption {
  padding: 15px 18px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
  text-align: left;
}

.data-table th {
  padding: 12px 18px;
  background: var(--ink);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.data-table td {
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  color: var(--text-soft);
  font-size: 13px;
  line-height: 1.6;
  vertical-align: top;
}

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

.data-table tbody tr:hover td {
  background: var(--teal-tint);
}

.data-table .num {
  font-family: var(--font-num);
  font-weight: 600;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.data-table .nowrap {
  white-space: nowrap;
}

/* ---------- FAQ ---------- */

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

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

.faq-item summary {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding: 22px 0;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.55;
  list-style: none;
  cursor: pointer;
}

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

.faq-item summary::after {
  content: "+";
  flex: 0 0 auto;
  width: 24px;
  height: 24px;
  margin-top: 1px;
  color: var(--teal-dark);
  font-family: var(--font-num);
  font-size: 23px;
  font-weight: 400;
  line-height: 22px;
  text-align: center;
  transition: transform 0.3s var(--ease);
}

.faq-item[open] summary::after {
  transform: rotate(45deg);
}

.faq-item summary:hover {
  color: var(--teal-dark);
}

.faq-answer {
  max-width: 900px;
  padding: 0 48px 24px 0;
  color: var(--text-soft);
  font-size: 15px;
  line-height: 1.85;
}

.faq-answer p + p {
  margin-top: 12px;
}

.faq-answer a {
  text-decoration-color: var(--teal);
}

/* ---------- Articles ---------- */

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

.article-card {
  display: flex;
  flex-direction: column;
  min-height: 270px;
  padding: 26px;
  background: #fff;
  border: 1px solid var(--line);
  transition: border-color 0.3s var(--ease), transform 0.3s var(--ease);
}

.article-card:hover {
  border-color: var(--ink);
  transform: translateY(-3px);
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px 10px;
  color: var(--muted);
  font-family: var(--font-num);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.04em;
  line-height: 1.5;
}

.article-meta span {
  color: var(--teal-dark);
  font-family: var(--font-sans);
  font-weight: 600;
}

.article-card h3 {
  margin-top: 18px;
  font-size: 21px;
  line-height: 1.4;
  letter-spacing: -0.02em;
}

.article-card h3 a {
  text-decoration: none;
}

.article-card p {
  margin-top: 10px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.75;
}

.article-card .article-more {
  margin-top: auto;
  padding-top: 22px;
  color: var(--ink);
  font-family: var(--font-num);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.article-card .article-more::after {
  content: " →";
  color: var(--teal-dark);
}

/* ---------- CTA ---------- */

.cta-band {
  position: relative;
  overflow: hidden;
  background: var(--ink);
  color: #fff;
}

.cta-band::before {
  content: "T+";
  position: absolute;
  right: -10px;
  bottom: -68px;
  color: rgba(255, 255, 255, 0.04);
  font-family: var(--font-num);
  font-size: 280px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.08em;
  pointer-events: none;
}

.cta-band::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: linear-gradient(90deg, var(--teal) 0 46%, var(--yellow) 46% 72%, var(--red) 72% 86%, var(--blue) 86%);
}

.cta-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) auto;
  align-items: end;
  gap: 48px;
  padding: 68px 0;
}

.cta-inner h2 {
  max-width: 760px;
  margin-top: 14px;
  font-size: clamp(31px, 4vw, 49px);
  line-height: 1.14;
  letter-spacing: -0.035em;
}

.cta-inner p {
  max-width: 660px;
  margin-top: 16px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 15px;
  line-height: 1.8;
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding-bottom: 3px;
}

/* ---------- Page hero & breadcrumb ---------- */

.breadcrumb-wrap {
  padding-top: 21px;
}

.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}

.breadcrumb li {
  display: inline-flex;
  align-items: center;
}

.breadcrumb li + li::before {
  content: "/";
  margin: 0 9px;
  color: var(--line-dark);
}

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

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

.breadcrumb [aria-current="page"] {
  color: var(--ink);
}

.page-hero {
  position: relative;
  padding: 38px 0 70px;
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(90deg, rgba(2, 173, 159, 0.04) 1px, transparent 1px) 0 0 / 72px 72px,
    linear-gradient(rgba(2, 173, 159, 0.04) 1px, transparent 1px) 0 0 / 72px 72px,
    var(--paper-warm);
}

.page-hero-head {
  position: relative;
  max-width: 960px;
}

.page-hero h1 {
  margin-top: 15px;
  font-size: clamp(38px, 5.3vw, 67px);
  line-height: 1.04;
  letter-spacing: -0.05em;
}

.page-hero h1 .title-mark {
  position: relative;
  display: inline-block;
  z-index: 0;
}

.page-hero h1 .title-mark::after {
  content: "";
  position: absolute;
  right: -3px;
  bottom: 4px;
  left: 2px;
  z-index: -1;
  height: 10px;
  background: var(--yellow);
}

.page-lead {
  max-width: 780px;
  margin-top: 20px;
  color: var(--text-soft);
  font-size: 17px;
  line-height: 1.8;
}

.page-hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  margin-top: 23px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.6;
}

.page-hero-meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.page-hero-meta span::before {
  content: "";
  width: 4px;
  height: 4px;
  background: var(--teal);
}

.page-hero .calc-shell {
  margin-top: 35px;
}

.page-hero .calc-grid {
  min-height: 360px;
}

/* ---------- Content layout / prose ---------- */

.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 70px;
  align-items: start;
}

.prose {
  min-width: 0;
  max-width: 850px;
}

.prose > * + * {
  margin-top: 18px;
}

.prose h2 {
  margin-top: 46px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-size: clamp(26px, 3vw, 32px);
  line-height: 1.3;
  letter-spacing: -0.03em;
}

.prose h2:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

.prose h3 {
  margin-top: 30px;
  font-size: 20px;
  line-height: 1.45;
  letter-spacing: -0.015em;
}

.prose p {
  color: var(--text-soft);
  font-size: 16px;
  line-height: 1.9;
}

.prose strong {
  color: var(--ink);
  font-weight: 600;
}

.prose a:not(.btn) {
  text-decoration-color: var(--teal);
  text-decoration-thickness: 1px;
}

.prose ul,
.prose ol {
  padding-left: 22px;
  color: var(--text-soft);
  font-size: 16px;
  line-height: 1.9;
}

.prose ul {
  list-style: square;
}

.prose ol {
  list-style: decimal;
}

.prose li + li {
  margin-top: 7px;
}

.prose li::marker {
  color: var(--teal-dark);
}

.prose blockquote {
  padding: 20px 24px;
  background: var(--paper-soft);
  border-left: 4px solid var(--teal);
  color: var(--text-soft);
  font-size: 15px;
  line-height: 1.85;
}

.prose blockquote p {
  font-size: inherit;
}

.prose .lead {
  color: var(--ink-soft);
  font-size: 18px;
  line-height: 1.85;
}

.prose hr {
  height: 1px;
  margin: 34px 0;
  background: var(--line);
  border: 0;
}

.prose figure {
  margin: 28px 0;
}

.prose figcaption {
  margin-top: 8px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}

.inline-note {
  margin: 26px 0;
  padding: 20px 22px;
  background: var(--teal-tint);
  border-left: 4px solid var(--teal);
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.8;
}

.inline-note strong {
  color: var(--ink);
}

.note-warning {
  background: #fff8df;
  border-left-color: var(--yellow);
}

.aside-column {
  position: sticky;
  top: calc(var(--header-h) + 24px);
}

.aside-card {
  padding: 23px;
  background: var(--paper-warm);
  border: 1px solid var(--line);
}

.aside-card + .aside-card {
  margin-top: 14px;
}

.aside-card h2,
.aside-card h3 {
  margin: 0 0 13px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.aside-card ol,
.aside-card ul {
  display: grid;
  gap: 9px;
}

.aside-card li {
  font-size: 13px;
  line-height: 1.6;
}

.aside-card a {
  text-decoration: none;
  color: var(--text-soft);
}

.aside-card a::after {
  content: " ↗";
  color: var(--teal-dark);
  font-family: var(--font-num);
  font-size: 10px;
}

.aside-card a:hover {
  color: var(--ink);
}

.aside-card p {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
}

.aside-card .aside-kicker {
  display: block;
  margin-bottom: 9px;
  color: var(--teal-dark);
  font-family: var(--font-num);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.aside-steps {
  counter-reset: aside-step;
}

.aside-steps li {
  position: relative;
  padding-left: 27px;
  counter-increment: aside-step;
}

.aside-steps li::before {
  content: counter(aside-step, decimal-leading-zero);
  position: absolute;
  top: 1px;
  left: 0;
  color: var(--teal-dark);
  font-family: var(--font-num);
  font-size: 10px;
  font-weight: 700;
}

/* ---------- Tool page content patterns ---------- */

.feature-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin: 28px 0;
  background: var(--line);
  border: 1px solid var(--line);
}

.feature-list > div {
  padding: 20px;
  background: #fff;
}

.feature-list strong {
  display: block;
  font-size: 14px;
  font-weight: 600;
}

.feature-list p {
  margin-top: 5px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}

.example-table {
  margin: 26px 0;
}

.result-extra {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 13px;
}

.pill-tag {
  display: inline-flex;
  align-items: center;
  min-height: 25px;
  padding: 3px 8px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: rgba(255, 255, 255, 0.78);
  font-family: var(--font-num);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.05em;
  line-height: 1.4;
}

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

.related-card {
  display: flex;
  flex-direction: column;
  min-height: 150px;
  padding: 20px;
  background: #fff;
  border: 1px solid var(--line);
  text-decoration: none;
  transition: border-color 0.3s var(--ease), transform 0.3s var(--ease);
}

.related-card:hover {
  border-color: var(--ink);
  transform: translateY(-3px);
  opacity: 1;
}

.related-card span {
  color: var(--teal-dark);
  font-family: var(--font-num);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.related-card strong {
  margin-top: 21px;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.5;
}

.related-card em {
  margin-top: auto;
  padding-top: 15px;
  color: var(--muted);
  font-family: var(--font-num);
  font-size: 9px;
  font-style: normal;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.related-card em::after {
  content: " →";
  color: var(--teal-dark);
}

/* ---------- Saved countdown events ---------- */

.saved-events {
  margin-top: 26px;
  border-top: 1px solid var(--ink);
}

.saved-event {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

.saved-event-main {
  min-width: 0;
}

.saved-event-name {
  display: block;
  max-width: 100%;
  padding: 0;
  border: 0;
  background: none;
  text-align: left;
  overflow: hidden;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.5;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.saved-event-date {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-family: var(--font-num);
  font-size: 11px;
  line-height: 1.5;
}

.saved-event-count {
  flex: 0 0 auto;
  min-width: 64px;
  color: var(--ink);
  font-family: var(--font-num);
  font-size: 23px;
  font-weight: 600;
  line-height: 1.2;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.saved-event-count small {
  margin-left: 3px;
  color: var(--muted);
  font-family: var(--font-sans);
  font-size: 10px;
  font-weight: 400;
}

.saved-event-delete {
  flex: 0 0 auto;
  width: 32px;
  height: 32px;
  background: transparent;
  border: 1px solid var(--line);
  color: var(--muted);
  font-family: var(--font-num);
  font-size: 16px;
  line-height: 1;
  transition: background-color 0.3s var(--ease), border-color 0.3s var(--ease),
    color 0.3s var(--ease);
}

.saved-event-delete:hover {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}

.empty-state {
  padding: 28px 20px;
  border: 1px dashed var(--line-dark);
  color: var(--muted);
  font-size: 13px;
  line-height: 1.8;
  text-align: center;
}

/* ---------- Workday breakdown ---------- */

.month-breakdown {
  margin-top: 26px;
  border: 1px solid var(--line);
}

.month-breakdown-head {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 12px 17px;
  background: var(--paper-soft);
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-family: var(--font-num);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.month-row {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 20px;
  align-items: center;
  padding: 11px 17px;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
}

.month-row:last-child {
  border-bottom: 0;
}

.month-row span:first-child {
  color: var(--text-soft);
  font-family: var(--font-num);
  font-weight: 600;
}

.month-row span:nth-child(2) {
  color: var(--muted);
  font-family: var(--font-num);
  font-size: 11px;
}

.month-row strong {
  font-family: var(--font-num);
  font-size: 15px;
  font-weight: 600;
  min-width: 55px;
  text-align: right;
}

/* ---------- Footer ---------- */

.site-footer {
  background: var(--paper-soft);
  border-top: 1px solid var(--ink);
}

.footer-top {
  display: grid;
  grid-template-columns: minmax(260px, 1.4fr) repeat(3, minmax(0, 0.6fr));
  gap: 44px;
  padding: 60px 0 48px;
}

.brand--footer .brand-text strong {
  font-size: 19px;
}

.footer-brand p {
  max-width: 380px;
  margin-top: 18px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.8;
}

.footer-domain {
  font-family: var(--font-num);
  font-size: 10px !important;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.footer-title {
  margin-bottom: 16px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.footer-col ul {
  display: grid;
  gap: 8px;
}

.footer-col a {
  color: var(--text-soft);
  font-size: 13px;
  line-height: 1.6;
  text-decoration: none;
}

.footer-col a:hover {
  color: var(--teal-dark);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px 30px;
  padding: 18px 0 22px;
  border-top: 1px solid var(--line-dark);
  color: var(--muted);
  font-size: 11px;
  line-height: 1.7;
}

.footer-bottom p:last-child {
  max-width: 650px;
  text-align: right;
}

.back-to-top {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 80;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  padding: 0;
  background: #fff;
  border: 1px solid var(--ink);
  color: var(--ink);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.3s var(--ease), visibility 0.3s var(--ease),
    transform 0.3s var(--ease), background-color 0.3s var(--ease);
}

.back-to-top svg {
  width: 17px;
  height: 17px;
}

.back-to-top:hover {
  background: var(--teal);
}

.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* ---------- Misc ---------- */

.tool-noscript {
  margin: 16px 24px;
  padding: 18px;
  background: #fff8df;
  border: 1px solid var(--yellow);
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.7;
}

.u-mt-0 { margin-top: 0 !important; }
.u-mt-12 { margin-top: 12px !important; }
.u-mt-20 { margin-top: 20px !important; }
.u-mt-28 { margin-top: 28px !important; }
.u-mt-40 { margin-top: 40px !important; }
.u-hidden { display: none !important; }
.u-nowrap { white-space: nowrap; }

.label-flag {
  display: inline-block;
  padding: 2px 7px;
  background: var(--yellow);
  color: var(--ink);
  font-family: var(--font-num);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.1em;
  line-height: 1.5;
  text-transform: uppercase;
}

.page-404 {
  padding: 90px 0 110px;
}

.error-code {
  color: var(--teal);
  font-family: var(--font-num);
  font-size: clamp(100px, 22vw, 250px);
  font-weight: 500;
  line-height: 0.8;
  letter-spacing: -0.09em;
}

.page-404 h1 {
  margin-top: 32px;
  font-size: clamp(34px, 5vw, 58px);
  letter-spacing: -0.04em;
}

.page-404 p {
  max-width: 600px;
  margin-top: 15px;
  color: var(--text-soft);
  font-size: 16px;
  line-height: 1.8;
}

.error-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.error-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 35px;
}

.error-tools a {
  padding: 7px 12px;
  border: 1px solid var(--line);
  font-size: 12px;
  text-decoration: none;
}

.error-tools a:hover {
  border-color: var(--teal);
  background: var(--teal-tint);
}

/* ---------- Responsive ---------- */

@media (max-width: 1200px) {
  .nav-link {
    padding-inline: 7px;
    font-size: 13px;
  }

  .header-inner {
    gap: 18px;
  }

  .brand-text strong {
    font-size: 16px;
  }
}

@media (max-width: 1023px) {
  :root {
    --header-h: 68px;
    --gutter: 22px;
  }

  .header-inner {
    gap: 16px;
  }

  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    display: none;
    margin: 0;
    padding: 8px 22px 18px;
    background: #fff;
    border-bottom: 1px solid var(--ink);
    box-shadow: 0 14px 24px rgba(0, 0, 0, 0.08);
  }

  .site-header.is-open .site-nav {
    display: block;
  }

  .site-nav ul {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1px;
    background: var(--line);
    border: 1px solid var(--line);
  }

  .site-nav li {
    background: #fff;
  }

  .nav-link {
    padding: 13px 12px;
    font-size: 13px;
  }

  .nav-link::after {
    display: none;
  }

  .nav-link.is-active {
    background: var(--teal-tint);
    color: var(--teal-dark);
  }

  .hero-inner {
    padding: 54px 0 64px;
  }

  .hero-aside {
    display: none;
  }

  .hero-head {
    grid-template-columns: 1fr;
  }

  .calc-grid {
    grid-template-columns: 1fr;
  }

  .calc-result {
    min-height: 330px;
  }

  .section {
    padding: 70px 0;
  }

  .section-head--split {
    display: block;
  }

  .section-head--split .section-lede {
    margin-top: 16px;
  }

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

  .editorial {
    grid-template-columns: 1fr;
    gap: 38px;
  }

  .editorial-aside {
    max-width: 520px;
  }

  .method {
    grid-template-columns: 1fr;
    gap: 38px;
  }

  .content-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .aside-column {
    position: static;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

  .aside-card + .aside-card {
    margin-top: 0;
  }

  .footer-top {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 34px;
  }

  .footer-brand {
    grid-column: 1 / -1;
    max-width: 540px;
  }

  .cta-inner {
    grid-template-columns: 1fr;
    align-items: start;
    gap: 28px;
    padding: 54px 0;
  }

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

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

@media (max-width: 767px) {
  :root {
    --gutter: 18px;
  }

  body {
    font-size: 15px;
  }

  .site-nav {
    padding-inline: 18px;
  }

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

  .brand-mark {
    width: 32px;
    height: 32px;
    flex-basis: 32px;
  }

  .brand-text strong {
    font-size: 15px;
  }

  .brand-text small {
    font-size: 7px;
  }

  .hero {
    background-size: 64px 64px, 64px 64px, auto;
  }

  .hero::before {
    right: -260px;
    width: 480px;
    height: 480px;
  }

  .hero::after {
    display: none;
  }

  .hero-inner {
    padding: 42px 0 50px;
  }

  .hero h1 {
    font-size: clamp(44px, 15vw, 66px);
    letter-spacing: -0.055em;
  }

  .hero h1 .title-mark::after {
    bottom: 3px;
    height: 8px;
  }

  .hero-lead {
    margin-top: 19px;
    font-size: 15px;
    line-height: 1.8;
  }

  .hero .calc-shell,
  .page-hero .calc-shell {
    margin-top: 28px;
  }

  .calc-shell {
    box-shadow: 5px 5px 0 rgba(2, 173, 159, 0.16);
  }

  .calc-top {
    padding-inline: 16px;
    font-size: 9px;
  }

  .calc-top-status {
    display: none;
  }

  .calc-form {
    padding: 22px 18px 20px;
  }

  .calc-result {
    min-height: 310px;
    padding: 24px 18px;
  }

  .calc-form-head h2,
  .calc-form-head h3 {
    font-size: 20px;
  }

  .date-pair {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .swap-btn {
    width: 100%;
    height: 39px;
    border-top: 0;
  }

  .swap-btn:hover {
    transform: none;
  }

  .input,
  .select,
  .textarea {
    min-height: 50px;
    font-size: 16px;
  }

  .input--date,
  .input--time,
  .input--datetime {
    font-size: 17px;
  }

  .input--number {
    font-size: 20px;
  }

  .form-actions {
    gap: 8px;
  }

  .form-actions .btn {
    flex: 1 1 auto;
  }

  .result-number {
    font-size: clamp(55px, 17vw, 78px);
  }

  .result-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .calc-foot {
    padding-inline: 16px;
  }

  .calc-foot span:last-child {
    display: none;
  }

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

  .value-item {
    padding: 18px 15px;
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .value-item:nth-child(-n + 2) {
    border-top: 0;
  }

  .value-item:nth-child(odd) {
    padding-left: 0;
  }

  .value-item:nth-child(even) {
    border-left: 1px solid var(--line);
    padding-right: 0;
  }

  .section {
    padding: 56px 0;
  }

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

  .section-title {
    font-size: clamp(29px, 9vw, 38px);
  }

  .section-lede {
    font-size: 15px;
    line-height: 1.8;
  }

  .section-head {
    margin-bottom: 28px;
  }

  .tool-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .tool-card {
    min-height: 210px;
    padding: 22px 20px 18px;
  }

  .tool-card-top {
    margin-bottom: 20px;
  }

  .tool-card h3 {
    font-size: 21px;
  }

  .tool-card-foot {
    padding-top: 20px;
  }

  .editorial-title {
    font-size: clamp(29px, 9vw, 38px);
  }

  .editorial-copy {
    font-size: 15px;
    line-height: 1.85;
  }

  .mosaic {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .mosaic-card--7,
  .mosaic-card--5,
  .mosaic-card--4,
  .mosaic-card--8 {
    grid-column: auto;
  }

  .mosaic-card {
    min-height: 220px;
    padding: 24px 20px;
  }

  .method h2 {
    font-size: clamp(29px, 9vw, 38px);
  }

  .method-copy {
    font-size: 15px;
    line-height: 1.85;
  }

  .diagram-body {
    padding-inline: 15px;
  }

  .diagram-date {
    font-size: 18px;
  }

  .diagram-chip {
    margin-left: 0;
  }

  .diagram-result {
    grid-template-columns: 1fr;
  }

  .article-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .article-card {
    min-height: 225px;
    padding: 22px;
  }

  .cta-inner {
    padding: 46px 0;
  }

  .cta-inner h2 {
    font-size: clamp(29px, 9vw, 38px);
  }

  .cta-actions .btn {
    flex: 1 1 auto;
  }

  .breadcrumb-wrap {
    padding-top: 15px;
  }

  .page-hero {
    padding: 27px 0 48px;
  }

  .page-hero h1 {
    font-size: clamp(35px, 10vw, 48px);
  }

  .page-lead {
    font-size: 15px;
    line-height: 1.8;
  }

  .page-hero-meta {
    gap: 5px 15px;
    margin-top: 18px;
  }

  .content-grid {
    gap: 32px;
  }

  .prose h2 {
    margin-top: 36px;
    padding-top: 20px;
    font-size: 25px;
  }

  .prose h3 {
    font-size: 19px;
  }

  .prose p,
  .prose ul,
  .prose ol {
    font-size: 15px;
    line-height: 1.85;
  }

  .prose .lead {
    font-size: 16px;
  }

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

  .feature-list {
    grid-template-columns: 1fr;
  }

  .related-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .related-card {
    min-height: 125px;
  }

  .footer-top {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 30px 22px;
    padding: 44px 0 36px;
  }

  .footer-bottom {
    padding-bottom: 70px;
  }

  .footer-bottom p:last-child {
    text-align: left;
  }

  .back-to-top {
    right: 14px;
    bottom: 14px;
  }

  .faq-item summary {
    padding: 18px 0;
    font-size: 15px;
  }

  .faq-answer {
    padding-right: 12px;
    font-size: 14px;
  }

  .month-row {
    grid-template-columns: 1fr auto;
    gap: 3px 14px;
  }

  .month-row span:nth-child(2) {
    grid-column: 1;
    grid-row: 2;
  }

  .month-row strong {
    grid-column: 2;
    grid-row: 1 / span 2;
  }

  .page-404 {
    padding: 60px 0 80px;
  }

  .error-actions .btn {
    flex: 1 1 auto;
  }
}

@media (max-width: 420px) {
  .result-stat dd {
    font-size: 17px;
  }

  .result-actions .btn {
    flex: 1 1 auto;
  }

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

  .value-item p {
    font-size: 11px;
  }
}

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

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

@media print {
  .site-header,
  .site-footer,
  .back-to-top,
  .nav-toggle,
  .cta-band,
  .breadcrumb-wrap {
    display: none !important;
  }

  .calc-shell {
    box-shadow: none;
  }

  body {
    color: #000;
  }
}

/* ---------- Form grids and supplemental patterns ---------- */

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

.field-grid--two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.field-grid .field + .field {
  margin-top: 0;
}

.field-grid--three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.static-field {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 54px;
  padding: 8px 14px;
  background: var(--paper-soft);
  border: 1px solid var(--line);
  color: var(--muted);
  font-family: var(--font-num);
  font-size: 11px;
  font-weight: 500;
  line-height: 1.65;
}

.static-field span {
  display: block;
}

.prose code,
.faq-answer code,
.inline-note code {
  padding: 1px 5px;
  background: var(--paper-soft);
  border: 1px solid var(--line);
  font-family: var(--font-num);
  font-size: 0.88em;
  font-weight: 500;
  overflow-wrap: anywhere;
  white-space: normal;
}

/* ---------- Countdown saved panel ---------- */

.saved-panel {
  margin-top: 26px;
  padding: 30px 32px 25px;
  background: var(--paper-warm);
  border: 1px solid var(--line);
}

.saved-panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 18px;
}

.saved-panel-head h2 {
  margin-top: 10px;
  font-size: 24px;
  letter-spacing: -0.025em;
}

.saved-panel-head p:not(.eyebrow) {
  max-width: 620px;
  margin-top: 8px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}

.saved-panel .empty-state {
  margin-top: 8px;
}

.saved-panel .saved-events {
  margin-top: 0;
}

.saved-event-name:hover {
  color: var(--teal-dark);
  opacity: 1;
}

.saved-event-main {
  min-width: 0;
}

/* ---------- Workday breakdown ---------- */

.month-breakdown {
  margin-top: 26px;
  background: #fff;
}

.month-breakdown:empty {
  display: none;
}

.month-breakdown-head {
  border-top: 0;
}

.month-row:last-child {
  border-bottom: 0;
}

/* ---------- Responsive additions ---------- */

@media (max-width: 767px) {
  .field-grid,
  .field-grid--three {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .field-grid .field + .field {
    margin-top: 0;
  }

  .saved-panel {
    padding: 24px 18px 20px;
  }

  .saved-panel-head {
    display: block;
  }

  .saved-panel-head .calc-badge {
    display: inline-block;
    margin-top: 12px;
  }

  .saved-event {
    gap: 12px;
  }

  .saved-event-count {
    min-width: 52px;
    font-size: 20px;
  }

  .month-breakdown {
    margin-top: 18px;
  }
}

@media (max-width: 1023px) {
  .site-nav li:last-child:nth-child(odd) {
    grid-column: 1 / -1;
  }
}

.btn:disabled {
  opacity: 0.42;
  cursor: not-allowed;
  pointer-events: none;
}
