:root {
  --paper: #fbf7f0;
  --paper-deep: #efe5d7;
  --sheet: rgba(255, 252, 247, 0.9);
  --sheet-solid: #fffdf9;
  --ink: #171310;
  --copy: #332d27;
  --muted: #655c54;
  --line: rgba(23, 19, 16, 0.13);
  --green: #247a37;
  --green-dark: #195b28;
  --error: #9f2030;
  --shadow: 0 28px 70px rgba(64, 41, 20, 0.12);
  --radius-large: 30px;
  --radius-medium: 22px;
  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --sans: "IBM Plex Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

html {
  color-scheme: light;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(circle at 12% 8%, rgba(255, 255, 255, 0.88), transparent 31rem),
    linear-gradient(180deg, var(--paper) 0%, #f6efe5 48%, var(--paper-deep) 100%);
  color: var(--ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}

button,
input,
select {
  font: inherit;
}

button,
a,
input,
select {
  -webkit-tap-highlight-color: transparent;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 3px solid rgba(36, 122, 55, 0.34);
  outline-offset: 3px;
}

a {
  color: inherit;
}

.site-header {
  width: min(1180px, calc(100% - 32px));
  margin: 18px auto 0;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  position: sticky;
  top: 12px;
  z-index: 10;
  border: 1px solid rgba(23, 19, 16, 0.08);
  border-radius: var(--radius-medium);
  background: rgba(251, 247, 240, 0.88);
  box-shadow: 0 14px 44px rgba(64, 41, 20, 0.08);
  backdrop-filter: blur(18px);
}

.wordmark {
  text-decoration: none;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.24em;
}

.header-link,
.final-callout a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 11px 18px;
  border: 1px solid var(--green);
  border-radius: 999px;
  background: var(--green);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  transition: transform 180ms ease, background 180ms ease;
}

.header-link:hover,
.final-callout a:hover {
  background: var(--green-dark);
  transform: translateY(-1px);
}

.calculator-suite {
  width: min(1180px, calc(100% - 32px));
  margin: 20px auto 72px;
}

.breadcrumbs {
  margin: 0 4px 16px;
  display: flex;
  align-items: center;
  gap: 9px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 0.82rem;
}

.breadcrumbs a {
  text-underline-offset: 3px;
}

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

.intro,
.tool,
.final-callout {
  border: 1px solid rgba(255, 255, 255, 0.94);
  border-radius: var(--radius-large);
  background: var(--sheet);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 42px;
  align-items: end;
  padding: clamp(30px, 6vw, 62px);
}

.intro-kicker {
  margin-bottom: 14px !important;
  color: var(--green-dark) !important;
  font-size: 0.78rem !important;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

h1,
h2,
h3,
h4,
p {
  margin-top: 0;
}

h1,
h2,
h3,
h4 {
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -0.04em;
  color: var(--ink);
}

h1 {
  max-width: 12ch;
  margin-bottom: 20px;
  font-size: clamp(3rem, 7vw, 6rem);
  line-height: 0.95;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(2.15rem, 4.4vw, 4rem);
  line-height: 0.98;
}

.intro p,
.tool-copy > p,
.final-callout p {
  max-width: 65ch;
  margin-bottom: 0;
  color: var(--copy);
  font-size: clamp(1rem, 1.5vw, 1.14rem);
  line-height: 1.7;
}

.intro-note {
  min-width: 220px;
  padding: 20px;
  display: grid;
  gap: 5px;
  border: 1px solid var(--line);
  border-radius: var(--radius-medium);
  background: rgba(255, 255, 255, 0.58);
}

.intro-note strong {
  font-size: 1.05rem;
}

.intro-note span {
  color: var(--muted);
  font-size: 0.92rem;
}

.tool-nav {
  margin: 18px 0;
  padding: 10px;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  border: 1px solid rgba(23, 19, 16, 0.08);
  border-radius: var(--radius-medium);
  background: rgba(251, 247, 240, 0.9);
  box-shadow: 0 14px 42px rgba(64, 41, 20, 0.07);
}

.tool-tab {
  min-height: 50px;
  padding: 11px 14px;
  border: 1px solid transparent;
  border-radius: 16px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-weight: 700;
  transition: color 180ms ease, background 180ms ease, border-color 180ms ease;
}

.tool-tab:hover {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.5);
}

.tool-tab.is-active {
  border-color: var(--ink);
  background: var(--ink);
  color: #fffaf4;
}

.tool {
  padding: clamp(24px, 4.8vw, 48px);
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(330px, 0.88fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: start;
}

.tool[hidden] {
  display: none;
}

.tool-copy {
  min-width: 0;
}

.calculator-form {
  margin-top: 30px;
  display: grid;
  gap: 18px;
}

.example-values-note {
  margin: 0;
  padding: 10px 13px;
  border-radius: 12px;
  background: rgba(36, 122, 55, 0.07);
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.5;
}

.complete-form {
  gap: 16px;
}

.plan-action-grid button,
.citation-row button {
  min-height: 42px;
  padding: 9px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--copy);
  cursor: pointer;
  font-weight: 700;
}

.plan-action-grid button:hover:not(:disabled),
.citation-row button:hover {
  border-color: var(--green);
  color: var(--green-dark);
}

.journey-progress {
  margin: 30px 0 8px;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  list-style: none;
}

.journey-progress button {
  width: 100%;
  min-height: 52px;
  padding: 9px 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.52);
  color: var(--muted);
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 700;
}

.journey-progress button span {
  width: 24px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--paper-deep);
}

