/* public/wp-includes/css/blog-controls.css
 * Blog page: minimal borderless controls + balanced grid/list views.
 *
 * Loaded on /blog/ only (injected by scripts/build-blog-index.mjs).
 * Scoped to #blog so it can override the Divi "chrome" inline CSS.
 */

/* ========================================================
   0. TAXONOMY ARCHIVES — /category/<slug>/ and /tag/<slug>/
   Same page as /blog/, with a heading above the grid.
   ======================================================== */
.skorwider-archive-head {
  max-width: 1200px;
  margin: 0 auto 22px auto;
  padding: 0 20px;
  text-align: center;
}

.skorwider-archive-eyebrow {
  margin: 0 0 6px 0;
  font-family: 'Poppins', sans-serif;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #e91e63;
}

.skorwider-archive-title {
  margin: 0;
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 34px;
  font-weight: 700;
  line-height: 1.2;
  color: #1b2a4a;
}

.skorwider-archive-count {
  margin: 8px 0 0 0;
  font-family: 'Poppins', sans-serif;
  font-size: 12.5px;
  color: #94a3b8;
}

.skorwider-archive-count a {
  color: #e91e63;
  text-decoration: none;
}

.skorwider-archive-count a:hover {
  text-decoration: underline;
}

@media (max-width: 620px) {
  .skorwider-archive-title {
    font-size: 26px;
  }

  .skorwider-archive-head {
    padding: 0 16px;
  }
}

/* ========================================================
   1. CONTROLS — borderless, only the search field shows.
   The view toggle and the filter menu fade in on hover,
   on focus inside the search field, or while a menu is open.
   ======================================================== */
.skorwider-controls-wrapper {
  max-width: 1200px;
  margin: 0 auto 18px auto;
  padding: 0 20px;
  display: flex;
  justify-content: flex-end;
  position: relative;
  z-index: 100;
}

.skorwider-controls-bar {
  display: flex;
  align-items: center;
  gap: 4px;
  background: none;
  border: none;
  box-shadow: none;
  padding: 0;
}

.skorwider-control-search {
  display: flex;
  align-items: center;
  gap: 8px;
}

.skorwider-control-search svg {
  width: 15px !important;
  height: 15px !important;
  color: #b9c2ce;
  flex-shrink: 0;
  pointer-events: none;
  transition: color 0.2s ease;
}

.skorwider-controls-bar:hover .skorwider-control-search svg,
.skorwider-controls-bar:focus-within .skorwider-control-search svg {
  color: #0f172a;
}

.skorwider-control-search input {
  width: 170px;
  height: 30px;
  padding: 0;
  border: none;
  background: transparent;
  font-family: 'Poppins', sans-serif;
  font-size: 13px;
  color: #1e293b;
  outline: none;
  transition: width 0.25s ease;
}

.skorwider-control-search input::placeholder {
  color: #b9c2ce;
}

.skorwider-controls-bar:hover .skorwider-control-search input,
.skorwider-control-search input:focus {
  width: 220px;
}

/* Actions (view toggle + filter menu) are revealed, never boxed. */
.skorwider-controls-actions {
  display: flex;
  align-items: center;
  gap: 4px;
  opacity: 1;
  visibility: visible;
  transform: none;
  pointer-events: auto;
}

/* View toggle */
.skorwider-view-toggle {
  display: flex;
  align-items: center;
  gap: 2px;
}

.skorwider-view-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #b9c2ce;
  transition: color 0.15s ease, background 0.15s ease;
}

.skorwider-view-btn:hover {
  color: #0f172a;
}

.skorwider-view-btn.active {
  color: #e91e63;
}

.skorwider-view-btn svg {
  width: 14px !important;
  height: 14px !important;
}

/* ========================================================
   2. MENUS (filter menu in the bar, options menu on cards)
   ======================================================== */
.skorwider-menu {
  position: relative;
  display: inline-flex;
}

.skorwider-menu-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #b9c2ce;
  transition: color 0.15s ease, background 0.15s ease;
}

.skorwider-menu-btn:hover,
.skorwider-menu-btn[aria-expanded="true"] {
  color: #0f172a;
  background: rgba(15, 23, 42, 0.05);
}

