@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@500;600;700;800&family=Rajdhani:wght@400;500;600;700&display=swap');

/* M7COV home-page-only redesign. Other pages continue using assets/style.css. */
body.m7-homepage {
  --m7-bg: #04102b;
  --m7-panel: #061a3d;
  --m7-panel-light: #0b2854;
  --m7-blue: #087bff;
  --m7-cyan: #12d7ff;
  --m7-white: #f4f8ff;
  --m7-muted: #d0e0f7;
  margin: 0;
  background: var(--m7-bg);
  color: var(--m7-white);
  font-family: Rajdhani, Arial, sans-serif;
  font-size: 18px;
  line-height: 1.35;
  overflow-wrap: break-word;
}
body.m7-homepage * { box-sizing: border-box; }
body.m7-homepage a { color: inherit; }
.m7-home-banner { width: 100%; line-height: 0; background: #03102b; text-align: center; overflow: hidden; }
.m7-home-banner a { display: block; width: 100%; }
/* Keep the complete banner visible, preserve its original proportions, and reduce its overall size. */
.m7-home-banner img { display: block; width: 100%; max-width: 1300px; height: auto !important; max-height: none !important; object-fit: contain; object-position: center; margin: 0 auto; }

/* Style the shared navigation to match the chosen mock-up without replacing its PHP/JS. */
body.m7-homepage header.topbar {
  position: sticky; top: 0; z-index: 1000; min-height: 50px; padding: 7px 16px;
  display: flex; gap: 12px; align-items: center; justify-content: space-between;
  background: linear-gradient(180deg, #092b67 0%, #031638 100%) !important;
  border-top: 1px solid #137dff !important; border-bottom: 2px solid #087bff !important;
  box-shadow: 0 5px 20px #00102caa !important; color: #fff !important;
  backdrop-filter: none !important;
}
body.m7-homepage header.topbar .brand { display: none; }
body.m7-homepage .m7-navigation { flex: 1; width: 100%; gap: 8px; }
body.m7-homepage .m7-navigation nav { justify-content: space-between; gap: 4px; }
body.m7-homepage .m7-navigation nav > a,
body.m7-homepage .m7-navigation summary {
  padding: 9px 10px; border-radius: 8px; color: #f5f8ff !important;
  font-family: Rajdhani, Arial, sans-serif; font-size: 16px; font-weight: 700;
  text-transform: none; letter-spacing: 0; transition: background .18s ease, box-shadow .18s ease;
}
body.m7-homepage .m7-navigation nav > a:hover,
body.m7-homepage .m7-navigation summary:hover,
body.m7-homepage .m7-navigation details[open] > summary {
  background: linear-gradient(120deg, #087bff, #0052c7) !important; color: #fff !important;
  box-shadow: 0 0 15px #078bff75;
}
body.m7-homepage .m7-menu-toggle { color: #fff; border-color: #3c9bff; }
body.m7-homepage .m7-dropdown { background: #061a3d; border-color: #147eff; }
body.m7-homepage .m7-dropdown a { color: #f1f7ff; }
.m7-home-main { width: min(1500px, 100%); margin: 0 auto; padding: 0 16px 22px; }
.m7-eyebrow { margin: 0 0 8px; color: #5deaff; font: 700 12px Orbitron, Arial, sans-serif; letter-spacing: 1.5px; }
.m7-welcome {
  min-height: 260px; position: relative; display: flex; align-items: center; justify-content: space-between;
  gap: 24px; overflow: hidden; margin: 0 -16px 18px; padding: 25px 3.2%;
  background: linear-gradient(90deg, #061537 0%, #06245aee 48%, #04132be0 100%), url('/assets/homepage-community-photo.jpg') center right/cover no-repeat;
  border-bottom: 1px solid #117dff; box-shadow: inset 0 -20px 40px #03102b88;
}
.m7-welcome::after { content: ''; position: absolute; right: 0; top: 0; bottom: 0; width: 48%; pointer-events: none; background: radial-gradient(ellipse at 65% 65%, #087bff28, transparent 65%); }
.m7-welcome-copy { position: relative; z-index: 1; max-width: 700px; }
.m7-welcome h1 { margin: 3px 0 4px; font: 800 clamp(32px, 4vw, 52px)/1.08 Orbitron, Arial, sans-serif; letter-spacing: -1.5px; color: #fff; text-shadow: 0 3px 15px #0008; }
.m7-welcome h1 span { color: #78e9ff; }
.m7-welcome h2 { max-width: 650px; margin: 8px 0; font: 700 clamp(20px, 2.2vw, 27px)/1.15 Rajdhani, Arial, sans-serif; color: #f6f9ff; }
.m7-welcome-copy > p:not(.m7-eyebrow) { max-width: 680px; margin: 8px 0 0; color: #e1ebff; font-size: 18px; line-height: 1.25; }
.m7-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 16px; }
.m7-button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 40px; padding: 9px 16px; border: 1px solid #168cff; border-radius: 11px; font: 700 15px Rajdhani, Arial, sans-serif; text-decoration: none; text-align: center; box-shadow: 0 0 14px #007dff35; transition: transform .18s ease, box-shadow .18s ease; }
.m7-button:hover { transform: translateY(-2px); box-shadow: 0 0 20px #00a2ff75; }
.m7-button-primary { color: #fff !important; background: linear-gradient(110deg, #087bff, #0055d9); }
.m7-button-cyan { color: #001b39 !important; background: linear-gradient(110deg, #21e3ff, #00aeea); border-color: #3be9ff; }
.m7-button-outline { color: #fff !important; background: #031638d9; border-color: #05baff; }
.m7-welcome-motto { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: flex-end; max-width: 280px; margin-right: 1%; color: #fff; font-size: clamp(22px, 3vw, 36px); font-style: italic; font-weight: 700; line-height: 1.08; text-shadow: 0 2px 9px #00102b; transform: rotate(-4deg); }
.m7-welcome-motto strong { padding-bottom: 8px; border-bottom: 4px solid #00c9ff; }

/* Study Centre */
.m7-study-section { margin: 0 0 18px; padding: 14px 16px 16px; border: 1px solid #168bff; border-radius: 14px; background: linear-gradient(145deg, #061a3d, #04132e 70%, #06224a); box-shadow: 0 0 22px #007bff25, inset 0 0 25px #087bff0a; }
.m7-section-title { text-align: center; margin: 0 auto 12px; }
.m7-section-title .m7-eyebrow { font-size: 15px; color: #fff; margin-bottom: 0; }
.m7-section-title h2 { margin: 0; color: #42ddff; font: italic 700 clamp(24px, 3vw, 31px)/1.2 Rajdhani, Arial, sans-serif; }
.m7-section-title > p:last-child { margin: 2px 0 0; font-size: 16px; color: #e6efff; }
.m7-study-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.m7-study-card { position: relative; display: grid; grid-template-columns: 105px minmax(0, 1fr); gap: 13px; min-width: 0; min-height: 206px; padding: 15px; overflow: hidden; border: 1px solid #168fff; border-radius: 12px; background: linear-gradient(110deg, #092b5adf, #041637f2), url('/assets/homepage-shack-photo.jpg') center/cover no-repeat; box-shadow: inset 0 0 30px #007bff15; }
.m7-study-card::after { content: ''; position: absolute; right: -35px; bottom: -55px; width: 190px; height: 160px; border-radius: 50%; background: radial-gradient(circle, #087bff26, transparent 70%); pointer-events: none; }
.m7-intermediate-card { border-color: #00d9ff; background: linear-gradient(110deg, #06315aeF, #041637ed), url('/assets/homepage-community-photo.jpg') center/cover no-repeat; }
.m7-study-icon { position: relative; z-index: 1; align-self: start; padding-top: 10px; color: #60eaff; font-size: 68px; line-height: 1; text-align: center; filter: drop-shadow(0 0 10px #00aaff55); }
.m7-tower-icon { font-size: 67px; }
.m7-study-content { position: relative; z-index: 1; min-width: 0; }
.m7-card-kicker { margin: 0; color: #5ce8ff; font: 700 10px Orbitron, Arial, sans-serif; letter-spacing: 1px; }
.m7-study-content h3 { margin: 0 0 2px; font: 800 26px/1.15 Rajdhani, Arial, sans-serif; color: #fff; }
.m7-study-content > p:not(.m7-card-kicker) { margin: 3px 0 6px; color: #f0f5ff; font-size: 15px; line-height: 1.2; }
.m7-study-content ul { display: flex; flex-wrap: wrap; gap: 2px 12px; margin: 5px 0 8px; padding: 0; list-style: none; }
.m7-study-content li { color: #f4f8ff; font-size: 14px; }
.m7-study-content li::before { content: '✓'; display: inline-flex; width: 17px; height: 17px; margin-right: 5px; align-items: center; justify-content: center; border-radius: 50%; background: #00bfff; color: #001633; font-weight: 800; }
.m7-card-actions { display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: center; }
.m7-card-actions .m7-button { min-height: 34px; padding: 6px 13px; }
.m7-text-link { color: #79eaff !important; font-size: 13px; font-weight: 700; text-decoration: underline !important; text-underline-offset: 3px; }
.m7-study-extras { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 22px; padding-top: 12px; }
.m7-study-extras a { color: #cdeaff; font-size: 14px; font-weight: 700; text-decoration: none; }
.m7-study-extras a:hover { color: #58eaff; }

/* Shack section */
.m7-shack-section { display: grid; grid-template-columns: 1fr 1fr; min-height: 200px; margin-bottom: 18px; overflow: hidden; border: 1px solid #087bff; border-radius: 13px; background: #041638; box-shadow: 0 0 18px #007bff24; }
.m7-shack-photo { min-height: 200px; background: linear-gradient(90deg, transparent 70%, #04163855), url('/assets/homepage-shack-photo.jpg') center/cover no-repeat; }
.m7-shack-copy { padding: 16px 18px; align-self: center; }
.m7-shack-copy .m7-eyebrow { margin-bottom: 3px; }
.m7-shack-copy h2, .m7-community-content h2 { margin: 0 0 3px; color: #fff; font: 800 clamp(23px, 2.5vw, 30px)/1.1 Rajdhani, Arial, sans-serif; }
.m7-shack-copy > p:not(.m7-eyebrow), .m7-community-content > p:not(.m7-eyebrow) { margin: 4px 0 10px; color: #d8e8ff; font-size: 16px; line-height: 1.22; }
.m7-mode-shortcuts { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 7px; }
.m7-mode-shortcuts a { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 58px; padding: 5px 3px; border: 1px solid #285c9b; border-radius: 8px; background: linear-gradient(140deg, #0c2a55, #061a3b); text-align: center; text-decoration: none; }
.m7-mode-shortcuts a:hover { border-color: #10d8ff; background: #0b3470; }
.m7-mode-shortcuts span { color: #7beaff; font-size: 22px; line-height: 1.05; }
.m7-mode-shortcuts strong { margin-top: 2px; color: #fff; font-size: 13px; }
.m7-shack-cta { display: flex; width: fit-content; min-height: 31px; margin: 8px auto 0; padding: 4px 18px; color: #29e5ff !important; }
.m7-hamalert { display: flex; align-items: center; gap: 10px; margin-top: 8px; padding-top: 7px; border-top: 1px solid #174477; }
.m7-hamalert > span { flex: 0 0 auto; color: #78dff7; font: 700 10px Orbitron, Arial, sans-serif; letter-spacing: .7px; }
.m7-hamalert img { display: block; width: 100%; max-width: 300px; height: auto; min-width: 0; }

/* Community */
.m7-community-section { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; align-items: center; min-height: 154px; margin-bottom: 18px; padding: 14px 16px; overflow: hidden; border-bottom: 1px solid #0c65cf; background: linear-gradient(90deg, #061a3cfb 0%, #061a3ceF 58%, #061a3c45 100%), url('/assets/homepage-community-photo.jpg') center right/auto 100% no-repeat; }
.m7-community-photo { display: none; }
.m7-community-content { position: relative; z-index: 1; width: 100%; }
.m7-community-content .m7-eyebrow { margin-bottom: 2px; }
.m7-community-links { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 9px; margin-top: 10px; }
.m7-community-links a { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 68px; padding: 7px 5px; border: 1px solid #2a6db2; border-radius: 9px; background: linear-gradient(145deg, #0b2b57eF, #061a3df2); color: #fff; font-size: 14px; font-weight: 700; text-align: center; text-decoration: none; }
.m7-community-links a:hover { border-color: #18d7ff; box-shadow: 0 0 12px #007bff45; }
.m7-community-links span { margin-bottom: 2px; color: #78eaff; font-size: 22px; line-height: 1.1; }
.m7-community-cta { position: relative; z-index: 1; justify-self: end; align-self: end; min-width: 150px; }

/* Live panel and quick links */
.m7-bottom-panels { display: grid; grid-template-columns: 1.05fr .95fr; gap: 14px; margin-bottom: 18px; }
.m7-live-panel, .m7-quick-panel { min-width: 0; padding: 14px; border: 1px solid #087bff; border-radius: 12px; background: linear-gradient(145deg, #061b3c, #03122c); box-shadow: 0 0 16px #007bff22; }
.m7-panel-heading { display: flex; align-items: center; gap: 9px; }
.m7-panel-heading h2, .m7-quick-panel h2 { margin: 0; color: #fff; font: 700 20px Rajdhani, Arial, sans-serif; }
.m7-status-dot { flex: 0 0 15px; width: 15px; height: 15px; border-radius: 50%; background: #7b8ca6; box-shadow: 0 0 8px #7b8ca655; }
.m7-live-note { margin-left: auto; color: #70eaff; font-size: 13px; }
.m7-frequency-line { margin: 4px 0 8px; color: #e4efff; font-size: 15px; font-weight: 700; }
.m7-frequency-line span { color: #5deaff; }
.m7-spectrum { display: flex; align-items: end; gap: 3px; height: 45px; padding: 3px 5px 0; overflow: hidden; border: 1px solid #315c8c; background: linear-gradient(180deg, #04152f, #05244a); }
.m7-spectrum i { flex: 1; height: 15%; background: linear-gradient(0deg, #00a5ff, #4ef4ff); box-shadow: 0 0 5px #00bfff55; }
.m7-spectrum i:nth-child(3n) { height: 52%; }.m7-spectrum i:nth-child(4n) { height: 80%; }.m7-spectrum i:nth-child(5n) { height: 35%; }.m7-spectrum i:nth-child(7n) { height: 94%; }
.m7-audio { display: block; width: 100%; height: 34px; margin-top: 8px; accent-color: #087bff; }
.m7-panel-link { display: inline-block; margin-top: 5px; color: #5fe8ff !important; font-size: 14px; font-weight: 700; text-decoration: none; }
.m7-quick-panel { position: relative; padding-right: 140px; }
.m7-quick-panel h2 { margin-bottom: 7px; }
.m7-quick-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 3px 14px; }
.m7-quick-links a { display: flex; justify-content: space-between; gap: 6px; color: #eaf4ff; font-size: 15px; text-decoration: underline; text-decoration-color: #4e77a8; text-underline-offset: 3px; }
.m7-quick-links a span { color: #13d8ff; font-size: 20px; line-height: 1; }
.m7-73 { position: absolute; right: 15px; top: 25px; display: flex; flex-direction: column; align-items: center; color: #fff; font-size: 29px; font-style: italic; font-weight: 700; transform: rotate(-8deg); white-space: nowrap; }
.m7-73 span { display: block; width: 100%; height: 4px; margin-top: 5px; background: #08cfff; transform: skewX(-25deg); }

/* Further existing resources, digital modes, APRS and database equipment */
.m7-detail-section, .m7-aprs-section, .m7-resources-section, .m7-equipment-section { margin: 0 0 18px; padding: 24px; border: 1px solid #123c71; border-radius: 12px; background: linear-gradient(145deg, #061a3c, #03122a); }
.m7-detail-heading { max-width: 760px; margin: 0 auto 18px; text-align: center; }
.m7-detail-heading h2, .m7-aprs-copy h2, .m7-resource-copy h2 { margin: 0 0 8px; color: #fff; font: 800 clamp(24px, 3vw, 34px)/1.15 Rajdhani, Arial, sans-serif; }
.m7-detail-heading > p:last-child, .m7-aprs-copy > p:not(.m7-eyebrow), .m7-resource-copy > p:not(.m7-eyebrow) { color: #d0e0f7; }
.m7-digital-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.m7-digital-grid article { padding: 18px; border: 1px solid #1b548c; border-radius: 8px; background: #071d40; text-align: center; }
.m7-digital-grid span { display: block; color: #55e8ff; font: 700 24px Orbitron, Arial, sans-serif; }
.m7-digital-grid strong { display: block; margin-top: 5px; color: #d8eaff; font-size: 15px; }
.m7-aprs-section { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(230px, .7fr); gap: 24px; align-items: center; }
.m7-aprs-copy dl { display: grid; gap: 7px; margin: 16px 0; }
.m7-aprs-copy dl div { display: flex; gap: 15px; }
.m7-aprs-copy dt { min-width: 80px; color: #65cde8; font-weight: 700; text-transform: uppercase; font-size: 13px; }
.m7-aprs-copy dd { margin: 0; font-weight: 700; }
.m7-aprs-card { display: grid; gap: 8px; padding: 22px; border: 1px solid #168fff; border-radius: 10px; background: radial-gradient(ellipse at top, #0b3d77, #04142e 75%); }
.m7-aprs-card-label { color: #6aeaff; font: 700 11px Orbitron, Arial, sans-serif; letter-spacing: 1.5px; }
.m7-aprs-card strong { color: #fff; font: 700 32px Orbitron, Arial, sans-serif; }
.m7-aprs-card > span:not(.m7-aprs-card-label) { color: #d6e8ff; font-size: 14px; }
.m7-aprs-card p { margin-bottom: 0; color: #9ec5e8; font-size: 14px; }
.m7-resources-section { display: grid; grid-template-columns: 1.3fr 1fr; gap: 24px; align-items: center; }
.m7-resource-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.m7-resource-links a { padding: 10px; border: 1px solid #1d5187; border-radius: 7px; background: #071d40; color: #eaf5ff; font-weight: 700; text-decoration: none; }
.m7-equipment-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.m7-equipment-card { display: flex; gap: 14px; padding: 13px; border: 1px solid #1d5187; border-radius: 9px; background: #071b39; }
.m7-equipment-card img { width: 115px; height: 90px; object-fit: cover; border-radius: 6px; }
.m7-equipment-card h3 { margin: 0 0 4px; font-size: 19px; }
.m7-equipment-card p { margin: 4px 0; color: #d0e0f7; font-size: 15px; }
.m7-equipment-type { color: #62e7ff !important; font-weight: 700; }

.m7-home-footer { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px 22px; padding: 20px max(24px, calc((100vw - 1468px)/2)); border-top: 2px solid #087bff; background: #03102b; color: #d2e2f7; font-size: 14px; }
.m7-home-footer nav { display: flex; flex-wrap: wrap; gap: 14px; }
.m7-home-footer nav a { color: #d2e2f7; text-decoration: none; }
.m7-home-footer nav a:hover { color: #58eaff; }
.m7-footer-signoff { color: #fff; font-size: 22px; font-style: italic; font-weight: 700; }

@media (max-width: 1050px) {
  body.m7-homepage header.topbar { padding: 7px 12px; }
  body.m7-homepage .m7-navigation { justify-content: flex-end; }
  body.m7-homepage .m7-menu-toggle { background: #092b67; }
  .m7-welcome { min-height: 250px; }
  .m7-study-card { grid-template-columns: 72px minmax(0, 1fr); padding: 12px; }
  .m7-study-icon { font-size: 52px; }
  .m7-study-content h3 { font-size: 23px; }
  .m7-community-section { grid-template-columns: minmax(0, 1fr); }
  .m7-community-links { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .m7-community-cta { align-self: center; }
  .m7-quick-panel { padding-right: 115px; }
  .m7-73 { font-size: 24px; right: 10px; }
}
/* At desktop/laptop widths keep the full navigation like the approved mock-up. */
@media (min-width: 851px) and (max-width: 1050px) {
  body.m7-homepage .m7-menu-toggle { display: none !important; }
  body.m7-homepage .m7-navigation { position: static !important; flex: 1 1 auto !important; margin-left: 0 !important; }
  body.m7-homepage .m7-navigation nav {
    display: flex !important; position: static !important; width: 100% !important;
    max-height: none !important; overflow: visible !important; padding: 0 !important;
    border: 0 !important; border-radius: 0 !important; background: transparent !important;
    box-shadow: none !important; align-items: center !important; flex-direction: row !important;
    flex-wrap: wrap !important; justify-content: space-between !important;
  }
  body.m7-homepage .m7-navigation nav > a,
  body.m7-homepage .m7-navigation summary { width: auto !important; padding: 7px 7px !important; font-size: 14px !important; }
  body.m7-homepage .m7-navigation details { width: auto !important; }
}

@media (max-width: 720px) {
  .m7-home-banner img { width: 100%; max-width: 100%; height: auto !important; max-height: none !important; }
  body.m7-homepage header.topbar { position: relative; }
  .m7-home-main { padding: 0 10px 14px; }
  .m7-welcome { margin: 0 -10px 12px; padding: 26px 18px; min-height: 0; }
  .m7-welcome-motto { display: none; }
  .m7-welcome h1 { font-size: clamp(31px, 8vw, 44px); }
  .m7-welcome h2 { font-size: 21px; }
  .m7-welcome-copy > p:not(.m7-eyebrow) { font-size: 17px; }
  .m7-actions { flex-direction: column; align-items: stretch; }
  .m7-study-section { padding: 13px 10px; }
  .m7-study-grid { grid-template-columns: 1fr; }
  .m7-study-card { grid-template-columns: 68px minmax(0, 1fr); min-height: 0; }
  .m7-study-icon { font-size: 48px; }
  .m7-study-content h3 { font-size: 25px; }
  .m7-study-extras { gap: 8px 14px; }
  .m7-shack-section { grid-template-columns: 1fr; }
  .m7-shack-photo { min-height: 190px; }
  .m7-shack-copy { padding: 15px; }
  .m7-hamalert { align-items: flex-start; flex-direction: column; }
  .m7-mode-shortcuts { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .m7-community-section { grid-template-columns: 1fr; padding: 14px 10px; background-size: auto 100%; }
  .m7-community-links { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .m7-community-cta { justify-self: stretch; }
  .m7-bottom-panels { grid-template-columns: 1fr; }
  .m7-quick-panel { padding-right: 14px; padding-bottom: 66px; }
  .m7-73 { top: auto; bottom: 14px; right: 18px; }
  .m7-digital-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .m7-aprs-section, .m7-resources-section { grid-template-columns: 1fr; padding: 18px; }
  .m7-equipment-grid { grid-template-columns: 1fr; }
  .m7-home-footer { justify-content: center; text-align: center; padding: 20px 12px; }
  .m7-home-footer nav { justify-content: center; }
}
@media (max-width: 420px) {
  .m7-study-card { grid-template-columns: 1fr; }
  .m7-study-icon { display: none; }
  .m7-mode-shortcuts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .m7-community-links { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .m7-quick-links { grid-template-columns: 1fr; }
  .m7-equipment-card { flex-direction: column; }
  .m7-equipment-card img { width: 100%; height: auto; max-height: 220px; }
}


/* Final homepage refinements: member counts, the welcome hero and integrated audio. */
.m7-member-stats {
  width: min(1500px, 100%); margin: 0 auto; padding: 8px 18px;
  display: flex; align-items: center; justify-content: flex-end; gap: 10px;
  background: #03102b; border-bottom: 1px solid #123b70;
}
.m7-member-stat {
  display: inline-flex; align-items: center; gap: 8px; min-height: 36px;
  padding: 5px 12px; border: 1px solid #1b5793; border-radius: 9px;
  background: linear-gradient(135deg, #0b2b58, #061a3d); color: #f4f8ff;
}
.m7-member-stat-icon { color: #68eaff; font-size: 20px; line-height: 1; }
.m7-member-stat strong { display: block; color: #fff; font: 700 17px/1.05 Orbitron, Arial, sans-serif; }
.m7-member-stat small { display: block; margin-top: 2px; color: #bcd6f4; font: 600 11px/1.1 Rajdhani, Arial, sans-serif; letter-spacing: .5px; text-transform: uppercase; }
.m7-member-stat-online { border-color: #197b73; }
.m7-online-indicator { width: 9px; height: 9px; flex: 0 0 9px; border-radius: 50%; background: #37ed9b; box-shadow: 0 0 9px #37ed9b99; }

/* The welcome area uses the existing shack photograph, rather than the community image. */
.m7-welcome {
  min-height: 300px;
  background-image: linear-gradient(90deg, rgba(3,15,39,.97) 0%, rgba(4,28,66,.88) 43%, rgba(4,19,43,.22) 100%), url('/assets/homepage-shack-photo.jpg');
  background-position: center, center right;
  background-size: cover, cover;
  border-top: 1px solid #0a3e79;
}
.m7-welcome-copy { max-width: 760px; }
.m7-welcome h1 {
  font-family: Rajdhani, Arial, sans-serif; font-size: clamp(40px, 5vw, 62px);
  font-weight: 700; letter-spacing: -.6px; line-height: 1.02;
  text-transform: none; text-shadow: 0 3px 16px #00102b;
}
.m7-welcome h1 span { color: #20dfff; }
.m7-welcome h2 { max-width: 610px; font-size: clamp(22px, 2.3vw, 29px); }
.m7-welcome .m7-eyebrow { color: #53eaff; }
.m7-welcome::after { width: 58%; background: linear-gradient(90deg, transparent, #087bff0d); }

/* Keep the browser's real audio element and stream, but blend the player into the panel. */
.m7-live-panel { position: relative; overflow: hidden; }
.m7-live-panel::after { content: ''; position: absolute; inset: auto 0 0; height: 3px; background: linear-gradient(90deg, #087bff, #16e3ff, #087bff); pointer-events: none; }
.m7-live-panel .m7-status-dot { background: #38ef9c; box-shadow: 0 0 11px #38ef9c88; }
.m7-spectrum { height: 49px; border-color: #1766a1; background: linear-gradient(180deg, #031027, #06234a); }
.m7-spectrum i { animation: m7-spectrum-glow 1.4s ease-in-out infinite alternate; }
.m7-spectrum i:nth-child(2n) { animation-delay: -.4s; }
.m7-spectrum i:nth-child(3n) { animation-delay: -.8s; }
@keyframes m7-spectrum-glow { from { opacity: .62; } to { opacity: 1; } }
.m7-audio { border-radius: 7px; }

@media (max-width: 720px) {
  .m7-member-stats { justify-content: center; padding: 7px 10px; }
  .m7-member-stat { flex: 1 1 0; justify-content: center; max-width: 190px; padding: 5px 8px; }
  .m7-welcome { min-height: 0; background-position: center, 62% center; }
  .m7-welcome h1 { font-size: clamp(36px, 9vw, 48px); }
}
