/* ewallst.com–inspired chrome: light news layout, header, footer, sections */
:root {
  --ew-bg: #ffffff;
  --ew-text: #1a1a1a;
  --ew-muted: #5c5c5c;
  --ew-border: #e5e5e5;
  --ew-link: #0b5fff;
  --ew-link-hover: #0047c7;
  --ew-header-bg: #fafafa;
  --ew-ticker-bg: #f0f4f8;
  --ew-font-sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --ew-font-serif: Georgia, "Times New Roman", Times, serif;
  --ew-dropdown-shadow: 0 10px 40px rgba(0, 0, 0, 0.14);
  --ew-focus-ring: 0 0 0 2px #fff, 0 0 0 4px var(--ew-link);
  /* One rail for header / ticker / pro band / footer / ``.ew-container`` (same as home ``/`` wallst width). */
  --ew-rail-max: 1400px;
  --ew-rail-pad-x: 24px;
}

@media (max-width: 640px) {
  :root {
    --ew-rail-pad-x: 16px;
  }
}

/* Screen reader–only text (kept for optional chrome labels). */
.ew-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.ew-body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--ew-bg);
  color: var(--ew-text);
  font-family: var(--ew-font-sans);
  font-size: 15px;
  line-height: 1.5;
}

.ew-header {
  position: relative;
  z-index: 300;
  border-bottom: 1px solid #333333;
  background: #000000;
  box-shadow: none;
}

/* While the language menu is open, lift chrome above Google Translate hit-targets (see site-i18n ``ewLangMenuSetOpen``). */
body.ew-lang-menu-open #siteChromeHeader {
  position: relative;
  z-index: 2147483000;
}

.ew-header__top {
  max-width: var(--ew-rail-max);
  margin: 0 auto;
  padding: 12px var(--ew-rail-pad-x);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  gap: 14px 24px;
}

.ew-logo {
  font-family: var(--ew-font-serif);
  font-size: 1.35rem;
  font-weight: 700;
  color: #ffffff;
  text-decoration: none;
  letter-spacing: -0.02em;
}

.ew-logo:hover {
  color: #e0e0e0;
}

.ew-header__lead {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  flex-shrink: 0;
}

.ew-header__menu-btn {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  margin: 0;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  cursor: pointer;
  color: #ffffff;
  flex-shrink: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

.ew-header__menu-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.75);
}

.ew-header__menu-btn:focus {
  outline: none;
}

.ew-header__menu-btn:focus-visible {
  box-shadow: var(--ew-focus-ring);
  border-color: var(--ew-link);
}

.ew-header__menu-icon {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 20px;
}

.ew-header__menu-icon-bar {
  display: block;
  height: 2px;
  width: 100%;
  background: #ffffff;
  border-radius: 1px;
  transition:
    transform 0.2s ease,
    opacity 0.15s ease;
}

.ew-header--nav-open .ew-header__menu-icon-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.ew-header--nav-open .ew-header__menu-icon-bar:nth-child(2) {
  opacity: 0;
}

.ew-header--nav-open .ew-header__menu-icon-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.ew-header__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  font-size: 0.9rem;
  flex: 1 1 auto;
  min-width: min(100%, 12rem);
  justify-content: flex-start;
}

.ew-header__nav a {
  color: #ffffff;
  text-decoration: none;
}

.ew-header__nav a:hover {
  color: #ffffff;
  text-decoration: underline;
}

.ew-header__right {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 12px 18px;
  margin-left: auto;
}

.ew-header__contact {
  font-size: 0.88rem;
  color: #cccccc;
  text-decoration: none;
  white-space: nowrap;
}

.ew-header__contact:hover {
  color: #ffffff;
}

/* Utility links — Account / Admin (ewallst-style app chrome) */
.ew-header__util {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 14px;
  margin-right: 4px;
}

.ew-header__util a {
  font-size: 0.88rem;
  color: #cccccc;
  text-decoration: none;
  white-space: nowrap;
}

.ew-header__util a:hover {
  color: #ffffff;
  text-decoration: underline;
}

/* Language dropdown — right side of header, compact control + panel */
.ew-lang-dropdown {
  position: relative;
  flex-shrink: 0;
}

.ew-lang-dropdown__btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px 8px 10px;
  min-height: 40px;
  font-size: 0.8125rem;
  line-height: 1.25;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 6px;
  background: transparent;
  cursor: pointer;
  color: #ffffff;
  font-family: inherit;
  min-width: 9.5rem;
  max-width: 14rem;
  justify-content: flex-start;
  box-sizing: border-box;
  transition:
    border-color 0.15s ease,
    box-shadow 0.15s ease,
    background 0.15s ease;
}

.ew-lang-dropdown__btn:hover {
  border-color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
}

.ew-lang-dropdown__btn:focus {
  outline: none;
}

.ew-lang-dropdown__btn:focus-visible {
  box-shadow: var(--ew-focus-ring);
  border-color: var(--ew-link);
}

.ew-lang-dropdown--open .ew-lang-dropdown__btn {
  background: rgba(255, 255, 255, 0.12);
  border-color: #ffffff;
  box-shadow: none;
}

.ew-lang-dropdown__globe {
  display: flex;
  flex-shrink: 0;
  color: rgba(255, 255, 255, 0.9);
  align-items: center;
}

.ew-lang-dropdown--open .ew-lang-dropdown__globe {
  color: #ffffff;
}

.ew-lang-dropdown__current {
  text-align: left;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  flex: 1;
  min-width: 0;
  font-weight: 500;
  color: #ffffff;
}

.ew-lang-dropdown__chevron {
  flex-shrink: 0;
  width: 0.45rem;
  height: 0.45rem;
  margin-left: 2px;
  border-right: 2px solid rgba(255, 255, 255, 0.85);
  border-bottom: 2px solid rgba(255, 255, 255, 0.85);
  transform: rotate(45deg);
  transition: transform 0.2s ease;
  margin-top: -3px;
}

