/* City page design — scoped from new_delhi_city_page.html
 * Version: 2.0 - Updated with horizontal story layout
 * Last modified: 2026-03-10
 */

.lnm-cp-wrap {
  --red: #c0392b;
  --red-dark: #a93226;
  --orange: #e67e22;
  --gold: #f39c12;
  --text: #1a1a1a;
  --text-mid: #444;
  --text-light: #777;
  --bg: #f4f2ee;
  --white: #fff;
  --border: #ddd;
  --card-bg: #fff;
  --tag-bg: rgba(0,0,0,0.6);
    font-family: 'Lato', sans-serif;
    background: var(--bg);
    color: var(--text);
    font-size: 14px;
    line-height: 1.5;
  }

  /* ── HERO ── */
  .lnm-cp-wrap .hero {
    position: relative;
    width: 100%;
    height: 320px;
    overflow: hidden;
    background: linear-gradient(135deg, #8b6914 0%, #c4850a 25%, #e09b3d 45%, #d4884a 60%, #9b6b3e 80%, #7a5c3a 100%);
    background-size: cover;
    background-position: center;
  }
  /* API-generated city hero image */
  .lnm-cp-wrap .hero.lnm-cp-hero-has-bg {
    background-size: cover;
    background-position: center;
  }
  .lnm-cp-wrap .hero.lnm-cp-hero-has-bg .hero-skyline { opacity: 0.25; }
  .lnm-cp-wrap .hero-skyline {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 0;
    padding-bottom: 40px;
    opacity: 0.9;
  }
  /* India Gate silhouette */
  .lnm-cp-wrap .sil-india-gate {
    width: 90px; height: 130px;
    background: rgba(60,40,20,0.75);
    clip-path: polygon(40% 100%, 40% 45%, 35% 45%, 30% 35%, 30% 25%, 32% 25%, 32% 20%, 38% 20%, 38% 5%, 42% 0%, 46% 5%, 46% 20%, 52% 20%, 52% 25%, 54% 25%, 54% 35%, 49% 45%, 44% 45%, 44% 100%);
    margin-right: 20px;
  }
  /* Lotus Temple silhouette */
  .lnm-cp-wrap .sil-lotus {
    width: 110px; height: 110px;
    background: rgba(220,200,170,0.85);
    clip-path: polygon(50% 0%, 38% 30%, 20% 40%, 30% 60%, 25% 100%, 50% 85%, 75% 100%, 70% 60%, 80% 40%, 62% 30%);
    margin-right: 10px;
  }
  /* Qutub Minar */
  .lnm-cp-wrap .sil-qutub {
    width: 30px; height: 160px;
    background: rgba(70,45,25,0.8);
    clip-path: polygon(35% 100%, 35% 15%, 30% 10%, 28% 5%, 35% 0%, 50% 0%, 57% 5%, 55% 10%, 50% 15%, 50% 100%);
    margin-left: 20px;
  }
  /* Jama Masjid */
  .lnm-cp-wrap .sil-masjid {
    width: 140px; height: 100px;
    background: rgba(80,55,30,0.75);
    clip-path: polygon(0% 100%, 0% 60%, 15% 55%, 15% 30%, 18% 25%, 20% 5%, 22% 0%, 23% 5%, 25% 25%, 28% 30%, 28% 55%, 35% 55%, 35% 40%, 40% 35%, 45% 40%, 45% 55%, 55% 55%, 55% 40%, 60% 35%, 65% 40%, 65% 55%, 72% 55%, 72% 30%, 75% 25%, 77% 5%, 79% 0%, 80% 5%, 82% 25%, 85% 30%, 85% 55%, 100% 60%, 100% 100%);
    margin-left: 15px;
  }
  .lnm-cp-wrap .hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0.1) 60%, transparent 100%);
  }
  .lnm-cp-wrap .hero-tagline {
    position: absolute;
    bottom: 70px;
    left: 50%;
    transform: translateX(-50%);
    color: #fff;
    font-family: 'Playfair Display', serif;
    font-size: 22px;
    font-weight: 400;
    text-align: center;
    white-space: nowrap;
    text-shadow: 0 2px 12px rgba(0,0,0,0.6);
    letter-spacing: 0.3px;
  }
  .lnm-cp-wrap .hero-nav {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 4px;
    background: rgba(255,255,255,0.95);
    border-radius: 4px;
    padding: 4px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.25);
  }
  .lnm-cp-wrap .hero-nav a {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 18px;
    font-size: 13px;
    font-weight: 700;
    color: var(--text);
    text-decoration: none;
    border-radius: 3px;
    white-space: nowrap;
    transition: background 0.2s;
    letter-spacing: 0.2px;
  }
  .lnm-cp-wrap .hero-nav a:hover { background: #f0ede8; }
  .lnm-cp-wrap .hero-nav a .icon { font-size: 14px; }
  /* Tabs as buttons (WordPress) */
  .lnm-cp-wrap .hero-nav button {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 18px;
    font-size: 13px;
    font-weight: 700;
    color: var(--text);
    text-decoration: none;
    border-radius: 3px;
    white-space: nowrap;
    transition: background 0.2s;
    letter-spacing: 0.2px;
    border: none;
    background: transparent;
    cursor: pointer;
    font-family: inherit;
  }
  .lnm-cp-wrap .hero-nav button:hover { background: #f0ede8; }
  .lnm-cp-wrap .hero-nav button.lnm-cp-tab-active {
    background: #1a1a1a;
    color: #fff;
  }
  /* wpautop/the_content may insert <br> between buttons if markup has newlines — hide only inside tab nav */
  .lnm-cp-wrap .hero-nav.lnm-city-hub-tabs br {
    display: none;
  }

  /* ── WRAPPER ── */
  .lnm-cp-wrap .page-wrap { margin: 0 auto; padding: 18px 12px; }
  /* Shortcode wrappers often add outer padding — strip inside our cards/grids */
  .lnm-cp-wrap .lnm-page-content { max-width: none !important; padding: 0 !important; margin: 0 !important; }

  /* ── TOP 3-COL ── */
  .lnm-cp-wrap .top-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 14px;
    margin-bottom: 28px;
  }

  /* cards */
  .lnm-cp-wrap .card {
    background: var(--card-bg);
    border-radius: 8px;
    box-shadow: 0 1px 6px rgba(0,0,0,0.08);
    padding: 16px;
    overflow: hidden;
  }
  .lnm-cp-wrap .card-title {
    font-family: 'Playfair Display', serif;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 14px;
    color: var(--text);
  }
  .lnm-cp-wrap .card-title span {
    font-style: italic;
    font-weight: 400;
    color: var(--text-mid);
  }

  /* Ensure card content area doesn't override story-item layout */
  .lnm-cp-wrap .card > *:not(.card-title) {
    /* display: block; */
  }

  /* Top Stories - Horizontal Layout (Image Left, Content Right) - EXACT MATCH TO REFERENCE */
  .lnm-cp-wrap .story-item {
    display: flex !important;
    flex-direction: row !important;
    gap: 10px;
    padding: 12px 0;
    border-bottom: 1px solid #f0ede8;
    align-items: flex-start;
  }
  .lnm-cp-wrap .story-item:last-child { border-bottom: none; }

  /* Story Thumbnail - Rectangular Landscape Image on Left (matches reference design) */
  .lnm-cp-wrap .story-thumb {
    width: 90px !important;
    height: 60px !important;
    min-width: 90px !important;
    object-fit: cover;
    border-radius: 4px;
    background: linear-gradient(135deg, #c9a96e, #8b6914);
    flex-shrink: 0;
    display: block !important;
  }
  /* Ensure img tags within story-thumb also respect dimensions */
  .lnm-cp-wrap img.story-thumb {
    width: 90px !important;
    height: 60px !important;
    min-width: 90px !important;
    object-fit: cover;
    border-radius: 4px;
  }
  /* Gradient fallbacks for story thumbs */
  .lnm-cp-wrap .story-thumb-grad-0 { background: linear-gradient(135deg,#c9a96e,#8b5e3c); }
  .lnm-cp-wrap .story-thumb-grad-1 { background: linear-gradient(135deg,#7a9eca,#3d5a80); }
  .lnm-cp-wrap .story-thumb-grad-2 { background: linear-gradient(135deg,#e8c070,#b07030); }
  .lnm-cp-wrap .story-thumb-grad-3 { background: linear-gradient(135deg,#a8d8a8,#5a9e6f); }

  /* Story Content Container */
  .lnm-cp-wrap .story-item > div {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    flex: 1;
    min-width: 0; /* Prevent overflow */
  }

  /* Story Content - Compact Style to Match Reference */
  .lnm-cp-wrap .story-meta {
    font-size: 9px;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 3px;
    font-weight: 600;
  }
  .lnm-cp-wrap .story-title {
    font-size: 14px;
    font-weight: 700;
    line-height: 1.25;
    color: var(--text);
    margin-bottom: 3px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    word-wrap: break-word;
  }
  .lnm-cp-wrap .story-byline {
    font-size: 11px;
    color: var(--text-light);
    line-height: 1.35;
    margin-bottom: 4px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .lnm-cp-wrap .read-more {
    font-size: 11px;
    color: var(--red);
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    margin-top: 0;
  }
  .lnm-cp-wrap .read-more:hover {
    text-decoration: underline;
    color: var(--red-dark);
  }

  /* Today in Delhi weather */
  .lnm-cp-wrap .weather-top {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
  }
  .lnm-cp-wrap .weather-icon { font-size: 36px; }
  .lnm-cp-wrap .weather-temp { font-size: 38px; font-weight: 300; font-family: 'Source Serif 4', serif; line-height: 1; }
  .lnm-cp-wrap .weather-temp sup { font-size: 18px; font-weight: 400; vertical-align: super; }
  .lnm-cp-wrap .weather-details { font-size: 11px; color: var(--text-light); margin-top: 4px; }
  .lnm-cp-wrap .weather-row { display: flex; gap: 8px; font-size: 11px; color: var(--text-light); margin-bottom: 3px; }
  .lnm-cp-wrap .weather-badge {
    display: inline-block;
    padding: 1px 6px;
    border-radius: 10px;
    font-size: 10px;
    font-weight: 700;
    margin-right: 3px;
  }
  .lnm-cp-wrap .badge-yellow { background: #fef3cd; color: #856404; }
  .lnm-cp-wrap .badge-blue { background: #d1ecf1; color: #0c5460; }
  .lnm-cp-wrap .badge-green { background: #d4edda; color: #155724; }
  .lnm-cp-wrap .prayer-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; margin: 8px 0; font-size: 12px; }
  .lnm-cp-wrap .prayer-label { color: var(--text-light); font-size: 11px; }
  .lnm-cp-wrap .prayer-time { font-weight: 700; }
  .lnm-cp-wrap .sunset-label { font-size: 11px; color: var(--text-light); }
  .lnm-cp-wrap .info-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 7px 0;
    border-top: 1px solid #f0ede8;
    font-size: 12px;
    color: var(--text-mid);
    text-decoration: none;
    cursor: pointer;
  }
  .lnm-cp-wrap .info-link:hover { color: var(--red); }
  .lnm-cp-wrap .info-link .ico { margin-right: 6px; font-size: 13px; }
  .lnm-cp-wrap .weather-btn {
    display: block;
    width: 100%;
    margin-top: 10px;
    padding: 10px;
    background: var(--red);
    color: #fff !important;
    border: none;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 700;
    text-align: center;
    cursor: pointer;
    letter-spacing: 0.3px;
    transition: background 0.2s;
    text-decoration: none;
    box-sizing: border-box;
  }
  .lnm-cp-wrap .weather-btn:hover {
    background: var(--red-dark);
    color: #fff !important;
    text-decoration: none;
  }

  /* What's Happening — handled by city-hub.css .lnm-event-* rules */
  .lnm-cp-wrap .view-details {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 8px;
    font-size: 12px;
    font-weight: 700;
    color: var(--text);
    cursor: pointer;
  }
  .lnm-cp-wrap .view-details:hover { color: var(--red); }

  /* ── FEATURED STORIES ── */
  .lnm-cp-wrap .section-header {
    font-family: 'Playfair Display', serif;
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 14px;
    color: var(--text);
  }
  .lnm-cp-wrap .section-header span {
    font-style: italic;
    font-weight: 400;
    color: var(--text-mid);
  }
  .lnm-cp-wrap .featured-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 28px;
    align-items: start;
  }
  .lnm-cp-wrap .feat-card {
    background: var(--card-bg);
    border-radius: 8px;
    box-shadow: 0 1px 6px rgba(0,0,0,0.08);
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
  }
  .lnm-cp-wrap .feat-card:hover { transform: translateY(-2px); box-shadow: 0 4px 16px rgba(0,0,0,0.13); }
  .lnm-cp-wrap .feat-img {
    position: relative;
    height: 130px;
    overflow: hidden;
  }
  .lnm-cp-wrap .feat-img img,
  .lnm-cp-wrap .feat-img-bg,
  .lnm-cp-wrap .feat-img-photo {
    width: 100%; height: 100%;
    object-fit: cover;
    display: block;
  }
  /* Ensure img.feat-img-photo has proper sizing */
  .lnm-cp-wrap img.feat-img-photo {
    width: 100%; height: 130px;
    object-fit: cover;
    display: block;
  }
  .lnm-cp-wrap .feat-img-bg { background: linear-gradient(135deg, #c9a96e 0%, #7a5c3a 100%); }
  .lnm-cp-wrap .feat-img-bg.metro { background: linear-gradient(135deg, #4a6fa5 0%, #2c3e50 100%); }
  .lnm-cp-wrap .feat-img-bg.night { background: linear-gradient(135deg, #c0392b 0%, #8e44ad 100%); }
  .lnm-cp-wrap .feat-img-bg.fest { background: linear-gradient(135deg, #e67e22 0%, #c0392b 100%); }
  .lnm-cp-wrap .feat-tag {
    position: absolute;
    bottom: 8px; left: 8px;
    background: var(--tag-bg);
    color: #fff;
    font-size: 9px;
    font-weight: 900;
    letter-spacing: 0.8px;
    padding: 3px 7px;
    border-radius: 3px;
    text-transform: uppercase;
  }
  .lnm-cp-wrap .feat-tag.news { background: rgba(192,57,43,0.85); }
  .lnm-cp-wrap .feat-tag.community { background: rgba(52,73,94,0.85); }
  .lnm-cp-wrap .feat-tag.culture { background: rgba(230,126,34,0.85); }
  .lnm-cp-wrap .feat-body { padding: 10px 12px 12px; }
  .lnm-cp-wrap .feat-title {
    font-size: 13px;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 4px;
    overflow-wrap: anywhere;
    word-break: break-word;
  }
  .lnm-cp-wrap .feat-desc { font-size: 11px; color: var(--text-light); line-height: 1.4; margin-bottom: 6px; }

  /* ── VOICES + FROM THE STREETS ── */
  .lnm-cp-wrap .mid-grid {
    display: grid;
    grid-template-columns: 1fr 1.6fr;
    gap: 14px;
    margin-bottom: 28px;
  }
  .lnm-cp-wrap .voices-card {
    background: var(--card-bg);
    border-radius: 8px;
    box-shadow: 0 1px 6px rgba(0,0,0,0.08);
    padding: 20px;
    position: relative;
    overflow: hidden;
  }
  .lnm-cp-wrap .voices-bg {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 100px;
    background: linear-gradient(to top, rgba(180,140,80,0.15), transparent);
  }
  .lnm-cp-wrap .voices-emoji { font-size: 22px; margin-bottom: 6px; display: block; }
  .lnm-cp-wrap .voices-title {
    font-family: 'Playfair Display', serif;
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 8px;
  }
  .lnm-cp-wrap .voices-title span { font-style: italic; font-weight: 400; color: var(--text-mid); }
  .lnm-cp-wrap .voices-desc { font-size: 12px; color: var(--text-mid); line-height: 1.5; margin-bottom: 14px; }
  .lnm-cp-wrap .voices-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    background: var(--red);
    color: #fff;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
    transition: background 0.2s;
  }
  .lnm-cp-wrap .voices-btn:hover { background: var(--red-dark); }

  .lnm-cp-wrap .streets-card {
    background: var(--card-bg);
    border-radius: 8px;
    box-shadow: 0 1px 6px rgba(0,0,0,0.08);
    padding: 16px;
  }
  .lnm-cp-wrap .streets-header {
    font-family: 'Playfair Display', serif;
    font-size: 18px;
    font-weight: 400;
    margin-bottom: 12px;
    color: var(--text);
  }
  .lnm-cp-wrap .streets-header span { color: var(--red); font-weight: 700; }
  .lnm-cp-wrap .streets-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }
  .lnm-cp-wrap .opinion-item { padding-bottom: 10px; border-bottom: 1px solid #f0ede8; margin-bottom: 10px; }
  .lnm-cp-wrap .opinion-item:last-child { border-bottom: none; margin-bottom: 0; }
  .lnm-cp-wrap .opinion-type { font-size: 10px; font-weight: 900; letter-spacing: 0.8px; color: var(--text-light); text-transform: uppercase; margin-bottom: 4px; }
  .lnm-cp-wrap .opinion-row { display: flex; gap: 8px; align-items: flex-start; }
  .lnm-cp-wrap .opinion-avatar {
    width: 36px; height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, #bdc3c7, #7f8c8d);
    flex-shrink: 0;
    object-fit: cover;
    display: block;
  }
  /* Ensure img.opinion-avatar has proper sizing */
  .lnm-cp-wrap img.opinion-avatar {
    width: 36px; height: 36px;
    border-radius: 50%;
    object-fit: cover;
  }
  .lnm-cp-wrap .opinion-avatar-grad-0 { background: linear-gradient(135deg,#bdc3c7,#7f8c8d); }
  .lnm-cp-wrap .opinion-avatar-grad-1 { background: linear-gradient(135deg,#c9a96e,#7a5c3a); }
  .lnm-cp-wrap .opinion-text { font-size: 12px; font-weight: 700; line-height: 1.3; }
  .lnm-cp-wrap .opinion-sub { font-size: 10px; color: var(--text-light); margin-top: 2px; }

  .lnm-cp-wrap .streets-feature {
    background: #f9f7f4;
    border-radius: 6px;
    padding: 10px;
  }
  .lnm-cp-wrap .streets-feat-label { font-size: 10px; font-weight: 900; color: var(--text-light); text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 6px; }
  .lnm-cp-wrap .streets-feat-img {
    width: 100%;
    height: 80px;
    border-radius: 4px;
    background: linear-gradient(135deg, #e8d5a3, #c9a96e);
    margin-bottom: 8px;
    object-fit: cover;
    display: block;
  }
  /* Ensure img.streets-feat-img has proper sizing */
  .lnm-cp-wrap img.streets-feat-img {
    width: 100%;
    height: 80px;
    border-radius: 4px;
    object-fit: cover;
  }
  .lnm-cp-wrap .streets-feat-title { font-size: 12px; font-weight: 700; line-height: 1.3; margin-bottom: 4px; }
  .lnm-cp-wrap .streets-feat-desc { font-size: 11px; color: var(--text-light); line-height: 1.4; margin-bottom: 6px; }

  /* ── FAITH & HERITAGE ── */
  .lnm-cp-wrap .faith-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
  }
  .lnm-cp-wrap .faith-toggle {
    font-size: 12px;
    color: var(--text-mid);
    display: flex;
    align-items: center;
    gap: 4px;
    cursor: pointer;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 5px 12px;
  }
  .lnm-cp-wrap .faith-grid {
    display: grid;
    /* minmax(0,1fr) lets columns stay equal when titles are very long (avoids grid blowout) */
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    align-items: start;
  }
  .lnm-cp-wrap .faith-card {
    background: var(--card-bg);
    border-radius: 8px;
    box-shadow: 0 1px 6px rgba(0,0,0,0.08);
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.2s;
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
  }
  .lnm-cp-wrap .faith-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
    min-width: 0;
  }
  .lnm-cp-wrap .faith-card:hover { transform: translateY(-2px); }
  .lnm-cp-wrap .faith-img {
    display: block;
    position: relative;
    height: 120px;
    overflow: hidden;
  }
  .lnm-cp-wrap .faith-img-bg,
  .lnm-cp-wrap .faith-img-photo {
    width: 100%; height: 100%;
    object-fit: cover;
    display: block;
  }
  .lnm-cp-wrap span.faith-img-bg {
    min-height: 100%;
  }
  /* Ensure img.faith-img-photo has proper sizing */
  .lnm-cp-wrap img.faith-img-photo {
    width: 100%; height: 120px;
    object-fit: cover;
    display: block;
  }
  .lnm-cp-wrap .faith-img-bg.lotus { background: linear-gradient(160deg, #c9a040 0%, #7a5c2a 60%, #5a3e1a 100%); }
  .lnm-cp-wrap .faith-img-bg.masjid { background: linear-gradient(160deg, #c9b080 0%, #8b6040 60%, #5a3e1a 100%); }
  .lnm-cp-wrap .faith-img-bg.akshardham { background: linear-gradient(160deg, #e0b060 0%, #c07030 60%, #8b4e20 100%); }
  .lnm-cp-wrap .faith-img-bg.gurudwara { background: linear-gradient(160deg, #d4a0c0 0%, #8b5080 50%, #4a2050 100%); }
  .lnm-cp-wrap .faith-tag {
    position: absolute;
    bottom: 8px; left: 8px;
    background: rgba(0,0,0,0.6);
    color: #fff;
    font-size: 9px;
    font-weight: 900;
    letter-spacing: 0.8px;
    padding: 3px 7px;
    border-radius: 3px;
    text-transform: uppercase;
  }
  .lnm-cp-wrap .faith-tag.food { background: rgba(39,174,96,0.85); }
  .lnm-cp-wrap .faith-tag.interior { background: rgba(52,73,94,0.85); }
  .lnm-cp-wrap .faith-tag.culture-tag { background: rgba(230,126,34,0.85); }
  .lnm-cp-wrap .faith-tag.nightlife { background: rgba(142,68,173,0.85); }
  .lnm-cp-wrap .faith-name {
    display: block;
    padding: 10px 12px 12px;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.35;
    overflow-wrap: anywhere;
    word-wrap: break-word;
    word-break: break-word;
  }

  /* scrollbar */
.lnm-cp-wrap ::-webkit-scrollbar { width: 6px; }
.lnm-cp-wrap ::-webkit-scrollbar-thumb { background: #ccc; border-radius: 3px; }

/* Panels below hero */
.lnm-city-hub .lnm-city-hub-panel { display: none; }
.lnm-city-hub .lnm-city-hub-panel.active { display: block; }
.lnm-city-hub .lnm-city-hub-panel[hidden] { display: none !important; }

/* ========== FORCE HORIZONTAL LAYOUT FOR TOP STORIES ========== */
/* High specificity override to ensure horizontal layout matches reference design */
body .lnm-cp-wrap .card .story-item,
.lnm-city-hub .lnm-cp-wrap .card .story-item,
div.lnm-cp-wrap div.card div.story-item {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
}

@media (max-width: 900px) {
  .lnm-cp-wrap .top-grid { grid-template-columns: 1fr; }
  .lnm-cp-wrap .featured-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lnm-cp-wrap .mid-grid { grid-template-columns: 1fr; }
  .lnm-cp-wrap .faith-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* City hub hero (tabs + tagline): narrow screens — wrap tagline, stack tabs, keep copy above the button strip */
@media (max-width: 640px) {
  .lnm-cp-wrap .hero.lnm-city-hub-hero-tabs {
    display: flex;
    flex-direction: column;
    height: auto;
    min-height: 360px;
    padding: 18px 12px 14px;
    overflow: hidden;
    box-sizing: border-box;
  }
  .lnm-cp-wrap .hero.lnm-city-hub-hero-tabs::before {
    content: "";
    flex: 1 1 auto;
    min-height: 40px;
    width: 100%;
    pointer-events: none;
  }
  .lnm-cp-wrap .hero.lnm-city-hub-hero-tabs .hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 0;
  }
  .lnm-cp-wrap .hero.lnm-city-hub-hero-tabs .hero-tagline {
    position: relative;
    left: auto;
    right: auto;
    top: auto;
    bottom: auto;
    transform: none;
    margin: 0 0 12px;
    padding: 0 4px;
    max-width: 100%;
    box-sizing: border-box;
    white-space: normal;
    font-size: clamp(15px, 4vw, 18px);
    line-height: 1.4;
    z-index: 2;
  }
  .lnm-cp-wrap .hero.lnm-city-hub-hero-tabs .hero-nav.lnm-city-hub-tabs {
    position: relative;
    left: auto;
    right: auto;
    top: auto;
    bottom: auto;
    transform: none;
    margin: 0;
    width: 100%;
    max-width: 100%;
    align-self: stretch;
    flex: 0 0 auto;
    height: auto;
    min-height: 0;
    max-height: none;
    flex-direction: column;
    flex-wrap: nowrap;
    /* Override .lnm-city-hub-tabs { justify-content: center } — in column layout that centers
       the button stack vertically and leaves empty space inside the white panel. */
    justify-content: flex-start;
    align-items: stretch;
    align-content: flex-start;
    gap: 6px;
    padding: 5px;
    z-index: 2;
    box-sizing: border-box;
  }
  .lnm-cp-wrap .hero.lnm-city-hub-hero-tabs .hero-nav.lnm-city-hub-tabs button {
    flex: 0 0 auto;
    justify-content: center;
    text-align: center;
    width: 100%;
    white-space: normal;
    padding: 9px 12px;
    line-height: 1.25;
  }
}
