/* ==========================================================================
   Poptech (popetechs.com) - header / footer / category refresh
   Prefix: popt-
   Loaded AFTER /css/style.min.css, so equal-specificity rules here win.

   Theme traps this file is written around (see style.min.css):
   - `header #identify` is ID-level (1,0,1). Any .popt- class rule loses to it,
     so the logo override is written as `.popt-hd #identify` (1,1,1).
   - `h1`, `h2`, `hr`, `button`, `a`, `header`, `footer`, `section` are all bare
     element selectors. Every one of my headings/rules re-declares the
     properties they set (padding / text-transform / background) rather than
     relying on source order alone.
   - `.container` and `section` are FIXED px widths (1200/960/720). A second
     `.container` inside `section` would overflow, so the category page never
     opens one; header/footer use `.popt-shell` (max-width, fluid) instead.
   - `section` is display:flex. Page content is a flex item, hence
     `width:75%` + `min-width:0` on `.popt-cat`.
   ========================================================================== */

:root {
  --popt-ink:      #170d2e;
  --popt-violet:   #2c1156;
  --popt-violet-2: #4d1f8c;
  --popt-magenta:  #ff3d8b;
  --popt-magenta-d:#c2185b;
  --popt-yellow:   #ffd23f;
  --popt-paper:    #fbf9ff;
  --popt-text:     #2c2440;
  --popt-muted:    #5a5170;
  --popt-line:     #e3dcf2;
}

/* --------------------------------------------------------------------------
   0. Page-level overflow guards (theme ships fixed px widths)
   -------------------------------------------------------------------------- */
.container { max-width: 100%; }
section    { max-width: 100%; background: var(--popt-paper); }

/* Theme muted greys fail 4.5:1 on the near-white panel - repaint them. */
.news__item__date { color: var(--popt-muted); }
.breadcrumbs      { color: var(--popt-muted); }
.breadcrumbs a    { color: var(--popt-magenta-d); }
.breadcrumbs a:hover { color: var(--popt-violet-2); }
.breadcrumbs span { color: var(--popt-violet-2); }

/* --------------------------------------------------------------------------
   1. HEADER
   -------------------------------------------------------------------------- */
.popt-hd {
  width: 100%;
  padding: 0;
  background: linear-gradient(104deg, #1b0937 0%, var(--popt-violet) 42%, var(--popt-violet-2) 100%);
  border-bottom: 3px solid var(--popt-magenta);
  box-shadow: 0 2px 0 0 var(--popt-yellow), 0 6px 18px rgba(23, 13, 46, .28);
  position: relative;
  z-index: 20;
}

/* Some themes clone the header for a sticky effect, which duplicates ids and
   breaks label[for]. If anything ever injects a second one, hide it. */
.popt-hd ~ .popt-hd { display: none !important; }

.popt-hd .popt-shell {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 18px;
}

/* --- eyebrow strip --- */
.popt-hd .popt-hd__eyebrow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 6px 18px;
  padding-top: 7px;
  padding-bottom: 7px;
  border-bottom: 1px solid rgba(255, 255, 255, .14);
  font-size: .68rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: #d9cdf2;
}
.popt-hd .popt-hd__tagline { color: #d9cdf2; font-weight: 700; }
.popt-hd .popt-hd__dateline { color: #efe7ff; font-weight: 600; letter-spacing: .08em; }
.popt-hd .popt-hd__eyebrow-links { display: flex; gap: 14px; }
.popt-hd .popt-hd__eyebrow-link {
  color: var(--popt-yellow);
  font-weight: 700;
  letter-spacing: .12em;
  border-bottom: 1px solid transparent;
}
.popt-hd .popt-hd__eyebrow-link:hover { border-bottom-color: var(--popt-yellow); }

/* --- main bar: logo left, burger right, nav inline on desktop --- */
.popt-hd .popt-hd__bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 22px;
  padding-top: 12px;
  padding-bottom: 12px;
}
.popt-hd .popt-hd__brand {
  order: 1;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-right: auto;
  min-width: 0;
}
/* Beats `header #identify { width:150px; margin:0 auto }` (1,0,1) at (1,1,1).
   tech_logo.png is a near-black wordmark built for the theme's white header -
   it would be invisible on the violet bar, so it is knocked out to solid white
   (this also drops the theme's teal mark, which other sites in the portfolio
   already use). */
.popt-hd #identify {
  width: 138px;
  height: auto;
  max-width: 100%;
  display: block;
  margin: 0;
  filter: brightness(0) invert(1);
}
.popt-hd .popt-hd__slogan {
  color: #cbb9ee;
  font-size: .66rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  border-left: 2px solid var(--popt-magenta);
  padding-left: 12px;
  line-height: 1.4;
}