.ew-lang-dropdown--open .ew-lang-dropdown__chevron {
  transform: rotate(225deg);
  margin-top: 2px;
  border-color: #ffffff;
}

.ew-lang-dropdown__menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  margin: 0;
  padding: 6px 0;
  width: max-content;
  min-width: calc(100% + 2rem);
  max-width: min(18rem, calc(100vw - 24px));
  max-height: min(70vh, 22rem);
  overflow-y: auto;
  list-style: none;
  background: #fff;
  border: 1px solid #d8d8d8;
  border-radius: 8px;
  box-shadow: var(--ew-dropdown-shadow);
  z-index: 50;
  -webkit-overflow-scrolling: touch;
}

.ew-lang-dropdown__menu[hidden] {
  display: none !important;
}

.ew-lang-dropdown__item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  cursor: pointer;
  font-size: 0.875rem;
  color: var(--ew-text);
  white-space: nowrap;
  transition: background 0.1s ease;
}

.ew-lang-dropdown__item:hover,
.ew-lang-dropdown__item:focus {
  outline: none;
  background: #f0f4f8;
}

.ew-lang-dropdown__item:focus-visible {
  box-shadow: inset 0 0 0 2px var(--ew-link);
}

.ew-lang-dropdown__check {
  flex: 0 0 1.1em;
  width: 1.1em;
  text-align: center;
  font-size: 0.75rem;
  color: var(--ew-link);
  font-weight: 700;
}

.ew-lang-dropdown__item:not(.is-active) .ew-lang-dropdown__check {
  visibility: hidden;
}

.ew-lang-dropdown__item-text {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ew-lang-dropdown__item.is-active {
  font-weight: 600;
  background: #eef4ff;
}

.ew-lang-dropdown__item.is-active:hover,
.ew-lang-dropdown__item.is-active:focus {
  background: #e4ecfc;
}

/* —— Phone / small tablet: collapsible primary nav, touch-friendly chrome —— */
@media (max-width: 768px) {
  .ew-header__top {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding-top: max(10px, env(safe-area-inset-top, 0px));
    padding-left: max(var(--ew-rail-pad-x), env(safe-area-inset-left, 0px));
    padding-right: max(var(--ew-rail-pad-x), env(safe-area-inset-right, 0px));
  }

  .ew-header__lead {
    width: 100%;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 10px;
    border-bottom: 1px solid #333333;
  }

  .ew-header__menu-btn {
    display: inline-flex;
  }

  .ew-logo {
    font-size: 1.2rem;
    min-width: 0;
    flex: 1 1 auto;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    margin-right: 8px;
  }

  .ew-header__nav {
    display: none;
    flex-direction: column;
    flex-wrap: nowrap;
    gap: 0;
    width: 100%;
    min-width: 0;
    padding: 2px 0 10px;
    margin: 0;
    border-bottom: 1px solid #2a2a2a;
  }

  .ew-header--nav-open .ew-header__nav {
    display: flex;
  }

  .ew-header__nav a {
    padding: 14px 2px;
    border-bottom: 1px solid #262626;
    font-size: 1rem;
    line-height: 1.35;
    min-height: 48px;
    box-sizing: border-box;
    display: flex;
    align-items: center;
  }

  .ew-header__nav a:last-child {
    border-bottom: none;
  }

  .ew-header__right {
    width: 100%;
    justify-content: space-between;
    margin-left: 0;
    padding-top: 10px;
    flex-wrap: wrap;
    gap: 10px 14px;
    border-top: none;
  }

  .ew-lang-dropdown {
    flex: 1 1 12rem;
    max-width: none;
    min-width: 0;
  }

  .ew-lang-dropdown__btn {
    max-width: none;
    width: 100%;
    min-width: 0;
    justify-content: space-between;
  }

  .ew-lang-dropdown__menu {
    left: 0;
    right: 0;
    width: auto;
    min-width: 0;
  }

  body.ew-nav-drawer-open {
    overflow: hidden;
    touch-action: none;
  }

  .ew-ticker {
    padding-left: max(var(--ew-rail-pad-x), env(safe-area-inset-left, 0px));
    padding-right: max(var(--ew-rail-pad-x), env(safe-area-inset-right, 0px));
  }

  .ew-ticker__inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }

  .ew-ticker__text {
    min-width: 0;
    width: 100%;
  }

  .ew-pro-band {
    padding-left: max(var(--ew-rail-pad-x), env(safe-area-inset-left, 0px));
    padding-right: max(var(--ew-rail-pad-x), env(safe-area-inset-right, 0px));
  }

  .ew-container {
    padding-top: 18px;
    padding-bottom: 28px;
    padding-left: max(var(--ew-rail-pad-x), env(safe-area-inset-left, 0px));
    padding-right: max(var(--ew-rail-pad-x), env(safe-area-inset-right, 0px));
  }

  .ew-page-title {
    font-size: 1.38rem;
    line-height: 1.2;
  }

  .ew-footer {
    padding-left: max(var(--ew-rail-pad-x), env(safe-area-inset-left, 0px));
    padding-right: max(var(--ew-rail-pad-x), env(safe-area-inset-right, 0px));
    padding-bottom: max(28px, env(safe-area-inset-bottom, 0px));
  }

  .ew-footer__links {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    line-height: 1.45;
  }
}

@media (min-width: 769px) {
  .ew-header__menu-btn {
    display: none !important;
  }
}

/* Hidden host for Google Translate (full-page language, ewallst-style sites often use this). */
.ew-google-translate-slot {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
  pointer-events: none;
}

/* Tame Google Translate UI so layout stays flush */
body {
  top: 0 !important;
  position: static !important;
}

.goog-te-banner-frame,
iframe.goog-te-banner-frame,
.goog-te-balloon-frame,
body > .skiptranslate {
  display: none !important;
  visibility: hidden !important;
}

