/* Seller net sheet — mobile-first, stacked, print-friendly */

body.page-net-sheet {
  --ns-bar-h: 8.25rem;
}

/* Compact hero so the first inputs sit right under it */
body.lux.page-net-sheet .page-hero.ph-photo {
  min-height: 0;
  padding: 5rem 0 0.85rem;
}
body.lux.page-net-sheet .page-hero h1 {
  font-size: clamp(2.05rem, 8vw, 4.8rem);
}
body.lux.page-net-sheet .page-hero .lede {
  margin-top: 0.4rem;
  font-size: 1.02rem;
}
@media (min-width: 880px) {
  body.lux.page-net-sheet .page-hero.ph-photo { padding: 7rem 0 2.2rem; }
  body.lux.page-net-sheet .page-hero .lede { margin-top: 1.1rem; font-size: inherit; }
}

body.lux.page-net-sheet .ns-one-line {
  margin: 0 0 0.4rem;
  font-size: 0.92rem;
  color: var(--muted);
}

/* Beat body.lux .section { padding: 5.5rem 0 } so the first fields clear the sticky bar */
body.lux.page-net-sheet .ns-start-section {
  padding-top: 0.85rem;
  padding-bottom: 2rem;
}

body.lux.page-net-sheet h2.ns-start-prompt {
  margin: 0 0 0.55rem;
  font-family: "Cormorant Garamond", serif;
  font-weight: 400;
  font-size: 1.45rem;
  line-height: 1.2;
  color: var(--ink);
}

.ns-start-card {
  display: grid;
  gap: 0.7rem;
  padding: 0.8rem;
  border: 1px solid var(--rule);
  background: #fff;
}

/* site.css .field { display: grid } otherwise wins over the hidden attribute */
body.lux.page-net-sheet [hidden] {
  display: none !important;
}

/* Override luxury underline-only inputs so these read as fillable boxes */
body.lux.page-net-sheet .field input,
body.lux.page-net-sheet .field textarea,
body.lux.page-net-sheet .field select {
  width: 100%;
  min-height: 3.15rem;
  padding: 0.9rem 0.95rem;
  background: #FBF8F3;
  border: 1.5px solid #C9BDB0;
  border-radius: 2px;
  color: var(--ink);
  font-weight: 500;
  font-size: 1.08rem;
  box-shadow: none;
}
body.lux.page-net-sheet .field input::placeholder,
body.lux.page-net-sheet .field textarea::placeholder {
  color: #8F877E;
  opacity: 1;
  font-weight: 400;
}
body.lux.page-net-sheet .field input:focus,
body.lux.page-net-sheet .field input:focus-visible,
body.lux.page-net-sheet .field textarea:focus,
body.lux.page-net-sheet .field textarea:focus-visible,
body.lux.page-net-sheet .field select:focus,
body.lux.page-net-sheet .field select:focus-visible {
  outline: 2px solid var(--brass);
  outline-offset: 2px;
  border-color: var(--brass);
  box-shadow: none;
  background: #fff;
}

.ns-money-wrap {
  display: flex;
  align-items: stretch;
  min-height: 3.15rem;
  background: #FBF8F3;
  border: 1.5px solid #C9BDB0;
  border-radius: 2px;
}
.ns-money-prefix {
  display: flex;
  align-items: center;
  padding: 0 0.15rem 0 0.95rem;
  color: var(--ink-soft);
  font-weight: 600;
  font-size: 1.08rem;
  line-height: 1;
}
body.lux.page-net-sheet .ns-money-wrap input,
body.lux.page-net-sheet .field.ns-money input {
  border: 0;
  background: transparent;
  min-height: 3.15rem;
  padding: 0.9rem 0.95rem 0.9rem 0.4rem;
  box-shadow: none;
}
body.lux.page-net-sheet .ns-money-wrap:focus-within {
  outline: 2px solid var(--brass);
  outline-offset: 2px;
  border-color: var(--brass);
  background: #fff;
}
body.lux.page-net-sheet .ns-money-wrap:focus-within input,
body.lux.page-net-sheet .ns-money-wrap:focus-within input:focus,
body.lux.page-net-sheet .ns-money-wrap:focus-within input:focus-visible {
  outline: none;
  box-shadow: none;
  border: 0;
  background: transparent;
}