/* --- burger checkbox: hidden at EVERY width, still keyboard reachable --- */
.popt-hd .popt-hd__cb {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  border: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  appearance: none;
  -webkit-appearance: none;
}
.popt-hd .popt-hd__burger {
  order: 2;
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 40px;
  padding: 0 9px;
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, .32);
  border-radius: 10px;
  background: rgba(255, 255, 255, .06);
}
/* Several themes style a bare <label> as a custom checkbox via ::before/::after. */
.popt-hd .popt-hd__burger::before,
.popt-hd .popt-hd__burger::after { content: none !important; display: none !important; }
.popt-hd .popt-hd__burger span {
  display: block;
  height: 2px;
  width: 100%;
  border-radius: 2px;
  background: #fff;
}
.popt-hd .popt-hd__burger span:nth-child(2) { background: var(--popt-yellow); }
.popt-hd .popt-hd__cb:focus       + .popt-hd__burger { outline: 3px solid var(--popt-yellow); outline-offset: 2px; }
.popt-hd .popt-hd__cb:focus-visible + .popt-hd__burger { outline: 3px solid var(--popt-yellow); outline-offset: 2px; }

/* --- nav --- */
.popt-hd .popt-hd__nav {
  order: 3;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 22px;
  min-width: 0;
}
.popt-hd .popt-hd__link {
  display: inline-block;
  padding: 7px 2px;
  color: #fff;
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
}
.popt-hd .popt-hd__link:hover,
.popt-hd .popt-hd__link:focus {
  color: var(--popt-yellow);
  border-bottom-color: var(--popt-yellow);
}
.popt-hd .popt-hd__link_deals {
  background: var(--popt-magenta);
  color: #22060f;
  border-radius: 999px;
  padding: 6px 15px;
  border-bottom: none;
  letter-spacing: .12em;
}
.popt-hd .popt-hd__link_deals:hover,
.popt-hd .popt-hd__link_deals:focus {
  background: var(--popt-yellow);
  color: #2b1a00;
  border-bottom: none;
}

@media only screen and (max-width: 992px) {
  .popt-hd .popt-hd__nav { gap: 4px 16px; }
  .popt-hd .popt-hd__link { font-size: .76rem; letter-spacing: .07em; }
  .popt-hd .popt-hd__slogan { display: none; }
}

/* Burger takes over. The nav becomes its own full-width row INSIDE the header,
   so the header still reads as one unit. */
@media only screen and (max-width: 860px) {
  .popt-hd .popt-hd__burger { display: flex; }
  .popt-hd .popt-hd__nav {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    margin-top: 10px;
    padding-top: 6px;
    border-top: 1px solid rgba(255, 255, 255, .16);
  }
  /* General sibling selector: the input must stay BEFORE the nav in source. */
  .popt-hd .popt-hd__cb:checked ~ .popt-hd__nav { display: flex; }
  .popt-hd .popt-hd__link {
    padding: 11px 4px;
    border-bottom: 1px solid rgba(255, 255, 255, .1);
    white-space: normal;
  }
  .popt-hd .popt-hd__link_deals {
    margin: 10px 0 4px;
    text-align: center;
    border-bottom: none;
  }
  .popt-hd .popt-hd__eyebrow-links { display: none; }
}

@media only screen and (max-width: 576px) {
  /* side gutters only - the eyebrow and bar are .popt-shell too and keep their 7px / 12px vertical padding */
  .popt-hd .popt-shell { padding-left: 14px; padding-right: 14px; }
  .popt-hd #identify { width: 108px; }
  .popt-hd .popt-hd__eyebrow { font-size: .6rem; letter-spacing: .1em; }
  .popt-hd .popt-hd__dateline { display: none; }
}

/* --------------------------------------------------------------------------
   2. FOOTER - brand + newsletter, two parts, one hairline, one copyright line.
   Light band so it does not read as the usual dark multi-column block.
   The theme sets `footer` as a bare element (background/color/padding/
   font-size) and `button` as a bare element (gradient background, border,
   colour, font-size, padding, margin-top, transform + hover transform), so
   every one of those properties is re-declared below rather than inherited.
   -------------------------------------------------------------------------- */
