/*
Theme Name: CityWish Premium
Theme URI: https://citywish.fr/
Author: CityWish
Description: Premium media theme for CityWish, digital communities and gaming culture.
Version: 1.1.1
Requires at least: 6.0
Requires PHP: 8.0
Text Domain: citywish-premium
*/

:root {
  --cw-ink: #101217;
  --cw-muted: #68717d;
  --cw-line: #dfe4ea;
  --cw-paper: #f3f5f7;
  --cw-white: #fff;
  --cw-blue: #1463d8;
  --cw-cyan: #0aa6b7;
  --cw-lime: #9ac63d;
  --cw-coral: #e85046;
  --cw-deep: #171c29;
  --cw-shadow: 0 18px 45px rgba(16, 18, 23, 0.12);
}

*,
*::before,
*::after { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--cw-paper);
  color: var(--cw-ink);
  font-family: "Trebuchet MS", Verdana, Arial, sans-serif;
  line-height: 1.55;
}

a { color: inherit; text-decoration: none; }
img { display: block; width: 100%; height: 100%; object-fit: cover; }

.cw-wrap,
.cw-masthead,
.cw-nav,
.cw-main,
.cw-footer-inner { max-width: 1180px; margin: 0 auto; }

.cw-top {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(243, 245, 247, 0.96);
  border-bottom: 1px solid var(--cw-line);
  backdrop-filter: blur(14px);
}

.cw-masthead {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 18px;
  min-height: 76px;
  padding: 14px 22px 10px;
}

.cw-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  width: fit-content;
}

.cw-mark {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 9px;
  color: #fff;
  background: linear-gradient(135deg, var(--cw-blue), var(--cw-cyan));
  box-shadow: 0 14px 28px rgba(20, 99, 216, 0.24);
  font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  font-size: 27px;
  letter-spacing: 0.04em;
}

.cw-brand strong {
  display: block;
  font-family: "Arial Black", Arial, sans-serif;
  font-size: 27px;
  line-height: 1;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.cw-brand span span {
  display: block;
  margin-top: 2px;
  color: var(--cw-muted);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.cw-edition { text-align: center; font-size: 12px; color: var(--cw-muted); }
.cw-edition strong { display: block; color: var(--cw-ink); font-size: 13px; }

.cw-contact {
  justify-self: end;
  padding: 9px 12px;
  border: 1px solid var(--cw-line);
  border-radius: 7px;
  background: #fff;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.cw-nav {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding: 0 22px 12px;
  scrollbar-width: none;
}
.cw-nav::-webkit-scrollbar { display: none; }
.cw-nav a {
  flex: 0 0 auto;
  padding: 8px 10px;
  border: 1px solid var(--cw-line);
  border-radius: 7px;
  background: #fff;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}
.cw-nav a:hover { border-color: var(--cw-blue); color: var(--cw-blue); }

.cw-topic-strip {
  border-top: 1px solid var(--cw-line);
  border-bottom: 1px solid var(--cw-line);
  background: rgba(255,255,255,.82);
}
.cw-topic-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  padding: 9px 22px 10px;
}
.cw-topic-inner strong {
  flex: 0 0 auto;
  color: var(--cw-blue);
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.cw-topic-inner a {
  flex: 0 0 auto;
  padding: 6px 9px;
  border: 1px solid var(--cw-line);
  border-radius: 999px;
  background: #fff;
  color: var(--cw-ink);
  font-size: 12px;
  font-weight: 900;
}
.cw-topic-inner a:hover {
  border-color: var(--cw-blue);
  color: var(--cw-blue);
}

.cw-main { padding: 28px 22px 52px; }
.cw-grid { display: grid; gap: 24px; }
.cw-front {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) 330px;
  gap: 24px;
  align-items: start;
}

.cw-card,
.cw-panel,
.cw-article,
.cw-side {
  border: 1px solid var(--cw-line);
  border-radius: 8px;
  background: #fff;
}

.cw-lead { overflow: hidden; box-shadow: var(--cw-shadow); }
.cw-media {
  min-height: 185px;
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, var(--cw-deep), var(--cw-blue));
}
.cw-lead .cw-media { min-height: 330px; }
.cw-card-body { padding: 17px 20px 20px; }
.cw-kicker {
  color: var(--cw-blue);
  font-size: 11px;
  font-weight: 950;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.cw-card h1,
.cw-card h2,
.cw-card h3,
.cw-section-title h2,
.cw-single-hero h1,
.cw-archive-hero h1 {
  margin: 7px 0 0;
  font-family: "Arial Black", Arial, sans-serif;
  line-height: 1.05;
  letter-spacing: 0;
}
.cw-lead h1 { font-size: clamp(28px, 3.5vw, 42px); }
.cw-card h2 { font-size: 20px; }
.cw-card h3 { font-size: 17px; }
.cw-card p { margin: 11px 0 0; color: var(--cw-muted); font-size: 15px; }

.cw-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 13px;
  margin-top: 13px;
  color: var(--cw-muted);
  font-size: 12px;
  font-weight: 800;
}

.cw-underlead,
.cw-grid-3,
.cw-cat-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.cw-underlead { margin-top: 26px; gap: 24px; }
.cw-underlead .cw-media { min-height: 145px; }
.cw-compact-card { overflow: hidden; }
.cw-compact-card h2 { font-size: 18px; line-height: 1.15; }

.cw-side { padding: 18px; }
.cw-side-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--cw-ink);
}
.cw-side-title h2 { margin: 0; font-size: 14px; text-transform: uppercase; }
.cw-rank { display: grid; gap: 0; }
.cw-rank a {
  display: grid;
  grid-template-columns: 38px 1fr;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--cw-line);
}
.cw-rank b { color: var(--cw-blue); font-size: 24px; line-height: 1; }
.cw-rank span { display: block; font-weight: 900; line-height: 1.22; }
.cw-rank small { display: block; margin-top: 4px; color: var(--cw-muted); font-size: 11px; font-weight: 800; text-transform: uppercase; }

