/* HHE WoW Event Calendar — presentation layer */
.hhe-wow-calendar {
  --hhe-gold: #c89035;
  --hhe-ink: #080d14;
  --hhe-parchment: #e8debf;
  position: relative;
  overflow: hidden;
  padding: clamp(.75rem, 2vw, 1.25rem);
  color: var(--hhe-parchment);
  font-family: Georgia, "Times New Roman", serif;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(43, 84, 111, .64) 0%, rgba(10, 19, 29, .94) 42%, #06080c 100%);
  border: 1px solid rgba(200, 144, 53, .76);
  box-shadow: 0 24px 70px rgba(0, 0, 0, .52), inset 0 0 0 1px rgba(255, 218, 137, .08);
  isolation: isolate;
}

.hhe-wow-calendar::before,
.hhe-wow-calendar::after {
  content: "";
  position: absolute;
  pointer-events: none;
  inset: 0;
  z-index: -1;
}

.hhe-wow-calendar::before {
  opacity: .22;
  background-image:
    linear-gradient(90deg, transparent 49.5%, rgba(255, 208, 101, .18) 50%, transparent 50.5%),
    linear-gradient(0deg, transparent 49.5%, rgba(255, 208, 101, .13) 50%, transparent 50.5%);
  background-size: 46px 46px;
  mask-image: linear-gradient(to bottom, #000 0%, transparent 45%);
}

.hhe-wow-calendar::after {
  inset: auto 0 0;
  height: 145px;
  background: linear-gradient(transparent, rgba(0, 0, 0, .52));
}

.hhe-wow-calendar > * { position: relative; }

/* Header uses the supplied Hills Have Eyes banner art. */
.hhe-wow-calendar__hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 1rem;
  min-height: 152px;
  margin-bottom: 1rem;
  padding: 1.1rem clamp(1rem, 3vw, 2rem);
  overflow: hidden;
  border: 1px solid rgba(227, 177, 79, .72);
  box-shadow: inset 0 0 0 1px rgba(10, 10, 10, .8), inset 0 0 46px rgba(0, 0, 0, .88), 0 12px 30px rgba(0, 0, 0, .35);
  background-color: #0a1018;
  background-image:
    linear-gradient(90deg, rgba(5, 9, 14, .94) 0%, rgba(5, 9, 14, .78) 37%, rgba(5, 9, 14, .45) 67%, rgba(5, 9, 14, .84) 100%),
    linear-gradient(0deg, rgba(0, 0, 0, .46), rgba(0, 0, 0, .08)),
    url("../images/hhe-calendar-header.jpg");
  background-size: cover;
  background-position: center;
}

.hhe-wow-calendar__hero::before,
.hhe-wow-calendar__hero::after {
  content: "";
  position: absolute;
  top: 9px;
  bottom: 9px;
  width: 28px;
  pointer-events: none;
  opacity: .74;
}

.hhe-wow-calendar__hero::before {
  left: 9px;
  border-left: 1px solid rgba(242, 198, 99, .75);
  border-top: 1px solid rgba(242, 198, 99, .75);
  border-bottom: 1px solid rgba(242, 198, 99, .75);
}

.hhe-wow-calendar__hero::after {
  right: 9px;
  border-right: 1px solid rgba(242, 198, 99, .75);
  border-top: 1px solid rgba(242, 198, 99, .75);
  border-bottom: 1px solid rgba(242, 198, 99, .75);
}

.hhe-wow-calendar__hero-copy { position: relative; z-index: 1; }

.hhe-kicker {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  color: #edc774;
  font-size: .73rem;
  font-weight: bold;
  letter-spacing: .17em;
  text-shadow: 0 2px 5px #000;
}

.hhe-kicker::before,
.hhe-kicker::after {
  content: "✦";
  color: #e7a745;
  font-size: .62rem;
}

.hhe-wow-calendar h2 {
  margin: .23rem 0 .18rem;
  color: #ffe0a0;
  font-size: clamp(1.55rem, 4vw, 2.7rem);
  line-height: 1;
  letter-spacing: .025em;
  text-shadow: 0 3px 0 #36200b, 0 0 22px rgba(249, 174, 55, .42);
}

