/* ==========================================================================
   /calculator/logo-cost/ — logo and branding price calculator, restored
   2026-10-11. Same page language as the other restored tools (banner creator,
   AI text cleaner, signature generator, price quote generator): the theme
   tokens, a 6% accent tint for surfaces, radii 22/16/10, the shared .btn and the
   portfolio.css orbit. Mobile First, every rule scoped under .lc-page.

   Breakpoints: 768px (padding), 1100px (choices and offer side by side, the
   offer sticky), 1200px (orbit shown).
   ========================================================================== */

.lc-page {
  --lc-surface: color-mix(in srgb, var(--color-accent) 6%, var(--color-surface));
  --lc-error: #B3261E;
  --lc-h1: var(--h1-page);
  --lc-h2: clamp(1.375rem, 1.9vw, 1.75rem);
  --lc-h3: clamp(1.125rem, 1.6vw, 1.25rem);
  color: var(--color-text-primary);
  padding-block: var(--space-6) var(--space-12);
  overflow-x: clip;
}
.lc-container { max-width: 1600px; margin-inline: auto; padding-inline: var(--space-4); }
.lc-inner { max-width: 1200px; margin-inline: auto; }
.lc-page [hidden] { display: none !important; }
.lc-sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0; }

/* ---------- Intro ---------- */
.lc-intro { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-3); padding-block: var(--space-3) var(--space-6); }
.lc-breadcrumb { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2); font-size: var(--text-xs); color: var(--color-text-secondary); }
.lc-breadcrumb a { display: inline-flex; align-items: center; min-height: 44px; margin-block: -12px; color: var(--color-text-secondary); transition: color 180ms ease; }
.lc-breadcrumb a:hover { color: var(--color-accent); }
.lc-breadcrumb [aria-current] { color: var(--color-text-primary); font-weight: var(--font-bold); }
.lc-title { margin: 0; font-size: var(--lc-h1); font-weight: var(--font-black); line-height: var(--leading-h1-page); letter-spacing: -0.01em; }
.lc-subtitle { margin: 0; font-size: var(--text-body-lg); font-weight: var(--font-bold); line-height: var(--leading-ui); color: var(--color-accent); }
.lc-page .portfolio-hero__graphic { display: none; position: absolute; inset: auto; top: 0; left: 20px; width: 180px; height: 180px; }
.lc-page .portfolio-hero__orbit { inset: 0; width: auto; height: auto; }

/* ---------- No-JS ---------- */
.lc-needs-js { margin: 0 0 var(--space-6); padding: var(--space-4) var(--space-5); border: 1px solid var(--color-border); border-radius: var(--radius-stat); background: var(--lc-surface); font-size: var(--text-md); }
.lc-js .lc-needs-js { display: none; }
html:not(.lc-js) .lc-workspace { display: none; }

/* ---------- Workspace ---------- */
.lc-workspace { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-6); align-items: start; }
.lc-card { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-card); padding: var(--space-5); min-width: 0; }
.lc-card__title { margin: 0 0 var(--space-2); font-size: var(--lc-h3); font-weight: var(--font-bold); line-height: var(--leading-heading); }
.lc-hint { margin: 0; font-size: var(--text-xs); line-height: 1.55; color: var(--color-text-secondary); }
.lc-form { display: flex; flex-direction: column; gap: var(--space-6); margin-top: var(--space-4); }
.lc-fieldset { display: flex; flex-direction: column; gap: var(--space-3); margin: 0; padding: 0; border: 0; min-width: 0; }
.lc-fieldset legend { padding: 0; margin-bottom: var(--space-2); font-size: var(--text-ui); font-weight: var(--font-bold); }

/* The explanation of a sketch and of a round of fixes */
.lc-info { display: flex; flex-direction: column; gap: var(--space-2); padding: var(--space-4); border-radius: var(--radius-stat); background: var(--lc-surface); border-inline-start: 4px solid var(--color-accent); }
.lc-info p { margin: 0; font-size: var(--text-md); line-height: var(--leading-ui); color: var(--color-text-secondary); }
.lc-info strong { color: var(--color-text-primary); font-weight: var(--font-bold); }

