/* ============== RESOURCES PAGE ============== */

/* EAPP CARDS */
.eapp-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
}
.eapp-card {
  background: linear-gradient(135deg, rgba(245, 237, 220, 0.1), rgba(107, 39, 55,0.04));
  border: 1px solid rgba(201, 165, 90, 0.15);
  border-radius: var(--radius);
  padding: 1.75rem;
  text-decoration: none;
  color: inherit;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  transition: all 0.25s var(--ease);
  display: flex;
  flex-direction: column;
}
.eapp-card:hover {
  border-color: rgba(0, 0, 0, 0.3);
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(201, 165, 90, 0.18);
}
.eapp-logo {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  background: rgba(201, 165, 90, 0.15);
  color: var(--purple-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin-bottom: 1.125rem;
}
.eapp-card h4 {
  font-family: 'Playfair Display', serif;
  font-size: 19px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.5rem;
  letter-spacing: -0.005em;
}
.eapp-card p {
  font-size: 13px;
  color: var(--text2);
  font-weight: 300;
  line-height: 1.7;
  margin-bottom: 1.25rem;
  flex: 1;
}
.eapp-card p em {
  display: inline-block;
  margin-top: 4px;
  font-style: italic;
  font-size: 11.5px;
  color: var(--gold-light);
  font-weight: 400;
  letter-spacing: 0.01em;
}
.eapp-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1rem;
  border-top: 1px solid var(--glass-border);
}
.eapp-pill {
  font-size: 12px;
  font-weight: 500;
  color: var(--purple-light);
}
.eapp-foot > i {
  font-size: 16px;
  color: var(--purple-light);
  transition: transform 0.2s var(--ease);
}
.eapp-card:hover .eapp-foot > i {
  transform: translate(2px, -2px);
}

/* AUTH PROMPT BANNER (shown when not logged in) */
.auth-prompt {
  margin: 1.5rem 0 2rem;
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.25), rgba(107, 39, 55,0.06));
  border: 1px solid rgba(201, 165, 90, 0.18);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.5rem;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}
.auth-prompt-inner {
  display: flex;
  align-items: center;
  gap: 1rem;
  text-align: left;
}
.auth-prompt-inner > i {
  font-size: 26px;
  color: var(--purple-light);
  flex-shrink: 0;
}
.auth-prompt-inner > div {
  flex: 1;
}
.auth-prompt-inner strong {
  display: block;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 2px;
}
.auth-prompt-inner span {
  font-size: 12.5px;
  color: var(--text2);
  font-weight: 300;
  line-height: 1.55;
}
.auth-prompt-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, var(--purple), var(--purple-dim));
  color: #14263D;
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  padding: 0.6rem 1rem;
  border-radius: var(--radius-sm);
  white-space: nowrap;
  transition: all 0.2s var(--ease);
}
.auth-prompt-btn:hover {
  transform: translateX(2px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

/* LOCKED ITEM STYLING */
.locked {
  position: relative;
  cursor: pointer;
}
.locked::after {
  content: '';
  position: absolute;
  top: 12px;
  right: 12px;
  width: 24px;
  height: 24px;
  background: rgba(245, 237, 220, 0.05);
  border: 1px solid var(--glass-border-strong);
  border-radius: 50%;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23C9A55A' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3e%3crect x='3' y='11' width='18' height='11' rx='2' ry='2'%3e%3c/rect%3e%3cpath d='M7 11V7a5 5 0 0 1 10 0v4'%3e%3c/path%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: center;
  z-index: 2;
  pointer-events: none;
}
.locked.q-item::after {
  top: 50%;
  transform: translateY(-50%);
  right: 12px;
}
.locked.res-link-all::after { display: none; }
.locked.res-link-all {
  opacity: 0.6;
}
/* New-design cards already show their own lock pill — suppress the gate's auto-added badge */
.locked.res-cat-v2::after { display: none; }

@media (max-width: 700px) {
  .auth-prompt-inner {
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
  }
  .auth-prompt-btn {
    width: 100%;
    justify-content: center;
  }
}

.res-hero {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 7rem 2rem 3rem;
}
.auth-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(201, 165, 90, 0.25);
  border-radius: 999px;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--purple-light);
  margin-bottom: 1.25rem;
}
.auth-badge i { font-size: 13px; }
.res-h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(34px, 5.5vw, 56px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}
.res-h1 em { font-style: italic; color: var(--gold); }
.res-sub {
  font-size: 15.5px;
  color: var(--text2);
  font-weight: 300;
  line-height: 1.85;
  max-width: 620px;
  margin: 0 auto 2rem;
}

