@charset "utf-8";

:root {
  --temple-bg: #090b0c;
  --temple-bg-alt: #101417;
  --temple-panel: #151b1f;
  --temple-panel-soft: #1b2227;
  --temple-border: rgba(218, 197, 146, 0.16);
  --temple-gold: #c6a15c;
  --temple-bronze: #8f6a35;
  --temple-red: #8d2d31;
  --temple-ivory: #f3eadb;
  --temple-muted: #b7ab98;
  --temple-success: #4b7d57;
  --temple-warning: #9f7a30;
  --portal-bg: var(--temple-bg);
  --portal-bg-alt: var(--temple-bg-alt);
  --portal-surface: var(--temple-panel);
  --portal-surface-2: var(--temple-panel-soft);
  --portal-surface-3: #222a30;
  --portal-border: var(--temple-border);
  --portal-border-strong: rgba(218, 197, 146, 0.26);
  --portal-text: var(--temple-ivory);
  --portal-muted: var(--temple-muted);
  --portal-gold: var(--temple-gold);
  --portal-gold-soft: #e0c98b;
  --portal-red: var(--temple-red);
  --portal-red-soft: #c34b50;
  --portal-ink: #08090a;
  --portal-shadow: 0 24px 56px rgba(0, 0, 0, 0.45);
  --portal-radius-lg: 1.35rem;
  --portal-radius-md: 1rem;
  --portal-radius-sm: 0.8rem;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body.portal-body {
  color: var(--temple-ivory);
  background:
    radial-gradient(circle at top left, rgba(198, 161, 92, 0.12), transparent 30%),
    radial-gradient(circle at top right, rgba(141, 45, 49, 0.14), transparent 28%),
    linear-gradient(180deg, #08090a 0%, #0c1114 55%, #090b0c 100%);
  position: relative;
  line-height: 1.5;
}

.portal-auth-page .portal-user-chip {
  display: none;
}

body.dashboard-shell {
  color: var(--portal-text);
  background:
    radial-gradient(circle at top left, rgba(198, 161, 92, 0.12), transparent 30%),
    radial-gradient(circle at top right, rgba(141, 45, 49, 0.14), transparent 28%),
    linear-gradient(180deg, #08090a 0%, #0c1114 55%, #090b0c 100%);
  position: relative;
  line-height: 1.5;
}

body.portal-body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.03), transparent 14%),
    radial-gradient(circle at 80% 15%, rgba(255, 255, 255, 0.025), transparent 12%),
    repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.018) 0 1px, transparent 1px 22px);
  opacity: 0.5;
}

a {
  color: var(--portal-gold-soft);
  text-decoration: none;
}

a:hover,
a:focus-visible {
  color: #f4dfab;
}

.template-shell-wrap {
  max-width: 1480px;
  margin-left: auto;
  margin-right: auto;
}

#templateHeaderContainer,
.template-topbar {
  color: var(--temple-ivory);
  background:
    linear-gradient(180deg, rgba(18, 22, 26, 0.98), rgba(12, 16, 18, 0.98)),
    radial-gradient(circle at top right, rgba(198, 161, 92, 0.12), transparent 28%);
  border-bottom: 1px solid rgba(224, 201, 139, 0.14);
  box-shadow: var(--portal-shadow);
}

.template-topbar a,
.template-topbar a:visited,
.template-topbar .link-body-emphasis {
  color: var(--temple-ivory) !important;
}

.template-topbar a:hover,
.template-topbar a:focus {
  color: #ffffff !important;
}

.template-brand-text {
  font-weight: 700;
  letter-spacing: 0.03em;
  margin-left: 0.5rem;
  text-transform: uppercase;
}

#templateMenuContainer,
.template-navbar {
  color: var(--temple-ivory);
  background:
    linear-gradient(180deg, rgba(22, 27, 31, 0.98), rgba(16, 20, 23, 0.98)),
    radial-gradient(circle at left, rgba(141, 45, 49, 0.16), transparent 38%);
  border-bottom: 1px solid rgba(224, 201, 139, 0.1);
  box-shadow: var(--portal-shadow);
}