.journey-progress button.is-current,
.journey-progress button[aria-current="step"] {
  border-color: var(--green);
  background: rgba(36, 122, 55, 0.1);
  color: var(--green-dark);
}

.journey-progress button.is-complete span {
  background: var(--green);
  color: #fff;
}

.form-section {
  min-width: 0;
  margin: 0;
  padding: 20px;
  display: grid;
  gap: 16px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.42);
}

.form-section > legend {
  padding: 0 8px;
  color: var(--green-dark);
  font-family: var(--serif);
  font-size: 1.45rem;
  letter-spacing: -0.025em;
}

.journey-step[hidden] {
  display: none;
}

.journey-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.journey-next,
.journey-back {
  min-height: 46px;
  padding: 10px 17px;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 700;
}

.journey-next {
  margin-left: auto;
  border: 1px solid var(--green);
  background: var(--green);
  color: #fff;
}

.journey-back {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.65);
  color: var(--copy);
}

.field > span em {
  color: var(--muted);
  font-size: 0.76rem;
  font-style: normal;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
}

.field-error {
  color: var(--error) !important;
  font-size: 0.84rem !important;
  font-weight: 700;
  line-height: 1.45;
}

[aria-invalid="true"] {
  border-color: var(--error) !important;
  outline: 3px solid rgba(159, 32, 48, 0.12) !important;
}

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

.field {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.field > span,
.range-field > span {
  color: #2b241f;
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.field small {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.5;
}

input[type="number"],
input[type="text"],
input[type="date"],
select {
  width: 100%;
  min-height: 54px;
  padding: 13px 15px;
  border: 1px solid rgba(23, 19, 16, 0.17);
  border-radius: 16px;
  outline: none;
  background: rgba(255, 255, 255, 0.94);
  color: var(--ink);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

input[type="number"]:focus,
input[type="text"]:focus,
input[type="date"]:focus,
select:focus,
input[type="range"]:focus-visible,
.check-field:has(input:focus-visible) {
  border-color: rgba(46, 154, 68, 0.56);
  outline: 3px solid rgba(46, 154, 68, 0.18);
  outline-offset: 2px;
}

.check-field {
  padding: 16px 17px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: start;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.58);
  color: var(--copy);
  cursor: pointer;
  line-height: 1.55;
}

.check-field input {
  width: 20px;
  height: 20px;
  margin: 2px 0 0;
  accent-color: var(--green);
}

.conditional-field {
  padding: 18px;
  border-left: 3px solid var(--green);
  background: rgba(255, 255, 255, 0.42);
}

.conditional-field[hidden],
#wine-pour-field[hidden],
#fizz-split-field[hidden],
#ice-crushed-percent-field[hidden],
#ice-collection-travel-field[hidden],
#glass-collection-travel-field[hidden],
#complete-wine-pour-field[hidden],
#complete-fizz-split-field[hidden] {
  display: none;
}

.range-field output {
  color: var(--ink);
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
}

input[type="range"] {
  width: 100%;
  accent-color: var(--green);
}

.result-panel {
  min-height: 430px;
  padding: 28px;
  position: sticky;
  top: 104px;
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(23, 19, 16, 0.14);
  border-radius: 26px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.97), rgba(242, 233, 221, 0.92));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85), 0 22px 42px rgba(56, 36, 18, 0.1);
}