.hhe-wow-calendar__hero p {
  max-width: 52ch;
  margin: .4rem 0 0;
  color: #e0cfaa;
  font-size: .92rem;
  line-height: 1.35;
  text-shadow: 0 2px 4px #000;
}

.hhe-wow-calendar__guild-mark {
  position: relative;
  z-index: 1;
  width: clamp(88px, 14vw, 132px);
  aspect-ratio: 1;
  flex: 0 0 auto;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid rgba(243, 196, 94, .92);
  background: #0d131b;
  box-shadow: 0 0 0 5px rgba(4, 7, 10, .56), 0 0 28px rgba(233, 167, 65, .38), inset 0 0 20px #000;
}

.hhe-wow-calendar__guild-mark img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hhe-wow-calendar__navigation {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: .55rem;
  margin: 0 0 .65rem;
  padding: .56rem .62rem;
  border: 1px solid rgba(205, 153, 61, .48);
  background:
    linear-gradient(90deg, rgba(6, 10, 16, .96), rgba(61, 42, 20, .86) 50%, rgba(6, 10, 16, .96)),
    repeating-linear-gradient(45deg, rgba(255,255,255,.018) 0 1px, transparent 1px 5px);
  box-shadow: inset 0 0 20px rgba(0, 0, 0, .58), 0 6px 14px rgba(0,0,0,.22);
}

.hhe-wow-calendar__nav-label {
  min-width: 0;
  color: #f4d38e;
  font-size: clamp(.86rem, 2vw, 1.08rem);
  font-weight: bold;
  letter-spacing: .1em;
  line-height: 1.1;
  text-align: center;
  text-transform: uppercase;
  text-shadow: 0 2px 2px #000, 0 0 10px rgba(237, 183, 84, .25);
}

.hhe-wow-calendar__nav-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .35rem;
  min-width: 6.2rem;
  min-height: 39px;
  font-size: .76rem;
  font-weight: bold;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.hhe-wow-calendar__nav-button span {
  color: #f3c96f;
  font-size: 1.2rem;
  line-height: .75;
}

.hhe-wow-calendar__nav-button:disabled {
  cursor: wait;
  opacity: .6;
}

.hhe-wow-calendar__filters {
  display: flex;
  flex-wrap: wrap;
  gap: .55rem;
  margin: 0 0 1rem;
  padding: .62rem;
  border: 1px solid rgba(205, 153, 61, .34);
  background: linear-gradient(90deg, rgba(8, 13, 20, .93), rgba(41, 31, 18, .84), rgba(8, 13, 20, .93));
  box-shadow: inset 0 0 20px rgba(0, 0, 0, .5);
}

.hhe-wow-calendar select,
.hhe-wow-calendar button {
  font: inherit;
  color: #f2dfb7;
  border: 1px solid rgba(215, 160, 67, .72);
  border-radius: 0;
}

.hhe-wow-calendar select {
  min-height: 39px;
  padding: .55rem 2rem .55rem .7rem;
  background: #0c141d;
}

