/* HD Pro Network look (Kim, 2026-11-11): broadcast-pro style matching hdproguide.com.
   Loaded from Admin > Settings > General > Head Scripts (core.general.includes). Undo: clear that setting.
   Backups /root/backup-hdpro-step1-2026-11-11/ */

:root {
  --hp-ink: #0e1116; --hp-muted: #5d6573; --hp-rule: #e2e5ea; --hp-wash: #f3f4f6;
  --hp-red: #D7191F; --hp-red-dark: #b8221e; --hp-paper: #fff;
  --hp-body: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --hp-display: "Archivo", system-ui, sans-serif;
  --hp-mono: "IBM Plex Mono", ui-monospace, monospace;
}

/* ---------- Type ---------- */
body, input, textarea, select, button, .harmony_main_menu, .header_menu_mini { font-family: var(--hp-body) !important; }
h1, h2, h3, .generic_layout_container > h3, .layout_core_container_tabs .tabs_alt a,
.profile_cover_title, .cover_title, .user_cover_title { font-family: var(--hp-display) !important; letter-spacing: -.01em; }
.generic_layout_container > h3 { font-weight: 800 !important; text-transform: none; }

/* ---------- Header: white bar, thin rule, red tally ---------- */
.harmony_header { background: var(--hp-paper) !important; border-bottom: 1px solid var(--hp-rule); box-shadow: none !important; }
.header_logo img, .header_logo_contrast img { height: 40px !important; width: auto !important; max-width: none !important; object-fit: contain; }
.harmony_main_menu a:hover, .harmony_main_menu .active > a { color: var(--hp-red) !important; }
.hp-hdr-title { display: none; }

/* Buttons: ink, red on hover */
.global_form button[type="submit"], .global_form .form-elements button#submit, input[type="submit"], a.button, .btn-primary {
  background-color: var(--hp-ink) !important; border-color: var(--hp-ink) !important; color: #fff !important; border-radius: 6px !important; font-weight: 600 !important;
}
.global_form button[type="submit"]:hover, input[type="submit"]:hover, a.button:hover, .btn-primary:hover { background-color: var(--hp-red) !important; border-color: var(--hp-red) !important; }

/* Pages: calm grey wash, white cards, thin rules */
body { background-color: var(--hp-wash) !important; color: var(--hp-ink); }
.generic_layout_container { border-radius: 8px !important; }
a { text-underline-offset: 2px; }