.res-search {
  position: relative;
  max-width: 560px;
  margin: 0 auto;
}
.res-search input {
  width: 100%;
  background: rgba(245, 237, 220, 0.06);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  padding: 0.9rem 1rem 0.9rem 3rem;
  transition: all 0.2s var(--ease);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}
.res-search input:focus {
  outline: none;
  border-color: var(--purple);
  box-shadow: 0 0 0 3px rgba(201, 165, 90, 0.18);
}
.res-search input::placeholder { color: var(--text3); }
.res-search > i {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text3);
  font-size: 18px;
}
.kbd {
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 4px;
  font-size: 11px;
  font-family: 'DM Sans', monospace;
  padding: 2px 7px;
  color: var(--text3);
}

/* CATEGORIES */
.res-categories {
  position: relative;
  z-index: 2;
  padding: 2rem 2rem 4rem;
}
.res-cat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.875rem;
}
.res-cat {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  padding: 1.125rem;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  text-decoration: none;
  color: inherit;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  transition: all 0.25s var(--ease);
  position: relative;
}
.res-cat:hover {
  border-color: var(--glass-border-strong);
  transform: translateY(-3px);
}
.rc-icon {
  width: 44px;
  height: 44px;
  min-width: 44px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
}
.rc-icon.purple { background: rgba(201, 165, 90, 0.18); color: var(--purple-light); }
.rc-icon.cyan { background: rgba(107, 39, 55,0.12); color: var(--cyan); }
.rc-icon.gold { background: rgba(201,165,90,0.12); color: var(--gold); }
.res-cat h3 {
  font-size: 14.5px;
  font-weight: 500;
  color: var(--text);
  font-family: 'DM Sans', sans-serif;
  margin-bottom: 2px;
}
.res-cat p {
  font-size: 11.5px;
  color: var(--text2);
  font-weight: 300;
}
.rc-count {
  margin-left: auto;
  font-size: 12px;
  color: var(--text3);
  font-weight: 500;
  background: rgba(245, 237, 220, 0.04);
  padding: 3px 9px;
  border-radius: 999px;
  border: 1px solid var(--glass-border);
}

/* ============== UPGRADED CATEGORY TIERS ============== */
.res-cat-tier {
  margin-bottom: 2.5rem;
}
.res-cat-tier:last-child {
  margin-bottom: 0;
}

.res-tier-head {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}
.res-tier-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 5px 11px 5px 9px;
  border-radius: 999px;
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}
.res-tier-badge i {
  font-size: 13px;
}
.res-tier-badge.free {
  background: rgba(107, 39, 55,0.08);
  border-color: rgba(184, 146, 61, 0.35);
  color: var(--cyan);
}
.res-tier-badge.locked {
  background: rgba(201,165,90,0.08);
  border-color: rgba(201,165,90,0.3);
  color: var(--gold-light);
}
.res-tier-desc {
  font-size: 12.5px;
  color: var(--text2);
  font-weight: 300;
  font-style: italic;
  letter-spacing: 0.01em;
}