.skorwider-menu-btn svg {
  width: 15px !important;
  height: 15px !important;
}

.skorwider-menu-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  max-height: calc(100vh - 140px);
  overflow-y: auto;
  overscroll-behavior: contain;
  min-width: 220px;
  z-index: 300;
  padding: 8px;
  background: #ffffff;
  border: 1px solid #eef2f7;
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.08);
  text-align: left;
}

.skorwider-menu-dropdown.is-above {
  top: auto;
  bottom: calc(100% + 8px);
}

.skorwider-menu-dropdown[hidden] {
  display: none !important;
}

/* A card menu hangs off its own three-dot button (absolute, not fixed: the
   card's hover transform would otherwise become its containing block). */
#blog .skorwider-card-menu .skorwider-menu-dropdown {
  position: absolute !important;
  top: calc(100% + 8px) !important;
  right: 0 !important;
  left: auto !important;
  bottom: auto !important;
  max-width: min(240px, 82vw);
  max-height: min(60vh, 320px);
  overflow-y: auto;
}

#blog .skorwider-card-menu .skorwider-menu-dropdown.is-above {
  top: auto !important;
  bottom: calc(100% + 8px) !important;
}

/* Touch devices have no hover: the lift would only make the card jump on tap. */
@media (hover: none) {
  #blog article.et_pb_post:hover {
    transform: none !important;
  }
}

/* The card showing a menu rises above its siblings, so the dropdown is never
   painted under the cards below it. */
#blog article.et_pb_post.is-menu-open {
  z-index: 60;
  position: relative;
}

/* Divi sets `position: relative; z-index: 2` on every column, so a later
   column paints above an earlier one whatever the card inside does. The
   column holding the open menu steps in front of its siblings. */
#blog .skorwider-grid > .et_pb_column.is-menu-open {
  z-index: 70 !important;
}

.skorwider-menu-label {
  padding: 8px 10px 6px;
  font-family: 'Poppins', sans-serif;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #b0bac7;
}

.skorwider-menu-item {
  display: flex;
  align-items: center;
  gap: 9px;
  width: 100%;
  box-sizing: border-box;
  text-decoration: none;
  padding: 7px 10px;
  border: none;
  border-radius: 8px;
  background: none;
  cursor: pointer;
  text-align: left;
  font-family: 'Poppins', sans-serif;
  font-size: 12.5px;
  color: #475569;
  transition: background 0.15s ease, color 0.15s ease;
}

.skorwider-menu-item:hover {
  background: #f6f8fb;
  color: #0f172a;
}

.skorwider-menu-item.is-selected {
  color: #e91e63;
  font-weight: 500;
}

.skorwider-menu-item svg {
  width: 14px !important;
  height: 14px !important;
  flex-shrink: 0;
}

.skorwider-menu-btn.is-active {
  color: #e91e63;
}

.skorwider-menu-item.is-marked {
  color: #e91e63;
}

.skorwider-menu-sep {
  height: 1px;
  margin: 5px 4px;
  background: #f1f5f9;
}

.skorwider-menu-terms {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding-bottom: 8px;
  line-height: 1.35;
}

.skorwider-menu-terms strong {
  font-weight: 600;
  color: #64748b;
}

/* Date filters: two labelled native selects. A row of twelve month chips
   wrapped into an unreadable grid on a phone; the platform picker is the
   friendlier control there, and it keeps the menu short. */
.skorwider-date-filters {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 2px 10px 10px;
}

/* `display: flex` above would beat the user agent's [hidden] rule. */
.skorwider-date-field[hidden],
#skorwider-date-section[hidden] {
  display: none !important;
}

.skorwider-date-field {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 4px 6px;
  border-radius: 8px;
  transition: background 0.15s ease;
}

.skorwider-date-field:hover {
  background: #f6f8fb;
}

.skorwider-date-field-label {
  font-family: 'Poppins', sans-serif;
  font-size: 11.5px;
  color: #94a3b8;
}

