/* A1: the catalogue's shortlist and printable sheet. */
.ac-ficha-selection {
  position:relative;isolation:isolate;
  margin:18px 0 52px; padding:clamp(23px,4vw,40px) 0 0;
  color:#f7f1ec; border-top:1px solid #654e42; scroll-margin-top:155px;
}
/* Dim the salon photograph behind the collection without adding another card. */
.ac-ficha-selection::before {
  content:"";position:absolute;z-index:-1;pointer-events:none;inset:-12px -12px -20px;
  background:linear-gradient(180deg,transparent,rgba(22,15,12,.58) 15%,rgba(22,15,12,.7) 88%,transparent);
}
.ac-ficha-selection h2,.ac-ficha-selection h3,.ac-ficha-selection h4 {
  color:inherit; font-family:Newsreader,Georgia,serif; font-weight:560; line-height:1.15; margin:0 0 .7rem;
}
.ac-ficha-heading {display:flex;align-items:center;gap:12px clamp(16px,3vw,30px);flex-wrap:wrap}
.ac-ficha-heading h2 {margin:0;font-size:clamp(2rem,4vw,3rem)}
.ac-ficha-heading .ac-ficha-button {border-radius:24px}
.ac-ficha-heading .ac-ficha-return {border-color:transparent;color:#d8bdb0;text-decoration:underline;text-underline-offset:4px}
.ac-ficha-selection h3 {font-size:clamp(1.5rem,2.5vw,2.1rem)}
.ac-ficha-selection p {margin:.55rem 0}
.ac-ficha-selection .ac-ficha-intro {max-width:58ch;color:#dfcec2;margin:.6rem 0 0}
.ac-ficha-toolbar {
  display:flex; align-items:center; justify-content:space-between; gap:12px; flex-wrap:wrap; margin:17px 0 20px;
}
.ac-ficha-collections {margin:15px 0 18px}
.ac-ficha-audience {display:flex;gap:18px;flex-wrap:wrap}
.ac-ficha-audience .ac-ficha-button {
  border:0;border-bottom:2px solid transparent;border-radius:0;background:transparent;
  color:#d3bdb1;padding:8px 3px;font-size:.96rem;
}
.ac-ficha-audience .ac-ficha-button[aria-pressed=true] {color:#f7f1ec;border-bottom-color:#dfb4a6}
.ac-ficha-button,.entry-content .ac-ficha-gallery-link a,.entry-content .ac-ficha-size-link a {
  display:inline-flex;align-items:center;justify-content:center;min-height:44px;
  padding:.65rem .95rem;text-align:center;border:1px solid #9b8175;border-radius:8px;
  color:inherit;background:transparent;font:600 .88rem/1.35 Figtree,system-ui,sans-serif;
  text-decoration:none;cursor:pointer;
}
.ac-ficha-button:hover {border-color:#e8c5b7}
.ac-ficha-primary {color:#30211a;background:#dfb4a6;border-color:#dfb4a6}
.ac-ficha-button:disabled {opacity:.54;cursor:default}
.ac-ficha-button:focus-visible,.ac-ficha-selection a:focus-visible,.ac-ficha-selection input:focus-visible,
.ac-ficha-selection select:focus-visible,.ac-ficha-selection textarea:focus-visible {
  outline:3px solid #bf7e62;outline-offset:3px;
}
.ac-ficha-layout--open {display:grid;grid-template-columns:minmax(0,1fr) minmax(285px,365px);gap:24px}
.ac-ficha-favorites {display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:20px}
.ac-ficha-layout--open .ac-ficha-favorites {
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:16px;
}
.ac-ficha-selection .ac-ficha-style-title {
  margin:1.45rem 0 .7rem;
  font-size:clamp(1.2rem,2.2vw,1.55rem);
}
.ac-ficha-filter {
  display:grid;
  gap:6px;
  width:min(100%, 440px);
  margin:.85rem 0;
  font-size:.9rem;
}
.ac-ficha-filter select {
  width:100%;
  min-height:44px;
  padding:.55rem .65rem;
  color:#f7f1ec;
  background:#211a17;
  border:1px solid #9b8175;
  border-radius:6px;
  font:inherit;
}
.ac-ficha-editor-jump {display:none}
.ac-ficha-editor {scroll-margin-top:155px}
.ac-ficha-reference:not(:has(.ac-ficha-remove)) a span {padding-right:0}
.ac-ficha-favorite {display:flex;flex-direction:column;min-width:0}
.ac-ficha-reference {position:relative;flex:1;min-width:0}
.ac-ficha-favorite a {display:block;color:inherit;font-size:.91rem;line-height:1.4;text-decoration:none}
.ac-ficha-favorite a:hover span {text-decoration:underline;text-underline-offset:4px}
.ac-ficha-favorite img,.ac-ficha-strip img {display:block;width:100%;height:auto;aspect-ratio:4/5;object-fit:cover;border-radius:8px}
.ac-ficha-favorite a span {
  display:block;min-height:44px;padding:.65rem 43px .25rem 0;overflow-wrap:anywhere;
}
.ac-ficha-remove {
  position:absolute;bottom:0;right:0;width:44px;height:44px;padding:0;border-radius:8px;
  color:#cdb5a8;background:transparent;border-color:transparent;font-size:1.16rem;
}
.ac-ficha-remove:hover {color:#f7f1ec;background:#2d211c;border-color:transparent}
.ac-ficha-choose {width:100%}
.ac-ficha-choose[aria-pressed=true] {color:#30211a;background:#dfb4a6}
.ac-ficha-count,.ac-ficha-empty,.ac-ficha-status,.ac-ficha-browse {color:#dfcec2;font-size:.92rem}
.ac-ficha-status:empty {display:none}
.ac-ficha-selection .ac-ficha-browse {margin:16px 0 0}
.ac-ficha-browse a,.ac-ficha-hero-link a {text-underline-offset:4px}
.ac-ficha-hero-link a {color:#dfb4a6}
.ac-ficha-editor,.ac-ficha-paper {
  background:#f4eee7;color:#30211a;padding:clamp(15px,3vw,26px);border-radius:10px;
  color-scheme:light;font-family:Figtree,system-ui,sans-serif;
}
.ac-ficha-strip {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;margin:.85rem 0}
.ac-ficha-strip:empty {display:none}
.ac-ficha-fields {display:grid;gap:11px}
.ac-ficha-field-row {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
.ac-ficha-fields label,.ac-ficha-fields legend {font-size:.89rem}
.ac-ficha-fields label > span {display:block;margin-bottom:5px}
.ac-ficha-fields select,.ac-ficha-fields textarea {
  width:100%;min-width:0;min-height:44px;padding:.56rem .55rem;color:#30211a;background:#fffcf8;
  border:1px solid #c7b5a6;border-radius:6px;font:400 .91rem/1.4 Figtree,sans-serif;
}
.ac-ficha-fields textarea {resize:vertical}
.ac-ficha-fields fieldset {padding:0;border:0;margin:0;min-width:0}
.ac-ficha-chips {display:flex;flex-wrap:wrap;gap:6px}
.ac-ficha-chips label {position:relative}
.ac-ficha-chips input {position:absolute;opacity:0;inset:0;margin:0;cursor:pointer}
.ac-ficha-chips label > span {
  display:flex;align-items:center;min-height:44px;margin:0;padding:5px 10px;border:1px solid #bfae9e;border-radius:24px;
}
.ac-ficha-chips input:checked + span {border-color:#815144;background:#e9d3c8;box-shadow:inset 0 0 0 1px #815144}
.ac-ficha-chips input:focus-visible + span {outline:3px solid #a16b54;outline-offset:2px}
.ac-ficha-actions {display:grid;gap:8px;margin:.75rem 0}
.ac-ficha-editor .ac-ficha-primary {color:#fffcf8;border-color:#784637;background:#784637}
.ac-ficha-privacy {font-size:.82rem;color:#675042}
.ac-ficha-pick {margin:0 12px 13px;width:calc(100% - 24px);color:#f7f1ec;background:#2d211c}
.ac-ficha-pick[aria-pressed=true] {color:#30211a;background:#dfb4a6}
.ac-ficha-gallery-link {display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin:18px 0 24px}
.ac-ficha-gallery-link p {margin:0}
.ac-ficha-gallery-link p:empty {display:none}
.entry-content .ac-ficha-size-link a,.entry-content .ac-ficha-gallery-link a {background:#dfb4a6;color:#30211a}
.ac-ficha-selection [hidden] {display:none!important}
.ac-ficha-paper {max-width:810px;margin-inline:auto}
.ac-ficha-paper-brand {text-transform:uppercase;letter-spacing:.12em;font-size:.8rem}
.ac-ficha-paper-photos {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:15px 0}
.ac-ficha-paper-photos figure {margin:0;min-width:0}
.ac-ficha-paper-photos img {width:100%;height:clamp(120px,27vw,240px);object-fit:contain;background:#e8ddd2}
.ac-ficha-paper-photos a {color:#30211a;font-size:.85rem;overflow-wrap:anywhere}
.ac-ficha-paper-details {display:grid;grid-template-columns:1fr 1fr;gap:14px;border-top:1px solid #bfae9e;padding-top:14px}
.ac-ficha-paper-details dt {color:#675042;font-size:.85rem}
.ac-ficha-paper-details dd {margin:0}
.ac-ficha-paper-notes {white-space:pre-wrap;overflow-wrap:anywhere}
.ac-ficha-paper-domain {border-top:1px solid #bfae9e;padding-top:12px}
.ac-ficha-paper-print {display:none}
@media(max-width:840px){
  .ac-ficha-selection {scroll-margin-top:106px}
  .ac-ficha-layout--open {display:block}
  .ac-ficha-editor {margin-top:20px}
  .ac-ficha-favorites,.ac-ficha-layout--open .ac-ficha-favorites {
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:14px;
  }
  .ac-ficha-editor {scroll-margin-top:106px}
  .ac-ficha-editor-jump {display:inline-block;margin:0 0 .65rem}
}
@media(max-width:480px){
  .ac-ficha-heading {row-gap:9px}
  .ac-ficha-heading .ac-ficha-button {font-size:.82rem}
  .ac-ficha-favorite a {font-size:.84rem}
  .ac-ficha-favorite a span {padding-right:34px}
  .ac-ficha-remove {right:-5px}
}
/* Keep the paper legible inside the salon, and the launcher off its controls. */
body.studio-preview .ac-ficha-selection :is(.ac-ficha-editor,.ac-ficha-paper) :is(h3,h4) {color:#30211a}
body:has(.ac-ficha-selection :is(.ac-ficha-editor,.ac-ficha-paper)) .ac-assistant__launch {display:none}
@page ac-ficha {size:A4;margin:12mm}
@media print {
  body.ac-ficha-printing > :not(.ac-ficha-paper-print) {display:none!important}
  body.ac-ficha-printing {background:#fff!important}
  .ac-ficha-paper-print {display:block!important;page:ac-ficha;width:100%;background:#fff;color:#30211a;padding:0}
  .ac-ficha-paper-print .ac-ficha-paper-photos img {height:63mm}
  .ac-ficha-paper-print .ac-ficha-paper-photos,.ac-ficha-paper-print dl {break-inside:avoid}
}