/* GRIDS */
.res-cat-grid.res-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  max-width: 900px;
  margin: 0 auto;
}
.res-cat-grid.res-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.res-cat-grid.res-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}
.res-cat-grid.res-grid-5 {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.875rem;
}
@media (max-width: 1100px) {
  .res-cat-grid.res-grid-5 {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  }
}
@media (max-width: 900px) {
  .res-cat-grid.res-grid-3,
  .res-cat-grid.res-grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 540px) {
  .res-cat-grid.res-grid-2,
  .res-cat-grid.res-grid-3,
  .res-cat-grid.res-grid-4,
  .res-cat-grid.res-grid-5 {
    grid-template-columns: 1fr;
  }
}

/* CARDS — v2 design */
.res-cat-v2 {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 1.5rem 1.375rem 1.25rem;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  text-decoration: none;
  color: inherit;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  transition: all 0.3s var(--ease);
  overflow: hidden;
  min-height: 200px;
}
.res-cat-v2:hover {
  transform: translateY(-4px);
  border-color: var(--glass-border-strong);
}

.rc-glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.4s var(--ease);
  background: radial-gradient(circle at 50% 0%, rgba(245, 237, 220, 0.04), transparent 65%);
}
.res-cat-v2:hover .rc-glow {
  opacity: 1;
}

.res-cat-v2.accent-cyan   { border-left: 2px solid rgba(107, 39, 55,0.5); }
.res-cat-v2.accent-purple { border-left: 2px solid rgba(201, 165, 90, 0.35); }
.res-cat-v2.accent-gold   { border-left: 2px solid rgba(201,165,90,0.5); }
.res-cat-v2.accent-cyan:hover   { border-left-color: var(--cyan); box-shadow: 0 12px 40px rgba(107, 39, 55,0.12); }
.res-cat-v2.accent-purple:hover { border-left-color: var(--purple); box-shadow: 0 12px 40px rgba(201, 165, 90, 0.18); }
.res-cat-v2.accent-gold:hover   { border-left-color: var(--gold); box-shadow: 0 12px 40px rgba(201,165,90,0.15); }

.rc-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1rem;
  position: relative;
}
.rc-icon-v2 {
  width: 46px;
  height: 46px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  transition: transform 0.3s var(--ease);
}
.res-cat-v2.accent-cyan .rc-icon-v2   { background: rgba(107, 39, 55,0.15); color: var(--cyan); }
.res-cat-v2.accent-purple .rc-icon-v2 { background: rgba(201, 165, 90, 0.2); color: var(--purple-light); }
.res-cat-v2.accent-gold .rc-icon-v2   { background: rgba(201,165,90,0.15); color: var(--gold); }

.res-cat-v2:hover .rc-icon-v2 {
  transform: scale(1.08);
}

.rc-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 22px;
  padding: 0 9px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-radius: 999px;
  border: 1px solid var(--glass-border);
  background: rgba(245, 237, 220, 0.04);
  color: var(--text3);
}
.res-cat-v2.accent-cyan .rc-tag:not(.locked) {
  color: var(--cyan);
  border-color: rgba(184, 146, 61, 0.35);
  background: rgba(107, 39, 55,0.08);
}
.res-cat-v2.accent-purple .rc-tag:not(.locked) {
  color: var(--purple-light);
  border-color: rgba(201, 165, 90, 0.25);
  background: rgba(201, 165, 90, 0.08);
}
.res-cat-v2.accent-gold .rc-tag:not(.locked) {
  color: var(--gold-light);
  border-color: rgba(201,165,90,0.3);
  background: rgba(201,165,90,0.08);
}
.rc-tag.locked {
  width: 26px;
  height: 26px;
  padding: 0;
  background: rgba(201,165,90,0.08);
  border-color: rgba(201,165,90,0.3);
  color: var(--gold-light);
  font-size: 13px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.rc-tag.locked svg {
  width: 13px;
  height: 13px;
  color: var(--gold-light);
  display: block;
}

.res-cat-v2 h3 {
  font-family: 'Playfair Display', serif;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.005em;
  line-height: 1.25;
  margin-bottom: 0.5rem;
  color: var(--text);
  position: relative;
}
.res-cat-v2 > p {
  font-size: 12.5px;
  color: var(--text2);
  font-weight: 300;
  line-height: 1.65;
  flex: 1;
  margin-bottom: 1rem;
  position: relative;
}

.rc-action {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--text);
  margin-top: auto;
  padding-top: 0.875rem;
  border-top: 1px solid var(--glass-border);
  position: relative;
  letter-spacing: 0.005em;
}
.res-cat-v2.accent-cyan .rc-action   { color: var(--cyan); }
.res-cat-v2.accent-purple .rc-action { color: var(--purple-light); }
.res-cat-v2.accent-gold .rc-action   { color: var(--gold-light); }
.rc-action i {
  font-size: 14px;
  transition: transform 0.25s var(--ease);
}
.res-cat-v2:hover .rc-action i {
  transform: translate(2px, -2px);
}

