/* The style library's pages (docs/agents-plan.md, part B). They use site.css for type, colour, the bar, buttons and the
   footer, and add only the layout below. The first page is /style/compared/ (November 13, 2026). */

.sp-nav { display: flex; align-items: center; gap: clamp(1rem, 2.4vw, 2rem); font-family: var(--display); font-size: .95rem; }
.sp-nav > a:not(.top-studio) { text-decoration: none; padding-block: .3rem; border-bottom: 1px solid transparent; }
.sp-nav > a:not(.top-studio):hover { border-color: var(--brass-line); }
.sp-nav .top-studio { order: 0; margin: 0; }
/* A phone: the wordmark, Room Studio and the account (November 14, 2026). The style is the wordmark's own link, so its
   word steps aside rather than wrap or push the account off the screen. */
@media (max-width: 40em) { .sp-nav > a:not(.top-studio) { display: none; } }

.sp-intro { padding-top: clamp(2.5rem, 6vw, 5rem); }
.sp-intro h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); line-height: 1.02; letter-spacing: -.025em; }
.sp-intro h1 em { display: block; font-family: var(--text); font-style: italic; font-weight: 300; font-size: 1.04em; letter-spacing: -.02em; color: var(--brass); }
.sp-intro .lede { margin-top: clamp(1.1rem, 2vw, 1.6rem); }
.sp-lead { margin: clamp(2rem, 4vw, 3rem) 0 0; max-width: var(--photo-wide); }
.sp-lead img { width: 100%; }
.sp-lead figcaption, .sp-row figcaption { padding-top: .8rem; }
.sp-lead-in { margin: clamp(2rem, 4vw, 3rem) 0 0; max-width: 40rem; font-size: var(--lede-size); line-height: 1.6; }
/* Jump links to each comparison and the summary (QA of November 24, 2026, item 10). Each section lands below the sticky bar. */
.sp-jump { display: flex; flex-wrap: wrap; gap: .1rem 1.4rem; margin-top: 1rem; max-width: 46rem; font-family: var(--display); font-size: .95rem; }
.sp-jump a { display: inline-flex; align-items: center; min-height: 2.75rem; text-decoration: underline; text-decoration-color: var(--brass-line); text-underline-offset: .35em; }
.sp-jump a:hover { text-decoration-color: currentColor; }
.sp-style, .sp-glance { scroll-margin-top: max(0px, calc(var(--site-head, 64px) - 64px + .5rem)); } /* html already pads 64px */
@media (max-width: 40em) { .sp-jump { gap: 0 1.1rem; } }

.sp-style { padding-block: clamp(2rem, 4vw, 3.25rem); }
.sp-row { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(1.5rem, 4vw, 4rem); align-items: center; border-top: 1px solid var(--brass-line); padding-top: clamp(2rem, 4vw, 3rem); }
.sp-row.flip > figure { order: 2; }
.sp-row figure { margin: 0; }
.sp-row img { width: 100%; }
.sp-text .sp-room { margin: 0 0 .7rem; font-family: var(--display); font-size: 0.75rem; letter-spacing: .28em; text-transform: uppercase; color: var(--label); }
.sp-text h2 { font-size: clamp(2rem, 3.4vw, 2.9rem); margin-bottom: 1.1rem; }
/* Much larger browser text on a phone (under 19.9em, as on the main page): headings shrink to fit their longest word
   ("Mediterranean", "contemporary.") so the page never scrolls sideways (Jeff, November 22, 2026). */
@media (max-width: 19.9em) {
  .sp-intro h1, .sp-text h2 { font-size: min(2rem, 11.5vw); overflow-wrap: break-word; }
}
.sp-text p + p { margin-top: .9rem; }
.sp-text .sp-def { margin: 0 0 1.4rem; font-size: var(--lede-size); line-height: 1.6; }
.sp-text h3 { font-family: var(--display); font-size: 0.75rem; font-weight: 400; letter-spacing: .28em; text-transform: uppercase; color: var(--label); margin: 1.2rem 0 .4rem; }
.sp-text p { margin: 0; font-size: 1.1rem; line-height: 1.65; }

.sp-glance { background-color: var(--paper-2); padding-block: clamp(3rem, 6vw, 5rem); margin-top: clamp(1.5rem, 3vw, 2.5rem); }
.sp-glance h2 { margin-bottom: clamp(1.5rem, 3vw, 2.25rem); }
.sp-table-wrap { overflow-x: auto; }
.sp-table { width: 100%; border-collapse: collapse; font-size: 1.05rem; line-height: 1.5; }
.sp-table th, .sp-table td { text-align: left; vertical-align: top; padding: 1rem 1.25rem 1rem 0; border-bottom: 1px solid color-mix(in srgb, var(--ink) 12%, transparent); }
.sp-table thead th { font-family: var(--display); font-weight: 400; font-size: 0.75rem; letter-spacing: .2em; text-transform: uppercase; color: var(--label); border-bottom-color: var(--brass-line); }
.sp-table tbody th { font-family: var(--display); font-weight: 400; font-size: 1.15rem; white-space: nowrap; }
.sp-sum { margin-top: clamp(1.75rem, 3vw, 2.5rem); }

.sp-cta { padding-block: clamp(3rem, 6vw, 5rem); }
.sp-cta .lede { margin-top: 1rem; }
.sp-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.75rem; margin: clamp(1.5rem, 3vw, 2rem) 0 0; }
.sp-more { font-family: var(--display); font-size: .95rem; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .3em; text-decoration-color: var(--brass-line); }

@media (max-width: 900px) {
  .sp-row { grid-template-columns: minmax(0, 1fr); }
  .sp-row.flip > figure { order: 0; }
}
@media (max-width: 640px) {
  .sp-nav > a:not(.top-studio) { font-size: .85rem; }
  .sp-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .sp-table, .sp-table tbody, .sp-table tr, .sp-table th, .sp-table td { display: block; width: 100%; }
  .sp-table tr { padding: 1rem 0; border-bottom: 1px solid color-mix(in srgb, var(--ink) 12%, transparent); }
  .sp-table th, .sp-table td { border: 0; padding: 0; }
  .sp-table tbody th { margin-bottom: .4rem; }
  .sp-table td + td { margin-top: .5rem; }
  .sp-table td::before { display: block; font-family: var(--display); font-size: 0.75rem; letter-spacing: .2em; text-transform: uppercase; color: var(--label); }
  .sp-table td:nth-of-type(1)::before { content: "Borrows"; }
  .sp-table td:nth-of-type(2)::before { content: "Does differently"; }
}

/* The page's one main action is filled, like the main page's Room Studio button. */
.sp-actions .btn-solid { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.sp-actions .btn-solid:hover, .sp-actions .btn-solid:focus-visible { background: color-mix(in srgb, var(--ink) 80%, var(--brass)); border-color: color-mix(in srgb, var(--ink) 80%, var(--brass)); color: var(--paper); }

.sp-actions .btn {text-decoration:none;min-height:3.25rem;}
@media(max-width:40em){.sp-actions {display:grid;gap:.6rem;}.sp-actions .btn {width:100%;justify-content:center;}}

.sp-jump {gap:.45rem;}
.sp-jump a {border:1px solid var(--brass-line);border-radius:2rem;min-width:44px;min-height:44px;padding:.35rem .9rem;text-decoration:none;}
