:root {
  --till-guide-bg: linear-gradient(180deg, #f7fbf8 0%, #edf5f0 100%);
  --till-guide-card: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(248, 252, 249, 0.94));
  --till-guide-border: rgba(18, 71, 52, 0.11);
  --till-guide-shadow:
    0 1rem 2rem rgba(13, 51, 38, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.82);
  --till-guide-heading: #10392b;
  --till-guide-text: #244337;
  --till-guide-muted: #5a7066;
  --till-guide-accent: #005f35;
  --till-guide-gold: #a16a0a;
  --till-guide-gold-soft: rgba(255, 247, 230, 0.92);
}

.till-guide-shell {
  padding: 1.8rem 0 4rem;
  background:
    radial-gradient(circle at top left, rgba(0, 95, 53, 0.06), transparent 34%),
    radial-gradient(circle at top right, rgba(212, 163, 61, 0.08), transparent 30%),
    var(--till-guide-bg);
}

.till-guide-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.75fr) minmax(280px, 0.9fr);
  gap: 1.3rem;
  align-items: start;
}

.till-guide-article {
  border: 1px solid var(--till-guide-border);
  border-radius: 1.75rem;
  background: var(--till-guide-card);
  box-shadow: var(--till-guide-shadow);
}

.till-guide-body {
  padding: 1.6rem;
  color: var(--till-guide-text);
}

.till-guide-heading {
  margin-bottom: 1rem;
}

.till-guide-heading h1 {
  margin: 0;
  color: var(--till-guide-heading);
  font-family: "Plus Jakarta Sans", "Segoe UI", sans-serif;
  font-size: clamp(2rem, 4.1vw, 3.2rem);
  line-height: 1.02;
  letter-spacing: -0.03em;
}

.till-guide-summary {
  margin: 0 0 1.2rem;
  padding: 1rem 1.1rem;
  border: 1px solid rgba(0, 95, 53, 0.12);
  border-radius: 1.25rem;
  background: linear-gradient(135deg, rgba(0, 95, 53, 0.09), rgba(212, 163, 61, 0.08));
}

.till-guide-summary p,
.till-guide-body p,
.till-guide-note p,
.till-guide-faq-card__content p {
  margin: 0;
  color: var(--till-guide-text);
  font-size: 1rem;
  line-height: 1.75;
}

.till-guide-body p + p,
.till-guide-body p + h2,
.till-guide-body p + h3,
.till-guide-body p + .till-guide-table-wrap,
.till-guide-body p + .till-guide-list,
.till-guide-body p + .till-guide-steps,
.till-guide-body p + .till-guide-calc,
.till-guide-body h2 + p,
.till-guide-body h2 + .till-guide-table-wrap,
.till-guide-body h3 + p,
.till-guide-body h3 + .till-guide-steps,
.till-guide-table-wrap + p,
.till-guide-list + p,
.till-guide-steps + p,
.till-guide-faqs,
.till-guide-note {
  margin-top: 1rem;
}

.till-guide-body h2,
.till-guide-body h3 {
  margin: 1.65rem 0 0;
  color: var(--till-guide-heading);
  font-family: "Plus Jakarta Sans", "Segoe UI", sans-serif;
  line-height: 1.18;
  letter-spacing: -0.02em;
}

.till-guide-body h2 {
  font-size: clamp(1.38rem, 2.4vw, 1.85rem);
}

.till-guide-body h3 {
  font-size: clamp(1.12rem, 2vw, 1.38rem);
}

.till-guide-body strong,
.till-guide-note strong,
.till-guide-faq-card__content strong {
  color: #123a2d;
}

.till-guide-body a,
.till-guide-note a,
.till-guide-faq-card__content a {
  color: var(--till-guide-accent);
  font-weight: 700;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 0.18em;
}

.till-guide-body a:hover,
.till-guide-note a:hover,
.till-guide-faq-card__content a:hover {
  color: #004929;
}

.till-guide-calc {
  position: relative;
  margin: 1.35rem 0 1.9rem;
  padding: 0;
  border-radius: 1.9rem;
  background: transparent;
  box-shadow:
    0 1.8rem 3.4rem rgba(10, 41, 24, 0.12),
    0 0.7rem 1.5rem rgba(10, 41, 24, 0.06);
  overflow: hidden;
}

.till-guide-calc::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background:
    linear-gradient(135deg, rgba(9, 82, 52, 0.08), rgba(185, 124, 34, 0.08));
  pointer-events: none;
}

.till-guide-calc__header,
.till-guide-calc__board,
.till-guide-calc__results {
  position: relative;
  z-index: 1;
}

.till-guide-calc__header {
  padding: 2.4rem 2.6rem 1.05rem;
  border: 1px solid rgba(205, 221, 210, 0.92);
  border-bottom: 0;
  border-radius: 1.9rem 1.9rem 0 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.99) 0%, rgba(248, 251, 249, 0.99) 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.98),
    0 1rem 2rem rgba(10, 41, 24, 0.05);
}

