/* THE AVILA COLLECTION — remote design study patterns, 15 September 2026
   Loads LAST, after avila-palette.css. Additive only: every selector below is a new class that
   appears nowhere in the existing pages, so loading this file cannot change an existing layout.
   Used by remote-design-study.html, and by portfolio.html / approach.html for the two entry
   points into it. Reversible by removing the <link> and the markup that calls these classes. */

/* ---------- photography shown whole ----------
   Boards, product schedules and plans carry text, so they must never be cropped by object-fit.
   This opts an individual picture out of the site's ratio crops without touching .photo. */
.photo--natural{aspect-ratio:auto}
.photo--natural img{height:auto;object-fit:contain}

/* ---------- truth classification ----------
   Every visualization on the study page carries one of these, adjacent to the image, in the
   same view. It must NOT reuse .truth: that class is review-mode chrome, hidden on the public
   site by `body:not(.review) .truth{display:none}` in avila-r10.css. These labels are permanent
   and visitor-facing, so they get their own class. */
.tclass{display:inline-block;font-family:var(--font-label);font-size:.68rem;letter-spacing:.13em;
  text-transform:uppercase;line-height:1.5;color:var(--ink);
  border:1px solid var(--violet);padding:.3rem .62rem}
.tclass--concept{border-color:var(--accent-quiet)}
.classline{display:flex;flex-wrap:wrap;gap:.55rem 1rem;align-items:baseline;margin:.9rem 0 0;max-width:var(--measure)}
.classline p{margin:0;font-size:.85rem;color:var(--ink-soft)}
.panel .tclass{border-color:#0a0808;color:#0a0808}
.panel .classline p{color:#0a0808}

/* ---------- verified-facts table ---------- */
.facts{display:grid;grid-template-columns:minmax(0,13ch) minmax(0,1fr);gap:0 1.8rem;margin:1.9rem 0 0;max-width:var(--measure)}
.facts dt{font-family:var(--font-label);font-size:.71rem;letter-spacing:.14em;text-transform:uppercase;
  color:var(--ink-soft);border-top:1px solid var(--rule-soft);padding:.72rem 0 .2rem}
.facts dd{margin:0;border-top:1px solid var(--rule-soft);padding:.62rem 0 .8rem}

/* ---------- the client's stated requirements ---------- */
.needs{list-style:none;margin:1.8rem 0 0;padding:0;max-width:var(--measure);display:grid}
.needs li{border-top:1px solid rgba(10,8,8,.2);padding:.72rem 0;
  font-family:var(--font-heading);font-size:1.05rem;line-height:1.5}

/* ---------- documented workflow ---------- */
.flow{list-style:none;counter-reset:f;margin:2.1rem 0 0;padding:0;display:grid;gap:1.5rem;max-width:var(--measure)}
.flow li{counter-increment:f;display:grid;grid-template-columns:2.6rem minmax(0,1fr);gap:0 1rem}
.flow li::before{content:counter(f,decimal-leading-zero);font-family:var(--font-label);font-size:.74rem;
  letter-spacing:.1em;color:var(--violet);padding-top:.42rem;grid-column:1;grid-row:1/span 2}
.flow h3,.flow p{grid-column:2}
.flow h3{margin:0 0 .28em}
.flow p{margin:0;font-size:.95rem;max-width:none}

/* ---------- boards and schedules ---------- */
.boards{display:grid;gap:2.6rem;margin:2.4rem 0 0;grid-template-columns:minmax(0,1fr)}
.board{margin:0}
.board .framed{margin:0}
.board figcaption{margin-top:.85rem}
.board figcaption h3{margin:0 0 .25em}
.board figcaption p{margin:0;font-size:.9rem}

/* ---------- what the client received ---------- */
.got{list-style:none;margin:1.8rem 0 0;padding:0;display:grid;max-width:var(--measure)}
.got li{border-top:1px solid var(--rule-soft);padding:.78rem 0}
.got li span{display:block;font-family:var(--font-label);font-size:.71rem;letter-spacing:.14em;
  text-transform:uppercase;color:var(--ink-soft);margin-bottom:.2rem}
.panel .got li{border-top-color:rgba(10,8,8,.2)}
.panel .got li span{color:#0a0808}

/* ---------- Work page: the Design Studies card ---------- */
.studycard{display:grid;gap:1.3rem;margin-top:1.9rem;text-decoration:none;color:inherit;
  grid-template-columns:minmax(0,1fr)}
.studycard .framed{margin:0}
.studycard h3{font-family:var(--font-heading);font-size:clamp(1.15rem,1.7vw,1.4rem);margin:0 0 .3em}
.studycard__rooms{margin:0 0 .7rem;font-size:.92rem}
.studycard .tclass{display:block;width:fit-content;margin-bottom:.9rem}
.studycard__cta{font-family:var(--font-label);font-size:.78rem;letter-spacing:.07em;
  text-decoration:underline;text-decoration-color:var(--accent);text-underline-offset:.3em}
.studycard:hover .framed{border-color:var(--accent)}
.studycard:hover .studycard__cta{text-decoration-color:var(--detail)}

/* ---------- Approach page: one restrained link into the study ---------- */
.crosslink{display:grid;gap:1.2rem;margin-top:2.1rem;text-decoration:none;color:inherit;
  grid-template-columns:minmax(0,1fr)}
.crosslink .framed{margin:0}
.crosslink h3{margin:0 0 .3em}
.crosslink p{margin:0;font-size:.92rem}
.crosslink .studycard__cta{display:inline-block;margin-top:.6rem}
#remote.panel .crosslink h3{color:var(--surface-1)}
#remote.panel .crosslink .studycard__cta{text-decoration-color:var(--gold)}
#remote.panel .crosslink:hover .studycard__cta{text-decoration-color:var(--surface-1)}

@media (min-width:720px){
  .studycard{grid-template-columns:minmax(0,7fr) minmax(0,5fr);align-items:center;gap:2rem}
  .crosslink{grid-template-columns:minmax(0,200px) minmax(0,1fr);align-items:center;gap:1.8rem}
  .boards--pair{grid-template-columns:repeat(2,minmax(0,1fr))}
}

@media (max-width:560px){
  .facts{grid-template-columns:minmax(0,1fr);gap:0}
  .facts dt{border-top:1px solid var(--rule-soft);padding-bottom:0}
  .facts dd{border-top:0;padding-top:.15rem}
  .flow li{grid-template-columns:minmax(0,1fr)}
  .flow li::before{padding:0 0 .3rem;grid-row:auto;grid-column:1}
  .flow h3,.flow p{grid-column:1}
}