.ns-disclaimer {
  max-width: 42rem;
  margin: 0 auto;
  padding: 1rem 1.1rem;
  border: 1px solid var(--rule);
  background: var(--cream);
  color: var(--ink-soft);
  font-size: 0.95rem;
  line-height: 1.55;
}

.ns-disclaimer p { margin: 0 0 0.65rem; }
.ns-disclaimer p:last-child { margin-bottom: 0; }

.ns-source-note {
  margin: 1rem 0 0;
  font-size: 0.9rem;
  color: var(--muted);
  max-width: 42rem;
}

.ns-calc {
  display: grid;
  gap: 0.85rem;
}

.ns-panel {
  border: 1px solid var(--rule);
  background: #fff;
  padding: 0;
}

.ns-panel > summary {
  cursor: pointer;
  list-style: none;
  padding: 1rem 1.1rem;
  font-size: 0.78rem;
  font-weight: 650;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.ns-panel > summary::-webkit-details-marker { display: none; }

.ns-panel > summary::after {
  content: "Show";
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  font-weight: 600;
  color: var(--brass-deep);
}

.ns-panel[open] > summary::after { content: "Hide"; }

.ns-panel > summary:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: -2px;
}

.ns-panel-body {
  padding: 0 1.1rem 1.2rem;
  display: grid;
  gap: 0.9rem;
  border-top: 1px solid var(--rule);
}

.ns-panel .lede,
.ns-panel .form-note {
  margin: 0;
}

.ns-fields {
  display: grid;
  gap: 0.9rem;
}

@media (min-width: 720px) {
  .ns-fields.two {
    grid-template-columns: 1fr 1fr;
    gap: 0.9rem 1.1rem;
  }
}

.field select {
  width: 100%;
  padding: 0.8rem 0.85rem;
  border: 1px solid var(--rule);
  background: #fff;
  color: var(--ink);
  border-radius: 1px;
  appearance: auto;
}

.field select:focus-visible,
body.lux .field select:focus-visible {
  outline: none;
  border-color: transparent;
  border-bottom: 1px solid var(--brass);
  box-shadow: 0 1px 0 var(--brass);
}

.ns-check {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.65rem;
  align-items: start;
}

.ns-check input[type="checkbox"] {
  width: 1.15rem;
  height: 1.15rem;
  margin-top: 0.2rem;
  accent-color: var(--brass-deep);
}

.ns-check label {
  font-size: 0.95rem;
  color: var(--ink-soft);
  text-transform: none;
  letter-spacing: 0;
  font-weight: 500;
}

.ns-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 0.2rem;
}

.ns-metrics {
  display: grid;
  gap: 0.75rem;
  margin: 0 0 1.25rem;
}

@media (min-width: 640px) {
  .ns-metrics { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 980px) {
  .ns-metrics { grid-template-columns: 1.2fr 1fr 1fr 1fr; }
}

.ns-metric {
  background: var(--cream);
  border: 1px solid var(--rule);
  padding: 0.95rem 1rem;
}

.ns-metric .label {
  display: block;
  font-size: 0.7rem;
  font-weight: 650;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.25rem;
}

.ns-metric .value {
  font-family: "Cormorant Garamond", serif;
  font-size: 1.7rem;
  line-height: 1.15;
  color: var(--ink);
}

.ns-metric .value.is-negative,
.amt.is-negative,
#ns-sticky-net.is-negative {
  color: #8a2f2f;
}

.ns-metric.is-net {
  background: var(--forest-deep);
  border-color: var(--forest-deep);
  color: var(--on-dark);
}