.cw-section { margin-top: 34px; }
.cw-section-title {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
  padding-bottom: 10px;
  border-bottom: 3px solid var(--cw-ink);
}
.cw-section-title h2 { margin: 0; font-size: clamp(25px, 3vw, 36px); }
.cw-section-title a { color: var(--cw-blue); font-size: 12px; font-weight: 950; text-transform: uppercase; }

.cw-feed {
  display: grid;
  gap: 0;
  border: 1px solid var(--cw-line);
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
}
.cw-feed article {
  display: grid;
  grid-template-columns: 210px 1fr;
  gap: 18px;
  padding: 16px;
  border-bottom: 1px solid var(--cw-line);
}
.cw-feed article:last-child { border-bottom: 0; }
.cw-feed .cw-media { min-height: 125px; border-radius: 7px; overflow: hidden; }
.cw-feed h2 { margin: 5px 0 0; font-size: 22px; line-height: 1.08; }

.cw-feature-band {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: 22px;
  align-items: center;
  padding: 24px;
  border-radius: 8px;
  color: #fff;
  background: var(--cw-deep);
}
.cw-feature-band .cw-kicker { color: var(--cw-lime); }
.cw-feature-band h2 { margin: 6px 0 0; font-size: clamp(28px, 4vw, 44px); }
.cw-feature-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.cw-feature-list a { padding: 14px; border: 1px solid rgba(255,255,255,.18); border-radius: 8px; background: rgba(255,255,255,.06); }
.cw-feature-list b { display: block; color: var(--cw-lime); font-size: 11px; text-transform: uppercase; }
.cw-feature-list span { display: block; margin-top: 6px; font-weight: 950; line-height: 1.12; }

.cw-home-lead {
  margin-bottom: 64px;
}

.cw-home-side {
  position: sticky;
  top: 168px;
}

.cw-home-strip {
  margin-top: 68px;
}

.cw-latest-section,
.cw-category-section {
  margin-top: 68px;
}

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

.cw-latest-card {
  display: grid;
  grid-template-columns: 178px minmax(0, 1fr);
  gap: 18px;
  min-height: 178px;
  padding: 16px;
  border: 1px solid var(--cw-line);
  border-radius: 8px;
  background: #fff;
}

.cw-latest-card .cw-media {
  min-height: 0;
  height: 146px;
  aspect-ratio: auto;
  border-radius: 7px;
  overflow: hidden;
}

.cw-latest-card > div,
.cw-mini-row > div {
  min-width: 0;
}

.cw-latest-card h2 {
  margin: 5px 0 0;
  font-size: 20px;
  line-height: 1.12;
}

.cw-latest-card p {
  margin: 10px 0 0;
  color: var(--cw-muted);
  font-size: 14px;
}

.cw-category-section {
  padding-top: 2px;
}

.cw-category-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 1fr);
  gap: 22px;
  align-items: start;
}

.cw-category-lead {
  overflow: hidden;
}

.cw-category-lead .cw-media {
  min-height: 330px;
}

.cw-category-lead h2 {
  font-size: clamp(25px, 2.4vw, 34px);
}

.cw-category-list {
  display: grid;
  gap: 14px;
}

.cw-category-side {
  display: grid;
  gap: 14px;
}

.cw-category-filler {
  display: grid;
  gap: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--cw-line);
}