/* Locked cards — subtle visual treatment, slightly muted */
.res-cat-v2.locked-card {
  background: linear-gradient(135deg, rgba(0,0,0,0.2), var(--glass));
}
.res-cat-v2.locked-card .rc-icon-v2 {
  opacity: 0.75;
}
.res-cat-v2.locked-card h3 {
  color: var(--text2);
}
.res-cat-v2.locked-card .rc-action {
  color: var(--text3);
  font-style: italic;
  font-weight: 400;
  font-size: 12px;
}
.res-cat-v2.locked-card .rc-contact-link {
  color: var(--gold-light);
  margin-left: 3px;
  font-style: normal;
  font-weight: 500;
  text-decoration: underline;
  text-decoration-color: rgba(201,165,90,0.3);
  text-underline-offset: 2px;
  transition: color 0.2s var(--ease);
}
.res-cat-v2.locked-card:hover .rc-contact-link {
  color: var(--gold);
  text-decoration-color: var(--gold);
}
.res-cat-v2.locked-card:hover .rc-icon-v2 {
  opacity: 1;
}
.res-cat-v2.locked-card:hover h3 {
  color: var(--text);
}

/* SECTIONS */
.res-section {
  position: relative;
  z-index: 2;
  padding: 5rem 2rem;
  scroll-margin-top: 100px;
}
.res-section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 2rem;
  gap: 1rem;
  flex-wrap: wrap;
}
.res-link-all {
  font-size: 13px;
  color: var(--purple-light);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-weight: 500;
  transition: gap 0.2s var(--ease);
}
.res-link-all:hover {
  gap: 8px;
}
.res-section-lede {
  font-size: 14px;
  color: var(--text2);
  font-weight: 300;
  line-height: 1.8;
  max-width: 720px;
  margin-bottom: 2rem;
}