.ew-ticker {
  border-bottom: 1px solid var(--ew-border);
  background: var(--ew-ticker-bg);
  font-size: 0.8rem;
  padding: 8px var(--ew-rail-pad-x);
  color: var(--ew-muted);
}

.ew-ticker__inner {
  max-width: var(--ew-rail-max);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 16px;
}

.ew-ticker__tag {
  font-size: 12px;
  font-weight: 600;
  color: #666666;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.ew-ticker__text {
  flex: 1;
  min-width: 200px;
}

/* Site-wide registered-dietitian–style insight (all pages with site-chrome) */
.ew-pro-band {
  border-bottom: 1px solid var(--ew-border);
  background: linear-gradient(180deg, #f7faf9 0%, #f2f6f4 100%);
  font-size: 0.8125rem;
  padding: 10px var(--ew-rail-pad-x) 12px;
  color: #2d3d35;
}

.ew-pro-band__inner {
  max-width: var(--ew-rail-max);
  margin: 0 auto;
}

.ew-pro-band__kicker {
  display: block;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: #0d5c3d;
  margin: 0 0 6px;
}

.ew-pro-band__text {
  margin: 0 0 8px;
  line-height: 1.55;
  max-width: 62rem;
  color: #1e2c26;
}

.ew-pro-band__note {
  margin: 0;
  font-size: 0.72rem;
  line-height: 1.45;
  color: var(--ew-muted);
  max-width: 52rem;
}

.ew-main {
  flex: 1;
}

.ew-container {
  max-width: var(--ew-rail-max);
  margin: 0 auto;
  padding: 24px var(--ew-rail-pad-x) 40px;
}

.ew-page-title {
  font-family: var(--ew-font-serif);
  font-size: 1.6rem;
  font-weight: 700;
  margin: 0 0 4px;
  letter-spacing: -0.02em;
}

.ew-page-sub {
  margin: 0 0 6px;
  color: var(--ew-muted);
  font-size: 0.95rem;
  max-width: 52rem;
  line-height: 1.45;
}

.ew-page-sub--lead {
  font-size: 1.05rem;
  color: #333;
  margin-bottom: 4px;
}

.ew-page-meta {
  margin: 0 0 22px;
  color: var(--ew-muted);
  font-size: 0.88rem;
}

/* Hero — large lead story */
.ew-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 24px;
  align-items: start;
  padding-bottom: 28px;
  margin-bottom: 28px;
  border-bottom: 2px solid var(--ew-text);
}

/* ewallst.com-style text lead: headline + source/date + deck (no hero image) */
.ew-hero--text-only {
  grid-template-columns: minmax(0, 1fr);
  max-width: 52rem;
}

.ew-hero--text-only .ew-hero__title--lead {
  font-size: clamp(1.45rem, 3.2vw, 2.05rem);
  line-height: 1.18;
  letter-spacing: -0.02em;
}

.ew-hero--text-only .ew-hero__excerpt {
  font-size: 1rem;
  line-height: 1.6;
  color: #2a2a2a;
}

/* Lead story with photo column (same headline scale as text-only lead). */
.ew-hero--with-image .ew-hero__title--lead {
  font-size: clamp(1.45rem, 3.2vw, 2.05rem);
  line-height: 1.18;
  letter-spacing: -0.02em;
}

.ew-hero--with-image .ew-hero__excerpt {
  font-size: 1rem;
  line-height: 1.6;
  color: #2a2a2a;
}

/* Whole lead block opens detail (ewallst-style tap targets). */
.ew-hero__lead-link {
  display: block;
  color: inherit;
  text-decoration: none;
  border-radius: 2px;
}

.ew-hero__lead-link:hover .ew-hero__title--lead,
.ew-hero__lead-link:focus-visible .ew-hero__title--lead {
  color: var(--ew-link);
}

.ew-hero__lead-link:focus-visible {
  outline: none;
  box-shadow: var(--ew-focus-ring);
}

.ew-hero__img-wrap {
  position: relative;
  aspect-ratio: 16 / 10;
  background: #e8e8e8;
  overflow: hidden;
  border-radius: 2px;
}

.ew-hero__img-link {
  display: block;
  width: 100%;
  height: 100%;
  line-height: 0;
  color: inherit;
}

.ew-hero__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.ew-hero__kicker {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ew-muted);
  margin: 0 0 8px;
}

.ew-hero__title {
  font-family: var(--ew-font-serif);
  font-size: clamp(1.35rem, 2.5vw, 1.85rem);
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 10px;
}

.ew-hero__title a {
  color: var(--ew-text);
  text-decoration: none;
}

.ew-hero__title a:hover {
  color: var(--ew-link);
}

.ew-hero__meta {
  font-size: 0.85rem;
  color: var(--ew-muted);
  margin: 0 0 12px;
}

.ew-hero__excerpt {
  margin: 0;
  color: #333;
  line-height: 1.55;
  font-size: 0.95rem;
}

/* Section headings like ewallst ## */
.ew-section-title {
  font-family: var(--ew-font-serif);
  font-size: 1.25rem;
  font-weight: 700;
  margin: 28px 0 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--ew-border);
}

.ew-section-title:first-of-type {
  margin-top: 0;
}

/* Homepage topic rails (ewallst-style sectioned front) */
.ew-topic-wrap {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0 28px;
  margin-bottom: 8px;
  padding-bottom: 24px;
  border-bottom: 2px solid var(--ew-text);
}

.ew-topic-band {
  min-width: 0;
}

.ew-topic-band__title {
  font-family: var(--ew-font-serif);
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ew-muted);
  margin: 0 0 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--ew-border);
}

.ew-latest--topic .ew-story--compact {
  padding: 12px 0;
}

.ew-latest--topic .ew-story--compact:first-child {
  padding-top: 0;
}

.ew-story--compact .ew-story__thumb {
  width: 100px;
  height: 64px;
}

