/* Product selection and reference entry */
.dealer-shop-tools, .model-compare-link, .model-compare, .compare-tray,
.compare-tray a, .compare-picks, .comparison-tools, .comparison-tools > div,
.review-heading, .entry-editor-footer, .entry-model, .entry-summary-heading,
.comparison-end, .project-add-link {
  display: flex;
  align-items: center;
}
.dealer-shop-tools {
  justify-content: space-between;
  gap: 16px;
  padding: 0 0 15px;
}
.dealer-shop-tools a, .model-compare-link {
  min-height: 35px;
  gap: 10px;
  color: var(--ink);
  font-size: 12px;
  font-weight: 600;
}
.model-compare-link b, .compare-tray a b {
  font: 600 10px/1.4 var(--sans);
  font-variant-numeric: tabular-nums;
  padding: 2px 5px;
  background: #252e570b;
  border: 1px solid #252e5724;
}
.model-compare-link:hover, .model-compare:hover { color: var(--red); }
.model-compare { gap: 7px; font-size: 11px; padding: 0; }
.model-compare svg, .model-compare-link svg, .dealer-shop-tools svg { width: 16px; height: 16px; }
.model-compare[aria-pressed="true"] { color: var(--green); font-weight: 700; }
.card-compare {
  align-self: flex-start;
  min-height: 36px;
  margin-top: 4px;
}
.pdp-compare-link { display: none; margin: 4px 0; }
.pdp-secondary:has(.model-compare[aria-pressed="true"]) + .pdp-compare-link { display: block; }
.compare-tray {
  position: fixed;
  z-index: 24;
  right: clamp(15px, 4vw, 70px);
  bottom: max(20px, env(safe-area-inset-bottom));
  padding: 6px 8px 6px 13px;
  gap: 12px;
  background: var(--deep);
  color: white;
  box-shadow: 0 8px 28px #141c3a35;
  border: 1px solid #ffffff30;
}
.compare-tray[hidden], .project-form-fields[hidden] { display: none; }
.compare-picks { padding-left: 3px; }
.compare-picks img { width: 32px; height: 32px; object-fit: contain; padding: 3px; background: #fff; border: 1px solid var(--deep); margin-left: -3px; }
.compare-tray a { min-height: 40px; font-size: 12px; font-weight: 600; gap: 10px; padding-right: 7px; }
.compare-tray a b { color: white; border-color: #ffffff55; }
.compare-tray svg { width: 15px; }
body:has(.compare-tray:not([hidden])) { padding-bottom: 64px; }
.dealer-heading { padding-top: 24px; }
.dealer-heading .breadcrumbs { margin: 0 0 25px; }
.dealer-title, .entry-banner {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
}
.dealer-title h1, .entry-banner h1 {
  font-size: clamp(48px, 6vw, 86px);
  font-weight: 400;
  line-height: .99;
}
.dealer-title p, .entry-banner p { max-width: 550px; margin-top: 15px; font-size: 15px; }
.dealer-title > .btn { flex-shrink: 0; }
.compare-intro, .dealer-comparison { padding-top: 30px; padding-bottom: 80px; }
.compare-start {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: #f1eee6;
  border: 1px solid var(--line);
}
.compare-start > div { background: var(--green); color: #fff; padding: clamp(24px, 4vw, 64px); }
.compare-start > div > svg { width: 36px; height: 36px; color: #c6b693; }
.compare-start h2 { margin-top: 24px; font-size: clamp(32px, 3.4vw, 50px); max-width: 440px; }
.compare-start p { color: #edeef3; margin: 14px 0 24px; max-width: 400px; }
.compare-start .btn { background: var(--paper); color: var(--green); border-color: var(--paper); }
.compare-start article { padding: 22px; align-self: center; text-align: center; }
.mill-pair { display: flex; justify-content: center; gap: 12px; margin-bottom: 22px; }
.mill-pair figure { margin: 0; width: 44%; }
.mill-pair img { height: clamp(90px, 12vw, 175px); object-fit: contain; mix-blend-mode: multiply; }
.mill-pair figcaption { font-weight: 700; font-size: 11px; letter-spacing: .12em; margin-top: 12px; }
.comparison-tools {
  justify-content: space-between;
  gap: 15px;
  border-top: 1px solid var(--green);
  border-bottom: 1px solid var(--line);
  padding: 12px 0;
  font-size: 12px;
}
.comparison-tools > div { gap: 18px; }
.comparison-tools .model-count { gap: 8px; font-weight: 600; }
.model-count i { width: 7px; height: 7px; border-radius: 50%; background: var(--red); }
.comparison-tools select {
  background: transparent; border: 1px solid var(--line); color: var(--ink); min-height: 34px; padding: 0 8px;
}
.diff-switch { display: inline-flex; position: relative; align-items: center; gap: 8px; min-height: 36px; cursor: pointer; }
.diff-switch input { position: absolute; inset-inline-start: 0; opacity: 0; width: 32px; height: 20px; }
.diff-switch span { width: 32px; height: 19px; background: #b3b6c0; border-radius: 24px; display: grid; align-items: center; padding: 3px; }
.diff-switch span::before { content: ''; width: 13px; height: 13px; background: #fff; border-radius: 50%; }
.diff-switch input:checked + span { background: var(--green); }
.diff-switch input:checked + span::before { transform: translateX(13px); }
.diff-switch input:focus-visible + span { outline: 2px solid var(--gold); outline-offset: 3px; }
.diff-switch:has(input:disabled) { opacity: .55; }
.compare-scroll { position: relative; overflow-x: auto; overscroll-behavior-x: contain; }
.model-table { table-layout: fixed; width: 100%; border-spacing: 0; text-align: left; border-collapse: separate; }
.model-table th, .model-table td { font-weight: 400; padding: 15px 18px; border-bottom: 1px solid var(--line); vertical-align: middle; font-size: 13px; overflow-wrap: anywhere; }
.model-table th:first-child, .model-table td:first-child { width: 19%; }
.model-table thead > tr > th { padding: 0; background: #f1efe8; border-left: 1px solid var(--line); vertical-align: top; }
.model-table .table-label { color: #fff; background: var(--green); padding: 22px; vertical-align: bottom; }
.table-label > div { display: grid; gap: 14px; max-width: 120px; font-size: 19px; font-family: var(--serif); line-height: 1.05; }
.table-label svg { width: 28px; height: 28px; color: #ddc7a1; }
.model-header { padding: 15px 20px 21px; }
.model-tag { display: flex; align-items: center; justify-content: space-between; }
.model-tag span, .model-header > small, .entry-model b {
  font-size: 10px; font-family: var(--sans); letter-spacing: .09em; font-weight: 700; text-transform: uppercase;
}
.model-tag span { border: 1px solid #252e5740; padding: 3px 8px; background: #fbfaf6; }
.model-tag button { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; }
.model-tag button:hover { background: #e1dfda; }
.model-tag button svg { width: 16px; }
.model-photo { display: block; margin: 0 0 15px; }
.model-photo img { width: 100%; height: clamp(115px, 10vw, 165px); object-fit: contain; mix-blend-mode: multiply; }
.model-header > small { color: #595b67; letter-spacing: .12em; }
.model-header h2 { font-size: clamp(24px, 2.15vw, 34px); line-height: 1.05; margin-top: 5px; }
.model-header h2 a:hover { text-decoration: underline; text-decoration-thickness: 1px; }
.model-header .photo-scope, .model-table tbody small { display: block; margin-top: 5px; font-size: 10px; color: #605f68; }
.model-table tbody tr:nth-child(odd) { background: #f0efe9; }
.model-table tbody th { font-weight: 600; }
.model-table tbody td { border-left: 1px solid #252e5712; }
.model-table tbody tr:first-child td { font-weight: 650; font-variant-numeric: tabular-nums; }
.spec-absent { color: #61626c; font-size: 12px; }
.compare-add-row .text-link { font-size: 12px; min-height: 34px; gap: 12px; }
.compare-pan, .dealer-comparison:has(.count-1) .compare-pan { display: none; }
.comparison-end { justify-content: space-between; align-items: center; padding-top: 22px; gap: 26px; }
.comparison-end p { font-size: 12px; max-width: 520px; color: #60616a; }
.comparison-end .btn { flex-shrink: 0; }
.model-picker { margin: 12px 0; max-height: min(48vh, 420px); overflow: auto; }
.model-picker button { display: flex; width: 100%; align-items: center; gap: 15px; padding: 10px 3px; text-align: start; border-bottom: 1px solid var(--line); }
.model-picker button:hover { background: var(--cream); }
.model-picker img { width: 52px; height: 51px; object-fit: contain; background: #fff; }
.model-picker button > span { flex: 1; }
.model-picker small { display: block; font-size: 10px; font-weight: 600; color: #666974; letter-spacing: .05em; }
.model-picker strong { display: block; font-family: var(--serif); font-size: 21px; font-weight: 500; line-height: 1.05; }
.picker-instruction { color: var(--ink); padding: 15px 0; }
.entry-banner { min-height: 195px; isolation: isolate; overflow: hidden; padding: clamp(25px, 3.5vw, 55px); position: relative; background: var(--deep); color: #fff; align-items: center; }
.entry-banner > div { width: 66%; z-index: 2; }
.entry-banner h1 { font-size: clamp(42px, 5.5vw, 76px); }
.entry-banner p { color: #ecebf0; max-width: 470px; }
.entry-banner img { position: absolute; inset: 0 0 0 auto; width: 48%; height: 100%; object-position: 58% 53%; }
.entry-banner::after { content: ''; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, var(--deep) 40%, #141c3ae8 52%, #141c3a08 76%); }
.entry-layout { display: grid; grid-template-columns: minmax(0, 1.85fr) minmax(250px, .8fr); gap: clamp(15px, 2.5vw, 38px); padding-top: 28px; padding-bottom: 76px; align-items: start; }
.entry-surface { min-width: 0; padding: clamp(19px, 2.5vw, 39px); background: #fffefa; border: 1px solid var(--line); }
.entry-editor > label, .entry-review h2, .entry-summary h2 { display: block; font: 500 clamp(26px, 2.6vw, 37px)/1.05 var(--serif); letter-spacing: -.035em; }
.entry-editor > p { color: #575b68; max-width: 560px; font-size: 13px; margin: 10px 0 18px; }
.entry-textarea { border: 1px solid #9498a4; background: #fff; }
.entry-textarea:focus-within { box-shadow: 0 0 0 1px var(--green); border-color: var(--green); }
.entry-textarea > span { display: block; background: #f1efe9; padding: 7px 13px; color: #494c5b; border-bottom: 1px solid var(--line); font-size: 10px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; }
.entry-textarea i { font-style: normal; font-weight: 400; padding: 0 4px; }
.entry-textarea textarea { width: 100%; display: block; min-height: 135px; padding: 10px 14px; resize: vertical; border: 0; outline: none; color: var(--ink); background: transparent; font: 14px/1.65 ui-monospace, monospace; tab-size: 8; }
.entry-textarea textarea::placeholder { color: #767a86; }
.entry-editor-footer { justify-content: space-between; gap: 15px; margin-top: 16px; }
.entry-editor-footer small, .entry-summary > p { font-size: 12px; line-height: 1.5; }
.entry-editor-footer small { color: #5d606a; max-width: 235px; }
.entry-editor-footer .btn { flex-shrink: 0; }
.entry-summary { position: sticky; top: 110px; padding: clamp(20px, 2vw, 34px); background: var(--green); color: #fff; }
.entry-summary-heading { gap: 13px; margin-bottom: 14px; }
.entry-summary-heading svg { color: #d5bd98; width: 23px; height: 23px; }
.entry-summary select { width: 100%; padding: 10px; color: var(--ink); background: var(--paper); border: 1px solid #ffffff60; }
.entry-summary .entry-target { color: #fff; font-size: 15px; font-weight: 600; }
.entry-summary > p { color: #e0e1e9; }
.entry-summary .text-link { color: #fff; min-height: 40px; }
.entry-summary-numbers { margin: 19px 0; border-top: 1px solid #ffffff40; }
.entry-summary-numbers > div { display: flex; justify-content: space-between; align-items: center; gap: 14px; padding: 10px 0; font-size: 12px; border-bottom: 1px solid #ffffff40; }
.entry-summary-numbers strong { font-size: 18px; font-weight: 500; }
.entry-summary .btn { width: 100%; gap: 12px; margin: 0 0 13px; }
.entry-summary .btn:disabled { opacity: .62; transform: none; }
.review-heading, .project-add-link { justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.review-heading .text-link { min-height: 36px; font-size: 12px; gap: 8px; }
.entry-issues { border-left: 3px solid var(--red); background: #fbefeb; padding: 12px 15px; margin-top: 15px; color: #74252c; font-size: 13px; }
.entry-issues ul { list-style: disc; padding-left: 20px; margin: 6px 0 0; overflow-wrap: anywhere; max-height: 210px; overflow: auto; }
.entry-rows { max-height: 390px; overflow: auto; margin-top: 18px; }
.entry-rows table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 13px; font-variant-numeric: tabular-nums; }
.entry-rows th, .entry-rows td { padding: 10px 7px; text-align: right; border-bottom: 1px solid var(--line); }
.entry-rows th:first-child { text-align: left; }
.entry-rows thead th { position: sticky; top: 0; background: #f1efe9; color: #454958; font-size: 10px; font-weight: 600; }
.entry-rows tbody th { font-weight: 400; }
.entry-model { gap: 10px; }
.entry-model img { width: 43px; height: 43px; object-fit: contain; mix-blend-mode: multiply; }
.entry-model b, .entry-model span { display: block; }
.entry-model span { line-height: 1.3; font-size: 12px; color: #4e5362; }
.entry-combined { color: #4f5363; display: flex; gap: 9px; align-items: center; margin-top: 14px; font-size: 12px; }
.entry-combined svg { width: 15px; }
.project-form-fields { display: grid; gap: 14px; margin: 0; padding: 0; border: 0; min-width: 0; }

@media (max-width: 820px) {
  .entry-layout { grid-template-columns: minmax(0, 1.5fr) minmax(205px, 1fr); gap: 13px; }
  .entry-editor-footer { flex-wrap: wrap; }
  .comparison-end { flex-wrap: wrap; }
  .model-header { padding: 12px 13px 18px; }
  .model-table th, .model-table td { padding: 11px 13px; }
}
@media (max-width: 660px) {
  .dealer-heading { padding-top: 15px; }
  .dealer-heading .breadcrumbs { margin-bottom: 17px; }
  .dealer-title { flex-wrap: wrap; gap: 14px; }
  .dealer-title p, .entry-banner p { font-size: 13px; }
  .dealer-title .btn { min-height: 42px; padding: 8px 16px; }
  .dealer-shop-tools { gap: 8px; padding-bottom: 10px; }
  .dealer-shop-tools a { font-size: 10px; gap: 6px; }
  .compare-tray { right: 10px; bottom: max(10px, env(safe-area-inset-bottom)); }
  .comparison-tools { gap: 8px; font-size: 10px; }
  .comparison-tools > div { gap: 7px; }
  .comparison-tools select { max-width: 62px; }
  .comparison-tools .model-count { gap: 5px; }
  .compare-intro, .dealer-comparison { padding-top: 20px; padding-bottom: 42px; }
  .compare-pan { display: block; color: #616371; font-size: 11px; margin: 7px 0; }
  .model-table { min-width: 500px; }
  .model-table.count-1 { min-width: 0; }
  .model-table.count-3 { min-width: 690px; }
  .model-table th:first-child, .model-table td:first-child { width: 94px; position: sticky; left: 0; z-index: 1; }
  .model-table tbody th:first-child { background: #f7f6f0; border-right: 1px solid var(--line); }
  .model-table tbody tr:nth-child(odd) th:first-child { background: #f0efe9; }
  .model-table .table-label { padding: 12px; }
  .table-label > div { font-size: 17px; }
  .model-table th, .model-table td { font-size: 12px; padding: 11px 10px; }
  .model-header h2 { font-size: 23px; }
  .model-photo img { height: 98px; }
  .model-header { padding: 9px 10px 14px; }
  .compare-start { grid-template-columns: 1fr; }
  .mill-pair img { height: 115px; }
  .comparison-end .btn { width: 100%; }
  .entry-banner { min-height: 170px; padding: 20px; }
  .entry-banner > div { width: 80%; }
  .entry-banner p { margin-top: 10px; max-width: 250px; }
  .entry-banner img { width: 52%; }
  .entry-banner::after { background: linear-gradient(90deg, var(--deep) 26%, #141c3aee 47%, #141c3a40 92%); }
  .entry-layout { grid-template-columns: 1fr; gap: 15px; padding-top: 15px; padding-bottom: 42px; }
  .entry-summary { position: static; }
  .entry-summary-heading { margin-bottom: 7px; }
  .entry-summary-numbers { margin: 12px 0; }
  .entry-editor-footer { align-items: flex-start; }
  .entry-editor-footer .btn { width: 100%; }
  .entry-rows th, .entry-rows td { padding: 8px 4px; }
  .entry-model { gap: 6px; }
  .entry-model img { width: 30px; height: 32px; }
  .entry-rows thead th:last-child { max-width: 69px; }
  .compare-add-row .text-link { font-size: 11px; gap: 6px; }
}