/* DOC ITEMS */
.res-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
}
.res-item {
  position: relative;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 1.5rem;
  text-decoration: none;
  color: inherit;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  transition: all 0.25s var(--ease);
  display: flex;
  flex-direction: column;
}
.res-item:hover {
  border-color: var(--glass-border-strong);
  transform: translateY(-3px);
}
/* Lock badge — top-right corner, just the padlock (no box). */
.res-item-lock {
  position: absolute;
  top: 1.4rem;
  right: 1.4rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  z-index: 3;
  transition: color 0.2s var(--ease);
}
.res-item-lock svg {
  width: 15px;
  height: 15px;
  color: var(--gold);
  display: block;
}
.res-item-locked:hover .res-item-lock {
  color: var(--gold-light);
}
.ri-type {
  display: inline-block;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.1em;
  padding: 3px 8px;
  border-radius: 4px;
  margin-bottom: 0.75rem;
  width: fit-content;
}
.ri-type.pdf { background: rgba(255,107,107,0.12); color: #ff8a8a; }
.ri-type.doc { background: rgba(99,179,237,0.12); color: #8ec4f3; }
.res-item h4 {
  font-family: 'Playfair Display', serif;
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.5rem;
  letter-spacing: -0.005em;
}
.res-item p {
  font-size: 13px;
  color: var(--text2);
  font-weight: 300;
  line-height: 1.65;
  margin-bottom: 1rem;
  flex: 1;
}
.ri-meta {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  padding-top: 0.875rem;
  border-top: 1px solid var(--glass-border);
}
.ri-meta span {
  font-size: 11px;
  color: var(--text3);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-weight: 300;
}
.ri-meta i { font-size: 12px; }

/* UW CARDS */
.uw-grid-r {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
}
.uw-card {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 1.5rem;
  text-decoration: none;
  color: inherit;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  transition: all 0.25s var(--ease);
}
.uw-card:hover {
  border-color: rgba(184, 146, 61, 0.35);
  background: linear-gradient(135deg, rgba(107, 39, 55,0.05), transparent);
  transform: translateY(-3px);
}
.uw-card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
}
.uw-card h4 {
  font-family: 'Playfair Display', serif;
  font-size: 17px;
  font-weight: 600;
  color: var(--text);
}
.uw-pill {
  font-size: 10px;
  font-weight: 500;
  background: rgba(107, 39, 55,0.15);
  color: var(--cyan);
  padding: 2px 8px;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.uw-card p {
  font-size: 13px;
  color: var(--text2);
  font-weight: 300;
  line-height: 1.65;
  margin-bottom: 1.25rem;
}
.uw-card-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 0.875rem;
  border-top: 1px solid var(--glass-border);
}
.uw-card-foot span {
  font-size: 11.5px;
  color: var(--text3);
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.uw-card-foot > i {
  font-size: 16px;
  color: var(--cyan);
  transition: transform 0.2s var(--ease);
}
.uw-card:hover .uw-card-foot > i {
  transform: translateY(-2px);
}

/* CONTACT TABLE */
.contact-table {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  overflow: hidden;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}
.contact-row {
  display: grid;
  grid-template-columns: 1.2fr 1.4fr 1.4fr;
  gap: 1rem;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--glass-border);
  align-items: center;
}
.ct-hours {
  font-size: 12.5px;
  color: var(--text2);
  font-weight: 300;
}
.contact-row:last-child { border-bottom: none; }
.contact-row.contact-head {
  background: rgba(245, 237, 220, 0.04);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--gold-light);
}
.ct-carrier strong {
  font-family: 'Playfair Display', serif;
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
}
.ct-name {
  display: block;
  font-size: 12.5px;
  color: var(--text2);
  font-weight: 400;
  margin-bottom: 2px;
}
.ct-phone {
  font-size: 12.5px;
  color: var(--purple-light);
  text-decoration: none;
  font-weight: 500;
}
.ct-phone:hover {
  color: var(--purple);
}
.res-disclaimer {
  margin-top: 1rem;
  font-size: 12px;
  color: var(--text3);
  display: inline-flex;
  align-items: flex-start;
  gap: 6px;
  font-weight: 300;
  line-height: 1.6;
}
.res-disclaimer i { font-size: 14px; margin-top: 1px; }

/* CHEAT SHEETS */
.cheat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
}
.cheat-card {
  position: relative;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 1.5rem;
  text-decoration: none;
  color: inherit;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  transition: all 0.25s var(--ease);
}
.cheat-card:hover {
  border-color: var(--glass-border-strong);
  transform: translateY(-3px);
  background: linear-gradient(135deg, rgba(245, 237, 220, 0.05), transparent);
}
/* Lock badge for gated cards (Grow Your Practice tiles) — top-right corner, no box. */
.cheat-lock {
  position: absolute;
  top: 1.1rem;
  right: 1.1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  z-index: 3;
  transition: color 0.2s var(--ease);
}
.cheat-lock i {
  font-size: 15px !important;
  color: var(--gold) !important;
  margin: 0 !important;
  display: inline !important;
}
.cheat-lock svg {
  width: 15px;
  height: 15px;
  color: var(--gold);
  display: block;
}
.cheat-card-locked:hover .cheat-lock {
  color: var(--gold-light);
}
.cheat-card i {
  font-size: 24px;
  color: var(--gold);
  display: block;
  margin-bottom: 0.875rem;
}
.cheat-card h4 {
  font-family: 'Playfair Display', serif;
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.5rem;
  letter-spacing: -0.005em;
}
.cheat-card p {
  font-size: 13px;
  color: var(--text2);
  font-weight: 300;
  line-height: 1.65;
}

