/* ================================================================
   ai-studio-v2.css  —  1:1 editorial card layout
   Loads after ai-studio.css; later load order wins on equal
   specificity. Image is absolutely positioned so it fills the
   card via height:100% without affecting grid row sizing.
   ================================================================ */

/* ── HERO: compact ───────────────────────────────────────────── */
.abs-hero {
  padding: calc(var(--header-h) + 56px) 0 60px;
}
.abs-hero h1 {
  font-size: clamp(36px, 4.8vw, 54px);
  line-height: 1.08;
  margin: 10px 0 20px;
}
.abs-hero-desc {
  font-size: 17px;
  color: rgba(248,242,234,0.75);
  line-height: 1.72;
  margin-bottom: 28px;
}

/* ── SUBNAV: 56px height ─────────────────────────────────────── */
.abs-subnav {
  height: 56px;
  align-items: stretch;
}
.abs-subnav-link {
  display: flex;
  align-items: center;
  padding: 0 22px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
}

/* ── CATEGORY HEADINGS ───────────────────────────────────────── */
.abs-category-heading {
  padding: 72px 24px 44px;
}
.abs-category-heading h2 {
  font-size: clamp(30px, 3.8vw, 40px);
}

/* ── PERSONALISE PILLS ───────────────────────────────────────── */
.personalise-choices {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}
.personalise-choice {
  min-height: 44px;
  padding: 10px 20px;
  font-size: 14px;
  font-family: 'Manrope', sans-serif;
  font-weight: 500;
  border: 1px solid rgba(185,133,69,0.28);
  background: transparent;
  color: rgba(248,242,234,0.72);
  border-radius: 2px;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}
.personalise-choice:hover,
.personalise-choice.active,
.personalise-choice.selected {
  border-color: var(--champagne);
  color: var(--champagne);
  background: rgba(210,175,120,0.08);
}

/* ════════════════════════════════════════════════════════════════
   FEATURE CARD SYSTEM  —  1:1 equal columns
   The image is position:absolute so it fills 50% × 100% of the
   card without participating in grid row sizing.  Content panels
   (.abs-feat-header + .abs-feat-body) live in the other column
   and determine the card height through normal flow.
   ════════════════════════════════════════════════════════════════ */

/* Card wrapper */
.abs-feature {
  display: grid;
  grid-template-columns: 1fr 1fr;       /* equal 50 / 50 columns */
  grid-template-rows: auto 1fr;
  height: 580px;                         /* explicit — makes 1fr resolve */
  max-width: 1200px;
  width: calc(100% - 48px);
  margin: 0 auto 44px;
  background: var(--espresso);
  border: 1px solid rgba(185,133,69,0.18);
  border-radius: 2px;
  overflow: hidden;
  position: relative;                    /* containing block for abs image */
}

/* Neutralise the RTL column-swap from base css */
.abs-feature.img-right,
.abs-feature.img-right > * { direction: ltr; }

/* ── IMAGE: fills LEFT 50 % of card, height = full card ──────── */
.abs-feature .abs-feature-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 50%;
  height: 100%;
  overflow: hidden;
}
.abs-feature .abs-feature-img img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.65s ease;
}
.abs-feature:hover .abs-feature-img img { transform: scale(1.04); }

/* img-right: image on the RIGHT */
.abs-feature.img-right .abs-feature-img {
  left: 50%;
  right: 0;
  width: 50%;
}

/* ── CONTENT: in-flow, RIGHT column (default) ────────────────── */
.abs-feat-header {
  grid-column: 2;
  grid-row: 1;
  padding: 44px 52px 0;
  display: flex;
  flex-direction: column;
  background: var(--espresso);
}
.abs-feat-body {
  grid-column: 2;
  grid-row: 2;
  padding: 16px 52px 44px;
  display: flex;
  flex-direction: column;
  background: var(--espresso);
  overflow: hidden;
}

/* img-right: content moves to LEFT column */
.abs-feature.img-right .abs-feat-header { grid-column: 1; }
.abs-feature.img-right .abs-feat-body   { grid-column: 1; }

/* ── FEATURE NUMBER ──────────────────────────────────────────── */
.abs-feature-num {
  font-family: 'Cormorant Garamond', serif;
  font-size: 52px;
  font-weight: 300;
  color: rgba(185,133,69,0.45);
  line-height: 1;
  display: block;
  margin-bottom: 10px;
  letter-spacing: 0.04em;
}

/* ── CATEGORY TAG + gold rule ────────────────────────────────── */
.abs-feature-tag {
  display: block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--champagne);
  border: none;
  padding: 0;
  border-radius: 0;
  margin-bottom: 0;
  background: none;
}
.abs-feature-tag::after {
  content: '';
  display: block;
  width: 28px;
  height: 1px;
  background: rgba(185,133,69,0.45);
  margin: 9px 0 12px;
}

/* ── FEATURE TITLE ───────────────────────────────────────────── */
.abs-feature h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(24px, 2.5vw, 32px);
  font-weight: 400;
  color: var(--ivory);
  margin: 0;
  line-height: 1.15;
}
.abs-feature h3 em { color: var(--champagne); font-style: italic; }

/* ── DESCRIPTION ─────────────────────────────────────────────── */
.abs-feature-desc {
  color: rgba(248,242,234,0.84);
  font-size: 16px;
  line-height: 1.72;
  margin-bottom: 20px;
  max-width: 100%;
}

/* ── DISCLAIMER ──────────────────────────────────────────────── */
.abs-feature-disclaimer {
  font-size: 13px;
  line-height: 1.65;
  margin-top: 12px;
  color: rgba(248,242,234,0.42);
}