.cw-mini-label {
  color: var(--cw-muted);
  font-size: 11px;
  font-weight: 950;
  letter-spacing: .08em;
  line-height: 1;
  text-transform: uppercase;
}

.cw-mini-row {
  display: grid;
  grid-template-columns: 156px minmax(0, 1fr);
  gap: 16px;
  padding: 14px;
  border: 1px solid var(--cw-line);
  border-radius: 8px;
  background: #fff;
}

.cw-mini-row-muted {
  background: #f9fbfd;
}

.cw-mini-row .cw-media {
  min-height: 0;
  height: 112px;
  aspect-ratio: auto;
  border-radius: 7px;
  overflow: hidden;
}

.cw-mini-row h3 {
  margin: 4px 0 0;
  font-size: 18px;
  line-height: 1.14;
  overflow-wrap: anywhere;
}

.cw-category-more {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-top: 18px;
}

.cw-more-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--cw-line);
  border-radius: 8px;
  background: #fff;
}

.cw-more-card .cw-media {
  min-height: 0;
  height: 128px;
  aspect-ratio: auto;
}

.cw-more-card .cw-card-body {
  padding: 13px 14px 15px;
}

.cw-more-card h3 {
  margin: 4px 0 0;
  font-size: 17px;
  line-height: 1.14;
  overflow-wrap: anywhere;
}

.cw-single-layout,
.cw-archive-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 26px; align-items: start; }
.cw-single-hero,
.cw-archive-hero { padding: 24px; margin-bottom: 20px; }
.cw-single-hero h1,
.cw-archive-hero h1 { font-size: clamp(34px, 5vw, 58px); }
.cw-chapo { margin: 14px 0 0; padding-left: 15px; border-left: 4px solid var(--cw-blue); color: var(--cw-muted); font-size: 18px; }
.cw-byline { display: flex; gap: 12px; align-items: center; margin-top: 18px; }
.cw-avatar { flex: 0 0 auto; width: 54px; height: 54px; border-radius: 999px; overflow: hidden; background: var(--cw-line); }
.cw-byline strong { display: block; }
.cw-byline span { color: var(--cw-muted); font-size: 12px; font-weight: 800; }

