
/* 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-auth-action-form {
    display: block;
    margin: 0;
  }

  .ep-auth-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-width: 92px;
    height: 48px;
    padding: 0 14px;
    border: 1px solid rgba(18, 145, 137, .28);
    border-radius: 16px;
    background: linear-gradient(135deg, #f1fbf9, #ffffff);
    color: #0b756f;
    font: inherit;
    font-size: 12px;
    font-weight: 900;
    line-height: 1;
    white-space: nowrap;
    text-decoration: none;
    box-shadow: 0 6px 16px rgba(17, 96, 92, .07);
    cursor: pointer;
  }

  .ep-auth-action svg {
    width: 18px;
    height: 18px;
    flex: 0 0 auto;
  }

  .ep-auth-action:hover {
    border-color: rgba(18, 145, 137, .48);
    background: #edf9f7;
  }

  .ep-auth-action--logout {
    border-color: rgba(90, 112, 126, .24);
    background: linear-gradient(135deg, #f8fafb, #ffffff);
    color: #425f70;
  }

  .top-auth-action-form {
    display: block;
    margin: 0;
  }

  .top-auth-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-width: 94px;
    height: 48px;
    padding: 0 14px;
    border: 1px solid rgba(18, 145, 137, .28);
    border-radius: 16px;
    background: linear-gradient(135deg, #f1fbf9, #ffffff);
    color: #0b756f;
    font: inherit;
    font-size: 12px;
    font-weight: 900;
    line-height: 1;
    white-space: nowrap;
    text-decoration: none;
    box-shadow: 0 6px 16px rgba(17, 96, 92, .07);
    cursor: pointer;
  }

  .top-auth-action .ui-icon {
    width: 18px;
    height: 18px;
  }

  .top-auth-action:hover {
    border-color: rgba(18, 145, 137, .48);
    background: #edf9f7;
  }

  .top-auth-action--logout {
    border-color: rgba(90, 112, 126, .24);
    background: linear-gradient(135deg, #f8fafb, #ffffff);
    color: #425f70;
  }

  .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: 1024px) and (max-width: 1179px) {
  .ep-auth-action,
  .top-auth-action {
    min-width: 0;
    padding-inline: 10px;
    gap: 5px;
    font-size: 11px;
  }
}

@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));
  }
}

@media (min-width: 1024px) {
  .report-illustration-card--resident {
    display:grid;
    grid-template-columns:minmax(0,1.15fr) minmax(360px,.85fr);
    align-items:stretch;
    min-height:340px;
  }

  .report-illustration-card--resident > img {
    height:100%;
    min-height:340px;
    object-fit:cover;
  }

  .report-illustration-card--resident .report-message-panel {
    display:flex;
    flex-direction:column;
    justify-content:center;
    padding:34px 34px 36px;
  }

  .report-illustration-card--resident .report-message-panel h1 {
    font-size:42px;
    line-height:1.02;
    margin-bottom:12px;
  }

  .report-illustration-card--resident .report-message-panel p,
  .report-community-link--resident small,
  .report-section-help {
    font-size:15px;
    line-height:1.6;
  }

  .report-community-link--resident {
    margin-top:18px;
    grid-template-columns:52px minmax(0,1fr) auto;
    padding:22px 24px;
    border-radius:22px;
  }

  .report-community-link--resident > span {
    width:52px;
    height:52px;
    border-radius:16px;
  }

  .report-community-link--resident strong {
    font-size:20px;
  }

  .report-community-link--resident a {
    align-self:center;
    min-height:48px;
    padding:0 18px;
    border-radius:14px;
    font-size:14px;
  }

  .report-steps--resident {
    margin-top:18px;
    padding:16px 18px;
    border-radius:20px;
  }

  .report-steps--resident span {
    font-size:13px;
    gap:8px;
  }

  .report-steps--resident b {
    width:34px;
    height:34px;
    font-size:14px;
  }

  .report-form--resident {
    gap:18px;
  }

  .report-form--resident .report-form-section {
    padding:24px;
    border-radius:24px;
  }

  .report-form--resident .report-step-label strong {
    font-size:24px;
  }

  .report-form--resident .report-step-label span {
    font-size:11px !important;
    padding:6px 10px;
  }

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

  .report-category {
    min-height:118px;
    padding:16px 10px;
    border-radius:18px;
    gap:10px;
  }

  .report-category strong {
    font-size:14px;
    line-height:1.28;
  }

  .category-icon {
    width:42px;
    height:42px;
    border-radius:14px;
  }

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

  .report-form--resident .photo-upload {
    min-height:98px;
    padding:18px 22px;
    border-radius:18px;
  }

  .report-form--resident .photo-upload strong,
  .similar-report-panel-head strong,
  .similar-report-result strong {
    font-size:16px;
  }

  .report-form--resident .photo-upload small,
  .similar-report-panel-head small,
  .similar-report-result small,
  .privacy-inline-note span {
    font-size:13px;
  }

  .report-form--resident .form-field span {
    font-size:13px;
  }

  .report-form--resident .form-field input,
  .report-form--resident .form-field textarea,
  .report-form--resident select {
    min-height:58px;
    padding:16px 18px;
    font-size:16px;
    border-radius:16px;
  }

  .report-form--resident textarea {
    min-height:160px;
  }

  .similar-report-panel {
    margin-top:14px;
    padding:18px;
    border-radius:20px;
  }

  .similar-report-panel-head {
    grid-template-columns:48px minmax(0,1fr);
    gap:12px;
  }

  .similar-report-panel-head > span {
    width:48px;
    height:48px;
    border-radius:14px;
  }

  .similar-report-result {
    padding:14px 16px;
    border-radius:16px;
  }

  .similar-report-result b,
  .text-button,
  .issue-open-link,
  .issue-card-actions button,
  .issue-confirm-login {
    font-size:13px;
  }

  .text-button {
    text-align:left;
  }

  .report-submit-note--resident {
    grid-template-columns:44px minmax(0,1fr);
    gap:12px;
    padding:18px;
    border-radius:18px;
  }

  .report-submit-note--resident > span {
    width:44px;
    height:44px;
    border-radius:14px;
  }

  .report-submit-note--resident p,
  .resident-publish-notice span,
  .resident-publish-notice small {
    font-size:14px !important;
    line-height:1.6;
  }

  .report-form--resident .coral-button {
    min-height:58px;
    font-size:17px;
    border-radius:16px;
  }
}

@media (min-width:1024px){
  .issues-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:20px;align-items:start}
  .issue-card--social{border-radius:26px}
  .issue-social-author{grid-template-columns:52px minmax(0,1fr) auto;padding:18px 18px 13px}.issue-social-avatar{width:52px;height:52px}.issue-social-author strong{font-size:16px}.issue-social-author small{font-size:13px}
  .issue-card-body--social{padding:0 18px 16px}.issue-social-category{font-size:11px}.issue-card-body--social h3{font-size:23px}.issue-card-body--social>p{font-size:15px;line-height:1.62}
  .issue-card-media--social{min-height:310px}.issue-social-counts{padding:13px 18px;font-size:13px}.issue-card-actions--social{padding:9px 12px}.issue-card-actions--social button,.issue-card-actions--social a,.issue-card-actions--social .issue-confirmed{min-height:46px;font-size:14px}
  .resident-post-page-head h1{font-size:36px}.resident-social-post{max-width:900px;margin:0 auto;border-radius:28px}.resident-social-author{grid-template-columns:60px minmax(0,1fr) auto;padding:20px}.resident-social-avatar{width:60px;height:60px}.resident-social-author strong{font-size:18px}.resident-social-author small{font-size:14px}
  .resident-social-copy{padding:0 22px 22px}.resident-social-copy h2{font-size:32px}.resident-social-copy>p{font-size:17px;line-height:1.7}.resident-social-category{font-size:11px}
  .resident-social-gallery a,.resident-social-gallery img{min-height:330px}.resident-social-counts{padding:15px 22px;font-size:14px}.resident-social-actions{padding:10px 14px}.resident-social-actions button,.resident-social-actions a,.resident-action-confirmed{min-height:50px;font-size:14px}
  .resident-comments-section,.resident-post-history,.resident-admin-panel{max-width:900px;margin-left:auto;margin-right:auto}.resident-comments-section{padding:22px}.resident-comment-form{grid-template-columns:minmax(0,1fr) auto;align-items:end}.resident-comment-form textarea{font-size:15px}.resident-comment{grid-template-columns:46px minmax(0,1fr)}.resident-comment-avatar{width:46px;height:46px}.resident-comment>div{padding:13px 15px}.resident-comment header strong{font-size:14px}.resident-comment header small{font-size:12px}.resident-comment p{font-size:14px!important}
}
@media(min-width:1440px){.issues-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}

@media(min-width:1024px){
  .map-workspace{grid-template-columns:minmax(0,1.55fr) minmax(360px,.75fr);gap:20px;align-items:stretch}.issue-map{min-height:650px}.map-selected-issue{position:sticky;top:170px;align-self:start}.map-selected-empty,.map-selected-card{min-height:420px}.map-selected-media{min-height:245px}.map-selected-media img{min-height:245px}.map-selected-body{padding:20px}.map-selected-body>small{font-size:11px}.map-selected-body h3{font-size:27px}.map-selected-body p{font-size:15px;line-height:1.6}.map-selected-facts span{font-size:12px}.map-result-list--visual{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.map-result-card--visual{grid-template-columns:minmax(0,1fr);padding:10px}.map-result-select{grid-template-columns:125px minmax(0,1fr)}.map-result-thumb{width:125px;height:105px}.map-result-copy small{font-size:10px}.map-result-copy strong{font-size:17px}.map-result-copy em{font-size:13px}.map-result-copy span{font-size:11px}.map-result-card--visual>a{text-align:center;font-size:12px}.map-popup-image{height:150px}
}

@media (min-width:1024px){
  .civic-hero{grid-template-columns:minmax(0,1fr) 260px;gap:28px;padding:34px;border-radius:30px}.civic-hero h1{font-size:44px;max-width:880px}.civic-hero p{font-size:16px;line-height:1.65}.civic-hero-stat{min-height:190px;border-radius:25px}.civic-hero-stat strong{font-size:48px}.civic-hero-stat span{font-size:13px}.civic-case-stats{gap:10px}.civic-case-stats>div{padding:17px;border-radius:18px}.civic-case-stats strong{font-size:32px}.civic-case-stats span{font-size:11px}.civic-legal-note{margin-top:18px;padding:18px 20px;grid-template-columns:44px minmax(0,1fr);border-radius:20px}.civic-legal-note>.ui-icon{width:30px;height:30px}.civic-legal-note p{font-size:14px!important}.civic-filter-panel{margin-top:18px;padding:18px;grid-template-columns:minmax(260px,1.4fr) repeat(2,minmax(180px,.7fr)) auto;align-items:end;gap:12px;border-radius:22px}.civic-filter-panel label>span{font-size:12px}.civic-filter-panel input,.civic-filter-panel select{min-height:50px;padding:13px 14px;font-size:14px;border-radius:14px}.civic-filter-panel .primary-button{grid-column:auto;min-height:50px;padding:0 20px}.civic-list-heading{margin:30px 0 15px}.civic-list-heading h2{font-size:30px}.civic-list-heading>span{font-size:13px}.councillor-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.councillor-card{padding:20px;border-radius:24px}.councillor-card header{grid-template-columns:68px minmax(0,1fr);gap:14px}.councillor-avatar{width:68px;height:68px;border-radius:21px;font-size:21px}.councillor-card h3{font-size:19px}.councillor-card header p{font-size:12px!important}.councillor-role{font-size:12px;padding:10px 12px}.councillor-actions>a{grid-template-columns:38px minmax(0,1fr);padding:12px;border-radius:14px}.councillor-actions .ui-icon{width:22px;height:22px}.councillor-actions small{font-size:10px}.councillor-actions strong{font-size:12px}.councillor-profile-link{font-size:12px}.civic-source-note{margin-top:20px;padding:18px;border-radius:19px}.civic-source-note p{font-size:13px!important}.civic-source-note small{font-size:11px}.ombudsman-feed{grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.ombudsman-card{padding:20px;border-radius:22px}.ombudsman-card h3{font-size:18px}.ombudsman-card time{font-size:11px}.ombudsman-outcome,.ombudsman-category{font-size:11px}.ombudsman-card>p{font-size:14px!important}.ombudsman-card footer span{font-size:10px}.ombudsman-card footer a{font-size:11px}
}

@media (min-width: 1024px) {
  .civic-region-section{margin-top:24px}
  .civic-list-heading--regions{margin-bottom:16px}
  .civic-all-link{min-height:44px;padding:11px 16px;font-size:12px;border-radius:14px}
  .civic-region-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}
  .civic-region-card{min-height:176px;padding:20px;grid-template-columns:54px minmax(0,1fr);gap:14px;border-radius:24px}
  .civic-region-card::after{right:-30px;bottom:-38px;width:124px;height:124px}
  .civic-region-icon{width:54px;height:54px;border-radius:17px}
  .civic-region-icon .ui-icon{width:26px;height:26px}
  .civic-region-card strong{font-size:20px}
  .civic-region-card small{margin-top:7px;font-size:12px;line-height:1.5}
  .civic-region-card>b{left:20px;bottom:18px;font-size:28px}
  .civic-region-card>em{left:54px;bottom:21px;font-size:10px}
  .councillor-region-results{gap:26px}
  .councillor-ward-heading{margin-bottom:14px;padding:16px 18px;border-radius:19px}
  .councillor-ward-heading>div>span{width:44px;height:44px;border-radius:14px}
  .councillor-ward-heading .ui-icon{width:22px;height:22px}
  .councillor-ward-heading h3{font-size:21px}
  .councillor-ward-heading p{font-size:11px!important}
  .councillor-ward-heading>b{padding:8px 11px;font-size:10px}
  .councillor-avatar--illustrated{width:78px;height:78px;border-radius:23px}
  .councillor-card header{grid-template-columns:78px minmax(0,1fr)}
}


/* v1.18.13 — one consistent desktop frame across the public portal */
@media (min-width: 1024px) {
  .page-wrap { padding: 12px; }

  .app-shell,
  .ep-shell,
  .epn-shell {
    width: min(calc(100% - 24px), 1580px) !important;
    max-width: 1580px !important;
    margin: 12px auto !important;
  }

  .app-shell,
  .ep-shell { min-height: calc(100vh - 24px); }

  .main-content,
  .epn-main {
    width: 100%;
    max-width: 1460px;
    margin-inline: auto;
    padding-left: clamp(28px, 3.5vw, 56px);
    padding-right: clamp(28px, 3.5vw, 56px);
  }

  .ep-shell > main {
    width: 100%;
    max-width: 1460px;
    margin-inline: auto;
    padding-left: clamp(28px, 3.5vw, 56px);
    padding-right: clamp(28px, 3.5vw, 56px);
  }

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

  .epn-legal-footer {
    width: calc(100% - clamp(56px, 7vw, 112px));
    max-width: 1460px;
    margin-left: auto;
    margin-right: auto;
  }

  /* Article text remains deliberately narrower for comfortable reading. */
  .epn-article,
  .epn-related { max-width: 1060px; }
}


