/* ==========================================================================
   WeddingHub — dashboard.css
   Royal Premium dashboard (index.html only). Every rule is scoped to the
   .hub-* / .widget-* classes rendered by app.js, so the /card and /menu
   pages (which load style.css + their own sheet, not this one) are not
   affected. No tenant-specific value is ever hardcoded here.
   ========================================================================== */

.wh-ico { width: 1em; height: 1em; flex: none; display: block; }

/* --------------------------------------------------------------------
   HERO — 3-column grid: brand | centred motto | sunset panel
   -------------------------------------------------------------------- */
.hub-hero {
  position: relative;
  z-index: 5;                       /* lets the Welcome dropdown overlay the page */
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: center;
  gap: var(--space-4);
  min-height: 132px;
  padding: 18px clamp(20px, 4vw, 56px);
  color: var(--white);
  background: linear-gradient(105deg, #4f0a1d 0%, #6c0c26 46%, #7d0d2a 100%);
}

/* clipped decoration layer (the hero itself is NOT overflow:hidden) */
.hub-hero-bg {
  position: absolute; inset: 0;
  overflow: hidden;
  pointer-events: none;
  background:
    radial-gradient(circle at 10% 20%, rgba(212,175,55,.20), transparent 42%),
    radial-gradient(circle at 46% 130%, rgba(212,175,55,.16), transparent 55%);
}
.hub-hero-bg::before {              /* mandala-style rings, top-left corner */
  content: '';
  position: absolute; left: -46px; top: -46px;
  width: 190px; height: 190px; border-radius: 50%;
  background: repeating-radial-gradient(circle at center, transparent 0 9px, rgba(212,175,55,.20) 9px 10px);
  -webkit-mask-image: radial-gradient(circle, #000 30%, transparent 72%);
          mask-image: radial-gradient(circle, #000 30%, transparent 72%);
}

.hub-hero-left, .hub-hero-center { position: relative; z-index: 2; min-width: 0; }
.hub-hero-left { grid-column: 1; }

.hub-brand { display: flex; align-items: center; gap: 16px; }

.hub-crest {
  position: relative;
  flex: none;
  width: 66px; height: 66px;
  border-radius: 50%;
  display: grid; place-items: center;
  color: var(--gold-light);
  border: 2px solid var(--gold);
  box-shadow: 0 0 0 4px rgba(212,175,55,.12), inset 0 0 0 3px rgba(74,0,20,.55);
  background: radial-gradient(circle at 35% 25%, rgba(212,175,55,.28), transparent 70%);
}
.hub-crest b {
  font: 600 32px/1 var(--font-display);
  margin-top: 8px;
}
.hub-crown {
  position: absolute; top: 9px; left: 50%;
  width: 22px; height: 11px;
  transform: translateX(-50%);
}

.hub-brand-name {
  margin: 0;
  color: #fff3dc;
  font-size: clamp(26px, 2.8vw, 40px);
  line-height: 1.05;
  letter-spacing: .2px;
}
.hub-brand-name span { color: var(--gold-light); }
.hub-brand-tagline {
  margin: 6px 0 0;
  font-size: 11px;
  letter-spacing: 3.5px;
  text-transform: uppercase;
  color: var(--gold-light);
}

/* motto sits dead-centre of the middle column */
.hub-hero-center {
  grid-column: 2;
  text-align: center;
  padding: 0 var(--space-2);
}
.hub-hero-center::before {          /* thin gold divider between brand and motto */
  content: '';
  position: absolute; left: calc(var(--space-4) / -2); top: 50%;
  width: 1px; height: 64px;
  transform: translateY(-50%);
  background: linear-gradient(transparent, rgba(232,206,122,.6), transparent);
}
.hub-plan-line {
  margin: 0;
  font: italic 500 clamp(18px, 1.9vw, 25px)/1.2 var(--font-display);
  color: #fff3dc;
  white-space: nowrap;
}
.hub-plan-line .dot { color: var(--gold); font-style: normal; font-size: .6em; margin: 0 9px; vertical-align: .18em; }

.hub-orn {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  max-width: 250px; margin: 8px auto;
  color: var(--gold); font-size: 8px;
}
.hub-orn::before, .hub-orn::after {
  content: ''; flex: 1; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(212,175,55,.75));
}
.hub-orn::after { transform: scaleX(-1); }

.hub-hero-desc { margin: 0; font-size: 13px; color: rgba(255,255,255,.86); }
.hub-couple-line {
  margin: 6px 0 0;
  font-size: 12.5px; letter-spacing: .5px;
  color: var(--gold-light);
}

/* Sunset mandap panel: bleeds to the hero's right edge; curved left edge
   with a tapering gold rim. */
.hub-hero-art {
  position: absolute; z-index: 1;
  top: 0; right: 0; bottom: 0;
  width: clamp(300px, 34%, 520px);
  overflow: hidden;
  border-left: 2px solid rgba(212,175,55,.9);
  border-radius: 130px 0 0 0 / 100% 0 0 0;
  background: #c26f7a;
}
.hub-hero-art svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }

/* Welcome / profile control */
.hub-welcome {
  position: absolute; z-index: 6;
  top: 16px; right: clamp(16px, 2.4vw, 36px);
}
.hub-welcome-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px 6px 6px;
  font-size: 13px; font-weight: 500;
  color: var(--white);
  background: rgba(74,0,20,.92);
  border: 1px solid rgba(232,206,122,.55);
  border-radius: 999px;
  box-shadow: 0 4px 14px rgba(43,24,16,.28);
}
.hub-welcome-btn:hover { background: rgba(92,0,22,.98); }
.hub-welcome-avatar {
  width: 26px; height: 26px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--gold-light); color: var(--maroon-dark);
  font-size: 15px;
}
.hub-welcome-btn .caret { display: inline-flex; font-size: 13px; opacity: .85; }
.hub-welcome .dropdown-menu { color: var(--ink); }

