/* THE SAREE ATLAS — E15.2 refinements.
   Loaded after e15.css on every page (tools/e15_shell.py). Each block names the workstream it serves. */

/* ---------- Final photography: responsive crops ---------- */
/* Homepage “Three ways into the weave”: the regional-traditions photograph is a wide group of five,
   so the three cards share a 4:3 frame instead of 4:5 (which hid the women at either edge). */
.h-way figure{aspect-ratio:4/3}
.h-way img{object-position:50% 40%}
@media (max-width:760px){.h-way figure{aspect-ratio:16/11}}
/* Homepage “Our story” teaser: a three-person counter scene, kept whole. */
.h-story figure{aspect-ratio:4/3}
.h-story img{object-position:50% 30%}
@media (max-width:860px){.h-story figure{aspect-ratio:16/11}}
/* Homepage Hall of Fame card: a panoramic still life; keep the gold pallus in view. */
.h-cc img[data-photo-slot="hero-hall-of-fame"]{object-position:50% 60%}
/* Price & Value hero: the photograph is a close study of hands and border, so favour them. */
.pv-hero img{object-position:50% 96%}
.pv-detail img[data-photo-slot="price-value-detail-loom"]{object-position:40% 50%}
/* See the Difference — matched square comparison photographs, equal weight. */
.comparison-tile img[data-photo-slot^="compare-"]{aspect-ratio:1/1;object-fit:cover;width:100%;height:auto}

/* ---------- Our Story (approved E15.2 copy) ---------- */
.story-pull.story-pull--quiet{font-size:clamp(1.35rem,2.2vw,1.75rem)!important;line-height:1.3!important;margin-top:1.4em}

/* ---------- Showroom Companion: the E15.2 buying guide ---------- */
.sc-sub{font:600 .68rem var(--e-text)!important;letter-spacing:.16em;text-transform:uppercase;color:var(--e-garnet)!important;margin:18px 0 6px!important}
.sc-panel>.sc-sub:first-child{margin-top:4px!important}
.sc-prose{font-size:1rem;line-height:1.7;color:var(--e-ink-2);margin:0 0 6px;max-width:68ch}
.sc-hint{font-size:.8rem;color:var(--e-muted);margin:14px 0 0}
.sc-mark{font-size:.9rem;line-height:1.6;color:var(--e-ink-2);background:var(--e-ivory);border-left:3px solid var(--e-zari);border-radius:6px;padding:10px 14px;margin:12px 0}
.sc-list--dot li::before{content:"";width:8px;height:8px;top:20px;left:10px;border:0;background:var(--e-zari);transform:rotate(45deg);border-radius:1px}
.sc-list--core b{font-size:1rem!important}
.sc-term{all:unset;cursor:pointer;color:inherit;font:inherit;border-bottom:1px dotted var(--e-garnet);text-decoration:none}
.sc-term:hover{color:var(--e-garnet)}
.sc-term:focus-visible{outline:2px solid var(--e-peacock);outline-offset:2px;border-radius:2px}
.sc-term[aria-expanded="true"]{color:var(--e-garnet);border-bottom-style:solid}
.sc-def{display:block;margin:6px 0 8px;padding:8px 12px;background:var(--e-ivory);border-radius:6px;font:400 .86rem/1.55 var(--e-text);color:var(--e-ink-2);font-style:normal;letter-spacing:0;text-transform:none}
.sc-def[hidden]{display:none}
.sc-list b .sc-def{font-weight:400}

/* ---------- Buyer's Field Guide: handloom premium ---------- */
.fg-loom{border-left:3px solid var(--e-zari)}
.fg-loom-grid{display:grid;grid-template-columns:1fr 1fr;gap:clamp(16px,3vw,36px)}
.fg-loom-grid p{font-size:.95rem;line-height:1.7;color:var(--e-ink-2);margin:0 0 10px}
@media (max-width:760px){.fg-loom-grid{grid-template-columns:1fr}}
.rescue-loom-note{font-size:.88rem;line-height:1.6;color:var(--e-ink-2);background:var(--e-ivory);border-radius:8px;padding:10px 14px;margin:12px 0}

/* ---------- Hall of Fame: editable names (SA-04) ---------- */
.hf-title-row{display:flex;align-items:baseline;gap:12px;flex-wrap:wrap}
.hf-title-row h3{margin:.1em 0 .2em;overflow-wrap:anywhere;min-width:0}
.hf-rename{font-size:.78rem!important;white-space:nowrap}
.hf-rename-form{display:flex;gap:8px;flex-wrap:wrap;align-items:center;margin:6px 0 8px}
.hf-rename-form input{flex:1 1 200px;min-width:0;font:inherit;font-size:1rem;padding:9px 12px;border:1px solid var(--e-line-2);border-radius:8px;background:var(--e-card);color:var(--e-ink)}
.hf-rename-form .e-btn{min-height:38px;padding:0 14px}

/* ---------- Hall of Fame: regal burgundy (E15.2) ----------
   Oxblood foundation, warm ivory text, antique-gold ornament and tonal burgundy surfaces replace the
   near-black recognition panel. The same palette is used by the recognition PDF. */