.skorwider-date-field select {
  flex: 0 1 auto;
  min-width: 0;
  max-width: 65%;
  appearance: none;
  -webkit-appearance: none;
  border: none;
  background-color: transparent;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 2px center;
  background-size: 11px;
  padding: 6px 18px 6px 6px;
  font-family: 'Poppins', sans-serif;
  font-size: 12.5px;
  color: #475569;
  text-align: right;
  text-overflow: ellipsis;
  cursor: pointer;
  transition: color 0.15s ease;
}

.skorwider-date-field select:hover {
  color: #0f172a;
}

.skorwider-date-field select.is-active {
  color: #e91e63;
  font-weight: 500;
}

.skorwider-date-field select:focus-visible {
  outline: 2px solid rgba(233, 30, 99, 0.35);
  outline-offset: 2px;
}

@media (max-width: 620px) {
  /* Comfortable touch targets on a phone. */
  .skorwider-date-field {
    padding: 6px 4px;
  }

  .skorwider-date-field select {
    font-size: 13.5px;
    padding: 9px 20px 9px 6px;
    max-width: 68%;
  }
}

/* Saved posts: a small marker on the card, and the options menu keeps the
   filled bookmark. */
#blog article.et_pb_post.is-saved {
  border-color: #d7dee7 !important;
}

/* Saved: a quiet grey bookmark on the thumbnail instead of a pink label. */
#blog article.et_pb_post.is-saved .entry-featured-image-url::after {
  content: "";
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 6;
  width: 22px;
  height: 22px;
  border: 1px solid rgba(15, 23, 42, 0.06);
  background: rgba(255, 255, 255, 0.92)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%2394a3b8'%3E%3Cpath d='M19 21l-7-5-7 5V5a2 2 0 0 1 2-2h10a2 2 0 0 1 2 2z'/%3E%3C/svg%3E")
    center / 13px no-repeat;
  pointer-events: none;
}

/* Year / month chips share the column chooser's styling, which is defined
   further down; keep them on one line. */
.skorwider-cols {
  flex-wrap: wrap;
}

/* Number of columns. Sits in the filter list itself — as a drill-down panel it
   took two taps to reach and its buttons were 26px tall, which is a hard tap on
   a phone. Now: one inline control, labelled, 44px targets. */
.skorwider-menu-field {
  padding: 12px 10px 6px;
}

.skorwider-menu-field-label {
  display: block;
  margin-bottom: 8px;
  font-family: 'Poppins', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #94a3b8;
}

.skorwider-cols {
  display: flex;
  gap: 6px;
}

.skorwider-cols-btn {
  flex: 1 1 0;
  min-width: 0;
  height: 38px;
  padding: 0;
  border: 1px solid #eef2f7;
  border-radius: 0;
  background: #ffffff;
  color: #64748b;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: 'Poppins', sans-serif;
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.skorwider-cols-num {
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
}

.skorwider-cols-btn:hover {
  background: #f6f8fb;
  color: #0f172a;
}

.skorwider-cols-btn.is-selected {
  color: #e91e63;
  border-color: rgba(233, 30, 99, 0.35);
  background: rgba(233, 30, 99, 0.06);
}

/* Column choice only applies to the grid view: hide completely in list view! */
#blog.list-view #skorwider-cols-field,
#blog.list-view #skorwider-cols-row {
  display: none !important;
}

@media (max-width: 980px) {
  .skorwider-cols-btn[data-cols="3"],
  .skorwider-cols-btn[data-cols="4"] {
    display: none;
  }
}

/* Compact filter menu: summary rows that open a panel each. */
.skorwider-menu-panel[hidden] {
  display: none !important;
}

.skorwider-menu-row {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 9px 10px;
  border: none;
  border-radius: 8px;
  background: none;
  cursor: pointer;
  text-align: left;
  font-family: 'Poppins', sans-serif;
  font-size: 12.5px;
  color: #475569;
  transition: background 0.15s ease;
}

.skorwider-menu-row:hover {
  background: #f6f8fb;
}

.skorwider-menu-row[hidden] {
  display: none !important;
}

.skorwider-menu-row-label {
  flex: 1 1 auto;
}

.skorwider-menu-row-value {
  flex: 0 1 auto;
  max-width: 52%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #94a3b8;
  font-size: 12px;
}

