/* Page CSS for the home page: only what sits inside a visual (taste-skill system.md), plus the
   client's logo glyph. Everything else is the kit's system. */
.nav__logo .fw-logo { width: 26px; height: 26px; flex: none; }

/* app-frame, the recipe's CSS as written (sections-library.md) */
.app.ui { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); margin-top: var(--s-7); background: var(--u-bg); border: 1px solid var(--u-border); border-radius: var(--u-r); box-shadow: var(--u-shadow); }
.app > .app__pane { position: relative; min-width: 0; min-height: 0; overflow: hidden; }
.app > .app__pane + .app__pane { border-left: 1px solid var(--u-line); }
.app > .app__pane > .ui-panel { width: 100%; border: 0; border-radius: 0; box-shadow: none; }
.app > .app__pane::after { content: ""; position: absolute; inset: auto 0 0 0; height: 64px; background: linear-gradient(transparent, var(--u-bg)); pointer-events: none; }
@media (min-width: 1024px) and (max-width: 1279px) { .app.ui { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); } }
@media (max-width: 1023px) {
  .app.ui { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr); }
  .app > .app__pane--list { max-height: 252px; }
  .app > .app__pane--list::after { display: none; }
  .app .ui-win__side { display: none; }
  .app .ui-win__body { grid-template-columns: minmax(0, 1fr); }
  .app > .app__pane + .app__pane { border-left: 0; border-top: 1px solid var(--u-line); }
}
@media (max-width: 639px) {
  .app.ui { grid-template-rows: minmax(0, 1fr); }
  .app > .app__pane--list { display: none; }
  .app > .app__pane + .app__pane { border-top: 0; }
}
.app .ui-win__row.is-sel { background: var(--u-tint); }