/* ============== UW REFERENCES (combined cheat sheets + UW guides) ==============
   Tighter unified section replacing the two separate cheat/UW sections.
   Two subgroups (By condition / By carrier) share a single compact tile style. */
.uw-refs-subhead {
  font-family: 'DM Sans', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text3);
  margin: 1.75rem 0 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--glass-border);
}
.uw-refs-subhead:first-of-type {
  margin-top: 1rem;
}
.uw-refs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.6rem;
}
@media (max-width: 900px) {
  .uw-refs-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 540px) {
  .uw-refs-grid {
    grid-template-columns: 1fr;
  }
}

/* Base tile — used for both condition and carrier variants.
   Two-line title + description layout, icon on left. */
.uw-ref {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  text-decoration: none;
  color: var(--text);
  font-size: 13.5px;
  transition: all 0.2s var(--ease);
}
.uw-ref:hover {
  background: var(--glass-strong);
  border-color: var(--glass-border-strong);
  transform: translateX(2px);
}
.uw-ref > i:first-child {
  font-size: 18px;
  color: var(--cyan-light);
  flex-shrink: 0;
  margin-top: 2px;
}
.uw-ref > div {
  flex: 1;
  min-width: 0;
}
.uw-ref strong {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 3px;
  line-height: 1.3;
}
.uw-ref span {
  display: block;
  font-size: 12px;
  line-height: 1.5;
  color: var(--text3);
  font-weight: 300;
}

/* Carrier variant — same base layout. */
.uw-ref-carrier {
  gap: 0.5rem;
}
.uw-ref-pill {
  font-family: 'DM Sans', sans-serif;
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-style: normal;
  color: var(--gold);
  background: rgba(201, 165, 90, 0.14);
  border: 1px solid rgba(201, 165, 90, 0.35);
  padding: 1px 6px;
  border-radius: 3px;
}
/* Lock badge — signals the resource is gated behind agent login.
   Just the padlock icon, no box/border/background. */
.uw-ref-lock {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  align-self: center;
  color: var(--gold);
  transition: all 0.2s var(--ease);
}
.uw-ref-lock i {
  font-size: 15px;
  color: var(--gold);
  line-height: 1;
}
.uw-ref-lock svg {
  width: 15px;
  height: 15px;
  color: var(--gold);
  display: block;
}
.uw-ref-locked:hover .uw-ref-lock {
  color: var(--gold-light);
}

/* "See full library" CTA tile — a distinct gold-tinted tile that fills the
   empty grid slot and signals there are more carrier guides than listed. */
.uw-ref-more {
  background: linear-gradient(135deg, rgba(201,165,90,0.12), rgba(201,165,90,0.04)) !important;
  border: 1px dashed rgba(201, 165, 90, 0.5) !important;
}
.uw-ref-more:hover {
  border-style: solid !important;
  border-color: var(--gold) !important;
  transform: translateX(2px) translateY(-2px) !important;
}
.uw-ref-more strong {
  color: var(--gold-light) !important;
}
.uw-ref-more span {
  color: var(--text2) !important;
}
.uw-ref-more-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  font-size: 17px;
  flex-shrink: 0;
  align-self: center;
  transition: transform 0.2s var(--ease);
}
.uw-ref-more:hover .uw-ref-more-arrow {
  transform: translateX(3px);
}
.uw-ref-more::after {
  display: none !important;
}