/* --------------------------------------------------------------------
   INFO STRIP
   -------------------------------------------------------------------- */
.hub-info-strip {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: var(--space-2) var(--space-4);
  min-height: 56px;
  padding: 10px clamp(20px, 4vw, 56px);
  background: var(--ivory);
  border-bottom: 1px solid var(--border);
  font-size: 13.5px;
  color: #5b4a44;
}
.hub-info-left { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2) var(--space-4); }
.hub-info-item { display: inline-flex; align-items: center; gap: 8px; }
.hub-info-item .info-icon { display: inline-flex; font-size: 16px; color: var(--maroon); }
.hub-info-sep { width: 1px; height: 22px; background: #dccbb6; }
.hub-info-quote {
  font: italic 500 16px var(--font-display);
  color: var(--gold-dark);
  white-space: nowrap;
}
.hub-info-quote .leaf { color: var(--gold); margin: 0 10px; font-style: normal; }

/* --------------------------------------------------------------------
   WIDGET GRID + CARDS
   -------------------------------------------------------------------- */
.widget-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  max-width: 1320px;
  margin: 0 auto;
  padding: 20px clamp(16px, 3vw, 32px) var(--space-5);
}
.widget-card.full-width { grid-column: 1 / -1; }

.widget-card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 164px;
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  grid-template-areas:
    "icon head"
    "icon desc"
    "icon actions";
  column-gap: 18px;
  row-gap: 0;
  align-content: center;
  padding: 22px 34% 22px 22px;       /* right padding keeps text clear of the art */
  background: linear-gradient(105deg, #fffefa 0%, #fffaf2 62%, #fbf0e4 100%);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(82,38,29,.07);
  animation: rise .35s ease both;
}
@keyframes rise {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) { .widget-card { animation: none; } }

/* ornamental gold inner border + corner flourish */
.widget-card::before {
  content: '';
  position: absolute; inset: 5px; z-index: -1;
  border: 1px solid rgba(210,168,99,.33);
  border-radius: 12px;
  pointer-events: none;
}
.widget-card::after {
  content: '';
  position: absolute; left: 9px; bottom: 9px; z-index: -1;
  width: 24px; height: 24px;
  border-left: 1.5px solid rgba(212,175,55,.55);
  border-bottom: 1.5px solid rgba(212,175,55,.55);
  border-radius: 0 0 0 10px;
  pointer-events: none;
}

