/* Shared surface, typography and control styling across site templates. */
:root {
  --ce-ink:#181b21;
  --ce-muted:#546071;
  --ce-blue:#0758c9;
  --ce-paper:#f5f6f8;
  --ce-line:#dce1e9;
  --studio-surface:#fff;
  --studio-radius:15px;
  --studio-shadow:0 2px 8px #1a304507;
  --studio-font:-apple-system,BlinkMacSystemFont,"Segoe UI",Inter,system-ui,sans-serif;
}
body.ce-site {
  --gold:var(--ce-blue);--copper:#2774d9;--green:#197052;--panel:#f1f4f8;
  font:15px/1.6 var(--studio-font);
  background:var(--ce-paper);
}
.ce-site .ce-shell,.ce-site main {width:min(calc(100% - 44px),1180px);}
.ce-site main {padding:20px 0 52px;}
.ce-site .ce-header {background:#fffffff5;}
.ce-site .ce-header-inner {min-height:60px;}
.ce-site .ce-logo img,.ce-site .ce-footer img {width:149px;}
.ce-site .ce-header nav a {font-size:.82rem;font-weight:620;}
.ce-site .ce-primary,.ce-site .ce-secondary {
  border-radius:999px;min-height:39px;padding:.52rem .95rem;font-size:.84rem;
  transition:background-color .16s ease,box-shadow .16s ease,transform .16s ease;
}
.ce-site :is(.ce-primary,.ce-secondary):active {transform:scale(.97);}
.ce-site .ce-header-quote {min-height:35px;}
.ce-site h1 {font-size:clamp(2rem,4vw,3.25rem);letter-spacing:-.055em;}
.ce-site h2,.ce-site h3 {letter-spacing:-.035em;}
.ce-site h2 {font-size:clamp(1.26rem,2.4vw,1.8rem);}
.ce-site .ce-page-intro {padding:10px 0 12px;}
.ce-site .ce-section {margin-top:25px;}
.ce-site .ce-breadcrumb {margin-bottom:12px;}
.ce-site .ce-footer {background:#eef1f5;padding-block:25px 16px;}
.ce-site .ce-footer-grid {font-size:.88rem;}
.ce-site :is(.ce-tile,.ce-process li,.ce-form,.ce-content-panel,.calculator-shell,.card,.owned-article,.article,.stack-workspace > section,.material-workspace > section) {
  background:var(--studio-surface);border:1px solid var(--ce-line);
  border-radius:var(--studio-radius);box-shadow:var(--studio-shadow);
}
.ce-site :is(.cardhead,.toolbar,.ce-fab-fields) {border-color:var(--ce-line);}
.ce-site :is(.hero,.phero) {background:transparent;border-color:var(--ce-line);box-shadow:none;}
.ce-site :is(.phero,.hero) h1 {max-width:30ch;}
.ce-site .phero .wrap {width:100%;padding-inline:0;}
.ce-site :is(.quote-layout,.stack-workspace,.material-workspace,.workspace) {gap:12px;}
.ce-site .estimate-card {background:#fff;border:1px solid var(--ce-line);color:var(--ce-ink);box-shadow:var(--studio-shadow);border-radius:var(--studio-radius);}
.ce-site .estimate-card :is(h3,.muted,.calc-note,.eyebrow) {color:var(--ce-muted)!important;}
.ce-site .estimate-price {color:var(--ce-ink);font-variant-numeric:tabular-nums;}
.ce-site .estimate-card .breakdown div {border-color:var(--ce-line);}
.ce-site .estimate-card .breakdown strong {color:var(--ce-ink);}
.ce-site main :is(.btn,.nav-quote) {border-radius:999px;font-family:var(--studio-font);transition:background-color .16s ease,box-shadow .16s ease,transform .16s ease;}
.ce-site main .btn:is(.primary,.btn-red,.btn-copper) {color:#fff;background:var(--ce-blue);border:1px solid var(--ce-blue);box-shadow:none;}
.ce-site main .btn:is(.primary,.btn-red,.btn-copper):hover {background:#0648a6;color:#fff;}
.ce-site main .btn:is(.secondary,.btn-outline) {color:var(--ce-blue);background:#f4f7fb;border-color:var(--ce-line);}
.ce-site main .btn:active {transform:scale(.97);}
.ce-site main :is(input:not([type=checkbox],[type=radio],[type=hidden]),select,textarea) {border:1px solid #b7c1d1;border-radius:8px;background:#fff;color:var(--ce-ink);font-family:var(--studio-font);}
.ce-site .ce-reading .owned-article,.ce-site .ce-reading .article {padding:clamp(17px,3vw,34px);}
.ce-site .ce-reading h1 {max-width:28ch;}
.ce-site main.ce-reading p {line-height:1.7;}
.ce-site :is(.ce-note,.note) {border-color:#c9ddf4;border-radius:10px;}
.ce-site .studio-intro {
  position:relative;isolation:isolate;display:flex;align-items:center;justify-content:space-between;gap:12px;
  min-height:76px;margin-bottom:14px;padding:12px 14px 12px 17px;background:#fff;
  border:1px solid var(--ce-line);border-radius:var(--studio-radius);overflow:hidden;
}
.ce-site .studio-intro h1 {max-width:none;margin:0;font-size:clamp(1.25rem,2.5vw,2.12rem);}
.studio-intro p {margin:.22rem 0 0;color:var(--ce-muted);font-size:.88rem;}
.studio-intro img {width:clamp(120px,17vw,222px);height:52px;object-fit:cover;object-position:center 52%;border-radius:8px;}
.studio-workspace {display:grid;grid-template-columns:minmax(0,1.85fr) minmax(0,1fr);gap:14px;align-items:start;}
.studio-catalogue,.studio-estimator {min-width:0;border:1px solid var(--ce-line);border-radius:var(--studio-radius);background:#fff;padding:14px;box-shadow:var(--studio-shadow);}
.studio-catalogue-head {display:flex;align-items:baseline;justify-content:space-between;gap:10px;}
.ce-site :is(.studio-catalogue,.studio-estimator) h2 {margin:0;font-size:1.23rem;}
.studio-catalogue-head a {font-size:.79rem;font-weight:650;}
.studio-tool-group {margin-top:9px;}
.ce-site .studio-tool-group h3 {margin:0 0 4px;font-size:.76rem;font-weight:660;color:var(--ce-muted);letter-spacing:0;}
.studio-tool-grid {display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px;}
.ce-site .studio-tool {
  display:flex;align-items:center;gap:7px;min-height:46px;min-width:0;
  padding:5px 6px;background:#f8f9fb;border:1px solid #e4e8ef;border-radius:10px;
  color:var(--ce-ink);font-size:.77rem;font-weight:650;line-height:1.2;text-decoration:none;
  transition:background-color .16s ease,border-color .16s ease,box-shadow .16s ease,transform .16s ease;
}
.ce-site .studio-tool:hover,.ce-site .studio-tool:focus-visible {background:#f0f6ff;border-color:#9dbfec;color:var(--ce-ink);box-shadow:0 4px 12px #145fa817;transform:translateY(-2px);}
.ce-site .studio-tool:active {transform:scale(.97);}
.studio-icon {width:26px;height:26px;display:grid;place-items:center;border-radius:8px;background:#e3eeff;color:#1657ac;flex:none;}
.studio-icon svg {width:17px;height:17px;transition:transform .18s ease;}
.studio-tool:hover .studio-icon svg {transform:scale(1.13);}
.studio-tone-1 {background:#e3f1ec;color:#176347;}
.studio-tone-2 {background:#eee9fc;color:#6942a2;}
.studio-tone-3 {background:#fcebdd;color:#9c4b17;}
.studio-tone-4 {background:#e2f0f5;color:#215e76;}
.studio-arrow {margin-left:auto;color:#526a8b;font-size:.73rem;}
.studio-estimate-head {margin-bottom:9px;}
.studio-fields {display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:5px 7px;}
.studio-fields label {font-weight:650;font-size:.73rem;line-height:1.2;}
.studio-fields :is(input,select) {display:block;width:100%;min-width:0;height:32px;margin-top:4px;padding:3px 5px;font-size:.84rem;}
.studio-scope {grid-column:1/-1;}
.studio-quote {margin-top:9px;border:1px solid var(--ce-line);border-radius:10px;background:#fafbfc;padding:9px 11px;}
.studio-quote header {border:0;border-bottom:1px solid var(--ce-line);display:flex;justify-content:space-between;gap:6px;background:transparent;padding:0 0 5px;font-size:.72rem;position:static;}
.studio-quote dl {margin:4px 0;}
.studio-quote dl div,.studio-total {display:flex;justify-content:space-between;align-items:baseline;gap:8px;}
.studio-quote dt,.studio-quote dd,.studio-total span {font-size:.75rem;}
.studio-quote dd {margin:0;font-variant-numeric:tabular-nums;font-weight:620;}
.studio-total {border-top:1px solid var(--ce-line);padding-top:5px;}
.studio-total strong {font-size:clamp(.9rem,1.55vw,1.23rem);font-variant-numeric:tabular-nums;text-align:right;color:var(--ce-blue);}
.studio-quote p {margin:5px 0 0;color:var(--ce-muted);font-size:.69rem;line-height:1.35;}
.studio-quote-actions {display:flex;align-items:center;flex-wrap:wrap;gap:7px 11px;margin-top:9px;}
.studio-quote-actions a:last-child {font-size:.78rem;font-weight:650;}
@media (max-width:1000px) {.studio-tool-grid {grid-template-columns:repeat(3,minmax(0,1fr));}}
@media (max-width:780px) {.studio-workspace {grid-template-columns:minmax(0,1fr);} .studio-tool-grid {grid-template-columns:repeat(4,minmax(0,1fr));}}
@media (max-width:620px) {
  .ce-site .ce-shell,.ce-site main {width:calc(100% - 28px);}
  .ce-site main {padding-top:13px;}
  .studio-tool-grid {grid-template-columns:repeat(2,minmax(0,1fr));}
  .ce-site .studio-intro {padding:9px 10px;}
  .studio-intro img {width:59px;height:44px;}
  .studio-intro p {font-size:.77rem;}
  .studio-catalogue,.studio-estimator {padding:10px;}
}
@media (prefers-reduced-motion:reduce) {
  .ce-site :is(.studio-tool,.studio-tool:hover,.studio-tool:active,.studio-tool:hover svg,.ce-primary:active,.ce-secondary:active,.btn:active) {transform:none;}
}
.studio-tool-grid-2 {grid-template-columns:repeat(2,minmax(0,1fr));}
@media (min-width:621px) {.studio-tool-grid-3 {grid-template-columns:repeat(3,minmax(0,1fr));}}