.result-panel::before {
  content: "";
  height: 6px;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  border-radius: 26px 26px 0 0;
  background: linear-gradient(90deg, #3a2f26 0%, #6f5a47 48%, #b69777 100%);
}

.result-label {
  margin: 10px 0 12px;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.result-figure {
  margin: 0 0 22px;
  display: flex;
  gap: 12px;
  align-items: baseline;
  flex-wrap: wrap;
}

.result-figure strong {
  font-family: var(--serif);
  font-size: clamp(4rem, 8vw, 6.2rem);
  font-weight: 400;
  line-height: 0.85;
  letter-spacing: -0.06em;
}

.result-figure span {
  color: var(--copy);
  font-size: 1.08rem;
  font-weight: 700;
}

.result-breakdown {
  margin: 0;
  display: grid;
  gap: 0;
}

.result-breakdown div {
  padding: 12px 0;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  border-top: 1px solid var(--line);
}

.result-breakdown dt {
  color: var(--muted);
}

.result-breakdown dd {
  margin: 0;
  color: var(--ink);
  font-weight: 700;
  text-align: right;
}

.result-disclaimer {
  margin: 22px 0 0;
  padding: 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.62);
  color: #4b433d;
  font-size: 0.92rem;
  line-height: 1.6;
}

.result-actions {
  margin-top: auto;
  padding-top: 22px;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.copy-result {
  min-height: 44px;
  padding: 10px 16px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  background: var(--ink);
  color: #fffaf4;
  cursor: pointer;
  font-weight: 700;
}

.copy-result:hover {
  background: #302720;
}

.copy-status {
  color: var(--muted);
  font-size: 0.88rem;
}

.result-error {
  margin: auto 0;
  color: var(--error);
  font-weight: 700;
  line-height: 1.6;
}

.complete-result {
  gap: 0;
}

.complete-result h3 {
  margin: 10px 0 20px;
  font-size: clamp(2rem, 3.4vw, 3rem);
  line-height: 1;
}

.complete-result-grid {
  display: grid;
  gap: 10px;
}

.complete-result-card {
  padding: 16px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px 18px;
  align-items: baseline;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.64);
}

.complete-result-card span {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.complete-result-card strong {
  font-family: var(--serif);
  font-size: 2rem;
  font-weight: 400;
  letter-spacing: -0.04em;
}

.complete-result-card small {
  grid-column: 1 / -1;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.45;
}

.complete-result .result-disclaimer {
  margin-top: 14px;
}

.complete-plan-actions {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.complete-plan-actions[hidden] {
  display: none;
}

.plan-action-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

.plan-action-grid button {
  width: 100%;
  border-radius: 13px;
}

.plan-action-grid button:first-child {
  border-color: var(--green);
  background: var(--green);
  color: #fff;
}

.plan-action-grid button:disabled {
  cursor: not-allowed;
  opacity: 0.48;
}

.supplier-finder {
  grid-column: 1 / -1;
  margin-top: 6px;
  padding: clamp(22px, 4vw, 38px);
  border: 1px solid var(--line);
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.54);
}

.supplier-finder-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.65fr);
  gap: 28px;
  align-items: end;
}

.supplier-finder-heading h3 {
  max-width: 18ch;
  margin-bottom: 0;
  font-size: clamp(1.8rem, 3.4vw, 3rem);
  line-height: 1;
}

.supplier-finder-heading > p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.65;
}

.eyebrow,
.supplier-rank {
  margin-bottom: 9px;
  color: var(--green-dark);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.supplier-form {
  margin-top: 28px;
  display: grid;
  gap: 18px;
}

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

.compact-check {
  min-height: 54px;
  align-self: end;
  align-items: center;
}

.choice-fieldset {
  min-width: 0;
  margin: 0;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
}

.choice-fieldset legend {
  padding: 0 8px;
  color: #2b241f;
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.choice-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.choice-grid label {
  padding: 10px 13px;
  display: inline-flex;
  gap: 8px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.66);
  color: var(--copy);
  cursor: pointer;
}

.choice-grid input {
  accent-color: var(--green);
}

.fieldset-help {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.55;
}

.allocation-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.allocation-grid > label {
  min-width: 0;
  padding: 11px 12px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 72px auto;
  gap: 8px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.62);
}

.allocation-grid > label > span {
  display: flex;
  gap: 8px;
  align-items: center;
  color: var(--copy);
  font-size: 0.9rem;
}

.allocation-grid input[type="number"] {
  min-height: 42px;
  padding: 8px 9px;
  border-radius: 12px;
}