/* ---------- Footer: dark, like hdproguide.com ---------- */
.harmony_footer { background: var(--hp-ink) !important; background-image: none !important; color: #c9ced6 !important; }
.harmony_footer a, .harmony_footer h3, .harmony_footer h6, .harmony_footer .custom_footer_heading, .harmony_footer span, .harmony_footer p, .harmony_footer li { color: #c9ced6 !important; }
.harmony_footer a:hover { color: #fff !important; }
.harmony_footer .custom_footer_heading { font-family: var(--hp-mono) !important; font-size: 12px !important; letter-spacing: .12em; text-transform: uppercase; color: #8b95a5 !important; }
.harmony_footer_bottom { border-top: 1px solid rgba(255,255,255,.1) !important; background: transparent !important; }
.harmony_footer_logo img { height: 36px !important; width: auto !important; }
.harmony_footer_logo_contrast img { height: 36px !important; width: auto !important; }
.harmony_footer .footer_desc { max-width: 42ch; line-height: 1.55; }

/* ---------- Home page for signed-out visitors ---------- */
#global_page_core-index-index #global_content > .layout_page_core_index_index > .layout_main,
#global_page_core-index-index .layout_main { max-width: none; }
.hp-land { --w: 1120px; color: var(--hp-ink); font-family: var(--hp-body); }
.hp-land * { box-sizing: border-box; }
.hp-land .in { max-width: var(--w); margin: 0 auto; padding: 0 20px; }
.hp-hero { background: var(--hp-ink); color: #f2f4f7; padding: 64px 0 56px; border-radius: 10px; overflow: hidden; position: relative; }
.hp-hero::before { content: ""; position: absolute; inset: 0; background: radial-gradient(800px 300px at 85% 0%, rgba(215,25,31,.22), transparent 70%); pointer-events: none; }
.hp-eyebrow { font-family: var(--hp-mono); font-size: 12.5px; letter-spacing: .14em; text-transform: uppercase; color: #8b95a5; margin: 0 0 18px; display: flex; align-items: center; gap: 10px; }
.hp-eyebrow::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: #e5322d; box-shadow: 0 0 0 4px rgba(229,50,45,.18); }
.hp-hero h1 { font-family: var(--hp-display) !important; font-weight: 800; font-size: clamp(32px, 5.4vw, 56px); line-height: 1.04; letter-spacing: -.02em; margin: 0 0 18px; max-width: 16ch; color: #fff; }
.hp-hero p.lead { font-size: clamp(16px, 2vw, 19px); line-height: 1.55; color: #c9ced6; max-width: 56ch; margin: 0 0 28px; }
.hp-cta { display: flex; flex-wrap: wrap; gap: 12px; }
.hp-btn { display: inline-flex; align-items: center; justify-content: center; height: 48px; padding: 0 24px; border-radius: 6px; font-weight: 600; font-size: 16px; text-decoration: none !important; border: 1px solid transparent; }
.hp-btn.red { background: var(--hp-red); color: #fff !important; }
.hp-btn.red:hover { background: var(--hp-red-dark); }
.hp-btn.ghost { border-color: rgba(255,255,255,.35); color: #fff !important; }
.hp-btn.ghost:hover { border-color: #fff; }
.hp-roles { display: flex; flex-wrap: wrap; gap: 8px; margin: 34px 0 0; padding: 0; list-style: none; }
.hp-roles li { font-family: var(--hp-mono); font-size: 12.5px; letter-spacing: .04em; padding: 6px 11px; border: 1px solid rgba(255,255,255,.16); border-radius: 4px; color: #c9ced6; }
.hp-sec { padding: 44px 0 8px; }
.hp-sec h2 { font-family: var(--hp-display) !important; font-weight: 800; font-size: clamp(22px, 3vw, 30px); letter-spacing: -.015em; margin: 0 0 6px; }
.hp-sec p.sub { color: var(--hp-muted); margin: 0 0 22px; max-width: 62ch; line-height: 1.55; }
.hp-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.hp-card { background: #fff; border: 1px solid var(--hp-rule); border-radius: 8px; padding: 22px 20px; border-top: 3px solid var(--hp-ink); }
.hp-card:hover { border-top-color: var(--hp-red); }
.hp-card .k { font-family: var(--hp-mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--hp-red-dark); margin: 0 0 10px; }
.hp-card h3 { font-family: var(--hp-display) !important; font-size: 19px; font-weight: 800; margin: 0 0 8px; }
.hp-card p { margin: 0; color: var(--hp-muted); line-height: 1.55; font-size: 15px; }
.hp-news { margin: 36px 0 8px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; background: #fff; border: 1px solid var(--hp-rule); border-left: 4px solid var(--hp-red); border-radius: 8px; padding: 20px 22px; }
.hp-news p { margin: 0; max-width: 60ch; line-height: 1.5; }
.hp-news b { font-family: var(--hp-display); }
.hp-news a.hp-btn { background: var(--hp-ink); color: #fff !important; height: 42px; font-size: 15px; }
.hp-news a.hp-btn:hover { background: var(--hp-red); }

/* ---------- Events: chips, cards that fit ---------- */
.hp-evchips { display: flex; gap: 8px; overflow-x: auto; padding: 2px 0 14px; scrollbar-width: none; }
.hp-evchips::-webkit-scrollbar { display: none; }
.grid_listing .grid_listing_item, .grid_listing .grid_listing_item * { min-width: 0; }
.grid_listing_item_info, .grid_listing_item_info a, .grid_listing_item_info span { overflow-wrap: anywhere; }

/* ---------- Phones ---------- */
@media (max-width: 767px) {
  html, body { overflow-x: hidden; }
  /* Logo only on home; other pages show the page name, profiles show the member's name */
  html.hp-sub .header_logo, html.hp-sub .header_logo_contrast { display: none !important; }
  html.hp-sub .hp-hdr-title { display: block; max-width: 56vw; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 800 19px/1.2 var(--hp-display); color: var(--hp-ink) !important; text-decoration: none !important; letter-spacing: -.01em; }
  .header_logo img, .header_logo_contrast img { height: 30px !important; }

  /* Content first (lists before side boxes) */
  .layout_main { display: flex !important; flex-direction: column; }
  .layout_main > .layout_middle { order: 1; }
  .layout_main > .layout_left { order: 2; }
  .layout_main > .layout_right { order: 3; }
  #global_page_user-profile-index .layout_main > .layout_left { order: 0; }

  /* Event cards: full width */
  .grid_listing { display: grid !important; grid-template-columns: minmax(0, 1fr) !important; gap: 14px !important; }
  .grid_listing .grid_listing_item { width: 100% !important; max-width: 100% !important; margin: 0 !important; }

  /* Feed videos: full screen width (JS sets the exact bleed) */
  .hp-bleed { max-width: none !important; border-radius: 0 !important; }
  .hp-bleed-host { overflow: visible !important; }

  /* Home */
  .hp-land .in { padding: 0 18px; }
  .hp-hero { padding: 44px 0 40px; border-radius: 0; margin: 0 -10px; }
  .hp-grid { grid-template-columns: minmax(0, 1fr); }
  .hp-btn { flex: 1 1 auto; }
  .harmony_footer .footer_desc { max-width: none; }
}

/* ---------- Dark mode ---------- */
.dark_mode .harmony_header { background: #0e1116 !important; border-bottom-color: #232a33; }
.dark_mode .hp-hdr-title { color: #f2f4f7 !important; }
.dark_mode body { background-color: #090b0f !important; color: #e6e9ee; }
.dark_mode .hp-card, .dark_mode .hp-news { background: #141920; border-color: #232a33; color: #e6e9ee; }
.dark_mode .hp-card p, .dark_mode .hp-sec p.sub { color: #9aa3b2; }
.dark_mode .hp-card { border-top-color: #e6e9ee; }
.dark_mode .hp-land { color: #e6e9ee; }

/* ---------- Step 2: Discover Professionals ---------- */
.hp-mv-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; margin: 0 0 14px; }
.hp-mv-head h2 { font-family: var(--hp-display) !important; font-weight: 800; font-size: 24px; margin: 0; letter-spacing: -.015em; }
.hp-mv-head span { color: var(--hp-muted); font-size: 14px; }
.hp-mv-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.hp-mv-card { background: #fff; border: 1px solid var(--hp-rule); border-radius: 8px; overflow: hidden; display: flex; flex-direction: column; }
.hp-mv-photo { display: block; aspect-ratio: 1 / 1; background: #e9ecf0; }
.hp-mv-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hp-mv-photo span { display: flex; width: 100%; height: 100%; align-items: center; justify-content: center; font: 800 44px/1 var(--hp-display); color: #8b95a5; }
.hp-mv-body { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 3px; flex: 1; }
.hp-mv-name { font-family: var(--hp-display); font-weight: 800; font-size: 16px; color: var(--hp-ink) !important; text-decoration: none !important; line-height: 1.25; }
.hp-mv-job { font-size: 14px; color: var(--hp-ink); line-height: 1.35; }
.hp-mv-loc { font-size: 13px; color: var(--hp-muted); }
.hp-mv-social { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; font-size: 13px; color: var(--hp-muted); }
.hp-mv-social .s-open { font-family: var(--hp-mono); font-size: 11.5px; letter-spacing: .02em; padding: 2px 8px; border-radius: 4px; background: rgba(215,25,31,.09); color: var(--hp-red-dark); }
.hp-mv-actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; padding-top: 10px; }
.hp-mv-actions a, .hp-mv-actions .buttonlink { display: inline-flex !important; align-items: center; gap: 6px; height: 32px; padding: 0 12px !important; border-radius: 6px; border: 1px solid var(--hp-ink); background: #fff; color: var(--hp-ink) !important; font-size: 13.5px; font-weight: 600; text-decoration: none !important; background-image: none !important; }
.hp-mv-actions a:hover { background: var(--hp-ink); color: #fff !important; }
.hp-mv-actions i { display: none !important; }
.hp-mv-empty { color: var(--hp-muted); }
.hp-disc-bar { display: none; }

/* Photos: likes and comments under each photo */
.hp-photos .grid_wrapper.albums_grid { overflow: hidden; }
.hp-photos .info_stat_grid { display: none !important; }
.hp-ph-bar { display: flex; align-items: center; gap: 14px; padding: 8px 4px 2px; }
.hp-ph-bar button, .hp-ph-bar a { display: inline-flex; align-items: center; gap: 5px; background: none !important; border: 0 !important; padding: 0 !important; color: var(--hp-ink) !important; font: 600 14px/1 var(--hp-body); cursor: pointer; text-decoration: none !important; box-shadow: none !important; min-height: 0; height: auto; }
.hp-ph-bar svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linejoin: round; }
.hp-like.on { color: var(--hp-red) !important; }
.hp-like.on svg { fill: currentColor; stroke: currentColor; }
.hp-like.pop svg { animation: hpPop .3s ease-out; }
@keyframes hpPop { 50% { transform: scale(1.25); } }

@media (max-width: 767px) {
  .hp-mv-head h2 { font-size: 20px; }
  .hp-mv-grid { display: block; }
  .hp-mv-card { flex-direction: row; align-items: center; gap: 12px; border: 0; border-bottom: 1px solid var(--hp-rule); border-radius: 0; background: none; padding: 10px 0; }
  .hp-mv-photo { flex: none; width: 58px; height: 58px; border-radius: 50%; overflow: hidden; }
  .hp-mv-photo span { font-size: 22px; }
  .hp-mv-body { padding: 0; min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 10px; align-items: center; }
  .hp-mv-body > * { grid-column: 1; }
  .hp-mv-name, .hp-mv-job, .hp-mv-loc { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .hp-mv-name { font-size: 15px; }
  .hp-mv-job { font-size: 13.5px; } .hp-mv-loc { font-size: 12.5px; }
  .hp-mv-actions { grid-column: 2 !important; grid-row: 1 / span 4; flex-direction: column; margin: 0; padding: 0; }
  .hp-mv-actions a, .hp-mv-actions .buttonlink { min-width: 96px; justify-content: center; }
  .hp-mv-actions.p-follow .hp-mv-friend { display: none !important; }
  .hp-mv-actions.p-friend > a.user_follow, .hp-mv-actions.p-friend > .user_follow { display: none !important; }

  .hp-filters-hidden { display: none !important; }
  .hp-disc-bar { display: flex; margin: 0 0 10px; }
  .hp-disc-bar button { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 40px; border-radius: 6px; border: 1px solid var(--hp-rule) !important; background: #fff !important; color: var(--hp-ink) !important; font-size: 15px; font-weight: 600; }
  /* Photos: Instagram-style 3 across, square, tight */
  .hp-photos .row { --bs-gutter-x: 3px; margin: 0 -2px; }
  .hp-photos .grid_outer { flex: 0 0 33.333%; max-width: 33.333%; padding: 0 1.5px !important; margin-bottom: 3px !important; }
  .hp-photos .grid_wrapper.albums_grid { border-radius: 0 !important; padding: 0 !important; box-shadow: none !important; border: 0 !important; background: none !important; }
  .hp-photos .thumbs_photo, .hp-photos .thumbs_photo > span { display: block; aspect-ratio: 1 / 1; height: auto !important; border-radius: 0 !important; }
  .hp-photos .browse_photos_rating { display: none !important; }
  .hp-ph-bar { gap: 8px; padding: 4px 3px 2px; }
  .hp-ph-bar svg { width: 18px; height: 18px; }
  .hp-ph-bar button, .hp-ph-bar a { font-size: 12.5px; }
}
.dark_mode .hp-mv-card, .dark_mode .hp-mv-actions a { background: #141920; border-color: #232a33; color: #e6e9ee !important; }
.dark_mode .hp-mv-name, .dark_mode .hp-mv-job, .dark_mode .hp-ph-bar button, .dark_mode .hp-ph-bar a { color: #e6e9ee !important; }
#global_page_user-index-browse .layout_user_browse_menu { display: none !important; }
