
/* EalingPulse v1.11.9 — desktop website layout.
   Every rule is scoped to desktop widths so the approved mobile UI stays unchanged. */

.desktop-primary-nav,
.ep-desktop-nav,
.epn-desktop-nav {
  display: none;
}

@media (min-width: 1024px) {
  html {
    min-width: 1024px;
  }

  body:not(.ep-social-page) {
    background:
      radial-gradient(circle at 8% 0%, rgba(15, 157, 150, .10), transparent 28rem),
      radial-gradient(circle at 92% 5%, rgba(22, 119, 232, .09), transparent 30rem),
      #eef4f7;
  }

  /* Shared application pages */
  .page-wrap {
    min-height: 100vh;
    padding: 24px;
  }

  .app-shell {
    width: min(100%, 1440px) !important;
    min-height: calc(100vh - 48px);
    margin: 0 auto;
    border: 1px solid rgba(207, 222, 232, .92);
    border-radius: 30px;
    background: rgba(255, 255, 255, .98);
    box-shadow: 0 28px 80px rgba(21, 55, 86, .13);
  }

  .topbar {
    position: sticky;
    top: 0;
    z-index: 45;
    min-height: 88px;
    padding: 15px 34px;
    border-radius: 30px 30px 0 0;
    background: rgba(255, 255, 255, .97);
    box-shadow: none;
  }

  .topbar--page {
    grid-template-columns: 52px minmax(0, 1fr) 52px;
  }

  .brand-lockup {
    gap: 14px;
  }

  .brand-mark-image {
    width: 58px;
    height: 58px;
  }

  .brand-title {
    font-size: 25px;
  }

  .brand-title small {
    font-size: 14px;
  }

  .location-chip {
    margin-top: 7px;
    font-size: 13px;
  }

  .top-actions {
    gap: 10px;
  }

  .topbar-button,
  .avatar-button {
    width: 48px;
    height: 48px;
    border-radius: 16px;
  }

  .topbar-title {
    font-size: 22px;
  }

  .desktop-primary-nav {
    position: sticky;
    top: 88px;
    z-index: 40;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 7px;
    min-height: 60px;
    padding: 8px 30px 10px;
    border-top: 1px solid rgba(228, 236, 241, .85);
    border-bottom: 1px solid rgba(214, 226, 234, .94);
    background: rgba(249, 252, 253, .97);
    backdrop-filter: blur(18px);
  }

  .desktop-primary-nav a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 42px;
    padding: 9px 15px;
    border-radius: 13px;
    color: #4d6577;
    font-size: 14px;
    font-weight: 800;
    text-decoration: none;
    white-space: nowrap;
    transition: background .16s ease, color .16s ease, transform .16s ease;
  }

  .desktop-primary-nav a:hover {
    color: var(--navy);
    background: #eaf3f8;
    transform: translateY(-1px);
  }

  .desktop-primary-nav a.is-active {
    color: #fff;
    background: linear-gradient(135deg, #176fc8, #119a93);
    box-shadow: 0 9px 20px rgba(22, 119, 200, .18);
  }

  .desktop-primary-nav .ui-icon {
    width: 19px;
    height: 19px;
  }

  .main-content {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 34px 38px 78px;
  }

  .main-content p {
    font-size: 15px;
    line-height: 1.58;
  }

  .main-content small {
    font-size: 13px;
  }

  .bottom-nav {
    display: none !important;
  }

  .site-legal-footer {
    width: calc(100% - 76px);
    max-width: 1280px;
    margin: 8px auto 30px;
    padding: 25px 28px;
    border-radius: 22px;
  }

  .site-legal-footer > strong {
    font-size: 18px;
  }

  .site-legal-footer nav a {
    font-size: 13px;
  }

  .site-legal-footer small {
    font-size: 12px;
  }

  /* Hub/category pages */
  .hub-hero {
    min-height: 210px;
    grid-template-columns: 82px minmax(0, 1fr);
    gap: 22px;
    padding: 34px;
    border-radius: 28px;
  }

  .hub-hero-icon {
    width: 82px;
    height: 82px;
    border-radius: 24px;
  }

  .hub-hero-icon .ui-icon {
    width: 40px;
    height: 40px;
  }

  .hub-hero h1 {
    font-size: 42px;
  }

  .hub-hero p {
    max-width: 780px;
    font-size: 17px;
  }

  .hub-switcher {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 22px 0 26px;
  }

  .hub-switcher a {
    min-height: 43px;
    padding: 10px 15px;
    font-size: 13px;
  }

  .hub-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
  }

  .hub-card {
    min-height: 132px;
    padding: 22px 58px 22px 22px;
    grid-template-columns: 62px minmax(0, 1fr);
    gap: 17px;
    border-radius: 24px;
  }

  .hub-card-icon {
    width: 62px;
    height: 62px;
    border-radius: 19px;
  }

  .hub-card-icon .ui-icon {
    width: 30px;
    height: 30px;
  }

  .hub-card-title strong {
    font-size: 19px;
  }

  .hub-card-title em {
    font-size: 11px;
  }

  .hub-card-copy small {
    margin-top: 7px;
    font-size: 14px;
    line-height: 1.5;
  }

  .hub-card-chevron {
    right: 22px;
    width: 22px;
    height: 22px;
  }

  /* Conversation directory */
  .chat-home-hero {
    min-height: 220px;
    padding: 34px 38px;
    border-radius: 28px;
  }

  .chat-home-hero h1 {
    font-size: 42px;
  }

  .chat-home-hero p {
    max-width: 760px;
    font-size: 16px;
  }

  .chat-home-hero-icon {
    width: 78px;
    height: 78px;
    border-radius: 24px;
  }

  .chat-room-grid,
  .chat-room-grid--six {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
  }

  .chat-room-card,
  .chat-room-card--direct {
    min-height: 225px;
    padding: 24px;
    border-radius: 25px;
  }

  .chat-room-icon {
    width: 58px;
    height: 58px;
    border-radius: 18px;
  }

  .chat-room-icon .ui-icon {
    width: 28px;
    height: 28px;
  }

  .chat-room-card > strong {
    margin-top: 18px;
    font-size: 19px;
  }

  .chat-room-card > p,
  .chat-room-card--direct > p {
    margin-top: 8px;
    font-size: 14px;
    line-height: 1.52;
  }

  .chat-room-card > small {
    font-size: 12px;
  }

  .chat-room-chevron {
    right: 20px;
    top: 22px;
    width: 20px;
    height: 20px;
  }

  .chat-conversation-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

  .chat-conversation-row {
    min-height: 92px;
    padding: 14px 52px 14px 14px;
    grid-template-columns: 60px minmax(0, 1fr) auto;
    border-radius: 22px;
  }

  .chat-conversation-row > span strong {
    font-size: 16px;
  }

  .chat-conversation-row > span small {
    font-size: 13px;
  }

  .chat-message-feed {
    height: min(68vh, 760px);
    padding: 20px 14px 24px;
  }

  .chat-message-stack {
    max-width: min(72%, 720px);
  }

  .chat-bubble {
    padding: 12px 15px;
  }

  .chat-bubble p {
    font-size: 15px;
  }

  .chat-composer {
    bottom: 16px;
    max-width: 980px;
    margin-inline: auto;
    padding: 12px;
  }

  /* Stronger Together / resident issues */
  .issues-hero {
    min-height: 290px;
    grid-template-columns: minmax(0, 1.55fr) minmax(260px, .45fr);
    gap: 34px;
    padding: 42px;
    border-radius: 30px;
  }

  .issues-hero h1 {
    max-width: 820px;
    font-size: 46px;
    line-height: 1.03;
  }

  .issues-hero p {
    max-width: 820px;
    font-size: 17px;
    line-height: 1.6;
  }

  .issues-hero-actions a {
    min-height: 50px;
    padding: 12px 18px;
    font-size: 14px;
  }

  .issues-hero-visual {
    min-height: 210px;
    border-radius: 26px;
  }

  .issues-hero-visual b {
    font-size: 58px;
  }

  .issues-explainer {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    margin: 22px 0;
  }

  .issues-explainer > div {
    min-height: 112px;
    padding: 20px;
    border-radius: 22px;
  }

  .issues-explainer strong {
    font-size: 17px;
  }

  .issues-explainer small {
    font-size: 13px;
  }

  .issues-stat-grid {
    gap: 16px;
  }

  .issues-stat-grid > div {
    min-height: 116px;
    padding: 20px;
    border-radius: 22px;
  }

  .issues-stat-grid strong {
    font-size: 34px;
  }

  .issues-stat-grid span {
    font-size: 13px;
  }

  .issues-filter-panel {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 14px;
    margin: 22px 0 30px;
    padding: 22px;
    border-radius: 24px;
  }

  .issues-search {
    min-height: 52px;
  }

  .issues-search input {
    font-size: 15px;
  }

  .issues-filter-row {
    grid-column: 1 / -1;
    gap: 12px;
    margin-top: 0;
  }

  .issues-filter-row label > span {
    font-size: 11px;
  }

  .issues-filter-row select {
    min-height: 48px;
    font-size: 14px;
  }

  .issues-filter-panel > .primary-button {
    min-width: 180px;
    min-height: 52px;
    margin-top: 0;
    font-size: 15px;
  }

  .issues-feed-heading {
    margin: 34px 0 18px;
  }

  .issues-feed-heading h2 {
    font-size: 32px;
  }

  .issues-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
  }

  .issue-card {
    border-radius: 25px;
  }

  .issue-card-media {
    min-height: 225px;
  }

  .issue-card-body {
    padding: 20px;
  }

  .issue-card-meta span,
  .issue-card-meta small {
    font-size: 11px;
  }

  .issue-card h3 {
    margin: 9px 0 8px;
    font-size: 22px;
  }

  .issue-card-body > p {
    min-height: 70px;
    font-size: 14px;
  }

  .issue-card-signal > span {
    min-height: 38px;
    padding: 8px 11px;
    font-size: 12px;
  }

  .issue-card-actions button,
  .issue-confirm-login,
  .issue-open-link,
  .issue-confirmed {
    font-size: 12px;
  }

  .issues-boundary-note {
    margin-top: 28px;
    padding: 24px;
    border-radius: 22px;
  }

  /* Reporting and forms */
  .report-illustration-card {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(360px, .85fr);
    min-height: 330px;
    border-radius: 28px;
  }

  .report-illustration-card > img {
    height: 100%;
    min-height: 330px;
  }

  .report-message-panel {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 38px;
  }

  .report-message-panel h1 {
    font-size: 38px;
  }

  .report-message-panel p {
    font-size: 16px;
  }

  .category-panel,
  .report-form {
    margin-top: 22px;
    padding: 26px;
    border-radius: 26px;
  }

  .category-panel h2 {
    margin-bottom: 18px;
    font-size: 24px;
  }

  .report-category-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 14px;
  }

  .report-category {
    min-height: 132px;
    padding: 15px 10px;
    border-radius: 20px;
  }

  .report-category strong {
    font-size: 13px;
  }

  .category-icon {
    width: 48px;
    height: 48px;
    border-radius: 15px;
  }

  .category-icon .ui-icon {
    width: 25px;
    height: 25px;
  }

  .form-grid {
    gap: 18px;
  }

  .form-field input,
  .form-field select,
  .form-field textarea {
    min-height: 50px;
    font-size: 15px;
  }

  .primary-button,
  .secondary-button,
  .coral-button,
  .outline-button {
    min-height: 48px;
    padding-inline: 18px;
    font-size: 14px;
  }

  /* Legal page */
  .legal-section,
  .legal-anchor-nav,
  .legal-hero,
  .legal-endnote {
    max-width: 1120px;
  }

  .legal-hero {
    padding: 38px;
  }

  .legal-section {
    padding: 28px;
  }

  /* Desktop hover polish */
  .hub-card,
  .chat-room-card,
  .issue-card,
  .report-category {
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
  }

  .hub-card:hover,
  .chat-room-card:hover,
  .issue-card:hover,
  .report-category:hover {
    transform: translateY(-3px);
    border-color: #bfd4df;
    box-shadow: 0 18px 38px rgba(22, 56, 86, .12);
  }

  /* Homepage */
  body:has(.ep-shell) {
    background:
      radial-gradient(circle at 10% 0%, rgba(13, 154, 146, .11), transparent 29rem),
      radial-gradient(circle at 90% 8%, rgba(22, 119, 232, .10), transparent 32rem),
      #edf4f7;
  }

  .ep-shell {
    width: min(calc(100% - 48px), 1440px) !important;
    min-height: calc(100vh - 48px);
    margin: 24px auto;
    padding-bottom: 42px;
    border: 1px solid rgba(207, 222, 232, .92);
    border-radius: 30px;
    background: rgba(255, 255, 255, .98);
    box-shadow: 0 28px 80px rgba(21, 55, 86, .13);
  }

  .ep-topbar {
    min-height: 92px;
    padding: 15px 34px;
    border-radius: 30px 30px 0 0;
  }

  .ep-logo {
    flex-basis: 64px;
    width: 64px;
    height: 64px;
    border-radius: 20px;
  }

  .ep-brand-copy strong {
    font-size: 27px;
  }

  .ep-brand-copy small {
    font-size: 13px;
  }

  .ep-icon-button,
  .ep-language-button {
    height: 48px;
    border-radius: 16px;
  }

  .ep-icon-button {
    width: 48px;
  }

  .ep-language-button {
    min-width: 68px;
    padding: 0 12px;
    font-size: 12px;
  }

  .ep-desktop-nav {
    position: sticky;
    top: 92px;
    z-index: 18;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    min-height: 60px;
    padding: 8px 30px 10px;
    border-top: 1px solid rgba(228, 236, 241, .85);
    border-bottom: 1px solid rgba(214, 226, 234, .94);
    background: rgba(249, 252, 253, .97);
    backdrop-filter: blur(18px);
  }

  .ep-desktop-nav a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 42px;
    padding: 9px 16px;
    border-radius: 13px;
    color: #4d6577;
    font-size: 14px;
    font-weight: 800;
  }

  .ep-desktop-nav a:hover,
  .ep-desktop-nav a.is-active {
    color: #fff;
    background: linear-gradient(135deg, #176fc8, #119a93);
    box-shadow: 0 9px 20px rgba(22, 119, 200, .16);
  }

  .ep-desktop-nav svg {
    width: 19px;
    height: 19px;
  }

  .ep-shell > main {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 34px 38px 0;
  }

  .ep-hero {
    aspect-ratio: auto;
    min-height: 380px;
    border-radius: 30px;
  }

  .ep-hero-location {
    left: 34px;
    bottom: 34px;
    gap: 15px;
  }

  .ep-hero .ep-location-icon {
    width: 62px;
    height: 62px;
    flex-basis: 62px;
    border-radius: 20px;
  }

  .ep-hero .ep-location-copy small {
    font-size: 13px;
  }

  .ep-hero .ep-location-copy strong {
    font-size: 28px;
  }

  .ep-hero .ep-change-link {
    right: 34px;
    bottom: 38px;
    padding: 12px 18px;
    font-size: 14px;
  }

  .ep-search--detached {
    width: min(76%, 920px);
    min-height: 68px;
    margin-top: -34px;
    grid-template-columns: 30px minmax(0, 1fr) 56px;
    padding-left: 22px;
    border-radius: 22px;
    box-shadow: 0 20px 45px rgba(18, 54, 83, .18);
  }

  .ep-search--detached input {
    font-size: 17px;
  }

  .ep-search--detached button {
    width: 56px;
    height: 56px;
    border-radius: 18px;
  }

  .ep-start-section {
    margin-top: 48px;
  }

  .ep-section-heading p {
    font-size: 13px;
  }

  .ep-section-heading h1 {
    margin-bottom: 22px;
    font-size: 38px;
  }

  .ep-hub-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
  }

  .ep-hub-card {
    min-height: 245px;
    padding: 24px;
    border-radius: 26px;
  }

  .ep-hub-icon {
    width: 58px;
    height: 58px;
    border-radius: 18px;
  }

  .ep-hub-icon svg {
    width: 29px;
    height: 29px;
  }

  .ep-hub-content strong {
    font-size: 20px;
  }

  .ep-hub-content small {
    font-size: 14px;
    line-height: 1.48;
  }

  .ep-hub-open {
    font-size: 13px;
  }

  .ep-alert-card,
  .ep-now-section {
    margin-top: 24px;
    border-radius: 23px;
  }

  .ep-quick-section,
  .ep-latest-section {
    margin-top: 36px;
  }

  .ep-row-heading h2 {
    font-size: 25px;
  }

  .ep-row-heading a {
    font-size: 13px;
  }

  .ep-quick-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
  }

  .ep-quick-card {
    min-height: 175px;
    padding: 22px;
    border-radius: 24px;
  }

  .ep-quick-card > span {
    width: 48px;
    height: 48px;
    border-radius: 15px;
  }

  .ep-quick-card strong {
    font-size: 17px;
  }

  .ep-quick-card small {
    font-size: 13px;
    line-height: 1.48;
  }

  .ep-news-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
  }

  .ep-news-card {
    grid-template-columns: 150px minmax(0, 1fr) 34px;
    gap: 18px;
    min-height: 150px;
    padding: 14px;
    border-radius: 22px;
  }

  .ep-news-image {
    width: 150px;
    height: 120px;
    border-radius: 17px;
  }

  .ep-news-copy strong {
    font-size: 17px;
  }

  .ep-news-copy small {
    font-size: 13px;
  }

  .ep-bottom-nav {
    display: none !important;
  }

  /* Classifieds / social pages */
  .ep-social-page {
    padding-bottom: 0;
    background:
      radial-gradient(circle at 8% 0%, rgba(18, 163, 165, .10), transparent 28rem),
      radial-gradient(circle at 92% 6%, rgba(25, 118, 210, .10), transparent 30rem),
      var(--ep-bg);
  }

  .ep-social-top {
    min-height: 84px;
    padding: 14px max(28px, calc((100vw - 1320px) / 2));
    border-bottom-color: #d8e5eb;
    box-shadow: 0 8px 28px rgba(16, 59, 86, .06);
  }

  .ep-social-top .ep-brand span {
    width: 52px;
    height: 52px;
    border-radius: 17px;
    font-size: 16px;
  }

  .ep-social-top .ep-brand b {
    font-size: 22px;
  }

  .ep-social-top nav {
    display: flex;
    align-items: center;
    gap: 4px;
  }

  .ep-social-top nav a {
    min-height: 42px;
    padding: 10px 13px;
    font-size: 13px;
  }

  .ep-social-main {
    max-width: 1320px;
    padding: 34px 28px 70px;
  }

  .ep-classifieds-hero {
    min-height: 285px;
    padding: 42px 46px;
    border-radius: 30px;
  }

  .ep-classifieds-hero h1 {
    max-width: 780px;
    font-size: 48px;
  }

  .ep-classifieds-hero p {
    max-width: 800px;
    font-size: 17px;
  }

  .ep-classifieds-hero .ep-button {
    min-width: 220px;
    min-height: 56px;
    font-size: 16px;
  }

  .ep-listing-search {
    grid-template-columns: minmax(0, 1.8fr) minmax(250px, .8fr) auto;
    gap: 12px;
    margin: -30px 34px 0;
    padding: 13px;
    border-radius: 22px;
  }

  .ep-search-field {
    min-height: 54px;
  }

  .ep-search-field input {
    font-size: 15px;
  }

  .ep-category-section,
  .ep-results-section {
    margin-top: 38px;
  }

  .ep-section-heading h2 {
    font-size: 28px;
  }

  .ep-section-heading p {
    font-size: 14px;
  }

  .ep-category-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
  }

  .ep-category-tile {
    min-height: 170px;
    padding: 22px;
    border-radius: 24px;
  }

  .ep-category-icon {
    width: 54px;
    height: 54px;
    border-radius: 17px;
  }

  .ep-category-tile strong {
    font-size: 16px;
  }

  .ep-category-tile small {
    font-size: 13px;
    line-height: 1.45;
  }

  .ep-listing-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
  }

  .ep-listing-card {
    border-radius: 24px;
  }

  .ep-listing-card__image,
  .ep-listing-placeholder {
    min-height: 205px;
  }

  .ep-listing-card__body {
    padding: 18px;
  }

  .ep-listing-card h3 {
    font-size: 17px;
  }

  .ep-listing-price {
    font-size: 20px;
  }

  .ep-listing-location,
  .ep-listing-card__top small {
    font-size: 12px !important;
  }

  .ep-create-hero {
    padding: 38px 42px;
    border-radius: 29px;
  }

  .ep-create-hero h1 {
    font-size: 44px;
  }

  .ep-form-section {
    padding: 30px;
    border-radius: 26px;
  }

  .ep-form-section__heading h2 {
    font-size: 24px;
  }

  .ep-form-section__heading p {
    font-size: 14px;
  }

  .ep-category-picker {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
  }

  .ep-category-option {
    min-height: 145px;
    padding: 18px;
    border-radius: 21px;
  }

  .ep-category-option strong {
    font-size: 15px;
  }

  .ep-category-option small {
    font-size: 12px;
  }

  .ep-form-grid {
    gap: 18px;
  }

  .ep-field input,
  .ep-field select,
  .ep-field textarea {
    min-height: 52px;
    font-size: 15px;
  }

  .ep-field textarea {
    min-height: 170px;
  }

  .ep-photo-drop {
    min-height: 210px;
  }

  .ep-contact-methods {
    gap: 14px;
  }

  .ep-contact-option {
    min-height: 78px;
    padding: 15px;
  }

  .ep-publish-panel {
    padding: 30px;
    border-radius: 26px;
  }

  .ep-listing-detail {
    grid-template-columns: minmax(0, 1.3fr) minmax(360px, .7fr);
    gap: 30px;
    padding: 24px;
    border-radius: 30px;
  }

  .ep-detail-layout {
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 26px;
  }

  .ep-detail-layout aside {
    position: sticky;
    top: 106px;
  }

  .ep-detail-section,
  .ep-contact-card,
  .ep-advertiser-card,
  .ep-management-card,
  .ep-report-box {
    padding: 24px;
    border-radius: 23px;
  }

  .ep-listing-detail h1 {
    font-size: 40px;
  }

  .ep-attribute-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  /* News and articles */
  .epn-shell {
    width: min(calc(100% - 48px), 1440px);
    margin: 24px auto;
    border: 1px solid rgba(207, 222, 232, .92);
    border-radius: 30px;
    background: rgba(255, 255, 255, .98);
    box-shadow: 0 28px 80px rgba(21, 55, 86, .13);
  }

  .epn-header {
    min-height: 92px;
    padding: 15px 34px;
    border-radius: 30px 30px 0 0;
  }

  .epn-brand img {
    width: 64px;
    height: 64px;
    border-radius: 20px;
  }

  .epn-brand strong {
    font-size: 25px;
  }

  .epn-desktop-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 5px;
    flex: 1 1 auto;
  }

  .epn-desktop-nav a {
    min-height: 42px;
    padding: 10px 13px;
    border-radius: 13px;
    color: #526c7e;
    font-size: 13px;
    font-weight: 800;
  }

  .epn-desktop-nav a:hover,
  .epn-desktop-nav a.is-active {
    color: #fff;
    background: linear-gradient(135deg, #176fc8, #119a93);
  }

  .epn-main {
    padding: 38px 44px 78px;
  }

  .epn-hero-title h1 {
    font-size: 52px;
  }

  .epn-hero-title p {
    font-size: 15px;
  }

  .epn-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
  }

  .epn-story {
    grid-template-columns: 180px minmax(0, 1fr) 30px;
    min-height: 170px;
    padding: 15px;
    border-radius: 24px;
  }

  .epn-story-image {
    width: 180px;
    border-radius: 18px;
  }

  .epn-story-copy small {
    font-size: 11px;
  }

  .epn-story-copy h2 {
    font-size: 18px;
  }

  .epn-story-copy p {
    font-size: 13px;
  }

  .epn-article {
    max-width: 1060px;
    margin: 0 auto;
  }

  .epn-article-body {
    padding: 48px 64px;
  }

  .epn-content {
    max-width: 820px;
    margin: 34px auto 0;
    font-size: 18px;
  }

  .epn-source,
  .epn-meta,
  .epn-badges,
  .epn-deck,
  .epn-article h1 {
    max-width: 920px;
    margin-left: auto;
    margin-right: auto;
  }

  .epn-related {
    max-width: 1060px;
    margin: 38px auto 0;
  }

  .epn-legal-footer {
    margin-inline: 44px;
    padding: 24px;
  }
}