.hhe-wow-calendar button {
  cursor: pointer;
  padding: .55rem .78rem;
  background: linear-gradient(#3b2b16, #1a1109);
  text-shadow: 0 1px 1px #000;
}

.hhe-wow-calendar button:hover,
.hhe-wow-calendar button:focus-visible {
  border-color: #f1cb77;
  filter: brightness(1.16);
}

.hhe-wow-calendar button:focus-visible,
.hhe-wow-calendar select:focus-visible {
  outline: 2px solid #f4d58a;
  outline-offset: 2px;
}

.hhe-wow-calendar__months { display: grid; gap: 1rem; }

.hhe-month {
  overflow: hidden;
  border: 1px solid rgba(200, 144, 53, .78);
  background: rgba(4, 7, 11, .92);
  box-shadow: inset 0 0 45px rgba(0, 0, 0, .68), 0 10px 25px rgba(0, 0, 0, .24);
}

.hhe-month__title {
  position: relative;
  padding: .78rem .75rem;
  text-align: center;
  color: #f3cc7a;
  font-size: clamp(1.1rem, 2vw, 1.42rem);
  font-weight: bold;
  letter-spacing: .12em;
  text-transform: uppercase;
  background:
    linear-gradient(90deg, transparent, rgba(237, 183, 84, .24), transparent),
    linear-gradient(90deg, #101720, #352413 50%, #101720);
  border-bottom: 1px solid rgba(200, 144, 53, .73);
  text-shadow: 0 2px 2px #000;
}

.hhe-month__title::before,
.hhe-month__title::after {
  content: "✦";
  position: absolute;
  top: 50%;
  color: #edbb5d;
  font-size: .72rem;
  transform: translateY(-50%);
}

.hhe-month__title::before { left: 15%; }
.hhe-month__title::after { right: 15%; }

.hhe-month__weekdays,
.hhe-month__grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
}

.hhe-month__weekdays > div {
  padding: .48rem .15rem;
  text-align: center;
  color: #e2b866;
  font-size: .72rem;
  font-weight: bold;
  letter-spacing: .08em;
  text-transform: uppercase;
  background: linear-gradient(#121d27, #0b1118);
  border-right: 1px solid rgba(190, 139, 47, .35);
  text-shadow: 0 1px 2px #000;
}

.hhe-month__weekdays > div:last-child { border-right: 0; }

.hhe-day {
  position: relative;
  display: flex;
  min-height: 138px;
  overflow: hidden;
  isolation: isolate;
  background:
    linear-gradient(135deg, rgba(17, 28, 39, .92), rgba(5, 9, 14, .94)),
    repeating-linear-gradient(45deg, rgba(255,255,255,.018) 0 1px, transparent 1px 4px);
  border-right: 1px solid rgba(190, 139, 47, .38);
  border-top: 1px solid rgba(190, 139, 47, .38);
}

.hhe-day:nth-child(7n) { border-right: 0; }

.hhe-day::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  border: 1px solid transparent;
  box-shadow: inset 0 0 14px rgba(0, 0, 0, .28);
}

.hhe-day:hover::after { border-color: rgba(232, 190, 94, .3); }
.hhe-day.is-outside { opacity: .42; }

.hhe-day__number {
  position: absolute;
  z-index: 4;
  top: .36rem;
  left: .38rem;
  min-width: 1.55rem;
  padding: .12rem .24rem;
  color: #ffe0a0;
  font-size: .88rem;
  font-weight: bold;
  line-height: 1;
  text-align: center;
  text-shadow: 0 1px 2px #000, 0 0 4px #000;
  background: rgba(6, 8, 12, .7);
  border: 1px solid rgba(233, 190, 93, .42);
  box-shadow: 0 1px 4px rgba(0, 0, 0, .7);
  pointer-events: none;
}

.hhe-day__events {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
}

/* Each event keeps the whole featured image visible with object-fit: contain.
   A cover-size background version fills any unused space so every date tile still feels full. */
.hhe-event {
  --hhe-event-image: none;
  position: relative;
  display: flex;
  flex: 1 1 0;
  flex-direction: column;
  justify-content: flex-end;
  width: 100%;
  min-height: 0;
  margin: 0;
  padding: 1.82rem .55rem .52rem;
  overflow: hidden;
  color: #fff3d6;
  text-align: left;
  border: 0;
  border-radius: 0;
  background-color: #101722;
  background-image: linear-gradient(135deg, #182634, #0b0f15), var(--hhe-event-image);
  background-size: cover;
  background-position: center;
  box-shadow: none;
}

.hhe-event + .hhe-event { border-top: 1px solid rgba(245, 196, 91, .68); }

.hhe-event__image {
  position: absolute !important;
  z-index: 0 !important;
  inset: 0;
  display: block !important;
  width: 100%;
  height: 100%;
}

.hhe-event__image img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: contain;
  object-position: center;
}

.hhe-event::before {
  content: "";
  position: absolute;
  z-index: 1;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, .15) 4%, rgba(0, 0, 0, .2) 36%, rgba(0, 0, 0, .88) 100%),
    linear-gradient(90deg, rgba(0, 0, 0, .5), transparent 70%);
}

.hhe-event > * {
  position: relative;
  z-index: 2;
  display: block;
}

.hhe-event:hover,
.hhe-event:focus-visible {
  z-index: 3;
  filter: brightness(1.18) saturate(1.1);
  box-shadow: inset 0 0 0 2px rgba(249, 206, 112, .82);
}