.skorwider-menu-row-value.is-active {
  color: #e91e63;
  font-weight: 500;
}

.skorwider-menu-row-chevron {
  flex: 0 0 auto;
  width: 7px;
  height: 7px;
  border-right: 1.5px solid #cbd5e1;
  border-bottom: 1.5px solid #cbd5e1;
  transform: rotate(-45deg);
  translate: 0 -1px;
}

.skorwider-menu-back {
  display: flex;
  align-items: center;
  gap: 6px;
  width: 100%;
  margin: 0 0 4px 0;
  padding: 8px 10px;
  border: none;
  border-bottom: 1px solid #f4f7fa;
  background: none;
  cursor: pointer;
  font-family: 'Poppins', sans-serif;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #94a3b8;
}

.skorwider-menu-back:hover {
  color: #0f172a;
}

.skorwider-menu-reset {
  color: #94a3b8;
}

.skorwider-menu-reset:hover {
  color: #e91e63;
}

@media (max-width: 620px) {
  .skorwider-menu-row {
    padding: 11px 12px;
    font-size: 13.5px;
  }

  .skorwider-menu-row-value {
    font-size: 12.5px;
  }
}

/* Reading time lives in the card menu for list view, where the row itself
   stays down to the date and the actions. */
.skorwider-menu-info {
  display: none;
  align-items: center;
  gap: 9px;
  padding: 8px 10px 7px;
  font-family: 'Poppins', sans-serif;
  font-size: 11.5px;
  color: #9aa5b1;
}

.skorwider-menu-info svg {
  width: 13px !important;
  height: 13px !important;
  flex-shrink: 0;
}

/* Same menu in every view: the info rows are not a list-view speciality. */
#blog .skorwider-menu-info {
  display: flex;
}

.skorwider-card-menu-main[hidden],
.skorwider-card-menu-share[hidden] {
  display: none !important;
}

/* ========================================================
   3. BALANCED GRID — one CSS grid for both views.
   Every card is the same size: fixed image ratio, a two-line
   title block, one meta row. Rows are all the same height.
   ======================================================== */
.skorwider-grid {
  display: grid;
  grid-template-columns: repeat(var(--skorwider-cols, 4), minmax(0, 1fr));
  grid-auto-rows: 1fr;
  gap: 44px 28px;
  margin: 0 auto;
  max-width: 1200px;
  padding: 0 20px;
  box-sizing: border-box;
}

/* Few columns would stretch a single card across the page. */
.skorwider-grid[data-cols="1"] {
  max-width: 760px;
}

.skorwider-grid[data-cols="2"] {
  max-width: 1000px;
}

/* No-JS fallback: the media queries below only apply when the script has
   not set a column count. */
@media (max-width: 1200px) {
  .skorwider-grid:not([data-cols]) {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .skorwider-grid:not([data-cols]) {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .skorwider-grid:not([data-cols]) {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Narrow cards (small phones, 2 columns): the read time moves into the
   options menu and the type scales down, so nothing can overlap. */
#blog .skorwider-grid.is-narrow .skorwider-card-body {
  padding: 11px 12px 13px;
}

#blog .skorwider-grid.is-narrow .skorwider-readtime,
#blog .skorwider-grid.is-narrow .skorwider-meta-sep {
  display: none;
}

#blog .skorwider-grid.is-narrow .entry-title {
  font-size: 16px !important;
  line-height: 1.3 !important;
}

#blog .skorwider-grid.is-narrow .skorwider-card-meta {
  gap: 8px;
  margin-bottom: 7px;
}

#blog .skorwider-grid.is-narrow .skorwider-card-meta-left .published {
  font-size: 9.5px;
  letter-spacing: 0.05em;
}

#blog .skorwider-grid.is-narrow .skorwider-card-meta-right {
  margin-right: -5px;
}

#blog .skorwider-grid.is-narrow .skorwider-likes-btn {
  padding: 3px 4px;
  font-size: 10px;
}

#blog .skorwider-grid.is-narrow .skorwider-likes-btn svg,
#blog .skorwider-grid.is-narrow .skorwider-menu-btn svg {
  width: 12px !important;
  height: 12px !important;
}

