/* OtoAnglia community platform styles */
.for-you-hero h1 { margin-bottom: 0.35rem; }
.feed-section { margin-top: 1rem; }
.feed-section h2 { font-size: 1.1rem; margin-bottom: 0.75rem; }
.feed-grid { display: grid; gap: 0.75rem; }
.feed-card { padding: 0.85rem 1rem; border: 1px solid var(--border, #e2e8f0); border-radius: 8px; background: var(--card-bg, #fff); }
.feed-card h3 { font-size: 1rem; margin: 0.25rem 0; }
.feed-meta { font-size: 0.85rem; margin-bottom: 0.35rem; }
.feed-list { list-style: none; padding: 0; margin: 0; }
.feed-list .feed-card { margin-bottom: 0.5rem; }
.checklist-card { margin-top: 1.25rem; }
.checklist-bar { height: 8px; background: #e2e8f0; border-radius: 4px; overflow: hidden; margin: 0.5rem 0; }
.checklist-bar span { display: block; height: 100%; background: #2563eb; border-radius: 4px; }
.checklist-list { list-style: none; padding: 0; margin: 0.75rem 0 0; }
.checklist-list li { padding: 0.4rem 0; display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; }
.checklist-list li.done { opacity: 0.75; }
.comm-cats { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 0.75rem; }
.comm-cats a { padding: 0.35rem 0.65rem; border-radius: 999px; border: 1px solid var(--border, #e2e8f0); text-decoration: none; font-size: 0.9rem; }
.comm-cats a.on { background: #2563eb; color: #fff; border-color: #2563eb; }
.community-card { margin-bottom: 0.75rem; }
.comm-body, .guide-body { line-height: 1.55; }
.comm-comments { list-style: none; padding: 0; }
.comm-comment { padding: 0.75rem 0; border-bottom: 1px solid var(--border, #e2e8f0); }
.badge-accommodation { background: #059669; color: #fff; }
.badge-avail { background: #0ea5e9; color: #fff; }
.insight-card { padding: 0.75rem; background: #f0f9ff; border-radius: 8px; }
.action-list { padding-left: 1.1rem; }
.city-hero { margin-bottom: 1rem; }
.event-list, .event-mini-list { list-style: none; padding: 0; }
.event-mini-list li { padding: 0.35rem 0; }
.home-widget { margin-top: 1.25rem; }
.worker-badges { display: flex; flex-wrap: wrap; gap: 0.35rem; margin: 0.35rem 0; }
.empty-state { text-align: center; padding: 2rem 1rem; }
.report-box { margin-top: 1rem; font-size: 0.9rem; }

/* Community thread layout */
.comm-page-hero-row, .events-hero .comm-page-hero-row { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 1rem; }
.comm-page-hero-row h1 { margin: 0 0 0.35rem; }
.comm-sort { display: flex; gap: 0.5rem; margin: 0.5rem 0 1rem; flex-wrap: wrap; }
.comm-sort a { padding: 0.35rem 0.75rem; border-radius: 999px; border: 1px solid var(--border, #e2e8f0); text-decoration: none; font-size: 0.85rem; font-weight: 600; background: var(--card-bg, #fff); }
.comm-sort a.on { background: #2563eb; color: #fff; border-color: #2563eb; }
.comm-thread-list { display: flex; flex-direction: column; gap: 0.5rem; }
.comm-thread { display: flex; gap: 0.65rem; padding: 0.75rem 0.85rem; border: 1px solid var(--border, #e2e8f0); border-radius: 8px; background: var(--card-bg, #fff); }
.comm-thread-full { margin-bottom: 0.75rem; }
.comm-vote-col { display: flex; flex-direction: column; align-items: center; min-width: 2.25rem; color: #64748b; font-size: 0.75rem; font-weight: 700; gap: 0.15rem; }
.comm-vote-col.sm { min-width: 1.75rem; }
.comm-vote-up, .comm-vote-down { line-height: 1; font-size: 0.85rem; }
.comm-vote-form { margin: 0; display: contents; }
.comm-vote-btn { border: 0; background: transparent; cursor: pointer; font-size: 1rem; padding: 0; line-height: 1; text-decoration: none !important; display: inline-block; transition: color 0.15s ease; }
.comm-vote-btn:hover, .comm-vote-btn:focus { text-decoration: none !important; }
.comm-vote-btn-up { color: #16a34a; }
.comm-vote-btn-up:hover, .comm-vote-btn-up:focus { color: #15803d; }
.comm-vote-btn-up.on-up { color: #14532d; }
.comm-vote-btn-down { color: #dc2626; }
.comm-vote-btn-down:hover, .comm-vote-btn-down:focus { color: #b91c1c; }
.comm-vote-btn-down.on-down { color: #991b1b; }
.comm-score { font-size: 0.8rem; color: #1e293b; }
.comm-thread-body { flex: 1; min-width: 0; }
.comm-thread-meta { font-size: 0.8rem; color: #64748b; margin: 0 0 0.35rem; }
.comm-cat-tag { color: #1d4ed8; font-weight: 700; text-decoration: none; background: #eff6ff; padding: 0.1rem 0.45rem; border-radius: 4px; font-size: 0.75rem; }
.comm-cat-tag:hover { background: #dbeafe; }
.comm-author { color: #334155; font-weight: 600; }
.comm-thread-title { font-size: 1rem; margin: 0 0 0.35rem; line-height: 1.35; }
.comm-thread-full .comm-thread-title { font-size: 1.35rem; }
.comm-thread-title a { text-decoration: none; color: inherit; }
.comm-thread-title a:hover { color: #1d4ed8; }
.comm-thread-snippet { font-size: 0.9rem; color: #475569; margin: 0 0 0.35rem; line-height: 1.45; }
.comm-thread-stats { font-size: 0.8rem; margin: 0; font-weight: 600; color: #64748b; }
.comm-thread-stats a { text-decoration: none; color: inherit; }
.comm-thread-stats a:hover { color: #1d4ed8; }
.comm-thread-text { margin-top: 0.5rem; }
.comm-replies { list-style: none; padding: 0; margin: 0; }
.comm-reply { display: flex; gap: 0.5rem; padding: 0.85rem 0; border-bottom: 1px solid var(--border, #e2e8f0); align-items: flex-start; }
.comm-reply:last-child { border-bottom: 0; }
.comm-reply-main { flex: 1; min-width: 0; }
.comm-reply-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.35rem 0.75rem; }
.comm-reply-body { margin: 0.35rem 0 0; line-height: 1.55; color: #334155; }
.comm-reply-actions { display: flex; flex-wrap: wrap; gap: 0.35rem 0.65rem; align-items: center; }
.comm-reply-delete-form { margin: 0; display: inline; }
.comm-reply-action { border: 0; background: none; padding: 0; font-size: 0.75rem; font-weight: 600; color: #64748b; cursor: pointer; text-decoration: none; }
.comm-reply-action:hover { color: #1d4ed8; text-decoration: underline; }
.comm-reply-action-danger:hover { color: #dc2626; }
.comm-edit-form textarea { width: 100%; margin-top: 0.35rem; }
.comm-edit-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0.5rem 0 0; }

/* Single community post */
.comm-post-page { margin-bottom: 2rem; }
.bug-report-form textarea { width: 100%; max-width: 100%; min-height: 7rem; }
.bug-report-label { display: block; margin-bottom: 1rem; }
.bug-report-card { max-width: 36rem; }
.comm-post-back { margin: 0 0 0.75rem; font-size: 0.85rem; }
.comm-post-back a { text-decoration: none; font-weight: 600; color: #64748b; }
.comm-post-back a:hover { color: #1d4ed8; }
.wa-app .comm-thread.comm-post-card,
.wa-app .comm-thread.wa-card,
.comm-thread.comm-post-card { display: flex; padding: 1rem 1.1rem; border-radius: 10px; border: 1px solid #e2e8f0; background: #fff; box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06); margin-bottom: 1rem; }
.comm-comments-card { padding: 1rem 1.1rem; border-radius: 10px; border: 1px solid #e2e8f0; background: #fff; box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06); }
.comm-comments-head { margin-bottom: 0.75rem; padding-bottom: 0.65rem; border-bottom: 1px solid #e2e8f0; }
.comm-comments-head h2 { margin: 0; font-size: 1.05rem; }
.comm-comments-count { color: #64748b; font-weight: 600; }
.comm-meta-sep { margin: 0 0.2rem; }
.comm-reply-form { margin-top: 1rem; padding-top: 1rem; border-top: 1px solid #e2e8f0; }
.comm-reply-label { display: block; font-weight: 600; font-size: 0.9rem; }
.comm-reply-form textarea { width: 100%; margin: 0.35rem 0 0.65rem; }
.comm-report-box { margin-top: 0.75rem; font-size: 0.85rem; }
.comm-login-prompt { margin-top: 1rem; }
.comm-no-comments { padding: 0.5rem 0 1rem; }

/* Events grid */
.event-grid { display: grid; gap: 0.75rem; }
.event-card h2 { font-size: 1.05rem; margin: 0.35rem 0; }
.event-card h2 a { text-decoration: none; }
.event-meta { font-size: 0.85rem; margin: 0; }
.event-when { font-weight: 600; margin: 0.25rem 0; }
.event-desc { font-size: 0.9rem; color: #475569; margin: 0.5rem 0; line-height: 1.45; }
.event-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0.5rem 0 0; }
.event-org { font-size: 0.85rem; margin: 0.25rem 0; }

@media (min-width: 640px) {
  .feed-grid { grid-template-columns: repeat(2, 1fr); }
  .event-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 960px) {
  .event-grid { grid-template-columns: repeat(3, 1fr); }
}

/* Home page below jobs */
.home-below { display: grid; gap: 1.5rem; margin: 0 0 3rem; }
.home-panel-title { margin: 0; font-size: 1.15rem; font-weight: 700; }
.home-panel-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 0.5rem 1rem; margin-bottom: 1rem; }
.home-panel-link { font-size: 0.9rem; font-weight: 600; text-decoration: none; color: #2563eb; }
.home-panel-link:hover { text-decoration: underline; }
.home-explore-grid { display: grid; gap: 0.75rem; grid-template-columns: repeat(2, 1fr); }
.home-explore-tile { display: flex; flex-direction: column; gap: 0.35rem; padding: 1rem 1.1rem; border-radius: 10px; text-decoration: none; color: inherit; border: 1px solid var(--border, #e2e8f0); transition: transform 0.15s ease, box-shadow 0.15s ease; min-height: 5.5rem; }
.home-explore-tile:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08); text-decoration: none; }
.home-explore-label { font-size: 1rem; font-weight: 700; color: #0f172a; }
.home-explore-sub { font-size: 0.82rem; line-height: 1.45; color: #64748b; }
.home-explore-community { background: linear-gradient(135deg, #eff6ff 0%, #f8fafc 100%); border-color: #bfdbfe; }
.home-explore-events { background: linear-gradient(135deg, #fdf4ff 0%, #faf5ff 100%); border-color: #e9d5ff; }
.home-explore-map { background: linear-gradient(135deg, #ecfdf5 0%, #f0fdf4 100%); border-color: #bbf7d0; }
.home-explore-accom { background: linear-gradient(135deg, #fff7ed 0%, #fffbeb 100%); border-color: #fed7aa; }
.home-cat-grid { display: grid; gap: 0.55rem; grid-template-columns: repeat(2, 1fr); }
.home-cat-tile { display: flex; align-items: center; padding: 0.65rem 0.85rem; border-radius: 8px; font-size: 0.9rem; font-weight: 600; text-decoration: none; color: #1e293b; background: #f8fafc; border: 1px solid #e2e8f0; transition: background 0.15s, border-color 0.15s, color 0.15s; }
.home-cat-tile:hover { background: #2563eb; border-color: #2563eb; color: #fff; text-decoration: none; }
.home-split { display: grid; gap: 1rem; }
.home-teaser-list { display: flex; flex-direction: column; gap: 0.55rem; }
.home-teaser-rotator { display: flex; flex-direction: column; gap: 0.55rem; }
.home-teaser-slot { transition: opacity 0.42s ease; }
.home-teaser-slot.is-fading { opacity: 0; }
.home-teaser-slot.is-entering { opacity: 0; animation: homeTeaserIn 0.48s ease forwards; }
@keyframes homeTeaserIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }
.home-teaser { display: flex; flex-direction: column; gap: 0.2rem; padding: 0.75rem 0.85rem; border-radius: 8px; border: 1px solid #e2e8f0; background: #fff; text-decoration: none; color: inherit; transition: border-color 0.15s, background 0.15s; }
.home-teaser:hover { border-color: #93c5fd; background: #f8fafc; text-decoration: none; }
.home-teaser-cat { align-self: flex-start; font-size: 0.7rem; font-weight: 700; padding: 0.12rem 0.45rem; border-radius: 4px; background: #eff6ff; color: #1d4ed8; }
.home-teaser-cat.event-cat { background: #fdf4ff; color: #7e22ce; }
.home-teaser-date { font-size: 0.78rem; font-weight: 600; color: #059669; }
.home-teaser-title { font-size: 0.95rem; font-weight: 700; line-height: 1.35; color: #0f172a; }
.home-teaser-snippet { font-size: 0.82rem; color: #64748b; line-height: 1.4; }
.home-teaser-meta { font-size: 0.78rem; color: #94a3b8; }
.home-accom-grid { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.55rem; grid-template-columns: repeat(2, 1fr); }
.home-accom-card { display: flex; flex-direction: column; gap: 0.2rem; padding: 0.75rem; border-radius: 8px; border: 1px solid #d1fae5; background: #f0fdf4; text-decoration: none; color: inherit; transition: border-color 0.15s; }
.home-accom-card:hover { border-color: #34d399; text-decoration: none; }
.home-accom-title { font-size: 0.9rem; font-weight: 700; color: #065f46; line-height: 1.35; }
.home-accom-sal { font-size: 0.82rem; font-weight: 600; color: #047857; }
.home-accom-loc { font-size: 0.78rem; color: #64748b; }
.home-cta-band { padding: 0; overflow: hidden; border: 0; margin-bottom: 1.25rem; border-radius: 12px; background: linear-gradient(135deg, #1d4ed8 0%, #2563eb 45%, #0ea5e9 100%); box-shadow: 0 10px 32px rgba(37, 99, 235, 0.28); }
.wa-app .home-cta-band { background: linear-gradient(135deg, #1d4ed8 0%, #2563eb 45%, #0ea5e9 100%); border: 0; color: #fff; box-shadow: 0 10px 32px rgba(37, 99, 235, 0.28); }
.home-cta-inner { padding: 2rem 1.5rem; text-align: center; color: #fff; }
.home-cta-inner h2 { margin: 0 0 0.5rem; font-size: 1.35rem; color: #fff; }
.home-cta-inner p { margin: 0 auto 1.25rem; max-width: 32rem; font-size: 0.95rem; line-height: 1.55; color: #e0f2fe; }
.home-cta-band .home-cta-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; justify-content: center; }
.home-cta-band .btn-primary { background: #fff; color: #1d4ed8; border-color: #fff; }
.home-cta-band .btn-primary:hover { background: #f0f9ff; color: #1d4ed8; text-decoration: none; }
.home-cta-band .btn-secondary { background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.65); }
.home-cta-band .btn-secondary:hover { background: rgba(255, 255, 255, 0.12); color: #fff; text-decoration: none; }
.home-cta-band a { color: #fff; }
@media (min-width: 640px) {
  .home-explore-grid { grid-template-columns: repeat(4, 1fr); }
  .home-cat-grid { grid-template-columns: repeat(4, 1fr); }
  .home-split { grid-template-columns: repeat(2, 1fr); }
  .home-accom-grid { grid-template-columns: repeat(4, 1fr); }
}
.blacklist-hero .blacklist-search { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 1rem 0 0.5rem; }
.blacklist-search-input { flex: 1 1 14rem; padding: 0.65rem 0.85rem; border: 1px solid #e2e8f0; border-radius: 8px; font-size: 1rem; }
.blacklist-grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); margin: 1rem 0; }
.blacklist-card h2 { margin: 0 0 0.5rem; font-size: 1.05rem; color: #b91c1c; }
.blacklist-warn { color: #334155; line-height: 1.5; }
.blacklist-alert { border: 2px solid #fecaca; background: linear-gradient(135deg, #fff1f2 0%, #fff 100%); margin-bottom: 1rem; }
.blacklist-alert-head { display: flex; gap: 0.75rem; align-items: flex-start; }
.blacklist-alert-icon { display: flex; align-items: center; justify-content: center; width: 2.25rem; height: 2.25rem; border-radius: 50%; background: #ef4444; color: #fff; font-weight: 800; flex-shrink: 0; }
.blacklist-alert h2 { margin: 0; font-size: 1rem; color: #991b1b; }
.blacklist-alert-name { margin: 0.25rem 0 0; font-weight: 600; }
.blacklist-alert-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.75rem; }
.job-accom-detail { border-left: 4px solid #34d399; }
.accom-facts { display: grid; gap: 0.5rem; margin: 0; }
.accom-facts div { display: flex; justify-content: space-between; gap: 1rem; padding: 0.35rem 0; border-bottom: 1px solid #ecfdf5; }
.accom-facts dt { margin: 0; color: #64748b; font-weight: 600; }
.accom-facts dd { margin: 0; font-weight: 700; color: #065f46; }
.job-qa { border-top: 3px solid #93c5fd; }
.job-qa-head h2 { margin: 0 0 0.25rem; }
.job-qa-list { display: grid; gap: 0.65rem; margin: 1rem 0; }
.job-qa-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.map-accom-intro { background: linear-gradient(135deg, #ecfdf5 0%, #f8fafc 100%); padding: 1.25rem; border-radius: 12px; }
.map-toolbar-accom { border-color: #bbf7d0; }
.wa-map-accom { min-height: 420px; border: 2px solid #a7f3d0; border-radius: 12px; }
.wa-map-pin-accom { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 50%; background: #059669; color: #fff; font-weight: 800; font-size: 0.75rem; box-shadow: 0 2px 8px rgba(5, 150, 105, 0.45); }
.map-popup-accom { margin-top: 0.5rem; padding-top: 0.5rem; border-top: 1px dashed #d1fae5; }
.events-view-tabs { display: flex; gap: 0.5rem; padding: 0.75rem 1rem; margin-bottom: 0.75rem; }
.events-view-tabs a { padding: 0.45rem 1rem; border-radius: 999px; text-decoration: none; font-weight: 600; color: #475569; background: #f1f5f9; }
.events-view-tabs a.on { background: #2563eb; color: #fff; }
.events-calendar { overflow: hidden; }
.events-cal-nav { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; margin-bottom: 1rem; }
.events-cal-title { margin: 0; font-size: 1.1rem; }
.events-cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; background: #e2e8f0; border-radius: 8px; overflow: hidden; }
.events-cal-dow { background: #f8fafc; padding: 0.4rem; text-align: center; font-size: 0.72rem; font-weight: 700; color: #64748b; }
.events-cal-cell { background: #fff; min-height: 4.5rem; padding: 0.35rem; font-size: 0.72rem; }
.events-cal-cell.empty { background: #f8fafc; }
.events-cal-cell.has-events { background: #eff6ff; }
.events-cal-cell.job-fair { background: #fdf4ff; }
.events-cal-day { display: block; font-weight: 700; color: #334155; margin-bottom: 0.2rem; }
.events-cal-ev { display: block; color: #1d4ed8; text-decoration: none; line-height: 1.3; margin-bottom: 0.15rem; }
.events-cal-ev:hover { text-decoration: underline; }
.event-when-lg { font-size: 1.05rem; font-weight: 600; color: #059669; }
.wa-event-remind.on { background: #059669; border-color: #059669; color: #fff; }
.referrals-hero { background: linear-gradient(135deg, #eff6ff 0%, #fdf4ff 100%); }
.referrals-stats { display: grid; gap: 0.75rem; grid-template-columns: repeat(3, 1fr); margin: 1rem 0; }
.referrals-stat { text-align: center; padding: 1.25rem 1rem; }
.referrals-stat.highlight { background: linear-gradient(135deg, #dbeafe 0%, #ede9fe 100%); border-color: #93c5fd; }
.referrals-stat-num { display: block; font-size: 2rem; font-weight: 800; color: #1d4ed8; line-height: 1; }
.referrals-stat-label { display: block; margin-top: 0.35rem; font-size: 0.85rem; color: #64748b; }
.referrals-copy-row { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.75rem; }
.referrals-url-input { flex: 1 1 16rem; padding: 0.6rem 0.75rem; border: 1px solid #e2e8f0; border-radius: 8px; }
.referrals-code { background: #f1f5f9; padding: 0.15rem 0.45rem; border-radius: 4px; }
.referrals-steps { margin: 0; padding-left: 1.25rem; line-height: 1.6; }
.referrals-reward-grid { display: grid; gap: 0.75rem; grid-template-columns: repeat(2, 1fr); }
.referrals-reward { padding: 1rem; border: 1px solid #e2e8f0; border-radius: 8px; }
.referrals-reward.featured { border-color: #93c5fd; background: #f8fafc; }
@media (max-width: 640px) {
  .referrals-stats, .referrals-reward-grid { grid-template-columns: 1fr; }
  .events-cal-cell { min-height: 3.5rem; }
}
