  :root {
      --ink: #12233D;
      --ink-soft: #4A5A72;
      --bg: #F5F6F3;
      --surface: #FFFFFF;
      --line: #DCE1E2;
      --brass: #8d1a19;
      --brass-soft: #F1E7D8;
      --blue: #0a7686;
      --blue-soft: #ecfdff;
      --azure: #17a2b8;
      --azure-dark: #0a7686;
      --teal: #12233D;
      --teal-button: #17a2b8;
      --teal-soft: #E6EFEE;
      --danger: #8d1a19;
      --radius: 14px;
      --serif: "Source Serif 4", "Iowan Old Style", "Georgia", serif;
      --sans: "IBM Plex Sans", "Segoe UI", system-ui, sans-serif;
      --mono: "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;
  }

  * {
      box-sizing: border-box;
  }

  body {
      margin: 0;
      background: var(--bg);
      color: var(--ink);
      font-family: var(--sans);
      line-height: 1.55;
  }

  .nf-wrap {
      max-width: 1080px;
      margin: 0 auto;
      padding: 0px 20px 64px;
  }

  .nf-eyebrow {
      font-family: var(--mono);
      font-size: 16px;
      letter-spacing: .14em;
      text-transform: uppercase;
      color: var(--brass);
      margin: 0 0 10px;
  }

  h1 {
      font-family: var(--serif);
      font-weight: 600;
      font-size: clamp(26px, 3.4vw, 38px);
      margin: 0 0 14px;
      color: var(--ink);
  }

  .nf-intro {
      color: var(--ink-soft);
      font-size: 16px;
      margin: 0 0 32px;
  }

  .nf-intro strong {
      color: var(--ink);
  }

  .nf-grid {
      display: grid;
      grid-template-columns: 1.05fr 0.95fr;
      gap: 28px;
      align-items: start;
  }

  @media (max-width:860px) {
      .nf-grid {
          grid-template-columns: 1fr;
      }
  }

  .nf-card {
      background: var(--surface);
      border: 1px solid var(--line);
      border-radius: var(--radius);
      padding: 28px;
  }

  .nf-card h2 {
      font-family: var(--serif);
      font-size: 19px;
      margin: 0 0 20px;
      font-weight: 600;
  }

  .field {
      margin-bottom: 18px;
  }

  .field label {
      display: block;
      font-size: 13px;
      font-weight: 600;
      color: var(--ink);
      margin-bottom: 6px;
  }

  .field .hint {
      font-size: 12px;
      color: var(--ink-soft);
      margin-top: 5px;
  }

  .field input[type=number] {
      width: 100%;
      padding: 11px 12px;
      border: 1px solid var(--line);
      border-radius: 8px;
      font-family: var(--mono);
      font-size: 15px;
      color: var(--ink);
      background: #fff;
  }

  .field input[type=number]:focus,
  .seg button:focus-visible,
  .toggle input:focus-visible+span {
      outline: 3px solid var(--brass-soft);
      outline-offset: 1px;
      border-color: var(--brass);
  }

  .seg {
      display: flex;
      gap: 8px;
      flex-wrap: wrap;
  }

  .seg button {
      flex: 1;
      min-width: 110px;
      padding: 10px 12px;
      border-radius: 8px;
      border: 1px solid var(--line);
      background: #fff;
      font-family: var(--sans);
      font-size: 13.5px;
      font-weight: 600;
      color: var(--ink-soft);
      cursor: pointer;
      transition: .15s;
  }

  .seg button[aria-pressed="true"] {
      background: var(--teal);
      border-color: var(--teal);
      color: #fff;
  }

  .seg.top button[aria-pressed="true"] {
      background: var(--ink);
      border-color: var(--ink);
  }

  .toggle {
      display: flex;
      align-items: flex-start;
      gap: 10px;
      padding: 12px 14px;
      background: var(--teal-soft);
      border-radius: 10px;
      margin-top: 6px;
  }

  .toggle input {
      margin-top: 3px;
  }

  .toggle .txt {
      font-size: 13px;
      color: var(--ink-soft);
  }

  .toggle .txt b {
      color: var(--ink);
      display: block;
      font-size: 13.5px;
      margin-bottom: 2px;
  }

  .warn {
      display: none;
      margin-top: 10px;
      padding: 10px 12px;
      border-radius: 8px;
      background: #FBECE8;
      color: var(--danger);
      font-size: 12.5px;
      border: 1px solid #F0CFC6;
  }

  .warn.show {
      display: block;
  }

  .cat-panel {
      display: none;
  }

  .cat-panel.show {
      display: block;
  }

  .receipt {
      background: var(--surface);
      border: 1px solid var(--line);
      border-radius: var(--radius);
      padding: 0;
      position: sticky;
      top: 20px;
      overflow: hidden;
  }

  .receipt-head {
      padding: 22px 26px 18px;
      border-bottom: 1px dashed #C7CCCB;
      position: relative;
  }

  .receipt-head .seal {
      position: absolute;
      top: 20px;
      right: 22px;
      width: 46px;
      height: 46px;
      border-radius: 50%;
      background: var(--brass-soft);
      border: 1.5px solid var(--brass);
      display: flex;
      align-items: center;
      justify-content: center;
      font-family: var(--serif);
      font-size: 11px;
      color: var(--brass);
      font-weight: 700;
  }

  .receipt-head .k {
      font-family: var(--mono);
      font-size: 11px;
      letter-spacing: .1em;
      text-transform: uppercase;
      color: var(--ink-soft);
  }

  .receipt-head .tot {
      font-family: var(--serif);
      font-size: clamp(28px, 3vw, 34px);
      font-weight: 600;
      margin-top: 6px;
  }

  .receipt-head .tot small {
      font-family: var(--sans);
      font-size: 14px;
      font-weight: 500;
      color: var(--ink-soft);
  }

  .receipt-body {
      padding: 18px 26px;
  }

  .line {
      display: flex;
      justify-content: space-between;
      align-items: baseline;
      padding: 9px 0;
      border-bottom: 1px solid #EEF0EF;
      font-size: 13.5px;
  }

  .line:last-child {
      border-bottom: none;
  }

  .line .l {
      color: var(--ink-soft);
  }

  .line .v {
      font-family: var(--mono);
      color: var(--ink);
      font-weight: 600;
  }

  .line.sub .l {
      padding-left: 14px;
      font-size: 12.5px;
  }

  .line.group-total {
      border-top: 1px solid var(--line);
      margin-top: 4px;
      padding-top: 12px;
      font-weight: 700;
  }

  .receipt-foot {
      padding: 16px 26px 24px;
      font-size: 12px;
      color: var(--ink-soft);
      border-top: 1px dashed #C7CCCB;
  }

  .cta {
      display: block;
      text-align: center;
      margin: 16px 26px 22px;
      padding: 13px 16px;
      border-radius: 9px;
      background: var(--teal-button);
      color: #fff;
      text-decoration: none;
      font-weight: 600;
      font-size: 14px;
  }

  .cta:hover {
      background: #0B1930;
      color: #ffffff !important;
  }

  .cta-note {
      padding: 0 26px 20px;
      font-size: 11.5px;
      color: var(--ink-soft);
      text-align: center;
      margin-top: -8px;
  }

  .article {
      float: none;
  }

  .article h2 {
      font-family: var(--serif);
      font-size: 23px;
      margin: 38px 0 12px;
  }

  .article h3 {
      font-family: var(--serif);
      font-size: 17px;
      margin: 22px 0 8px;
  }

  .article p {
      color: var(--ink-soft);
      font-size: 15.5px;
      padding: 20px;
  }

  .article p strong {
      color: var(--ink);
  }

  .article table {
      width: 100%;
      border-collapse: collapse;
      margin: 18px 0;
      font-size: 13.5px;
  }

  .article th,
  .article td {
      text-align: left;
      padding: 9px 10px;
      border-bottom: 1px solid var(--line);
  }

  .article th {
      font-family: var(--mono);
      font-size: 11px;
      text-transform: uppercase;
      letter-spacing: .06em;
      color: var(--ink-soft);
  }

  .faq details {
      border-bottom: 1px solid var(--line);
      padding: 20px;
  }

  .faq summary {
      cursor: pointer;
      font-weight: 600;
      font-size: 15px;
      color: var(--ink);
      list-style: none;
      display: flex;
      justify-content: space-between;
      align-items: center;
  }

  .faq summary::-webkit-details-marker {
      display: none;
  }

  .faq summary::after {
      content: "+";
      font-family: var(--serif);
      font-size: 20px;
      color: var(--brass);
  }

  .faq details[open] summary::after {
      content: "–";
  }

  .faq p {
      margin-top: 10px;
  }

  .disclaimer {
      margin-top: 36px;
      padding: 16px 18px;
      background: var(--surface);
      border-radius: 10px;
      font-size: 12.5px;
      color: var(--ink-soft);
  }

  .convert-box {
      margin: 6px 26px 20px;
      padding: 17px 18px 15px;
      text-align: center;
      background: linear-gradient(180deg, var(--blue-soft), #ffffff);
      border: 1px solid var(--blue);
      border-radius: 12px;
  }

  .convert-box .eyebrow {
      font-family: var(--mono);
      font-size: 14px;
      letter-spacing: .09em;
      text-transform: uppercase;
      color: var(--azure-dark);
      font-weight: 700;
      margin: 0px;
  }

  .convert-box .text {
      font-size: 14px;
      color: var(--ink-soft);
      line-height: 1.5;
      margin: 0 0 14px;
  }

  .convert-box .text strong {
      color: var(--ink);
  }

  .convert-box .cta {
      margin: 0 0 10px;
  }

  .convert-box .micro {
      font-size: 11.5px;
      color: var(--ink-soft);
      margin: 0;
  }