/* the open receipt */
.rcpt { padding: 24px 28px; display: grid; gap: 14px; align-content: start; font-size: 15px; }
.rcpt__head { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; padding-bottom: 14px; border-bottom: 1px solid var(--u-line); }
.rcpt__head b { display: block; font-size: 18px; font-weight: 500; color: var(--u-ink); }
.rcpt__head span:not(.ui-win__st) { color: var(--u-soft); font-size: 14px; }
.rcpt__label { margin: 6px 0 0; font-size: 13px; font-weight: 500; color: var(--u-soft); }
.rcpt__read { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 0; }
.rcpt__read > div { padding: 10px 12px; border: 1px solid var(--u-line); border-radius: var(--u-r-sm, 6px); }
.rcpt__read dt { font-size: 13px; color: var(--u-soft); }
.rcpt__read dd { margin: 2px 0 0; font-family: var(--font-mono); font-size: 15px; color: var(--u-ink); }
.rcpt__to { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.rcpt__to li { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 12px 14px; border-radius: var(--u-r-sm, 6px); background: var(--u-tint); color: var(--u-ink); }
.rcpt__n { font-size: 13px; font-weight: 500; color: var(--u-accent-text); }
.rcpt__to b { font-weight: 500; font-family: var(--font-mono); font-size: 14px; }
.rcpt__note { margin: 4px 0 0; color: var(--u-soft); font-size: 14px; }
@media (max-width: 639px) { .rcpt { padding: 18px; } .rcpt__read { grid-template-columns: repeat(2, minmax(0, 1fr)); } .rcpt__to li { grid-template-columns: minmax(0, 1fr); gap: 2px; } }

/* the hero's tax summary page */
.packet-stage { display: flex; align-items: flex-start; justify-content: center; padding: 40px 40px 0; background: var(--surface); }
.packet { width: min(100%, 440px); background: var(--u-bg, #fff); border: 1px solid var(--u-border, var(--line)); border-radius: var(--u-r, 8px); box-shadow: var(--u-shadow); padding: 24px 28px 20px; font-size: 15px; color: var(--ink); }
.packet__head { padding-bottom: 14px; margin-bottom: 4px; border-bottom: 1.5px solid var(--ink); }
.packet__head b { display: block; font-size: 20px; font-weight: 500; letter-spacing: -0.01em; }
.packet__head span { color: var(--muted); font-size: 14px; }
.packet__row { display: grid; grid-template-columns: 36px minmax(0, 1fr) auto; gap: 8px; padding: 7px 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.packet__row i { font-style: normal; font-family: var(--font-mono); font-size: 13px; color: var(--action); }
.packet__row small { display: block; color: var(--muted); font-size: 13px; }
.packet__row b { font-weight: 500; font-family: var(--font-mono); font-size: 14px; }
.packet__row--gross { grid-template-columns: minmax(0, 1fr) auto; border-bottom-width: 1.5px; }
.packet__row--ask { color: var(--muted); border-bottom: 0; }
@media (max-width: 639px) { .packet-stage { padding: 20px 16px 0; } .packet { padding: 18px; } .packet__row small { display: none; } }

/* the IFTA worksheet: a working form inside the visual */
.ifta { padding: 24px 28px; display: grid; gap: 20px; }
.ifta__table { width: 100%; border-collapse: collapse; font-size: 15px; }
.ifta__table th { text-align: left; font-weight: 500; color: var(--u-soft); font-size: 13px; padding: 0 0 8px; }
.ifta__table tbody th { color: var(--u-ink); font-size: 15px; padding: 6px 12px 6px 0; }
.ifta__table td { padding: 4px 0 4px 8px; }
.ifta__table input { width: 100%; height: 44px; padding: 0 12px; text-align: right; font: 400 16px var(--font-mono); color: var(--u-ink); background: var(--u-bg); border: 1px solid var(--u-border); border-radius: var(--u-r-sm, 6px); }
.ifta__table input:focus-visible { outline: 2px solid var(--action); outline-offset: 1px; }
.ifta__answer { padding: 20px 22px; border-radius: var(--u-r-sm, 6px); background: var(--action); color: var(--action-ink); }
.ifta__total { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; flex-wrap: wrap; }
.ifta__total span { font-size: 16px; }
.ifta__total b { font-weight: 500; font-size: 38px; letter-spacing: -0.03em; line-height: 1; }
.ifta__line { margin: 6px 0 12px; font-size: 14px; opacity: .9; }
.ifta__states { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 0 20px; font-size: 14px; }
.ifta__states li { display: flex; justify-content: space-between; padding: 6px 0; border-top: 1px solid rgb(255 255 255 / .25); }
.ifta__states b { font-weight: 500; font-family: var(--font-mono); }
@media (max-width: 639px) { .ifta { padding: 18px; } .ifta__table tbody th { font-size: 14px; } }

.plain-facts { list-style: none; margin: 8px 0 0; padding: 12px 0 0; display: grid; gap: 10px; border-top: 1px solid var(--line); }
.plain-facts li { padding-bottom: 8px; border-bottom: 1px solid var(--line); }

/* the close's name: hand-set per breakpoint for "Fifth Wheel" (11 letters), with room for the ascenders */
.close__word { font-size: clamp(48px, 10.6vw, 152px); line-height: 1.04; padding-top: .02em; }
@media (max-width: 639px) { .close__word { font-size: 13.4vw; } }
#shoebox .mo-la__sub { color: var(--ink); }

/* calendar-frame: the month shows whole at every width (sections-library.md, calendar-frame) */
#dates .cal-col .ui-calendar { width: min(100%, 440px); margin-left: auto; }
@media (max-width: 1023px) { #dates .cal-col .ui-calendar { margin: var(--s-7) 0 0; } }
/* phones: the IFTA worksheet and its answer take two screens; the open receipt drops its note */
@media (max-width: 639px) { #ifta { --hm: 2; } .rcpt__note, .rcpt__head span:not(.ui-win__st) { display: none; } .rcpt { gap: 10px; } }
@media (max-width: 639px) {
  .hero__media .ly-float { display: none; }
  .rcpt__read, .rcpt__label:first-of-type { display: none; }
}
@media (max-width: 639px) { #pricing { --hm: 2; } #shoebox .mo-la__type { font-size: 17vw; line-height: .95; } }