.ns-metric.is-net .label { color: var(--on-dark-muted); }
.ns-metric.is-net .value { color: var(--cream); }
.ns-metric.is-net .value.is-negative { color: #f0c4c4; }

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

.ns-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.ns-table th,
.ns-table td {
  padding: 0.7rem 0.8rem;
  border-bottom: 1px solid var(--rule);
  vertical-align: top;
  text-align: left;
}

.ns-table thead th {
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 650;
  color: var(--muted);
  background: var(--cream);
}

.ns-table tbody th {
  font-weight: 600;
  color: var(--ink);
  min-width: 9rem;
}

.ns-table .amt {
  text-align: right;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  font-weight: 600;
}

.ns-table .ns-total {
  background: var(--cream);
}

.ns-table .ns-total th,
.ns-table .ns-total td {
  border-bottom: 0;
  font-weight: 700;
}

.ns-table tr.is-current {
  background: #f7f1e8;
}

@media (max-width: 639px) {
  .ns-table thead { display: none; }
  .ns-table,
  .ns-table tbody,
  .ns-table tr,
  .ns-table th,
  .ns-table td { display: block; width: 100%; }
  .ns-table tr {
    padding: 0.75rem 0.85rem 0.85rem;
    border-bottom: 1px solid var(--rule);
  }
  .ns-table tbody th,
  .ns-table td {
    border: 0;
    padding: 0.15rem 0;
    min-width: 0;
  }
  .ns-table td:not(.amt) {
    color: var(--muted);
    font-size: 0.88rem;
  }
  .ns-table .amt {
    text-align: left;
    font-size: 1.05rem;
    margin-top: 0.25rem;
  }
}

.ns-sticky {
  display: none;
}

@media (max-width: 799px) {
  body.page-net-sheet { padding-bottom: var(--ns-bar-h); }

  .ns-sticky {
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0.55rem;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 40;
    padding: 0.7rem 1rem calc(0.7rem + env(safe-area-inset-bottom, 0px));
    background: var(--forest-deep);
    color: var(--cream);
    border-top: 1px solid rgba(243, 238, 230, 0.16);
  }

  .ns-sticky .ns-sticky-label {
    font-size: 0.68rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--on-dark-muted);
    display: block;
  }

  .ns-sticky .ns-sticky-net {
    font-family: "Cormorant Garamond", serif;
    font-size: 1.45rem;
    line-height: 1.1;
  }

  .ns-sticky .btn {
    flex: 0 0 auto;
    width: 100%;
    min-width: 0;
    text-align: center;
    box-sizing: border-box;
  }
}

.ns-cta .lede { max-width: 38rem; margin-left: auto; margin-right: auto; }

/* Print: one scrolling document, no chrome that hides the sheet */
@media print {
  .skip,
  .site-header,
  .site-nav,
  .nav-toggle,
  .ns-sticky,
  .ns-actions,
  .page-hero .ph-img,
  .page-hero .ph-shade,
  .ns-cta,
  .site-footer .footer-nav,
  .site-footer .eho { display: none !important; }

  body.page-net-sheet {
    background: #fff;
    color: #111;
    padding: 0;
    font-size: 11.5pt;
  }

  .page-hero {
    background: none;
    color: #111;
    min-height: 0;
    padding: 0 0 0.8rem;
  }

  .page-hero .wrap { color: #111; }
  body.lux .page-hero .eyebrow { color: #7A6550 !important; }
  .page-hero h1,
  .page-hero .lede { color: #111; }

  .ns-panel { break-inside: avoid; border-color: #ccc; }
  .ns-panel > summary::after { display: none; }
  .ns-panel:not([open]) .ns-panel-body { display: grid !important; }
  .ns-table-wrap { overflow: visible; border-color: #ccc; }
  .ns-table thead { display: table-header-group; }
  .ns-table, .ns-table tbody, .ns-table tr, .ns-table th, .ns-table td {
    display: table; /* reset mobile block layout — fixed below */
  }
}

@media print {
  .ns-table { display: table; width: 100%; }
  .ns-table tbody { display: table-row-group; }
  .ns-table thead { display: table-header-group; }
  .ns-table tr { display: table-row; padding: 0; }
  .ns-table th,
  .ns-table td {
    display: table-cell;
    border-bottom: 1px solid #ccc;
    padding: 0.4rem 0.5rem;
  }
  .ns-table .amt { text-align: right; }
  .site-footer { background: #fff; color: #111; }
  .footer-brand p,
  .legal-block p { color: #333; }
  a { color: inherit; text-decoration: none; }
}