/* Sliders: native, accent-coloured, 44px touch height, with the number beside them */
.lc-slider { display: flex; flex-direction: column; gap: var(--space-2); min-width: 0; }
.lc-slider > label { font-size: var(--text-ui); font-weight: var(--font-bold); color: var(--color-text-primary); }
.lc-slider__row { display: flex; align-items: center; gap: var(--space-3); }
.lc-slider input[type="range"] { flex: 1 1 auto; min-width: 0; min-height: 44px; margin: 0; accent-color: var(--color-accent); cursor: pointer; }
.lc-slider input[type="range"]:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 2px; border-radius: 4px; }
.lc-slider__value { flex: none; min-width: 2.75rem; padding: 0.4rem 0.6rem; border-radius: var(--radius-button); border: 1px solid var(--color-border); background: var(--lc-surface); font-size: var(--text-ui); font-weight: var(--font-black); text-align: center; font-variant-numeric: tabular-nums; }

/* Tick boxes (native, accent-coloured, 44px targets) with the price at the end of the row */
.lc-check { display: flex; align-items: center; gap: 10px; min-height: 44px; padding-block: 2px; font-size: var(--text-ui); cursor: pointer; }
.lc-check input { width: 20px; height: 20px; margin: 0; accent-color: var(--color-accent); cursor: pointer; flex: none; }
.lc-check input:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 2px; }
.lc-check__text { flex: 0 1 auto; min-width: 0; }
.lc-price { flex: none; font-size: var(--text-sm); font-weight: var(--font-bold); color: var(--color-text-secondary); font-variant-numeric: tabular-nums; white-space: nowrap; }

/* Running total: only where the offer is under the choices (below 1100px); it sticks under the site header while choosing */
.lc-running { position: sticky; top: calc(var(--header-h-mobile) + var(--space-4)); z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); margin-top: var(--space-4); padding: var(--space-3) var(--space-4); border-radius: var(--radius-stat); background: var(--color-text-primary); color: #ffffff; box-shadow: 0 4px 14px rgba(17, 17, 17, .18); }
.lc-running__label { font-size: var(--text-sm); font-weight: var(--font-bold); }
.lc-running__value { font-size: var(--text-body-lg); font-weight: var(--font-black); font-variant-numeric: tabular-nums; }
.lc-option { display: flex; flex-direction: column; gap: var(--space-2); }
.lc-sub { display: flex; flex-direction: column; gap: var(--space-3); padding: var(--space-4); margin-inline-start: 30px; border-radius: var(--radius-stat); background: var(--lc-surface); }

/* What every package includes */
.lc-includes { padding: var(--space-4) var(--space-5); border-radius: var(--radius-stat); background: var(--lc-surface); }
.lc-includes__title { margin: 0 0 var(--space-2); font-size: var(--text-ui); font-weight: var(--font-bold); }
.lc-includes__list { display: grid; gap: var(--space-1); margin: 0; padding-inline-start: 1.25rem; font-size: var(--text-md); color: var(--color-text-secondary); }