.hf-page{--hf-ox:#4A1522;--hf-ox-2:#5C1D2C;--hf-ox-3:#76293C;--hf-ivory:#F4EADB;--hf-ivory-2:#E3D3BF;--hf-gold:#C9A961;--hf-gold-2:#A8823A;--hf-wash:#F6ECE8}
.hf-page .hf-score.e-night{background:radial-gradient(120% 90% at 85% 0%,var(--hf-ox-3) 0%,var(--hf-ox-2) 38%,var(--hf-ox) 100%)!important;color:var(--hf-ivory);position:relative;border:1px solid rgba(201,169,97,.45);box-shadow:inset 0 0 0 6px var(--hf-ox),inset 0 0 0 7px rgba(201,169,97,.55),0 18px 40px rgba(74,21,34,.22)}
.hf-page .hf-score.e-night::before,.hf-page .hf-score.e-night::after{content:"";position:absolute;width:18px;height:18px;border:1px solid var(--hf-gold);transform:rotate(45deg);background:var(--hf-ox);top:-10px;left:50%;margin-left:-9px}
.hf-page .hf-score.e-night::after{top:auto;bottom:-10px}
.hf-page .hf-score .eyebrow{color:var(--hf-gold)!important}
.hf-page .hf-title{color:var(--hf-ivory)}
.hf-page .hf-points,.hf-page .hf-next{color:var(--hf-gold)}
.hf-page .hf-line{color:var(--hf-ivory-2)}
.hf-page .hf-break{border-top-color:rgba(201,169,97,.35)}
.hf-page .hf-break li{color:var(--hf-ivory);border-bottom-color:rgba(201,169,97,.18)}
.hf-page .hf-break b{color:var(--hf-ivory)}
/* the panoramic band sits on an oxblood mat with a gold hairline */
.hf-page .hf-hero-photo img{box-shadow:0 0 0 1px rgba(201,169,97,.6),0 0 0 8px var(--hf-ox-2),0 0 0 9px rgba(201,169,97,.5)}
.hf-page .hf-hero-photo{padding:9px}
/* masterwork cards: a tonal burgundy wash with gold edge */
.hf-page .hf-card.is-master{background:linear-gradient(180deg,var(--hf-wash),#FFFDF9 70%);border-color:var(--hf-gold-2);box-shadow:0 0 0 1px var(--hf-gold-2)}
.hf-page .hf-card.is-master .eyebrow{color:var(--hf-ox-3)!important}
.hf-page .hf-pts{color:var(--hf-ox-3)}
/* recognition levels: an ascending ladder of burgundy tints */
.hf-page .hf-levels li{background:var(--hf-wash);border:1px solid #EAD7CF}
.hf-page .hf-levels li:nth-child(3){background:#EBD3D3}
.hf-page .hf-levels li:nth-child(4){background:var(--hf-ox-2);border-color:var(--hf-gold-2)}
.hf-page .hf-levels li:nth-child(4) b{color:var(--hf-ivory)}
.hf-page .hf-levels li:nth-child(4) span{color:var(--hf-ivory-2)}
.hf-page .hf-table td:nth-child(2){color:var(--hf-ox-3)}

/* ---------- Husband's Rescue Kit: gift-card photographs ----------
   Each idea shows its full-length figure in a 3:4 portrait frame anchored at the top of the card, with
   headroom kept (object-position near the top) — no tiny floating images, no cut-off heads. */
.rescue-picks .rescue-pick-art{display:flex;flex-direction:column;justify-content:flex-start;align-self:stretch;min-height:0!important;height:auto!important;background:#f1e7db;padding:0}
.rescue-picks .rescue-pick-art img{width:100%!important;height:auto!important;aspect-ratio:3/4;object-fit:cover!important;object-position:50% 8%!important;background:#f1e7db}
.rescue-picks .rescue-featured .rescue-pick-art img{aspect-ratio:4/5}
@media (max-width:580px){.rescue-picks .rescue-pick-art img,.rescue-picks .rescue-featured .rescue-pick-art img{aspect-ratio:3/4}}
@media (max-width:355px){.rescue-picks .rescue-pick-art img{aspect-ratio:4/5;max-height:300px}}

/* Rescue Kit — “A few colours worth exploring”: a balanced grid instead of a single stacked column. */
#rescue-colour-swatches.rescue-colour-suggestions{display:block!important;margin:18px 0 6px!important}
#rescue-colour-swatches .rescue-colours-inline{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr));gap:clamp(14px,2vw,22px) clamp(14px,2vw,24px);margin:0}
#rescue-colour-swatches .rescue-colour-idea{display:flex!important;flex-direction:column;align-items:stretch;gap:8px;width:auto!important;padding:0!important;border:0!important;background:none!important;border-radius:0;white-space:normal}
#rescue-colour-swatches .rescue-colour-idea i{display:block;width:100%!important;height:auto!important;aspect-ratio:16/5;border-radius:10px!important;border:1px solid rgba(0,0,0,.1)!important;box-shadow:inset 0 0 0 1px rgba(255,255,255,.18),0 6px 14px rgba(31,25,23,.08)}
#rescue-colour-swatches .rescue-colour-idea small{font:600 .82rem/1.3 var(--e-text,Inter,sans-serif)!important;color:#553d3c;text-align:left}
@media (max-width:760px){#rescue-colour-swatches .rescue-colours-inline{grid-template-columns:repeat(3,minmax(0,1fr))}#rescue-colour-swatches .rescue-colour-idea i{aspect-ratio:4/3}}
@media (max-width:480px){#rescue-colour-swatches .rescue-colours-inline{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}#rescue-colour-swatches .rescue-colour-idea i{aspect-ratio:16/9}#rescue-colour-swatches .rescue-colour-idea small{font-size:.76rem!important}}
@media (max-width:640px){.hf-page .hf-hero-photo{padding:6px}.hf-page .hf-hero-photo img{box-shadow:0 0 0 1px rgba(201,169,97,.6),0 0 0 5px var(--hf-ox-2),0 0 0 6px rgba(201,169,97,.5)}}