.ew-story--compact .ew-story__title {
  font-size: 0.95rem;
}

.ew-story--compact .ew-story__excerpt {
  display: none;
}

@media (max-width: 900px) {
  .ew-topic-wrap {
    grid-template-columns: 1fr;
    gap: 28px 0;
    padding-bottom: 16px;
  }
}

/* Food news homepage — single ewallst rhythm (masthead, hero, rails, more grid) */
.ew-fn-mast {
  margin: 0 0 20px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--ew-border);
}

.ew-fn-home .ew-page-meta {
  margin-bottom: 0;
}

.ew-fn-home .ew-topic-wrap {
  margin-bottom: 28px;
  padding-bottom: 28px;
}

.ew-fn-home .ew-topic-band {
  background: var(--ew-header-bg);
  border: 1px solid var(--ew-border);
  border-radius: 2px;
  padding: 16px 14px 8px;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.04);
}

.ew-fn-home .ew-topic-band__title {
  font-family: var(--ew-font-serif);
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-transform: none;
  color: var(--ew-text);
  margin: 0 0 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--ew-border);
}

.ew-fn-home .ew-latest--topic .ew-story--compact {
  border-bottom-color: #dcdcdc;
}

.ew-fn-home .ew-section-title {
  margin-top: 0;
}

.ew-fn-home #fnSectionMore.ew-section-title {
  margin-top: 4px;
}

.ew-fn-home .ew-more-grid {
  margin-bottom: 8px;
}

.ew-hero__img-link:focus-visible {
  outline: none;
  box-shadow: var(--ew-focus-ring);
  border-radius: 2px;
}

/* Latest list */
.ew-latest {
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* Two columns: real <a> flex row (thumb + body) | time. Avoid display:contents on <a> — it breaks clicks in several browsers. */
.ew-story {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px 18px;
  padding: 18px 0;
  border-bottom: 1px solid var(--ew-border);
  align-items: start;
}

.ew-story:first-child {
  padding-top: 0;
}

.ew-story__thumb {
  width: 140px;
  height: 90px;
  object-fit: cover;
  background: #e8e8e8;
  border-radius: 2px;
  display: block;
  flex-shrink: 0;
}

.ew-story__title {
  font-family: var(--ew-font-serif);
  font-size: 1.05rem;
  font-weight: 700;
  margin: 0 0 6px;
  line-height: 1.3;
  color: var(--ew-text);
}

.ew-story__main-link {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 16px;
  min-width: 0;
  color: inherit;
  text-decoration: none;
  border-radius: 2px;
  cursor: pointer;
}

.ew-story__body {
  flex: 1;
  min-width: 0;
}

.ew-story__main-link:hover .ew-story__title,
.ew-story__main-link:focus-visible .ew-story__title {
  color: var(--ew-link);
}

.ew-story__main-link:focus-visible {
  outline: none;
  box-shadow: var(--ew-focus-ring);
}

.ew-story__meta {
  font-size: 0.8rem;
  color: var(--ew-muted);
  margin: 0 0 6px;
}

.ew-story__excerpt {
  margin: 0;
  font-size: 0.88rem;
  color: #444;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.ew-story__time {
  font-size: 0.78rem;
  color: var(--ew-muted);
  margin-top: 2px;
  white-space: nowrap;
  text-align: right;
  min-width: 3.5rem;
  font-variant-numeric: tabular-nums;
}

.ew-latest--continued {
  margin-top: 0;
}

.ew-latest--continued .ew-story:first-child {
  padding-top: 0;
}

/* More coverage grid */
.ew-more-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.ew-more-card {
  border: 1px solid var(--ew-border);
  border-radius: 2px;
  overflow: hidden;
  background: var(--ew-bg);
}

.ew-more-card__img-link {
  display: block;
  width: 100%;
  height: 120px;
  line-height: 0;
  background: #e8e8e8;
}

.ew-more-card__img {
  width: 100%;
  height: 120px;
  object-fit: cover;
  display: block;
  background: #e8e8e8;
}

.ew-more-card__body {
  padding: 10px 12px 12px;
}

.ew-more-card__title {
  font-size: 0.92rem;
  font-weight: 700;
  margin: 0 0 6px;
  line-height: 1.35;
  font-family: var(--ew-font-serif);
}

.ew-more-card__title a {
  color: var(--ew-text);
  text-decoration: none;
}

.ew-more-card__title a:hover {
  color: var(--ew-link);
}

.ew-more-card__meta {
  font-size: 0.75rem;
  color: var(--ew-muted);
  margin: 0;
}

/* Footer */
.ew-footer {
  border-top: 1px solid var(--ew-border);
  background: var(--ew-header-bg);
  margin-top: auto;
  padding: 24px var(--ew-rail-pad-x) 32px;
  font-size: 0.85rem;
  color: var(--ew-muted);
}

.ew-footer__inner {
  max-width: var(--ew-rail-max);
  margin: 0 auto;
}

.ew-footer__brand {
  font-family: var(--ew-font-serif);
  font-weight: 700;
  color: var(--ew-text);
  margin: 0 0 8px;
  font-size: 1rem;
}

.ew-footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-bottom: 14px;
}

.ew-footer__links a {
  color: var(--ew-link);
  text-decoration: none;
}

.ew-footer__links a:hover {
  text-decoration: underline;
}

.ew-footer__copy {
  margin: 0;
  font-size: 0.8rem;
}

@media (max-width: 900px) {
  .ew-hero:not(.ew-hero--text-only) {
    grid-template-columns: 1fr;
  }

  .ew-hero__img-wrap {
    max-height: 280px;
  }

  .ew-story__thumb {
    width: 100px;
    height: 72px;
  }

  .ew-more-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .ew-story {
    grid-template-columns: 1fr;
  }

  .ew-story__main-link {
    flex-direction: column;
  }

  .ew-story__thumb {
    width: 100%;
    height: 160px;
  }

  .ew-story__time {
    text-align: left;
    margin-top: 4px;
  }

  .ew-more-grid {
    grid-template-columns: 1fr;
  }
}