#templateMenuContainer .nav-link,
.template-navbar .nav-link {
  color: rgba(243, 234, 219, 0.82);
  border-radius: var(--portal-radius-sm);
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

#templateMenuContainer .nav-link:hover,
#templateMenuContainer .nav-link.active,
.template-navbar .nav-link:hover,
.template-navbar .nav-link.active {
  color: var(--temple-ivory);
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(224, 201, 139, 0.16);
}

.template-navbar .navbar-toggler {
  border-color: rgba(224, 201, 139, 0.28);
}

.template-navbar .navbar-toggler-icon {
  filter: brightness(1.2);
}

.template-navbar .template-nav-link {
  position: relative;
  padding: 0.56rem 0.92rem !important;
  border-radius: 999px;
  font-weight: 650;
  line-height: 1.1;
}

.template-navbar .template-nav-link.active,
.template-navbar .template-nav-link:hover,
.template-navbar .template-nav-link:focus-visible {
  background: linear-gradient(90deg, rgba(141, 45, 49, 0.9), rgba(110, 34, 37, 0.9));
  color: #fff;
}

#templateSubtitleContainer {
  padding-top: 1.2rem;
}

.template-page-title {
  margin: 0;
  font-size: 1.45rem;
  font-weight: 650;
  letter-spacing: 0.01em;
}

#templateInfoContainer {
  padding-top: 0.85rem;
}

#templateBodyContainer {
  margin-bottom: 1.75rem;
  padding-top: 0.4rem;
}

.template-content-inner {
  padding-top: 0.25rem;
}

#templateFooterContainer {
  color: var(--temple-ivory);
  background:
    linear-gradient(180deg, rgba(16, 20, 23, 0.98), rgba(10, 12, 14, 0.98));
  border-top: 1px solid rgba(224, 201, 139, 0.1);
  box-shadow: 0 -1px 0 rgba(0, 0, 0, 0.03);
  font-size: 0.95rem;
}

#templateFooterContainer .border-top {
  border-color: rgba(224, 201, 139, 0.12) !important;
}

.template-footer-grid {
  row-gap: 0.9rem;
}

.template-footer-col {
  opacity: 0.88;
}

.template-footer-title {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(224, 201, 139, 0.72);
  margin-bottom: 0.7rem;
}

.template-footer-links .nav-item {
  margin-bottom: 0.4rem !important;
}

.template-footer-links .nav-link {
  color: rgba(243, 234, 219, 0.78) !important;
  font-size: 0.9rem;
  line-height: 1.3;
}

.template-footer-links .nav-link:hover,
.template-footer-links .nav-link:focus-visible {
  color: #f6e7b8 !important;
}

#templateFooterContainer .list-unstyled a {
  color: rgba(243, 234, 219, 0.82);
}

#templateFooterContainer .list-unstyled a:hover,
#templateFooterContainer .list-unstyled a:focus-visible {
  color: #f6e7b8;
}

#templateFooterContainer .border-top p {
  margin-bottom: 0.2rem;
  font-size: 0.85rem;
  color: rgba(243, 234, 219, 0.74);
}

.portal-shell {
  max-width: 1480px;
  margin-left: auto;
  margin-right: auto;
}

.panel-surface {
  position: relative;
  background: linear-gradient(180deg, rgba(25, 31, 36, 0.96) 0%, rgba(17, 22, 26, 0.96) 100%);
  border: 1px solid var(--portal-border);
  border-radius: var(--portal-radius-lg);
  box-shadow: var(--portal-shadow);
  overflow: hidden;
}

.panel-surface::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background:
    linear-gradient(135deg, rgba(224, 201, 139, 0.05), transparent 28%),
    linear-gradient(315deg, rgba(141, 45, 49, 0.05), transparent 26%);
}

.portal-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(8, 9, 10, 0.82);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(224, 201, 139, 0.14);
}

.portal-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0;
}

.portal-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  min-width: 0;
}

.portal-brand-mark {
  width: 2.65rem;
  height: 2.65rem;
  border-radius: 0.9rem;
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(224, 201, 139, 0.28);
  color: var(--portal-gold-soft);
  background:
    radial-gradient(circle at 30% 30%, rgba(224, 201, 139, 0.18), transparent 42%),
    linear-gradient(180deg, rgba(34, 42, 48, 0.98), rgba(18, 22, 26, 0.98));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.02);
  font-size: 1.2rem;
}