.allocation-grid input:disabled {
  opacity: 0.42;
}

.allocation-total {
  margin: 14px 0 0;
  color: var(--copy);
  font-weight: 700;
}

.allocation-total output {
  color: var(--green-dark);
}

.drink-split-grid {
  grid-template-columns: 1fr;
  gap: 12px;
}

.allocation-grid > .drink-split-bar {
  padding: 13px 15px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 7px;
  border-radius: 16px;
}

.allocation-grid > .drink-split-bar > span {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: var(--copy);
  font-size: 0.9rem;
  font-weight: 700;
}

.drink-split-bar output {
  min-width: 50px;
  color: var(--green-dark);
  font-variant-numeric: tabular-nums;
  text-align: right;
}

.drink-split-bar input[type="range"] {
  appearance: none;
  width: 100%;
  min-height: 44px;
  margin: 0;
  border: 0;
  outline-offset: 2px;
  background:
    linear-gradient(
      90deg,
      var(--green) 0 var(--mix-percent, 34%),
      rgba(23, 19, 16, 0.12) var(--mix-percent, 34%) 100%
    ) center / 100% 12px no-repeat;
  cursor: pointer;
}

.drink-split-bar input[type="range"]::-webkit-slider-thumb {
  appearance: none;
  width: 28px;
  height: 28px;
  border: 3px solid #fff;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 2px 8px rgba(23, 19, 16, 0.24);
}

.drink-split-bar input[type="range"]::-moz-range-thumb {
  width: 24px;
  height: 24px;
  border: 3px solid #fff;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 2px 8px rgba(23, 19, 16, 0.24);
}

.drink-split-bar:has(input:focus-visible) {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(36, 122, 55, 0.18);
}

.drink-split-bar:has(input:disabled) {
  opacity: 0.42;
}

.supplier-search,
.download-brief {
  width: fit-content;
  min-height: 48px;
  padding: 11px 18px;
  border: 1px solid var(--green);
  border-radius: 999px;
  background: var(--green);
  color: #fff;
  cursor: pointer;
  font-weight: 700;
}

.supplier-search:hover,
.download-brief:hover {
  background: var(--green-dark);
}

.supplier-results:not(:empty) {
  margin-top: 28px;
}

.complete-match-group {
  margin-top: 24px;
}

.complete-match-group > h4 {
  margin-bottom: 12px;
  font-size: clamp(1.7rem, 3vw, 2.5rem);
}

.complete-match-group + .complete-match-group {
  padding-top: 26px;
  border-top: 1px solid var(--line);
}

.supplier-result-summary {
  padding: 16px 18px;
  display: flex;
  gap: 8px 20px;
  align-items: baseline;
  flex-wrap: wrap;
  border-left: 4px solid var(--green);
  border-radius: 0 16px 16px 0;
  background: rgba(46, 154, 68, 0.08);
}

.supplier-result-summary span {
  color: var(--muted);
}

.supplier-message {
  margin: 18px 0 0;
  padding: 16px 18px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--copy);
  line-height: 1.6;
}

.supplier-message.is-error {
  color: var(--error);
  font-weight: 700;
}

.supplier-card-grid {
  margin-top: 16px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.supplier-card {
  min-width: 0;
  padding: 20px;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--sheet-solid);
  box-shadow: 0 16px 35px rgba(64, 41, 20, 0.07);
}

.supplier-card-heading {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  justify-content: space-between;
}

.supplier-card h4 {
  margin-bottom: 0;
  font-size: 1.55rem;
  line-height: 1.05;
}

.supplier-distance {
  flex: 0 0 auto;
  padding: 7px 9px;
  border-radius: 999px;
  background: var(--paper-deep);
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 700;
  white-space: nowrap;
}

.supplier-summary {
  margin: 18px 0 12px;
  color: var(--copy);
  line-height: 1.55;
}

.supplier-confidence {
  margin: 0 0 14px;
  display: grid;
  gap: 3px;
  color: var(--copy);
  font-size: 0.82rem;
}

.supplier-confidence strong {
  color: var(--green-dark);
}

.supplier-confidence span {
  color: var(--muted);
}

.supplier-reasons {
  margin: 0;
  padding-left: 19px;
  color: #2d5635;
  line-height: 1.5;
}

.supplier-reasons li + li {
  margin-top: 6px;
}

