/* Hallmark · built: the project · theme: brand · genre: editorial · redesign: polish · signature: the installed surface beside its exact swatch */
/* Hallmark · pre-emit critique: P4 H4 E4 S4 R4 V3 · existing routes share the same material and price typography */
.ct-wrap {
  --ct-reading-width: 700px;
  --ct-section-space: var(--section-space);
  width: var(--page-width);
  margin: 0 auto;
  padding: 0 0 var(--ct-section-space);
  color: var(--ink);
  font-size: 17px;
  word-break: keep-all;
  overflow-wrap: anywhere;
}
.ct-wrap [hidden] { display: none !important; }
.ct-wrap :is(h1,h2,h3,p,figure,ul,dl,dd) { margin: 0; }
.ct-wrap :is(h1,h2,h3) { letter-spacing: -.04em; line-height: 1.35; min-width: 0; overflow-wrap: break-word; }
.ct-wrap h2 { font-size: clamp(21px, 2.1vw, 29px); }
.ct-wrap p { color: var(--ink); line-height: 1.7; }
.ct-wrap a { color: inherit; text-decoration: none; }
.ct-wrap :is(input,button,select,textarea) { font: inherit; }
.ct-wrap button { cursor: pointer; }
.ct-wrap :is(a,button,input,select,textarea):focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 4px;
}
.ct-head { padding: clamp(24px, 3vw, 44px) 0 clamp(28px, 4vw, 48px); }
.ct-head nav { margin-bottom: clamp(20px, 3vw, 36px); color: var(--muted); font-size: 14px; }
.ct-head nav a:hover { color: var(--blue-text); }
.ct-head nav span { margin: 0 4px; color: var(--muted); }
.ct-head h1 { margin: 0 0 8px; font-size: clamp(28px,3.15vw,42px); font-weight: 750; }
.ct-head p { max-width: var(--ct-reading-width); font-size: 17px; }
.ct-category {
  display: flex;
  gap: 28px;
  border-bottom: 1px solid var(--line);
}
.ct-category a {
  margin-bottom: -1px;
  padding: 12px 4px 12px;
  border-bottom: 3px solid var(--paper);
  color: var(--ink);
  font-size: 15px;
  font-weight: 650;
}
.ct-category a[aria-current] { color: var(--blue-text); border-color: var(--action-blue); }
.ct-category + .ct-reviewgrid { margin-top: 8px; }
.ct-wrap .ct-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--blue-text);
  font-size: 15px;
  font-weight: 650;
}
.ct-wrap .ct-link:hover,.ct-wrap .ct-form>a:hover { text-decoration: underline; text-underline-offset: 4px; }
.ct-wrap .ct-button,.ct-wrap .ct-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 12px 20px;
  border: 0;
  border-radius: 12px;
  background: var(--action-blue);
  color: var(--accent-ink);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.45;
  text-decoration: none;
}
.ct-wrap .ct-button:hover,.ct-wrap .ct-btn:not(:disabled):hover { background: var(--accent-hover); text-decoration: none; }
.ct-wrap .ct-btn:disabled { background: var(--field); color: var(--muted); box-shadow: inset 0 0 0 1px var(--line-strong); cursor: wait; }
.ct-filterrow { display: flex; align-items: center; gap: 16px; padding: 20px 0 20px; }
.ct-filterrow>span { flex-shrink: 0; color: var(--ink); font-size: 14px; font-weight: 700; }
.ct-filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 20px; }
.ct-filterrow .ct-filters { margin: 0; }
.ct-filters button,.ct-wrap .ct-plainbtn {
  padding: 8px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.35;
  white-space: nowrap;
}
.ct-filters button:hover,.ct-wrap .ct-plainbtn:hover { background: var(--wash); }
.ct-filters [aria-pressed=true],.ct-filters [aria-pressed=true]:hover { background: var(--skywash); color: var(--blue-text); border-color: var(--action-blue); }
.ct-gallery { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 44px 24px; }
.ct-cover { overflow: hidden; border-radius: 8px; }
.ct-photo { display: block; width: 100%; object-fit: cover; background: var(--wash); }
.ct-gallery .ct-photo { aspect-ratio: 1.5; transition: transform .22s ease; }
.ct-gallery a { display: block; border-radius: 8px; }
@media (hover:hover) {
  .ct-gallery a:hover .ct-photo { transform: scale(1.025); }
}
.ct-gallery a:hover h2,.ct-guides a:hover h2 { color: var(--blue-text); }
.ct-cardtext { padding: 12px 4px 0; }
.ct-cardtext span,.ct-materials article span,.ct-rows li>span,.ct-tag,.ct-guides span {
  color: var(--muted); font-size: 14px; font-weight: 600;
}
.ct-cardtext h2,.ct-materials h3 { margin: 4px 0; font-size: 22px; }
.ct-storegrid h2 { margin-bottom: 8px; font-size: 24px; }
.ct-cardtext p { font-size: 17px; }
.ct-materials p { font-size: 15px; }
.ct-wrap .ct-caption { margin-top: 20px; color: var(--muted); font-size: 14px; }
.ct-pane,.ct-form { padding: 28px; border: 1px solid var(--line); border-radius: 16px; background: var(--paper); }
.ct-detail,.ct-consult { display: grid; grid-template-columns: minmax(0,1.65fr) minmax(250px,1fr); align-items: start; gap: 28px; }
.case-scene>a { display: block; }
.ct-detail .ct-photo { height: auto; max-height: 78vh; width: 100%; object-fit: contain; object-position: left center; border-radius: 8px; }
.case-scene figcaption { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 8px 16px; }
.case-scene figcaption a,.case-match span { color: var(--blue-text); text-decoration: underline; text-underline-offset: 4px; }
.case-material { align-self: start; border-top: 1px solid var(--line-strong); padding-top: 16px; }
.case-material h2 { margin-bottom: 16px; }
.case-match { display: block; }
.case-match img { display: block; width: 100%; height: auto; aspect-ratio: 2.8; object-fit: cover; border: 1px solid var(--line); border-radius: 8px; }
.case-match span { display: inline-block; margin-top: 8px; font-size: 14px; }
.ct-code,.ct-facts dd,.ct-compare-code { font-variant-numeric: tabular-nums; }
.swatch-copy .ct-code { margin-inline-start: 8px; }
.ct-detail figcaption { margin-top: 8px; color: var(--muted); font-size: 14px; }
.ct-wrap .ct-facts { margin: 16px 0 24px; }
.ct-facts div { display: flex; justify-content: space-between; gap: 8px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.ct-facts dt { color: var(--muted); }
.ct-facts dd { font-weight: 650; }
.ct-copy,.ct-catalog { margin-top: var(--ct-section-space); }
.ct-catalog { scroll-margin: 20px; }
.ct-copy>p,.ct-catalog>p { max-width: var(--ct-reading-width); margin: 12px 0 20px; }
.ct-quiz { max-width: var(--ct-reading-width); padding: clamp(24px,4vw,40px); }
.ct-quiz fieldset { min-width: 0; margin: 0; padding: 0; border: 0; }
.ct-quiz legend { padding: 0; font-size: clamp(22px,2.65vw,30px); font-weight: 730; letter-spacing: -.04em; }
.ct-quiz legend small { display: block; margin-bottom: 12px; color: var(--blue-text); font-size: 14px; }
.ct-answers { display: grid; gap: 8px; margin: 20px 0; }
.ct-answer { display: flex; align-items: center; gap: 12px; padding: 16px 16px; border: 1px solid var(--wash); border-radius: 8px; background: var(--wash); cursor: pointer; }
.ct-answer input,.ct-agree input { accent-color: var(--action-blue); }
.ct-answer:has(:focus-visible) { outline: 3px solid var(--focus); outline-offset: 4px; }
.ct-answer:has(:checked) { border-color: var(--action-blue); background: var(--skywash); color: var(--blue-text); }
.ct-controls,.ct-maplinks { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.ct-quiz [role=status]:not(:empty) { margin-top: 12px; color: var(--error); font-size: 14px; }
.ct-pick { margin: 16px 0; padding: 16px 20px; border-radius: 12px; background: var(--skywash); }
.ct-search { max-width: 430px; margin: 16px 0; }
.ct-search label,.ct-form label { color: var(--ink); font-size: 14px; font-weight: 650; }
.ct-search label { display: block; margin-bottom: 8px; }
.ct-search input,.ct-form input:not([type=checkbox]),.ct-form select,.ct-form textarea {
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  min-height: 46px;
  padding: 12px 16px;
  border: 1px solid var(--field);
  border-radius: 8px;
  background: var(--field);
  color: var(--ink);
}
.ct-wrap .ct-form input:focus,.ct-wrap .ct-form textarea:focus,.ct-wrap .ct-form select:focus,.ct-wrap .ct-search input:focus {
  border-color: var(--action-blue);
  outline: 2px solid var(--focus);
  outline-offset: 0;
  background: var(--paper);
}
.ct-form input::placeholder,.ct-form textarea::placeholder,.ct-search input::placeholder { color: var(--muted); }
.ct-materials { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 16px; }
.ct-materials article { min-width: 0; }

.ct-storegrid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 20px; }
.ct-guides { border-top: 1px solid var(--line); }
.ct-guides article,.ct-review { border-bottom: 1px solid var(--line); }
.ct-guides a {
  display: grid;
  grid-template-columns: 100px minmax(0,1fr);
  gap: 16px;
  align-items: baseline;
  padding: 24px 0;
}
.ct-guides h2,.ct-review h2 { margin-bottom: 8px; font-size: clamp(20px,2vw,24px); }
.ct-guides p,.ct-review p { max-width: 760px; font-size: 17px; }
.ct-copy .ct-rows { margin-top: 20px; }
.ct-rows { padding: 0; border-top: 1px solid var(--line); list-style: none; }
.ct-rows li { display: flex; align-items: center; gap: 20px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.ct-story { max-width: var(--ct-reading-width); margin-inline: auto; }
.ct-story .ct-head { padding-bottom: 32px; }
.ct-story .ct-head p { margin-top: 12px; font-size: clamp(16px, 1.5vw, 18px); }
.ct-reading { display: grid; gap: clamp(32px, 4vw, 44px); }
.ct-reading section h2 { margin-bottom: 12px; font-size: clamp(21px, 2vw, 25px); }
.ct-reading section p { font-size: 17px; line-height: 1.8; }
.ct-copy p { max-width: var(--ct-reading-width); }
.ct-reading .ct-comparison h2 { margin-bottom: 16px; }
.ct-compare-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(12px, 2vw, 24px); }
.ct-compare-product { display: flex; min-width: 0; flex-direction: column; align-items: start; }
.ct-compare-product img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1.95;
  border: 1px solid var(--line);
  border-radius: 8px;
  object-fit: cover;
}
.ct-compare-type { margin-top: 12px; color: var(--muted); font-size: 14px; }
.ct-compare-product h3 { margin: 4px 0; color: var(--ink); font-size: clamp(16px, 2vw, 20px); }
.ct-compare-code { color: var(--blue-text); font-size: 14px; }
.ct-compare-product:hover .ct-compare-code { text-decoration: underline; text-underline-offset: 3px; }
.ct-story-end { margin-top: clamp(36px, 4vw, 48px); border-top: 1px solid var(--line); }
.ct-story-end p { margin-block: 16px 24px; }
.ct-story-end p .ct-link { color: var(--muted); font-size: 14px; font-weight: 500; }
.ct-story-end nav { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; }
.ct-reviewgrid { max-width: 860px; }
.ct-review { padding: 28px 0; }
.ct-reviewmeta { display: flex; flex-wrap: wrap; gap: 4px 16px; align-items: baseline; margin-top: 16px; color: var(--muted); font-size: 14px; }
.ct-reviewmeta .ct-link { font-size: 14px; }
.ct-storegrid address { margin: 16px 0 4px; font-style: normal; }
.ct-storegrid p { font-size: 14px; }
.ct-maplinks { margin-top: 20px; }
.ct-about { display: grid; grid-template-columns: minmax(0,1.2fr) minmax(0,1fr); align-items: center; gap: clamp(24px,4vw,60px); }
.ct-about .ct-photo { aspect-ratio: 1.42; border-radius: 12px; }
.ct-about figcaption { margin-top: 8px; color: var(--muted); font-size: 14px; }
.ct-about p { margin: 16px 0 20px; }
.ct-about-links { display: flex; flex-wrap: wrap; gap: 12px 24px; }
.ct-form { display: grid; gap: 16px; min-width: 0; }
.ct-form label { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px; }
.ct-form label small { color: var(--blue-text); }
.ct-form .ct-agree { flex-wrap: nowrap; align-items: flex-start; }
.ct-agree input { margin-top: 4px; }
.ct-form>a { color: var(--blue-text); font-size: 14px; text-decoration: underline; }
.ct-form [role=status]:empty { display: none; }
.ct-pair { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
.ct-aside { padding: 24px; border-radius: 12px; background: var(--skywash); }
.ct-aside h2 { font-size: 21px; }
.ct-aside p { margin: 12px 0; font-size: 15px; }
@media (max-width: 760px) {
  
  .ct-head { padding: 24px 0 32px; }
  .ct-head nav { margin-bottom: 20px; }
  .ct-head p { font-size: 16px; }
  .ct-gallery,.ct-materials { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .ct-detail,.ct-consult,.ct-about { grid-template-columns: 1fr; }
  .ct-reading section h2 { font-size: 21px; }
  .ct-pane { padding: 20px; }
  .ct-rows li { gap: 12px; }
  .ct-about .ct-photo { max-height: 340px; }
  .ct-guides a { grid-template-columns: minmax(0,1fr); gap: 4px; padding: 24px 0; }
  .ct-guide-topic { grid-column: 1; }
  .ct-guides a>div { grid-column: 1; }
  .ct-review { padding: 24px 0; }
}
@media (max-width: 520px) {
  .ct-head h1 { font-size: 29px; }
  .ct-category { gap: 20px; }
  .ct-filterrow { display: block; padding: 12px 0 16px; }
  .ct-filterrow>span { display: none; }
  .ct-storegrid,.ct-gallery { grid-template-columns: 1fr; }
  .ct-gallery { gap: 20px 12px; }
  .ct-gallery .ct-photo { aspect-ratio: 1.25; }
  .ct-cardtext { padding-top: 8px; }
  .ct-gallery h2 { font-size: 22px; }
  .ct-materials h3 { font-size: 18px; }
  .ct-filters { flex-wrap: nowrap; gap: 4px; overflow-x: auto; padding: 4px; scrollbar-width: thin; }
  .ct-filters button { padding: 8px 12px; font-size: 14px; }
  .ct-controls { gap: 8px; }
  .ct-pair { grid-template-columns: 1fr; }
  .ct-rows { font-size: 14px; }
}
@media (prefers-reduced-motion: reduce) { .ct-gallery .ct-photo,.ct-gallery a:hover .ct-photo { transition: none; transform: none; } }

.swatch-catalog.ct-catalog { margin-top: 20px; }
.swatch-tools { display:flex; flex-wrap:wrap; align-items:end; gap:16px 32px; justify-content:space-between; margin:0 0 20px; }
.swatch-tools .ct-search { flex:1 1 240px; margin:0; }
.swatch-tools .ct-filters { margin:0; }
.swatch-card { display:block; height:100%; }
.swatch-frame { aspect-ratio:1.55; overflow:hidden; border:1px solid var(--line); border-radius:8px; }
.swatch-frame img, .swatch-pick img { width:100%; height:100%; object-fit:cover; display:block; }
.swatch-card:hover h3, .swatch-pick:hover strong { color:var(--blue-text); }
.swatch-copy { padding:12px 4px 16px; }
.swatch-quiz { margin: 24px 0 var(--ct-section-space); }
.swatch-quiz .ct-controls { justify-content: center; }
.swatch-quiz>h2 { margin:0 0 24px; }
.swatch-pick { display:flex; gap:16px; align-items:center; padding:12px; margin:20px 0; border:1px solid var(--line); border-radius:12px; }
.swatch-pick img { width:82px; height:65px; border-radius:4px; object-fit:cover; }
.swatch-pick strong,.swatch-pick small { display:block; }
.swatch-pick small { color:var(--blue-text); }
.swatch-detail { display:grid; grid-template-columns:minmax(0,1.25fr) minmax(0,1fr); align-items:start; gap:clamp(24px,4vw,64px); }
.swatch-detail figure>a { display:block; overflow:hidden; border-radius:12px; border:1px solid var(--line); cursor:zoom-in; }
.swatch-detail figure img { display:block; width:100%; max-height:590px; object-fit:contain; }
.swatch-detail figcaption { display:flex; justify-content:space-between; gap:12px; margin:8px 0; color:var(--muted); font-size:14px; }
.swatch-detail figcaption a { color:var(--blue-text); font-weight:600; }
.swatch-info h2 { margin:0 0 12px; }
.swatch-info .ct-facts { margin-block:20px; }
.swatch-info .ct-facts dd { overflow-wrap:anywhere; }
.swatch-sources { display:flex; flex-wrap:wrap; gap:8px 20px; margin-top:16px; }
.swatch-back { margin-top:28px; }
@media(max-width:680px){.swatch-detail{grid-template-columns:1fr}.swatch-detail figure img{max-height:430px}.swatch-copy{padding:8px 0 16px}.swatch-copy h3{font-size:18px}.swatch-tools{gap:12px}.swatch-frame{aspect-ratio:1.45}}

.installed-material { margin-top:var(--ct-section-space); }
.installed-material>p { margin:8px 0 16px; }
.installed-material figure img { display:block; width:min(100%, 900px); height:auto; object-fit:contain; object-position:left center; max-height:min(760px, 86vh); border-radius:12px; }
.installed-material figcaption { margin-top:8px; }

/* Side-by-side photographs show the actual joint, including on a narrow screen. */
.guide-feature,.guide-library,.ct-wrap>.guide-disclosure,.ct-wrap>.guide-credit { max-width: 820px; margin-inline: auto; }
.ct-wrap:has(.guide-feature)>.ct-head { max-width: 820px; margin-inline: auto; padding-bottom: 24px; }
.guide-feature { padding-bottom: 40px; border-bottom: 1px solid var(--line); }
.ct-wrap .seam-pair { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: clamp(12px,3vw,24px); margin-top: 16px; }
.seam-pair h3 { font-size: clamp(22px,2vw,26px); }
.seam-pair .seam-use { margin: 4px 0 12px; color: var(--muted); font-size: clamp(14px,1.4vw,16px); }
.seam-pair img { display: block; width: 100%; height: auto; aspect-ratio: 1.85; object-fit: cover; object-position: center 48%; border-radius: 4px; }
.seam-pair figcaption { margin-top: 12px; }
.seam-pair figcaption strong,.seam-pair figcaption span { display: block; }
.seam-pair figcaption span { color: var(--muted); font-size: 15px; margin-top: 4px; }
.ct-wrap .seam-credit { font-size: 13px; color: var(--muted); margin: 12px 0; }
.guide-library { padding-block: 40px 16px; }
.guide-library>.ct-filters { margin: 16px 0; }
.guide-library .ct-guides h2 { font-size: 19px; margin: 0; }
.guide-library .ct-guides a { padding-block: 16px; }
.guide-disclosure { border-bottom: 1px solid var(--line); }
.guide-disclosure summary { padding: 16px 0; cursor: pointer; font-weight: 600; }
.guide-disclosure[open]>:last-child { padding-bottom: 24px; }
.ct-wrap .guide-credit { color: var(--muted); font-size: 14px; margin-block: 24px; }
.ct-story-end nav { padding-top: 16px; }
.seam-story .ct-head { padding-bottom: 8px; }
.material-choice { margin: 32px 0 20px; }
.material-choice dl { margin-top: 16px; }
.material-choice dl>div { padding: 12px 0; display: grid; grid-template-columns: 48px minmax(0,1fr); gap: 12px; border-top: 1px solid var(--line); }
.material-choice dt { font-weight: 650; }
@media(max-width: 540px) {
  .seam-pair img { aspect-ratio: 1.12; }
  .seam-pair .seam-use { line-height: 1.5; min-height: 3em; }
  .seam-pair figcaption { font-size: 16px; }
  .seam-pair figcaption span { font-size: 14px; }
  .guide-feature { padding-bottom: 28px; }
}