/* QUESTIONNAIRES + FORMS */
.res-double-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}
.sec-title.small {
  font-size: clamp(22px, 3vw, 30px);
}
.q-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

/* Full-width variant used when the Questionnaires section takes the full
   container (no longer paired with Forms & apps side-by-side). Renders as
   a 2-column grid on desktop for compactness, single column on mobile. */
.q-list-wide {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.6rem;
}
@media (max-width: 720px) {
  .q-list-wide {
    grid-template-columns: 1fr;
  }
}
.q-item {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  padding: 0.875rem 1rem;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  text-decoration: none;
  color: inherit;
  transition: all 0.2s var(--ease);
  /* Button reset so <button class="q-item"> matches <a class="q-item"> visually */
  font-family: inherit;
  font-size: inherit;
  cursor: pointer;
  width: 100%;
  text-align: left;
}
.q-item:hover {
  background: var(--glass-strong);
  border-color: var(--glass-border-strong);
  transform: translateX(3px);
}
.q-item > i:first-child {
  font-size: 18px;
  color: var(--purple-light);
}
.q-item span {
  flex: 1;
  font-size: 13.5px;
  color: var(--text);
  font-weight: 400;
}
.q-arr {
  font-size: 14px;
  color: var(--text3);
  transition: all 0.2s var(--ease);
}
.q-item:hover .q-arr {
  color: var(--text);
  transform: translate(2px, -2px);
}

/* Wrapper drawer around the Questionnaires list — gives a soft container
   with a hint that this is a manageable, expandable resource. */
.q-drawer {
  margin-top: 1.75rem;
}
.q-drawer-note {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  margin-top: 1.25rem;
  padding: 0.875rem 1rem;
  background: rgba(107, 39, 55, 0.08);
  border: 1px solid rgba(107, 39, 55, 0.22);
  border-radius: var(--radius-sm);
  font-size: 12.5px;
  line-height: 1.55;
  color: var(--text2);
}
.q-drawer-note i {
  color: var(--cyan-light);
  font-size: 16px;
  margin-top: 1px;
  flex-shrink: 0;
}

@media (max-width: 800px) {
  .contact-row {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }
  .contact-row.contact-head { display: none; }
  .ct-carrier strong { font-size: 16px; }
  .res-double-grid { grid-template-columns: 1fr; gap: 2rem; }
}

/* ============== REQUEST-RESOURCE MODAL ==============
   Triggered from the questionnaire list. Asks the visitor
   to contact IRG until actual PDFs are uploaded. */

.resource-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.resource-modal.is-open {
  display: flex;
}
.resource-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 19, 32, 0.78);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  animation: rm-fade-in 0.2s ease;
}
@keyframes rm-fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

.resource-modal-panel {
  position: relative;
  width: 100%;
  max-width: 520px;
  background: var(--bg2);
  border: 1px solid rgba(201, 165, 90, 0.3);
  border-radius: var(--radius-lg);
  padding: 3rem 2.25rem 2.5rem;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 0 0 40px rgba(201, 165, 90, 0.08);
  animation: rm-pop 0.28s var(--ease-bounce);
}
@keyframes rm-pop {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.resource-modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: transparent;
  border: 1px solid var(--glass-border);
  color: var(--text2);
  cursor: pointer;
  font-size: 18px;
  transition: all 0.2s var(--ease);
}
.resource-modal-close:hover {
  background: rgba(201, 165, 90, 0.1);
  color: var(--gold);
  border-color: var(--gold);
}

.resource-modal-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 1.25rem;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(201, 165, 90, 0.25), rgba(201, 165, 90, 0.10));
  border: 1px solid rgba(201, 165, 90, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  color: var(--gold);
}

.resource-modal-title {
  font-family: 'Playfair Display', serif;
  font-size: 26px;
  font-weight: 700;
  line-height: 1.2;
  margin: 1rem 0 0.75rem;
  color: var(--text);
}

