/* =========================================================================
   MWI member panel (2026-07-28)
   -------------------------------------------------------------------------
   Ports the .panel-* rules from the source project's css/style.css onto the
   panel shortcode's markup: 260px espresso sidebar, cloud cards, gold
   reference tags, and the signature divider between sections.

   Everything is scoped under .mwi-panel. The page hosting it is a normal
   Elementor page, so its container width, padding and background stay
   editable; this file only styles what the shortcode outputs.
   ========================================================================= */

.mwi-panel{
  --mwi-ivory:#F6F1E7;
  --mwi-cloud:#FBF8F3;
  --mwi-espresso:#241A12;
  --mwi-mocha:#9C7256;
  --mwi-mocha-deep:#7C5A41;
  --mwi-gold:#B9924E;
  --mwi-ink:#2B2118;
  --mwi-ink-soft:#6E6152;
  --mwi-ink-faint:#9C9082;
  --mwi-line:rgba(36,26,18,.12);
  --mwi-sage:#7C8B6F;
  --mwi-error:#A8443A;

  display:grid;
  grid-template-columns:260px 1fr;
  min-height:calc(100vh - 92px);
  font-family:'Manrope',system-ui,sans-serif;
  color:var(--mwi-ink);
  text-align:left;
}
@media (max-width:820px){
  .mwi-panel{ grid-template-columns:1fr; min-height:0; }
}

/* ---- Sidebar ---- */
.mwi-p-side{
  background:var(--mwi-espresso);
  color:var(--mwi-ivory);
  padding:34px 26px;
}
.mwi-p-logo{ display:block; margin-bottom:50px; }
.mwi-p-logo img{ display:block; height:auto; max-width:100%; filter:brightness(0) invert(1); opacity:.92; }
@media (max-width:820px){
  .mwi-p-logo{ margin-bottom:24px; }
}

.mwi-p-nav{ display:flex; flex-direction:column; gap:2px; }
.mwi-p-nav a{
  display:flex; align-items:center; gap:12px;
  padding:13px 10px;
  font-size:.85rem; letter-spacing:.03em;
  color:rgba(251,248,243,.7);
  text-decoration:none; border-radius:3px;
  transition:color .25s ease, background .25s ease;
}
.mwi-p-nav a:hover,
.mwi-p-nav a.is-active{ color:var(--mwi-ivory); background:rgba(251,248,243,.06); }
@media (max-width:820px){
  .mwi-p-nav{ flex-direction:row; flex-wrap:wrap; gap:4px; }
  .mwi-p-nav a{ padding:10px 12px; font-size:.8rem; }
}

/* ---- Main column ---- */
.mwi-p-main{ padding:clamp(30px,5vw,64px); background:var(--mwi-ivory); }

/* Jumping to a section from the sidebar must not tuck its heading under the
   sticky site header, so each section reserves that height above itself. */
.mwi-p-main section{ scroll-margin-top:112px; }
@media (max-width:767px){
  .mwi-p-main section{ scroll-margin-top:74px; }
}

.mwi-p-eyebrow{
  display:inline-flex; align-items:center; gap:10px;
  font-size:.72rem; font-weight:700; letter-spacing:.22em; text-transform:uppercase;
  color:var(--mwi-mocha);
}
.mwi-p-eyebrow::before{
  content:''; width:22px; height:1px; background:var(--mwi-gold); display:inline-block; flex:none;
}

.mwi-panel h2{
  font-family:'Fraunces',Georgia,serif;
  font-size:clamp(1.5rem,3vw,2rem); font-weight:400; color:var(--mwi-espresso);
  margin:14px 0 26px; line-height:1.2;
}
.mwi-p-h3{
  font-family:'Fraunces',Georgia,serif;
  font-size:1.15rem; font-weight:400; color:var(--mwi-espresso);
  margin:40px 0 16px;
}

.mwi-p-card{
  background:var(--mwi-cloud);
  border:1px solid var(--mwi-line);
  padding:clamp(24px,3vw,36px);
  margin-bottom:26px;
}
.mwi-p-card p{ margin:0; line-height:1.7; color:var(--mwi-ink-soft); }
.mwi-p-empty{ color:var(--mwi-ink-faint); }

/* ---- The signature divider between sections ---- */
.mwi-p-divider{
  display:flex; align-items:center; justify-content:center; gap:14px;
  color:var(--mwi-gold); margin:50px 0;
}
.mwi-p-divider span{ height:1px; flex:1; max-width:220px; background:linear-gradient(90deg,transparent,var(--mwi-line)); }
.mwi-p-divider span:last-child{ background:linear-gradient(270deg,transparent,var(--mwi-line)); }
.mwi-p-divider svg{ width:16px; height:16px; flex:none; }

