/*
 * @author Codex
 * @date 2026-11-23 14:34:43
 * @comment Style the public sourcing site, geometry illustrations and responsive procurement forms.
 */

:root {
  color-scheme: light;
  --ink: #17292d;
  --muted: #465c5c;
  --navy: #193137;
  --paper: #fbfcf9;
  --surface: #eef2ed;
  --line: #cbd5cf;
  --accent: #a43e24;
  --accent-hover: #85301c;
  --display: "Avenir Next", "Segoe UI", Arial, sans-serif;
  --body: system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-padding-top: 1rem; }
body { margin: 0; font: 1rem/1.65 var(--body); color: var(--ink); background: var(--paper); }
a { color: var(--accent-hover); text-decoration-thickness: .08em; text-underline-offset: .18em; }
a:hover { color: var(--accent); }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible { outline: 3px solid #236677; outline-offset: 4px; }
h1, h2, h3 { font-family: var(--display); line-height: 1.13; letter-spacing: -.035em; margin: 0 0 .6em; }
h1 { font-size: clamp(2.4rem, 5.3vw, 4.3rem); font-weight: 720; }
h2 { font-size: clamp(1.55rem, 2.8vw, 2.24rem); }
h3 { font-size: 1.32rem; }
p { margin: 0 0 1rem; }
ul, ol { padding-inline-start: 1.35rem; margin-block: .7rem 1.5rem; }
li + li { margin-top: .35rem; }
.shell { width: min(1190px, calc(100% - 4rem)); margin-inline: auto; }
.section-pad, .page-body { padding-block: clamp(2.5rem, 6vw, 5.15rem); }
.prose { max-width: 760px; }
.prose section + section { margin-top: 2.7rem; }
.prose h2:not(:first-child) { margin-top: 1.25em; }
.meta { color: var(--muted); font-size: .875rem; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 3.08rem; padding: .7rem 1.1rem; border-radius: 4px; border: 1px solid var(--accent); background: var(--accent); color: white; text-decoration: none; font: 650 .94rem/1.25 var(--body); cursor: pointer; text-align: center; }
.button:hover { color: white; background: var(--accent-hover); border-color: var(--accent-hover); }
.button-secondary { background: white; color: var(--ink); border-color: var(--line); }
.text-link { font-weight: 650; }
.skip-link { position: absolute; top: .6rem; left: .6rem; transform: translateY(-150%); padding: .6rem; background: white; z-index: 10; }
.skip-link:focus { transform: none; }

.site-header { border-bottom: 1px solid var(--line); }
.nav-row { min-height: 76px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 1.5rem; }
.brand { min-width: 0; display: inline-flex; justify-self: start; align-items: center; gap: .65rem; font: 720 1.07rem/1.18 var(--display); color: var(--ink); text-decoration: none; }
.brand-mark { display: inline-grid; gap: 3px; width: 27px; transform: skewX(-25deg) rotate(-9deg); flex-shrink: 0; }
.brand-mark i { display: block; height: 3px; background: var(--accent); }
.brand-mark i:last-child { width: 18px; }
.nav-row nav { display: flex; flex-wrap: wrap; gap: .5rem 1.55rem; }
.nav-row nav a { color: var(--ink); text-decoration: none; font-size: .91rem; font-weight: 590; }
.nav-row nav a:hover { text-decoration: underline; }
.button-header { justify-self: end; background: transparent; color: var(--ink); border-color: #879892; min-height: 2.63rem; padding-inline: .84rem; white-space: nowrap; }
.site-footer { background: var(--navy); color: #e3ece5; }
.footer-grid { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 1rem 2rem; padding-block: 2.3rem; }
.footer-grid p { margin-bottom: 0; }
.footer-brand { font: 720 1.2rem var(--display); color: white; }
.footer-grid nav { display: flex; flex-wrap: wrap; gap: .35rem 1.25rem; }
.footer-grid a { color: #f2f8f2; }

.home-hero { display: grid; grid-template-columns: 1.06fr .94fr; gap: clamp(1.8rem, 5vw, 5.4rem); align-items: center; padding-block: clamp(2.8rem, 6.8vw, 6.5rem); }
.home-hero h1 { max-width: 700px; }
.kicker { margin-bottom: 1.1rem; color: var(--accent-hover); font-weight: 650; font-size: .935rem; }
.hero-lead { max-width: 43ch; color: var(--muted); font-size: clamp(1.05rem, 1.9vw, 1.22rem); }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .9rem 1.25rem; margin-top: 1.6rem; }
.tile-figure { margin: 0; background: #1a383d; color: #eef6ec; overflow: hidden; border-radius: 5px; }
.drawing { position: relative; isolation: isolate; aspect-ratio: 1.36; overflow: hidden;
  background: radial-gradient(ellipse at 50% 28%, #365854, transparent 65%),
              linear-gradient(152deg, #244448 6%, #132c34 83%);
}
.drawing::after { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .28;
  background: linear-gradient(30deg, transparent 49%, #85ada0 50%, transparent 51%) 50% 80% / 36px 25px,
              linear-gradient(-30deg, transparent 49%, #85ada0 50%, transparent 51%) 50% 80% / 36px 25px;
  mask-image: linear-gradient(transparent 15%, #000 60%, transparent 99%);
  z-index: -1;
}
.drawing-floor { position: absolute; inset: 0; background: radial-gradient(ellipse at 51% 66%, #09202abf 0%, transparent 55%); z-index: -1; }
.ceramic-tile { position: absolute; display: block; transform: matrix(.86, .44, -.8, .45, 0, 0); border-radius: 2px;
  background: repeating-linear-gradient(122deg, #ffffff17 0 1px, transparent 1px 4px), linear-gradient(111deg, #f8f4e2, #dcded0);
  box-shadow: .18rem .16rem #c1c6b8, .36rem .32rem #b5beb0, .55rem .50rem #aab8aa, .74rem .68rem #9da99e, .92rem .86rem #899a91, 1.25rem 1.02rem 13px #0a2229;
}
.ceramic-tile--flat { width: 39%; height: 31%; left: 20%; top: 39%; }
.ceramic-tile--back { left: 33%; top: 24%; z-index: -1; background-color: #e8e7da; }
.ceramic-tile--taper { width: 34%; height: 27%; left: 57%; top: 54%; transform: matrix(.83, .42, -.59, .56, 0, 0) skewX(11deg);
  background: repeating-linear-gradient(114deg, #f9ffeb21 0 1px, transparent 1px 5px), linear-gradient(110deg, #e4eadd, #bdc8bc);
}
.measure { position: absolute; color: #f1cf9c; font: .8rem/1 var(--display); letter-spacing: .08em; }
.measure::after { display: inline-block; content: ""; width: 2.8rem; height: 1px; margin-left: .25rem; background: #e8bf89; vertical-align: middle; }
.measure--long { left: 25%; top: 69%; transform: rotate(26deg); }
.measure--short { left: 60%; top: 32%; transform: rotate(-35deg); }
.tile-figure figcaption { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .25rem 1rem; padding: .82rem 1rem; font-size: .8rem; border-top: 1px solid #58746f; }
.tile-figure figcaption span:last-child { color: #d0e0d5; }

.scope-section { background: var(--surface); border-block: 1px solid #dce4dd; }
.section-heading { display: flex; justify-content: space-between; gap: 1rem; align-items: start; margin-bottom: 1.45rem; }
.section-heading p { max-width: 40ch; color: var(--muted); }
.tile-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.2rem; }
.scope-tile { background: var(--paper); border: 1px solid var(--line); padding: 0 1.25rem 1.15rem; }
.scope-tile h3 a { color: var(--ink); text-decoration: none; display: flex; justify-content: space-between; gap: .5rem; }
.scope-tile h3 a:hover { text-decoration: underline; }
.scope-tile h3 span { color: var(--accent); }
.scope-tile p { color: var(--muted); margin: 0; }
.shape-preview { display: grid; place-items: center; height: 85px; margin: 0 -1.25rem 1rem; border-bottom: 1px solid var(--line);
  background: radial-gradient(circle, #94aaa0 1px, transparent 1.4px) 0 0 / 15px 15px, #e6ede7;
}
.shape-preview span { display: block; width: 65px; height: 38px; background: #f9f8e9; border: 1px solid #607871; transform: skewY(-8deg); box-shadow: 3px 4px #829d93; }
.shape-preview .shape-taper { width: 70px; transform: perspective(50px) rotateX(15deg) skewY(-8deg); }
.shape-preview .shape-custom { border-radius: 15px 5px 1px 15px; background: radial-gradient(circle at 64% center, #849d92 0 5px, #f9f8e9 6px); }
.detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 6vw, 6rem); }
.process-list { padding-left: 1.4rem; }
.process-list li { padding-left: .45rem; margin-top: .8rem; }
.process-list span { display: block; color: var(--muted); }
.identity-strip { background: #dce9df; }
.identity-strip .detail-grid { align-items: center; }
.identity-strip p { margin: 0; }

.page-hero { background: var(--surface); border-bottom: 1px solid var(--line); padding-block: clamp(2.2rem, 5.3vw, 4.7rem); }
.page-hero h1 { max-width: 20ch; font-size: clamp(2.35rem, 5vw, 3.95rem); }
.page-hero p { max-width: 55ch; color: var(--muted); font-size: clamp(1rem, 2.1vw, 1.18rem); }
.page-hero .meta { font-size: .9rem; }
.back-link { display: inline-block; margin-bottom: .95rem; font-size: .92rem; }
.document-layout { display: grid; grid-template-columns: minmax(148px, 215px) minmax(0, 760px); gap: clamp(1.5rem, 6vw, 5rem); }
.section-nav { display: flex; flex-direction: column; align-items: flex-start; align-self: start; gap: .65rem; border-left: 2px solid var(--line); padding: .25rem 0 .25rem .85rem; font-size: .9rem; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; margin-block: 1rem; font-size: .93rem; }
caption { text-align: left; font-weight: 650; padding-bottom: .5rem; }
th, td { text-align: left; padding: .69rem .85rem; border-bottom: 1px solid var(--line); }
thead th { background: var(--surface); }
.notice { background: #edf3ee; padding: .9rem 1.15rem; border-left: 4px solid #598775; margin: 1rem 0; }
.notice :last-child { margin-bottom: 0; }
.success { background: #e9f3e9; }
.form-error { border-color: var(--accent); background: #faece7; }
.identity-list, .results-list { display: grid; grid-template-columns: auto 1fr; column-gap: 1rem; row-gap: .5rem; overflow-wrap: anywhere; }
.identity-list dt, .results-list dt { font-weight: 650; }
.identity-list dd, .results-list dd { margin: 0; min-width: 0; }

.rfq-layout, .calculator-layout { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(235px, .8fr); gap: clamp(1.4rem, 5.5vw, 4.3rem); align-items: start; }
.rfq-aside, .method { padding: 1rem 0 0 1.15rem; border-left: 2px solid var(--line); }
.calculator-side { min-width: 0; }
.form-panel { padding: clamp(1rem, 3vw, 1.7rem); border: 1px solid var(--line); background: #fff; }
.field-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .85rem 1rem; margin-bottom: 1rem; }
.span-full { grid-column: 1 / -1; }
.field { min-width: 0; display: grid; align-content: start; gap: .33rem; }
.form-panel > .field { margin-bottom: .85rem; }
.field label, .consent { font-size: .9rem; font-weight: 650; }
.optional { color: var(--muted); font-weight: 400; margin-left: .35rem; }
input, textarea, select { font: inherit; color: inherit; }
.field input, .field textarea, .field select, .search-form input[type=search], #estimate-copy-text {
  width: 100%; max-width: 100%; min-height: 2.75rem; min-width: 0; border-radius: 4px; border: 1px solid #869a90; background: white; padding: .44rem .63rem;
}
.field textarea { resize: vertical; }
.field [aria-invalid=true] { border-color: var(--accent); }
.consent { display: flex; gap: .6rem; align-items: baseline; margin: .25rem 0 1rem; font-weight: 500; }
.consent input { flex: 0 0 auto; }
.trap { position: absolute; height: 1px; width: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.estimate-panel { background: var(--navy); color: #f4f8f3; border-radius: 4px; padding: 1.15rem; margin-bottom: 1.2rem; overflow-wrap: anywhere; }
.estimate-panel .meta { color: #d8e6e0; }
.estimate-mass { font: 720 clamp(1.8rem, 4vw, 2.8rem)/1.12 var(--display); letter-spacing: -.04em; }
.estimate-actions { display: flex; flex-wrap: wrap; gap: .5rem; }
#copy-status:empty { display: none; }
#copy-status { margin-top: .6rem; }
#estimate-copy-text { margin-top: .5rem; }
.guide-categories { display: flex; flex-wrap: wrap; gap: .5rem .7rem; margin-bottom: 1.2rem; }
.guide-categories a { padding: .35rem .65rem; border: 1px solid var(--line); border-radius: 4px; }
.guide-categories a[aria-current] { background: var(--navy); color: #fff; text-decoration: none; }
.guide-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.1rem; }
.guide-list article { padding: 1.2rem; border: 1px solid var(--line); }
.guide-list h2 { font-size: 1.4rem; overflow-wrap: anywhere; }
.search-form { display: flex; flex-wrap: wrap; gap: .65rem; align-items: center; }
.search-form label { max-width: 100%; }
.search-form input[type=submit] { min-height: 2.75rem; padding: .3rem .75rem; cursor: pointer; }
.pagination { margin-top: 1rem; }

@media (max-width: 850px) {
  .nav-row { grid-template-columns: minmax(0, 1fr) auto; gap: .8rem; padding-block: .8rem; }
  .nav-row nav { grid-row: 2; grid-column: 1 / -1; border-top: 1px solid var(--line); padding-top: .55rem; }
  .home-hero { gap: 1.65rem; }
  .shell { width: calc(100% - 2.5rem); }
}
@media (max-width: 650px) {
  .home-hero, .detail-grid, .document-layout, .rfq-layout, .calculator-layout { grid-template-columns: minmax(0, 1fr); }
  .tile-grid, .guide-list { grid-template-columns: minmax(0, 1fr); }
  .section-heading { display: block; }
  .section-heading h2 { margin-bottom: .3rem; }
  .section-nav { flex-direction: row; flex-wrap: wrap; border: 0; padding: 0 0 .7rem; border-bottom: 1px solid var(--line); }
  .tile-figure { max-width: 520px; }
  .hero-actions { margin-top: 1.2rem; }
}
@media (max-width: 400px) {
  .shell { width: calc(100% - 1.7rem); }
  .nav-row nav { column-gap: .8rem; }
  .nav-row nav a { font-size: .85rem; }
  .form-panel .field-grid { grid-template-columns: minmax(0, 1fr); }
  th, td { padding-inline: .45rem; }
}