.popt-ft {
  width: 100%;
  padding: 0;
  background: #ffffff;
  color: var(--popt-text);
  font-size: .85rem;
  border-top: 3px solid var(--popt-magenta);
}
.popt-ft .popt-shell {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 18px;
}

/* --- part one: wordmark + one-line promise / newsletter --- */
.popt-ft .popt-ft__top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 22px 40px;
  padding-top: 30px;
  padding-bottom: 26px;
}
.popt-ft .popt-ft__brand {
  min-width: 0;
  flex: 1 1 280px;
}
.popt-ft__social { display: flex; flex-wrap: wrap; gap: 12px; }
.popt-ft__social a { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 40px; padding: 8px 12px; border-bottom: 2px solid var(--popt-magenta); color: var(--popt-violet); font-weight: 700; letter-spacing: 0; }
.popt-ft__social a:hover, .popt-ft__social a:focus-visible { color: var(--popt-magenta); background: #f8f4fb; }
.popt-ft__social .crvs-si { width: 18px; height: 18px; margin: 0; vertical-align: middle; }
.popt-ft .popt-ft__wordmark {
  display: block;
  color: var(--popt-violet);
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -.015em;
  line-height: 1.1;
}
.popt-ft .popt-ft__promise {
  color: var(--popt-muted);
  line-height: 1.55;
  max-width: 44ch;
  margin: 7px 0 0;
}

/* --- part two: newsletter sign-up (presentational, no JS, no form post) --- */
.popt-ft .popt-ft__signup {
  min-width: 0;
  flex: 0 1 380px;
}
.popt-ft .popt-ft__signup-label {
  display: block;
  color: var(--popt-ink);
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
  line-height: 1.3;
  margin-bottom: 9px;
}
.popt-ft .popt-ft__signup-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.popt-ft .popt-ft__input {
  -webkit-appearance: none;
  appearance: none;
  flex: 1 1 180px;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
  height: 42px;
  padding: 0 13px;
  border: 1px solid var(--popt-line);
  border-radius: 6px;
  background: var(--popt-paper);
  color: var(--popt-text);
  font-family: inherit;
  font-size: .85rem;
  line-height: normal;
}
.popt-ft .popt-ft__input::-webkit-input-placeholder { color: #8d84a6; }
.popt-ft .popt-ft__input::placeholder { color: #8d84a6; }
.popt-ft .popt-ft__input:focus {
  outline: 2px solid var(--popt-violet-2);
  outline-offset: 1px;
  border-color: var(--popt-violet-2);
}
.popt-ft .popt-ft__btn {
  flex: 0 0 auto;
  box-sizing: border-box;
  height: 42px;
  margin-top: 0;
  padding: 0 20px;
  border: 1px solid var(--popt-violet);
  border-radius: 6px;
  background: var(--popt-violet);
  color: #ffffff;
  font-family: inherit;
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  line-height: 1;
  cursor: pointer;
  transform: none;
  transition: background .25s, border-color .25s;
}
.popt-ft .popt-ft__btn:hover,
.popt-ft .popt-ft__btn:focus {
  background: var(--popt-magenta-d);
  border-color: var(--popt-magenta-d);
  color: #ffffff;
  transform: none;
}

/* --- hairline + copyright --- */
.popt-ft .popt-ft__bar {
  padding-top: 14px;
  padding-bottom: 20px;
  border-top: 1px solid var(--popt-line);
  font-size: .76rem;
  color: var(--popt-muted);
}

@media only screen and (max-width: 860px) {
  .popt-ft .popt-ft__top { gap: 20px 28px; }
  .popt-ft .popt-ft__signup { flex: 1 1 300px; }
}
@media only screen and (max-width: 576px) {
  .popt-ft { padding: 0; }
  /* side gutters only - .popt-ft__bar is .popt-shell too and keeps its 14px / 20px vertical padding */
  .popt-ft .popt-shell { padding-left: 14px; padding-right: 14px; }
  .popt-ft .popt-ft__top { padding-top: 24px; padding-bottom: 22px; gap: 18px; }
  .popt-ft .popt-ft__wordmark { font-size: 1.3rem; }
  .popt-ft .popt-ft__btn { flex: 1 1 auto; }
}

/* --------------------------------------------------------------------------
   3. CATEGORY PAGE
   `section` is display:flex - this is a flex item next to `.news__side`.
   -------------------------------------------------------------------------- */
.popt-cat { width: 75%; min-width: 0; }

.popt-cat .popt-cat__head { padding: 0 16px 4px; }
/* Re-declares padding + text-transform + font-size, which the bare `h1` sets. */
.popt-cat .popt-cat__title {
  padding: 0;
  margin: 0 0 10px;
  font-size: 2.1rem;
  line-height: 1.12;
  font-weight: 800;
  letter-spacing: -.01em;
  text-transform: none;
  color: var(--popt-ink);
}
.popt-cat .popt-cat__rule {
  height: 4px;
  width: 100%;
  margin: 0 0 18px;
  border: none;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--popt-violet-2), var(--popt-magenta) 55%, var(--popt-yellow));
}
.popt-cat .popt-cat__chips {
  list-style: none;
  margin: 0 0 20px;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.popt-cat .popt-cat__chip {
  display: inline-block;
  padding: 6px 13px;
  border-radius: 999px;
  border: 1px solid var(--popt-line);
  background: #fff;
  color: var(--popt-muted);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
}
.popt-cat .popt-cat__chip:hover { border-color: var(--popt-magenta); color: var(--popt-magenta-d); }
.popt-cat .popt-cat__chip_on {
  background: var(--popt-violet);
  border-color: var(--popt-violet);
  color: #fff;
}

/* --- grid: CSS grid, never floats, so unequal card heights cannot snag --- */
.popt-cat .popt-cat__grid {
  display: grid;
  gap: 20px;
  padding: 0 16px 8px;
  align-items: stretch;
}

.popt-cat .popt-card {
  display: flex;
  background: #fff;
  border: 1px solid var(--popt-line);
  border-radius: 14px;
  overflow: hidden;           /* clips any long child */
  min-width: 0;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.popt-cat .popt-card:hover {
  transform: translateY(-3px);
  border-color: var(--popt-magenta);
  box-shadow: 0 12px 26px rgba(44, 17, 86, .16);
}
.popt-cat .popt-card__link {
  display: flex;
  flex-direction: column;
  width: 100%;
  min-width: 0;
  color: var(--popt-text);
}
.popt-cat .popt-card__media {
  display: block;
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  min-height: 132px;
  overflow: hidden;           /* feed images are arbitrary size - clip them */
  background: linear-gradient(135deg, #efe8fb, #dfd2f5);
}
.popt-cat .popt-card__img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
  object-fit: cover;
}
.popt-cat .popt-card__ph {
  display: block;
  width: 100%;
  height: 100%;
  background: repeating-linear-gradient(135deg, #e8ddfa 0 12px, #dfd2f5 12px 24px);
}
.popt-cat .popt-card__tag {
  position: absolute;
  left: 10px;
  bottom: 10px;
  max-width: calc(100% - 20px);
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--popt-violet);
  color: #fff;
  font-size: .62rem;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.popt-cat .popt-card__body {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-width: 0;
  padding: 14px 15px 16px;
}
/* 250-character feed titles are normal. Clamp, never spill. */
.popt-cat .popt-card__title {
  display: -webkit-box;
  -webkit-line-clamp: 4;
  line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 1.02rem;
  font-weight: 700;
  line-height: 1.32;
  color: var(--popt-ink);
  margin-bottom: 8px;
  overflow-wrap: break-word;
}
.popt-cat .popt-card__text {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: .85rem;
  line-height: 1.55;
  color: var(--popt-muted);
  margin-bottom: 12px;
  overflow-wrap: break-word;
}
.popt-cat .popt-card__more {
  display: inline-block;
  margin-top: auto;
  color: #6d28a8;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.popt-cat .popt-card:hover .popt-card__more { color: var(--popt-magenta-d); }

@media only screen and (max-width: 992px) {
  .popt-cat .popt-cat__grid { gap: 16px; }
  .popt-cat .popt-cat__title { font-size: 1.7rem; }
}
@media only screen and (max-width: 576px) {
  .popt-cat { width: 100%; }
  .popt-cat .popt-cat__title { font-size: 1.55rem; }
}

/* --------------------------------------------------------------------------
   4. HOME section headings
   -------------------------------------------------------------------------- */
.news__section .popt-sec__h {
  padding: 0 16px;
  margin: 0 0 2px;
  font-size: 1.45rem;
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: .01em;
  text-transform: uppercase;
  color: var(--popt-ink);
}
.news__section .popt-rule,
.news__side .popt-rule {
  height: 4px;
  border: none;
  border-radius: 3px;
  width: calc(100% - 32px);
  margin: 8px 16px 6px;
  background: linear-gradient(90deg, var(--popt-violet-2), var(--popt-magenta) 55%, var(--popt-yellow));
}

/* --------------------------------------------------------------------------
   5. ASIDE ("Read also")
   -------------------------------------------------------------------------- */
.popt-aside .popt-aside__h {
  padding: 0 16px;
  margin: 0;
  font-size: .8rem;
  line-height: 1.4;
  font-weight: 800;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--popt-magenta-d);
}
.popt-aside .news__item__heading {
  color: var(--popt-ink);
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
  overflow-wrap: break-word;
}
.popt-aside .news__item__text {
  color: var(--popt-muted);
  font-size: .85rem;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
  overflow-wrap: break-word;
}
.popt-aside .news__item__read_more { color: #6d28a8; font-weight: 700; }
/* Stacked under the content on phones: open a clear gap so "Read also" reads as a new block. */
@media only screen and (max-width: 576px) {
  .news__side.popt-aside { margin-top: 36px; }
}

/* --------------------------------------------------------------------------
   6. ARTICLE PAGE - arbitrary rich HTML from the feed
   Scoped two levels deep so theme rules cannot defeat it. Inline styles on
   feed markup beat plain class rules, so the overflow guards use !important.
   -------------------------------------------------------------------------- */
.popt-article .popt-article__kicker {
  color: var(--popt-magenta-d);
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .2em;
  text-transform: uppercase;
  margin-bottom: 6px;
}
.popt-article .news__item__heading {
  color: var(--popt-ink);
  font-size: 2.1rem;
  font-weight: 800;
  line-height: 1.18;
  overflow-wrap: break-word;
}
/* The page title must stay above the in-body h2 (1.42rem) at every width;
   the theme drops .news .news__item__heading to 1.1rem at 992px and below. */
@media only screen and (max-width: 992px) {
  .popt-article .news__item__heading { font-size: 1.85rem; }
}
@media only screen and (max-width: 576px) {
  .popt-article .news__item__heading { font-size: 1.65rem; }
}

.popt-article .popt-rte {
  color: var(--popt-text);
  font-size: 1rem;
  line-height: 1.72;
  overflow-wrap: break-word;
  min-width: 0;
}
.popt-article .popt-rte > * { max-width: 100%; }
.popt-article .popt-rte p { margin: 0 0 16px; color: var(--popt-text); }
.popt-article .popt-rte h1,
.popt-article .popt-rte h2,
.popt-article .popt-rte h3,
.popt-article .popt-rte h4,
.popt-article .popt-rte h5,
.popt-article .popt-rte h6 {
  padding: 0;
  margin: 28px 0 10px;
  color: var(--popt-ink);
  font-weight: 800;
  line-height: 1.25;
  text-transform: none;
  letter-spacing: 0;
}
.popt-article .popt-rte h1 { font-size: 1.7rem; }
.popt-article .popt-rte h2 { font-size: 1.42rem; }
.popt-article .popt-rte h3 { font-size: 1.2rem; }
.popt-article .popt-rte h4,
.popt-article .popt-rte h5,
.popt-article .popt-rte h6 { font-size: 1.02rem; }

.popt-article .popt-rte ul,
.popt-article .popt-rte ol { margin: 0 0 18px; padding-left: 22px; }
.popt-article .popt-rte li { margin-bottom: 8px; line-height: 1.65; }
.popt-article .popt-rte ul li::marker { color: var(--popt-magenta-d); }
.popt-article .popt-rte ol li::marker { color: var(--popt-magenta-d); font-weight: 700; }

.popt-article .popt-rte blockquote {
  margin: 22px 0;
  padding: 14px 18px;
  border-left: 4px solid var(--popt-magenta);
  background: #f4efff;
  border-radius: 0 10px 10px 0;
  color: var(--popt-ink);
  font-size: 1.02rem;
  font-style: normal;
}
.popt-article .popt-rte blockquote p:last-child { margin-bottom: 0; }

.popt-article .popt-rte a {
  color: #6d28a8;
  text-decoration: underline;
  text-underline-offset: 2px;
  word-break: break-word;
}
.popt-article .popt-rte a:hover { color: var(--popt-magenta-d); }

/* Feed images carry hardcoded width/height attributes and inline styles. */
.popt-article .popt-rte img {
  display: block;
  max-width: 100% !important;
  width: auto !important;
  height: auto !important;
  margin: 18px auto;
  border-radius: 12px;
}
.popt-article .popt-rte figure { margin: 18px 0; max-width: 100%; }
.popt-article .popt-rte figcaption {
  color: var(--popt-muted);
  font-size: .8rem;
  line-height: 1.5;
  margin-top: 8px;
  text-align: center;
}
.popt-article .popt-rte iframe,
.popt-article .popt-rte video,
.popt-article .popt-rte embed,
.popt-article .popt-rte object {
  display: block;
  max-width: 100% !important;
  width: 100% !important;
  border: none;
  margin: 18px 0;
}
.popt-article .popt-rte pre {
  max-width: 100%;
  overflow-x: auto;
  padding: 14px;
  border-radius: 10px;
  background: #f1ecfb;
  font-size: .85rem;
  line-height: 1.55;
  margin: 0 0 18px;
}
.popt-article .popt-rte code {
  background: #f1ecfb;
  border-radius: 5px;
  padding: 1px 5px;
  font-size: .88em;
  overflow-wrap: break-word;
}
.popt-article .popt-rte pre code { background: none; padding: 0; }
.popt-article .popt-rte table {
  display: block;
  max-width: 100%;
  overflow-x: auto;
  border-collapse: collapse;
  margin: 0 0 18px;
  font-size: .88rem;
}
.popt-article .popt-rte th,
.popt-article .popt-rte td {
  border: 1px solid var(--popt-line);
  padding: 8px 11px;
  text-align: left;
}
.popt-article .popt-rte th { background: #f4efff; color: var(--popt-ink); font-weight: 700; }
.popt-article .popt-rte hr {
  height: 3px;
  width: 100%;
  margin: 26px 0;
  border: none;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--popt-violet-2), var(--popt-magenta));
}

.popt-article .popt-article__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  margin-top: 26px;
  padding-top: 16px;
  border-top: 1px solid var(--popt-line);
}
.popt-article .popt-article__back {
  display: inline-block;
  padding: 9px 17px;
  border-radius: 999px;
  background: var(--popt-violet);
  color: #fff;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.popt-article .popt-article__back:hover { background: var(--popt-magenta-d); color: #fff; }

/* --------------------------------------------------------------------------
   7. Brand consistency over theme leftovers
   The theme's teal gradient (#2fc7c7) is its own identity, not Poptech's.
   These beat the bare `button` / `.news__item__read_more` element+class rules.
   -------------------------------------------------------------------------- */
.news__section button {
  background: linear-gradient(90deg, var(--popt-violet-2), var(--popt-magenta));
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 10px 22px;
  border-radius: 999px;
}
.news__section button:hover {
  background: linear-gradient(90deg, var(--popt-magenta), var(--popt-yellow));
  color: #2b1a00;
  transform: scale(1.04);
}
.news__section .news__item__heading { color: var(--popt-ink); line-height: 1.25; overflow-wrap: break-word; }
.news__section .news__item__text   { color: var(--popt-muted); line-height: 1.55; overflow-wrap: break-word; }
.popt-aside .news__item__read_more:hover { color: var(--popt-magenta-d); }

/* Brand marks beside the eyebrow's social labels - inline SVG, so no icon font to load. */
.crvs-si{width:1em;height:1em;fill:currentColor;vertical-align:-0.135em;margin-right:.4em;flex:none;}

/* CRVS-LAYOUT.md: the Read more pills of one row sit on one line - each card is a column and the
   pill takes the slack at its foot, instead of following text of different lengths. */
.news .news__item { display: flex; flex-direction: column; }
.news .news__item > .news__item__text { margin-bottom: 12px; }
.news .news__item > .popt-read-more { align-self: flex-start; margin-top: auto; }

/* CRVS-LAYOUT.md whole rows on /category: auto-fill gave 2 to 4 columns depending on the window, so no
   story count filled the last row everywhere. Fixed counts - 3, 2, 1 - and the page lists a multiple of 6. */
.popt-cat .popt-cat__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media only screen and (max-width: 992px) { .popt-cat .popt-cat__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media only screen and (max-width: 576px) { .popt-cat .popt-cat__grid { grid-template-columns: minmax(0, 1fr); } }