/* —— Account / Admin panels: use full ``.ew-container`` rail (1400px), same as home / trends pages —— */
.ew-app-panel {
  max-width: 100%;
  width: 100%;
  margin: 0;
}

.ew-app-panel--wide {
  max-width: 100%;
}

.ew-card {
  border: 1px solid var(--ew-border);
  border-radius: 2px;
  padding: 22px 20px 28px;
  background: var(--ew-bg);
  margin-bottom: 20px;
}

.ew-card:last-child {
  margin-bottom: 0;
}

.ew-card__title {
  font-family: var(--ew-font-serif);
  font-size: 1.2rem;
  font-weight: 700;
  margin: 0 0 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--ew-border);
}

.ew-form-row {
  margin-bottom: 14px;
}

.ew-label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ew-text);
  margin-bottom: 6px;
}

.ew-input,
.ew-textarea {
  width: 100%;
  max-width: 28rem;
  padding: 10px 12px;
  font: inherit;
  border: 1px solid #c8c8c8;
  border-radius: 6px;
  box-sizing: border-box;
}

.ew-textarea {
  min-height: 100px;
  resize: vertical;
}

.ew-btn {
  display: inline-block;
  padding: 10px 18px;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: 6px;
  cursor: pointer;
  border: 1px solid #c8c8c8;
  background: linear-gradient(180deg, #fff 0%, #f7f7f7 100%);
  color: var(--ew-text);
}

.ew-btn:hover {
  border-color: #9a9a9a;
}

.ew-btn:focus-visible {
  box-shadow: var(--ew-focus-ring);
  outline: none;
}

.ew-btn--primary {
  background: var(--ew-link);
  border-color: var(--ew-link);
  color: #fff;
}

.ew-btn--primary:hover {
  background: var(--ew-link-hover);
  border-color: var(--ew-link-hover);
}

.ew-muted-note {
  font-size: 0.85rem;
  color: var(--ew-muted);
  margin-top: 8px;
  line-height: 1.45;
}

.ew-admin-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.ew-admin-stat {
  border: 1px solid var(--ew-border);
  border-radius: 2px;
  padding: 16px;
  background: #fafafa;
}

.ew-admin-stat__value {
  font-family: var(--ew-font-serif);
  font-size: 1.75rem;
  font-weight: 700;
  margin: 0;
  line-height: 1.2;
}

.ew-admin-stat__label {
  font-size: 0.8rem;
  color: var(--ew-muted);
  margin: 4px 0 0;
}

.ew-admin-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--ew-border);
  border-radius: 2px;
}

.ew-admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}

.ew-admin-table th,
.ew-admin-table td {
  padding: 10px 12px;
  text-align: left;
  border-bottom: 1px solid var(--ew-border);
}

.ew-admin-table th {
  background: #fafafa;
  font-weight: 600;
  color: var(--ew-text);
}

.ew-admin-table tr:last-child td {
  border-bottom: none;
}

.ew-admin-table a {
  color: var(--ew-link);
  text-decoration: none;
}

.ew-admin-table a:hover {
  text-decoration: underline;
}

.ew-detail-back {
  margin-bottom: 16px;
  font-size: 0.9rem;
}

.ew-detail-back a {
  color: var(--ew-link);
  text-decoration: none;
}

.ew-detail-back a:hover {
  text-decoration: underline;
}

/*
 * Home (/) food-news — page-specific grids (rail width uses global ``--ew-rail-*``).
 * Site-wide masthead + ticker are styled in the main ``.ew-header`` / ``.ew-ticker`` rules above.
 */

/* ewallst index goes ticker → main; hide injected pro band on this shell only */
html.ew-layout-wallst29 #siteChromeHeader .ew-pro-band {
  display: none !important;
}

/* Home (/) uses ``food-news.html`` + ``ew-layout-wallst29`` — same injected footer as other pages. */
#siteChromeFooter {
  flex-shrink: 0;
  width: 100%;
}

html.ew-layout-wallst29 .ew-container {
  padding-bottom: 40px;
}

/* wallst ``content-container``: vertical rhythm between featured / grids */
html.ew-layout-wallst29 .ew-fn-content-container {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

html.ew-layout-wallst29 .ew-fn-mast .ew-page-sub--lead {
  display: none;
}

html.ew-layout-wallst29 .ew-fn-mast {
  margin: 0 0 8px;
  padding-bottom: 0;
  border-bottom: none;
}

html.ew-layout-wallst29 .ew-w29-grid-section[hidden] {
  display: none !important;
}

/* wallst ``.section-title`` — light rule above + strong rule below (ewallst.com section framing) */
html.ew-layout-wallst29 .ew-w29-section-title {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 1.35rem;
  font-weight: 700;
  color: #000000;
  margin: 0 0 20px;
  padding-top: 14px;
  padding-bottom: 10px;
  border-top: 1px solid #d0d0d0;
  border-bottom: 2px solid #000000;
  letter-spacing: -0.02em;
}

/* “Today’s Wealth” — solid black rule full width under title (mockup). */
html.ew-layout-wallst29 #fnSectionTodayH.ew-w29-section-title {
  border-top: none;
  padding-top: 8px;
  padding-bottom: 14px;
  margin-bottom: 20px;
  border-bottom: 3px solid #000000;
}

/* Featured block — wallst ``.featured-article`` / ``.featured-image`` */
html.ew-layout-wallst29 .ew-w29-featured {
  width: 100%;
  background: #ffffff;
}

html.ew-layout-wallst29 .ew-w29-featured__image {
  width: 100%;
  margin-bottom: 16px;
  background: #f0f0f0;
  border: 1px solid #e0e0e0;
  overflow: hidden;
}

html.ew-layout-wallst29 .ew-w29-featured__image a {
  display: block;
  line-height: 0;
}