/* ---------- The offer ---------- */
.lc-summary { display: flex; flex-direction: column; gap: var(--space-4); }
.lc-summary .lc-card__title { margin-bottom: 0; }
.lc-lines { width: 100%; border-collapse: collapse; }
.lc-lines th, .lc-lines td { padding: 10px 6px; border-bottom: 1px solid var(--color-border); font-size: var(--text-md); line-height: 1.5; vertical-align: top; }
.lc-lines__label { font-weight: var(--font-regular, 400); text-align: start; overflow-wrap: anywhere; }
.lc-lines tr:first-child .lc-lines__label { font-weight: var(--font-bold); }
.lc-lines__amount { text-align: end; white-space: nowrap; font-variant-numeric: tabular-nums; }
.lc-totals { display: grid; gap: 2px; margin: 0; padding: 0; }
.lc-totals__row { display: flex; justify-content: space-between; gap: var(--space-3); padding: 6px; font-size: var(--text-md); font-variant-numeric: tabular-nums; }
.lc-totals__row dt, .lc-totals__row dd { margin: 0; }
.lc-total { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: var(--space-4); border-radius: var(--radius-stat); background: var(--color-text-primary); color: #ffffff; text-align: center; }
.lc-total__label { font-size: var(--text-sm); font-weight: var(--font-bold); }
.lc-total__value { font-size: var(--lc-h2); font-weight: var(--font-black); font-variant-numeric: tabular-nums; }
.lc-note { margin: 0; padding: var(--space-3) var(--space-4); border-radius: var(--radius-stat); background: color-mix(in srgb, #E0A800 14%, var(--color-surface)); border: 1px solid color-mix(in srgb, #E0A800 40%, var(--color-border)); font-size: var(--text-sm); line-height: 1.6; }
.lc-actions { display: flex; flex-direction: column; gap: var(--space-3); }
.lc-btn { width: 100%; height: auto; min-height: 54px; padding-block: 12px; white-space: normal; text-align: center; }
.lc-status { margin: 0; min-height: 1.5em; font-size: var(--text-sm); font-weight: var(--font-bold); line-height: 1.5; color: var(--color-accent); }
.lc-status.is-error { color: var(--lc-error); }

/* ---------- The article under the tool ---------- */
.lc-article { margin-top: var(--space-10); max-width: 78ch; }
.lc-article h2 { margin: var(--space-8) 0 var(--space-3); font-size: var(--lc-h2); font-weight: var(--font-bold); line-height: var(--leading-heading); }
.lc-article h2:first-child { margin-top: 0; }
.lc-article h3 { margin: var(--space-5) 0 var(--space-2); font-size: var(--lc-h3); font-weight: var(--font-bold); line-height: var(--leading-heading); }
.lc-article p { margin: 0 0 var(--space-3); font-size: var(--text-body); line-height: var(--leading-lead); color: var(--color-text-secondary); }
.lc-article ul { display: grid; gap: var(--space-1); margin: 0 0 var(--space-4); padding-inline-start: 1.25rem; font-size: var(--text-body); line-height: var(--leading-ui); color: var(--color-text-secondary); }
.lc-article a { color: var(--color-accent); text-decoration: underline; text-underline-offset: 3px; }
.lc-article a:hover { text-decoration-thickness: 2px; }
.lc-article a:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 2px; border-radius: 3px; }

/* ---------- Tablet, >=768px ---------- */
@media (min-width: 768px) {
  .lc-page { padding-block: var(--space-8) var(--space-13); }
  .lc-intro { padding-block: var(--space-5) var(--space-6); }
  .lc-card { padding: var(--space-7); }
  .lc-actions { flex-direction: row; }
  .lc-actions .lc-btn { flex: 1 1 0; }
  .lc-btn { width: auto; padding-inline: var(--space-6); }
}

/* ---------- Choices and offer side by side, >=1100px ---------- */
@media (min-width: 1100px) {
  .lc-running { display: none; }
  .lc-workspace { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); }
  /* A long offer makes the card taller than the screen: it then scrolls inside itself, so the buttons stay reachable. */
  .lc-summary { position: sticky; top: calc(var(--header-h-desktop) + var(--space-4)); max-height: calc(100vh - var(--header-h-desktop) - var(--space-8)); overflow-y: auto; }
}

@media (min-width: 1200px) {
  .lc-page .portfolio-hero__graphic { display: block; }
  .lc-title { max-width: min(68ch, calc(100% - 220px)); }
}

@media (prefers-reduced-motion: reduce) {
  .lc-breadcrumb a { transition: none; }
}
