/* ==========================================================================
   components.css
   Reusable UI components used across templates/partials.
   Keep page-only layout/hero styles in page css (e.g. home.css, my_account.css).
   ========================================================================== */

/* ==========================================================================
   1) Shared "Card" wrapper used all over
   ========================================================================== */
.section-card{
  background:#fff;
  border-radius:16px;
  padding:16px;
  box-shadow:0 6px 18px rgba(0,0,0,.06);
  border:1px solid rgba(0,0,0,.06);
}

/* Let grid/flex children shrink instead of expanding columns (important fix) */
.section-card{ min-width:0; }

/* ==========================================================================
   2) Typography helpers used in multiple pages
   ========================================================================== */
.my-account-title{
  font-family: Farro, serif;
  font-weight:600;
  text-align:center;
  font-size:34px;
  color:#3e8f8a;
  padding:30px 0;
}
.my-account-visited{
  font-family: Farro, serif;
  color:#3e8f8a;
  font-size:18px;
  font-weight:500;
  margin-bottom:10px;
}

/* ==========================================================================
   3) Buttons used across HTMX chunks & lists
   ========================================================================== */
.btn-outline-soft.suggest-fix {
  margin-top: 15px;
  display: inline-block;
  border: 1px solid #eeeeee;
  color: #000000;
  font-weight: 400;
  font-size: 15px;
}

