/* ==========================================================================
   ROOT VARIABLES / DESIGN TOKENS
   ========================================================================== */

:root{
  --aa-text: var(--rrh-text, #334843);
  --aa-text-soft: var(--rrh-text-soft, #5f706b);
  --aa-border: rgba(122,106,78,.12);
  --aa-border-strong: rgba(122,106,78,.18);

  --aa-bg-soft: rgba(255,255,255,.42);
  --aa-bg-card: rgba(255,255,255,.56);
  --aa-bg-pill: rgba(250,248,244,.82);
  --aa-bg-meta: rgba(255,255,255,.34);

  --aa-bg-button: rgba(255,255,255,.72);
  --aa-bg-button-hover: rgba(255,255,255,.86);

  --aa-gap-col: 14px;
  --aa-gap-card: 10px;

  --aa-radius-card: 16px;
  --aa-radius-soft: 12px;
  --aa-radius-button: 10px;
  --aa-radius-pill: 999px;
}


/* ==========================================================================
   GRID / PAGE LAYOUT
   ========================================================================== */

.aa-grid{
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(0,1fr);
  gap:var(--aa-gap-col);
  align-items:start;
}

.aa-left,
.aa-right{
  min-width:0;
  min-height:0;
  display:flex;
  flex-direction:column;
  background:transparent;
  border:0;
  box-shadow:none;
}


/* ==========================================================================
   SECTION WRAPPERS / RESULT LISTS
   ========================================================================== */

.aa-results-list{
  display:flex;
  flex-direction:column;
  gap:12px;
  margin:0;
  padding:0;
}

.aa-section-card{
  display:flex;
  flex-direction:column;
  gap:0;
  margin:0;
  padding:0;
  background:transparent;
  border:0;
  box-shadow:none;
}


/* ==========================================================================
   GENERIC PANELS / BOXES
   ========================================================================== */

.aa-info-box,
.aa-info-box-resource{
  border:1px solid rgba(122,106,78,.10);
  border-radius:16px;
  background:rgba(255,255,255,.42);
  box-shadow:none;
  margin:0 0 10px 0;
}

.aa-info-box{
  padding:14px;
}

.aa-info-box-resource{
  padding:12px;
}

.aa-right .aa-info-box h3{
  border-bottom:1px solid rgba(122,106,78,.10);
  padding-bottom:6px;
  margin-bottom:0;
}


/* ==========================================================================
   CARDS
   ========================================================================== */

.aa-resource-card,
.aa-meeting-card,
.aa-info-box-resource,
.resource-item{
  display:flex;
  flex-direction:column;
  gap:9px;
  min-width:0;
  min-height:100%;
  margin:0 !important;
  padding:12px !important;
  border-radius:var(--aa-radius-card) !important;
  border:1px solid var(--aa-border) !important;
  background:var(--aa-bg-card) !important;
  box-shadow:none !important;
  backdrop-filter:none !important;
  -webkit-backdrop-filter:none !important;
  cursor:default !important;
}

.aa-resource-card > *,
.aa-meeting-card > *,
.aa-info-box-resource > *,
.resource-item > *{
  min-width:0;
  cursor:default !important;
}

.aa-resource-card > *:not(.aa-actions),
.aa-meeting-card > *:not(.aa-actions){
  flex:0 0 auto;
}


/* ==========================================================================
   CARD HEADER / TITLE ROW
   ========================================================================== */

.aa-card-top{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:10px;
  cursor:default !important;
}

.aa-card-title-wrap{
  min-width:0;
  flex:1 1 auto;
  cursor:default !important;
}

.aa-card-title,
.resource-title{
  display:flex;
  align-items:center;
  gap:8px;
  margin:0 !important;
  cursor:default !important;
}

.aa-card-title{
  font-size:19px !important;
  line-height:1.25 !important;
  font-weight:450 !important;
  color:var(--aa-text) !important;
}

.resource-title > span,
.resource-title > h5{
  font-size:18px;
  font-weight:400;
  margin-left:0;
  cursor:default !important;
}

.aa-card-subtitle{
  margin:3px 0 0 !important;
  font-size:12px !important;
  line-height:1.35 !important;
  color:var(--aa-text-soft) !important;
  cursor:default !important;
}


/* ==========================================================================
   PILLS / BADGES / TAGS
   ========================================================================== */

.aa-resource-tags,
.aa-types,
.resource-badges,
.resource-tags{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:6px;
  margin:0 !important;
  padding:0 !important;
  cursor:default !important;
}

.resource-tags{
  justify-content:center;
  margin-top:6px;
  margin-bottom:12px;
}

.rrh-pill,
.calendar-filter-pill,
.crc-category-pill,
.aa-card-pill,
.aa-resource-tag,
.resource-pill,
.type-label,
.tag-pill,
.verified-badge,
.aa-types-pill{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:6px;
  min-height:30px;
  padding:6px 12px;
  border-radius:var(--aa-radius-pill);
  border:1px solid rgba(122,106,78,.14);
  background:var(--aa-bg-pill);
  color:var(--aa-text);
  font-family:inherit;
  font-size:13px;
  line-height:1.1;
  font-weight:500;
  white-space:nowrap;
  box-shadow:none !important;
  cursor:default !important;
  margin:0 !important;
}

.calendar-filter-pill,
.crc-category-pill{
  background:rgba(255,255,255,.46);
}

.aa-card-pill{
  background:rgba(250,249,244,.72);
  font-weight:600;
}

.aa-tier-box,
.aa-card-pill--status{
  flex:0 0 auto;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:28px;
  padding:6px 12px;
  margin:0 !important;
  border-radius:var(--aa-radius-pill);
  border:1px solid rgba(122,106,78,.12);
  background:rgba(244,242,235,.75);
  color:var(--aa-text);
  font-size:12.5px;
  line-height:1;
  font-weight:600;
  white-space:nowrap;
  box-shadow:none !important;
  cursor:default !important;
}

.aa-verified-tag,
.verified-badge{
  background:rgba(230,242,232,.86) !important;
}


/* ==========================================================================
   RESOURCE ICONS
   ========================================================================== */

.resource-icon-wrap{
  position:relative;
  width:30px;
  min-width:30px;
  height:30px;
  display:grid;
  place-items:center;
  margin-right:8px;
  border-radius:10px;
  border:1px solid color-mix(in srgb, currentColor 45%, white);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.35),
    0 1px 2px rgba(0,0,0,.04);
  cursor:default !important;
}

.resource-icon-svg{
  display:inline-flex;
  width:16px;
  height:16px;
  cursor:default !important;
}

.resource-icon-wrap svg,
.resource-icon-svg svg{
  width:18px;
  height:18px;
  stroke:currentColor;
  fill:none;
  cursor:default !important;
}

.resource-icon-wrap.category-apps{ background:rgba(124,58,237,0.16); color:#7c3aed; }
.resource-icon-wrap.category-clothing{ background:rgba(34,197,94,0.16); color:#16a34a; }
.resource-icon-wrap.category-community{ background:rgba(239,68,68,0.16); color:#ef4444; }
.resource-icon-wrap.category-food{ background:rgba(59,130,246,0.16); color:#3b82f6; }
.resource-icon-wrap.category-health-info{ background:rgba(244,63,94,0.16); color:#e11d48; }
.resource-icon-wrap.category-housing{ background:rgba(99,102,241,0.16); color:#6366f1; }
.resource-icon-wrap.category-jobs{ background:rgba(234,179,8,0.18); color:#ca8a04; }
.resource-icon-wrap.category-legal{ background:rgba(37,99,235,0.16); color:#2563eb; }
.resource-icon-wrap.category-literature{ background:rgba(6,182,212,0.16); color:#0891b2; }
.resource-icon-wrap.category-media{ background:rgba(107,114,128,0.16); color:#6b7280; }
.resource-icon-wrap.category-meetings{ background:rgba(16,185,129,0.16); color:#059669; }
.resource-icon-wrap.category-donations{ background:rgba(34,197,94,0.16); color:#16a34a; }
.resource-icon-wrap.category-sober-living{ background:rgba(59,130,246,0.14); color:#3b82f6; }
.resource-icon-wrap.category-treatment{ background:rgba(13,148,136,0.16); color:#0d9488; }


/* ==========================================================================
   ADDRESS / META / TIME BOXES
   ========================================================================== */

.aa-resource-address{
  margin:0 !important;
  font-size:15px !important;
  line-height:1.45 !important;
  color:var(--aa-text-soft) !important;
  cursor:default !important;
}

.aa-distance-pill{
  color:#4e7a5d;
  font-weight:600;
  white-space:nowrap;
  cursor:default !important;
}

.aa-resource-meta,
.aa-meeting-times{
  display:grid;
  grid-template-columns:1fr;
  gap:8px;
  margin:0 !important;
  padding:0 !important;
  cursor:default !important;
}

.aa-meta-box{
  min-width:0;
  padding:8px 10px !important;
  border-radius:var(--aa-radius-soft);
  border:1px solid rgba(122,106,78,.10);
  background:var(--aa-bg-meta);
  box-shadow:none !important;
  cursor:default !important;
}

.aa-meta-label{
  display:block;
  margin-bottom:3px;
  font-size:13px;
  line-height:1.1;
  letter-spacing:.02em;
  text-transform:uppercase;
  color:var(--aa-text-soft);
  cursor:default !important;
}

.aa-meta-value{
  display:block;
  font-size:13px;
  line-height:1.35;
  font-weight:550;
  color:var(--aa-text);
  cursor:default !important;
}

.aa-meeting-card .aa-time{
  font-size:15px;
  font-weight:600;
}

.aa-resource-card .aa-resource-meta:last-of-type,
.aa-meeting-card .aa-resource-meta:last-of-type,
.aa-meeting-card .aa-meeting-times:last-of-type{
  margin-bottom:2px !important;
}


/* ==========================================================================
   ACTION BUTTONS
   ========================================================================== */

.aa-actions{
  display:flex;
  flex-wrap:wrap;
  align-items:stretch !important;
  gap:8px;
  margin:0 !important;
  margin-top:auto !important;
  padding-top:12px !important;
  cursor:default !important;
}

.aa-card-actions{
  margin-top:10px;
}

.aa-btn,
.aa-actions .aa-btn,
.aa-actions .aa-action-link,
.aa-actions a,
.aa-actions button,
.resource-click{
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
  gap:6px !important;
  align-self:stretch !important;
  min-height:40px !important;
  height:40px !important;
  padding:0 14px !important;
  border-radius:var(--aa-radius-button) !important;
  border:1px solid rgba(122,106,78,.14) !important;
  background:var(--aa-bg-button) !important;
  color:var(--aa-text) !important;
  text-decoration:none !important;
  font-size:12px !important;
  line-height:1 !important;
  font-weight:600 !important;
  white-space:nowrap !important;
  cursor:pointer !important;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.6),
    0 1px 2px rgba(0,0,0,.04);
  transition:
    background-color .18s ease,
    border-color .18s ease,
    color .18s ease,
    box-shadow .18s ease,
    transform .18s ease !important;
}

.aa-btn:hover,
.aa-actions .aa-btn:hover,
.aa-actions .aa-action-link:hover,
.aa-actions a:hover,
.aa-actions button:hover,
.resource-click:hover{
  background:var(--aa-bg-button-hover) !important;
  border-color:rgba(122,106,78,.20) !important;
  color:var(--aa-text) !important;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.7),
    0 6px 14px rgba(0,0,0,.06);
  transform:translateY(-1px);
  cursor:pointer !important;
}

.aa-actions svg,
.aa-actions .btn-text{
  cursor:pointer !important;
}

.aa-actions svg{
  flex:0 0 auto !important;
}

.aa-actions .btn-text{
  display:inline-flex !important;
  align-items:center !important;
  line-height:1 !important;
}

.aa-btn.btn-phone svg,
.aa-btn.btn-phone:hover svg{ stroke:#28a745; }

.aa-btn.btn-website svg,
.aa-btn.btn-website:hover svg{ stroke:#0073aa; }

.aa-btn.btn-email svg,
.aa-btn.btn-email:hover svg{ stroke:#d14836; }

.aa-btn.btn-directions svg,
.aa-btn.btn-directions:hover svg{ stroke:#ff9800; }

.aa-btn.btn-share svg,
.aa-btn.btn-share:hover svg{ stroke:#6f42c1; }

.aa-btn.btn-calendar svg,
.aa-btn.btn-calendar:hover svg{ stroke:#d14836; }


/* ==========================================================================
   TOOLTIPS
   ========================================================================== */

.tooltip-wrap,
.resource-icon-wrap{
  position:relative;
  cursor:default !important;
}

.tooltip-wrap::after,
.resource-icon-wrap[data-rrh-tooltip]::after{
  position:absolute;
  top:0;
  left:calc(100% + 8px);
  width:260px;
  max-width:260px;
  white-space:normal;
  background:#f2f3ed;
  color:#555;
  border:1px solid rgba(0,0,0,0.22);
  padding:10px 12px;
  border-radius:10px;
  font-size:13px;
  line-height:1.35;
  box-shadow:0 10px 24px rgba(0,0,0,0.14);
  opacity:0;
  pointer-events:none;
  transition:opacity .12s ease;
  z-index:999999;
  cursor:default !important;
}

.tooltip-wrap::after{
  content:attr(data-tooltip);
}

.resource-icon-wrap[data-rrh-tooltip]::after{
  content:attr(data-rrh-tooltip);
  font-weight:400 !important;
  font-size:13px !important;
  line-height:1.4 !important;
}

.tooltip-wrap:hover::after,
.tooltip-wrap:focus::after,
.tooltip-wrap:focus-within::after,
.resource-icon-wrap:hover::after,
.resource-icon-wrap:focus::after,
.resource-icon-wrap:focus-within::after{
  opacity:1;
}


/* ==========================================================================
   FIXED COLUMN HEADERS
   ========================================================================== */

.rrh-colhead.is-fixed{
  position:fixed;
  top:215px;
  z-index:999;
  width:calc(50% - 195px);
  background:rgba(246,245,236,0.92);
  backdrop-filter:blur(8px);
  -webkit-backdrop-filter:blur(8px);
  border-radius:14px;
  border:1px solid rgba(122,106,78,.10);
  box-shadow:
    0 6px 14px rgba(0,0,0,0.04),
    0 18px 40px rgba(0,0,0,0.04);
  padding:10px 10px 12px;
}

.rrh-colhead.is-placeholder{
  visibility:hidden;
}

.rrh-colhead.is-fixed::after{
  content:"";
  position:absolute;
  left:0;
  right:0;
  bottom:-12px;
  height:16px;
  background:linear-gradient(
    to bottom,
    rgba(246,245,236,0.65),
    rgba(246,245,236,0)
  );
  pointer-events:none;
}

.rrh-colhead h2,
.rrh-colhead h3{
  margin:0 0 4px;
}

.rrh-colhead .rrh-pager{
  margin-top:6px;
}


/* ==========================================================================
   HELP NOW PAGE TYPOGRAPHY / TITLE AREA
   ========================================================================== */

#recovery-calendar-container.rrh-helpnow .site-social__divider{
  margin:8px 0 12px;
}

#recovery-calendar-container.rrh-helpnow .site-social__divider hr{
  margin:0;
}

#recovery-calendar-container.rrh-helpnow .meetings-resources{
  margin:0 0 -2px 0;
}

#recovery-calendar-container.rrh-helpnow .meetings-directions{
  margin:0 0 12px 0;
}

#recovery-calendar-container.rrh-helpnow p:last-child{
  margin-bottom:0;
}


/* ==========================================================================
   RESPONSIVE / MOBILE ADJUSTMENTS
   ========================================================================== */

@media (max-width:1200px){
  .aa-actions .btn-text{
    display:none !important;
  }
}

@media (max-width:980px){
  .aa-grid{
    grid-template-columns:1fr;
    gap:14px;
  }
}

@media (max-width:640px){
  .aa-card-top{
    flex-direction:column;
    align-items:flex-start;
  }

  .aa-tier-box,
  .aa-card-pill--status{
    align-self:flex-start;
  }

  .aa-actions{
    gap:7px;
  }

  .aa-actions .aa-btn,
  .aa-actions .aa-action-link,
  .aa-actions a,
  .aa-actions button{
    width:auto;
    max-width:100%;
  }
}

@media (max-width:600px){
  .aa-btn::after{
    content:"";
  }
}

/* =========================================================
   COMPACT BADGES / PILLS
   ========================================================= */

.rrh-badge-row,
.rrh-badge-row--inline{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:6px !important;
}

.rrh-badge,
.aa-tier-box,
.aa-resource-tag,
.aa-types-pill{
  min-height:24px !important;
  padding:4px 10px !important;
  font-size:12px !important;
  line-height:1 !important;
  font-weight:600 !important;
  border-radius:999px !important;
}

.rrh-badge--verified.rrh-badge--check{
  background:transparent !important;
  border:0 !important;
  padding:0 4px !important;
  color:#3f7f58 !important;
  font-size:14px !important;
  box-shadow:none !important;
}

.aa-resource-meta,
.aa-meeting-times{
  gap:6px !important;
}

.aa-meta-box{
  padding:6px 10px !important;
}

.aa-resource-card,
.aa-meeting-card{
  gap:7px !important;
  padding:10px 12px !important;
}

.aa-actions{
  padding-top:8px !important;
}

.aa-actions .aa-btn,
.aa-actions .aa-action-link,
.aa-actions a,
.aa-actions button{
  min-height:36px !important;
  height:36px !important;
  padding:0 12px !important;
}