.hhe-event__type {
  margin-bottom: .1rem;
  color: #f2c466;
  font-size: .61rem;
  font-weight: bold;
  letter-spacing: .09em;
  text-transform: uppercase;
  text-shadow: 0 1px 2px #000;
}

.hhe-event__title {
  color: #fff3d6;
  font-size: clamp(.68rem, 1.15vw, .84rem);
  font-weight: bold;
  line-height: 1.04;
  text-shadow: 0 2px 2px #000, 0 0 5px #000;
}

.hhe-event__time {
  margin-top: .15rem;
  color: #f0d7a8;
  font-size: .64rem;
  line-height: 1;
  text-shadow: 0 1px 2px #000;
}

.hhe-event-modal {
  width: min(720px, calc(100% - 2rem));
  max-height: min(86vh, 820px);
  padding: 0;
  overflow: auto;
  color: #eee3ce;
  border: 1px solid var(--hhe-gold);
  background: #090d13;
  box-shadow: 0 20px 80px #000;
}

.hhe-event-modal::backdrop { background: rgba(0, 0, 0, .78); }
.hhe-event-modal__inner { padding: 1.45rem; }

.hhe-event-modal__hero {
  --hhe-event-image: none;
  position: relative;
  display: grid;
  place-items: center;
  height: clamp(155px, 28vw, 310px);
  margin: -1.45rem -1.45rem 1rem;
  overflow: hidden;
  background-color: #111a25;
  background-image: linear-gradient(rgba(4, 9, 15, .22), rgba(4, 9, 15, .45)), var(--hhe-event-image);
  background-size: cover;
  background-position: center;
}

.hhe-event-modal__hero::before {
  content: "";
  position: absolute;
  inset: -14px;
  background-image: var(--hhe-event-image);
  background-position: center;
  background-size: cover;
  filter: blur(12px) brightness(.48) saturate(.78);
  transform: scale(1.08);
}

.hhe-event-modal__hero-image {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: contain;
  object-position: center;
}

.hhe-event-modal__hero::after {
  content: "";
  position: absolute;
  z-index: 2;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(0, 0, 0, .04) 15%, rgba(0, 0, 0, .74) 100%);
}

.hhe-event-modal h3 {
  margin: .1rem 0 .75rem;
  color: #f1cd7e;
  font-size: clamp(1.45rem, 4vw, 1.95rem);
  text-shadow: 0 2px 0 #33200d;
}

.hhe-event-modal dl {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: .45rem .9rem;
  padding: .8rem;
  background: rgba(255, 255, 255, .035);
  border: 1px solid rgba(212, 158, 65, .26);
}