/* v1.19.3 — keep the Local news header on one line */
@media (min-width:1024px){
  .epn-header{
    display:grid;
    grid-template-columns:auto minmax(0,1fr) auto;
    align-items:center;
    gap:18px;
  }
  .epn-brand{min-width:220px}
  .epn-desktop-nav{
    min-width:0;
    flex-wrap:nowrap;
    justify-content:center;
    gap:2px;
  }
  .epn-desktop-nav a{
    min-height:38px;
    padding:8px 10px;
    font-size:12px;
    white-space:nowrap;
  }
  .epn-header-actions{gap:7px;white-space:nowrap}
  .epn-write-article{display:inline-flex}
}
@media (min-width:1024px) and (max-width:1180px){
  .epn-header{gap:10px;padding-inline:22px}
  .epn-brand{min-width:188px}
  .epn-brand small{display:none}
  .epn-desktop-nav a{padding-inline:7px;font-size:11px}
  .epn-write-article{width:43px;padding:0}
  .epn-write-article strong{display:none}
}


/* Councillors refresh desktop */
.councillor-grid{gap:18px}
.councillor-card{padding:22px;border-radius:28px;box-shadow:0 18px 40px rgba(24,62,88,.08)}
.councillor-card::before{height:5px}
.councillor-card-head{grid-template-columns:72px minmax(0,1fr);gap:16px}
.councillor-avatar{width:72px;height:72px;border-radius:22px}
.councillor-card h3{font-size:20px}
.councillor-card-head p{font-size:12px!important}
.councillor-meta-pills{gap:8px;margin-top:10px}
.councillor-meta-pills span{padding:7px 11px;font-size:11px}
.councillor-facts{margin-top:15px;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.councillor-fact-box{padding:13px 14px;border-radius:17px}
.councillor-fact-box small{font-size:10px}
.councillor-fact-box strong{font-size:13px}
.councillor-actions{margin-top:14px;gap:10px}
.councillor-actions>a{grid-template-columns:40px minmax(0,1fr);padding:13px 14px;border-radius:16px}
.councillor-actions .ui-icon{width:20px;height:20px}
.councillor-actions small{font-size:10px}
.councillor-actions strong{font-size:12px}
.councillor-card-footer{margin-top:14px;padding-top:13px}
.councillor-public-note{font-size:10px}
.councillor-public-note .ui-icon{width:16px;height:16px}
.councillor-profile-link{padding:12px 14px;border-radius:14px;font-size:12px}
