/* Cladding quantity calculator and its page (pSEO page 1). Scoped to .cc and .cc-*; uses the tokens of site.css. */
.cc-sec { padding: 72px 0 120px; }
.cc-head { max-width: 40em; margin-bottom: 40px; }
.cc-head .h2 { margin-top: 16px; font-size: clamp(28px, 3vw, 40px); letter-spacing: -.03em; }
.cc-head p { margin-top: 14px; color: var(--ink-2); font-size: 16.5px; line-height: 1.6; }
.cc-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 40px; align-items: start; }
.cc-in { display: grid; gap: 20px; min-width: 0; }
.cc-fs { margin: 0; padding: 22px 22px 6px; border: 1px solid var(--line-2); border-radius: 8px; background: var(--panel-2); min-width: 0; }
.cc-fs > legend { float: left; width: 100%; padding: 0; margin: 0 0 18px; font-size: 12px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--accent-hi); line-height: 1.4; }
.cc-fs > legend + * { clear: both; }
.cc-f { margin-bottom: 20px; min-width: 0; }
.cc-f > label, .cc-lab { display: block; font-size: 14px; font-weight: 500; color: var(--ink); }
.cc-box { position: relative; margin: 8px 0 6px; }
.cc-box input { display: block; width: 100%; min-width: 0; height: 50px; padding: 0 52px 0 14px; background: var(--bg-2); border: 1px solid var(--line-2); border-radius: 5px; color: var(--ink); font: inherit; font-size: 18px; font-variant-numeric: tabular-nums; transition: border-color .2s, background-color .2s; }
.cc-box input::placeholder { color: var(--ink-3); opacity: .7; }
.cc-box input:hover { border-color: var(--line-3); }
.cc-box input:focus-visible { border-color: var(--accent-hi); background: var(--bg-3); outline: 2px solid var(--accent-hi); outline-offset: 2px; }
.cc-box input[aria-invalid="true"] { border-color: var(--warn); background: var(--warn-bg); }
.cc-box .u { position: absolute; right: 14px; top: 0; height: 50px; display: flex; align-items: center; font-size: 14px; color: var(--ink-3); pointer-events: none; }
.cc-hint { display: block; font-size: 12.5px; line-height: 1.5; color: var(--ink-3); }
.cc-err { display: block; margin-top: 6px; font-size: 13px; line-height: 1.45; color: var(--warn); }
.cc-err[hidden], .cc [hidden] { display: none !important; }
.cc-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

/* openings: two ways to enter them */
.cc-seg { display: inline-flex; padding: 3px; margin-bottom: 18px; border-radius: 8px; box-shadow: inset 0 0 0 1px var(--line-2); gap: 2px; max-width: 100%; }
.cc-seg button { height: 36px; padding: 0 14px; border-radius: 6px; font-size: 13.5px; font-weight: 500; color: var(--ink-2); transition: background-color .2s, color .2s; text-align: center; }
.cc-seg button:hover { color: var(--ink); }
.cc-seg button[aria-pressed="true"] { background: rgba(var(--ink-rgb), .12); color: var(--ink); }
.cc-seg button:focus-visible { outline: 2px solid var(--accent-hi); outline-offset: 2px; }
.cc-orow { position: relative; display: grid; grid-template-columns: 1fr 1fr 72px; gap: 10px; padding: 14px 40px 4px 0; margin-bottom: 12px; border-top: 1px solid var(--line); }
.cc-orow-t { grid-column: 1 / -1; font-size: 12.5px; color: var(--ink-3); }
.cc-ofield { display: block; min-width: 0; font-size: 12.5px; color: var(--ink-2); }
.cc-ofield input { display: block; width: 100%; min-width: 0; height: 44px; margin-top: 4px; padding: 0 10px; background: var(--bg-2); border: 1px solid var(--line-2); border-radius: 5px; color: var(--ink); font: inherit; font-size: 16px; font-variant-numeric: tabular-nums; }
.cc-ofield input:focus-visible { border-color: var(--accent-hi); outline: 2px solid var(--accent-hi); outline-offset: 2px; }
.cc-rm { position: absolute; right: 0; bottom: 4px; width: 36px; height: 44px; border-radius: 5px; font-size: 22px; line-height: 1; color: var(--ink-3); transition: color .2s, background-color .2s; }
.cc-rm:hover { color: var(--ink); background: rgba(var(--ink-rgb), .08); }
.cc-rm:focus-visible { outline: 2px solid var(--accent-hi); outline-offset: 2px; }
.cc-add { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px 0 12px; margin-bottom: 14px; border-radius: 5px; box-shadow: inset 0 0 0 1px var(--line-2); font-size: 14px; font-weight: 500; color: var(--ink); transition: box-shadow .2s, background-color .2s; }
.cc-add:hover { box-shadow: inset 0 0 0 1px var(--line-3); background: rgba(var(--ink-rgb), .05); }
.cc-add:focus-visible { outline: 2px solid var(--accent-hi); outline-offset: 2px; }
.cc-sum { display: block; margin-bottom: 20px; font-size: 14px; color: var(--ink-2); font-variant-numeric: tabular-nums; }