@media (min-width: 1280px) {
  .issues-grid,
  .ep-listing-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .ep-listing-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

/* --------------------------------------------------------------------------
   EalingPulse v1.12.0 — desktop portal redesign
   These rules start at 1024 CSS px. The approved mobile interface is untouched.
   -------------------------------------------------------------------------- */
@media (min-width: 1024px) {
  body:has(.ep-shell),
  body:not(.ep-social-page) {
    background:
      radial-gradient(circle at 4% 0%, rgba(17, 157, 150, .14), transparent 34rem),
      radial-gradient(circle at 96% 4%, rgba(31, 122, 220, .13), transparent 36rem),
      linear-gradient(180deg, #edf5f8 0%, #f7fafb 58%, #edf4f7 100%);
  }

  /* Full website frame, not a stretched phone column. */
  .ep-shell,
  .app-shell,
  .epn-shell {
    width: min(calc(100% - 24px), 1580px) !important;
    max-width: 1580px !important;
    margin: 12px auto !important;
    border-radius: 26px;
    box-shadow: 0 26px 78px rgba(18, 55, 82, .14);
  }

  .page-wrap {
    padding: 12px;
  }

  /* Larger, calmer desktop masthead. */
  .ep-topbar,
  .topbar,
  .epn-header {
    min-height: 104px;
    padding: 18px clamp(26px, 3.2vw, 52px);
    border-radius: 26px 26px 0 0;
  }

  .ep-logo,
  .brand-mark-image,
  .epn-brand img {
    width: 70px;
    height: 70px;
    flex-basis: 70px;
    border-radius: 21px;
  }

  .ep-brand-copy strong,
  .brand-title,
  .epn-brand strong {
    font-size: clamp(27px, 2.1vw, 33px);
    letter-spacing: -.045em;
  }

  .ep-brand-copy small,
  .location-chip,
  .epn-brand small {
    font-size: 14px;
  }

  .ep-icon-button,
  .ep-language-button,
  .topbar-button,
  .avatar-button {
    min-height: 52px;
    height: 52px;
    border-radius: 17px;
  }

  .ep-icon-button,
  .topbar-button,
  .avatar-button {
    width: 52px;
  }

  /* Real website navigation. */
  .ep-desktop-nav,
  .desktop-primary-nav {
    top: 104px;
    justify-content: flex-start;
    gap: 7px;
    min-height: 68px;
    padding: 10px clamp(26px, 3.2vw, 52px) 12px;
  }

  .ep-desktop-nav a,
  .desktop-primary-nav a,
  .epn-desktop-nav a {
    min-height: 46px;
    padding: 11px 16px;
    border-radius: 14px;
    font-size: 15px;
    font-weight: 800;
  }

  .ep-desktop-nav svg,
  .desktop-primary-nav .ui-icon {
    width: 20px;
    height: 20px;
  }

  /* Admin strip belongs to the desktop dashboard, not to a narrow phone card. */
  .ep-admin-live-strip {
    margin: 14px clamp(26px, 3.2vw, 52px) 0;
    min-height: 64px;
    padding: 10px 18px;
    grid-template-columns: 48px minmax(0, 1fr) auto auto 22px;
    gap: 14px;
    border-radius: 18px;
  }

  .ep-admin-live-icon {
    width: 46px;
    height: 46px;
    border-radius: 15px;
  }

  .ep-admin-live-copy small { font-size: 10px; }
  .ep-admin-live-copy strong { font-size: 16px; }
  .ep-admin-live-copy em { font-size: 12px; }
  .ep-admin-live-count b { font-size: 25px; }
  .ep-admin-live-count small { font-size: 10px; }

  /* Shared content pages use the available monitor width. */
  .main-content,
  .ep-social-main,
  .epn-main {
    width: 100%;
    max-width: 1460px;
    margin-inline: auto;
    padding-left: clamp(28px, 3.5vw, 56px);
    padding-right: clamp(28px, 3.5vw, 56px);
  }

  .main-content {
    padding-top: 42px;
    padding-bottom: 88px;
  }

  .main-content p {
    font-size: 16px;
    line-height: 1.65;
  }

  .site-legal-footer {
    width: calc(100% - clamp(56px, 7vw, 112px));
    max-width: 1460px;
  }

  /* Homepage: main editorial column + useful side rail. */
  .ep-shell > main {
    width: 100%;
    max-width: none;
    padding: 34px clamp(26px, 3.5vw, 56px) 8px;
    display: grid;
    grid-template-columns: minmax(0, 1.82fr) minmax(300px, .78fr);
    grid-template-areas:
      "hero alert"
      "start start"
      "latest quick";
    column-gap: clamp(26px, 3vw, 44px);
    row-gap: 38px;
    align-items: start;
  }

  .ep-hero {
    grid-area: hero;
    min-height: 500px;
    aspect-ratio: auto;
    border-radius: 32px;
    box-shadow: 0 24px 52px rgba(12, 45, 72, .18);
  }

  .ep-hero-image {
    object-position: center 48%;
  }

  .ep-hero-location {
    left: 36px;
    bottom: 42px;
  }

  .ep-hero .ep-location-icon {
    width: 66px;
    height: 66px;
    flex-basis: 66px;
  }

  .ep-hero .ep-location-copy small { font-size: 14px; }
  .ep-hero .ep-location-copy strong { font-size: 31px; }
  .ep-hero .ep-change-link {
    right: 34px;
    bottom: 44px;
    min-height: 46px;
    padding: 12px 20px;
    font-size: 15px;
  }

  .ep-search--detached {
    grid-area: hero;
    align-self: end;
    justify-self: center;
    z-index: 6;
    width: calc(100% - 82px);
    min-height: 72px;
    margin: 0 0 -28px;
    grid-template-columns: 32px minmax(0, 1fr) 60px;
    padding-left: 24px;
    border-radius: 23px;
    box-shadow: 0 22px 52px rgba(13, 48, 78, .22);
  }

  .ep-search--detached input {
    font-size: 18px;
    font-weight: 600;
  }

  .ep-search--detached button {
    width: 60px;
    height: 60px;
    border-radius: 18px;
  }

  /* Alert is a proper side feature. */
  .ep-alert-card {
    grid-area: alert;
    align-self: stretch;
    min-height: 500px;
    margin: 0;
    padding: 34px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 22px;
    border-radius: 30px;
    overflow: hidden;
    background:
      radial-gradient(circle at 100% 0%, rgba(223, 72, 86, .13), transparent 15rem),
      linear-gradient(155deg, #fff5f5 0%, #ffffff 66%);
    box-shadow: 0 20px 46px rgba(120, 37, 48, .10);
  }

  .ep-alert-card::before {
    content: "";
    width: 100%;
    height: 7px;
    border-radius: 999px;
    background: linear-gradient(90deg, #df4856, #f59b74);
  }

  .ep-alert-icon {
    width: 72px;
    height: 72px;
    border-radius: 22px;
  }

  .ep-alert-icon svg {
    width: 34px;
    height: 34px;
  }

  .ep-alert-copy {
    display: block;
  }

  .ep-alert-copy small {
    display: block;
    margin-bottom: 12px;
    font-size: 13px;
    letter-spacing: .09em;
  }

  .ep-alert-copy strong {
    display: block;
    font-size: clamp(24px, 2.1vw, 32px);
    line-height: 1.18;
    letter-spacing: -.035em;
  }

  .ep-alert-card-arrow {
    width: 54px;
    height: 54px;
    margin-top: auto;
    border-radius: 17px;
  }

  .ep-alert-card-arrow svg {
    width: 23px;
    height: 23px;
  }

  .ep-start-section {
    grid-area: start;
    margin-top: 8px;
  }

  .ep-section-heading p {
    margin-bottom: 7px;
    font-size: 14px;
    font-weight: 700;
  }

  .ep-section-heading h1 {
    margin-bottom: 26px;
    font-size: clamp(40px, 3.8vw, 56px);
    letter-spacing: -.055em;
  }

  /* On ordinary laptops use large 2x2 cards. Four columns only on wide monitors. */
  .ep-hub-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
  }

  .ep-hub-card {
    min-height: 220px;
    padding: 28px;
    border-radius: 28px;
  }

  .ep-hub-card::after {
    right: -42px;
    top: -52px;
    width: 150px;
    height: 150px;
  }

  .ep-hub-icon {
    width: 64px;
    height: 64px;
    margin-bottom: 20px;
    border-radius: 20px;
  }

  .ep-hub-icon svg {
    width: 31px;
    height: 31px;
  }

  .ep-hub-content strong {
    font-size: 24px;
  }

  .ep-hub-content small {
    max-width: 430px;
    font-size: 15px;
    line-height: 1.55;
  }

  .ep-hub-open {
    padding-top: 18px;
    font-size: 14px;
  }

  .ep-latest-section {
    grid-area: latest;
    margin-top: 0;
  }

  .ep-quick-section {
    grid-area: quick;
    margin-top: 0;
  }

  .ep-row-heading {
    margin-bottom: 18px;
  }

  .ep-row-heading h2 {
    font-size: 31px;
  }

  .ep-row-heading a {
    font-size: 14px;
  }

  .ep-quick-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .ep-quick-card {
    min-height: 156px;
    padding: 22px;
    border-radius: 24px;
    display: grid;
    grid-template-columns: 58px minmax(0, 1fr);
    grid-template-rows: auto auto;
    column-gap: 16px;
    align-content: center;
  }

  .ep-quick-card > span {
    grid-row: 1 / 3;
    width: 58px;
    height: 58px;
    margin: 0;
    border-radius: 18px;
  }

  .ep-quick-card > span svg {
    width: 27px;
    height: 27px;
  }

  .ep-quick-card strong {
    align-self: end;
    font-size: 19px;
  }

  .ep-quick-card small {
    margin-top: 6px;
    font-size: 14px;
    line-height: 1.45;
  }

  .ep-news-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .ep-news-card {
    grid-template-columns: 190px minmax(0, 1fr) 42px;
    gap: 20px;
    min-height: 175px;
    padding: 16px;
    border-radius: 25px;
  }

  .ep-news-image {
    width: 190px;
    height: 142px;
    border-radius: 19px;
  }

  .ep-news-copy strong {
    font-size: 20px;
    line-height: 1.3;
  }

  .ep-news-copy small {
    margin-top: 8px;
    font-size: 14px;
    line-height: 1.5;
  }

  .ep-news-source,
  .ep-news-alert-label {
    font-size: 11px;
  }

  /* Shared page grids stay readable on a normal laptop. */
  .hub-list,
  .chat-room-grid,
  .chat-room-grid--six,
  .issues-grid,
  .ep-category-grid,
  .ep-category-picker,
  .ep-listing-grid,
  .epn-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hub-card,
  .chat-room-card,
  .chat-room-card--direct,
  .issue-card,
  .ep-category-tile,
  .ep-listing-card {
    box-shadow: 0 12px 30px rgba(18, 54, 83, .075);
  }

  .hub-card-title strong,
  .chat-room-card > strong,
  .ep-category-tile strong,
  .ep-listing-card h3 {
    font-size: 19px;
  }

  .issues-grid .issue-card h3 {
    font-size: 23px;
  }

  .report-category-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .ep-social-top {
    padding-left: max(28px, calc((100vw - 1460px) / 2));
    padding-right: max(28px, calc((100vw - 1460px) / 2));
  }

  .ep-social-main {
    max-width: 1460px;
    padding-top: 40px;
  }

  .ep-classifieds-hero {
    min-height: 340px;
    padding: 52px;
  }

  .ep-classifieds-hero h1 {
    font-size: clamp(48px, 4.4vw, 64px);
  }

  .ep-create-hero h1,
  .issues-hero h1,
  .chat-home-hero h1,
  .hub-hero h1 {
    font-size: clamp(42px, 4vw, 58px);
  }

  .epn-shell {
    overflow: hidden;
  }

  .epn-main {
    padding-top: 46px;
  }

  .epn-hero-title h1 {
    font-size: clamp(48px, 4.4vw, 66px);
  }
}

/* Wide monitors can show richer multi-column grids without shrinking content. */
@media (min-width: 1380px) {
  .ep-shell > main {
    grid-template-columns: minmax(0, 2.08fr) minmax(340px, .82fr);
  }

  .ep-hub-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .ep-hub-card {
    min-height: 270px;
  }

  .ep-news-grid,
  .epn-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ep-news-card {
    grid-template-columns: 165px minmax(0, 1fr) 36px;
  }

  .ep-news-image {
    width: 165px;
  }

  .hub-list,
  .chat-room-grid,
  .chat-room-grid--six,
  .issues-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .ep-category-grid,
  .ep-category-picker {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .ep-listing-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .report-category-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

@media (min-width: 1560px) {
  .ep-listing-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

/* v1.12.9 — desktop-only classifieds layout after hero removal */
@media (min-width: 1024px) {
  .ep-classifieds-actions{display:flex;align-items:center;justify-content:flex-end;margin:0 0 14px}
  .ep-classifieds-actions .ep-button{min-width:auto;min-height:48px;padding:0 20px;border-radius:16px;font-size:15px}
  .ep-listing-search{grid-template-columns:minmax(0,1.45fr) minmax(220px,.9fr) 140px;gap:12px;margin:0;padding:13px 15px;border-radius:22px}
  .ep-search-field{min-height:52px}
  .ep-search-field input{font-size:15px}
  .ep-category-section,.ep-results-section{margin-top:28px}
}


/* v1.12.11 — desktop premium classifieds alignment */
@media(min-width:1024px){
  .ep-classifieds-topbar{display:flex;align-items:center;justify-content:space-between;gap:18px;margin:0 0 14px;padding:0 2px}
  .ep-classifieds-title strong{font-size:30px}
  .ep-post-button{min-height:46px;padding:0 18px;border-radius:15px;font-size:14px}
  .ep-listing-search--premium{grid-template-columns:minmax(0,1.35fr) minmax(220px,.85fr) 116px;gap:10px;margin:0;padding:12px;border-radius:22px}
  .ep-listing-search--premium .ep-search-field{min-height:50px}
  .ep-search-submit{min-width:116px;min-height:50px}
  .ep-category-section,.ep-results-section{margin-top:26px}
}

/* EalingPulse 2026-08-06 — restrained desktop gallery width on advert details. */
@media (min-width: 1024px) {
  .ep-listing-detail {
    grid-template-columns: minmax(0, 700px) minmax(280px, 1fr);
    align-items: start;
  }

  .ep-listing-detail__media {
    width: 100%;
    max-width: 700px;
  }

  .ep-detail-main-image {
    max-height: 525px;
  }
}