.supplier-details {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.supplier-details p {
  margin-bottom: 7px;
  color: var(--muted);
  font-size: 0.87rem;
  line-height: 1.5;
}

.supplier-details .supplier-warning {
  color: #915819;
}

.supplier-card-footer {
  margin-top: auto;
  padding-top: 16px;
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
  color: var(--muted);
  font-size: 0.8rem;
}

.supplier-link {
  color: var(--green-dark);
  font-weight: 700;
}

.supplier-download-row {
  margin-top: 20px;
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}

.download-status {
  max-width: 52ch;
  color: var(--muted);
  font-size: 0.88rem;
}

.authority-section,
.evidence-note,
.discovery-section,
.wedding-planning-section {
  margin-top: 18px;
  padding: clamp(28px, 5vw, 50px);
  border: 1px solid rgba(255, 255, 255, 0.94);
  border-radius: var(--radius-large);
  background: var(--sheet);
  box-shadow: var(--shadow);
}

.discovery-section {
  border: 1px solid rgba(255, 255, 255, 0.94);
  border-radius: var(--radius-large);
  background: var(--sheet);
  backdrop-filter: blur(18px);
}

.wedding-planning-section {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.94);
  border-radius: var(--radius-large);
  background:
    radial-gradient(circle at 90% 10%, rgba(36, 122, 55, 0.13), transparent 24rem),
    var(--sheet);
  backdrop-filter: blur(18px);
}

.wedding-audience-grid {
  margin-top: 32px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.wedding-audience-grid article {
  min-height: 300px;
  padding: clamp(22px, 4vw, 34px);
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.67);
}

.wedding-audience-grid article:last-child {
  background: var(--ink);
  color: #fffaf4;
}

.wedding-audience-grid h3 {
  max-width: 18ch;
  margin-bottom: 16px;
  font-size: clamp(1.55rem, 3vw, 2.35rem);
  line-height: 1.05;
}

.wedding-audience-grid article:last-child h3 {
  color: #fffaf4;
}

.wedding-audience-grid p:not(.audience-label) {
  margin-bottom: 0;
  color: var(--copy);
  line-height: 1.72;
}

.wedding-audience-grid article:last-child p:not(.audience-label) {
  color: rgba(255, 250, 244, 0.76);
}