.btn-outline-soft{
  border:1px solid #d7dde3;
  background:#fff;
  color:#234c5e;
  padding:10px 14px;
  border-radius:12px;
  font-weight:700;
  text-decoration:none;
}
.btn-outline-soft:hover{ background:#f5f6f8; }

.plus-badge{
  width:22px;height:22px;border-radius:50%;
  background:rgba(255,255,255,.18);
  display:inline-flex;align-items:center;justify-content:center;
  font-size:16px; line-height:1;
}

/* Account page / actions (still reusable in other places) */
.btn-add-spot{
  background:#39b54a;
  font-family: Farro, serif;
  font-size:15px;
  color:#fff !important;
  border:none;
  padding:10px 14px;
  border-radius:999px;
  font-weight:500;
  text-decoration:none;
  display:inline-flex;
  align-items:center;
  gap:8px;
}
.btn-add-spot:hover{ filter:brightness(.95); transform:translateY(-1px); }

.btn-add-trail{
  background:#45a7d4;
  font-family: Farro, serif;
  font-size:15px;
  color:#fff !important;
  border:none;
  padding:10px 14px;
  border-radius:999px;
  font-weight:500;
  text-decoration:none;
  display:inline-flex;
  align-items:center;
  gap:8px;
}
.btn-add-trail:hover{ filter:brightness(.95); transform:translateY(-1px); }

.btn-build-trail{
  background:#45a7d4;
  font-family: Farro, serif;
  font-size:15px;
  color:#fff !important;
  border:none;
  padding:10px 14px;
  border-radius:999px;
  font-weight:500;
  text-decoration:none;
  display:inline-flex;
  align-items:center;
  gap:8px;
  opacity:.55;
  pointer-events:none;
}
.btn-build-trail.enabled{ opacity:1; pointer-events:auto; }

/* ==========================================================================
   4) Badges / pills (Spot status, etc.)
   ========================================================================== */
.badge-pill{ border-radius:999px; padding:6px 10px; font-size:12px; font-weight:700; }
.badge-pending{ background:#f5f6f8; color:#000; font-weight:300; font-size:13px; }
.badge-live{ background:rgba(76,175,80,.12); color:#2e7d32; border:1px solid rgba(76,175,80,.25); }

.badge-declined{
  background:rgba(255,77,79,.12);
  color:#b42318;
  border:1px solid rgba(255,77,79,.22);
  font-weight:400;
  font-size:13px;
}

/* ==========================================================================
   5) List containers used by Spot rows + Visit rows
   ========================================================================== */
.myspots-list{
  display:flex;
  flex-direction:column;
  gap:10px;
}

/* ==========================================================================
   6) Spot Row Card (partials: spot_row.html, visit_row.html)
   ========================================================================== */
.spot-row-card{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:14px;

  background:#fff;
  border:1px solid rgba(0,0,0,.06);
  border-radius:16px;
  padding:10px 12px;

  box-shadow:0 6px 18px rgba(0,0,0,.05);
  transition:transform .15s ease, box-shadow .15s ease, border-color .15s ease;

  /* critical: allow it to shrink inside split columns */
  min-width:0;
}
.spot-row-card:hover{
  transform:translateY(-1px);
  box-shadow:0 12px 26px rgba(0,0,0,.08);
  border-color:rgba(49,121,176,.18);
}

.spot-row-left{
  display:flex;
  align-items:center;
  gap:12px;
  min-width:0;
  flex:1;
}

.spot-thumb{
  width:120px;
  height:120px;
  border-radius:14px;
  overflow:hidden;
  background:#f5f6f8;
  border:1px solid rgba(0,0,0,.06);
  flex:0 0 auto;
}
.spot-thumb img{ width:100%; height:100%; object-fit:cover; display:block; }
.spot-thumb-fallback{
  width:100%;
  height:100%;
  display:flex;
  align-items:center;
  justify-content:center;
  color:#8a97a3;
  font-weight:800;
}

.spot-main{ min-width:0; flex:1; }

.spot-title-line{
  display:flex;
  align-items:center;
  gap:10px;
  min-width:0;
}

.spot-title{
  font-family: Farro, serif;
  font-size:15px;
  font-weight:500;
  color:#3179b0;
  text-decoration:none;

  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
  max-width:100%;
}
.spot-title:hover{ text-decoration:underline; text-underline-offset:2px; }

.spot-flag{
  width:22px;
  height:16px;
  object-fit:cover;
  border-radius:4px;
  border:1px solid rgba(0,0,0,.08);
  flex:0 0 auto;
}

.spot-crumbs{
  margin-top:6px;
  display:flex;
  flex-wrap:wrap;
  gap:6px;
  color:#234c5e;
  font-size:12px;
  opacity:.85;
}
.spot-crumbs span{
  background:#f5f6f8;
  border:1px solid rgba(0,0,0,.06);
  padding:4px 8px;
  border-radius:999px;
}

.spot-meta{ margin-top:6px; font-size:12px; color:#6c757d; }

/* Right-side pills */
.spot-row-right{
  display:flex;
  align-items:center;
  gap:10px;
  flex:0 0 auto;
  flex-wrap:wrap;
  justify-content:flex-end;

  /* critical: prevent column expansion */
  min-width:0;
}

.spot-pill{
  display:inline-flex;
  align-items:center;
  gap:6px;
  padding:6px 10px;
  border-radius:999px;
  background:#f5f6f8;
  border:1px solid rgba(0,0,0,.06);
  color:#234c5e;
  font-weight:600;
  font-size:12px;
  white-space:nowrap;
  text-decoration:none;
}
.spot-pill-edit:hover{ background:#eef2f7; transform:translateY(-1px); }

.spot-pill-ico{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:16px;
  height:16px;
  line-height:1;
  font-size:14px;
}

/* CSS-only "user" icon for visitors pill */
.spot-pill-ico-user{
  position:relative;
  width:16px;
  height:16px;
  opacity:.75;
}
.spot-pill-ico-user::before{
  content:"";
  position:absolute;
  top:1px;
  left:50%;
  transform:translateX(-50%);
  width:7px;
  height:7px;
  border-radius:999px;
  background:currentColor;
}
.spot-pill-ico-user::after{
  content:"";
  position:absolute;
  top:8px;
  left:50%;
  transform:translateX(-50%);
  width:12px;
  height:7px;
  border-radius:999px 999px 6px 6px;
  background:currentColor;
}

.spot-pill-visitors{ font-weight:500; }

/* Visit timestamp pill in visit_row.html */
.spot-visitors-pill{
  display:inline-flex;
  align-items:center;
  gap:6px;
  padding:6px 10px;
  border-radius:999px;
  background:#f5f6f8;
  border:1px solid rgba(0,0,0,.06);
  color:#234c5e;
  font-weight:800;
  font-size:12px;
  white-space:nowrap;
}
.spot-visitors-ico{ line-height:1; }

/* Checkbox mode */
.spot-cb{ display:none; margin-right:10px; }
.spot-cb input{ transform:translateY(1px); }
.spots-select-mode .spot-cb{ display:inline-flex !important; }
.spots-select-mode .spot-row-card{ cursor:pointer; }

.spot-row-card.is-selected{
  border-color:rgba(69,167,212,.55);
  box-shadow:0 10px 26px rgba(69,167,212,.14);
}

/* Mobile tuning */
@media (max-width: 576px){
  .spot-thumb{ width:86px; height:86px; border-radius:12px; }
  .spot-row-card{ padding:10px; }
  .spot-title{ font-size:14px; }
}

/* ==========================================================================
   7) SpotGroup Tile Card (partial: group_card.html)
   ========================================================================== */
.myg-grid{
  display:grid;
  gap:16px;
  grid-template-columns:repeat(auto-fill, minmax(240px, 1fr));
}

/* cap to 4 columns on wide screens (works great for listings) */
@media (min-width: 1200px){
  .myg-grid{ grid-template-columns:repeat(4, 1fr); }
}

.myg-card{
  position:relative; /* for overlay link */
  display:block;
  color:inherit;
  background:#fff;
  border-radius:16px;
  overflow:hidden;
  box-shadow:0 6px 18px rgba(0,0,0,.06);
  border:1px solid rgba(0,0,0,.06);
  transition:transform .18s ease, box-shadow .18s ease;

  /* allow shrink inside horizontal scrollers & split layouts */
  min-width:0;
}
.myg-card-link{
  position:absolute;
  inset:0;
  z-index:1;
  display:block;
}
.myg-card:hover{
  transform:translateY(-3px);
  box-shadow:0 14px 30px rgba(0,0,0,.10);
}

.myg-media{
  position:relative;
  height:240px;
  background:linear-gradient(135deg, rgba(49,121,176,.15), rgba(90,200,250,.18));
}
.myg-media img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}

.myg-title-overlay{
  position:absolute;
  left:0; right:0; bottom:0;
  background:linear-gradient(
    180deg,
    rgba(0,0,0,0) 0%,
    rgba(62,143,138,.85) 80%
  );
  color:#fff;
  padding:10px 12px;
}
.myg-title{
  font-family: Farro, serif;
  font-weight:800;
  font-size:20px;
  color:#fff;
  line-height:1.2;
  text-shadow:0 2px 10px rgba(0,0,0,.25);
}

/* Edit button (top-left) */
.myg-edit-btn{
  position:absolute;
  top:10px;
  left:10px;
  z-index:2;
  width:30px;
  height:30px;
  border-radius:999px;
  display:flex;
  align-items:center;
  justify-content:center;
  background:rgb(69 139 124 / 74%);
  border:1px solid rgba(255,255,255,.18);
  color:#fff;
  text-decoration:none;
  font-weight:300;
  line-height:1;
  backdrop-filter: blur(2px);
}
.myg-edit-btn:hover{ background:rgba(0,0,0,.58); transform:translateY(-1px); }

/* Badges stack (top-right) */
.myg-badges-stack{
  position:absolute;
  top:10px;
  right:10px;
  z-index:2;
  display:flex;
  flex-direction:column;
  align-items:flex-end;
  gap:8px;
  pointer-events:auto;
}

.myg-badge{
  display:inline-flex;
  align-items:center;
  justify-content:flex-end;
  gap:6px;
  padding:4px 9px;
  border-radius:999px;
  font-weight:400;
  font-size:11px;
  background:rgb(24 99 156 / 59%);
  color:#fff;
  backdrop-filter: blur(2px);
  pointer-events:auto;
}
.myg-badge-ico{ font-size:12px; line-height:1; opacity:.95; }
.myg-badge-warn{ background:rgb(24 99 156 / 59%); font-weight:400; }

/* Progress footer */
.myg-progress-wrap{
  position:relative;
  z-index:0;
  padding:10px 12px 12px;
  background:#fff;
  border-top:1px solid rgba(0,0,0,.06);
}
.myg-progress{
  height:10px;
  border-radius:999px;
  background:rgba(0,0,0,.06);
  overflow:hidden;
}
.myg-progress-bar{
  height:100%;
  border-radius:999px;
  background:rgba(62,143,138,.85);
  width:0%;
  transition:width .25s ease;
}
.myg-progress-info{
  margin-top:8px;
  font-size:12px;
  font-weight:800;
  color:#234c5e;
  text-align:right;
  opacity:.9;
}
@media (max-width: 576px){
  .myg-progress-wrap{ padding:10px; }
  .myg-progress{ height:9px; }
  .myg-progress-info{ font-size:11px; }
}

/* ==========================================================================
   8) Spot Tile (partial: spot_tile.html)  [move from home.css -> components.css]
   ========================================================================== */
.spot-tile{
  background:#fff;
  border-radius:16px;
  overflow:hidden;
  border:1px solid rgba(0,0,0,.06);
  box-shadow:0 6px 18px rgba(0,0,0,.06);
  transition:transform .18s ease, box-shadow .18s ease;

  /* plays nice in scrollers */
  min-width:0;
}
.spot-tile:hover{
  transform:translateY(-3px);
  box-shadow:0 14px 30px rgba(0,0,0,.10);
}
.spot-tile-link{ color:inherit; text-decoration:none; display:block; }
.spot-tile-media{ position:relative; height:180px; background:#f5f6f8; }
.spot-tile-media img{ width:100%; height:100%; object-fit:cover; display:block; object-position:top;}
.spot-tile-fallback{
  height:100%;
  display:flex;
  align-items:center;
  justify-content:center;
  font-weight:800;
  color:#8a97a3;
}

.spot-tile-badge{
    position: absolute;
    left: 10px;
    top: 10px;
    padding: 5px 6px;
    border-radius: 999px;
    background: rgb(49 121 176 / 65%);
    color: #fff;
    font-weight: 300;
    font-size: 10px;
    backdrop-filter: blur(2px);
}

/* SpotType icon overlay (top-left) */
.spot-type-icon{
  position:absolute;
  top:10px;
  left:10px;
  z-index:2;

  display:flex;
  align-items:center;
  justify-content:center;

  /* no visible background */
  background: transparent;
  border: 0;
  padding: 0;

  /* subtle readability boost */
  filter: drop-shadow(0 2px 6px rgba(0,0,0,.35));
}

.spot-type-icon img{
  height:25px !important;
  width:25px !important;
  display:block;
}

.spot-tile-body{ padding:12px; }
.spot-tile-title{
  font-family: Farro, serif;
  font-weight:800;
  font-size:15px;
  display:flex;
  align-items:center;
  gap:8px;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.spot-tile-flag{
  width:20px;
  height:14px;
  border-radius:4px;
  object-fit:cover;
  border:1px solid rgba(0,0,0,.08);
  flex:0 0 auto;
}
.spot-tile-meta{
  margin-top:6px;
  font-size:12px;
  color:#6c757d;
  display:flex;
  align-items:center;
  gap:6px;
}
.spot-tile-meta .dot{ opacity:.5; }

/* ==========================================================================
   9) Visitor Row (partial: visitor_row.html)
   ========================================================================== */
.visitor-row{
  display:flex;
  align-items:center;
  gap:10px;
  padding:10px 12px;
  border:1px solid rgba(0,0,0,.06);
  border-radius:14px;
  background:#fff;
  box-shadow:0 6px 18px rgba(0,0,0,.05);
}
.visitor-avatar{
  width:34px;
  height:34px;
  border-radius:999px;
  display:flex;
  align-items:center;
  justify-content:center;
  background:rgba(49,121,176,.10);
  color:#3179b0;
  flex:0 0 auto;
}
.visitor-avatar svg{ fill:currentColor; opacity:.9; }
.visitor-meta{ min-width:0; }
.visitor-name{
  font-family: Farro, serif;
  font-weight:800;
  font-size:14px;
  color:#234c5e;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.visitor-time{ font-size:12px; color:#6c757d; }

/* ==========================================================================
   10) "Ranks" block (used on my-account, but can be reused)
   ========================================================================== */
.rank-titles{
  color:#3179b0;
  font-family: Farro, serif;
  font-size:17px;
  font-weight:500;
}
.rank-grid{
  display:grid;
  grid-template-columns:repeat(5, 1fr);
  gap:16px;
}
@media (max-width: 992px){ .rank-grid{ grid-template-columns:repeat(2, 1fr); } }
@media (max-width: 576px){ .rank-grid{ grid-template-columns:1fr; } }

.rank-list{ list-style:none; margin:0; padding:0; }
.rank-list li{
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding:8px 0;
  border-bottom:1px dashed #eee;
}
.rank-list li:last-child{ border-bottom:0; }
.rank-name{
  font-weight:300;
  font-size:13px;
  font-family: Farro, serif;
  color:#333;
  min-width:0;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.rank-count{
  background:#f5f6f8;
  border-radius:999px;
  padding:4px 10px;
  font-size:12px;
  flex:0 0 auto;
}
.rank-actions{
  display:flex;
  justify-content:flex-end;
  margin-top:8px;
}
.rank-actions button{
  border:1px solid #ddd;
  background:#fafafa;
  border-radius:8px;
  padding:6px 10px;
  cursor:pointer;
}
.rank-actions button:hover{ background:#f0f0f0; }
.hidden-row{ display:none; }

ul.rank-list a{ color:#000; text-decoration:none; }

/* ==========================================================================
   11) Stats tiles (my-account / dashboards)
   ========================================================================== */
.stat-tile{
  background:#fff;
  border-radius:16px;
  padding:16px;
  box-shadow:0 6px 18px rgba(0,0,0,.06);
  border:1px solid rgba(0,0,0,.06);
}
.stat-num{ font-weight:800; font-size:28px; line-height:1; }
.stat-label{
  font-weight:300;
  font-size:13px;
  font-family: Farro, serif;
  color:#333;
  margin-top:6px;
}

/* ==========================================================================
   12) "My cards" grid (my-account)
   ========================================================================== */
.card-grid{
  display:grid;
  gap:16px;
  grid-template-columns:repeat(auto-fill, minmax(220px, 1fr));
}
.user-card{
  overflow:hidden;
  background:#fff;
}
.user-card img{ width:100%; object-fit:cover; display:block;}
@media (max-width: 520px){
  .card-grid{ grid-template-columns:repeat(2, minmax(0, 1fr)); }
  .user-card img{ height:auto; }
}
.card-date {
  color: #999;
  font-size: 11px;
}

/* ==========================================================================
   13) Generic toolbars used in multiple sections
   ========================================================================== */
.toolbar{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:12px;
  flex-wrap:wrap;
}
.toolbar .sort{ min-width:220px; }

.action-row{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:12px;
  flex-wrap:wrap;
}

/* ==========================================================================
   14) Trail builder bar (my-account, but reusable component)
   ========================================================================== */
.trail-builder-bar{
  display:flex;
  align-items:center;
  gap:10px;
  flex-wrap:wrap;
  padding:10px 12px;
  border-radius:12px;
  background:#f5f6f8;
  border:1px solid #eee;
}
.trail-builder-hint{ color:#555; font-size:13px; }

.pick-first-hint{
  font-family: Farro, serif;
  display:inline-flex;
  align-items:center;
  white-space:nowrap;
  padding:10px 12px;
  border-radius:999px;
  font-weight:500;
  font-size:15px;
  color:#fff;
  background:#ff4d4f;
  box-shadow:0 10px 18px rgba(255,77,79,.18);
  animation:pulseHint 1.2s ease-in-out infinite;
}
@keyframes pulseHint{
  0%,100%{ transform:translateY(0); filter:brightness(1); }
  50%{ transform:translateY(-1px); filter:brightness(1.05); }
}

/* ==========================================================================
   15) Split layout helpers used on account page
   NOTE: truly page-specific layout could move to my_account.css later.
   ========================================================================== */
.my-account-split{
  display:grid;
  gap:16px;
  grid-template-columns:1fr;
}
@media (min-width: 992px){
  .my-account-split{ grid-template-columns:1fr 1fr; align-items:start; }
}
/* critical: allow children to shrink */
.my-account-split > *{ min-width:0; }

/* ==========================================================================
   16) Profile header component (account)
   ========================================================================== */
.my-account-headbar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  flex-wrap:wrap;
  margin-bottom:8px;
}

.btn-edit-account{
  background:#378b86;
  font-family: Farro, serif;
  font-size:15px;
  color:#fff !important;
  border:none;
  padding:10px 14px;
  border-radius:999px;
  font-weight:500;
  text-decoration:none;
  display:inline-flex;
  align-items:center;
  gap:8px;
}
.btn-edit-account:hover{
  background:#4cb292;
  filter:brightness(.98);
  transform:translateY(-1px);
}

.profile-head{
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:10px;
  padding:18px 0 10px;
}
.avatar-circle{
  width:96px;
  height:96px;
  border-radius:999px;
  overflow:hidden;
  background:#fff;
  border:3px solid rgba(62,143,138,.22);
  box-shadow:0 10px 22px rgba(0,0,0,.08);
  display:flex;
  align-items:center;
  justify-content:center;
}
.avatar-circle img{ width:100%; height:100%; object-fit:cover; display:block; }
.avatar-fallback{
  width:100%;
  height:100%;
  display:flex;
  align-items:center;
  justify-content:center;
  background:rgba(49,121,176,.10);
  color:#3179b0;
  font-weight:900;
  font-family: Farro, serif;
  font-size:34px;
}
.profile-username{
  font-family: Farro, serif;
  font-weight:800;
  font-size:28px;
  color:#3e8f8a;
  text-align:center;
  line-height:1.15;
}
.profile-sub{
  font-size:13px;
  color:#6c757d;
  text-align:center;
  max-width:520px;
}
@media (max-width: 576px){
  .avatar-circle{ width:84px; height:84px; }
  .profile-username{ font-size:24px; }
}

/* ===== Featured Group card (home) ===== */
.fg-card{
  position:relative;
  display:block;
  background:#fff;
  border-radius:16px;
  overflow:hidden;
  border:1px solid rgba(0,0,0,.06);
  box-shadow:0 6px 18px rgba(0,0,0,.06);
  transition:transform .18s ease, box-shadow .18s ease;
}

.fg-card:hover{
  transform:translateY(-3px);
  box-shadow:0 14px 30px rgba(0,0,0,.10);
}

.fg-card-link{
  position:absolute;
  inset:0;
  z-index:1;
  display:block;
}

.fg-media{
  position:relative;
  height:240px;
  background:linear-gradient(135deg, rgba(49,121,176,.15), rgba(90,200,250,.18));
}

.fg-media img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}

.fg-fallback{
  height:100%;
  display:flex;
  align-items:center;
  justify-content:center;
  font-weight:800;
  color:#8a97a3;
}

.fg-title-overlay{
  position:absolute;
  left:0; right:0; bottom:0;
  padding:10px 12px;
  background: linear-gradient(
    180deg,
    rgba(0,0,0,0) 0%,
    rgba(62,143,138,.85) 80%
  );
  color:#fff;
}

.fg-title{
  font-family: Farro, serif;
  font-weight:800;
  font-size:20px;
  line-height:1.2;
  color:#fff;
  text-shadow:0 2px 10px rgba(0,0,0,.25);
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}

/* badges on top-right */
.fg-badges{
  position:absolute;
  top:10px;
  right:10px;
  z-index:2;           /* above link overlay */
  display:flex;
  flex-direction:column;
  align-items:flex-end;
  gap:8px;
  pointer-events:auto;
}

.fg-badge{
  display:inline-flex;
  align-items:center;
  gap:6px;
  padding:4px 9px;
  border-radius:999px;
  font-weight:600;
  font-size:11px;
  background: rgba(24, 99, 156, .59);
  color:#fff;
  backdrop-filter: blur(2px);
}

.fg-badge-ico{ font-size:12px; line-height:1; opacity:.95; }


/* ===== Explomaniacs: talks split ===== */
.talks-split{
  display:grid;
  gap:16px;
  grid-template-columns: 1fr;
}
@media (min-width: 992px){
  .talks-split{
    grid-template-columns: 1fr 1fr;
    align-items:start;
  }
}

.talk-card{ padding:16px; }
.talk-list{ display:flex; flex-direction:column; gap:10px; }

/* Reuse your “discussion” language */
.talk-item{
  border-top: 1px dashed #eee;
  padding-top: 10px;
  margin-top: 0;
}
.talk-item:first-child{ border-top:0; padding-top:0; }

.talk-meta{
  font-size: .85rem;
  color:#666;
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  align-items:center;
}

.talk-kind{ font-weight:700; }

.talk-badge{
  display:inline-block;
  padding:2px 8px;
  border-radius:999px;
  font-size:.75rem;
  border:1px solid #e5e7eb;
  background:#f9fafb;
  color:#111;
}
.talk-badge.visited{
  border-color:#bbf7d0;
  background:#ecfdf5;
  color:#065f46;
}

.talk-replies-pill{
  display:inline-flex;
  align-items:center;
  gap:6px;
  padding:2px 8px;
  border-radius:999px;
  font-size:.75rem;
  border:1px solid rgba(0,0,0,.08);
  background:#f5f6f8;
  color:#234c5e;
  font-weight:700;
}

.talk-target{
  margin-top:6px;
  display:flex;
  align-items:center;
  gap:8px;
  flex-wrap:wrap;
  font-size:12px;
}

.pill{
  display:inline-flex;
  align-items:center;
  padding:3px 8px;
  border-radius:999px;
  font-size:12px;
  font-weight:700;
  border:1px solid rgba(0,0,0,.08);
  background:#f5f6f8;
  color:#234c5e;
}
.pill-spot{ background: rgba(76,178,146,.12); border-color: rgba(76,178,146,.22); color:#2b6b5b; }
.pill-group{ background: rgba(69,167,212,.12); border-color: rgba(69,167,212,.22); color:#1f5f7a; }

.target-link{
  color:#3179b0;
  text-decoration:none;
  font-weight:700;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
  max-width: 100%;
}
.target-link:hover{ text-decoration:underline; text-underline-offset:2px; }

.talk-body{
  margin-top:6px;
  color:#111;
  font-size:14px;
  line-height:1.35;
}

/* clamp to keep the feed compact */
.talk-body--clamp{
  display:-webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow:hidden;
}

/* small dot */
.talk-meta .dot{ opacity:.5; }

/* ===== Clickable talk item (overlay link) ===== */
.talk-item--click{
  position:relative;
  padding:12px;
  border:1px solid rgba(0,0,0,.06);
  border-radius:14px;
  background:#fff;
  box-shadow:0 6px 18px rgba(0,0,0,.04);
  transition:transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}

.talk-item--click:hover{
  transform:translateY(-2px);
  box-shadow:0 14px 30px rgba(0,0,0,.08);
  border-color:rgba(49,121,176,.20);
}

/* overlay link covers entire tile */
.talk-item-link{
  position:absolute;
  inset:0;
  z-index:1;
  display:block;
  border-radius:inherit;
}

/* Ensure inner clickable elements sit ABOVE overlay */
.talk-meta,
.talk-target,
.talk-body{
  position:relative;
  z-index:2;
}

/* Keep inner links clickable and visually consistent */
.talk-target a,
.talk-meta a{
  position:relative;
  z-index:3;
}

/* Since we now have a “card”, remove dashed top border for compact list look */
.talk-item--compact{
  border-top:0;
  padding-top:12px;
}

/* spacing between items (your talk-list already has gap) */
.talk-item--compact:first-child{
  padding-top:12px;
}

/* Card-Spot star next to flag */
.spot-card-star{
  display:inline-flex;
  align-items:center;
  margin-left:6px;
  font-size:14px;
  line-height:1;
  transform: translateY(1px); /* aligns nicely with flag */
  cursor: help;
  user-select:none;
  opacity:.95;
}

.spot-card-star:hover{
  opacity:1;
}

/* Spot catalogue on spots.html */

.spots-tiles-grid{
  display:grid;
  gap:16px;
  grid-template-columns:repeat(auto-fill, minmax(240px, 1fr));
}