/* ==========================================================================
   lease-notice-dates.html: the business-day calculator (brief N7.C), the date bar, the worked example and the
   holiday tables. Everything else is the guide kit (pages/_guide.css). Flat colour; the one orange is the
   calculator's primary button. Meaning never depends on colour: every date and status is also written out.
   ========================================================================== */

html body[data-page="lease-notice-dates"] .lnd-tool [hidden],
html body[data-page="lease-notice-dates"] .lnd-tool[hidden],
html body[data-page="lease-notice-dates"] form[hidden] { display: none !important; }

/* ---------------------------------------------------------------- the tool: one white card */
html body .lnd-tool {
  margin: 30px 0 18px; padding: clamp(22px, 2.6vw, 32px); border-radius: 22px;
  background: #fff; box-shadow: var(--gd-card);
}
html body .lnd-noscript { margin: 0 !important; color: var(--gd-text); font-size: 16.5px; }

html body .lnd-form {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); gap: 22px clamp(24px, 3vw, 40px); align-items: start;
}
html body .lnd-fields { display: grid; gap: 20px; }
html body .lnd-field label, html body .lnd-who legend {
  display: block; margin: 0 0 6px; padding: 0; color: var(--gd-ink); font: 650 15.5px/1.35 var(--font-display); letter-spacing: -.01em;
}
html body .lnd-article-hint, html body .lnd-hint { margin: -2px 0 10px !important; color: var(--gd-mute); font: 400 14px/1.45 var(--font-sans) !important; }
html body .lnd-field input[type="date"] {
  display: block; width: 100%; max-width: 280px; height: 50px; margin: 0; padding: 0 14px; box-sizing: border-box;
  border: 0; border-radius: 12px; background: #fff; box-shadow: inset 0 0 0 1.5px rgba(16, 45, 73, .2);
  color: var(--gd-ink); font: 500 16px/1 var(--font-sans); font-variant-numeric: tabular-nums;
  -webkit-appearance: none; appearance: none;
}
html body .lnd-field input[type="date"]:hover { box-shadow: inset 0 0 0 1.5px rgba(0, 107, 203, .5); }
html body .lnd-field input[type="date"]:focus-visible { outline: 2px solid var(--gd-blue); outline-offset: 2px; box-shadow: inset 0 0 0 1.5px var(--gd-blue); }
html body .lnd-field input[aria-invalid="true"] { box-shadow: inset 0 0 0 2px #b3261e; }
html body .lnd-error {
  display: flex; align-items: center; gap: 9px; margin: 9px 0 0 !important; color: #a3261e; font: 600 14px/1.4 var(--font-sans) !important;
}
html body .lnd-error::before { content: ""; flex: none; width: 3px; height: 13px; border-radius: 2px; background: #b3261e; transform: var(--gd-stroke); }

/* who gives notice: two option rows */
html body .lnd-who { display: grid; gap: 10px; margin: 0; padding: 0; border: 0; min-width: 0; }
html body .lnd-who legend { margin-bottom: 10px; }
html body .lnd-opt {
  display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 12px; align-items: start; margin: 0; padding: 14px 16px;
  border-radius: 14px; background: #fff; box-shadow: inset 0 0 0 1px rgba(16, 45, 73, .14);
  color: var(--gd-text); font: 500 15px/1.45 var(--font-sans); cursor: pointer; transition: box-shadow 140ms ease, background 140ms ease;
}
html body .lnd-opt:hover { box-shadow: inset 0 0 0 1px rgba(0, 107, 203, .45); }
html body .lnd-opt:has(input:checked) { background: #f1f7fd; box-shadow: inset 0 0 0 1.5px var(--gd-blue); color: var(--gd-ink); }
html body .lnd-opt input { width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--gd-blue); }
html body .lnd-opt:has(input:focus-visible) { outline: 2px solid var(--gd-blue); outline-offset: 2px; }

html body .lnd-actions { grid-column: 1 / -1; display: flex; padding-top: 4px; }
html body .lnd-actions .btn { min-height: 50px; padding-left: 26px; padding-right: 26px; }

/* ---------------------------------------------------------------- the result */
html body .lnd-result {
  margin: 28px 0 0; padding: 26px 0 0; border-top: 1px solid var(--gd-line); scroll-margin-top: var(--gd-clear, 112px);
}
html body .lnd-result:focus { outline: none; }
html body .lnd-result:focus-visible { outline: 2px solid var(--gd-blue); outline-offset: 8px; border-radius: 4px; }
html body .gd-article .lnd-result h3 {
  display: flex; align-items: center; gap: 10px; margin: 0 0 12px; color: var(--gd-blue);
  font: 600 12px/1 var(--font-sans); letter-spacing: .15em; text-transform: uppercase;
}
html body .gd-article .lnd-result h3::before { content: ""; width: 3px; height: 13px; border-radius: 2px; background: var(--gd-blue); transform: var(--gd-stroke); }
html body .lnd-result p { margin: 0 0 12px !important; font-size: 16.5px; line-height: 1.6; }
html body .lnd-result p.lnd-answer {
  margin-bottom: 18px !important; color: var(--gd-ink); font: 650 clamp(21px, 2vw, 25px)/1.3 var(--font-display) !important; letter-spacing: -.02em; text-wrap: balance;
}
html body .lnd-result time { white-space: nowrap; }
html body .lnd-result p.lnd-answer time { white-space: normal; }
html body .lnd-status {
  display: inline-flex !important; align-items: center; min-height: 30px; padding: 4px 13px; border-radius: 999px;
  background: #eef2f7; color: #3f5470; font: 600 14px/1.35 var(--font-sans) !important;
}
html body .lnd-status[data-status="inside"] { background: #e3f0fc; color: #0b5cad; }
html body .lnd-status[data-status="passed"] { background: var(--gd-ink); color: #fff; }
html body .lnd-skipped { color: var(--gd-slate); font-size: 15.5px !important; }
html body .lnd-remind { margin-top: 16px !important; padding-top: 14px; border-top: 1px solid var(--gd-line); color: var(--gd-slate); font-size: 15.5px !important; }

/* ---------------------------------------------------------------- the date bar: the window as a flat blue span */
html body .lnd-bar { --lnd-window: 50%; position: relative; margin: 4px 0 22px; padding: 0 2px; }
html body .lnd-track { position: relative; height: 12px; border-radius: 999px; background: #e3edf7; }
html body .lnd-window { position: absolute; left: 0; top: 0; bottom: 0; width: var(--lnd-window); border-radius: 999px; background: var(--gd-blue); }
html body .lnd-track::after {   /* the end date: the mark's slanted stroke */
  content: ""; position: absolute; right: -1px; top: -6px; width: 4px; height: 24px; border-radius: 2px; background: var(--gd-ink); transform: var(--gd-stroke);
}
html body .lnd-marks { position: relative; height: 44px; margin-top: 10px; }
html body .lnd-mark { position: absolute; top: 0; display: grid; gap: 2px; white-space: nowrap; }
html body .lnd-mark b { color: var(--gd-ink); font: 650 14.5px/1.2 var(--font-display); letter-spacing: -.01em; }
html body .lnd-mark small { color: var(--gd-mute); font: 500 12px/1.3 var(--font-sans); }
html body .lnd-mark--a { left: 0; }
html body .lnd-mark--b { left: var(--lnd-window); transform: translateX(-50%); text-align: center; }
html body .lnd-mark--e { right: 0; text-align: right; }
html body .lnd-bar--example { --lnd-window: 52.1%; }   /* 3 Mar to 4 May of 3 Mar to 30 Jun 2027: 62 of 119 days */
@media (max-width: 480px) {
  html body .lnd-mark small { font-size: 11px; }
  html body .lnd-mark b { font-size: 13.5px; }
}

/* ---------------------------------------------------------------- the two fixed lines and the worked example */
html body .lnd-foot { margin: 0 0 30px; }
html body .gd-article .lnd-foot p { margin: 0 0 4px; color: var(--gd-slate); font-size: 15.5px; line-height: 1.55; }
html body .lnd-example {
  margin: 0 0 8px; padding: 24px 26px 6px; border-radius: 20px; background: #e8f2fc; color: var(--gd-ink);
  scroll-margin-top: var(--gd-clear, 112px);
}
html body .gd-article .lnd-example p { margin: 0 0 22px; font-size: 17px; line-height: 1.65; }
html body .lnd-example .lnd-track { background: #fff; }

/* ---------------------------------------------------------------- the holiday tables, folded */
html body .lnd-hols {
  margin: 30px 0 8px; border-radius: 20px; background: #fff; box-shadow: var(--gd-card); scroll-margin-top: var(--gd-clear, 112px);
}
html body .lnd-hols > summary {
  position: relative; display: block; padding: 21px 68px 21px 24px; list-style: none; cursor: pointer;
  color: var(--gd-ink); font: 600 17px/1.42 var(--font-sans); letter-spacing: -.008em;
}
html body .lnd-hols > summary::-webkit-details-marker { display: none; }
html body .lnd-hols > summary::after {
  content: "+"; position: absolute; right: 20px; top: 50%; display: grid; place-items: center; width: 30px; height: 30px; margin-top: -15px;
  border-radius: 999px; box-shadow: inset 0 0 0 1px rgba(16, 45, 73, .14); color: var(--gd-blue); font: 500 19px/1 var(--font-sans);
}
html body .lnd-hols[open] > summary::after { content: "\2212"; background: var(--gd-blue); color: #fff; box-shadow: none; }
html body .lnd-hols > summary:hover { color: var(--gd-blue); }
html body .lnd-hols > summary:focus-visible { outline: 2px solid var(--gd-blue); outline-offset: 3px; border-radius: 20px; }
html body .lnd-hols-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; padding: 0 16px; }
html body .lnd-hols .gd-table.lnd-hol-table { margin: 0; box-shadow: inset 0 0 0 1px var(--gd-line); border-radius: 16px; overflow: hidden; }
html body .lnd-hol-table table { font-size: 15px; }
html body .lnd-hol-table caption { padding: 16px 18px 10px !important; font-size: 16px !important; }
html body .lnd-hol-table thead :is(th, td) { padding: 10px 14px 9px !important; }
html body .lnd-hol-table tbody :is(th, td) { padding: 10px 14px !important; }
html body .lnd-hol-table thead :is(th, td):first-child, html body .lnd-hol-table tbody :is(th, td):first-child { padding-left: 18px !important; }
html body .lnd-hol-table tbody th { width: 7.2em; white-space: nowrap; font: 600 14.5px/1.4 var(--font-sans) !important; font-variant-numeric: tabular-nums; }
html body .lnd-hol-table td small { margin-top: 2px !important; }
html body .lnd-hol-table tr.lnd-observed :is(th, td) { background: #f3f8fd; }
html body .gd-article .lnd-hols-note { max-width: 70ch; margin: 0; padding: 14px 24px 0; color: var(--gd-slate); font-size: 15px; line-height: 1.55; }
html body .gd-article .lnd-hols-note:last-child { padding-bottom: 22px; }

/* ---------------------------------------------------------------- the product panel's second group */
html body .gd-app-label.lnd-app-gap { margin-top: 18px !important; }

/* ---------------------------------------------------------------- narrow screens */
@media (max-width: 760px) {
  html body .lnd-form { grid-template-columns: minmax(0, 1fr); }
  html body .lnd-field input[type="date"] { max-width: none; }
  html body .lnd-actions .btn { flex: 1 1 auto; justify-content: center; }
  html body .lnd-hols-grid { grid-template-columns: minmax(0, 1fr); padding: 0 12px; }
}
@media (max-width: 640px) {
  html body .lnd-tool { margin-left: -4px; margin-right: -4px; padding: 20px 18px 22px; border-radius: 20px; }
  html body .lnd-example { padding: 20px 18px 4px; }
  html body .lnd-hols > summary { padding: 18px 58px 18px 18px; font-size: 16px; }
  html body .lnd-hols > summary::after { right: 14px; }
  html body .gd-article .lnd-hols-note { padding-left: 18px; padding-right: 18px; }
}
html body .lnd-mode[data-mode="tenant"] p.lnd-answer { font-size: clamp(19px, 1.7vw, 22px) !important; line-height: 1.36 !important; }