/* result */
.cc-out { position: sticky; top: calc(var(--hd) + 20px); min-width: 0; }
.cc-out .panel-body { padding: 22px; }
.cc-empty { padding: 36px 6px 30px; }
.cc-empty h3 { font-size: 20px; font-weight: 500; letter-spacing: -.02em; line-height: 1.3; }
.cc-empty p { margin-top: 10px; font-size: 15px; line-height: 1.6; color: var(--ink-2); max-width: 30em; }
.cc-empty svg { display: block; width: 64px; height: 40px; margin-bottom: 20px; fill: none; stroke: var(--accent-hi); stroke-width: 1.4; stroke-linejoin: round; }
.cc-errnote { padding: 14px 16px; border-radius: 6px; background: var(--warn-bg); border: 1px solid rgba(237, 184, 95, .35); font-size: 14.5px; line-height: 1.5; color: var(--ink); }
.cc-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.cc-stat { padding: 16px 16px 14px; border-radius: 6px; border: 1px solid var(--line); background: var(--panel-2); min-width: 0; }
.cc-stat > span { display: block; font-size: 12.5px; color: var(--ink-2); }
.cc-stat > strong { display: block; margin: 6px 0 8px; font-size: clamp(26px, 2.6vw, 34px); font-weight: 500; line-height: 1.15; letter-spacing: -.03em; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.cc-stat > small { display: block; font-size: 12px; line-height: 1.5; color: var(--ink-3); }
.cc-stat.main { grid-column: 1 / -1; background: var(--accent); border-color: transparent; color: var(--accent-fg); }
.cc-stat.main > span, .cc-stat.main > small { color: inherit; opacity: .85; }
.cc-stat.main > strong { font-size: clamp(36px, 4vw, 52px); }
.cc-tw { margin-top: 22px; overflow-x: auto; }
.cc-tw h3 { font-size: 15.5px; font-weight: 500; margin-bottom: 10px; }
.cc-tw table { width: 100%; border-collapse: collapse; font-size: 14px; }
.cc-tw th, .cc-tw td { padding: 10px 12px 10px 0; text-align: left; vertical-align: top; border-top: 1px solid var(--line); line-height: 1.45; }
.cc-tw thead th { font-size: 11px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); border-top: 0; padding-top: 0; }
.cc-tw tbody th { font-weight: 500; color: var(--ink); }
.cc-tw td.num { white-space: nowrap; color: var(--ink); }
.cc-tw td.cc-basis { color: var(--ink-3); font-size: 12.5px; padding-right: 0; }
.cc-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 14px; margin-top: 16px; }
.cc-copy { height: 40px; padding: 0 16px; border-radius: 5px; box-shadow: inset 0 0 0 1px var(--line-2); font-size: 14px; font-weight: 500; color: var(--ink); transition: box-shadow .2s, background-color .2s; }
.cc-copy:hover { box-shadow: inset 0 0 0 1px var(--line-3); background: rgba(var(--ink-rgb), .05); }
.cc-copy:focus-visible { outline: 2px solid var(--accent-hi); outline-offset: 2px; }
.cc-copymsg { font-size: 13px; color: var(--ok); }
.cc-ass { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); }
.cc-ass h3 { font-size: 12px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 10px; }
.cc-ass ul { display: grid; gap: 8px; }
.cc-ass li { position: relative; padding-left: 16px; font-size: 13.5px; line-height: 1.55; color: var(--ink-2); }
.cc-ass li::before { content: ""; position: absolute; left: 0; top: .6em; width: 6px; height: 1px; background: var(--ink-3); }
.cc-note { margin-top: 18px; font-size: 13px; line-height: 1.55; color: var(--ink-3); }

/* the rest of the page */
.cc-steps { counter-reset: s; display: grid; gap: 0; border-top: 1px solid var(--line-2); }
.cc-steps li { counter-increment: s; display: grid; grid-template-columns: 44px 1fr; gap: 12px; padding: 20px 0; border-bottom: 1px solid var(--line); font-size: 16.5px; line-height: 1.6; color: var(--ink); }
.cc-steps li::before { content: counter(s, decimal-leading-zero); font-size: 13px; letter-spacing: .08em; color: var(--accent-hi); padding-top: .25em; font-variant-numeric: tabular-nums; }
.cc-facts { display: grid; gap: 0; border-top: 1px solid var(--line-2); }
.cc-facts li { position: relative; padding: 18px 0 18px 34px; border-bottom: 1px solid var(--line); font-size: 16.5px; line-height: 1.6; color: var(--ink); }
.cc-facts li::before { content: ""; position: absolute; left: 4px; top: 25px; width: 12px; height: 6px; border-left: 1.6px solid var(--ok); border-bottom: 1.6px solid var(--ok); transform: rotate(-45deg); }
.cc-more { margin-top: 24px; display: flex; flex-wrap: wrap; gap: 8px 24px; font-size: 15px; color: var(--ink-2); }
.cc-fine { margin-top: 18px; font-size: 14px; line-height: 1.6; color: var(--ink-3); max-width: 38em; }

@media (max-width: 1100px) {
  .cc-grid { grid-template-columns: 1fr; gap: 28px; }
  .cc-out { position: static; }
}
@media (max-width: 760px) {
  .cc-sec { padding: 48px 0 80px; }
  .cc-fs { padding: 18px 16px 2px; }
  .cc-out .panel-body { padding: 16px; }
  .cc-stats { grid-template-columns: 1fr; }
  .cc-stat > strong { font-size: 26px; }
  .cc-stat.main > strong { font-size: 38px; }
  .cc-tw table, .cc-tw tbody, .cc-tw tr, .cc-tw th, .cc-tw td { display: block; }
  .cc-tw thead { display: none; }
  .cc-tw tr { padding: 12px 0; border-top: 1px solid var(--line); }
  .cc-tw th, .cc-tw td { border: 0; padding: 0; }
  .cc-tw td.num { margin-top: 2px; font-size: 16px; }
  .cc-tw td.cc-basis { margin-top: 2px; }
  .cc-orow { grid-template-columns: 1fr 1fr 64px; }
  .cc-seg { display: flex; }
  .cc-seg button { flex: 1; padding: 0 8px; }
}
@media (prefers-reduced-motion: reduce) {
  .cc-box input, .cc-seg button, .cc-add, .cc-copy, .cc-rm { transition: none; }
}