.audience-label {
  margin-bottom: 12px;
  color: var(--green-dark);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.wedding-audience-grid article:last-child .audience-label {
  color: #68c879;
}

.wedding-scope-note {
  margin-top: 14px;
  padding: 22px;
  display: grid;
  grid-template-columns: minmax(190px, 0.45fr) minmax(0, 1.55fr);
  gap: 24px;
  align-items: start;
  border-left: 4px solid var(--green);
  border-radius: 0 18px 18px 0;
  background: rgba(36, 122, 55, 0.08);
}

.wedding-scope-note strong {
  font-family: var(--serif);
  font-size: 1.45rem;
  font-weight: 400;
  letter-spacing: -0.025em;
}

.wedding-scope-note p {
  margin: 0;
  color: var(--copy);
  line-height: 1.68;
}

.authority-heading {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(300px, 1.2fr);
  column-gap: clamp(30px, 6vw, 72px);
  align-items: end;
}

.authority-heading .eyebrow,
.authority-heading h2 {
  grid-column: 1;
}

.authority-heading h2 {
  max-width: 12ch;
  margin-bottom: 0;
}

.authority-heading > p:last-child {
  grid-column: 2;
  grid-row: 1 / span 2;
  margin-bottom: 0;
  color: var(--copy);
  font-size: 1.05rem;
  line-height: 1.7;
}

.methodology-grid,
.example-grid,
.planner-answer-grid {
  margin-top: 32px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.methodology-grid article,
.example-grid article,
.planner-answer-grid article {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.58);
}

.methodology-grid h3,
.example-grid h3,
.planner-answer-grid h3 {
  margin-bottom: 10px;
  font-size: 1.45rem;
}

.methodology-grid p,
.example-grid li,
.planner-answer-grid p,
.methodology-version,
.authority-section > p,
.evidence-note p {
  color: var(--copy);
  line-height: 1.62;
}

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

.planner-answer-grid article {
  min-height: 190px;
  position: relative;
  overflow: hidden;
}

.planner-answer-grid article::after {
  content: "";
  width: 76px;
  height: 76px;
  position: absolute;
  right: -30px;
  bottom: -34px;
  border: 1px solid rgba(36, 122, 55, 0.2);
  border-radius: 50%;
  background: rgba(36, 122, 55, 0.06);
}

.planner-trust-row {
  margin-top: 14px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.planner-trust-row > div {
  padding: 22px;
  border-radius: 20px;
  background: var(--ink);
  color: #fffaf4;
}

.planner-trust-row > div:last-child {
  background: rgba(36, 122, 55, 0.11);
  color: var(--ink);
}

.planner-trust-row strong {
  display: block;
  font-family: var(--serif);
  font-size: 1.42rem;
  font-weight: 400;
  letter-spacing: -0.025em;
}

.planner-trust-row p {
  margin: 9px 0 0;
  color: rgba(255, 250, 244, 0.76);
  line-height: 1.62;
}

.planner-trust-row > div:last-child p {
  color: var(--copy);
}

.planner-trust-row a {
  margin-top: 14px;
  display: inline-block;
  color: var(--green-dark);
  font-weight: 700;
  text-underline-offset: 4px;
}

.methodology-version {
  margin: 24px 0 10px;
  padding: 17px 19px;
  border-left: 4px solid var(--green);
  background: rgba(36, 122, 55, 0.07);
}

.citation-row {
  margin-top: 22px;
  padding-top: 20px;
  display: grid;
  grid-template-columns: auto minmax(260px, 1fr) auto;
  gap: 10px;
  align-items: center;
  border-top: 1px solid var(--line);
}

.citation-row label {
  font-size: 0.82rem;
  font-weight: 700;
}

.citation-row input {
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.8);
}

.citation-row span {
  grid-column: 2 / -1;
  color: var(--muted);
  font-size: 0.86rem;
}

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

.example-kicker {
  margin-bottom: 8px;
  color: var(--green-dark);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.example-grid ul {
  margin: 0;
  padding-left: 18px;
}

.evidence-note {
  box-shadow: none;
  background: rgba(23, 19, 16, 0.92);
  color: #fffaf4;
}

.evidence-note strong {
  font-family: var(--serif);
  font-size: clamp(1.6rem, 3vw, 2.5rem);
  font-weight: 400;
}

.evidence-note p {
  max-width: 78ch;
  margin: 12px 0 0;
  color: rgba(255, 250, 244, 0.78);
}

.embed-attribution {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 0.88rem;
  text-align: center;
}

body.embed-mode .site-header,
body.embed-mode .intro,
body.embed-mode .tool-nav,
body.embed-mode .authority-section,
body.embed-mode .evidence-note,
body.embed-mode .discovery-section,
body.embed-mode .wedding-planning-section,
body.embed-mode .breadcrumbs,
body.embed-mode .final-callout,
body.embed-mode .site-footer {
  display: none;
}

body.embed-mode .calculator-suite {
  margin-top: 16px;
}

.final-callout {
  margin-top: 18px;
  padding: clamp(28px, 5vw, 48px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 32px;
  align-items: center;
}

.final-callout h2 {
  max-width: 15ch;
  font-size: clamp(2rem, 4vw, 3.5rem);
}

.site-footer {
  min-height: 120px;
  padding: 32px max(20px, calc((100% - 1148px) / 2));
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  background: var(--ink);
  color: rgba(255, 250, 244, 0.82);
  font-size: 0.9rem;
}

.content-page {
  max-width: 1080px;
}

.content-hero,
.content-article {
  border: 1px solid rgba(255, 255, 255, 0.94);
  border-radius: var(--radius-large);
  background: var(--sheet);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.content-hero {
  padding: clamp(32px, 7vw, 74px);
  position: relative;
  overflow: hidden;
}

.content-hero::after {
  content: "";
  width: min(42vw, 420px);
  aspect-ratio: 1;
  position: absolute;
  right: min(-15vw, -110px);
  bottom: min(-19vw, -190px);
  border: 1px solid rgba(36, 122, 55, 0.2);
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, rgba(255, 255, 255, 0.8), rgba(36, 122, 55, 0.12));
}

.content-hero > * {
  position: relative;
  z-index: 1;
}

.content-hero h1 {
  max-width: 13ch;
}

.content-hero > p:not(.intro-kicker) {
  max-width: 72ch;
  color: var(--copy);
  font-size: clamp(1rem, 1.6vw, 1.18rem);
  line-height: 1.72;
}

.content-primary-link {
  min-height: 48px;
  margin-top: 12px;
  padding: 12px 19px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--green);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
}

.content-primary-link:hover {
  background: var(--green-dark);
}

.content-article {
  margin-top: 18px;
  padding: clamp(28px, 6vw, 66px);
}

.content-section {
  max-width: 840px;
  padding: clamp(28px, 5vw, 54px) 0;
  border-bottom: 1px solid var(--line);
}

.content-section:first-child {
  padding-top: 0;
}

.content-section:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.content-section h2 {
  max-width: 19ch;
  font-size: clamp(2rem, 4.2vw, 3.6rem);
}

.content-section > p:not(.eyebrow):not(.reference-url),
.scope-note p {
  color: var(--copy);
  font-size: 1.02rem;
  line-height: 1.75;
}

.formula-card {
  margin: 24px 0;
  padding: clamp(20px, 4vw, 30px);
  display: grid;
  gap: 8px;
  border-radius: 22px;
  background: var(--ink);
  color: #fffaf4;
}

.formula-card span {
  color: rgba(255, 250, 244, 0.7);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.formula-card strong {
  font-family: var(--serif);
  font-size: clamp(1.45rem, 3vw, 2.35rem);
  font-weight: 400;
  letter-spacing: -0.03em;
}

.formula-card-split {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.formula-card-split > div {
  display: grid;
  gap: 8px;
}

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

.scope-note {
  margin-top: 24px;
  padding: 22px;
  border-left: 4px solid var(--green);
  border-radius: 0 18px 18px 0;
  background: rgba(36, 122, 55, 0.08);
}

.scope-note strong {
  font-family: var(--serif);
  font-size: 1.42rem;
  font-weight: 400;
}

.scope-note p {
  margin: 8px 0 0;
}

.reference-url {
  margin: 20px 0;
  padding: 16px 18px;
  overflow-wrap: anywhere;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.64);
  font-weight: 700;
}

.reference-url a {
  color: var(--green-dark);
  text-underline-offset: 4px;
}

.report-byline {
  font-size: 0.92rem !important;
}

.report-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.report-secondary-link {
  min-height: 48px;
  margin-top: 12px;
  padding: 12px 19px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.66);
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
}

.report-stat-grid,
.report-duration-grid,
.report-download-grid {
  margin-top: 26px;
  display: grid;
  gap: 14px;
}

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

.report-stat-grid article {
  min-height: 168px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: linear-gradient(145deg, #fffdf9, #efe5d7);
}

.report-stat-grid strong {
  font-family: var(--serif);
  font-size: clamp(2.4rem, 5vw, 4.2rem);
  font-weight: 400;
  letter-spacing: -0.055em;
  line-height: 0.9;
}

.report-stat-grid span,
.report-duration-grid span,
.report-download-grid span {
  color: var(--muted);
  font-size: 0.83rem;
  line-height: 1.45;
}

.report-table-wrap {
  width: 100%;
  margin: 26px 0 14px;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--sheet-solid);
}

.report-table {
  width: 100%;
  min-width: 920px;
  border-collapse: collapse;
}

.report-table th,
.report-table td {
  padding: 14px 13px;
  border-bottom: 1px solid var(--line);
  font-variant-numeric: tabular-nums;
  text-align: right;
  white-space: nowrap;
}

.report-table th:first-child,
.report-table td:first-child {
  position: sticky;
  left: 0;
  z-index: 1;
  background: var(--sheet-solid);
  text-align: left;
}

.report-table th {
  background: #efe5d7;
  color: var(--ink);
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.report-table th:first-child {
  background: #efe5d7;
}

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

.report-table-focus td,
.report-table-focus td:first-child {
  background: rgba(36, 122, 55, 0.1);
  color: var(--green-dark);
  font-weight: 700;
}

.report-table-note {
  color: var(--muted) !important;
  font-size: 0.88rem !important;
}

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

.report-duration-grid article {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.64);
}

.report-duration-grid article.is-primary {
  background: var(--ink);
  color: #fffaf4;
}

.report-duration-grid article.is-primary span,
.report-duration-grid article.is-primary p {
  color: rgba(255, 250, 244, 0.74);
}

.report-duration-grid strong {
  margin: 8px 0 18px;
  display: block;
  font-family: var(--serif);
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 400;
  letter-spacing: -0.04em;
}

.report-duration-grid p {
  margin: 0;
  color: var(--copy);
  line-height: 1.6;
}

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

.report-download-grid a {
  min-height: 132px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.66);
  color: var(--ink);
  text-decoration: none;
}

.report-download-grid a:hover {
  border-color: var(--green);
  transform: translateY(-1px);
}

.report-faq {
  display: grid;
  gap: 10px;
}

.report-faq details {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.66);
}

