/* Shared editorial journey: warm materials, clear controls and responsive browsing. */
.gj-body {
  margin: 0;
  background: #f5f3ed;
  color: #23332d;
  font: 16px/1.5 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
.gj {
  --ink: #25392f;
  --muted: #56665c;
  --accent: #305b49;
  --tint: #e8eee6;
  --paper: #fffdfa;
  --line: #d7dcd3;
  --shadow: 0 3px 12px rgba(48,55,43,.045);
  max-width: 1230px;
  margin: auto;
  padding: 18px 28px 30px;
  color: var(--ink);
  overflow-wrap: anywhere;
}
.gj[data-guided-journey="sofa"] {
  --ink: #3c332c;
  --muted: #6a5e54;
  --accent: #80563e;
  --tint: #eee6dc;
  --line: #e0d7ca;
}
.gj, .gj * { box-sizing: border-box; }
.gj [hidden] { display: none !important; }
.gj a { color: var(--accent); text-underline-offset: .17em; }
.gj button, .gj input, .gj select { font: inherit; color: inherit; }
.gj button, .gj select, .gj input {
  min-height: 42px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 8px 12px;
}
.gj button { font-size: 13px; font-weight: 650; cursor: pointer; }
.gj button:hover { border-color: var(--accent); }
.gj button[aria-pressed=true], .gj button.gj-primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.gj select, .gj input { width: 100%; min-width: 0; }
.gj input[type=checkbox] { accent-color: var(--accent); }
.gj :focus-visible { outline: 3px solid #a87b3d; outline-offset: 3px; }
.gj svg { display: block; }
.gj button svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.gj-header {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 1px 0 15px; border-bottom: 1px solid var(--line);
}
.gj-brand { display: flex; align-items: center; gap: 10px; min-width: 0; }
.gj-brand-mark {
  display: grid; place-items: center; width: 39px; height: 39px; flex: 0 0 39px;
  color: white; background: var(--accent); border-radius: 11px;
  font: 700 24px/1 Georgia, serif; letter-spacing: -.08em;
}
.gj-brand strong { font-size: 15px; font-weight: 750; line-height: 1.2; display: block; }
.gj-brand div > span { display: block; color: var(--muted); font-size: 11px; line-height: 1.4; }
.gj-back { font-weight: 600; font-size: 13px; text-decoration: none; flex-shrink: 0; }
.gj-intro { padding: 17px 0 12px; }
.gj-eyebrow { font-size: 10px; letter-spacing: .12em; font-weight: 750; color: var(--accent); text-transform: uppercase; }
.gj h1 {
  margin: 7px 0 10px; font: 500 clamp(31px,4.2vw,45px)/1.07 Georgia, "Times New Roman", serif;
  letter-spacing: -.035em; max-width: 28ch;
}
.gj-intro p { margin: 4px 0; max-width: 70ch; color: var(--muted); font-size: 15px; }
.gj .gj-context { font-size: 12px; margin-top: 9px; }
.gj-context a { font-weight: 650; text-decoration-color: var(--line); }
.gj-filters {
  background: var(--paper); border: 1px solid var(--line); border-radius: 14px; padding: 13px 15px; box-shadow: var(--shadow);
  scroll-margin-top: 12px;
}
.gj fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.gj legend, .gj label { font-size: 13px; font-weight: 650; }
.gj legend { margin-bottom: 7px; }
.gj label { display: flex; flex-direction: column; gap: 5px; margin: 0; }
.gj-choices { display: flex; flex-wrap: wrap; gap: 7px; }
.gj-choices button { border-radius: 999px; padding: 8px 14px; }
.gj-selects { display: grid; grid-template-columns: minmax(0,1.3fr) minmax(0,1fr); gap: 12px; margin-top: 10px; align-items: start; }
.gj-advanced { padding-top: 3px; }
.gj-advanced summary, .gj-quote summary { color: var(--accent); font-size: 13px; font-weight: 650; cursor: pointer; }
.gj-advanced[open] label { margin-top: 9px; }
.gj-filter-note { margin: 8px 0 0; font-size: 12px; color: var(--muted); }
.gj .gj-mobile-goal, .gj .gj-filter-reset { display: none; }
.gj-summary {
  position: sticky; top: 0; z-index: 3;
  display: flex; align-items: center; justify-content: space-between; gap: 9px;
  padding: 10px 0; margin: 5px 0 10px; min-height: 53px;
  background: #f5f3ed; border-bottom: 1px solid var(--line);
}
.gj-summary-info { min-width: 0; }
.gj-summary-info strong { display: block; font-size: 15px; line-height: 1.25; }
.gj-summary-context { display: block; color: var(--muted); font-size: 11px; margin-top: 3px; }
.gj-browse-actions { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }
.gj-browse-actions button { min-height: 40px; padding: 6px 10px; display: inline-flex; gap: 5px; align-items: center; }
.gj-browse-actions b { font-size: 12px; font-weight: 700; }
.gj-studio-transfer {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 8px 14px; padding: 12px 15px; margin: 0 0 12px;
  background: var(--tint); border: 1px solid var(--line); border-radius: 12px;
}
.gj-studio-transfer strong { font-size: 15px; }
.gj-studio-transfer p { margin: 3px 0 0; color: var(--muted); font-size: 12px; }
.gj-studio-transfer button:disabled { opacity: .6; cursor: default; }

.gj-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
  gap: 18px;
  align-items: stretch;
}
.gj-card {
  background: var(--paper); border: 1px solid var(--line); border-radius: 15px;
  overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column;
  min-width: 0; scroll-margin-top: 76px;
}
.gj-card[data-gj-selected="1"] { border-color: var(--accent); }
.gj-image, .gj-diagram {
  margin: 0; background: #e9e7df; height: auto; aspect-ratio: 1.6;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  overflow: hidden;
}
.gj-image img { width: 100%; height: 100%; object-fit: contain; display: block; }
.gj-context-photos { margin-top: 24px; }
.gj-context-photo-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
  gap: 12px; max-width: 1000px; margin: 0; padding: 0; list-style: none;
}
.gj-context-photo-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 10px; }
.gj-context-photos [role="status"]:empty { margin: 0; }
.gj-diagram { background: #eee8df; padding: 10px 10px 8px; }
.gj-diagram svg { width: 100%; flex: 1; min-height: 0; }
.gj-diagram figcaption { color: #655749; font-size: 11px; text-align: center; margin-top: 4px; }
.gj-card-body { padding: 13px 15px 14px; flex: 1; display: flex; flex-direction: column; }
.gj-card-meta { display: flex; align-items: center; justify-content: space-between; gap: 6px; min-height: 35px; margin-bottom: 3px; }
.gj-category { color: var(--accent); font-size: 10px; text-transform: uppercase; font-weight: 750; letter-spacing: .085em; }
.gj button.gj-save {
  display: flex; gap: 4px; align-items: center; flex-shrink: 0;
  padding: 6px 8px; min-height: 40px; background: transparent; border-color: transparent; color: var(--muted);
}
.gj button.gj-save:hover { border-color: var(--line); }
.gj button.gj-save[aria-pressed=true] { background: var(--tint); color: var(--accent); border-color: transparent; }
.gj button.gj-save[aria-pressed=true] svg { fill: currentColor; }
.gj-card h2 { font-size: 20px; font-weight: 660; line-height: 1.21; letter-spacing: -.025em; margin: 3px 0 9px; }
.gj-card p { margin: 0 0 12px; font-size: 14px; color: var(--muted); }
.gj-check { display: flex; gap: 8px; padding: 11px; border-radius: 9px; background: var(--tint); margin: 0 0 9px; }
.gj-check-icon { flex: 0 0 19px; color: var(--accent); }
.gj-check-icon svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.gj-check strong { display: block; font-size: 12px; font-weight: 750; }
.gj-check p { font-size: 13px; color: var(--ink); margin: 3px 0 0; line-height: 1.42; }
.gj-card-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; margin-top: auto; padding-top: 5px; }
.gj-read { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 750; padding: 10px 0; text-decoration: none; }
.gj-read:hover { text-decoration: underline; }
.gj-photo-source { font-size: 11px; color: var(--muted) !important; }
.gj-measure, .gj-orientation { border: 1px solid var(--line); border-radius: 9px; padding: 9px 10px; margin: 4px 0 9px; }
.gj-measure summary { font-size: 13px; font-weight: 700; color: var(--accent); cursor: pointer; }
.gj-measure p, .gj-measure output, .gj-orientation p { font-size: 12px; margin: 9px 0; }
.gj-measure label { margin-top: 8px; font-size: 12px; }
.gj-measure output { display: block; min-height: 2em; font-weight: 650; color: var(--ink); }
.gj-orientation svg { width: 100%; height: auto; max-height: 150px; margin-top: 6px; }
.gj-orientation button { font-size: 12px; }
.gj-empty { padding: 20px; border: 1px dashed var(--line); border-radius: 12px; background: var(--paper); }
.gj-empty p { font-size: 14px; margin: 6px 0 13px; color: var(--muted); }
.gj-footer { font-size: 12px; color: var(--muted); margin-top: 22px; border-top: 1px solid var(--line); padding-top: 14px; }
.gj-sheet { margin-top: 12px; background: var(--paper); border: 1px solid var(--line); border-radius: 13px; scroll-margin-top: 12px; box-shadow: var(--shadow); }
.gj-sheet>summary { cursor: pointer; padding: 14px 16px; color: var(--accent); }
.gj-sheet>summary strong { font-size: 16px; }
.gj-sheet>summary span { display: block; font-size: 12px; margin: 3px 0 0 17px; color: var(--muted); }
.gj-sheet-body { padding: 0 16px 16px; }
.gj-sheet-body>p { font-size: 13px; color: var(--muted); }
.gj-sheet-inputs { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; }
.gj .gj-sheet-check { flex-direction: row; align-items: center; font-size: 13px; }
.gj .gj-sheet-check input { width: 20px; min-height: auto; height: 20px; }
.gj-quote, .gj-catalog-comparison { margin: 14px 0; }
.gj-catalog-comparison summary { color: var(--accent); font-size: 13px; font-weight: 650; cursor: pointer; }
.gj-catalog-comparison p, [data-gj-catalog-result] p { font-size: 12px; }
[data-gj-catalog-result] h3 { font-size: 15px; margin: 14px 0 8px; }
.gj-catalog-pair { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }
.gj-catalog-pair article { background: var(--surface, #fff); border: 1px solid var(--line); padding: 10px; border-radius: 8px; overflow-wrap: anywhere; }
.gj-catalog-links { display: flex; flex-wrap: wrap; gap: 8px; font-size: 12px; }
@media (max-width: 540px) { .gj-catalog-pair { grid-template-columns: 1fr; } }
.gj-quote p { font-size: 12px; color: var(--muted); }
.gj-sheet-result { background: var(--tint); border: 1px solid var(--line); border-radius: 11px; padding: 18px; }
.gj-sheet-result h2 { font: 500 26px/1.15 Georgia, serif; margin: 7px 0; }
.gj-sheet-result p, .gj-shopping-list { font-size: 13px; }
.gj-sheet-values { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1.3fr); gap: 5px 12px; font-size: 13px; margin: 12px 0; }
.gj-sheet-values dt { font-weight: 650; }
.gj-sheet-values dd { margin: 0; }
.gj-shopping-list { padding-left: 22px; }
.gj-shopping-list li { margin: 5px 0; }
[data-gj-fact-source] { border-top: 1px solid var(--line); padding-top: 8px; margin-top: 12px; }
[data-gj-fact-source] h3 { font-size: 15px; margin: 6px 0; }
[data-gj-fact-source] p { font-size: 13px; color: var(--muted); }
.gj-sheet-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
@media (min-width: 1000px) {
  .gj[data-guided-journey="sofa"] .gj-cards { grid-template-columns: repeat(3,minmax(0,1fr)); }
}
@media (max-width: 760px) {
  .gj { padding: 12px 16px 24px; }
  .gj-cards { gap: 12px; grid-template-columns: repeat(auto-fill,minmax(min(100%,270px),1fr)); }
}
@media (max-width: 540px) {
  .gj { padding: 10px 12px 22px; }
  .gj-header { padding-bottom: 10px; }
  .gj-brand-mark { width: 34px; height: 34px; flex-basis: 34px; font-size: 21px; border-radius: 9px; }
  .gj-brand { gap: 8px; }
  .gj-brand strong { font-size: 13px; }
  .gj-brand div>span { font-size: 11px; }
  .gj-back { font-size: 11px; }
  .gj-intro { padding: 15px 0 12px; }
  .gj h1 { font-size: 31px; margin: 4px 0 8px; }
  .gj-intro p { font-size: 13px; }
  .gj .gj-context { font-size: 11px; margin-top: 6px; }
  .gj-intro .gj-eyebrow { font-size: 9px; letter-spacing: .08em; }
  .gj-filters { padding: 10px 12px; position: relative; }
  .gj .gj-desktop-goal { display: none; }
  .gj .gj-mobile-goal { display: flex; }
  .gj-mobile-goal { padding-top: 5px; }
  .gj-mobile-goal select { margin-top: 4px; }
  .gj-selects { grid-template-columns: 1fr; gap: 6px; margin-top: 7px; }
  .gj button, .gj select, .gj input { min-height: 44px; }
  .gj-advanced { padding: 0; }
  .gj-summary { gap: 4px; padding: 6px 0; margin-bottom: 8px; }
  .gj-summary-info strong { font-size: 13px; }
  .gj-summary-context { display: none; }
  .gj-browse-actions { gap: 4px; }
  .gj-browse-actions button { min-height: 44px; padding: 6px 7px; font-size: 11px; gap: 3px; }
  .gj-browse-actions button svg { width: 15px; height: 15px; }
  .gj-browse-actions [data-gj-reset] { display: none; }
  .gj .gj-filter-reset { display: inline-flex; align-items: center; position: absolute; top: 5px; right: 12px; min-height: 34px; border: 0; padding: 3px 0; color: var(--accent); background: transparent; font-size: 11px; }
  .gj-card-body { padding: 11px 13px 12px; }
  .gj-card h2 { font-size: 19px; }
  .gj-image, .gj-diagram { aspect-ratio: 1.8; }
  .gj-card-meta { margin-bottom: 0; min-height: 34px; }
  .gj-check { padding: 9px 10px; }
  .gj-sheet>summary { padding: 11px 12px; }
  .gj-sheet>summary strong { font-size: 14px; }
  .gj-sheet>summary span { display: none; }
  .gj-sheet-body { padding: 0 12px 12px; }
  .gj-sheet-inputs { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 9px; }
  .gj-sheet-result { padding: 12px; }
  .gj-sheet-result h2 { font-size: 22px; }
}
@media (prefers-reduced-motion:no-preference) {
  .gj button, .gj-card { transition: background-color .12s, border-color .12s; }
}
@media print {
  .gj-summary { position: static; }
  body.gj-body.gj-print-sheet { background: #fff; color: #111; }
  body.gj-print-sheet .gj[data-guided-journey="sofa"] { max-width: none; padding: 0; }
  body.gj-print-sheet .gj[data-guided-journey="sofa"]>*:not(.gj-sheet) { display: none !important; }
  body.gj-print-sheet .gj-sheet { border: 0; margin: 0; box-shadow: none; }
  body.gj-print-sheet .gj-sheet>summary, body.gj-print-sheet .gj-sheet-body>*:not(.gj-sheet-result) { display: none !important; }
  body.gj-print-sheet .gj-sheet-body, body.gj-print-sheet .gj-sheet-result { padding: 0; border: 0; background: #fff; }
  body.gj-print-sheet .gj-sheet-result { break-inside: avoid; }
  body.gj-print-sheet .gj-sheet-result p, body.gj-print-sheet .gj-shopping-list, body.gj-print-sheet .gj-sheet-values { font-size: 11pt; }
}

.gj-measure-chart { display: grid; gap: 7px; margin: 11px 0 4px; }
.gj-measure-chart span { display: flex; justify-content: space-between; gap: 5px; font-size: 11px; color: var(--muted); }
.gj-measure-chart b { color: var(--ink); }
.gj-measure-chart i { display: block; height: 7px; border-radius: 6px; background: var(--line); margin-top: 3px; overflow: hidden; }
.gj-measure-chart em { display: block; height: 100%; background: var(--accent); border-radius: 6px; }
.gj-measure-chart [data-gj-needed-bar] { background: #9c9b8c; }
.gj-measure-chart[data-gj-insufficient="true"] [data-gj-needed-bar] { background: #9b5539; }
.gj-empty { scroll-margin-top: 76px; }

/* Contextual launcher inside an existing editorial article. */
.gik25-journey-launch { margin: 1.5em 0; padding: 1.15em 1.3em; border: 1px solid #d7dcd3; border-radius: 12px; background: #f5f3ed; color: #23332d; }
.gik25-journey-launch strong { display: block; font-size: 1.15em; }
.gik25-journey-launch p { margin: .35em 0 .85em; }
.gik25-journey-launch a { display: inline-block; padding: .55em .9em; border-radius: 7px; color: #fff; background: #305b49; text-decoration: none; font-weight: 650; }
.gik25-journey-launch a:focus-visible { outline: 3px solid #a87b3d; outline-offset: 3px; }