/* ── UPLOAD ZONE ─────────────────────────────────────────────── */
.outfit-upload-zone {
  max-width: 100%;
  min-height: 120px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  border: 1px dashed rgba(185,133,69,0.30);
  border-radius: 2px;
  background: rgba(185,133,69,0.04);
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}
.outfit-upload-zone:hover,
.outfit-upload-zone.drag-over {
  border-color: rgba(185,133,69,0.55);
  background: rgba(185,133,69,0.07);
}
.outfit-upload-zone h4 {
  font-size: 15px;
  font-family: 'Manrope', sans-serif;
  font-weight: 600;
  color: var(--ivory);
  margin: 10px 0 4px;
}
.outfit-upload-zone p {
  font-size: 13px;
  line-height: 1.5;
  color: rgba(248,242,234,0.50);
  text-align: center;
  margin: 0;
}
.outfit-privacy-note {
  font-size: 12px;
  line-height: 1.6;
  margin-top: 10px;
  color: rgba(248,242,234,0.38);
}
.upload-error { font-size: 13px; }

/* ── PORTFOLIO FINDER CONTROLS ───────────────────────────────── */
.abs-pf-search {
  display: flex;
  gap: 0;
  border: 1px solid rgba(185,133,69,0.28);
  border-radius: 2px;
  overflow: hidden;
}
.abs-pf-input {
  flex: 1;
  height: 48px;
  font-size: 15px;
  background: rgba(255,255,255,0.04);
  border: none;
  padding: 0 16px;
  color: var(--ivory);
  font-family: 'Manrope', sans-serif;
  outline: none;
}
.abs-pf-input::placeholder { color: rgba(248,242,234,0.30); }
.abs-pf-input:focus { background: rgba(255,255,255,0.07); }
.abs-pf-btn {
  height: 48px;
  padding: 0 24px;
  background: rgba(185,133,69,0.18);
  border: none;
  border-left: 1px solid rgba(185,133,69,0.28);
  color: var(--champagne);
  font-family: 'Manrope', sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  white-space: nowrap;
}
.abs-pf-btn:hover { background: rgba(185,133,69,0.32); color: var(--ivory); }
.abs-pf-pill { font-size: 12px; padding: 7px 14px; border-radius: 40px; }

/* ── CURATOR / ADVISOR PANELS ────────────────────────────────── */
#curator-panel,
#advisor-panel {
  max-width: 1200px;
  width: calc(100% - 48px);
  margin: 0 auto 44px;
  border: 1px solid rgba(185,133,69,0.18);
  border-top: none;
  border-radius: 0 0 2px 2px;
}

/* ── RESPONSIVE: 1024–1100 ───────────────────────────────────── */
@media (max-width: 1100px) {
  .abs-feature    { height: 540px; margin-bottom: 36px; }
  .abs-feat-header, .abs-feature.img-right .abs-feat-header { padding: 36px 44px 0; }
  .abs-feat-body,  .abs-feature.img-right .abs-feat-body   { padding: 14px 44px 36px; }
  .abs-feature-num { font-size: 44px; }
  #curator-panel, #advisor-panel { margin-bottom: 36px; }
}
@media (max-width: 1024px) {
  .abs-feature    { height: 500px; width: calc(100% - 40px); }
  .abs-feat-header, .abs-feature.img-right .abs-feat-header { padding: 28px 36px 0; }
  .abs-feat-body,  .abs-feature.img-right .abs-feat-body   { padding: 12px 36px 28px; }
  #curator-panel, #advisor-panel { width: calc(100% - 40px); }
}

/* ── RESPONSIVE: mobile < 768 ────────────────────────────────── */
@media (max-width: 768px) {
  /* Switch to flex column */
  .abs-feature {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 100%;
    height: auto;
    min-height: 0;
    margin-bottom: 48px;
    border-left: none;
    border-right: none;
    border-radius: 0;
  }

  /* Image back to normal flow */
  .abs-feature .abs-feature-img,
  .abs-feature.img-right .abs-feature-img {
    position: relative;
    top: auto; left: auto; right: auto;
    width: 100%;
    height: 340px;
    order: 2;
  }

  /* Mobile order: header → image → body */
  .abs-feat-header { order: 1; padding: 24px 20px 16px; grid-column: unset; grid-row: unset; }
  .abs-feat-body   { order: 3; padding: 20px 20px 28px; grid-column: unset; grid-row: unset; overflow: visible; }
  .abs-feature.img-right .abs-feat-header { grid-column: unset; }
  .abs-feature.img-right .abs-feat-body   { grid-column: unset; }

  .abs-feature-num  { font-size: 40px; margin-bottom: 8px; }
  .abs-feature h3   { font-size: clamp(22px, 6vw, 28px); }
  .abs-feature-desc { max-width: 100%; }
  .outfit-upload-zone { max-width: 100%; }

  #curator-panel,
  #advisor-panel {
    width: 100%;
    max-width: 100%;
    margin: 0 0 48px;
    border-left: none;
    border-right: none;
    border-radius: 0;
  }

  .abs-hero { padding: calc(var(--header-h) + 40px) 0 44px; }
  .abs-category-heading { padding: 52px 20px 36px; }
}

@media (max-width: 480px) {
  .abs-feat-header { padding: 20px 16px 14px; }
  .abs-feat-body   { padding: 16px 16px 24px; }
  .abs-feature .abs-feature-img { height: 300px; }
  .abs-feature { margin-bottom: 40px; }
  #curator-panel, #advisor-panel { margin-bottom: 40px; }
}