.report-faq summary {
  cursor: pointer;
  font-weight: 700;
}

.report-faq p {
  margin: 12px 0 0;
  color: var(--copy);
  line-height: 1.65;
}

.report-service-callout {
  margin-top: 18px;
  padding: 20px 24px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.55);
}

.report-service-callout p {
  margin: 0;
  color: var(--copy);
  line-height: 1.65;
}

.report-service-callout a {
  color: var(--green-dark);
  font-weight: 700;
  text-underline-offset: 3px;
}

.postcode-attribution {
  max-width: 46ch;
  color: rgba(255, 250, 244, 0.62);
  font-size: 0.68rem;
  line-height: 1.45;
}

@media (max-width: 860px) {
  .intro,
  .tool,
  .final-callout {
    grid-template-columns: 1fr;
  }

  .intro-note {
    min-width: 0;
  }

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

  .result-panel {
    min-height: 0;
    position: relative;
    top: auto;
  }

  .supplier-finder-heading,
  .supplier-field-grid,
  .supplier-card-grid,
  .methodology-grid,
  .planner-answer-grid,
  .planner-trust-row,
  .wedding-audience-grid {
    grid-template-columns: 1fr 1fr;
  }

  .authority-heading {
    grid-template-columns: 1fr;
  }

  .authority-heading .eyebrow,
  .authority-heading h2,
  .authority-heading > p:last-child {
    grid-column: 1;
    grid-row: auto;
  }

  .authority-heading > p:last-child {
    margin-top: 18px;
  }

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

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

  .report-duration-grid,
  .report-download-grid {
    grid-template-columns: 1fr;
  }

  .wedding-scope-note {
    grid-template-columns: 1fr;
  }

  .supplier-finder-heading > p {
    grid-column: 1 / -1;
  }
}