.till-guide-calc__header h2 {
  margin: 0 0 0.55rem;
  text-align: center;
  color: #0b5c34;
  font-family: "Plus Jakarta Sans", "Segoe UI", sans-serif;
  font-size: clamp(1.55rem, 2.6vw, 2.2rem);
  line-height: 1.15;
  text-decoration-line: underline;
  text-decoration-style: wavy;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 7px;
}

.till-guide-calc__header p {
  margin: 0;
  text-align: center;
  color: var(--till-guide-muted);
  font-size: 0.98rem;
}

.till-guide-calc__board {
  padding: 0 2.6rem 1.35rem;
  border-left: 1px solid rgba(205, 221, 210, 0.92);
  border-right: 1px solid rgba(205, 221, 210, 0.92);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.99) 0%, rgba(248, 251, 249, 0.99) 100%);
}

.till-guide-calc__field {
  display: grid;
  gap: 0.75rem;
}

.till-guide-calc__field label {
  display: inline-block;
  width: 100%;
  text-align: center;
  color: #082315;
  font-family: "Plus Jakarta Sans", "Segoe UI", sans-serif;
  font-size: 1.02rem;
  font-weight: 800;
}

.till-guide-calc__input-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.95rem;
  align-items: center;
}

.till-guide-calc__input-row input {
  width: 100%;
  min-height: 56px;
  padding: 14px 18px;
  border: 1px solid #b8d2c2;
  border-radius: 999px;
  background: linear-gradient(180deg, #ffffff 0%, #fbfdfc 100%);
  color: #173120;
  font: inherit;
  font-size: 1rem;
  box-shadow:
    inset 0 1px 2px rgba(8, 47, 27, 0.04),
    0 4px 10px rgba(10, 36, 21, 0.04);
}

.till-guide-calc__input-row input:focus {
  outline: none;
  border-color: #8eb9a0;
  box-shadow:
    inset 0 1px 2px rgba(8, 47, 27, 0.04),
    0 0 0 4px rgba(16, 104, 62, 0.12);
}

.till-guide-calc__input-row.is-error input,
.till-guide-calc__input-row input.is-error {
  border-color: rgba(180, 35, 24, 0.5);
  box-shadow:
    inset 0 1px 2px rgba(128, 24, 19, 0.05),
    0 0 0 4px rgba(180, 35, 24, 0.12);
}

.till-guide-calc__hint {
  display: block;
  margin-top: 0.7rem;
  text-align: center;
  color: var(--till-guide-muted);
  font-size: 0.92rem;
  line-height: 1.6;
}

.till-guide-calc__error {
  display: block;
  margin-top: 0.5rem;
  text-align: center;
  color: #b42318;
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.55;
}

.till-guide-calc__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  min-width: 220px;
  padding: 14px 24px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(180deg, #005f35 0%, #004b2a 100%);
  color: #fff;
  font-family: "Plus Jakarta Sans", "Segoe UI", sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.2),
    0 14px 26px rgba(0, 69, 38, 0.18),
    0 4px 10px rgba(0, 69, 38, 0.12);
  cursor: pointer;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    filter 180ms ease;
}

.till-guide-calc__button:hover,
.till-guide-calc__button:focus-visible {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.24),
    0 16px 28px rgba(0, 69, 38, 0.22),
    0 6px 12px rgba(0, 69, 38, 0.14);
  filter: saturate(1.03);
  outline: none;
}

.till-guide-calc__button:active {
  transform: translateY(1px);
}

.till-guide-calc__results {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.9rem;
  padding: 1.2rem 2.6rem 2rem;
  border: 1px solid rgba(205, 221, 210, 0.92);
  border-top: 0;
  border-radius: 0 0 1.9rem 1.9rem;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.99) 0%, rgba(248, 251, 249, 0.99) 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.98),
    0 1.1rem 2rem rgba(10, 41, 24, 0.06);
}

.till-guide-calc__results.is-error .till-guide-calc__result-card {
  border-color: rgba(180, 35, 24, 0.18);
}

.till-guide-calc__result-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  min-height: 150px;
  padding: 1.2rem 1.15rem;
  border: 1px solid #dde6df;
  border-radius: 1.3rem;
  background: linear-gradient(180deg, #ffffff 0%, #fcfefd 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.94),
    0 10px 18px rgba(8, 41, 23, 0.05);
}

.till-guide-calc__label {
  display: block;
  color: #385142;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.till-guide-calc__value {
  display: block;
  margin-top: 0.55rem;
  color: #005d34;
  font-family: "Plus Jakarta Sans", "Segoe UI", sans-serif;
  font-size: clamp(1.45rem, 2.35vw, 2.05rem);
  line-height: 1.15;
  font-weight: 900;
}

.till-guide-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--till-guide-border);
  border-radius: 1.55rem;
  background: rgba(255, 255, 255, 0.84);
  box-shadow: var(--till-guide-shadow);
}