html.ew-layout-wallst29 .ew-w29-featured__img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  max-height: 500px;
  min-height: 200px;
}

html.ew-layout-wallst29 .ew-w29-featured__title {
  font-size: 32px;
  font-weight: 700;
  line-height: 1.3;
  margin: 0 0 12px;
  color: #000000;
}

html.ew-layout-wallst29 .ew-w29-featured__title a {
  color: #000000;
  text-decoration: none;
}

html.ew-layout-wallst29 .ew-w29-featured__title a:hover {
  text-decoration: underline;
}

html.ew-layout-wallst29 .ew-w29-featured__meta {
  font-size: 13px;
  color: #666666;
  margin-bottom: 16px;
}

html.ew-layout-wallst29 .ew-w29-featured__summary {
  font-size: 16px;
  line-height: 1.7;
  color: #333333;
  margin: 0 0 24px;
}

/* Grids — ewallst-style: ``triple-feature`` (1 lead + 2 side) + band rows (five as 3+2 on 3 cols, then three-across). */
html.ew-layout-wallst29 .ew-w29-grid {
  display: grid;
  gap: 24px;
}

/* Block A: 3 stories — 1 large left, 2 stacked right (ewallst: text left / image right on rail). */
html.ew-layout-wallst29 .ew-w29-grid--triple-feature {
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  grid-template-rows: auto auto;
  align-items: stretch;
  gap: 0;
  border: 1px solid #d4d4d4;
  background: #ffffff;
}

html.ew-layout-wallst29 .ew-w29-grid--triple-feature .ew-w29-card {
  border: none;
  box-shadow: none;
  border-radius: 0;
}

html.ew-layout-wallst29 .ew-w29-grid--triple-feature .ew-w29-card:hover {
  box-shadow: none;
  transform: none;
}

html.ew-layout-wallst29 .ew-w29-grid--triple-feature .ew-w29-card--lead {
  grid-column: 1;
  grid-row: 1 / span 2;
  align-self: start;
  height: auto !important;
  max-height: none;
  border-right: 1px solid #d4d4d4;
  padding: 16px 20px 16px 16px;
}

html.ew-layout-wallst29 .ew-w29-grid--triple-feature .ew-w29-card--lead .ew-w29-card__body {
  flex-grow: 0;
  padding: 14px 0 0;
}

html.ew-layout-wallst29 .ew-w29-grid--triple-feature .ew-w29-card--lead .ew-w29-card__summary {
  flex-grow: 0 !important;
  margin-bottom: 10px;
}

html.ew-layout-wallst29 .ew-w29-grid--triple-feature .ew-w29-card--lead .ew-w29-card__time {
  margin-top: 0;
}

html.ew-layout-wallst29 .ew-w29-grid--triple-feature .ew-w29-card--side:nth-of-type(2) {
  grid-column: 2;
  grid-row: 1;
  border-bottom: 1px solid #d4d4d4;
  padding: 12px 16px;
}

html.ew-layout-wallst29 .ew-w29-grid--triple-feature .ew-w29-card--side:nth-of-type(3) {
  grid-column: 2;
  grid-row: 2;
  padding: 12px 16px;
}

html.ew-layout-wallst29 .ew-w29-grid--triple-feature[data-fn-count="1"] .ew-w29-card--lead {
  grid-column: 1 / -1;
  grid-row: 1 / -1;
}

html.ew-layout-wallst29 .ew-w29-grid--triple-feature[data-fn-count="2"] .ew-w29-card--lead {
  grid-row: 1 / span 2;
}

html.ew-layout-wallst29 .ew-w29-grid--triple-feature[data-fn-count="2"] .ew-w29-card--side:nth-of-type(2) {
  grid-row: 1 / span 2;
  align-self: center;
}

/* Block B (homepage bands): “Today’s Wealth” — 6 tracks: row1 three equal (⅓), row2 two wider (½); full width both rows; optional second row = up to three. */
html.ew-layout-wallst29 .ew-w29-band-wrap {
  display: block;
}