.cw-article { padding: 26px 30px; }
.cw-article .wp-post-image { height: auto; border-radius: 8px; margin-bottom: 22px; }
.cw-article p { font-size: 17px; }
.cw-article h2 { margin-top: 32px; font-size: 27px; line-height: 1.12; }
.cw-article h3 { margin-top: 24px; font-size: 21px; }
.cw-article a { color: var(--cw-blue); font-weight: 850; }
.cw-article ul,
.cw-article ol { padding-left: 24px; }
.cw-article blockquote { margin: 22px 0; padding: 16px 20px; border-left: 4px solid var(--cw-coral); background: #f7f8fa; }
.cw-essential { margin: 22px 0; padding: 18px; border-left: 4px solid var(--cw-lime); background: #f7fbef; }
.cw-essential strong { display: block; margin-bottom: 8px; text-transform: uppercase; font-size: 12px; }
.cw-share { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.cw-share a { padding: 8px 10px; border-radius: 7px; background: var(--cw-deep); color: #fff; font-size: 12px; font-weight: 900; }

.cw-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.cw-tags a { padding: 7px 10px; border-radius: 999px; background: var(--cw-paper); color: var(--cw-muted); font-size: 12px; font-weight: 850; }

.cw-story {
  max-width: 1180px;
  margin: 0 auto;
}

.cw-story-head {
  margin: 0;
  padding: 26px 30px 22px;
  border: 0;
  border-bottom: 1px solid var(--cw-line);
  border-radius: 0;
  background: #fff;
  box-shadow: none;
}

.cw-story-head h1 {
  margin: 10px 0 0;
  font-family: Arial, Helvetica, sans-serif;
  font-size: clamp(30px, 3.5vw, 46px);
  font-weight: 950;
  line-height: 1.06;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

.cw-story-byline span:last-child {
  display: block;
}

.cw-story-layout {
  display: grid;
  grid-template-columns: minmax(0, 790px) minmax(280px, 330px);
  justify-content: center;
  gap: 28px;
  align-items: start;
}

.cw-story-main {
  min-width: 0;
  border: 1px solid var(--cw-line);
  border-radius: 8px;
  background: #fff;
  overflow: hidden;
}

.cw-story-figure {
  margin: 0;
}

.cw-story-figure .wp-post-image,
.cw-story-figure img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.cw-story-figure figcaption {
  padding: 9px 30px 0;
  color: var(--cw-muted);
  font-size: 12px;
}

.cw-story-main .cw-essential,
.cw-story-main .cw-entry,
.cw-story-main .cw-share,
.cw-story-main .cw-tags {
  margin-left: 30px;
  margin-right: 30px;
}

.cw-entry {
  padding-bottom: 6px;
  overflow-wrap: break-word;
}

.cw-entry > p:first-of-type {
  font-size: 19px;
  line-height: 1.6;
  font-weight: 800;
}

.cw-entry > p:first-of-type::first-letter {
  float: left;
  margin: 8px 10px 0 0;
  color: var(--cw-blue);
  font-family: "Arial Black", Arial, sans-serif;
  font-size: 58px;
  line-height: 0.82;
}

.cw-entry p {
  font-size: 17px;
}

.cw-entry h2 {
  margin-top: 34px;
  font-size: 28px;
  line-height: 1.12;
}

.cw-entry h3 {
  margin-top: 24px;
  font-size: 21px;
}

.cw-entry img {
  height: auto;
  border-radius: 8px;
}

.cw-essential ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 18px;
}

.cw-story-side {
  position: sticky;
  top: 168px;
}

.cw-side-title-spaced {
  margin-top: 24px;
}

.cw-page { max-width: 880px; padding: 28px; margin: 0 auto; background: #fff; border: 1px solid var(--cw-line); border-radius: 8px; }
.cw-team { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 20px; }
.cw-team-card { padding: 18px; border: 1px solid var(--cw-line); border-radius: 8px; background: #fff; }
.cw-team-card img { width: 86px; height: 86px; border-radius: 999px; margin-bottom: 12px; }
.cw-team-card h2 { margin: 0; font-size: 20px; }
.cw-team-card strong { color: var(--cw-blue); font-size: 12px; text-transform: uppercase; }

.cw-footer { margin-top: 42px; color: rgba(255,255,255,.82); background: #111723; }
.cw-footer-inner { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 28px; padding: 38px 22px; }
.cw-footer h2 { margin: 0 0 12px; color: #fff; font-size: 15px; text-transform: uppercase; }
.cw-footer a { display: block; margin: 8px 0; color: rgba(255,255,255,.76); font-size: 13px; font-weight: 800; }
.cw-footer-brand strong { display: block; color: #fff; font-family: "Arial Black", Arial, sans-serif; font-size: 28px; text-transform: uppercase; }
.cw-footer-pills { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.cw-footer-pills span { padding: 6px 8px; border-radius: 999px; color: #101217; background: var(--cw-lime); font-size: 11px; font-weight: 900; }
.cw-footer-bottom { grid-column: 1 / -1; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.12); font-size: 12px; color: rgba(255,255,255,.58); }

.cw-pagination { margin-top: 20px; }
.cw-pagination .nav-links { display: flex; flex-wrap: wrap; gap: 8px; }
.cw-pagination a,
.cw-pagination span { padding: 8px 11px; border: 1px solid var(--cw-line); border-radius: 7px; background: #fff; font-weight: 900; }
.cw-pagination .current { background: var(--cw-blue); color: #fff; }

@media (max-width: 860px) {
  .cw-story-layout {
    grid-template-columns: minmax(0, 820px);
  }
  .cw-story-side {
    position: static;
  }
}

@media (max-width: 980px) {
  .cw-masthead { grid-template-columns: 1fr auto; }
  .cw-edition { display: none; }
  .cw-front,
  .cw-single-layout,
  .cw-archive-layout,
  .cw-latest-grid,
  .cw-category-layout,
  .cw-category-more,
  .cw-feature-band,
  .cw-footer-inner { grid-template-columns: 1fr; }
  .cw-home-side {
    position: static;
  }
  .cw-underlead,
  .cw-grid-3,
  .cw-cat-grid,
  .cw-team,
  .cw-feature-list { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .cw-contact { display: none; }
  .cw-masthead,
  .cw-nav,
  .cw-main { padding-left: 12px; padding-right: 12px; }
  .cw-lead .cw-media { min-height: 240px; }
  .cw-feed article { grid-template-columns: 1fr; }
  .cw-latest-card,
  .cw-mini-row {
    grid-template-columns: 1fr;
  }
  .cw-latest-card .cw-media,
  .cw-mini-row .cw-media,
  .cw-more-card .cw-media,
  .cw-category-lead .cw-media {
    height: auto;
    aspect-ratio: 16 / 9;
    min-height: 210px;
  }
  .cw-article,
  .cw-single-hero,
  .cw-archive-hero,
  .cw-story-head { padding: 20px; }
  .cw-story-main .cw-essential,
  .cw-story-main .cw-entry,
  .cw-story-main .cw-share,
  .cw-story-main .cw-tags {
    margin-left: 18px;
    margin-right: 18px;
  }
  .cw-story-figure figcaption {
    padding-left: 18px;
    padding-right: 18px;
  }
}