.till-guide-table-wrap table {
  width: 100%;
  border-collapse: collapse;
}

.till-guide-table-wrap thead th {
  padding: 1rem 1rem 0.95rem;
  background: linear-gradient(180deg, rgba(234, 244, 238, 0.96), rgba(224, 238, 230, 0.94));
  color: #154333;
  font-family: "Plus Jakarta Sans", "Segoe UI", sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  text-align: left;
}

.till-guide-table-wrap tbody td {
  padding: 0.98rem 1rem;
  border-top: 1px solid rgba(18, 71, 52, 0.1);
  color: var(--till-guide-text);
  font-size: 0.97rem;
  vertical-align: top;
}

.till-guide-table-wrap tbody tr:nth-child(even) td {
  background: rgba(247, 251, 248, 0.82);
}

.till-guide-table-wrap tbody tr.is-active td {
  background: linear-gradient(180deg, rgba(226, 244, 234, 0.98), rgba(214, 237, 223, 0.95));
  color: #10392b;
  font-weight: 700;
}

.till-guide-list,
.till-guide-steps {
  margin: 1rem 0 0;
  padding-left: 1.25rem;
  color: var(--till-guide-text);
}

.till-guide-list li,
.till-guide-steps li {
  margin: 0.5rem 0;
  line-height: 1.7;
}

.till-guide-note {
  padding: 1rem 1.1rem;
  border: 1px solid rgba(212, 163, 61, 0.2);
  border-radius: 1.25rem;
  background: linear-gradient(180deg, rgba(255, 250, 239, 0.96), rgba(255, 247, 234, 0.92));
}

.till-guide-faqs {
  counter-reset: till-faq-counter;
}

.till-guide-faqs__header {
  margin-bottom: 1rem;
}

.till-guide-faqs__header h2 {
  margin: 0;
}

.till-guide-faq-card {
  counter-increment: till-faq-counter;
  overflow: hidden;
  border: 1px solid var(--till-guide-border);
  border-radius: 1.5rem;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(247, 251, 247, 0.93));
  box-shadow: var(--till-guide-shadow);
}

.till-guide-faq-card + .till-guide-faq-card {
  margin-top: 0.95rem;
}

.till-guide-faq-card summary {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.95rem;
  padding: 1.2rem 3.6rem 1.2rem 4.4rem;
  color: #123a2d;
  font-family: "Plus Jakarta Sans", "Segoe UI", sans-serif;
  font-size: 1.04rem;
  font-weight: 700;
  line-height: 1.35;
  cursor: pointer;
  list-style: none;
}

.till-guide-faq-card summary::-webkit-details-marker {
  display: none;
}

.till-guide-faq-card summary::before {
  content: counter(till-faq-counter, decimal-leading-zero);
  position: absolute;
  left: 1.1rem;
  top: 50%;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  border: 1px solid rgba(214, 169, 63, 0.48);
  background: var(--till-guide-gold-soft);
  color: var(--till-guide-gold);
  font-size: 0.82rem;
  font-weight: 800;
}

.till-guide-faq-card summary::after {
  content: "+";
  position: absolute;
  right: 1.3rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--till-guide-accent);
  font-size: 1.45rem;
  font-weight: 400;
}

.till-guide-faq-card[open] summary::after {
  content: "-";
}

.till-guide-faq-card__content {
  padding: 0 1.2rem 1.25rem 4.4rem;
}

@media (max-width: 1100px) {
  .till-guide-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 700px) {
  .till-guide-shell {
    padding: 1.4rem 0 3rem;
  }

  .till-guide-article,
  .till-guide-calc {
    border-radius: 1.4rem;
  }

  .till-guide-body {
    padding: 1.25rem;
  }

  .till-guide-heading h1 {
    font-size: clamp(1.8rem, 7vw, 2.45rem);
  }

  .till-guide-calc__header {
    padding: 1.7rem 1.1rem 0.9rem;
    border-radius: 1.4rem 1.4rem 0 0;
  }

  .till-guide-calc__board {
    padding: 0 1.1rem 1rem;
  }

  .till-guide-calc__input-row {
    grid-template-columns: 1fr;
  }

  .till-guide-calc__button {
    width: 100%;
    min-width: 0;
  }

  .till-guide-calc__results {
    grid-template-columns: minmax(0, 1fr);
    padding: 1rem 1.1rem 1.2rem;
    border-radius: 0 0 1.4rem 1.4rem;
  }

  .till-guide-table-wrap thead th,
  .till-guide-table-wrap tbody td {
    padding-left: 0.85rem;
    padding-right: 0.85rem;
  }

  .till-guide-faq-card summary {
    padding: 1.05rem 3rem 1.05rem 3.7rem;
    font-size: 0.99rem;
  }

  .till-guide-faq-card__content {
    padding: 0 1rem 1.15rem 3.7rem;
  }

}