#blog .skorwider-grid.is-narrow .skorwider-menu-btn {
  padding: 4px;
}

.skorwider-grid > .et_pb_column {
  float: none !important;
  width: auto !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
  display: flex !important;
  min-width: 0;
}

.skorwider-grid .et_pb_blog,
.skorwider-grid .et_pb_ajax_pagination_container,
.skorwider-grid .et_pb_blog_posts {
  height: 100%;
  width: 100%;
}

#blog article.et_pb_post {
  display: flex !important;
  flex-direction: column !important;
  height: 100% !important;
  width: 100% !important;
  overflow: visible !important;
  margin: 0 !important;
  background: #ffffff !important;
  border: 1px solid #eef2f7 !important;
  border-radius: 0 !important;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.03), 0 14px 30px -20px rgba(15, 23, 42, 0.18) !important;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease !important;
}

#blog article.et_pb_post:hover {
  transform: translateY(-3px) !important;
  border-color: #e6ebf2 !important;
  box-shadow: 0 2px 4px rgba(15, 23, 42, 0.04), 0 24px 44px -24px rgba(15, 23, 42, 0.28) !important;
}

/* Thumbnail: one ratio for every card, whichever the view. */
#blog .entry-featured-image-url {
  display: block !important;
  width: 100% !important;
  padding-top: 0 !important;
  aspect-ratio: 16 / 10 !important;
  height: auto !important;
  overflow: hidden !important;
  flex: 0 0 auto !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

#blog .entry-featured-image-url .et_pb_post_main_image {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
}

/* ========================================================
   3b. THUMBNAIL POLISH
   The flat grid drops Divi's `.et_pb_blog` wrapper, so the theme's
   overlay rules never applied here. The thumbnail interaction is
   defined from scratch: a light wash while the image loads, a soft
   fade-in when it arrives, and the sheen sweep on hover or touch.
   ======================================================== */
#blog .entry-featured-image-url {
  background: #f2f5f8;
  isolation: isolate;
}

#blog .et_pb_post_main_image.is-loaded {
  animation: skorwider-image-in 0.55s ease both;
}

@keyframes skorwider-image-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

#blog .entry-featured-image-url .et_pb_post_main_image {
  transition: transform 0.7s cubic-bezier(0.22, 0.61, 0.36, 1), filter 0.5s ease;
  will-change: transform;
}

/* Sheen: a soft band of light that sweeps across the thumbnail. */
#blog .entry-featured-image-url::before {
  content: "";
  display: block;
  position: absolute;
  top: -30%;
  left: 0;
  width: 60%;
  height: 160%;
  z-index: 3;
  pointer-events: none;
  background: linear-gradient(
    115deg,
    transparent 0%,
    rgba(255, 255, 255, 0.05) 26%,
    rgba(255, 255, 255, 0.16) 50%,
    rgba(255, 255, 255, 0.05) 74%,
    transparent 100%
  );
  transform: translateX(-130%);
  transition: transform 1.1s cubic-bezier(0.33, 0.5, 0.4, 1);
  will-change: transform;
}

@keyframes skorwider-sheen {
  from {
    transform: translateX(-130%);
  }
  to {
    transform: translateX(300%);
  }
}

#blog article.et_pb_post:hover .entry-featured-image-url::before,
#blog .entry-featured-image-url.is-sheened::before {
  transform: translateX(300%);
}

/* Touching a thumbnail (phones have no hover) replays the sweep once. */
#blog .entry-featured-image-url.is-sheened::before {
  animation: skorwider-sheen 1.1s cubic-bezier(0.33, 0.5, 0.4, 1);
}

#blog article.et_pb_post:hover .entry-featured-image-url .et_pb_post_main_image,
#blog .entry-featured-image-url.is-sheened .et_pb_post_main_image {
  transform: scale(1.045);
  filter: brightness(1.04) saturate(1.06);
}

/* Divi's white veil would wash the photo out; the sheen is the effect here. */
#blog .entry-featured-image-url .et_overlay {
  display: none;
}