html.ew-layout-wallst29 .ew-w29-band-rows {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* Five stories: 6-col grid — row1 three × span2 (equal); row2 two × span3 (wider); edges align with mockup. */
html.ew-layout-wallst29 .ew-w29-row--five-wealth {
  display: grid;
  width: 100%;
  box-sizing: border-box;
  gap: 24px;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  grid-auto-rows: minmax(280px, auto);
}

html.ew-layout-wallst29 .ew-w29-row--five-wealth > .ew-w29-card {
  min-width: 0;
}

html.ew-layout-wallst29 .ew-w29-row--five-wealth .ew-w29-card:nth-child(1) {
  grid-column: 1 / 3;
}

html.ew-layout-wallst29 .ew-w29-row--five-wealth .ew-w29-card:nth-child(2) {
  grid-column: 3 / 5;
}

html.ew-layout-wallst29 .ew-w29-row--five-wealth .ew-w29-card:nth-child(3) {
  grid-column: 5 / 7;
}

html.ew-layout-wallst29 .ew-w29-row--five-wealth .ew-w29-card:nth-child(4) {
  grid-column: 1 / 4;
}

html.ew-layout-wallst29 .ew-w29-row--five-wealth .ew-w29-card:nth-child(5) {
  grid-column: 4 / 7;
}

html.ew-layout-wallst29 .ew-w29-row--five-wealth .ew-w29-card__image {
  height: 200px;
  min-height: 200px;
  background: #ececec;
}

html.ew-layout-wallst29 .ew-w29-row--five-wealth .ew-w29-card:nth-child(4) .ew-w29-card__image,
html.ew-layout-wallst29 .ew-w29-row--five-wealth .ew-w29-card:nth-child(5) .ew-w29-card__image {
  height: 220px;
  min-height: 220px;
}

/* Broken or still-decoding images must still fill the tile (``height:100%`` alone can collapse). */
html.ew-layout-wallst29 .ew-w29-row--five-wealth .ew-w29-card__img {
  width: 100%;
  height: 200px;
  min-height: 200px;
  object-fit: cover;
  display: block;
  background: #e8ebe9;
}

html.ew-layout-wallst29 .ew-w29-row--five-wealth .ew-w29-card:nth-child(4) .ew-w29-card__img,
html.ew-layout-wallst29 .ew-w29-row--five-wealth .ew-w29-card:nth-child(5) .ew-w29-card__img {
  height: 220px;
  min-height: 220px;
}

html.ew-layout-wallst29 .ew-w29-row--three-across {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-auto-rows: minmax(280px, auto);
}

html.ew-layout-wallst29 .ew-w29-row--three-across .ew-w29-card {
  grid-column: auto;
}

html.ew-layout-wallst29 .ew-w29-row--three-across .ew-w29-card__image {
  height: 190px;
  min-height: 190px;
  background: #ececec;
}

html.ew-layout-wallst29 .ew-w29-row--three-across .ew-w29-card__img {
  width: 100%;
  height: 190px;
  min-height: 190px;
  object-fit: cover;
  display: block;
  background: #e8ebe9;
}

html.ew-layout-wallst29 .ew-w29-row--three-across[data-fn-count="1"] {
  grid-template-columns: minmax(0, 1fr);
  max-width: min(100%, 480px);
}

html.ew-layout-wallst29 .ew-w29-row--three-across[data-fn-count="2"] {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

/* Legacy: single-row six-up (unused on food-news homepage after 5+3 bands; kept for older HTML). */
html.ew-layout-wallst29 .ew-w29-grid--five-split {
  grid-template-columns: repeat(6, minmax(0, 1fr));
  grid-auto-rows: minmax(280px, auto);
}

html.ew-layout-wallst29 .ew-w29-grid--five-split[data-fn-count="6"] {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

html.ew-layout-wallst29 .ew-w29-grid--five-split[data-fn-count="6"] .ew-w29-card {
  grid-column: auto !important;
}

html.ew-layout-wallst29 .ew-w29-grid--five-split[data-fn-count="5"] .ew-w29-card:nth-child(1) {
  grid-column: 1 / 3;
}

html.ew-layout-wallst29 .ew-w29-grid--five-split[data-fn-count="5"] .ew-w29-card:nth-child(2) {
  grid-column: 3 / 5;
}

html.ew-layout-wallst29 .ew-w29-grid--five-split[data-fn-count="5"] .ew-w29-card:nth-child(3) {
  grid-column: 5 / 7;
}

html.ew-layout-wallst29 .ew-w29-grid--five-split[data-fn-count="5"] .ew-w29-card:nth-child(4) {
  grid-column: 1 / 4;
}

html.ew-layout-wallst29 .ew-w29-grid--five-split[data-fn-count="5"] .ew-w29-card:nth-child(5) {
  grid-column: 4 / 7;
}

html.ew-layout-wallst29 .ew-w29-grid--five-split[data-fn-count="3"] {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

html.ew-layout-wallst29 .ew-w29-grid--five-split[data-fn-count="3"] .ew-w29-card {
  grid-column: auto !important;
}

html.ew-layout-wallst29 .ew-w29-grid--five-split[data-fn-count="4"] {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

html.ew-layout-wallst29 .ew-w29-grid--five-split[data-fn-count="4"] .ew-w29-card:nth-child(1) {
  grid-column: 1 / 3;
}

html.ew-layout-wallst29 .ew-w29-grid--five-split[data-fn-count="4"] .ew-w29-card:nth-child(2) {
  grid-column: 3 / 5;
}

html.ew-layout-wallst29 .ew-w29-grid--five-split[data-fn-count="4"] .ew-w29-card:nth-child(3) {
  grid-column: 5 / 7;
}

html.ew-layout-wallst29 .ew-w29-grid--five-split[data-fn-count="4"] .ew-w29-card:nth-child(4) {
  grid-column: 1 / -1;
}

html.ew-layout-wallst29 .ew-w29-grid--five-split[data-fn-count="2"] {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

html.ew-layout-wallst29 .ew-w29-grid--five-split[data-fn-count="2"] .ew-w29-card {
  grid-column: auto !important;
}

html.ew-layout-wallst29 .ew-w29-grid--five-split[data-fn-count="1"] {
  grid-template-columns: 1fr;
}

html.ew-layout-wallst29 .ew-w29-grid--five-split[data-fn-count="1"] .ew-w29-card {
  grid-column: auto !important;
}

html.ew-layout-wallst29 .ew-w29-card {
  background: #ffffff;
  border: 1px solid #dddddd;
  border-radius: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: box-shadow 0.2s ease-in-out, border-color 0.2s ease-in-out;
}

html.ew-layout-wallst29 .ew-w29-card:hover {
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
  border-color: #999999;
  transform: translateY(-2px);
}

html.ew-layout-wallst29 .ew-w29-card__media-link {
  display: block;
  line-height: 0;
  background: #f0f0f0;
  flex-shrink: 0;
}

html.ew-layout-wallst29 .ew-w29-card__image {
  width: 100%;
  overflow: hidden;
}

html.ew-layout-wallst29 .ew-w29-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

html.ew-layout-wallst29 .ew-w29-grid--triple-feature .ew-w29-card--lead .ew-w29-card__image {
  height: min(340px, 42vw);
  min-height: 200px;
  max-height: 380px;
}

html.ew-layout-wallst29 .ew-w29-card--side {
  flex-direction: row;
  align-items: flex-start;
}

html.ew-layout-wallst29 .ew-w29-card--side .ew-w29-card__body {
  flex: 1 1 auto;
  min-width: 0;
  padding: 0 14px 0 0;
  order: 0;
}

html.ew-layout-wallst29 .ew-w29-card--side .ew-w29-card__media-link {
  flex: 0 0 118px;
  width: 118px;
  min-width: 118px;
  align-self: flex-start;
  order: 1;
}

html.ew-layout-wallst29 .ew-w29-card--side .ew-w29-card__image {
  height: 118px;
  min-height: 96px;
  max-height: 130px;
}

html.ew-layout-wallst29 .ew-w29-card--side .ew-w29-card__img {
  width: 100%;
  height: 118px;
  object-fit: cover;
}

html.ew-layout-wallst29 .ew-w29-card--side .ew-w29-card__title {
  font-size: 15px;
  margin-bottom: 8px;
}

html.ew-layout-wallst29 .ew-w29-card--side .ew-w29-card__summary {
  font-size: 13px;
  -webkit-line-clamp: 3;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

html.ew-layout-wallst29 .ew-w29-grid--five-split .ew-w29-card__image {
  height: 200px;
}

html.ew-layout-wallst29 .ew-w29-grid--five-split[data-fn-count="6"] .ew-w29-card__image {
  height: 190px;
}

html.ew-layout-wallst29 .ew-w29-grid--five-split[data-fn-count="5"] .ew-w29-card:nth-child(n + 4) .ew-w29-card__image {
  height: 240px;
}

html.ew-layout-wallst29 .ew-w29-card__body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

html.ew-layout-wallst29 .ew-w29-card__title {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.4;
  margin: 0 0 12px;
  color: #000000;
}

html.ew-layout-wallst29 .ew-w29-card__title a {
  color: #1864d4;
  text-decoration: none;
}

html.ew-layout-wallst29 .ew-w29-card__title a:hover {
  color: #104a99;
  text-decoration: underline;
}

html.ew-layout-wallst29 .ew-w29-card__read {
  margin-top: 4px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #757575;
  text-decoration: none;
  align-self: flex-start;
}

html.ew-layout-wallst29 .ew-w29-card__read:hover {
  color: #333333;
  text-decoration: underline;
}

html.ew-layout-wallst29 .ew-w29-card__meta {
  font-size: 12px;
  color: #999999;
  margin-bottom: 12px;
}

html.ew-layout-wallst29 .ew-w29-card__summary {
  font-size: 14px;
  line-height: 1.6;
  color: #333333;
  margin: 0 0 12px;
  flex-grow: 1;
}

html.ew-layout-wallst29 .ew-w29-card__time {
  font-size: 11px;
  color: #999999;
  margin-top: auto;
  text-align: left;
  align-self: flex-start;
}

@media (max-width: 1024px) {
  html.ew-layout-wallst29 .ew-w29-grid--triple-feature {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
  }

  html.ew-layout-wallst29 .ew-w29-grid--triple-feature .ew-w29-card--lead,
  html.ew-layout-wallst29 .ew-w29-grid--triple-feature .ew-w29-card--side:nth-of-type(2),
  html.ew-layout-wallst29 .ew-w29-grid--triple-feature .ew-w29-card--side:nth-of-type(3) {
    grid-column: 1 / -1 !important;
    grid-row: auto !important;
  }

  html.ew-layout-wallst29 .ew-w29-grid--triple-feature .ew-w29-card--lead {
    border-right: none;
    border-bottom: 1px solid #d4d4d4;
    padding: 16px;
  }

  html.ew-layout-wallst29 .ew-w29-grid--five-split[data-fn-count="5"] .ew-w29-card {
    grid-column: 1 / -1 !important;
  }

  html.ew-layout-wallst29 .ew-w29-grid--five-split[data-fn-count="6"] {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  html.ew-layout-wallst29 .ew-w29-grid--five-split[data-fn-count="6"] .ew-w29-card {
    grid-column: auto !important;
  }

  html.ew-layout-wallst29 .ew-w29-row--five-wealth {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  html.ew-layout-wallst29 .ew-w29-row--five-wealth .ew-w29-card:nth-child(n) {
    grid-column: auto !important;
  }

  html.ew-layout-wallst29 .ew-w29-row--three-across {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  html.ew-layout-wallst29 .ew-w29-row--three-across[data-fn-count="1"] {
    max-width: 100%;
  }
}

@media (max-width: 768px) {
  html.ew-layout-wallst29 .ew-w29-featured__title {
    font-size: 24px;
  }

  html.ew-layout-wallst29 .ew-w29-featured__img {
    max-height: 300px;
  }

  html.ew-layout-wallst29 .ew-w29-card--side {
    flex-direction: column;
    align-items: stretch;
  }

  html.ew-layout-wallst29 .ew-w29-card--side .ew-w29-card__body {
    padding: 12px 0 0;
    order: 1;
  }

  html.ew-layout-wallst29 .ew-w29-card--side .ew-w29-card__media-link {
    flex: none;
    width: 100%;
    min-width: 0;
    order: 0;
  }

  html.ew-layout-wallst29 .ew-w29-card--side .ew-w29-card__image {
    max-height: 200px;
  }

  html.ew-layout-wallst29 .ew-w29-card--side .ew-w29-card__img {
    height: auto;
    max-height: 220px;
  }
}

@media (max-width: 520px) {
  html.ew-layout-wallst29 .ew-w29-row--five-wealth {
    grid-template-columns: 1fr;
  }

  html.ew-layout-wallst29 .ew-w29-row--five-wealth .ew-w29-card:nth-child(n) {
    grid-column: 1 / -1 !important;
  }

  html.ew-layout-wallst29 .ew-w29-row--three-across {
    grid-template-columns: 1fr;
  }

  html.ew-layout-wallst29 .ew-w29-grid--five-split[data-fn-count="3"] {
    grid-template-columns: 1fr;
  }

  html.ew-layout-wallst29 .ew-w29-grid--five-split[data-fn-count="4"] .ew-w29-card {
    grid-column: 1 / -1 !important;
  }

  html.ew-layout-wallst29 .ew-w29-grid--five-split[data-fn-count="6"] {
    grid-template-columns: 1fr;
  }
}