/* ---- Forms ---- */
.mwi-p-row{ display:grid; grid-template-columns:1fr 1fr; gap:22px; }
@media (max-width:600px){ .mwi-p-row{ grid-template-columns:1fr; } }

.mwi-p-field{ margin-bottom:22px; }
.mwi-p-field label{
  display:block; font-size:.72rem; letter-spacing:.1em; text-transform:uppercase;
  color:var(--mwi-ink-soft); margin-bottom:9px;
}
.mwi-p-field input,
.mwi-p-field select,
.mwi-p-field textarea{
  width:100%;
  background:#FFFDF9;
  border:none;
  border-bottom:1px solid rgba(36,26,18,.30);
  border-radius:2px 2px 0 0;
  padding:13px 14px;
  color:var(--mwi-ink);
  font-family:inherit; font-size:.95rem; line-height:1.4;
  transition:border-color .25s ease, box-shadow .25s ease;
}
.mwi-p-field textarea{ resize:vertical; min-height:110px; }
.mwi-p-field input:hover,
.mwi-p-field select:hover,
.mwi-p-field textarea:hover{ border-bottom-color:rgba(36,26,18,.45); }
.mwi-p-field input:focus,
.mwi-p-field select:focus,
.mwi-p-field textarea:focus{
  outline:none;
  border-bottom-color:var(--mwi-mocha);
  box-shadow:inset 0 -1px 0 0 var(--mwi-mocha);
}
.mwi-p-field input:disabled{
  background:rgba(36,26,18,.03); color:var(--mwi-ink-faint); cursor:not-allowed;
  border-bottom-style:dashed;
}

/* ---- Buttons ---- */
.mwi-p-btn{
  display:inline-flex; align-items:center; justify-content:center; gap:10px;
  padding:15px 30px;
  background:var(--mwi-espresso); color:var(--mwi-ivory);
  border:1px solid var(--mwi-espresso); border-radius:0;
  font-family:inherit; font-size:.78rem; font-weight:600;
  letter-spacing:.14em; text-transform:uppercase;
  text-decoration:none; cursor:pointer;
  transition:background .3s ease, box-shadow .3s ease, color .3s ease;
}
.mwi-p-btn:hover{
  background:var(--mwi-mocha-deep); border-color:var(--mwi-mocha-deep);
  box-shadow:0 14px 28px -12px rgba(36,26,18,.5); color:var(--mwi-ivory);
}
.mwi-p-btn--gold{ background:var(--mwi-gold); border-color:var(--mwi-gold); color:var(--mwi-espresso); }
.mwi-p-btn--gold:hover{
  background:var(--mwi-mocha-deep); border-color:var(--mwi-mocha-deep); color:var(--mwi-ivory);
  box-shadow:0 14px 30px -10px rgba(185,146,78,.55);
}

/* ---- Order history ---- */
.mwi-p-order{
  border-bottom:1px solid var(--mwi-line);
  padding:18px 0;
  display:flex; justify-content:space-between; align-items:center;
  gap:14px; flex-wrap:wrap;
}
.mwi-p-order:first-child{ padding-top:0; }
.mwi-p-order:last-child{ border-bottom:none; padding-bottom:0; }
.mwi-p-order strong{ font-weight:600; color:var(--mwi-ink); }
.mwi-p-order-meta{ font-size:.82rem; color:var(--mwi-ink-faint); }

/* Marks a row that arrived from a public site form rather than the panel's
   own order box, so the member can tell the two apart at a glance. */
.mwi-p-source{
  display:inline-block; margin-left:8px;
  font-size:.62rem; letter-spacing:.08em; text-transform:uppercase;
  padding:2px 8px; border-radius:20px;
  background:rgba(156,114,86,.10); color:var(--mwi-mocha-deep);
  vertical-align:middle;
}
.mwi-p-tag{
  font-size:.66rem; letter-spacing:.1em; text-transform:uppercase;
  padding:4px 10px; border:1px solid var(--mwi-gold);
  color:var(--mwi-mocha-deep); border-radius:20px; white-space:nowrap;
}

/* ---- Messages ---- */
.mwi-p-msg{
  font-size:.85rem; padding:12px 14px; margin:0 0 22px;
  background:var(--mwi-cloud); border-left:2px solid var(--mwi-mocha);
  color:var(--mwi-ink-soft); line-height:1.5;
}
.mwi-p-msg--error{ border-left-color:var(--mwi-error); color:var(--mwi-error); }
.mwi-p-msg--ok{ border-left-color:var(--mwi-sage); }

/* ---- Signed-out fallback ---- */
.mwi-panel-guard{
  text-align:center; padding:clamp(60px,12vh,120px) 22px;
  font-family:'Manrope',system-ui,sans-serif; color:var(--mwi-ink-soft,#6E6152);
}
.mwi-panel-guard p{ margin:0 0 22px; }