@media (prefers-reduced-motion: reduce) {
  #blog .et_pb_post_main_image.is-loaded {
    animation: none;
  }

  #blog .entry-featured-image-url::before {
    display: none;
  }

  #blog article.et_pb_post,
  #blog article.et_pb_post:hover,
  #blog article.et_pb_post:hover .entry-featured-image-url .et_pb_post_main_image,
  #blog .entry-featured-image-url.is-sheened .et_pb_post_main_image {
    transform: none !important;
    animation: none;
  }
}

/* Card body: meta row, title, (list-only) excerpt. */
#blog .skorwider-card-body {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-width: 0;
  padding: 14px 17px 19px;
}

#blog .skorwider-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 9px 0;
  font-family: 'Poppins', sans-serif;
  font-size: 11px;
  color: #9aa5b1;
  order: -1;
}

.skorwider-card-meta-left {
  display: flex;
  align-items: center;
  gap: 7px;
  flex: 1 1 auto;
  min-width: 0;
  white-space: nowrap;
}

.skorwider-meta-sep {
  color: #cbd5e1;
  flex-shrink: 0;
}

/* Read time sits between the date and the icons and gives way first. */
.skorwider-readtime {
  color: #9aa5b1;
  overflow: hidden;
  text-overflow: ellipsis;
  flex-shrink: 1;
  min-width: 0;
}

.skorwider-card-meta-left .published {
  color: #e91e63;
  font-weight: 600;
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.07em;
}

.skorwider-card-meta-right {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-right: -6px;
  flex-shrink: 0;
}

/* Title: centered vertically and horizontally, consistent height so cards align */
#blog .entry-title {
  flex: 1 1 auto !important;
  min-height: 72px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  margin: 0 !important;
  padding: 0 2px !important;
  text-align: center !important;
  font-family: 'Playfair Display', Georgia, serif !important;
  font-size: 19.5px !important;
  font-weight: 700 !important;
  line-height: 1.32 !important;
  letter-spacing: -0.003em !important;
  text-shadow: none !important;
}

#blog .entry-title a {
  display: -webkit-box !important;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  text-wrap: balance;
  overflow: hidden;
  color: #1b2a4a !important;
  text-decoration: none !important;
  transition: color 0.2s ease;
}

#blog .entry-title a:hover {
  color: #e91e63 !important;
}

/* Excerpt is a list-view affordance only. */
#blog .skorwider-card-excerpt {
  display: none;
  margin: 9px 0 0 0;
  font-family: 'Poppins', sans-serif;
  font-size: 13px;
  line-height: 1.6;
  color: #7b8794;
}

/* Likes live in the meta row; the old footer row is gone. */
#blog .skorwider-likes-btn {
  background: none;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 6px;
  border-radius: 999px;
  color: #9aa5b1;
  font-family: 'Poppins', sans-serif;
  font-size: 10.5px;
  font-weight: 500;
  transition: color 0.2s ease, background 0.2s ease;
}

#blog .skorwider-likes-btn:hover {
  color: #e91e63;
  background: rgba(233, 30, 99, 0.06);
}

#blog .skorwider-likes-btn svg {
  width: 13px;
  height: 13px;
  color: #e91e63;
  stroke: #e91e63;
  fill: none;
  transition: transform 0.2s ease;
}

#blog .skorwider-likes-btn:hover svg {
  transform: scale(1.15);
}

#blog .skorwider-likes-btn.liked svg {
  fill: #e91e63;
}

#blog .skorwider-likes-btn.liked {
  color: #e91e63;
}

.skorwider-empty {
  grid-column: 1 / -1;
  margin: 0;
  padding: 40px 0;
  text-align: center;
  font-family: 'Poppins', sans-serif;
  font-size: 13px;
  color: #94a3b8;
}

/* ========================================================
   4. LIST VIEW — compact rows: text left, same-size
   thumbnail right, hairline between rows.
   ======================================================== */
#blog.list-view .skorwider-grid {
  grid-template-columns: minmax(0, 1fr);
  grid-auto-rows: auto;
  gap: 0;
  max-width: 940px;
}

#blog.list-view .skorwider-grid > .et_pb_column {
  display: block !important;
  border-bottom: 1px solid #eef2f7;
}