.widget-card > .widget-icon-medallion,
.widget-card > .widget-head,
.widget-card > .widget-desc,
.widget-card > .widget-actions { position: relative; z-index: 2; }

.widget-card .widget-icon-medallion {
  grid-area: icon;
  align-self: start;
  width: 64px; height: 64px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 30px;                   /* also sizes the line-icon (1em) */
  color: var(--gold-light);
  background: radial-gradient(circle at 35% 25%, #861b3b, var(--maroon-dark) 72%);
  border: 2px solid var(--gold);
  box-shadow: 0 0 0 4px #fff6e9, 0 0 0 5px rgba(212,175,55,.6);
}
.widget-card .widget-icon-medallion .wh-ico { width: 30px; height: 30px; stroke-width: 1.5; }

.widget-card .widget-head { grid-area: head; min-width: 0; }
.widget-card .widget-title {
  margin: 0 0 6px;
  font: 600 22px/1.2 var(--font-display);
  color: #541329;
}

.widget-card .widget-desc {
  grid-area: desc;
  margin: 0 0 14px;
  color: var(--ink-soft);
  font-size: 13.5px;
  line-height: 1.5;
}

.widget-card .widget-actions {
  grid-area: actions;
  display: flex; flex-wrap: wrap; gap: 10px;
}

/* PUBLIC / PRIVATE badge, top-right */
.widget-card > .badge-pill {
  position: absolute; z-index: 3;
  top: 14px; right: 16px;
  padding: 5px 12px;
  font-size: 10px; letter-spacing: .7px;
}

/* Action buttons (override the global .btn-pill sizing for this layout) */
.widget-card .btn-pill {
  min-height: 36px;
  padding: 0 16px;
  gap: 8px;
  font-size: 12.5px;
  font-weight: 600;
}
.widget-card .btn-pill .wh-ico { width: 15px; height: 15px; }
.widget-card .btn-open {
  color: #fff9ed;
  background: linear-gradient(100deg, #740d2e, #57091f);
  border: 1px solid #8e2843;
}
.widget-card .btn-share {
  color: #6d1830;
  background: #fffdf8;
  border: 1px solid #c98a97;
}
.widget-card .btn-share:hover { background: var(--blush); }
.widget-card .btn-pill:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

/* ---------------- Atmospheric art (fades into the card) ---------------- */
.widget-art {
  position: absolute; z-index: 0;
  top: 0; right: 0; bottom: 0;
  width: 36%;
  display: flex; align-items: center; justify-content: center;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 68% 62%, rgba(232,214,196,.95), transparent 66%),
    radial-gradient(ellipse at 92% 12%, rgba(243,201,194,.55), transparent 55%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 44%);
          mask-image: linear-gradient(90deg, transparent 0, #000 44%);
}
.widget-art::before, .widget-art::after {   /* tiny gold sparkles */
  position: absolute; color: rgba(212,175,55,.8); line-height: 1;
}
.widget-art::before { content: '✦'; top: 16%; right: 15%; font-size: 15px; }
.widget-art::after  { content: '✧'; bottom: 15%; right: 30%; font-size: 12px; }

.art-emoji {
  font-size: clamp(46px, 5vw, 68px);
  line-height: 1;
  letter-spacing: 6px;
  filter: drop-shadow(0 8px 10px rgba(92,0,22,.20));
}

.art-gift    { background: radial-gradient(ellipse at 68% 62%, rgba(232,206,122,.75), transparent 66%), radial-gradient(ellipse at 92% 10%, rgba(243,201,194,.6), transparent 55%); }
.art-menu    { background: radial-gradient(ellipse at 70% 60%, rgba(232,206,122,.7),  transparent 66%), radial-gradient(ellipse at 92% 10%, rgba(255,240,214,.9), transparent 55%); }
.art-expense { background: radial-gradient(ellipse at 68% 62%, rgba(243,201,194,.8),  transparent 66%), radial-gradient(ellipse at 92% 10%, rgba(232,206,122,.5), transparent 55%); }
.art-items   { background: radial-gradient(ellipse at 68% 62%, rgba(232,206,122,.65), transparent 66%), radial-gradient(ellipse at 92% 10%, rgba(243,201,194,.6), transparent 55%); }
.art-card    { background: radial-gradient(ellipse at 68% 62%, rgba(243,201,194,.75), transparent 66%), radial-gradient(ellipse at 92% 10%, rgba(255,240,214,.9), transparent 55%); }
.art-album   { background: radial-gradient(ellipse at 68% 62%, rgba(243,201,194,.85), transparent 66%), radial-gradient(ellipse at 92% 10%, rgba(232,206,122,.45), transparent 55%); }
.art-generic { background: radial-gradient(ellipse at 68% 62%, rgba(237,224,206,.95), transparent 66%); }

/* Invitation art: mini card monogrammed from tenant data */
.invite-mini {
  width: min(146px, 70%); aspect-ratio: 1.3;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  margin-left: 18%;
  color: #773047;
  background: #fffaf1;
  border: 1px solid #cda75e;
  outline: 1px solid rgba(205,167,94,.75); outline-offset: -7px;
  box-shadow: 0 7px 18px rgba(156,120,107,.35);
  transform: rotate(-4deg);
}
.invite-mini strong { font: 600 26px/1 var(--font-display); letter-spacing: 1px; }
.invite-mini strong i { font-style: italic; font-weight: 500; color: #b98b40; margin: 0 2px; }
.invite-mini-orn { color: #b98b40; font-size: 10px; letter-spacing: 3px; }

/* Album art: three tilted photo frames */
.art-album .ph {
  position: absolute; left: 62%; top: 50%;
  width: 62px; height: 80px; margin: -40px 0 0 -31px;
  display: grid; place-items: center;
  font-size: 20px; color: #ffe4b2;
  background: linear-gradient(145deg, #d9a98f, #7b4a45 55%, #e8c9a5);
  border: 5px solid #fff;
  box-shadow: 0 5px 13px rgba(119,86,75,.4);
}
.art-album .ph1 { transform: translate(-30px, 4px) rotate(-16deg); }
.art-album .ph2 { transform: translate(30px, 0) rotate(9deg); background: linear-gradient(145deg, #f4d6bf, #b76e65); }
.art-album .ph3 { transform: translate(0, -6px) rotate(-2deg); }

/* ---------------- Video card (full width) ---------------- */
.widget-card.full-width { min-height: 190px; padding-right: calc(min(46%, 540px) + 36px); }

.widget-visual.visual-video {
  position: absolute; z-index: 1;
  top: 14px; right: 16px; bottom: 14px;
  width: min(46%, 540px);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
  border: 1px solid rgba(182,139,76,.85);
  border-radius: 12px;
  background: radial-gradient(circle at 68% 25%, #d2a36a 0 3%, transparent 18%), linear-gradient(120deg, #24111e, #63404b 42%, #17151e);
  box-shadow: 0 8px 22px rgba(43,24,16,.25);
  color: var(--gold-light);
  pointer-events: none;
}
.visual-video img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.visual-video .visual-play {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(transparent 55%, rgba(0,0,0,.45));
}
.visual-video .visual-play span {
  width: 54px; height: 54px; padding-left: 4px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px;
  color: var(--maroon-dark);
  background: rgba(255,255,255,.94);
  box-shadow: 0 4px 18px rgba(0,0,0,.45);
}
.visual-video .vp-bar {
  position: absolute; left: 0; right: 0; bottom: 0;
  height: 24px; padding: 0 10px;
  display: flex; align-items: center; gap: 10px;
  background: rgba(19,13,18,.88);
  color: #eee; font-size: 9px;
}
.visual-video .vp-track {
  flex: 1; height: 3px; border-radius: 2px;
  background: linear-gradient(90deg, #e0143c 0 4%, rgba(255,255,255,.3) 4%);
}

/* A widget that returned an error has no actions/art — simple 2-column layout */
.widget-card.is-error {
  min-height: 0;
  padding: 22px;
  grid-template-areas:
    "icon head"
    "icon desc";
}
.widget-card.is-error .widget-desc { margin-bottom: 0; }
.widget-card.is-error > .badge-pill { top: 14px; right: 16px; }
.widget-card.is-error .state-block { align-items: flex-start; padding: 0; text-align: left; }

/* --------------------------------------------------------------------
   FOOTER
   -------------------------------------------------------------------- */
.hub-footer {
  text-align: center;
  padding: var(--space-4) var(--space-5) var(--space-6);
  color: #907c6d;
  font: italic 13px var(--font-display);
}

/* --------------------------------------------------------------------
   RESPONSIVE
   -------------------------------------------------------------------- */
@media (max-width: 1100px) {
  .widget-card { padding-right: 32%; }
  .widget-card .widget-title { font-size: 20px; }
}

@media (max-width: 900px) {
  .hub-hero { grid-template-columns: 1fr; gap: var(--space-3); padding-top: 22px; padding-bottom: 20px; }
  .hub-hero-art { display: none; }
  .hub-hero-left, .hub-hero-center { grid-column: 1; }
  .hub-hero-center { text-align: left; padding: 0; }
  .hub-hero-center::before { display: none; }
  .hub-orn { margin-left: 0; }
  .widget-grid { grid-template-columns: 1fr; gap: var(--space-3); }
  .widget-card { padding-right: 34%; }
}

@media (max-width: 640px) {
  .hub-hero { padding: 18px var(--space-4); }
  .hub-crest { width: 50px; height: 50px; }
  .hub-crest b { font-size: 24px; margin-top: 7px; }
  .hub-crown { top: 6px; width: 17px; height: 9px; }
  .hub-brand { gap: 12px; }
  .hub-brand-name { font-size: 26px; }
  .hub-brand-tagline { font-size: 9.5px; letter-spacing: 2.5px; }
  .hub-plan-line { white-space: normal; font-size: 18px; }
  .hub-welcome { top: 14px; right: var(--space-4); }
  .hub-welcome-label { display: none; }
  .hub-welcome-btn { padding-right: 8px; }

  .hub-info-strip { padding: var(--space-3) var(--space-4); }
  .hub-info-quote { display: none; }   /* keep the mobile strip compact */
  .hub-info-sep { display: none; }

  .widget-grid { padding: var(--space-3) var(--space-3) var(--space-4); }
  .widget-card,
  .widget-card.full-width {
    grid-template-columns: 48px minmax(0, 1fr);
    grid-template-areas:
      "icon head"
      "icon desc"
      "actions actions";
    column-gap: 14px;
    min-height: 0;
    padding: 18px 16px;
  }
  .widget-card.full-width { grid-template-areas: "icon head" "icon desc" "actions actions" "visual visual"; }
  .widget-card .widget-icon-medallion { width: 48px; height: 48px; }
  .widget-card .widget-icon-medallion .wh-ico { width: 24px; height: 24px; }
  .widget-card .widget-title { font-size: 19px; padding-right: 64px; }   /* clear of the badge */
  .widget-card .widget-desc { font-size: 12.5px; }
  .widget-card .widget-actions { margin-top: 2px; }
  .widget-card .widget-actions .btn-pill { flex: 1 1 auto; }
  .widget-card > .badge-pill { top: 10px; right: 10px; padding: 4px 9px; font-size: 9px; }

  .widget-art { width: 38%; opacity: .4; }
  .art-emoji { font-size: 44px; }

  .widget-visual.visual-video {
    position: relative; grid-area: visual;
    inset: auto; top: auto; right: auto; bottom: auto;
    width: 100%; height: 150px; margin-top: 14px;
  }
}

@media (max-width: 380px) {
  .widget-card .widget-actions { flex-direction: column; align-items: stretch; }
}

/* ==========================================================================
   ROYAL FINISH — refinement layer (jali texture, gold foil, depth, hover)
   ========================================================================== */
body { background:
  radial-gradient(circle at 0 100%, rgba(212,175,55,.10), transparent 32%),
  radial-gradient(circle at 100% 100%, rgba(128,0,32,.05), transparent 30%),
  radial-gradient(circle at 1px 1px, rgba(169,134,43,.09) 1px, transparent 1.4px) 0 0 / 22px 22px,
  var(--cream); }

.hub-hero-bg {
  background:
    radial-gradient(circle at 10% 20%, rgba(212,175,55,.22), transparent 42%),
    radial-gradient(circle at 46% 130%, rgba(212,175,55,.16), transparent 55%),
    radial-gradient(circle at 1px 1px, rgba(232,206,122,.13) 1px, transparent 1.5px) 0 0 / 20px 20px;
}
.hub-hero::after { content:''; position:absolute; left:0; right:0; bottom:0; height:2px; z-index:3; pointer-events:none;
  background: linear-gradient(90deg, transparent, #d4af37 18%, #f3dc8e 50%, #d4af37 82%, transparent); }

.hub-brand-name { text-shadow: 0 2px 10px rgba(0,0,0,.28); }
.hub-brand-name span { background: linear-gradient(180deg,#fbeaa6,#d4af37 60%,#b8902a); -webkit-background-clip:text; background-clip:text; color:transparent; -webkit-text-fill-color:transparent; }
.hub-crest { box-shadow: 0 0 0 4px rgba(212,175,55,.14), 0 0 0 5px rgba(232,206,122,.5), inset 0 0 0 3px rgba(74,0,20,.6), 0 6px 18px rgba(0,0,0,.35); }
.hub-crest b { background: linear-gradient(180deg,#fbeaa6,#c9a23a); -webkit-background-clip:text; background-clip:text; -webkit-text-fill-color:transparent; }

.hub-info-strip { background: linear-gradient(180deg,#fffaf2,#fbf1e3); box-shadow: 0 6px 16px -12px rgba(82,38,29,.35); }

.widget-card {
  box-shadow: 0 1px 0 rgba(255,255,255,.9) inset, 0 10px 26px -10px rgba(82,38,29,.22), 0 2px 6px rgba(82,38,29,.05);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.widget-card:hover { transform: translateY(-3px); border-color: #dcbf85;
  box-shadow: 0 1px 0 rgba(255,255,255,.9) inset, 0 18px 34px -12px rgba(128,0,32,.28), 0 3px 8px rgba(82,38,29,.06); }
.widget-card::before { border-color: rgba(201,162,58,.45); }
.widget-card > .widget-head::after { content:''; display:block; width:38px; height:2px; margin:0 0 8px; border-radius:2px;
  background: linear-gradient(90deg,#c9a23a,transparent); }
.widget-card .widget-title { margin-bottom: 6px; letter-spacing:.1px; }
.widget-card .widget-icon-medallion { box-shadow: 0 0 0 4px #fff6e9, 0 0 0 5px rgba(201,162,58,.75), 0 8px 16px -4px rgba(92,0,22,.4); }
.widget-card .widget-icon-medallion .wh-ico { filter: drop-shadow(0 1px 2px rgba(0,0,0,.35)); }

.widget-card > .badge-pill { font-weight:700; box-shadow: 0 2px 6px rgba(82,38,29,.08); backdrop-filter: blur(2px); }

.widget-card .btn-open { box-shadow: inset 0 1px 0 rgba(255,255,255,.2), 0 6px 14px -6px rgba(87,9,31,.7); transition: transform .18s ease, box-shadow .18s ease; }
.widget-card .btn-open:hover { transform: translateY(-1px); box-shadow: inset 0 1px 0 rgba(255,255,255,.25), 0 10px 18px -6px rgba(87,9,31,.75); }
.widget-card .btn-share { transition: background .18s ease, border-color .18s ease; }
.widget-card .btn-share:hover { border-color:#8c2944; }

.art-svg { width: clamp(66px, 6.8vw, 96px); height: auto; filter: drop-shadow(0 10px 10px rgba(92,0,22,.25)); transform: rotate(-4deg); }
.widget-art::before { text-shadow: 0 0 8px rgba(212,175,55,.6); }

.hub-footer { position: relative; padding-top: var(--space-5); }
.hub-footer::before { content:'❦'; display:block; margin-bottom:6px; font-style:normal; font-size:16px; color:#c9a23a; letter-spacing:8px; }

.widget-card:focus-within { border-color:#c9a23a; }
@media (hover:none) { .widget-card:hover { transform:none; } }
@media (prefers-reduced-motion: reduce) { .widget-card, .widget-card:hover, .btn-open:hover { transition:none; transform:none; } }
@media (max-width:640px) { .art-svg { width: 60px; } .hub-footer::before { margin-bottom:2px; } }

/* ==========================================================================
   LAYOUT FIX PASS — consistent cards, no button wrapping, video sizing
   ========================================================================== */
/* Content always starts at the top so neighbouring cards line up. */
.widget-card { align-content: start; }

@media (min-width: 901px) {
  /* Art no longer steals width from the text column: only title/desc are
     kept clear of it, buttons get the full row so they never wrap. */
  .widget-card { min-height: 176px; padding: 24px 22px 22px; }
  .widget-card .widget-head { padding-right: 88px; }               /* clear of the badge */
  .widget-card .widget-desc { max-width: 330px; min-height: 3em; } /* 2 lines everywhere => buttons align across cards */
  .widget-card .widget-actions { flex-wrap: nowrap; gap: 10px; }
  .widget-card .btn-pill { flex: 0 0 auto; }
  .widget-art { width: 34%; }
  .art-svg { width: clamp(84px, 7.6vw, 118px); }

  /* Video: text vertically centred on the left, player preview sized as a
     proper 16:9-ish window on the right. */
  .widget-card.full-width {
    align-content: center;
    min-height: 210px;
    padding: 24px calc(min(44%, 560px) + 40px) 24px 22px;
  }
  .widget-card.full-width .widget-head { padding-right: 0; }
  .widget-card.full-width .widget-desc { min-height: 0; max-width: none; }
  .widget-visual.visual-video { top: 16px; bottom: 16px; right: 18px; width: min(44%, 560px); }
}

/* Narrower desktops / tablets landscape: slightly tighter buttons, same row */
@media (min-width: 901px) and (max-width: 1240px) {
  .widget-card .btn-pill { padding: 0 13px; font-size: 12px; gap: 6px; }
  .widget-card .btn-pill .arrow { display: none; }
  .widget-card .widget-desc { max-width: 260px; }
}

/* Tablet / phone: one column, so no cross-card alignment needed */
@media (max-width: 900px) {
  .widget-card { min-height: 0; padding: 20px 20px 20px 20px; padding-right: 30%; }
  .widget-card .widget-desc { min-height: 0; max-width: none; }
  .widget-card .widget-head { padding-right: 84px; }
  .widget-card.full-width { padding-right: 20px; grid-template-areas: "icon head" "icon desc" "actions actions" "visual visual"; }
  .widget-card.full-width .widget-head { padding-right: 84px; }
  .widget-visual.visual-video { position: relative; grid-area: visual; inset: auto; top: auto; right: auto; bottom: auto; width: 100%; height: clamp(150px, 34vw, 240px); margin-top: 14px; }
}

@media (max-width: 640px) {
  .widget-card, .widget-card.full-width { padding: 18px 16px; }
  .widget-card .widget-head { padding-right: 70px; }
  .widget-card.full-width .widget-head { padding-right: 70px; }
  .widget-card .widget-title { padding-right: 0; }
  .widget-card .widget-actions { flex-wrap: wrap; }
  .widget-card .widget-actions .btn-pill { flex: 1 1 calc(50% - 5px); min-width: 0; }
  .art-svg { width: 58px; }
}