@media (max-width: 560px) {
  .site-header,
  .calculator-suite {
    width: min(100% - 20px, 1180px);
  }

  .site-header {
    padding: 12px 13px;
  }

  .wordmark {
    font-size: 0.84rem;
    letter-spacing: 0.18em;
  }

  .header-link {
    min-height: 40px;
    padding: 9px 13px;
    font-size: 0.84rem;
  }

  .intro,
  .tool,
  .final-callout,
  .content-hero,
  .content-article {
    padding: 24px 20px;
    border-radius: 24px;
  }

  h1 {
    font-size: clamp(2.65rem, 15vw, 4rem);
  }

  h2 {
    font-size: clamp(2rem, 11vw, 3rem);
  }

  .tool-nav,
  .field-grid,
  .allocation-grid,
  .supplier-finder-heading,
  .supplier-field-grid,
    .supplier-card-grid,
    .methodology-grid,
    .example-grid,
    .planner-answer-grid,
    .planner-trust-row,
    .wedding-audience-grid,
    .calculation-rule-grid,
    .report-stat-grid,
    .plan-action-grid,
  .citation-row {
    grid-template-columns: 1fr;
  }

  .citation-row span {
    grid-column: 1;
  }

  .supplier-finder {
    padding: 20px 16px;
  }

  .supplier-search,
  .download-brief {
    width: 100%;
  }

  .supplier-card-heading,
  .supplier-card-footer {
    display: grid;
  }

  .supplier-distance {
    width: fit-content;
  }

  .tool-tab {
    min-height: 46px;
  }

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

  .result-panel {
    padding: 24px 20px;
  }

  .result-breakdown div {
    display: grid;
    gap: 5px;
  }

  .result-breakdown dd {
    text-align: left;
  }

  .final-callout a {
    width: 100%;
  }

  .site-footer {
    display: grid;
  }
}

@media print {
  @page {
    margin: 16mm;
  }

  body {
    background: #fff;
    color: #171310;
  }

  .site-header,
  .tool-nav,
  .intro-note,
  .complete-form,
  .journey-progress,
  .complete-plan-actions,
  .supplier-download-row,
  .result-actions,
  .final-callout,
  .site-footer,
  [data-tool-panel]:not(.is-active) {
    display: none !important;
  }

  .calculator-suite,
  .tool,
  .intro {
    width: 100%;
    margin: 0;
    padding: 0;
    display: block;
    border: 0;
    background: #fff;
    box-shadow: none;
  }

  .result-panel,
  .supplier-finder,
  .supplier-card {
    position: static;
    margin-top: 12mm;
    border: 1px solid #bbb;
    background: #fff;
    box-shadow: none;
    break-inside: avoid;
  }

  a {
    text-decoration: none;
  }
}

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

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