.hhe-event-modal dt { color: #d2a45a; font-weight: bold; }
.hhe-event-modal dd { margin: 0; }
.hhe-event-modal__close {
  position: absolute;
  z-index: 5;
  top: .45rem;
  right: .55rem;
  width: 2.2rem;
  height: 2.2rem;
  padding: 0;
  color: #fff;
  font-size: 1.7rem;
  line-height: 1;
  background: rgba(0, 0, 0, .58);
  border-color: rgba(242, 199, 102, .65);
}

.hhe-event-modal a { color: #f1c96d; }

.hhe-wow-event-list {
  display: grid;
  gap: .75rem;
  color: #eee3ce;
  font-family: Georgia, "Times New Roman", serif;
}

.hhe-wow-event-list__item {
  display: grid;
  grid-template-columns: minmax(125px, 28%) minmax(0, 1fr);
  gap: .9rem;
  align-items: stretch;
  min-height: 112px;
  overflow: hidden;
  padding: .65rem;
  border: 1px solid rgba(200, 144, 53, .48);
  background: linear-gradient(90deg, #101923, #0b1017 68%);
  box-shadow: inset 0 0 24px rgba(0, 0, 0, .44), 0 6px 14px rgba(0, 0, 0, .18);
}

.hhe-wow-event-list__image {
  display: grid;
  min-height: 100px;
  overflow: hidden;
  place-items: center;
  background: #071017;
  border: 1px solid rgba(234, 187, 88, .38);
}

.hhe-wow-event-list__image img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: contain;
  object-position: center;
}

.hhe-wow-event-list__content {
  min-width: 0;
  align-self: center;
}

.hhe-wow-event-list__eyebrow {
  display: block;
  margin-bottom: .14rem;
  color: #e9b861;
  font-size: .66rem;
  font-weight: bold;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.hhe-wow-event-list h3 {
  margin: 0;
  color: #f7d890;
  font-size: 1.08rem;
  line-height: 1.14;
  text-shadow: 0 1px 2px #000;
}

.hhe-wow-event-list h3 a { color: inherit; text-decoration: none; }
.hhe-wow-event-list h3 a:hover,
.hhe-wow-event-list h3 a:focus-visible { color: #fff1be; text-decoration: underline; }

.hhe-wow-event-list__meta {
  display: block;
  margin-top: .28rem;
  color: #d2bf98;
  font-size: .78rem;
}

.hhe-wow-event-list__excerpt {
  margin: .45rem 0 0;
  color: #ddd0b6;
  font-size: .88rem;
  line-height: 1.34;
}

.hhe-wow-event-list__empty {
  margin: 0;
  padding: .85rem;
  color: #d7c6a3;
  border: 1px solid rgba(200, 144, 53, .36);
  background: #0d141c;
}

@media (max-width: 700px) {
  .hhe-wow-calendar__hero {
    grid-template-columns: minmax(0, 1fr) 75px;
    min-height: 118px;
    padding: .85rem 1rem;
  }

  .hhe-wow-calendar__guild-mark { width: 70px; }
  .hhe-wow-calendar__hero p { display: none; }
  .hhe-kicker { font-size: .59rem; letter-spacing: .12em; }
  .hhe-wow-calendar h2 { font-size: 1.35rem; }
  .hhe-month__title { font-size: 1.02rem; }
  .hhe-month__title::before { left: 8%; }
  .hhe-month__title::after { right: 8%; }
  .hhe-month__weekdays > div { padding: .3rem 0; font-size: .52rem; letter-spacing: .02em; }
  .hhe-day { min-height: 79px; }
  .hhe-day__number { top: .18rem; left: .18rem; min-width: 1.16rem; padding: .08rem .14rem; font-size: .64rem; }
  .hhe-event { padding: 1.23rem .27rem .25rem; }
  .hhe-event__type,
  .hhe-event__time { display: none; }
  .hhe-event__title { font-size: .56rem; line-height: 1.05; }
  .hhe-event + .hhe-event { border-top-width: 1px; }
  .hhe-wow-calendar { padding: .55rem; }
  .hhe-wow-calendar__navigation { grid-template-columns: auto minmax(0, 1fr) auto; gap: .28rem; margin-bottom: .45rem; padding: .42rem; }
  .hhe-wow-calendar__nav-label { font-size: .68rem; letter-spacing: .055em; }
  .hhe-wow-calendar__nav-button { min-width: 2.1rem; min-height: 34px; padding: .34rem .42rem; font-size: 0; }
  .hhe-wow-calendar__nav-button span { font-size: 1.15rem; }
  .hhe-wow-calendar__filters { gap: .35rem; padding: .45rem; }
  .hhe-wow-calendar__filters select { max-width: calc(50% - .18rem); min-height: 34px; padding: .4rem 1.25rem .4rem .45rem; font-size: .72rem; }
  .hhe-wow-calendar__filters button { min-height: 34px; padding: .4rem .55rem; font-size: .72rem; }
  .hhe-event-modal dl { grid-template-columns: 92px 1fr; font-size: .88rem; }
  .hhe-wow-event-list__item { grid-template-columns: 100px minmax(0, 1fr); gap: .6rem; min-height: 92px; padding: .5rem; }
  .hhe-wow-event-list__image { min-height: 82px; }
  .hhe-wow-event-list h3 { font-size: .94rem; }
  .hhe-wow-event-list__excerpt { margin-top: .28rem; font-size: .78rem; line-height: 1.28; }
}

/* Member Hub attendance control supplied through the event REST bridge. */
.hhe-event-modal__member-actions{margin:16px 0 0;padding-top:14px;border-top:1px solid rgba(201,154,68,.28)}