/* Filtered out (search, category, view, month/year). Stated for both views so
   the list view's `display: block !important` above cannot resurrect a card. */
#blog .skorwider-grid > .et_pb_column.is-hidden,
#blog.list-view .skorwider-grid > .et_pb_column.is-hidden {
  display: none !important;
}

#blog.list-view .skorwider-grid > .et_pb_column:first-child {
  border-top: 1px solid #eef2f7;
}

#blog.list-view article.et_pb_post {
  flex-direction: row-reverse !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 40px !important;
  height: auto !important;
  padding: 22px 0 !important;
  background: transparent !important;
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  transform: none !important;
}

#blog.list-view .entry-featured-image-url {
  flex: 0 0 220px !important;
  width: 220px !important;
  max-width: 220px !important;
  aspect-ratio: 16 / 10 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  margin: 0 !important;
}

#blog.list-view .skorwider-card-body {
  flex: 1 1 auto;
  padding: 0 !important;
  display: flex;
  flex-direction: column;
}

#blog.list-view .skorwider-card-meta {
  margin-bottom: 7px !important;
}

#blog.list-view .skorwider-meta-sep,
#blog.list-view .skorwider-readtime {
  display: none;
}

#blog.list-view .entry-title {
  display: block !important;
  flex: 0 0 auto !important;
  min-height: 0 !important;
}
#blog.list-view .entry-title {
  font-size: 21px !important;
  line-height: 1.28 !important;
  text-align: left !important;
  margin: 0 !important;
  padding: 0 !important;
}

#blog.list-view .entry-title a {
  -webkit-line-clamp: 2;
}

#blog.list-view .skorwider-card-excerpt {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ========================================================
   5. RESPONSIVE
   ======================================================== */
@media (max-width: 1200px) {
  .skorwider-grid {
    gap: 40px 24px;
  }
}

@media (max-width: 900px) {
  .skorwider-grid {
    gap: 36px 22px;
  }

  #blog .entry-title {
    font-size: 19px !important;
  }

  #blog .skorwider-card-body {
    padding: 13px 16px 17px;
  }
}

@media (max-width: 620px) {
  .skorwider-grid {
    gap: 30px;
    padding: 0 16px;
  }

  .skorwider-grid[data-cols="2"] {
    gap: 22px 14px;
  }

  .skorwider-grid[data-cols="1"] {
    gap: 28px;
  }

  .skorwider-controls-wrapper {
    justify-content: center;
    margin-bottom: 14px;
  }

  .skorwider-controls-bar,
  .skorwider-controls-actions {
    opacity: 1;
    visibility: visible;
    transform: none;
    pointer-events: auto;
  }

  #blog .skorwider-card-body {
    padding: 13px 16px 17px;
  }

  #blog .entry-title {
    font-size: 18.5px !important;
  }

  #blog.list-view .skorwider-grid {
    max-width: 100%;
  }

  #blog.list-view article.et_pb_post {
    gap: 14px !important;
    padding: 16px 0 !important;
  }

  #blog.list-view .entry-featured-image-url {
    flex: 0 0 104px !important;
    width: 104px !important;
    max-width: 104px !important;
  }

  #blog.list-view .skorwider-card-meta-left {
    gap: 4px;
  }

  #blog.list-view .entry-title {
    font-size: 16.5px !important;
    line-height: 1.3 !important;
  }

  #blog.list-view .skorwider-card-excerpt {
    display: none;
  }
}

/* Eliminate Divi's legacy inset 0 0 18px inner shadow on post cards & thumbnails */
.et_pb_blog_0_tb_body .et_pb_post .entry-featured-image-url,
.et_pb_blog_0_tb_body .et_pb_post img,
.et_pb_blog_0_tb_body .et_pb_post .et_pb_slides,
.et_pb_blog_0_tb_body .et_pb_post .et_pb_video_overlay,
.et_pb_column_2_tb_body article .entry-featured-image-url,
.et_pb_column_2_tb_body article img,
.entry-featured-image-url,
.et_pb_image_container .entry-featured-image-url,
.et_pb_image_container img {
  box-shadow: none !important;
  -webkit-box-shadow: none !important;
}