.resource-modal-sub {
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--text2);
  margin: 0 auto 2rem;
  max-width: 420px;
}
.resource-modal-sub strong {
  color: var(--gold);
  font-weight: 600;
}

.resource-modal-ctas {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
}

@media (max-width: 520px) {
  .resource-modal-panel {
    padding: 2.5rem 1.5rem 2rem;
  }
  .resource-modal-title {
    font-size: 22px;
  }
  .resource-modal-ctas {
    flex-direction: column;
  }
  .resource-modal-ctas .btn-primary,
  .resource-modal-ctas .btn-secondary {
    width: 100%;
    justify-content: center;
  }
}

/* ============================================================
   SEARCHABLE QUESTIONNAIRE LIBRARY
   Live-filter search box + A-Z grid of downloadable questionnaires.
   ============================================================ */
.ql-wrap {
  margin-top: 1.5rem;
}
.ql-searchbar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.875rem 1.125rem;
  background: var(--glass);
  border: 1px solid var(--glass-border-strong);
  border-radius: var(--radius);
  transition: all 0.2s var(--ease);
  max-width: 560px;
}
.ql-searchbar:focus-within {
  border-color: var(--gold);
  background: var(--glass-strong);
  box-shadow: 0 0 0 3px rgba(201, 165, 90, 0.1);
}
.ql-searchbar > i {
  font-size: 19px;
  color: var(--gold);
  flex-shrink: 0;
}
.ql-searchbar input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: var(--text);
  font-family: 'DM Sans', sans-serif;
  font-size: 14.5px;
}
.ql-searchbar input::placeholder {
  color: var(--text3);
}
.ql-clear {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: none;
  background: rgba(245, 237, 220, 0.08);
  color: var(--text2);
  cursor: pointer;
  font-size: 14px;
  flex-shrink: 0;
  transition: all 0.15s var(--ease);
}
.ql-clear:hover {
  background: rgba(245, 237, 220, 0.16);
  color: var(--text);
}

.ql-count {
  font-size: 12px;
  color: var(--text3);
  margin: 0.875rem 0 1rem;
  letter-spacing: 0.02em;
  min-height: 16px;
}

.ql-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.55rem;
}
@media (max-width: 900px) {
  .ql-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 560px) {
  .ql-grid {
    grid-template-columns: 1fr;
  }
}

.ql-item {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.7rem 0.9rem;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  text-decoration: none;
  color: var(--text);
  transition: all 0.18s var(--ease);
}
.ql-item:hover {
  background: var(--glass-strong);
  border-color: rgba(201, 165, 90, 0.4);
  transform: translateY(-1px);
}
.ql-icon {
  font-size: 16px;
  color: var(--cyan-light);
  flex-shrink: 0;
}
.ql-name {
  flex: 1;
  font-size: 13.5px;
  font-weight: 500;
  line-height: 1.3;
}
.ql-dl {
  font-size: 15px;
  color: var(--text3);
  flex-shrink: 0;
  opacity: 0;
  transform: translateX(-4px);
  transition: all 0.18s var(--ease);
}
.ql-item:hover .ql-dl {
  opacity: 1;
  transform: translateX(0);
  color: var(--gold);
}
/* Hidden state applied by JS when filtering */
.ql-item.ql-hidden {
  display: none;
}

.ql-empty {
  text-align: center;
  padding: 2.5rem 1rem;
  color: var(--text2);
}
.ql-empty i {
  font-size: 36px;
  color: var(--text3);
  margin-bottom: 0.75rem;
  display: block;
}
.ql-empty p {
  font-size: 14px;
  line-height: 1.6;
}
.ql-reset,
.ql-empty .ql-reset {
  background: none;
  border: none;
  color: var(--gold);
  cursor: pointer;
  font-size: inherit;
  font-family: inherit;
  text-decoration: underline;
  padding: 0;
}
.ql-empty a {
  color: var(--gold);
}