.portal-brand-mark::before {
  content: "";
  position: absolute;
  inset: 0.2rem;
  border-radius: 0.72rem;
  border: 1px solid rgba(224, 201, 139, 0.18);
  background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.16), transparent 30%);
}

.portal-brand-mark::after {
  content: "";
  position: absolute;
  inset: 0.4rem;
  border-radius: 0.55rem;
  border: 1px solid rgba(141, 45, 49, 0.18);
}

.portal-brand-copy,
.portal-user-copy {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.portal-brand-title {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.portal-brand-subtitle {
  color: var(--portal-muted);
  font-size: 0.84rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.portal-user-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.65rem 0.85rem;
  border-radius: 999px;
  border: 1px solid rgba(224, 201, 139, 0.14);
  background: rgba(22, 27, 31, 0.9);
}

.portal-user-avatar {
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, rgba(198, 161, 92, 0.25), rgba(141, 45, 49, 0.28));
  border: 1px solid rgba(224, 201, 139, 0.25);
  color: var(--portal-text);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.05em;
}

.portal-user-name {
  font-weight: 700;
  line-height: 1.1;
}

.portal-user-role {
  color: var(--portal-muted);
  font-size: 0.82rem;
}

.portal-user-logout {
  padding-left: 0.4rem;
  color: rgba(227, 134, 139, 0.92);
  font-weight: 700;
}

.portal-user-logout:hover,
.portal-user-logout:focus-visible {
  color: #f3b7ba;
}

.portal-main {
  position: relative;
  z-index: 1;
}

.portal-sidebar {
  position: sticky;
  top: 6.1rem;
  padding: 1rem;
}

.portal-sidebar-section + .portal-sidebar-section {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(224, 201, 139, 0.12);
}

.portal-sidebar-label {
  color: var(--portal-muted);
  font-size: 0.73rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 0.8rem;
}

.portal-nav {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.portal-nav-link {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.82rem 0.9rem;
  border-radius: 0.85rem;
  color: var(--portal-text);
  border: 1px solid transparent;
  transition: background-color 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.portal-nav-link:hover,
.portal-nav-link:focus-visible {
  color: var(--portal-text);
  background: rgba(255, 255, 255, 0.035);
  border-color: rgba(224, 201, 139, 0.12);
  transform: translateX(2px);
}

.portal-nav-link.is-active {
  background: linear-gradient(90deg, rgba(141, 45, 49, 0.55), rgba(92, 28, 31, 0.55));
  border-color: rgba(227, 134, 139, 0.32);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.03);
}

.portal-nav-ico {
  width: 1.35rem;
  height: 1.35rem;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--portal-gold-soft);
  font-size: 0.68rem;
  opacity: 0.9;
}

.portal-nav-admin .portal-nav-link {
  padding: 0.68rem 0.85rem;
  color: rgba(243, 234, 219, 0.84);
  font-size: 0.92rem;
}

.portal-nav-link-admin {
  border: 1px solid rgba(224, 201, 139, 0.1);
  background: rgba(255, 255, 255, 0.02);
}

.portal-hero {
  border-color: rgba(224, 201, 139, 0.18);
}

.portal-hero-inner {
  position: relative;
  padding: 2rem;
  min-height: 15rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background:
    radial-gradient(circle at top right, rgba(198, 161, 92, 0.18), transparent 33%),
    radial-gradient(circle at bottom left, rgba(141, 45, 49, 0.18), transparent 28%),
    linear-gradient(135deg, rgba(19, 24, 28, 0.98), rgba(12, 16, 18, 0.98));
}

.portal-hero-inner::before,
.portal-hero-inner::after {
  content: "";
  position: absolute;
  inset: 1rem;
  border-radius: calc(var(--portal-radius-lg) - 0.55rem);
  pointer-events: none;
}

.portal-hero-inner::before {
  border: 1px solid rgba(224, 201, 139, 0.12);
}

.portal-hero-inner::after {
  border: 1px solid rgba(141, 45, 49, 0.1);
  inset: 1.45rem;
}

.portal-kicker {
  display: inline-flex;
  align-self: flex-start;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  color: var(--portal-gold-soft);
  background: rgba(224, 201, 139, 0.08);
  border: 1px solid rgba(224, 201, 139, 0.14);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.portal-hero-title {
  margin-top: 1rem;
  margin-bottom: 0.75rem;
  font-size: clamp(2.1rem, 4vw, 3.55rem);
  line-height: 1.02;
  letter-spacing: 0.01em;
}

.portal-hero-quote {
  color: #efe3cf;
  font-size: 1.04rem;
}

.portal-hero-signature {
  color: var(--portal-red-soft);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.portal-auth-wrap {
  max-width: 42rem;
  margin: 0 auto;
  padding: 0.5rem 0 1.5rem;
}

.portal-auth-intro {
  max-width: 36rem;
}

.portal-auth-card {
  border-radius: calc(var(--portal-radius-lg) + 0.1rem);
  border-color: rgba(224, 201, 139, 0.18);
  background: linear-gradient(180deg, rgba(24, 29, 34, 0.98), rgba(15, 19, 22, 0.98));
}

.temple-card-header {
  padding: 1rem 1.15rem;
  background:
    linear-gradient(180deg, rgba(33, 39, 45, 0.98), rgba(22, 27, 31, 0.98)),
    radial-gradient(circle at top right, rgba(198, 161, 92, 0.12), transparent 36%);
  border-bottom: 1px solid rgba(224, 201, 139, 0.12);
}

.temple-card-title {
  color: var(--temple-ivory);
  font-size: 0.84rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.temple-card-body {
  padding: 1.35rem;
  color: var(--temple-ivory);
}

.portal-auth-card .form-label {
  color: rgba(243, 234, 219, 0.82);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 0.45rem;
}

.portal-auth-card .form-control,
.portal-auth-card .form-control:focus,
.portal-auth-card .form-control:active {
  color: var(--temple-ivory);
  background-color: rgba(8, 10, 11, 0.9);
  border-color: rgba(198, 161, 92, 0.22);
  box-shadow: none;
}

.portal-auth-card .form-control::placeholder {
  color: rgba(183, 171, 152, 0.72);
}

.portal-auth-card .form-control:focus {
  border-color: rgba(198, 161, 92, 0.6);
  box-shadow: 0 0 0 0.2rem rgba(198, 161, 92, 0.12);
}

.portal-auth-card .form-control:-webkit-autofill,
.portal-auth-card .form-control:-webkit-autofill:hover,
.portal-auth-card .form-control:-webkit-autofill:focus {
  -webkit-text-fill-color: var(--temple-ivory);
  -webkit-box-shadow: 0 0 0 1000px rgba(8, 10, 11, 0.95) inset;
  transition: background-color 9999s ease-in-out 0s;
}

.portal-auth-card .btn {
  padding: 0.72rem 1.1rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.temple-btn-primary,
.portal-auth-card .btn-primary {
  background: linear-gradient(180deg, #bf3f45 0%, #8d2d31 100%);
  border-color: rgba(227, 134, 139, 0.38);
  color: #fff;
  box-shadow: 0 12px 26px rgba(141, 45, 49, 0.28);
}

.temple-btn-primary:hover,
.temple-btn-primary:focus-visible,
.portal-auth-card .btn-primary:hover,
.portal-auth-card .btn-primary:focus-visible {
  background: linear-gradient(180deg, #d24d53 0%, #9a3136 100%);
  border-color: rgba(227, 134, 139, 0.52);
  color: #fff;
}

.temple-btn-secondary,
.portal-auth-card .btn-outline-secondary {
  color: rgba(243, 234, 219, 0.9);
  background: rgba(22, 27, 31, 0.92);
  border-color: rgba(198, 161, 92, 0.24);
}

.temple-btn-secondary:hover,
.temple-btn-secondary:focus-visible,
.portal-auth-card .btn-outline-secondary:hover,
.portal-auth-card .btn-outline-secondary:focus-visible {
  color: var(--temple-ivory);
  background: rgba(33, 39, 45, 0.98);
  border-color: rgba(198, 161, 92, 0.42);
}

.temple-inline-link {
  color: var(--portal-gold-soft);
  font-size: 0.92rem;
  font-weight: 600;
  opacity: 0.9;
}

.temple-inline-link:hover,
.temple-inline-link:focus-visible {
  color: #f6e7b8;
}

.portal-auth-card .alert {
  border-radius: var(--portal-radius-md);
}

.portal-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.portal-card-header {
  padding: 1rem 1.15rem;
  background: linear-gradient(180deg, rgba(38, 45, 50, 0.98), rgba(28, 34, 39, 0.98));
  border-bottom: 1px solid rgba(224, 201, 139, 0.12);
}

.portal-card-body {
  padding: 1.1rem;
}

.portal-section-title {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.portal-card-link {
  color: var(--portal-gold-soft);
  font-weight: 700;
  font-size: 0.88rem;
  white-space: nowrap;
}

.portal-card-link:hover,
.portal-card-link:focus-visible {
  color: #f6e7b8;
}

.portal-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.6rem;
  height: 1.6rem;
  padding: 0 0.45rem;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(195, 75, 80, 0.98), rgba(141, 45, 49, 0.98));
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
}

.portal-calendar-wrap {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.portal-calendar-weekdays,
.portal-calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 0.6rem;
}

.portal-calendar-weekdays {
  color: var(--portal-muted);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.portal-calendar-weekdays > div {
  text-align: center;
}

.portal-calendar-day {
  aspect-ratio: 1;
  min-height: 4.5rem;
  padding: 0.6rem;
  border-radius: 0.9rem;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.015));
  border: 1px solid rgba(224, 201, 139, 0.08);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-start;
}

.portal-calendar-day.is-empty {
  background: rgba(255, 255, 255, 0.01);
  border-style: dashed;
}

.portal-calendar-day.has-event {
  border-color: rgba(224, 201, 139, 0.24);
}

.portal-calendar-day.has-away {
  border-color: rgba(195, 75, 80, 0.25);
}

.portal-calendar-day.is-selected {
  background:
    radial-gradient(circle at top right, rgba(224, 201, 139, 0.16), transparent 42%),
    linear-gradient(180deg, rgba(50, 41, 19, 0.95), rgba(29, 25, 13, 0.95));
  border-color: rgba(224, 201, 139, 0.42);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.03);
}

.portal-calendar-number {
  font-weight: 700;
  color: var(--portal-text);
}

.portal-calendar-dots {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  min-height: 0.7rem;
}

.portal-dot {
  width: 0.46rem;
  height: 0.46rem;
  border-radius: 999px;
  display: inline-block;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.02);
}

.portal-dot-event {
  background: var(--portal-gold-soft);
}

.portal-dot-away {
  background: var(--portal-red-soft);
}

.portal-calendar-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem 1.1rem;
  color: var(--portal-muted);
  font-size: 0.88rem;
}

.portal-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.portal-stack {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.portal-list-item,
.portal-upcoming-item,
.portal-event-row {
  position: relative;
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
  padding: 0.95rem;
  border-radius: var(--portal-radius-md);
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(224, 201, 139, 0.1);
}

.portal-list-item::before,
.portal-upcoming-item::before,
.portal-event-row::before {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(224, 201, 139, 0.1), transparent);
  opacity: 0.45;
}

.portal-list-item-main,
.portal-event-content {
  min-width: 0;
  flex: 1 1 auto;
}

.portal-list-item-title {
  font-weight: 700;
  line-height: 1.25;
}

.portal-list-item-meta,
.portal-list-item-copy {
  color: var(--portal-muted);
  font-size: 0.9rem;
}

.portal-list-item-copy {
  margin-top: 0.25rem;
}

.portal-status {
  flex: 0 0 auto;
  align-self: flex-start;
  border-radius: 999px;
  padding: 0.38rem 0.7rem;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.portal-status.approved {
  color: #f7ead1;
  background: rgba(56, 109, 76, 0.24);
  border: 1px solid rgba(104, 169, 124, 0.18);
}

.portal-status.pending {
  color: #f6ddc0;
  background: rgba(141, 45, 49, 0.2);
  border: 1px solid rgba(195, 75, 80, 0.16);
}

.portal-primary-btn {
  background: linear-gradient(180deg, #bf3f45 0%, #8d2d31 100%);
  border-color: rgba(227, 134, 139, 0.32);
  box-shadow: 0 12px 26px rgba(141, 45, 49, 0.28);
  font-weight: 700;
}

.portal-primary-btn:hover,
.portal-primary-btn:focus-visible {
  background: linear-gradient(180deg, #d24d53 0%, #9a3136 100%);
  border-color: rgba(227, 134, 139, 0.48);
}

.portal-event-date {
  flex: 0 0 4.1rem;
  color: var(--portal-gold-soft);
  font-weight: 700;
  letter-spacing: 0.03em;
}

.portal-resource-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
}

.portal-resource-tile {
  min-height: 6.5rem;
  padding: 1rem;
  border-radius: var(--portal-radius-md);
  border: 1px solid rgba(224, 201, 139, 0.12);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.015)),
    radial-gradient(circle at top right, rgba(198, 161, 92, 0.12), transparent 42%);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 0.8rem;
  transition: transform 160ms ease, border-color 160ms ease, background-color 160ms ease;
}

.portal-resource-tile:hover,
.portal-resource-tile:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(224, 201, 139, 0.24);
}

.portal-resource-icon {
  color: var(--portal-gold-soft);
  font-size: 1.1rem;
}

.portal-resource-label {
  color: var(--portal-text);
  font-weight: 700;
}

.portal-footer {
  margin-top: 1.5rem;
  padding: 0 0 1.5rem;
}

.portal-footer-inner {
  padding: 1rem 0 0;
  color: var(--portal-muted);
  font-size: 0.92rem;
  text-align: center;
  border-top: 1px solid rgba(224, 201, 139, 0.1);
}

.portal-footer-inner p {
  color: rgba(243, 234, 219, 0.78);
  letter-spacing: 0.01em;
}

.btn {
  border-radius: 0.85rem;
}

.btn:focus-visible,
.portal-nav-link:focus-visible,
.portal-card-link:focus-visible,
.portal-user-logout:focus-visible,
.portal-resource-tile:focus-visible {
  outline: 2px solid rgba(224, 201, 139, 0.56);
  outline-offset: 2px;
}

@media (max-width: 1199.98px) {
  .portal-sidebar {
    position: relative;
    top: auto;
  }
}

@media (max-width: 991.98px) {
  .portal-header-inner {
    flex-direction: column;
    align-items: stretch;
  }

  .portal-user-chip {
    justify-content: space-between;
    border-radius: 1rem;
  }

  .portal-resource-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 767.98px) {
  .portal-shell {
    padding-left: 0.6rem;
    padding-right: 0.6rem;
  }

  .portal-header-inner {
    padding: 0.85rem 0;
  }

  .portal-brand {
    gap: 0.7rem;
  }

  .portal-brand-mark {
    width: 2.35rem;
    height: 2.35rem;
  }

  .portal-user-chip {
    width: 100%;
    gap: 0.7rem;
  }

  .portal-user-logout {
    margin-left: auto;
  }

  .portal-hero-inner {
    padding: 1.35rem;
    min-height: 13rem;
  }

  .portal-card-body {
    padding: 0.95rem;
  }

  .portal-card-header {
    padding: 0.9rem 0.95rem;
    flex-direction: column;
    align-items: flex-start !important;
  }

  .temple-card-header {
    padding: 0.9rem 0.95rem;
  }

  .temple-card-body {
    padding: 1rem;
  }

  .portal-calendar-weekdays,
  .portal-calendar-grid {
    gap: 0.35rem;
  }

  .portal-calendar-day {
    min-height: 3.7rem;
    padding: 0.45rem;
    border-radius: 0.75rem;
  }

  .portal-list-item,
  .portal-upcoming-item,
  .portal-event-row {
    padding: 0.8rem;
  }

  .portal-event-date {
    flex-basis: 3.6rem;
  }
}

@media (max-width: 575.98px) {
  .portal-hero-title {
    font-size: 1.9rem;
  }

  .portal-hero-quote {
    font-size: 0.98rem;
  }

  .portal-calendar-weekdays {
    font-size: 0.7rem;
  }

  .portal-calendar-number {
    font-size: 0.88rem;
  }

  .portal-card-link {
    font-size: 0.84rem;
  }

  .portal-resource-tile {
    min-height: 5.75rem;
  }
}
