:root {
  --ink: #082a66;
  --ink-deep: #061d49;
  --muted: #4f668f;
  --line: rgba(7, 37, 91, 0.16);
  --paper: #fffaf0;
  --panel: rgba(255, 253, 244, 0.95);
  --blue: #0878e7;
  --blue-dark: #064fae;
  --sky: #13b9f2;
  --yellow: #ffd51f;
  --orange: #ff8b18;
  --green: #15b95d;
  --pink: #f43e86;
  --purple: #8349e8;
  --shadow: 0 12px 26px rgba(7, 34, 90, 0.22);
  --soft-shadow: 0 8px 18px rgba(7, 34, 90, 0.14);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  scroll-behavior: smooth;
}

body {
  min-height: 100%;
  margin: 0;
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  background:
    linear-gradient(180deg, rgba(7, 174, 235, 0.74), rgba(68, 205, 255, 0.62) 34%, rgba(206, 244, 255, 0.55) 100%),
    url("/assets/mountain-scene.svg") center top / 1500px auto repeat-y,
    #8de7ff;
}

button,
input,
textarea,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

a {
  color: inherit;
}

img {
  max-width: 100%;
}

[hidden] {
  display: none !important;
}

.visually-hidden,
.skip-link {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link:focus {
  z-index: 20;
  top: 12px;
  left: 12px;
  width: auto;
  height: auto;
  padding: 10px 14px;
  clip: auto;
  color: var(--ink);
  background: #fff;
  border-radius: 6px;
  box-shadow: var(--soft-shadow);
}

.page-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto 42px;
}

.hero {
  position: relative;
  min-height: 390px;
  overflow: hidden;
  isolation: isolate;
  background:
    linear-gradient(180deg, rgba(0, 184, 244, 0.18), rgba(255, 255, 255, 0.06)),
    url("/assets/mountain-scene.svg") center bottom / cover no-repeat;
  border-bottom-right-radius: 8px;
  border-bottom-left-radius: 8px;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 72px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.32));
  z-index: -1;
}

.hero-topbar {
  position: absolute;
  top: 24px;
  right: 24px;
  z-index: 3;
}

.round-icon {
  display: grid;
  place-items: center;
  width: 62px;
  height: 62px;
  border: 0;
  border-radius: 50%;
  color: var(--ink-deep);
  background: #fff;
  box-shadow: 0 8px 0 rgba(8, 42, 102, 0.12), var(--soft-shadow);
}

.round-link {
  text-decoration: none;
}

.round-icon span {
  display: block;
  font-size: 42px;
  line-height: 1;
  transform: translateY(-2px);
}

.brand-lockup {
  position: relative;
  z-index: 2;
  width: min(570px, 72vw);
  padding-top: 34px;
  margin-left: 150px;
  text-align: center;
  color: #fff;
  text-shadow:
    0 5px 0 #09336f,
    0 10px 18px rgba(5, 29, 75, 0.42);
}

.brand-line {
  font-weight: 900;
  line-height: 0.88;
}

.brand-line-main {
  font-size: clamp(58px, 9vw, 108px);
}

.brand-line-secondary {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 16px;
  color: var(--yellow);
  font-size: clamp(66px, 10vw, 122px);
  -webkit-text-stroke: 2px #0a3b80;
}

.brand-domain {
  display: inline-flex;
  align-items: center;
  height: 72px;
  padding: 0 16px;
  margin-bottom: 14px;
  color: #fff;
  font-size: clamp(35px, 5vw, 58px);
  background: linear-gradient(180deg, #2d9fff, #0754bd);
  border: 3px solid rgba(255, 255, 255, 0.7);
  border-radius: 8px;
  -webkit-text-stroke: 0;
  box-shadow: inset 0 -8px 0 rgba(0, 0, 0, 0.16);
}

.brand-tagline {
  display: inline-block;
  padding: 10px 28px 12px;
  margin-top: 10px;
  color: var(--ink);
  font-size: clamp(15px, 2vw, 21px);
  font-weight: 900;
  text-transform: uppercase;
  text-shadow: none;
  background: linear-gradient(180deg, #ffe850, #ffb516);
  border: 2px solid rgba(255, 255, 255, 0.65);
  border-radius: 8px;
  box-shadow: 0 6px 0 rgba(128, 83, 0, 0.24);
}

.hero-mascot {
  position: absolute;
  z-index: 1;
  bottom: 4px;
  width: min(240px, 25vw);
  filter: drop-shadow(0 16px 18px rgba(6, 29, 73, 0.24));
  pointer-events: none;
}

.hero-mascot-left {
  left: 6px;
}

.hero-mascot-right {
  right: 12px;
}

.main-nav {
  position: sticky;
  top: 8px;
  z-index: 10;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(132px, 1fr));
  gap: 0;
  overflow: hidden;
  margin: -34px auto 26px;
  padding: 9px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(6, 40, 96, 0.14);
  border-radius: 28px;
  box-shadow: 0 8px 0 rgba(7, 34, 90, 0.14), var(--soft-shadow);
  backdrop-filter: blur(12px);
}

.nav-item {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 8px 10px;
  color: var(--ink);
  font-weight: 900;
  text-transform: uppercase;
  background: transparent;
  border: 0;
  border-right: 1px solid rgba(8, 42, 102, 0.16);
  text-decoration: none;
}

.nav-item:last-child {
  border-right: 0;
}

.nav-item span:last-child {
  overflow-wrap: anywhere;
}

.nav-item.is-active {
  color: #fff;
  background: linear-gradient(180deg, #24a8ff, #0769db);
  border-radius: 22px;
  box-shadow: inset 0 -4px 0 rgba(0, 0, 0, 0.2);
}

.nav-icon {
  display: inline-grid;
  flex: 0 0 31px;
  width: 31px;
  height: 31px;
  place-items: center;
  color: var(--ink);
  font-size: 21px;
  background: #fff;
  border-radius: 50%;
  box-shadow: inset 0 -3px 0 rgba(8, 42, 102, 0.13);
}

.search-panel {
  padding: 16px;
  margin: 0 0 18px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--soft-shadow);
}

.search-row {
  display: flex;
  gap: 10px;
}

.search-row input {
  flex: 1;
}

.public-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 28px;
  align-items: start;
}

.public-layout-full {
  grid-template-columns: minmax(0, 1fr);
}

.content-stack,
.sidebar {
  display: grid;
  gap: 24px;
}

.daily-card,
.panel,
.side-card,
.recent-card {
  position: relative;
  border: 1px solid rgba(8, 42, 102, 0.18);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.daily-card,
.panel,
.recent-card {
  background: var(--panel);
}

.daily-card {
  overflow: hidden;
  padding: 82px 26px 22px;
}

.daily-card::after {
  content: "";
  position: absolute;
  right: -70px;
  bottom: -85px;
  width: 260px;
  height: 260px;
  background: radial-gradient(circle at center, rgba(255, 221, 84, 0.42), rgba(255, 255, 255, 0) 70%);
  pointer-events: none;
}

.daily-head {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
  padding: 12px 20px;
  color: #fff;
  background:
    linear-gradient(90deg, #0369d6, #087df2 58%, #1b95ff),
    var(--blue);
  border-bottom: 3px solid rgba(4, 51, 115, 0.45);
}

.daily-title-label {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  font-size: clamp(20px, 3vw, 31px);
  font-weight: 900;
  text-transform: uppercase;
  text-shadow: 0 3px 0 rgba(0, 0, 0, 0.25);
}

.daily-title-label span {
  display: inline-grid;
  width: 42px;
  height: 42px;
  place-items: center;
  color: var(--yellow);
  background: linear-gradient(180deg, #0aa1ff, #0751ad);
  border-radius: 8px;
}

.like-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 112px;
  justify-content: center;
  padding: 12px 17px;
  color: #fff;
  font-size: 28px;
  font-weight: 900;
  background: linear-gradient(180deg, #ff72aa, #e82d78);
  border: 2px solid rgba(255, 255, 255, 0.72);
  border-radius: 8px;
  box-shadow: 0 5px 0 rgba(126, 19, 70, 0.28);
}

.daily-body-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 230px;
  gap: 20px;
  align-items: end;
}

.joke-title {
  margin: 0 0 13px;
  color: var(--ink);
  font-size: clamp(31px, 4.6vw, 48px);
  line-height: 1.05;
}

.joke-lines {
  margin: 0;
  color: #111827;
  font-size: clamp(18px, 2vw, 22px);
  font-weight: 700;
  line-height: 1.48;
  white-space: pre-line;
}

.daily-art {
  display: grid;
  min-height: 230px;
  place-items: center;
}

.big-avatar,
.list-avatar {
  position: relative;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  overflow: hidden;
  border-radius: 50%;
  background:
    radial-gradient(circle at 38% 30%, rgba(255, 255, 255, 0.98), rgba(255, 255, 255, 0) 34%),
    linear-gradient(145deg, #ffd92e, #ff9b18);
  box-shadow: inset 0 -9px 0 rgba(122, 80, 0, 0.14), var(--soft-shadow);
}

.avatar-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 50%;
}

.has-avatar-image::after {
  display: none;
}

.big-avatar {
  width: 218px;
  height: 218px;
  font-size: 88px;
}

.list-avatar {
  width: 118px;
  height: 118px;
  font-size: 54px;
}

.avatar-blonde {
  background:
    url("/assets/avatar-blonde.svg") center / cover no-repeat,
    linear-gradient(145deg, #fff077, #ffaf2b 58%, #ff629e);
  color: transparent;
  overflow: hidden;
}

.avatar-blonde::after {
  content: "B";
  position: absolute;
  right: 7%;
  bottom: 7%;
  display: grid;
  width: 25%;
  height: 25%;
  place-items: center;
  color: #fff;
  font-size: 38%;
  font-weight: 900;
  line-height: 1;
  background: linear-gradient(180deg, #ff72aa, #d92f70);
  border: 3px solid rgba(255, 255, 255, 0.92);
  border-radius: 50%;
  box-shadow: 0 7px 14px rgba(126, 19, 70, 0.2);
}

.avatar-idea {
  background:
    url("/assets/avatar-idea.svg") center / cover no-repeat,
    linear-gradient(145deg, #40d5ff, #1ca4ff 56%, #20bd6b);
  color: transparent;
  overflow: hidden;
}

.avatar-couple {
  background:
    url("/assets/avatar-couple.svg") center / cover no-repeat,
    linear-gradient(145deg, #ffcf59, #ff7771 55%, #15b6e8);
  color: transparent;
  overflow: hidden;
}

.avatar-soldier {
  background:
    url("/assets/avatar-soldier.svg") center / cover no-repeat,
    linear-gradient(145deg, #c6dc3f, #5aae35 55%, #1c6c52);
  color: transparent;
  overflow: hidden;
}

.avatar-cool {
  background:
    url("/assets/avatar-cool.svg") center / cover no-repeat,
    linear-gradient(145deg, #ffe46a, #ffb01e 55%, #148dda);
  color: transparent;
  overflow: hidden;
}

.avatar-red {
  background:
    radial-gradient(circle at 34% 26%, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0) 28%),
    linear-gradient(145deg, #ffd166, #ff5c5c 55%, #b91646);
}

.avatar-mint {
  background:
    radial-gradient(circle at 34% 26%, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0) 28%),
    linear-gradient(145deg, #dcfff2, #38d99a 55%, #087a7a);
}

.avatar-violet {
  background:
    radial-gradient(circle at 34% 26%, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0) 28%),
    linear-gradient(145deg, #ffe0ff, #a66cff 55%, #5a2bbf);
}

.avatar-sky {
  background:
    radial-gradient(circle at 34% 26%, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0) 28%),
    linear-gradient(145deg, #e7fbff, #35c9ff 55%, #0b61c8);
}

.avatar-sun {
  background:
    radial-gradient(circle at 34% 26%, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0) 28%),
    linear-gradient(145deg, #fff5a8, #ffc83d 55%, #ef7d16);
}

.joke-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 18px;
}

.actions-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  width: 100%;
}

.action-button,
.primary-button,
.secondary-button,
.small-button,
.random-button,
.light-button,
.ghost-button {
  min-height: 44px;
  padding: 10px 18px;
  color: #fff;
  font-weight: 900;
  text-transform: uppercase;
  border: 0;
  border-radius: 8px;
  box-shadow: inset 0 -4px 0 rgba(0, 0, 0, 0.2), 0 5px 12px rgba(7, 34, 90, 0.16);
  text-decoration: none;
}

a.action-button,
a.primary-button,
a.secondary-button,
a.small-button,
a.random-button,
a.light-button,
a.ghost-button,
.button-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.action-like {
  color: var(--ink);
  background: linear-gradient(180deg, #ffe250, #ffb000);
}

.action-share {
  background: linear-gradient(180deg, #24c970, #0c9848);
}

.action-share-facebook {
  background: linear-gradient(180deg, #2f88ff, #1559c8);
}

.action-liked {
  color: #0f3b27;
  background: linear-gradient(180deg, #e7fff1, #a8e8c1);
  box-shadow: inset 0 -4px 0 rgba(15, 59, 39, 0.13), 0 5px 12px rgba(7, 34, 90, 0.12);
  cursor: not-allowed;
  opacity: 0.92;
}

.action-send,
.primary-button {
  background: linear-gradient(180deg, #168eff, #075fc7);
}

.secondary-button,
.small-button {
  color: var(--ink);
  background: linear-gradient(180deg, #fff, #e5efff);
}

.ghost-button {
  color: var(--ink);
  background: #f7f9ff;
  box-shadow: inset 0 0 0 1px rgba(8, 42, 102, 0.14);
}

.section-ribbon {
  position: absolute;
  top: -18px;
  left: 18px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 8px 18px;
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.55);
  border-radius: 8px;
  box-shadow: 0 6px 0 rgba(7, 34, 90, 0.16), var(--soft-shadow);
}

.section-ribbon h2 {
  margin: 0;
  font-size: clamp(19px, 2vw, 26px);
  text-transform: uppercase;
  text-shadow: 0 3px 0 rgba(0, 0, 0, 0.23);
}

.section-ribbon-pink {
  background: linear-gradient(180deg, #ff6aaa, #e52a78);
}

.section-ribbon-blue {
  background: linear-gradient(180deg, #229aff, #0963cf);
}

.recent-card,
.panel {
  padding: 42px 18px 18px;
}

.joke-list {
  display: grid;
  gap: 12px;
}

.joke-row {
  position: relative;
  display: grid;
  grid-template-columns: 128px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  min-height: 144px;
  padding: 15px 82px 15px 14px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(8, 42, 102, 0.12);
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(7, 34, 90, 0.08);
}

.joke-row h3 {
  margin: 0 0 5px;
  font-size: clamp(22px, 2.8vw, 29px);
}

.joke-row .joke-lines {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.34;
}

.row-like {
  position: absolute;
  top: 20px;
  right: 20px;
  min-width: 64px;
  padding: 8px 9px;
  color: #fff;
  font-weight: 900;
  text-align: center;
  background: linear-gradient(180deg, #ff72aa, #e82d78);
  border-radius: 8px;
  box-shadow: 0 4px 0 rgba(126, 19, 70, 0.22);
}

.row-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
}

.inline-form {
  display: inline-flex;
  margin: 0;
}

.row-actions .action-button {
  min-height: 36px;
  padding: 7px 16px;
  font-size: 14px;
}

.breadcrumbs {
  position: relative;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0 0 24px;
  color: #4d6285;
  font-size: 14px;
  font-weight: 800;
}

.breadcrumbs a {
  color: var(--blue-dark);
  text-decoration: none;
}

.breadcrumbs strong {
  color: var(--ink);
}

.category-intro {
  padding-top: 22px;
}

.category-intro p {
  margin: 0;
  color: #24384f;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.55;
}

.related-card {
  padding-top: 44px;
}

.related-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.related-item {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 14px;
  min-height: 88px;
  padding: 14px 16px;
  color: var(--ink);
  background:
    linear-gradient(90deg, rgba(255, 223, 88, 0.24), rgba(255, 255, 255, 0.88) 34%),
    rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(8, 42, 102, 0.12);
  border-radius: 8px;
  text-decoration: none;
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.related-item:hover {
  transform: translateY(-2px);
  border-color: rgba(29, 116, 245, 0.24);
  box-shadow: 0 12px 26px rgba(18, 40, 72, 0.1);
}

.related-marker {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  align-self: start;
  color: #fff;
  font-size: 22px;
  background: linear-gradient(180deg, #ff72aa, #d92f70);
  border-radius: 50%;
  box-shadow: 0 8px 18px rgba(217, 47, 112, 0.18);
}

.related-content {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.related-content strong {
  color: var(--ink-deep);
  font-size: 18px;
  line-height: 1.2;
}

.related-item em {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  font-style: normal;
  text-transform: uppercase;
}

.related-item p {
  margin: 0;
  color: #26374e;
  font-size: 14px;
  font-weight: 650;
  line-height: 1.45;
}

.joke-widgets {
  grid-column: 1;
  padding-top: 44px;
}

.joke-widget-grid {
  display: grid;
  grid-template-columns: 1.1fr 1.1fr 1.35fr;
  grid-template-areas:
    "vote share top"
    "author category top"
    "cta cta top";
  gap: 14px;
}

.joke-widget {
  display: grid;
  align-content: start;
  gap: 10px;
  min-height: 0;
  padding: 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(244, 249, 255, 0.9)),
    #fff;
  border: 1px solid rgba(8, 42, 102, 0.12);
  border-radius: 8px;
  box-shadow: 0 10px 24px rgba(18, 40, 72, 0.08);
}

.vote-widget {
  grid-area: vote;
}

.share-widget {
  grid-area: share;
}

.author-widget {
  grid-area: author;
}

.category-widget {
  grid-area: category;
}

.top-widget {
  grid-area: top;
  background:
    linear-gradient(180deg, rgba(255, 223, 88, 0.28), rgba(255, 255, 255, 0.94)),
    #fff;
}

.cta-widget {
  grid-area: cta;
  grid-template-columns: 52px minmax(0, 1fr);
  align-items: center;
}

.cta-widget .widget-icon {
  grid-row: span 3;
}

.cta-widget .widget-actions {
  margin-top: 2px;
}

.joke-widget h3 {
  margin: 0;
  color: var(--ink-deep);
  font-size: 19px;
  line-height: 1.15;
}

.joke-widget p {
  margin: 0;
  color: var(--muted);
  font-weight: 700;
  line-height: 1.45;
}

.widget-icon {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  color: #fff;
  font-size: 21px;
  background: linear-gradient(180deg, #227df5, #135bc9);
  border-radius: 50%;
  box-shadow: 0 8px 18px rgba(19, 91, 201, 0.18);
}

.vote-widget .widget-icon,
.share-widget .widget-icon {
  background: linear-gradient(180deg, #ff72aa, #d92f70);
}

.widget-actions,
.widget-actions .actions-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.widget-actions .action-button,
.widget-actions .random-button,
.widget-actions .light-button {
  min-height: 38px;
  padding: 8px 12px;
  font-size: 13px;
}

.widget-actions .reaction-buttons {
  gap: 6px;
}

.widget-actions-split {
  display: flex;
  flex-wrap: wrap;
}

.author-widget dl {
  display: grid;
  gap: 8px;
  margin: 0;
}

.author-widget dl div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(8, 42, 102, 0.08);
}

.author-widget dt {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.author-widget dd {
  margin: 0;
  color: var(--ink-deep);
  font-weight: 900;
  text-align: right;
}

.author-widget a {
  color: var(--blue-dark);
  text-decoration: none;
}

.mini-link-list {
  display: grid;
  gap: 8px;
}

.mini-link-list a,
.mini-rank-list a {
  color: var(--ink);
  font-weight: 850;
  text-decoration: none;
}

.mini-link-list a:hover,
.mini-rank-list a:hover {
  color: var(--blue-dark);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.mini-rank-list {
  display: grid;
  gap: 8px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.mini-rank-list li {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr);
  gap: 8px;
  align-items: center;
}

.mini-rank-list span {
  display: grid;
  width: 26px;
  height: 26px;
  place-items: center;
  color: var(--ink);
  font-size: 12px;
  font-weight: 900;
  background: #ffdf58;
  border-radius: 50%;
}

.joke-tools {
  grid-column: 1;
  padding-top: 44px;
}

.joke-more-panel,
.joke-faq {
  grid-column: 1;
}

.joke-more-panel {
  padding-top: 42px;
}

.joke-more-layout,
.faq-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(260px, 0.65fr);
  gap: 16px;
}

.next-joke-card,
.same-category-card,
.faq-grid article {
  padding: 18px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(8, 42, 102, 0.12);
  border-radius: 8px;
  box-shadow: 0 12px 24px rgba(18, 40, 72, 0.08);
}

.next-joke-card {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(255, 223, 88, 0.35), rgba(255, 255, 255, 0.94) 42%),
    #fff;
}

.next-joke-card::after {
  position: absolute;
  top: 14px;
  right: 16px;
  color: rgba(19, 91, 201, 0.16);
  font-size: 52px;
  font-weight: 900;
  content: ":)";
}

.next-joke-kicker,
.same-category-card > span {
  display: inline-flex;
  margin-bottom: 10px;
  color: #d92f70;
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 0;
  text-transform: uppercase;
}

.next-joke-card h3,
.same-category-card h3,
.faq-grid h3 {
  margin: 0 0 8px;
  color: var(--ink-deep);
  font-size: 22px;
  line-height: 1.15;
}

.next-joke-card p,
.same-category-card p,
.faq-grid p {
  margin: 0;
  color: var(--muted);
  font-weight: 750;
  line-height: 1.55;
}

.next-joke-card .button {
  margin-top: 16px;
}

.same-category-list {
  display: grid;
  gap: 8px;
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
}

.same-category-list a {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  color: var(--ink-deep);
  font-weight: 900;
  text-decoration: none;
  background: rgba(232, 242, 255, 0.9);
  border: 1px solid rgba(29, 116, 245, 0.12);
  border-radius: 8px;
}

.same-category-list a::after {
  flex: 0 0 auto;
  color: var(--blue);
  content: ">";
}

.same-category-list a:hover {
  color: #fff;
  background: var(--blue);
}

.same-category-list a:hover::after {
  color: #fff;
}

.joke-faq {
  padding-top: 42px;
}

.joke-tools-layout {
  display: grid;
  gap: 16px;
}

.joke-tools-intro {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  padding: 16px;
  background:
    linear-gradient(90deg, rgba(255, 223, 88, 0.28), rgba(255, 255, 255, 0.92)),
    #fff;
  border: 1px solid rgba(8, 42, 102, 0.12);
  border-radius: 8px;
}

.joke-tools-intro > span {
  display: grid;
  width: 54px;
  height: 54px;
  place-items: center;
  color: #fff;
  font-size: 26px;
  background: linear-gradient(180deg, #227df5, #135bc9);
  border-radius: 50%;
  box-shadow: 0 8px 18px rgba(19, 91, 201, 0.18);
}

.joke-tools-intro h3 {
  margin: 0 0 4px;
  color: var(--ink-deep);
  font-size: 24px;
}

.joke-tools-intro p {
  margin: 0;
  color: var(--muted);
  font-weight: 750;
  line-height: 1.45;
}

.joke-tool-buttons {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.tool-button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  padding: 10px 12px;
  color: var(--ink-deep);
  font-weight: 900;
  text-align: center;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(8, 42, 102, 0.14);
  border-radius: 8px;
  box-shadow: 0 8px 18px rgba(18, 40, 72, 0.08);
}

.tool-button:hover {
  color: #fff;
  background: var(--blue);
}

.tool-button-accent {
  color: #fff;
  background: linear-gradient(180deg, #ff72aa, #d92f70);
  border-color: transparent;
}

.joke-tool-feedback {
  min-height: 20px;
  color: var(--green);
  font-size: 14px;
  font-weight: 900;
}

.sidebar {
  align-self: start;
  position: sticky;
  top: 100px;
}

.side-card {
  overflow: hidden;
  padding: 18px;
  color: #fff;
}

.side-card-purple {
  background: linear-gradient(180deg, #a15dff, #7233d1);
}

.side-card-week {
  background:
    linear-gradient(180deg, rgba(255, 215, 76, 0.96), rgba(232, 52, 117, 0.96)),
    url("/assets/mountain-scene.svg") center / cover no-repeat;
}

.side-card-green {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(0, 0, 0, 0.1)),
    #10aa52;
}

.side-card-blue {
  min-height: 250px;
  background:
    linear-gradient(180deg, rgba(10, 154, 255, 0.95), rgba(8, 94, 199, 0.96)),
    url("/assets/mountain-scene.svg") center bottom / cover no-repeat;
}

.side-card-clock {
  background:
    linear-gradient(180deg, rgba(255, 187, 64, 0.98), rgba(238, 91, 69, 0.96)),
    url("/assets/mountain-scene.svg") center / cover no-repeat;
}

.next-joke-countdown {
  margin: 8px 0 4px;
  color: #fff;
  font-size: clamp(25px, 2vw, 34px);
  font-weight: 950;
  line-height: 1.1;
  letter-spacing: 0;
  font-variant-numeric: tabular-nums;
}

.next-joke-emoji {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  width: 40px;
  height: 32px;
  margin-left: 0;
  font-size: 18px;
  line-height: 1;
  letter-spacing: 0.01em;
  background: rgba(15, 33, 58, 0.24);
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 999px;
}

.next-joke-countdown-idle {
  opacity: 0.86;
  font-size: 20px;
}

.next-joke-extra {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-top: 6px;
}

.next-joke-meta {
  display: grid;
  gap: 4px;
  margin-top: 10px;
  font-size: 13px;
  line-height: 1.35;
}

.next-joke-meta span {
  display: flex;
  gap: 8px;
  align-items: baseline;
}

.next-joke-meta strong {
  opacity: 0.9;
}

.next-joke-progress-label {
  margin: 8px 0 6px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
}

.next-joke-progress-label strong {
  font-weight: 950;
}

.next-joke-pill {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 2px 10px;
  color: #fff;
  font-size: 12px;
  font-weight: 900;
  background: rgba(14, 34, 62, 0.24);
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
}

.next-joke-progress {
  width: 100%;
  height: 8px;
  margin-top: 10px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.24);
  border-radius: 999px;
}

.next-joke-progress > span {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, #fff3cc, #ffffff);
  border-radius: inherit;
  transition: width 0.9s linear;
}

.next-joke-link {
  display: inline-flex;
  width: 100%;
  min-height: 34px;
  margin-top: 10px;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 13px;
  font-weight: 900;
  text-decoration: none;
  background: rgba(16, 22, 33, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 999px;
}

.next-joke-link:hover {
  background: rgba(16, 22, 33, 0.42);
}

.ad-slot {
  display: grid;
  min-height: 96px;
  place-items: center;
  padding: 14px;
  overflow: hidden;
  color: var(--muted);
  text-align: center;
  background: rgba(255, 255, 255, 0.86);
  border: 1px dashed rgba(8, 42, 102, 0.22);
  border-radius: 8px;
  box-shadow: var(--soft-shadow);
}

.ad-slot ins {
  width: 100%;
  min-height: 90px;
}

.ad-slot-placeholder span {
  display: block;
  color: var(--ink);
  font-weight: 900;
  text-transform: uppercase;
}

.ad-slot-placeholder small {
  display: block;
  margin-top: 4px;
}

.side-title {
  display: flex;
  align-items: center;
  gap: 11px;
}

.side-title h2 {
  margin: 0;
  font-size: 24px;
  text-transform: uppercase;
  text-shadow: 0 3px 0 rgba(0, 0, 0, 0.2);
}

.top-list {
  display: grid;
  gap: 0;
  padding: 0;
  margin: 16px 0 0;
  overflow: hidden;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.95);
  border-radius: 8px;
}

.top-list li {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  min-height: 56px;
  padding: 10px 14px;
  font-weight: 900;
  border-bottom: 1px solid rgba(8, 42, 102, 0.1);
}

.top-list li:last-child {
  border-bottom: 0;
}

.rank {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  color: var(--ink);
  background: linear-gradient(180deg, #ffe54d, #ffba0b);
  border-radius: 50%;
  box-shadow: inset 0 -3px 0 rgba(128, 83, 0, 0.2);
}

.side-copy {
  margin: 12px 0 18px;
  color: rgba(255, 255, 255, 0.94);
  font-size: 17px;
  line-height: 1.45;
}

.weekly-joke {
  display: grid;
  gap: 11px;
  margin-top: 14px;
}

.weekly-joke h3 {
  margin: 0;
  color: #fff;
  font-size: 25px;
  line-height: 1.05;
  text-shadow: 0 3px 0 rgba(0, 0, 0, 0.18);
}

.weekly-joke p {
  margin: 0;
  color: rgba(255, 255, 255, 0.96);
  font-weight: 800;
  line-height: 1.38;
}

.weekly-joke-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.weekly-joke-meta span {
  padding: 6px 9px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.92);
  border-radius: 999px;
  box-shadow: inset 0 -3px 0 rgba(8, 42, 102, 0.12);
}

.random-button {
  width: 100%;
  color: var(--ink);
  background: linear-gradient(180deg, #ffe45a, #ffbd16);
}

.light-button {
  color: var(--ink);
  background: linear-gradient(180deg, #fff, #dceaff);
}

.submit-form,
.cms-form {
  display: grid;
  gap: 15px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.form-grid-three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

label {
  display: grid;
  gap: 6px;
  color: var(--ink);
  font-weight: 800;
}

.field-label,
label span {
  font-size: 14px;
  text-transform: uppercase;
}

input,
textarea,
select {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  color: #111827;
  background: #fff;
  border: 1px solid rgba(8, 42, 102, 0.2);
  border-radius: 8px;
  outline: none;
}

textarea {
  resize: vertical;
}

input:focus,
textarea:focus,
select:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(8, 120, 231, 0.16);
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
}

.category-tile {
  display: block;
  min-height: 104px;
  padding: 18px;
  color: var(--ink);
  text-align: left;
  background: #fff;
  border: 1px solid rgba(8, 42, 102, 0.14);
  border-radius: 8px;
  box-shadow: var(--soft-shadow);
  text-decoration: none;
}

.category-tile strong {
  display: block;
  margin-bottom: 8px;
  font-size: 21px;
}

.admin-view {
  display: grid;
  gap: 20px;
}

.admin-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 22px;
  color: #fff;
  background:
    linear-gradient(120deg, rgba(8, 120, 231, 0.96), rgba(131, 73, 232, 0.94)),
    url("/assets/mountain-scene.svg") center / cover no-repeat;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.eyebrow {
  margin: 0 0 5px;
  font-weight: 900;
  text-transform: uppercase;
  color: #ffe46b;
}

.admin-hero h1 {
  margin: 0;
  font-size: clamp(31px, 4vw, 46px);
}

.admin-layout {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}

.admin-sidebar {
  position: sticky;
  top: 18px;
  display: grid;
  gap: 16px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(8, 42, 102, 0.14);
  border-radius: 8px;
  box-shadow: var(--soft-shadow);
}

.admin-sidebar-title {
  display: grid;
  gap: 3px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(8, 42, 102, 0.1);
}

.admin-sidebar-title span {
  color: var(--pink);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.admin-sidebar-title strong {
  color: var(--ink);
  font-size: 20px;
}

.admin-side-nav,
.admin-sidebar-tools {
  display: grid;
  gap: 8px;
}

.admin-nav-group {
  display: grid;
  gap: 7px;
}

.admin-side-nav a {
  display: flex;
  align-items: center;
  min-height: 42px;
  padding: 10px 12px;
  color: var(--ink);
  font-weight: 900;
  text-decoration: none;
  background: rgba(244, 249, 255, 0.86);
  border: 1px solid rgba(8, 42, 102, 0.08);
  border-radius: 8px;
}

.admin-side-nav a:hover,
.admin-side-nav a.is-active {
  color: #fff;
  background: var(--blue-dark);
  border-color: rgba(8, 42, 102, 0.22);
}

.admin-sub-nav {
  display: grid;
  gap: 6px;
  padding-left: 12px;
}

.admin-sub-nav a {
  min-height: 34px;
  padding: 8px 10px;
  font-size: 13px;
  background: rgba(255, 255, 255, 0.82);
}

.admin-nav-group:not(.is-open) .admin-sub-nav {
  display: none;
}

.admin-sub-nav a.is-active {
  background: var(--pink);
}

.admin-sidebar-tools {
  padding-top: 12px;
  border-top: 1px solid rgba(8, 42, 102, 0.1);
}

.admin-sidebar-tools .small-button,
.admin-sidebar-tools .file-button {
  width: 100%;
}

.admin-content {
  min-width: 0;
  display: grid;
  gap: 20px;
}

.admin-stats {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}

.stat-card {
  padding: 18px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(8, 42, 102, 0.15);
  border-radius: 8px;
  box-shadow: var(--soft-shadow);
}

.stat-card strong {
  display: block;
  margin-top: 5px;
  font-size: 31px;
}

.stat-card small {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.likes-reset-form {
  margin-top: 10px;
}

.stat-card-ok {
  border-color: rgba(12, 152, 72, 0.28);
}

.stat-card-alert {
  border-color: rgba(214, 41, 88, 0.36);
  background: #fff5f8;
}

.site-settings-panel {
  display: grid;
  gap: 18px;
}

.adsense-settings {
  display: grid;
  gap: 15px;
  padding: 18px;
  background: rgba(244, 249, 255, 0.9);
  border: 1px solid rgba(8, 42, 102, 0.12);
  border-radius: 8px;
}

.adsense-settings .form-header {
  margin-bottom: 0;
}

.adsense-settings h3 {
  margin: 0;
  color: var(--ink);
  font-size: 22px;
}

.admin-help {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.45;
}

.maintenance-status {
  padding: 9px 13px;
  color: var(--ink);
  font-weight: 900;
  text-transform: uppercase;
  border-radius: 999px;
  box-shadow: inset 0 -3px 0 rgba(8, 42, 102, 0.12);
}

.maintenance-status-online {
  background: #b9f2cc;
}

.maintenance-status-offline {
  background: #ffd3df;
}

.admin-grid {
  display: grid;
  grid-template-columns: minmax(320px, 430px) minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}

.maintenance-admin-panel {
  display: grid;
  gap: 18px;
}

.visitor-panel {
  display: grid;
  gap: 16px;
}

.visitor-stats-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.visitor-lists-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  align-items: start;
}

.visitor-panel .admin-list {
  max-height: none !important;
  overflow: visible !important;
  padding-right: 0;
}

.visitor-value {
  display: block;
  white-space: normal !important;
  text-overflow: clip !important;
  overflow: visible !important;
  overflow-wrap: anywhere;
  word-break: break-word;
  line-height: 1.35;
}

.maintenance-admin-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  align-items: start;
}

.maintenance-list-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.maintenance-list-shell {
  display: grid;
  gap: 12px;
}

.maintenance-js-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.avatar-panel {
  display: grid;
  gap: 18px;
}

.avatar-admin-grid {
  display: grid;
  grid-template-columns: minmax(320px, 430px) minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}

.avatar-list {
  display: grid;
  gap: 12px;
}

.avatar-item {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 12px;
  background: #fff;
  border: 1px solid rgba(8, 42, 102, 0.14);
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(7, 34, 90, 0.08);
}

.avatar-item .list-avatar {
  width: 64px;
  height: 64px;
  font-size: 30px;
}

.avatar-item h3 {
  margin: 0 0 4px;
}

.avatar-item p {
  margin: 0;
  color: var(--muted);
}

.category-avatar-chip {
  margin-bottom: 8px;
}

.category-avatar-chip .list-avatar {
  width: 52px;
  height: 52px;
  font-size: 24px;
}

.form-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.form-header h2 {
  margin: 0;
}

.check-row {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.check-row label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.check-row input {
  width: 20px;
  min-height: 20px;
}

.settings-toggle-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.settings-toggle-grid label {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(8, 42, 102, 0.12);
  border-radius: 8px;
}

.settings-toggle-grid input {
  width: 20px;
  min-height: 20px;
  flex: 0 0 auto;
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.cms-list-panel {
  display: grid;
  gap: 16px;
}

.cms-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 150px 180px auto;
  gap: 12px;
  align-items: end;
}

.bulk-toolbar {
  grid-template-columns: 220px minmax(0, 1fr) minmax(0, 1fr) auto;
  padding: 12px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(8, 42, 102, 0.12);
  border-radius: 8px;
}

.bulk-toolbar label {
  margin: 0;
}

.admin-list {
  display: grid;
  gap: 12px;
  max-height: 760px;
  overflow: auto;
  padding-right: 4px;
}

.admin-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  padding: 14px;
  background: #fff;
  border: 1px solid rgba(8, 42, 102, 0.14);
  border-radius: 8px;
}

.admin-item h3 {
  margin: 0 0 5px;
}

.admin-item-head {
  display: flex;
  align-items: center;
  gap: 10px;
}

.joke-select {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.joke-select input {
  width: 18px;
  min-height: 18px;
}

.admin-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.pill {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 4px 9px;
  color: var(--ink);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  background: #eef6ff;
  border-radius: 8px;
}

.pill-pink {
  color: #fff;
  background: var(--pink);
}

.pill-green {
  color: #fff;
  background: var(--green);
}

.admin-item-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.admin-item-actions form {
  display: grid;
  gap: 6px;
}

.admin-item-actions input:not([type="hidden"]) {
  min-height: 36px;
  padding: 7px 10px;
  border: 1px solid rgba(8, 42, 102, 0.18);
  border-radius: 8px;
  background: #fff;
}

.admin-item-actions button,
.admin-item-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 92px;
  min-height: 36px;
  padding: 7px 10px;
  border: 0;
  border-radius: 8px;
  color: var(--ink);
  font-weight: 900;
  background: #eef6ff;
  text-decoration: none;
}

.admin-item-actions .danger-button {
  color: #fff;
  background: #d62958;
}

.tag-variants {
  margin-top: 8px;
  color: var(--muted);
  font-size: 13px;
}

.seo-score-inline {
  margin: 10px 0 0;
}

.media-list .admin-item {
  align-items: center;
}

.media-item-content {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.media-thumb {
  width: 128px;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid rgba(8, 42, 102, 0.2);
}

.media-path {
  width: min(440px, 100%);
  margin-top: 8px;
  font-size: 13px;
}

.empty-state {
  padding: 24px;
  color: var(--muted);
  text-align: center;
  background: rgba(255, 255, 255, 0.82);
  border: 1px dashed rgba(8, 42, 102, 0.2);
  border-radius: 8px;
}

.toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 30;
  max-width: min(420px, calc(100% - 36px));
  padding: 14px 18px;
  color: #fff;
  font-weight: 900;
  background: rgba(6, 29, 73, 0.94);
  border-radius: 8px;
  box-shadow: var(--shadow);
  transform: translateY(18px);
  opacity: 0;
  pointer-events: none;
  transition: 180ms ease;
}

.toast.is-visible {
  transform: translateY(0);
  opacity: 1;
}

.site-footer {
  width: min(1120px, calc(100% - 32px));
  margin-top: 34px;
  margin-inline: auto;
  padding: 28px;
  color: #fff;
  background:
    linear-gradient(180deg, rgba(6, 32, 82, 0.94), rgba(4, 21, 58, 0.96)),
    url("/assets/mountain-scene.svg") center bottom / cover no-repeat;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px 8px 0 0;
  box-shadow: var(--shadow);
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(230px, 1.3fr) repeat(3, minmax(150px, 1fr));
  gap: 24px;
}

.footer-brand p {
  max-width: 360px;
  margin: 12px 0 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 16px;
  line-height: 1.55;
}

.footer-logo {
  display: inline-flex;
  color: #fff;
  font-size: 28px;
  font-weight: 1000;
  text-decoration: none;
  text-shadow: 0 3px 0 rgba(0, 0, 0, 0.25);
}

.footer-links {
  display: grid;
  align-content: start;
  gap: 9px;
}

.footer-links h2 {
  margin: 0 0 4px;
  color: #ffe45a;
  font-size: 16px;
  text-transform: uppercase;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.9);
  font-weight: 800;
  text-decoration: none;
}

.footer-links a:hover {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  padding-top: 18px;
  margin-top: 24px;
  color: rgba(255, 255, 255, 0.78);
  font-weight: 800;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.legal-page {
  width: min(860px, calc(100% - 32px));
  margin: 38px auto;
  padding: 28px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(8, 42, 102, 0.14);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.legal-page h1 {
  margin: 20px 0 16px;
  font-size: clamp(30px, 5vw, 46px);
}

.legal-page p {
  color: #172033;
  font-size: 18px;
  line-height: 1.65;
}

.legal-page a:not(.small-button) {
  color: var(--blue-dark);
  font-weight: 900;
}

.maintenance-shell {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 28px;
}

.maintenance-card {
  width: min(720px, 100%);
  padding: clamp(26px, 5vw, 46px);
  color: var(--ink);
  text-align: center;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(8, 42, 102, 0.16);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.maintenance-badge {
  display: inline-flex;
  padding: 8px 12px;
  color: #fff;
  font-weight: 900;
  text-transform: uppercase;
  background: linear-gradient(180deg, #ff6aaa, #e52a78);
  border-radius: 999px;
}

.maintenance-card h1 {
  margin: 18px 0 12px;
  font-size: clamp(34px, 6vw, 56px);
}

.maintenance-card p {
  margin: 0 auto;
  max-width: 560px;
  color: #172033;
  font-size: 20px;
  font-weight: 800;
  line-height: 1.5;
}

.notice {
  padding: 14px 18px;
  margin: 0 0 18px;
  color: #fff;
  font-weight: 900;
  background: rgba(6, 29, 73, 0.92);
  border-radius: 8px;
  box-shadow: var(--soft-shadow);
}

.notice-error {
  background: #c51f4b;
}

.admin-mini-nav {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 0;
  color: #fff;
  font-weight: 900;
}

.admin-mini-nav a {
  padding: 10px 14px;
  background: rgba(6, 29, 73, 0.54);
  border-radius: 8px;
  text-decoration: none;
}

.login-shell {
  min-height: calc(100vh - 120px);
  display: grid;
  place-items: center;
}

.login-panel {
  width: min(460px, 100%);
  display: grid;
  gap: 14px;
}

.login-panel h1 {
  margin: 0;
}

.login-hint {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.file-button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.file-button input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

@media (max-width: 1040px) {
  .page-shell {
    width: min(100% - 20px, 980px);
  }

  .public-layout,
  .admin-layout,
  .admin-grid,
  .visitor-lists-grid,
  .maintenance-admin-grid,
  .maintenance-list-columns,
  .avatar-admin-grid {
    grid-template-columns: 1fr;
  }

  .admin-sidebar {
    position: static;
  }

  .admin-side-nav {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .sidebar {
    position: static;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .admin-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .brand-lockup {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-mascot {
    width: 190px;
  }
}

@media (max-width: 820px) {
  .hero {
    min-height: 330px;
  }

  .hero-mascot {
    width: 142px;
    opacity: 0.92;
  }

  .brand-lockup {
    width: min(520px, 84vw);
    padding-top: 58px;
  }

  .main-nav {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-top: -24px;
    border-radius: 16px;
  }

  .nav-item {
    border-right: 0;
    border-bottom: 1px solid rgba(8, 42, 102, 0.12);
  }

  .daily-body-grid,
  .form-grid,
  .form-grid-three,
  .visitor-stats-grid,
  .maintenance-list-columns,
  .admin-stats,
  .admin-side-nav,
  .footer-grid,
  .cms-toolbar,
  .sidebar {
    grid-template-columns: 1fr;
  }

  .daily-art {
    min-height: auto;
  }

  .daily-card {
    padding-top: 118px;
  }

  .big-avatar {
    width: 150px;
    height: 150px;
    font-size: 64px;
  }

  .joke-row {
    grid-template-columns: 92px minmax(0, 1fr);
    padding-right: 14px;
  }

  .list-avatar {
    width: 84px;
    height: 84px;
    font-size: 40px;
  }

  .row-like {
    position: static;
    justify-self: start;
    margin-top: 10px;
  }

  .admin-hero {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 560px) {
  .page-shell {
    width: 100%;
    margin-bottom: 0;
  }

  .hero {
    min-height: 295px;
    border-radius: 0;
  }

  .hero-topbar {
    top: 14px;
    right: 14px;
  }

  .round-icon {
    width: 48px;
    height: 48px;
  }

  .round-icon span {
    font-size: 32px;
  }

  .hero-mascot {
    display: none;
  }

  .brand-line-secondary {
    gap: 8px;
  }

  .brand-domain {
    height: 50px;
    padding: 0 10px;
    margin-bottom: 9px;
  }

  .main-nav {
    position: static;
    width: calc(100% - 16px);
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-inline: auto;
  }

  .nav-item {
    min-height: 54px;
    font-size: 13px;
  }

  #main,
  .search-panel {
    padding-inline: 8px;
  }

  .daily-card {
    padding-inline: 16px;
  }

  .daily-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

  .daily-card {
    padding-top: 138px;
  }

  .like-badge {
    min-width: 90px;
    padding: 8px 12px;
    font-size: 22px;
  }

  .joke-row {
    grid-template-columns: 1fr;
  }

  .list-avatar {
    width: 92px;
    height: 92px;
  }

  .admin-item {
    grid-template-columns: 1fr;
  }

  .avatar-item {
    grid-template-columns: 64px minmax(0, 1fr);
  }

  .admin-item-actions {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .site-footer {
    padding: 24px 18px;
    border-radius: 0;
  }

  .footer-bottom {
    flex-direction: column;
  }
}

/* Public design refresh */
:root {
  --ink: #10233f;
  --ink-deep: #07152b;
  --muted: #5d6f89;
  --line: rgba(16, 35, 63, 0.12);
  --paper: #f7fbff;
  --panel: rgba(255, 255, 255, 0.94);
  --blue: #1d74f5;
  --blue-dark: #0d4fb4;
  --yellow: #ffd94a;
  --orange: #f97316;
  --green: #12a866;
  --pink: #e83e7d;
  --purple: #7856d9;
  --shadow: 0 18px 44px rgba(18, 40, 72, 0.16);
  --soft-shadow: 0 10px 26px rgba(18, 40, 72, 0.1);
}

body {
  background:
    linear-gradient(180deg, rgba(246, 251, 255, 0.88), rgba(234, 247, 252, 0.74) 42%, rgba(255, 248, 227, 0.54)),
    url("/assets/mountain-scene.svg") center top / 1500px auto repeat-y,
    #eef9ff;
}

.page-shell {
  width: min(1200px, calc(100% - 40px));
  margin-top: 18px;
}

.hero {
  min-height: 360px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 8px;
  background:
    linear-gradient(120deg, rgba(8, 84, 178, 0.72), rgba(21, 180, 218, 0.44) 46%, rgba(255, 211, 74, 0.18)),
    url("/assets/mountain-scene.svg") center bottom / cover no-repeat;
  box-shadow: var(--shadow);
}

.hero::after {
  height: 120px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0), rgba(247, 251, 255, 0.76));
}

.brand-lockup {
  width: min(600px, 76vw);
  padding-top: 46px;
  margin-left: 128px;
  text-shadow: 0 4px 0 rgba(7, 21, 43, 0.36), 0 16px 34px rgba(7, 21, 43, 0.26);
}

.brand-line-main {
  font-size: clamp(56px, 8.4vw, 104px);
}

.brand-line-secondary {
  color: #ffe373;
  -webkit-text-stroke: 1px rgba(7, 21, 43, 0.82);
}

.brand-domain {
  height: 66px;
  background: linear-gradient(180deg, #ffffff, #dcecff);
  border: 1px solid rgba(7, 21, 43, 0.18);
  color: var(--blue-dark);
  box-shadow: 0 10px 26px rgba(7, 21, 43, 0.16);
}

.brand-tagline {
  color: var(--ink-deep);
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.72);
  box-shadow: 0 12px 24px rgba(7, 21, 43, 0.12);
}

.hero-mascot {
  bottom: 0;
  width: min(224px, 23vw);
  filter: drop-shadow(0 18px 18px rgba(7, 21, 43, 0.2));
}

.round-icon {
  width: 54px;
  height: 54px;
  color: var(--blue-dark);
  box-shadow: var(--soft-shadow);
}

.round-icon span {
  font-size: 34px;
}

.main-nav {
  gap: 6px;
  margin: -28px auto 22px;
  padding: 8px;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.nav-item {
  min-height: 48px;
  border-right: 0;
  border-radius: 6px;
  color: #273a56;
  font-size: 14px;
  letter-spacing: 0;
  transition: background 160ms ease, color 160ms ease, transform 160ms ease;
}

.nav-item:hover {
  color: var(--blue-dark);
  background: #edf6ff;
}

.nav-item.is-active {
  background: linear-gradient(180deg, #227df5, #135bc9);
  border-radius: 6px;
  box-shadow: 0 8px 18px rgba(19, 91, 201, 0.22);
}

.nav-icon {
  width: 28px;
  height: 28px;
  flex-basis: 28px;
  font-size: 17px;
  box-shadow: none;
}

.search-panel,
.daily-card,
.panel,
.recent-card,
.side-card,
.ad-slot,
.category-tile {
  border-color: var(--line);
  box-shadow: var(--soft-shadow);
}

.search-panel {
  padding: 18px;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(12px);
}

input,
textarea,
select {
  border-color: rgba(16, 35, 63, 0.16);
  background: rgba(255, 255, 255, 0.96);
}

.public-layout {
  gap: 24px;
}

.daily-card {
  padding: 86px 28px 28px;
  overflow: hidden;
}

.daily-head {
  min-height: 68px;
  background: linear-gradient(90deg, #124fb3, #1b7df2 58%, #12a9d8);
  border-bottom: 0;
}

.daily-title-label {
  font-size: clamp(20px, 2.4vw, 28px);
  letter-spacing: 0;
  text-shadow: none;
}

.daily-title-label span {
  color: var(--ink-deep);
  background: #ffdf58;
  box-shadow: 0 8px 16px rgba(7, 21, 43, 0.14);
}

.like-badge,
.row-like {
  background: linear-gradient(180deg, #ff6f9e, #d92f70);
  box-shadow: 0 8px 18px rgba(217, 47, 112, 0.22);
}

.daily-body-grid {
  grid-template-columns: minmax(0, 1fr) 210px;
  align-items: center;
}

.joke-title {
  max-width: 720px;
  font-size: clamp(30px, 4vw, 44px);
  letter-spacing: 0;
}

.joke-lines {
  max-width: 780px;
  color: #202b3a;
  font-size: clamp(17px, 1.8vw, 21px);
  font-weight: 650;
}

.big-avatar {
  width: 196px;
  height: 196px;
  font-size: 78px;
  box-shadow: inset 0 -10px 0 rgba(7, 21, 43, 0.1), 0 18px 32px rgba(18, 40, 72, 0.16);
}

.list-avatar {
  width: 92px;
  height: 92px;
  font-size: 42px;
}

.action-button,
.primary-button,
.secondary-button,
.small-button,
.random-button,
.light-button,
.ghost-button {
  border-radius: 7px;
  box-shadow: 0 8px 16px rgba(18, 40, 72, 0.12);
  letter-spacing: 0;
}

.action-button:hover,
.primary-button:hover,
.secondary-button:hover,
.small-button:hover,
.random-button:hover,
.light-button:hover {
  transform: translateY(-1px);
}

.section-ribbon {
  top: -16px;
  left: 20px;
  min-height: 40px;
  border: 0;
  box-shadow: var(--soft-shadow);
}

.section-ribbon h2 {
  font-size: clamp(18px, 1.8vw, 23px);
  letter-spacing: 0;
  text-shadow: none;
}

.recent-card,
.panel {
  padding: 44px 18px 18px;
}

.joke-list {
  gap: 14px;
}

.joke-row {
  grid-template-columns: 104px minmax(0, 1fr);
  min-height: 126px;
  padding: 16px 80px 16px 16px;
  background: rgba(255, 255, 255, 0.86);
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.joke-row:hover {
  transform: translateY(-2px);
  border-color: rgba(29, 116, 245, 0.24);
  box-shadow: 0 14px 30px rgba(18, 40, 72, 0.12);
}

.joke-row h3 {
  font-size: clamp(21px, 2.2vw, 27px);
}

.joke-row .joke-lines {
  font-size: 16px;
  font-weight: 600;
}

.sidebar {
  top: 92px;
}

.side-card {
  padding: 20px;
}

.side-card-purple {
  background: linear-gradient(180deg, #8060dc, #5432aa);
}

.side-card-week {
  background:
    linear-gradient(160deg, rgba(255, 192, 64, 0.95), rgba(219, 55, 112, 0.95)),
    url("/assets/mountain-scene.svg") center / cover no-repeat;
}

.side-card-green {
  background: linear-gradient(180deg, #18b979, #087f53);
}

.side-card-blue {
  background:
    linear-gradient(180deg, rgba(35, 126, 245, 0.94), rgba(18, 75, 170, 0.96)),
    url("/assets/mountain-scene.svg") center bottom / cover no-repeat;
}

.side-title h2 {
  font-size: 22px;
  letter-spacing: 0;
  text-shadow: none;
}

.top-list {
  box-shadow: inset 0 0 0 1px rgba(16, 35, 63, 0.08);
}

.site-footer {
  border-radius: 8px 8px 0 0;
  box-shadow: var(--shadow);
}

@media (max-width: 1040px) {
  .brand-lockup {
    margin-left: auto;
    margin-right: auto;
  }

  .sidebar {
    gap: 16px;
  }
}

@media (max-width: 820px) {
  .page-shell {
    width: min(100% - 20px, 980px);
  }

  .hero {
    min-height: 320px;
  }

  .brand-lockup {
    padding-top: 60px;
  }

  .main-nav {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-top: -22px;
  }

  .daily-body-grid {
    grid-template-columns: 1fr;
  }

  .daily-art {
    order: -1;
  }

  .daily-card {
    padding-top: 126px;
  }

  .joke-row {
    padding-right: 16px;
  }
}

@media (max-width: 700px) {
  .joke-actions,
  .row-actions,
  .actions-group {
    align-items: stretch;
    flex-direction: column;
  }

  .reaction-buttons {
    width: 100%;
  }

  .reaction-buttons .inline-form {
    flex: 1 1 0;
  }

  .action-react {
    width: 100%;
  }
}

@media (max-width: 560px) {
  .page-shell {
    width: 100%;
    margin-top: 0;
  }

  .hero {
    min-height: 286px;
    border-radius: 0;
    border-inline: 0;
  }

  .brand-lockup {
    width: min(440px, 92vw);
  }

  .brand-tagline {
    padding-inline: 18px;
    font-size: 14px;
  }

  .main-nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: calc(100% - 16px);
  }

  .search-row {
    align-items: stretch;
    flex-direction: column;
  }

  .inline-form,
  .action-button,
  .small-button,
  .primary-button,
  .secondary-button,
  .random-button,
  .light-button {
    width: 100%;
  }

  .daily-head {
    min-height: 112px;
  }

  .daily-card {
    padding-top: 136px;
  }

  .joke-row {
    grid-template-columns: 1fr;
  }

  .list-avatar {
    width: 78px;
    height: 78px;
    font-size: 36px;
  }
}

/* Homepage rearrange + new background */
body {
  background:
    linear-gradient(180deg, rgba(238, 248, 255, 0.55) 0, rgba(255, 255, 255, 0.82) 470px, rgba(255, 248, 229, 0.88) 100%),
    url("/assets/home-bg-v2.png") center -70px / 1800px auto no-repeat,
    #f5fbff;
}

.page-shell {
  width: min(1240px, calc(100% - 44px));
}

.hero {
  min-height: 330px;
  border: 1px solid rgba(255, 255, 255, 0.86);
  background:
    linear-gradient(110deg, rgba(12, 70, 151, 0.72), rgba(19, 159, 198, 0.38) 54%, rgba(255, 212, 89, 0.18)),
    url("/assets/home-bg-v2.png") center 34% / 1480px auto no-repeat;
}

.main-nav {
  margin-bottom: 30px;
}

#main {
  display: grid;
  gap: 24px;
}

.public-layout {
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 22px;
}

.content-stack {
  display: contents;
}

.daily-card {
  grid-column: 1;
  min-height: 330px;
  padding: 88px 34px 34px;
}

.daily-body-grid {
  grid-template-columns: minmax(0, 1fr) 210px;
  align-items: stretch;
}

.joke-copy {
  position: relative;
  display: grid;
  align-content: start;
  gap: 14px;
  padding: 24px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(248, 252, 255, 0.9)),
    #fff;
  border: 1px solid rgba(8, 42, 102, 0.12);
  border-radius: 8px;
  box-shadow: inset 6px 0 0 rgba(255, 213, 31, 0.9), 0 12px 28px rgba(18, 40, 72, 0.08);
}

.daily-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.daily-meta a,
.daily-meta span,
.daily-meta time {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  padding: 5px 10px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
  background: rgba(232, 242, 255, 0.9);
  border: 1px solid rgba(29, 116, 245, 0.14);
  border-radius: 999px;
  text-decoration: none;
}

.daily-meta a {
  color: #fff;
  background: linear-gradient(180deg, #227df5, #135bc9);
  border-color: transparent;
}

.joke-fun-badge {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  padding: 8px 12px;
  color: #7a3000;
  font-size: 13px;
  font-weight: 950;
  background: linear-gradient(180deg, #ffe98d, #ffc44e);
  border: 1px solid rgba(122, 48, 0, 0.12);
  border-radius: 999px;
  box-shadow: 0 8px 18px rgba(255, 196, 78, 0.25);
}

.joke-fun-badge span {
  display: grid;
  width: 22px;
  height: 22px;
  place-items: center;
  color: #fff;
  background: #10aa52;
  border-radius: 50%;
}

.daily-card .joke-title {
  max-width: 860px;
  margin-bottom: 0;
}

.joke-title a,
.joke-row h3 a,
.top-list a {
  color: inherit;
  text-decoration: none;
}

.joke-title a:hover,
.joke-row h3 a:hover,
.top-list a:hover {
  color: var(--blue-dark);
  text-decoration: underline;
  text-underline-offset: 5px;
}

.joke-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.joke-tag {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 10px;
  color: var(--blue-dark);
  font-size: 13px;
  font-weight: 900;
  background: rgba(232, 242, 255, 0.92);
  border: 1px solid rgba(29, 116, 245, 0.18);
  border-radius: 999px;
  text-decoration: none;
}

.joke-tag:hover {
  color: #fff;
  background: var(--blue);
}

.daily-card .joke-lines {
  max-width: 860px;
  padding: 18px 0 0;
  border-top: 1px solid rgba(8, 42, 102, 0.1);
}

.daily-art-card {
  display: grid;
  min-height: 100%;
  place-items: center;
  align-content: center;
  gap: 14px;
  padding: 18px;
  background:
    radial-gradient(circle at 50% 18%, rgba(255, 213, 31, 0.42), rgba(255, 255, 255, 0) 56%),
    rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(8, 42, 102, 0.1);
  border-radius: 8px;
}

.daily-art-card > span {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  padding: 6px 12px;
  color: var(--ink-deep);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
  background: #ffdf58;
  border-radius: 999px;
}

.joke-detail-card {
  padding: 0;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(247, 252, 255, 0.94)),
    var(--panel);
}

.joke-detail-card .daily-head {
  position: relative;
  min-height: 76px;
  border-bottom: 0;
}

.joke-detail-card .breadcrumbs {
  margin: 0;
  padding: 14px 24px;
  background: rgba(232, 242, 255, 0.86);
  border-bottom: 1px solid rgba(8, 42, 102, 0.1);
}

.joke-detail-card .daily-body-grid {
  padding: 26px;
  grid-template-columns: minmax(0, 1fr) 230px;
  gap: 24px;
  align-items: stretch;
}

.joke-detail-card .joke-copy {
  padding: 28px 28px 26px;
  overflow: hidden;
  background:
    linear-gradient(180deg, #fff, #fff8e8),
    #fff;
  border-color: rgba(255, 181, 22, 0.28);
  box-shadow: 0 16px 34px rgba(18, 40, 72, 0.1);
}

.joke-detail-card .joke-copy::before {
  content: "“";
  position: absolute;
  top: -34px;
  right: 18px;
  color: rgba(255, 181, 22, 0.18);
  font-family: Georgia, serif;
  font-size: 150px;
  line-height: 1;
  pointer-events: none;
}

.joke-detail-card .joke-title {
  position: relative;
  z-index: 1;
  font-size: clamp(34px, 4.2vw, 54px);
}

.joke-detail-card .joke-lines {
  position: relative;
  z-index: 1;
  padding: 20px 0 0;
  color: #1a2738;
  font-size: clamp(19px, 2vw, 24px);
  line-height: 1.58;
}

.joke-detail-card .daily-art-card {
  background:
    linear-gradient(180deg, rgba(255, 223, 88, 0.5), rgba(255, 255, 255, 0.78)),
    rgba(255, 255, 255, 0.88);
  box-shadow: inset 0 -8px 0 rgba(8, 42, 102, 0.06);
}

.joke-detail-card .big-avatar {
  width: 184px;
  height: 184px;
}

.joke-detail-card .joke-actions {
  margin-top: 6px;
  padding-top: 18px;
  border-top: 1px solid rgba(8, 42, 102, 0.1);
}

.recent-card {
  grid-column: 1;
}

.sidebar {
  grid-column: 2;
  grid-row: 1 / span 4;
}

.ad-slot {
  grid-column: 1;
}

.public-layout > .ad-slot:first-of-type {
  grid-column: 1 / -1;
}

.side-card,
.recent-card,
.daily-card,
.search-panel {
  background-color: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(14px);
}

.joke-row {
  grid-template-columns: 94px minmax(0, 1fr);
}

.side-card-purple {
  background:
    linear-gradient(180deg, rgba(76, 61, 174, 0.94), rgba(41, 64, 144, 0.96)),
    url("/assets/home-bg-v2.png") 58% 18% / 1120px auto no-repeat;
}

.side-card-green {
  background:
    linear-gradient(180deg, rgba(16, 166, 105, 0.94), rgba(5, 115, 93, 0.96)),
    url("/assets/home-bg-v2.png") 44% 52% / 1060px auto no-repeat;
}

.side-card-blue {
  background:
    linear-gradient(180deg, rgba(24, 121, 232, 0.94), rgba(25, 68, 151, 0.96)),
    url("/assets/home-bg-v2.png") 50% 72% / 1100px auto no-repeat;
}

@media (max-width: 1040px) {
  body {
    background:
      linear-gradient(180deg, rgba(238, 248, 255, 0.5) 0, rgba(255, 255, 255, 0.86) 390px, rgba(255, 248, 229, 0.92) 100%),
      url("/assets/home-bg-v2.png") center -40px / 1380px auto no-repeat,
      #f5fbff;
  }

  .public-layout {
    grid-template-columns: 1fr;
  }

  .content-stack {
    display: grid;
  }

  .daily-card,
  .recent-card,
  .ad-slot,
  .sidebar {
    grid-column: auto;
    grid-row: auto;
  }

  .sidebar {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  .page-shell {
    width: min(100% - 20px, 980px);
  }

  .hero {
    min-height: 300px;
    background:
      linear-gradient(110deg, rgba(12, 70, 151, 0.72), rgba(19, 159, 198, 0.38) 54%, rgba(255, 212, 89, 0.18)),
      url("/assets/home-bg-v2.png") center 30% / 1180px auto no-repeat;
  }

  .daily-card {
    min-height: 0;
    padding-inline: 22px;
  }

  .daily-body-grid,
  .sidebar {
    grid-template-columns: 1fr;
  }

  .joke-detail-card .daily-body-grid {
    grid-template-columns: 1fr;
  }

  .joke-widget-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-areas:
      "vote share"
      "author category"
      "top top"
      "cta cta";
  }

  .joke-more-layout,
  .faq-grid {
    grid-template-columns: 1fr;
  }

  .joke-tool-buttons {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .daily-art-card {
    min-height: 180px;
  }
}

@media (max-width: 560px) {
  .page-shell {
    width: 100%;
  }

  .hero {
    min-height: 270px;
    background:
      linear-gradient(110deg, rgba(12, 70, 151, 0.76), rgba(19, 159, 198, 0.42) 54%, rgba(255, 212, 89, 0.2)),
      url("/assets/home-bg-v2.png") center top / 920px auto no-repeat;
  }

  .main-nav {
    margin-bottom: 18px;
  }

  .daily-card,
  .recent-card,
  .panel {
    border-radius: 0;
  }

  .daily-card {
    padding-inline: 14px;
  }

  .joke-copy {
    padding: 18px;
  }

  .daily-meta a,
  .daily-meta span,
  .daily-meta time {
    font-size: 12px;
  }

  .joke-detail-card .breadcrumbs {
    padding: 12px 14px;
  }

  .joke-detail-card .daily-body-grid {
    padding: 14px;
  }

  .joke-detail-card .joke-copy {
    padding: 20px;
  }

  .joke-detail-card .daily-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

  .joke-widget-grid {
    grid-template-columns: 1fr;
    grid-template-areas:
      "vote"
      "share"
      "author"
      "category"
      "top"
      "cta";
  }

  .joke-tool-buttons {
    grid-template-columns: 1fr;
  }

  .joke-tools-intro {
    grid-template-columns: 1fr;
  }

  .joke-widget {
    min-height: 0;
  }

  .cta-widget {
    grid-template-columns: 1fr;
  }

  .cta-widget .widget-icon {
    grid-row: auto;
  }
}

.comments-card {
  grid-column: 1;
  padding: 34px 24px 24px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(240, 248, 255, 0.94)),
    var(--panel);
}

.comment-list {
  display: grid;
  gap: 12px;
  margin: 0 0 24px;
}

.comment-item {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 12px;
  padding: 14px;
  background:
    linear-gradient(90deg, rgba(255, 223, 88, 0.2), rgba(255, 255, 255, 0.92) 28%),
    rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(8, 42, 102, 0.12);
  border-radius: 8px;
  box-shadow: 0 10px 24px rgba(18, 40, 72, 0.08);
}

.comment-avatar {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  color: #fff;
  font-size: 18px;
  font-weight: 900;
  background: linear-gradient(180deg, #227df5, #135bc9);
  border: 3px solid rgba(255, 255, 255, 0.88);
  border-radius: 50%;
  box-shadow: 0 8px 18px rgba(19, 91, 201, 0.18);
}

.comment-body {
  min-width: 0;
}

.comment-meta {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.comment-meta strong {
  color: var(--ink-deep);
  font-size: 16px;
}

.comment-meta time {
  color: var(--muted);
  font-size: 12px;
  white-space: nowrap;
}

.comment-item p {
  margin: 0;
  color: var(--ink);
  font-weight: 650;
  line-height: 1.55;
}

.comment-form {
  display: grid;
  gap: 14px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(8, 42, 102, 0.12);
  border-radius: 8px;
  box-shadow: inset 0 5px 0 rgba(255, 213, 31, 0.74);
}

.comment-form-head {
  display: grid;
  gap: 4px;
}

.comment-form-head strong {
  color: var(--ink-deep);
  font-size: 20px;
}

.comment-form-head span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.comment-fields {
  display: grid;
  gap: 14px;
}

.comment-form label {
  display: grid;
  gap: 7px;
  color: var(--ink);
  font-weight: 800;
}

.comment-form input,
.comment-form textarea {
  width: 100%;
  border: 1px solid rgba(16, 24, 40, 0.16);
  border-radius: 8px;
  padding: 12px 13px;
  font: inherit;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.98);
  box-shadow: inset 0 2px 0 rgba(8, 42, 102, 0.03);
}

.comment-form textarea {
  resize: vertical;
  min-height: 118px;
}

.pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 24px;
  padding-top: 22px;
  border-top: 1px solid rgba(16, 24, 40, 0.08);
}

.page-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  min-height: 40px;
  padding: 8px 12px;
  color: var(--blue-dark);
  font-size: 14px;
  font-weight: 900;
  text-decoration: none;
  background: rgba(232, 242, 255, 0.94);
  border: 1px solid rgba(29, 116, 245, 0.18);
  border-radius: 8px;
}

.page-link:hover {
  color: #fff;
  background: var(--blue);
}

.page-link.is-current {
  color: #fff;
  background: var(--pink);
  border-color: rgba(216, 39, 117, 0.35);
}

.page-prev,
.page-next {
  min-width: 88px;
}

.settings-subsection,
.install-steps {
  display: grid;
  gap: 16px;
  padding: 18px;
  margin-bottom: 18px;
  background: rgba(255, 255, 255, 0.64);
  border: 1px solid rgba(16, 24, 40, 0.08);
  border-radius: 8px;
}

.compact-list {
  margin-top: 18px;
}

.install-shell {
  width: min(980px, calc(100% - 32px));
  margin: 36px auto;
}

.install-panel {
  display: grid;
  gap: 18px;
}

.install-panel ol {
  margin: 0;
  padding-left: 20px;
  color: var(--ink);
  line-height: 1.7;
}

@media (max-width: 560px) {
  .comments-card {
    padding: 22px;
  }

  .comment-meta {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }

  .comment-item {
    grid-template-columns: 38px minmax(0, 1fr);
    padding: 12px;
  }

  .comment-avatar {
    width: 38px;
    height: 38px;
    font-size: 15px;
  }

  .breadcrumbs {
    margin: 0 0 18px;
    font-size: 13px;
  }

  .related-grid {
    grid-template-columns: 1fr;
  }
}

/* Alternate homepage layout */
.home-layout {
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 18px;
}

.home-layout .daily-card {
  min-height: 0;
  padding: 0;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(255, 250, 228, 0.94)),
    #fff;
}

.home-layout .daily-head {
  position: relative;
  min-height: 74px;
  background: linear-gradient(90deg, #083d95, #148dda 58%, #13b9f2);
}

.home-layout .daily-body-grid {
  grid-template-columns: minmax(0, 1fr) 250px;
  gap: 0;
  padding: 22px;
  align-items: stretch;
}

.home-layout .joke-copy {
  padding: 28px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(246, 251, 255, 0.9)),
    #fff;
  border-radius: 8px 0 0 8px;
  box-shadow: inset 7px 0 0 rgba(255, 213, 31, 0.95);
}

.home-layout .joke-title {
  font-size: clamp(34px, 4.8vw, 58px);
  line-height: 1;
}

.home-layout .joke-lines {
  font-size: clamp(18px, 2vw, 23px);
  line-height: 1.55;
}

.home-layout .daily-art {
  min-height: 100%;
  background:
    radial-gradient(circle at 50% 20%, rgba(255, 213, 31, 0.52), rgba(255, 255, 255, 0) 58%),
    linear-gradient(180deg, rgba(232, 242, 255, 0.88), rgba(255, 255, 255, 0.9));
  border: 1px solid rgba(8, 42, 102, 0.1);
  border-left: 0;
  border-radius: 0 8px 8px 0;
}

.home-layout .daily-art-card {
  min-height: 100%;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.home-layout .recent-card {
  padding: 44px 16px 16px;
}

.home-layout .joke-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.home-layout .joke-row {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  align-items: start;
  min-height: 0;
  padding: 14px;
}

.home-layout .joke-row .list-avatar {
  width: 70px;
  height: 70px;
  font-size: 30px;
}

.home-layout .joke-row h3 {
  padding-right: 62px;
  font-size: 21px;
}

.home-layout .joke-row .joke-lines {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  font-size: 15px;
}

.home-layout .row-like {
  top: 12px;
  right: 12px;
  min-width: 54px;
  padding: 6px 8px;
  font-size: 13px;
}

.home-layout .row-actions {
  gap: 8px;
}

.home-layout .row-actions .action-button {
  min-height: 34px;
  padding: 7px 10px;
}

.home-layout .sidebar {
  top: 86px;
  gap: 14px;
}

.home-layout .side-card {
  padding: 16px;
}

.home-layout .side-title h2 {
  font-size: 20px;
}

.home-layout .top-list li {
  min-height: 48px;
  padding: 8px 10px;
}

@media (max-width: 1040px) {
  .home-layout {
    grid-template-columns: 1fr;
  }

  .home-layout .joke-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  .home-layout .daily-body-grid {
    grid-template-columns: 1fr;
  }

  .home-layout .joke-copy,
  .home-layout .daily-art {
    border-radius: 8px;
  }

  .home-layout .daily-art {
    border-left: 1px solid rgba(8, 42, 102, 0.1);
  }

  .home-layout .joke-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .home-layout .daily-body-grid {
    padding: 14px;
  }

  .home-layout .joke-copy {
    padding: 20px;
  }

  .home-layout .joke-row {
    grid-template-columns: 1fr;
  }

  .home-layout .joke-row h3 {
    padding-right: 0;
  }
}


/* Emoji Reactions */
.reaction-buttons {
  display: flex;
  gap: 8px;
  align-items: center;
}

.action-react {
  min-width: 44px;
  height: 44px;
  padding: 0;
  display: grid;
  place-items: center;
  font-size: 20px;
  background: var(--panel);
  border: 1px solid var(--line);
  box-shadow: var(--soft-shadow);
  transition: all 200ms cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.action-react:hover {
  transform: scale(1.3) translateY(-4px);
  background: #fff;
  border-color: var(--blue);
  z-index: 2;
}

.reactions-voted {
  padding: 8px 16px;
  background: var(--blue);
  color: #fff;
  border-radius: 99px;
  font-weight: 800;
  font-size: 13px;
  text-transform: uppercase;
}

.like-badge, .row-like {
  display: inline-flex;
  gap: 12px;
  padding: 8px 16px;
}

.like-badge span, .row-like span {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 16px;
}

.like-badge small, .row-like small {
  font-size: 13px;
  font-weight: 700;
  opacity: 0.9;
}

/* Modern funny theme */
:root {
  --ink: #10233f;
  --ink-deep: #07162e;
  --muted: #60718f;
  --line: rgba(16, 35, 63, 0.13);
  --paper: #fff8ea;
  --panel: rgba(255, 255, 255, 0.96);
  --blue: #1667ff;
  --blue-dark: #0c43b7;
  --sky: #18bfe8;
  --yellow: #ffd84d;
  --orange: #ff8a3d;
  --green: #13b981;
  --pink: #ff4f91;
  --purple: #7457ff;
  --shadow: 0 18px 42px rgba(13, 32, 70, 0.14);
  --soft-shadow: 0 10px 24px rgba(13, 32, 70, 0.1);
  --radius: 8px;
}

body {
  color: var(--ink);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.48) 0, rgba(255, 255, 255, 0.9) 520px, rgba(255, 248, 232, 0.92) 100%),
    linear-gradient(135deg, rgba(22, 103, 255, 0.18), rgba(24, 191, 232, 0.18) 38%, rgba(255, 216, 77, 0.22) 78%),
    #f7fbff;
}

.page-shell {
  width: min(1220px, calc(100% - 36px));
}

.hero {
  min-height: 340px;
  margin-top: 18px;
  overflow: hidden;
  background:
    linear-gradient(115deg, rgba(7, 22, 46, 0.68), rgba(22, 103, 255, 0.35) 48%, rgba(255, 138, 61, 0.2)),
    url("/assets/home-bg-v2.png") center 38% / 1420px auto no-repeat;
  border: 1px solid rgba(255, 255, 255, 0.82);
  border-radius: 8px;
  box-shadow: 0 22px 54px rgba(12, 39, 91, 0.18);
}

.hero::after {
  height: 110px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0), rgba(255, 248, 232, 0.76)),
    linear-gradient(90deg, rgba(255, 216, 77, 0.28), rgba(255, 79, 145, 0.18), rgba(24, 191, 232, 0.2));
}

.brand-lockup {
  width: min(560px, 74vw);
  padding-top: 42px;
  margin-left: clamp(110px, 13vw, 170px);
  text-shadow: 0 5px 0 rgba(7, 22, 46, 0.52), 0 18px 28px rgba(7, 22, 46, 0.28);
}

.brand-line-main {
  font-size: clamp(56px, 8vw, 100px);
}

.brand-line-secondary {
  color: var(--yellow);
  -webkit-text-stroke: 2px rgba(7, 22, 46, 0.72);
}

.brand-domain,
.brand-tagline,
.daily-title-label span,
.nav-icon,
.round-icon {
  border-radius: 8px;
}

.brand-domain {
  background: linear-gradient(180deg, #18bfe8, #1667ff);
  box-shadow: inset 0 -8px 0 rgba(7, 22, 46, 0.18), 0 12px 22px rgba(7, 22, 46, 0.18);
}

.brand-tagline {
  color: #321b00;
  background: linear-gradient(180deg, #fff176, #ffb13d);
  box-shadow: 0 8px 0 rgba(104, 62, 0, 0.18), 0 14px 24px rgba(7, 22, 46, 0.16);
}

.hero-mascot {
  bottom: -4px;
  width: min(218px, 23vw);
  filter: drop-shadow(0 18px 22px rgba(7, 22, 46, 0.28));
}

.main-nav {
  gap: 7px;
  margin: -28px auto 28px;
  padding: 9px;
  overflow: visible;
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(255, 255, 255, 0.8);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.nav-item {
  min-height: 50px;
  color: var(--ink-deep);
  border-right: 0;
  border-radius: 8px;
  transition: transform 0.18s ease, background 0.18s ease, color 0.18s ease;
}

.nav-item:hover {
  color: var(--blue-dark);
  background: rgba(22, 103, 255, 0.08);
  transform: translateY(-1px);
}

.nav-item.is-active {
  background: linear-gradient(135deg, var(--blue), var(--sky));
  border-radius: 8px;
  box-shadow: 0 9px 18px rgba(22, 103, 255, 0.24);
}

.nav-icon {
  color: var(--blue-dark);
  background: linear-gradient(180deg, #fff, #eef6ff);
}

.search-panel,
.daily-card,
.panel,
.recent-card,
.side-card {
  border-color: rgba(16, 35, 63, 0.1);
  box-shadow: var(--shadow);
}

.search-panel {
  padding: 14px;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(14px);
}

.search-row input,
.comment-form input,
.comment-form textarea,
.admin-form input,
.admin-form textarea,
.admin-form select {
  border-color: rgba(16, 35, 63, 0.14);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: inset 0 2px 0 rgba(16, 35, 63, 0.03);
}

.daily-card {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(255, 250, 238, 0.96)),
    #fff;
}

.daily-head,
.home-layout .daily-head {
  background: linear-gradient(135deg, #112a5b, #1667ff 58%, #18bfe8);
  border-bottom: 0;
}

.daily-title-label {
  text-shadow: none;
}

.like-badge,
.row-like {
  background: linear-gradient(135deg, #ff4f91, #ff8a3d);
  border-color: rgba(255, 255, 255, 0.74);
  box-shadow: 0 10px 20px rgba(255, 79, 145, 0.2);
}

.joke-copy,
.home-layout .joke-copy,
.joke-detail-card .joke-copy {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(247, 251, 255, 0.96)),
    #fff;
  border-color: rgba(16, 35, 63, 0.1);
  box-shadow: inset 7px 0 0 rgba(255, 216, 77, 0.92), 0 16px 32px rgba(13, 32, 70, 0.08);
}

.joke-title,
.joke-row h3,
.side-title h2,
.section-ribbon h2,
.admin-hero h1 {
  color: var(--ink-deep);
  letter-spacing: 0;
}

.joke-lines {
  color: #1c2b40;
}

.daily-art-card {
  background:
    linear-gradient(180deg, rgba(255, 216, 77, 0.35), rgba(255, 255, 255, 0.8)),
    rgba(255, 255, 255, 0.72);
  border-color: rgba(16, 35, 63, 0.1);
}

.section-ribbon {
  left: 18px;
  height: 48px;
  padding-right: 16px;
  border-radius: 8px;
  box-shadow: 0 12px 22px rgba(13, 32, 70, 0.16);
}

.section-ribbon-pink {
  background: linear-gradient(135deg, #ff4f91, #ff8a3d);
}

.section-ribbon-blue {
  background: linear-gradient(135deg, #1667ff, #18bfe8);
}

.primary-button,
.action-button,
.small-button,
.tool-button,
.button-link,
.secondary-button,
.random-button,
.light-button {
  border-radius: 8px;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.primary-button,
.action-button {
  background: linear-gradient(135deg, var(--blue), var(--sky));
  border-color: transparent;
  box-shadow: 0 10px 18px rgba(22, 103, 255, 0.18);
}

.primary-button:hover,
.action-button:hover,
.small-button:hover,
.tool-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 24px rgba(13, 32, 70, 0.16);
}

.joke-list {
  gap: 14px;
}

.joke-row {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 252, 255, 0.96)),
    #fff;
  border-color: rgba(16, 35, 63, 0.1);
  box-shadow: 0 12px 26px rgba(13, 32, 70, 0.08);
}

.joke-row:hover {
  border-color: rgba(22, 103, 255, 0.28);
  transform: translateY(-2px);
  box-shadow: 0 18px 34px rgba(13, 32, 70, 0.12);
}

.list-avatar,
.big-avatar {
  background:
    radial-gradient(circle at 35% 28%, rgba(255, 255, 255, 0.98), rgba(255, 255, 255, 0) 34%),
    linear-gradient(145deg, #ffd84d, #ff8a3d 58%, #ff4f91);
}

.side-card {
  overflow: hidden;
  color: #fff;
}

.side-card-purple {
  background: linear-gradient(150deg, #7457ff, #1667ff 52%, #18bfe8);
}

.side-card-week {
  background:
    linear-gradient(150deg, rgba(255, 79, 145, 0.94), rgba(255, 138, 61, 0.9)),
    url("/assets/home-bg-v2.png") center / cover no-repeat;
}

.side-card-green {
  background: linear-gradient(150deg, #13b981, #18bfe8);
}

.side-card-blue {
  background: linear-gradient(150deg, #112a5b, #1667ff);
}

.top-list li,
.joke-widget,
.next-joke-card,
.same-category-card,
.faq-grid article,
.comment-item,
.comment-form {
  border-color: rgba(16, 35, 63, 0.1);
  border-radius: 8px;
}

.joke-fun-badge {
  color: #3b2400;
  background: linear-gradient(135deg, #fff176, #ffd84d);
}

.next-joke-card {
  background:
    linear-gradient(135deg, rgba(255, 216, 77, 0.32), rgba(255, 255, 255, 0.96) 42%),
    #fff;
}

.comments-card,
.joke-tools,
.joke-more-panel,
.joke-faq {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 252, 255, 0.96)),
    #fff;
}

.admin-view {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(255, 248, 232, 0.94)),
    #f7fbff;
}

.admin-hero,
.admin-sidebar,
.admin-content,
.admin-item,
.admin-help,
.admin-stats article {
  border-color: rgba(16, 35, 63, 0.1);
  border-radius: 8px;
  box-shadow: var(--soft-shadow);
}

.admin-hero {
  background:
    linear-gradient(135deg, rgba(17, 42, 91, 0.95), rgba(22, 103, 255, 0.84), rgba(24, 191, 232, 0.76)),
    url("/assets/home-bg-v2.png") center 42% / 1300px auto no-repeat;
}

.admin-side-nav a.is-active,
.admin-side-nav a:hover,
.admin-mini-nav a.is-active {
  background: linear-gradient(135deg, var(--blue), var(--sky));
  border-color: transparent;
}

@media (max-width: 1040px) {
  .brand-lockup {
    margin-left: clamp(70px, 9vw, 120px);
  }
}

@media (max-width: 820px) {
  .page-shell {
    width: min(100% - 20px, 980px);
  }

  .hero {
    min-height: 305px;
    margin-top: 10px;
    background:
      linear-gradient(115deg, rgba(7, 22, 46, 0.66), rgba(22, 103, 255, 0.38), rgba(255, 138, 61, 0.2)),
      url("/assets/home-bg-v2.png") center top / 1080px auto no-repeat;
  }

  .brand-lockup {
    width: min(500px, 88vw);
    margin-inline: auto;
    padding-top: 36px;
  }

  .hero-mascot {
    width: min(150px, 25vw);
  }
}

@media (max-width: 560px) {
  .page-shell {
    width: 100%;
  }

  .hero {
    min-height: 276px;
    margin-top: 0;
    border-radius: 0;
  }

  .brand-lockup {
    width: min(360px, 92vw);
    padding-top: 34px;
  }

  .brand-line-main {
    font-size: clamp(46px, 14vw, 66px);
  }

  .brand-line-secondary {
    font-size: clamp(52px, 15vw, 76px);
    gap: 8px;
  }

  .brand-domain {
    height: 48px;
    padding-inline: 10px;
    margin-bottom: 8px;
  }

  .main-nav {
    width: calc(100% - 16px);
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: -20px;
  }
}

/* Magazine editorial theme */
.theme-magazine {
  --ink: #221a16;
  --ink-deep: #120d0a;
  --muted: #74685f;
  --line: rgba(34, 26, 22, 0.16);
  --paper: #f6efe3;
  --panel: #fffdf8;
  --blue: #1f4f7a;
  --blue-dark: #173653;
  --sky: #d9a441;
  --yellow: #f2c14e;
  --orange: #bd5b35;
  --green: #2d775e;
  --pink: #a8394b;
  --purple: #57477a;
  --shadow: 0 16px 36px rgba(34, 26, 22, 0.12);
  --soft-shadow: 0 8px 20px rgba(34, 26, 22, 0.08);
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  background:
    linear-gradient(90deg, rgba(34, 26, 22, 0.045) 1px, transparent 1px),
    linear-gradient(180deg, #f6efe3, #fbf7ef 42%, #efe3d1);
  background-size: 34px 34px, auto;
}

.theme-magazine button,
.theme-magazine input,
.theme-magazine textarea,
.theme-magazine select {
  font-family: Arial, Helvetica, sans-serif;
}

.theme-magazine .page-shell {
  width: min(1180px, calc(100% - 40px));
}

.theme-magazine .hero {
  min-height: 280px;
  margin-top: 22px;
  background:
    linear-gradient(90deg, rgba(18, 13, 10, 0.9), rgba(18, 13, 10, 0.58) 48%, rgba(189, 91, 53, 0.28)),
    url("/assets/home-bg-v2.png") center 48% / 1260px auto no-repeat;
  border: 1px solid rgba(34, 26, 22, 0.18);
  border-radius: 0;
  box-shadow: 0 20px 48px rgba(34, 26, 22, 0.16);
}

.theme-magazine .hero::before {
  position: absolute;
  inset: 18px;
  z-index: 0;
  pointer-events: none;
  border: 1px solid rgba(255, 255, 255, 0.32);
  content: "";
}

.theme-magazine .hero::after {
  height: 8px;
  background: linear-gradient(90deg, var(--yellow), var(--orange), var(--blue));
  z-index: 2;
}

.theme-magazine .brand-lockup {
  width: min(640px, 78vw);
  padding-top: 46px;
  margin-left: 52px;
  text-align: left;
  text-shadow: none;
}

.theme-magazine .brand-line-main,
.theme-magazine .brand-line-secondary {
  display: block;
  color: #fffdf8;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(52px, 7.5vw, 96px);
  font-weight: 900;
  letter-spacing: 0;
  line-height: 0.92;
  -webkit-text-stroke: 0;
}

.theme-magazine .brand-line-secondary {
  color: var(--yellow);
  font-size: clamp(48px, 7vw, 88px);
}

.theme-magazine .brand-domain {
  display: inline;
  height: auto;
  padding: 0;
  margin: 0;
  color: #fffdf8;
  font-size: 0.56em;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.theme-magazine .brand-tagline {
  margin-top: 14px;
  padding: 8px 14px;
  color: #120d0a;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 13px;
  letter-spacing: 0;
  background: var(--yellow);
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.theme-magazine .hero-mascot {
  right: 34px;
  bottom: 16px;
  width: min(178px, 18vw);
  opacity: 0.92;
}

.theme-magazine .hero-mascot-left {
  display: none;
}

.theme-magazine .main-nav {
  position: static;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  margin: 0 0 22px;
  padding: 10px 0;
  background: transparent;
  border: 0;
  border-block: 3px double rgba(34, 26, 22, 0.22);
  border-radius: 0;
  box-shadow: none;
  backdrop-filter: none;
}

.theme-magazine .nav-item {
  min-height: 38px;
  padding: 7px 12px;
  color: var(--ink-deep);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 13px;
  letter-spacing: 0;
  border-radius: 0;
}

.theme-magazine .nav-icon {
  display: none;
}

.theme-magazine .nav-item:hover,
.theme-magazine .nav-item.is-active {
  color: #fffdf8;
  background: var(--ink-deep);
  box-shadow: none;
  transform: none;
}

.theme-magazine .search-panel {
  margin-bottom: 18px;
  padding: 13px;
  background: #fffdf8;
  border: 1px solid rgba(34, 26, 22, 0.16);
  border-radius: 0;
  box-shadow: none;
}

.theme-magazine .public-layout {
  grid-template-columns: minmax(0, 1fr) 310px;
  gap: 24px;
}

.theme-magazine .daily-card,
.theme-magazine .panel,
.theme-magazine .recent-card,
.theme-magazine .side-card {
  border: 1px solid rgba(34, 26, 22, 0.16);
  border-radius: 0;
  box-shadow: none;
}

.theme-magazine .daily-card {
  padding: 0;
  background: #fffdf8;
}

.theme-magazine .daily-card::after {
  display: none;
}

.theme-magazine .daily-head,
.theme-magazine .home-layout .daily-head {
  position: static;
  min-height: 0;
  padding: 12px 16px;
  color: #fffdf8;
  background: var(--ink-deep);
}

.theme-magazine .daily-title-label {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 15px;
  letter-spacing: 0;
}

.theme-magazine .daily-title-label span {
  width: 28px;
  height: 28px;
  color: var(--ink-deep);
  background: var(--yellow);
  border-radius: 0;
}

.theme-magazine .like-badge,
.theme-magazine .row-like {
  color: var(--ink-deep);
  background: var(--yellow);
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.theme-magazine .daily-body-grid,
.theme-magazine .home-layout .daily-body-grid,
.theme-magazine .joke-detail-card .daily-body-grid {
  grid-template-columns: minmax(0, 1fr) 210px;
  gap: 0;
  padding: 22px;
}

.theme-magazine .joke-copy,
.theme-magazine .home-layout .joke-copy,
.theme-magazine .joke-detail-card .joke-copy {
  padding: 0 22px 0 0;
  background: transparent;
  border: 0;
  border-right: 1px solid rgba(34, 26, 22, 0.14);
  border-radius: 0;
  box-shadow: none;
}

.theme-magazine .daily-meta a,
.theme-magazine .daily-meta span,
.theme-magazine .daily-meta time {
  min-height: 24px;
  padding: 3px 8px;
  color: var(--muted);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 12px;
  background: transparent;
  border: 1px solid rgba(34, 26, 22, 0.15);
  border-radius: 0;
}

.theme-magazine .daily-meta a {
  color: #fffdf8;
  background: var(--blue-dark);
}

.theme-magazine .joke-title,
.theme-magazine .home-layout .joke-title,
.theme-magazine .joke-detail-card .joke-title {
  color: var(--ink-deep);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(36px, 5.2vw, 64px);
  letter-spacing: 0;
  line-height: 0.98;
}

.theme-magazine .joke-lines,
.theme-magazine .joke-detail-card .joke-lines {
  color: #2b211b;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(19px, 2vw, 24px);
  font-weight: 500;
  line-height: 1.65;
}

.theme-magazine .daily-art-card {
  min-height: 100%;
  background: #f6efe3;
  border: 1px solid rgba(34, 26, 22, 0.12);
  border-radius: 0;
  box-shadow: none;
}

.theme-magazine .big-avatar {
  width: 154px;
  height: 154px;
}

.theme-magazine .joke-actions,
.theme-magazine .joke-detail-card .joke-actions {
  border-top: 1px solid rgba(34, 26, 22, 0.12);
}

.theme-magazine .primary-button,
.theme-magazine .action-button,
.theme-magazine .small-button,
.theme-magazine .tool-button,
.theme-magazine .button-link,
.theme-magazine .secondary-button,
.theme-magazine .random-button,
.theme-magazine .light-button {
  color: #fffdf8;
  font-family: Arial, Helvetica, sans-serif;
  background: var(--ink-deep);
  border: 1px solid var(--ink-deep);
  border-radius: 0;
  box-shadow: none;
}

.theme-magazine .primary-button:hover,
.theme-magazine .action-button:hover,
.theme-magazine .small-button:hover,
.theme-magazine .tool-button:hover {
  color: var(--ink-deep);
  background: var(--yellow);
  transform: none;
}

.theme-magazine .recent-card,
.theme-magazine .panel {
  background: #fffdf8;
}

.theme-magazine .section-ribbon {
  position: static;
  display: flex;
  width: 100%;
  height: auto;
  justify-content: flex-start;
  padding: 13px 16px;
  color: #fffdf8;
  background: var(--ink-deep);
  border-radius: 0;
  box-shadow: none;
}

.theme-magazine .section-ribbon h2 {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 15px;
  letter-spacing: 0;
}

.theme-magazine .joke-list,
.theme-magazine .home-layout .joke-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
}

.theme-magazine .joke-row,
.theme-magazine .home-layout .joke-row {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 16px;
  padding: 18px 0;
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgba(34, 26, 22, 0.14);
  border-radius: 0;
  box-shadow: none;
}

.theme-magazine .joke-row:hover {
  transform: none;
  box-shadow: none;
}

.theme-magazine .joke-row h3,
.theme-magazine .home-layout .joke-row h3 {
  padding-right: 70px;
  color: var(--ink-deep);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 28px;
  line-height: 1.05;
}

.theme-magazine .joke-row .joke-lines,
.theme-magazine .home-layout .joke-row .joke-lines {
  font-size: 17px;
  line-height: 1.55;
}

.theme-magazine .list-avatar,
.theme-magazine .home-layout .joke-row .list-avatar {
  width: 82px;
  height: 82px;
  border-radius: 0;
  box-shadow: none;
}

.theme-magazine .side-card {
  padding: 18px;
  color: var(--ink-deep);
  background: #fffdf8;
}

.theme-magazine .side-card-purple,
.theme-magazine .side-card-week,
.theme-magazine .side-card-green,
.theme-magazine .side-card-blue {
  background: #fffdf8;
}

.theme-magazine .side-card-clock {
  color: #fffdf8;
  background:
    linear-gradient(150deg, rgba(255, 168, 75, 0.97), rgba(238, 91, 69, 0.96)),
    url("/assets/home-bg-v2.png") center / cover no-repeat;
}

.theme-magazine .side-card-clock .side-title h2,
.theme-magazine .side-card-clock .next-joke-countdown,
.theme-magazine .side-card-clock .next-joke-pill {
  color: #fffdf8;
}

.theme-magazine .side-card-clock .next-joke-pill {
  background: rgba(31, 15, 4, 0.26);
  border-color: rgba(255, 255, 255, 0.32);
}

.theme-magazine .side-card-clock .next-joke-progress {
  background: rgba(255, 255, 255, 0.28);
}

.theme-magazine .side-card::before {
  display: block;
  width: 44px;
  height: 4px;
  margin-bottom: 14px;
  background: var(--orange);
  content: "";
}

.theme-magazine .top-list li,
.theme-magazine .joke-widget,
.theme-magazine .next-joke-card,
.theme-magazine .same-category-card,
.theme-magazine .faq-grid article,
.theme-magazine .comment-item,
.theme-magazine .comment-form {
  background: #fffdf8;
  border: 1px solid rgba(34, 26, 22, 0.14);
  border-radius: 0;
  box-shadow: none;
}

.theme-magazine .joke-more-panel,
.theme-magazine .joke-tools,
.theme-magazine .comments-card,
.theme-magazine .joke-faq {
  padding-top: 0;
}

.theme-magazine .joke-more-layout,
.theme-magazine .faq-grid {
  padding: 18px;
}

.theme-magazine .breadcrumbs {
  font-family: Arial, Helvetica, sans-serif;
  background: #f6efe3;
  border-bottom: 1px solid rgba(34, 26, 22, 0.14);
}

.theme-magazine .joke-fun-badge {
  color: #fffdf8;
  background: var(--orange);
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

@media (max-width: 1040px) {
  .theme-magazine .public-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 820px) {
  .theme-magazine .hero {
    min-height: 260px;
  }

  .theme-magazine .brand-lockup {
    width: min(520px, 86vw);
    margin-left: 34px;
  }

  .theme-magazine .hero-mascot {
    display: none;
  }

  .theme-magazine .daily-body-grid,
  .theme-magazine .home-layout .daily-body-grid,
  .theme-magazine .joke-detail-card .daily-body-grid {
    grid-template-columns: 1fr;
  }

  .theme-magazine .joke-copy,
  .theme-magazine .home-layout .joke-copy,
  .theme-magazine .joke-detail-card .joke-copy {
    padding: 0;
    border-right: 0;
  }
}

@media (max-width: 560px) {
  .theme-magazine .page-shell {
    width: 100%;
  }

  .theme-magazine .hero {
    min-height: 232px;
    margin-top: 0;
  }

  .theme-magazine .brand-lockup {
    width: min(360px, calc(100% - 32px));
    margin-left: 16px;
    padding-top: 34px;
  }

  .theme-magazine .brand-line-main,
  .theme-magazine .brand-line-secondary {
    font-size: clamp(42px, 13vw, 62px);
  }

  .theme-magazine .main-nav {
    justify-content: flex-start;
    padding-inline: 10px;
  }

  .theme-magazine .joke-row,
  .theme-magazine .home-layout .joke-row {
    grid-template-columns: 1fr;
    padding: 16px;
  }

  .theme-magazine .joke-row h3,
  .theme-magazine .home-layout .joke-row h3 {
    padding-right: 0;
  }
}

/* List layout refresh */
.joke-list-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.joke-list-grid .joke-card-row {
  position: relative;
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  min-height: 0;
  padding: 14px 14px 14px 12px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(245, 251, 255, 0.9));
  border: 1px solid rgba(8, 42, 102, 0.12);
  border-left: 4px solid #1b7df2;
  border-radius: 10px;
  box-shadow: 0 8px 18px rgba(18, 40, 72, 0.08);
  transition: transform 140ms ease, box-shadow 140ms ease, border-color 140ms ease;
}

.joke-list-grid .joke-card-row:hover {
  transform: translateY(-1px);
  border-color: rgba(29, 116, 245, 0.24);
  box-shadow: 0 12px 22px rgba(18, 40, 72, 0.11);
}

.joke-list-grid .joke-card-row .list-avatar {
  width: 64px;
  height: 64px;
  font-size: 30px;
}

.joke-list-grid .row-main {
  display: grid;
  gap: 8px;
}

.joke-list-grid .row-head {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: space-between;
}

.joke-list-grid .row-title {
  margin: 0;
  font-size: 22px;
  line-height: 1.18;
}

.joke-list-grid .row-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  color: #51667f;
  font-size: 13px;
  font-weight: 800;
}

.joke-list-grid .row-category {
  display: inline-flex;
  padding: 4px 8px;
  color: #fff;
  text-decoration: none;
  background: linear-gradient(180deg, #2f88ff, #1559c8);
  border-radius: 8px;
}

.joke-list-grid .joke-lines {
  margin: 0;
  color: #1c2f46;
  font-size: 15px;
  font-weight: 650;
  line-height: 1.42;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
  overflow: hidden;
}

.joke-list-grid .row-like {
  position: static;
  min-width: 0;
  padding: 5px 7px;
  display: inline-flex;
  gap: 7px;
  align-items: center;
  justify-content: center;
  font-size: 12px;
}

.joke-list-grid .row-actions {
  margin-top: 2px;
}

.joke-list-grid .row-actions .action-button {
  min-height: 32px;
  padding: 6px 11px;
  font-size: 12px;
}

@media (max-width: 560px) {
  .joke-list-grid .joke-card-row {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 12px;
  }

  .joke-list-grid .joke-card-row .list-avatar {
    width: 58px;
    height: 58px;
    font-size: 26px;
  }

  .joke-list-grid .row-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .joke-list-grid .row-title {
    font-size: 20px;
  }
}

/* Mobile + tablet compatibility hardening */
html,
body {
  max-width: 100%;
  overflow-x: hidden;
}

.page-shell,
.panel,
.admin-item,
.daily-card,
.joke-list-grid .joke-card-row {
  min-width: 0;
  max-width: 100%;
}

.visitor-value,
.admin-item h3,
.admin-item p,
.joke-list-grid .row-title,
.joke-list-grid .joke-lines {
  word-wrap: break-word;
  overflow-wrap: anywhere;
}

@media (max-width: 1024px) {
  .public-layout,
  .home-layout .daily-body-grid,
  .daily-body-grid,
  .joke-detail-card .daily-body-grid,
  .faq-grid,
  .joke-widget-grid,
  .admin-layout,
  .admin-grid,
  .avatar-admin-grid,
  .maintenance-admin-grid,
  .maintenance-list-columns,
  .visitor-lists-grid {
    grid-template-columns: 1fr !important;
  }

  .admin-side-nav {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }

  .cms-toolbar,
  .bulk-toolbar {
    grid-template-columns: 1fr !important;
    align-items: stretch;
  }

  .joke-list-grid .joke-card-row {
    grid-template-columns: 64px minmax(0, 1fr);
  }
}

@media (max-width: 768px) {
  .main-nav {
    position: static;
    top: auto;
  }

  .admin-side-nav {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .admin-list {
    max-height: none;
    overflow: visible;
  }

  .admin-item {
    grid-template-columns: 1fr !important;
  }

  .admin-item-actions {
    width: 100%;
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .search-row {
    flex-wrap: wrap;
  }

  .search-row input,
  .search-row .small-button {
    width: 100%;
  }
}

/* Final contrast safeguard for "Urmatorul banc" card across themes */
.side-card.side-card-clock {
  color: #fffdf8 !important;
  background:
    linear-gradient(150deg, rgba(255, 168, 75, 0.98), rgba(238, 91, 69, 0.96)),
    url("/assets/home-bg-v2.png") center / cover no-repeat !important;
}

.side-card.side-card-clock .side-title h2,
.side-card.side-card-clock .next-joke-countdown,
.side-card.side-card-clock .next-joke-pill,
.side-card.side-card-clock .next-joke-emoji,
.side-card.side-card-clock .next-joke-meta span,
.side-card.side-card-clock .next-joke-progress-label,
.side-card.side-card-clock .next-joke-link {
  color: #fffdf8 !important;
}

.side-card.side-card-clock .next-joke-pill,
.side-card.side-card-clock .next-joke-emoji {
  background: rgba(22, 18, 20, 0.26) !important;
  border-color: rgba(255, 255, 255, 0.36) !important;
}

.side-card.side-card-clock .next-joke-link {
  background: rgba(22, 18, 20, 0.34) !important;
  border-color: rgba(255, 255, 255, 0.4) !important;
}

.side-card.side-card-clock .next-joke-progress {
  background: rgba(255, 255, 255, 0.3) !important;
}

.side-card.side-card-clock .side-title {
  display: grid !important;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  column-gap: 10px;
}

.side-card.side-card-clock .side-title h2 {
  min-width: 0;
}

.side-card.side-card-clock .next-joke-emoji {
  justify-self: end;
  transform: translateY(-1px);
}

@media (max-width: 560px) {
  .page-shell {
    width: calc(100% - 12px);
  }

  .main-nav {
    width: 100%;
    border-radius: 8px;
  }

  .form-actions > .primary-button,
  .form-actions > .secondary-button,
  .form-actions > .small-button,
  .form-actions > button,
  .form-actions > a {
    width: 100%;
    justify-content: center;
  }

  .joke-list-grid .row-meta {
    gap: 6px;
  }
}



.brand-lockup{text-decoration:none}.row-body-grid{display:grid;grid-template-columns:minmax(0,1fr) 70px;gap:16px}.joke-card-row{display:block}.daily-body-grid>.avatar{width:145px;height:160px;align-self:center}.avatar img{width:100%;height:100%;object-fit:contain}.row-body-grid>.avatar{width:68px;height:85px;align-self:start}.joke-lines{white-space:pre-line}.reaction-wrap{display:flex;flex-direction:column;gap:4px}.reaction-wrap small{font-size:11px}.reaction-buttons{display:flex;gap:5px}.tag-list{display:flex;gap:7px;flex-wrap:wrap}.tag{background:#eaf4ff;border:1px solid #c3ddff;border-radius:20px;padding:4px 9px;text-decoration:none;font-size:12px}.joke-tools{display:flex;flex-wrap:wrap;gap:8px;padding:16px;border-top:1px solid var(--line)}.sidebar-mascot{height:130px;display:block;margin:12px auto}.category-links{display:grid;gap:9px}.category-links a{display:flex;justify-content:space-between;text-decoration:none;padding:7px 0;border-bottom:1px solid var(--line)}.queue-empty{padding:14px 0;line-height:1.5}.comment-item{border-bottom:1px solid var(--line);padding:16px 0}.comment-item time{margin-left:10px;font-size:12px;color:var(--muted)}.migration-login{margin:50px auto;max-width:600px;display:grid;gap:20px}.cms-form>label{display:grid;gap:7px}.cms-form textarea{width:100%}.migration-admin{min-height:100vh;background:#f0f5fb;color:#12315b;font-family:Arial,sans-serif}.migration-admin-header{display:flex;align-items:center;gap:20px;background:#092859;color:white;padding:20px 28px;box-shadow:0 3px 12px #061e4933}.migration-admin-header>a{font-size:22px;font-weight:900;text-decoration:none}.migration-admin-header nav{margin-left:auto;display:flex;gap:20px;font-size:14px}.migration-admin-layout{display:grid;grid-template-columns:220px minmax(0,1fr)}.migration-admin-nav{padding:22px 12px;background:white;display:flex;flex-direction:column;gap:4px;align-self:start;position:sticky;top:0;min-height:calc(100vh - 70px)}.migration-admin-nav button{text-align:left;border:0;background:none;color:#305071;border-radius:7px;padding:13px 16px;font-weight:700}.migration-admin-nav button:hover,.migration-admin-nav button.active{background:#e6f0ff;color:#075dba}.migration-admin-main{padding:28px;min-width:0}.migration-admin-main .panel{background:white;margin-bottom:22px;padding:24px;border-radius:12px;box-shadow:0 4px 16px #193c6510}.migration-admin-main h1{margin:0 0 22px;font-size:28px}.admin-heading{display:flex;justify-content:space-between;align-items:center}.migration-admin-main h2{font-size:20px}.migration-admin-main .stats-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:18px;margin-bottom:24px}.migration-admin-main .stat-card{padding:20px;background:white;border-radius:10px;display:grid;gap:9px;border:1px solid #dae5f3}.migration-admin-main .stat-card strong{font-size:34px;color:#0b69c8}.migration-toolbar{display:flex;gap:9px;flex-wrap:wrap;margin-bottom:16px}.migration-toolbar>input{flex:1;min-width:180px}.migration-actions{display:flex;flex-wrap:wrap;gap:6px;margin-top:8px}.migration-actions button{font-size:12px;padding:6px 9px}.table-scroll{overflow-x:auto}.migration-table{border-collapse:collapse;width:100%;font-size:14px}.migration-table td,.migration-table th{text-align:left;padding:14px 12px;border-bottom:1px solid #e5edf5;vertical-align:top}.migration-table th{background:#f4f8fc;font-size:12px;text-transform:uppercase;letter-spacing:.04em}.migration-table td small{display:block;margin-top:6px;color:#687b91}.migration-table td:first-child{width:30px}.migration-admin-main input:not([type=checkbox]),.migration-admin-main select,.migration-admin-main textarea{width:100%;border:1px solid #c7d5e5;border-radius:6px;padding:10px;background:white;color:#12315b}.migration-admin-main .form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.migration-admin-main .cms-form{display:grid;gap:20px}.migration-admin-main label{display:grid;gap:7px;font-size:14px;font-weight:600}.migration-checks{display:flex;gap:18px;flex-wrap:wrap}.migration-checks label{display:flex;align-items:center;gap:8px}.migration-admin-main .import-form{display:flex;align-items:end;gap:14px;flex-wrap:wrap;margin:20px 0}.migration-admin-main .import-form label{flex:1}.migration-record{border-bottom:1px solid #dfe8f2;padding:20px 0;line-height:1.6}.migration-record>a{display:block}.migration-record p{white-space:pre-line}.migration-avatars,.migration-media{display:flex;flex-wrap:wrap;gap:18px;margin-bottom:24px}.migration-avatars figure{width:110px;margin:0;text-align:center}.migration-avatars img{width:85px;height:100px;object-fit:contain}.migration-media figure{width:220px;margin:0;padding:12px;background:#f1f5fa;display:grid;gap:12px}.migration-media img{height:130px;object-fit:contain;margin:auto}.migration-admin-main .danger-button{border:1px solid #f0c3c3;color:#ae3030;background:#fff1f1;border-radius:6px;padding:8px 12px}.migration-admin-footer{padding:24px 0;color:#6c7e92;font-size:13px}.migration-admin-main button:disabled{opacity:.55}.migration-admin-main details summary{cursor:pointer;font-weight:700;margin-bottom:16px}.migration-admin-main .notice{background:#fff6d4;padding:16px;border:1px solid #ead381;border-radius:8px;margin-bottom:20px}
.content-stack .joke-list-grid .joke-card-row{display:block}.content-stack .row-body-grid{width:100%;min-width:0}.row-main{min-width:0}.daily-card .row-meta{display:flex;gap:10px;flex-wrap:wrap;margin:10px 0 18px}.sidebar .category-links a{color:#082a66!important;background:transparent!important;opacity:1!important;min-height:34px}.sidebar .category-links a span{color:#4f668f!important}.hero>.brand-lockup{display:flex;flex-direction:column;align-items:center;justify-content:center;text-decoration:none;position:relative;margin:auto;z-index:2}.hero .brand-tagline{position:static;transform:none;margin:12px auto 0}.row-title a,.daily-joke-title a{text-decoration:none}.row-title a:hover,.daily-joke-title a:hover{text-decoration:underline}
@media(max-width:850px){.migration-admin-layout{grid-template-columns:1fr}.migration-admin-nav{position:static;min-height:0;flex-direction:row;overflow-x:auto;padding:10px}.migration-admin-nav button{white-space:nowrap}.migration-admin-main{padding:16px}.migration-admin-header{flex-wrap:wrap;padding:16px;gap:12px}.migration-admin-header nav{margin-left:0;width:100%;gap:14px}.migration-admin-main .stats-grid{grid-template-columns:repeat(2,1fr)}.migration-admin-main .form-grid{grid-template-columns:1fr}.daily-body-grid>.avatar{width:100px;height:110px}.row-body-grid{grid-template-columns:minmax(0,1fr) 55px}.row-body-grid>.avatar{width:52px;height:65px}}

/* Public reading experience. Kept after the legacy themes so both stay usable. */
:root { --focus-ring: #0c4da2; }
html { scroll-padding-top: 20px; }
body { background: #f2f6fc; }
*, *::before, *::after { box-sizing: border-box; }
:where(a, button, input, textarea, select, summary):focus-visible {
  outline: 3px solid var(--focus-ring); outline-offset: 4px;
  box-shadow: 0 0 0 6px #fff;
}
.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; }
.page-shell { width:min(1180px, calc(100% - 40px)); margin:20px auto 0; color:#172b45; }
.page-shell .hero {
  min-height:184px; height:auto; padding:24px 136px; display:flex; align-items:center; justify-content:space-between; gap:24px;
  background:linear-gradient(110deg, #103c86, #165ba8); border:0; border-radius:20px 20px 0 0; box-shadow:none; overflow:hidden;
}
.page-shell .hero::after { display:none; }
.page-shell .hero > .brand-lockup { position:relative; margin:0; padding:0; width:auto; align-items:flex-start; text-shadow:none; }
.page-shell .brand-line { line-height:1; font-family:Arial, Helvetica, sans-serif; font-weight:900; letter-spacing:-1.4px; }
.page-shell .brand-line-main { font-size:38px; color:#fff; }
.page-shell .brand-line-secondary { display:flex; align-items:center; gap:8px; font-size:46px; color:#ffe079; -webkit-text-stroke:0; }
.page-shell .brand-domain { position:static; width:auto; height:auto; padding:4px 7px; border:0; border-radius:6px; background:#ffe079; color:#173965; font-size:24px; line-height:1; box-shadow:none; }
.page-shell .hero .brand-tagline { padding:0; margin:9px 0 0; background:none; border:0; color:#e8f1ff; box-shadow:none; font-size:13px; font-weight:500; text-transform:none; letter-spacing:0; }
.page-shell .hero-mascot { position:absolute; width:100px; height:128px; bottom:0; object-fit:contain; opacity:1; filter:none; }
.page-shell .hero-mascot-left { left:18px; right:auto; }
.page-shell .hero-mascot-right { right:18px; left:auto; }
.hero-invitation { position:relative; z-index:2; }
.hero-invitation p { margin:0 0 12px; color:#e8f1ff; font-size:17px; line-height:1.4; }
.hero-invitation strong { font-size:22px; color:white; }
.page-shell .hero-invitation .primary-button { background:#ffe079; color:#19324e; border-color:#ffe079; }
.page-shell .main-nav { position:relative; top:auto; margin:0 0 18px; padding:7px 10px; display:block; background:#fff; border:1px solid #dae3f0; border-top:0; border-radius:0 0 16px 16px; box-shadow:0 4px 14px #172b4508; backdrop-filter:none; }
.nav-links { display:flex; gap:5px; width:100%; }
.page-shell .nav-links > a { display:flex; align-items:center; justify-content:center; gap:6px; flex:1; min-height:46px; padding:9px 8px; color:#334966; font-size:14px; font-weight:650; text-decoration:none; border-radius:8px; }
.page-shell .nav-links > a:hover { background:#f0f5fe; color:#124a95; }
.page-shell .nav-links > a[aria-current="page"] { color:#124a95; background:#eaf2ff; box-shadow:inset 0 -3px #195cb0; }
.page-shell .nav-icon { display:inline-grid; place-items:center; width:22px; height:22px; flex-basis:22px; background:none; box-shadow:none; font-size:16px; }
.nav-toggle, .mobile-random { display:none; }
.page-shell .search-panel { padding:13px 16px; margin:0 0 18px; background:#fff; border:1px solid #dce5f1; border-radius:14px; box-shadow:none; backdrop-filter:none; }
.page-shell .field-label { display:block; margin:0 0 6px; color:#334966; font-size:13px; font-weight:650; letter-spacing:0; text-transform:none; }
.page-shell .search-row { display:flex; flex-direction:row; align-items:stretch; gap:10px; }
.page-shell .search-row .small-button { width:auto; flex:0 0 auto; }
.page-shell :is(input:not([type="checkbox"]), textarea, select) { min-width:0; min-height:46px; padding:11px 13px; font:inherit; font-size:16px; color:#172b45; background:#fff; border:1px solid #a5b6cc; border-radius:8px; box-shadow:none; }
.page-shell input::placeholder, .page-shell textarea::placeholder { color:#5c6e84; opacity:1; }
.page-shell .search-row input { flex:1; width:100%; }
.page-shell .public-layout { display:grid; grid-template-columns:minmax(0, 1fr) 292px; gap:24px; align-items:start; margin:0; }
.page-shell .public-layout-full { grid-template-columns:1fr; }
.page-shell .content-stack, .page-shell .sidebar { display:grid; gap:22px; min-width:0; }
.page-shell .sidebar { position:static; padding:0; }
.page-shell :is(.daily-card, .recent-card, .panel, .side-card) { background:#fff; color:#172b45; border:1px solid #dce5f1; border-radius:16px; box-shadow:0 4px 20px #172b4505; min-width:0; }
.page-shell .daily-card { position:relative; padding:0; overflow:visible; }
.page-shell .daily-card::after { display:none; }
.page-shell .daily-head { position:static; display:flex; flex-direction:row; flex-wrap:nowrap; align-items:center; justify-content:space-between; text-align:left; gap:12px; min-height:58px; padding:12px 20px; border:0; border-bottom:1px solid #dce5f1; border-radius:16px 16px 0 0; background:#eef4ff; color:#143e7a; }
.page-shell .daily-title-label { display:flex; align-items:center; gap:9px; margin:0; color:#143e7a; font-size:17px; font-weight:800; letter-spacing:0; line-height:1.4; text-shadow:none; text-transform:none; }
.page-shell .daily-title-label span { display:inline; padding:0; width:auto; height:auto; font-size:23px; background:none; box-shadow:none; }
.page-shell .like-badge { position:static; padding:5px 10px; color:#29496a; background:#fff; border:1px solid #d5e0f0; border-radius:7px; font-size:13px; font-weight:650; white-space:nowrap; box-shadow:none; text-shadow:none; transform:none; }
.page-shell .daily-body-grid { display:grid; grid-template-columns:minmax(0,1fr) 100px; gap:20px; padding:23px; margin:0; align-items:center; }
.page-shell .joke-copy { min-width:0; padding:0; border:0; border-radius:0; box-shadow:none; background:none; }
.page-shell .joke-copy::before { display:none; }
.page-shell .daily-body-grid > .avatar { width:100px; height:124px; background:none; border:0; box-shadow:none; }
.page-shell .daily-joke-title { margin:0; color:#172b45; font-size:27px; line-height:1.25; font-weight:800; overflow-wrap:anywhere; }
.page-shell .daily-joke-title a, .page-shell .row-title a { color:inherit; text-decoration:none; }
.page-shell :is(.daily-joke-title, .row-title) a:hover { text-decoration:underline; text-underline-offset:4px; color:#174f9c; }
.page-shell .row-meta { display:flex; flex-wrap:wrap; gap:6px 12px; margin:10px 0 16px; color:#52657e; font-size:12px; line-height:1.5; }
.page-shell .row-category { color:#174f9c; font-weight:700; text-decoration:none; }
.page-shell .row-category:hover { text-decoration:underline; }
.page-shell .joke-lines, .page-shell .daily-card .joke-lines { max-width:68ch; margin:0 0 16px; color:#263b55; font-size:19px; font-weight:400; line-height:1.7; white-space:pre-line; overflow-wrap:anywhere; }
.page-shell .recent-card { padding:0; overflow:visible; }
.page-shell .section-ribbon { position:static; display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:8px; min-height:58px; padding:16px 20px; margin:0; border:0; border-bottom:1px solid #dce5f1; border-radius:16px 16px 0 0; background:#fff; color:#172b45; box-shadow:none; transform:none; }
.page-shell .section-ribbon::before, .page-shell .section-ribbon::after { display:none; }
.page-shell .section-ribbon h2 { margin:0; color:#172b45; font-size:19px; line-height:1.3; letter-spacing:0; text-shadow:none; text-transform:none; }
.section-ribbon > span { color:#52657e; font-size:12px; }
.page-shell .joke-list { display:grid; grid-template-columns:1fr; gap:0; padding:0; }
.page-shell .joke-row, .page-shell .content-stack .joke-list-grid .joke-card-row { display:block; min-height:0; padding:22px; margin:0; border:0; border-bottom:1px solid #e0e7f1; border-radius:0; background:#fff; transform:none; box-shadow:none; }
.page-shell .joke-row:last-child { border-bottom:0; border-radius:0 0 16px 16px; }
.page-shell .row-body-grid { display:grid; grid-template-columns:minmax(0,1fr) 56px; gap:14px; }
.page-shell .row-body-grid > .avatar { width:56px; height:68px; background:none; border:0; box-shadow:none; }
.page-shell .row-title { margin:0; font-size:21px; line-height:1.35; font-weight:750; overflow-wrap:anywhere; }
.page-shell .joke-row .joke-lines { color:#263b55; font-size:17px; font-weight:400; line-height:1.7; }
.page-shell .row-actions { display:flex; align-items:flex-start; flex-wrap:wrap; gap:8px; margin:15px 0 0; }
.page-shell :is(.action-button, .primary-button, .small-button, .secondary-button) { display:inline-flex; align-items:center; justify-content:center; gap:7px; min-height:44px; min-width:44px; padding:10px 13px; border:1px solid #c8d5e6; border-radius:8px; background:#fff; color:#244465; font-family:inherit; font-size:14px; font-weight:650; line-height:1.35; text-decoration:none; letter-spacing:0; text-shadow:none; text-transform:none; box-shadow:none; transform:none; cursor:pointer; }
.page-shell :is(.primary-button, .small-button) { background:#1755a4; color:#fff; border-color:#1755a4; }
.page-shell :is(.action-button, .secondary-button):hover { color:#124a95; border-color:#7b9cc6; background:#edf4ff; }
.page-shell :is(.primary-button, .small-button):hover { background:#103f82; color:#fff; transform:none; box-shadow:none; }
.page-shell button:disabled { cursor:default; opacity:.65; transform:none; }
.page-shell .reaction-wrap { gap:0; }
.page-shell .reaction-wrap small:empty { display:none; }
.page-shell .reaction-wrap small { max-width:190px; color:#355273; font-size:12px; margin-top:6px; }
.page-shell .reaction-buttons { gap:5px; }
.page-shell .tag-list { display:flex; flex-wrap:wrap; align-items:flex-start; gap:7px; }
.page-shell .tag { display:inline-flex; align-items:center; min-height:44px; padding:5px 10px; color:#315272; background:#f0f5fb; border:1px solid #dde6f1; border-radius:7px; font-size:12px; text-decoration:none; }
.page-shell .tag:hover { border-color:#829ebd; background:#e6effd; }
.tag-details { font-size:12px; color:#52657e; }
.tag-details summary { display:flex; align-items:center; min-height:44px; padding:5px 10px; cursor:pointer; border:1px solid transparent; border-radius:7px; }
.tag-details summary::after { content:' ▾'; padding-left:4px; }
.tag-details[open] summary::after { content:' ▴'; }
.tag-details > div { display:flex; flex-wrap:wrap; gap:7px; padding:7px 0; }
.page-shell .side-card { padding:19px; color:#172b45; background:#fff; }
.page-shell .side-card-week { background:#fff5d6; border-color:#eddfb1; }
.page-shell .side-card-week .primary-button { width:100%; }
.page-shell .side-title { display:flex; align-items:center; gap:8px; padding:0; margin:0 0 12px; }
.page-shell .side-title h2 { margin:0; color:#172b45; font-size:17px; font-weight:750; letter-spacing:0; text-shadow:none; text-transform:none; }
.page-shell .side-title > span { width:auto; height:auto; font-size:20px; background:none; }
.page-shell .side-card p { color:#405771; line-height:1.65; font-size:14px; }
.page-shell .top-list { padding:0; margin:0 0 9px; display:grid; gap:0; box-shadow:none; list-style:none; }
.page-shell .top-list li { display:grid; grid-template-columns:25px minmax(0,1fr); align-items:start; gap:9px; padding:10px 0; border-bottom:1px solid #e0e7f1; background:none; }
.page-shell .top-list li a { min-height:44px; display:flex; align-items:center; color:#263f60; font-size:14px; line-height:1.5; font-weight:600; text-decoration:none; overflow-wrap:anywhere; }
.page-shell .top-list li a:hover { text-decoration:underline; }
.page-shell .rank { display:grid; place-items:center; width:25px; height:28px; margin-top:8px; color:#174f9c; background:#eaf2ff; border:0; border-radius:6px; font-size:13px; font-weight:750; box-shadow:none; }
.page-shell .text-link { display:inline-flex; align-items:center; min-height:44px; color:#174f9c; font-weight:650; font-size:14px; text-underline-offset:4px; }
.page-shell .category-links { gap:0; }
.page-shell .sidebar .category-links a { min-height:48px; padding:11px 0; color:#263f60!important; font-size:14px; }
.page-shell .sidebar .category-links a span { color:#52657e!important; }
.page-shell .ad-slot { display:block; position:relative; width:100%; height:124px; min-height:124px; max-height:124px; margin:0; padding:0; overflow:hidden; border:1px solid #e0e7f1; border-radius:12px; background:#f7f9fc; box-shadow:none; contain:layout; }
.page-shell > .ad-slot-bottom { margin-top:24px; }
.ad-label { display:block; height:26px; padding:7px 12px 3px; color:#617086; font-size:10px; line-height:16px; letter-spacing:.08em; text-transform:uppercase; }
.ad-content { height:96px; overflow:hidden; }
.page-shell .ad-slot ins { display:inline-block; width:100%; height:90px; min-height:90px; }
.page-shell .ad-slot-custom { height:auto; max-height:none; overflow:visible; }
.ad-content-custom { height:auto; min-height:90px; overflow:visible; }
.page-shell .panel { padding:24px; }
.page-shell .panel h1 { margin:0 0 12px; font-size:28px; color:#172b45; line-height:1.25; }
.page-shell .panel h2 { margin:0 0 15px; font-size:22px; line-height:1.3; }
.page-shell .panel p { line-height:1.7; color:#405771; }
.page-shell .eyebrow { margin:0 0 8px; color:#174f9c; font-size:12px; font-weight:750; letter-spacing:.03em; }
.collection-count { display:inline-block; padding:7px 10px; color:#315272; background:#eef4ff; border-radius:6px; font-size:12px; }
.page-shell .category-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; margin-top:20px; }
.page-shell .category-tile { min-width:0; min-height:104px; padding:18px; background:#f2f6fc; color:#172b45; border:1px solid #dce5f1; border-radius:10px; box-shadow:none; text-decoration:none; }
.page-shell .category-tile strong { font-size:20px; }
.page-shell .category-tile span { color:#52657e; font-size:13px; }
.page-shell .category-tile:hover { background:#eaf2ff; border-color:#789cc9; }
.page-shell .pagination { display:flex; flex-wrap:wrap; align-items:center; justify-content:center; gap:6px; padding:18px 12px; border-top:1px solid #e0e7f1; margin:0; }
.page-item { display:inline-flex; align-items:center; gap:4px; }
.pagination-gap { padding:0 3px; }
.page-shell .page-link { display:inline-flex; justify-content:center; align-items:center; min-width:44px; min-height:44px; padding:8px; color:#244465; background:#fff; border:1px solid #c8d5e6; border-radius:8px; text-decoration:none; box-shadow:none; font-size:14px; }
.page-shell .page-link[aria-current="page"] { background:#1755a4; border-color:#1755a4; color:white; font-weight:750; }
.page-shell .breadcrumbs { margin:0 0 14px; color:#52657e; font-size:13px; }
.breadcrumbs ol { display:flex; flex-wrap:wrap; align-items:center; gap:3px 8px; padding:0; margin:0; list-style:none; }
.breadcrumbs li { display:flex; align-items:center; gap:8px; min-width:0; }
.breadcrumbs li+li::before { content:'›'; color:#617086; }
.breadcrumbs a { display:inline-flex; align-items:center; min-height:44px; color:#174f9c; text-underline-offset:3px; }
.breadcrumbs [aria-current="page"] { max-width:60ch; overflow-wrap:anywhere; }
.next-reading { display:flex; flex-wrap:wrap; align-items:center; gap:12px 18px; }
.page-shell .joke-tools { display:flex; flex-wrap:wrap; gap:8px; padding:18px 22px; margin:0; border-top:1px solid #dce5f1; }
.page-shell .joke-tools [role="status"] { flex-basis:100%; color:#405771; font-size:13px; }
.page-shell .joke-tools [role="status"]:empty { display:none; }
.page-shell .cms-form { display:grid; gap:16px; }
.page-shell .cms-form label { display:grid; gap:7px; color:#334966; font-size:14px; }
.page-shell .cms-form p { margin:0; }
.page-shell .cms-form .primary-button { justify-self:start; }
.page-shell .form-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:14px; }
.page-shell .site-footer { margin-top:30px; padding:28px; color:#d8e5f7; background:#153355; border:0; border-radius:16px 16px 0 0; box-shadow:none; }
.page-shell .footer-grid { display:grid; grid-template-columns:1.4fr repeat(3,1fr); gap:25px; }
.page-shell .footer-logo { color:#fff; font-size:21px; }
.page-shell .footer-brand p { color:#d3e0f0; font-size:13px; line-height:1.7; }
.page-shell .footer-links h2 { color:#fff; margin:0 0 7px; font-size:14px; text-transform:none; }
.page-shell .footer-links a { display:flex; align-items:center; min-height:44px; color:#d3e0f0; font-size:13px; text-decoration:none; }
.page-shell .footer-links a:hover { color:white; text-decoration:underline; }
.page-shell .footer-bottom { color:#d3e0f0; border-color:#45617f; margin-top:20px; font-size:12px; }
.page-shell .skip-link { position:fixed; top:8px; left:16px; z-index:10000; min-height:44px; padding:12px 16px; background:#fff; color:#103f82; border:2px solid #103f82; border-radius:8px; transform:translateY(-200%); }
.page-shell .skip-link:focus { transform:translateY(0); }
.migration-admin-main .review-list { display:grid; gap:16px; }
.migration-admin-main .review-item { padding:18px; border:1px solid #d5dfed; border-radius:10px; }
.review-item h3 { margin:0 0 8px; font-size:17px; }
.review-issues { display:flex; flex-wrap:wrap; gap:6px; }
.review-issues span { padding:4px 7px; background:#fff4d2; color:#654c12; border-radius:5px; font-size:12px; }
.migration-admin-main .review-preview { white-space:pre-line; line-height:1.6; color:#3e546e; }
@media(max-width:1000px) {
  .page-shell .hero { padding-inline:112px; }
  .page-shell .hero-mascot { width:84px; height:110px; }
  .page-shell .public-layout { grid-template-columns:minmax(0,1fr) 260px; gap:18px; }
  .page-shell .public-layout-full { grid-template-columns:1fr; }
  .page-shell .daily-body-grid { grid-template-columns:minmax(0,1fr) 70px; gap:14px; padding:20px; }
  .page-shell .daily-body-grid>.avatar { width:70px; height:94px; }
  .page-shell .nav-links>a { font-size:13px; gap:4px; }
}
@media(max-width:820px) {
  .page-shell .public-layout { grid-template-columns:1fr; }
  .page-shell .sidebar { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .page-shell .footer-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .page-shell .hero-invitation p { font-size:15px; }
  .page-shell .hero-invitation strong { font-size:18px; }
}
@media(max-width:640px) {
  .page-shell { width:calc(100% - 24px); margin-top:12px; }
  .page-shell .hero { min-height:154px; padding:18px 22px; border-radius:16px 16px 0 0; gap:8px; }
  .page-shell .brand-line-main { font-size:31px; }
  .page-shell .brand-line-secondary { font-size:39px; }
  .page-shell .brand-domain { font-size:20px; }
  .page-shell .hero .brand-tagline { font-size:12px; margin-top:8px; }
  .page-shell .hero-mascot-left { display:none; }
  .page-shell .hero-mascot-right { display:block; width:92px; height:114px; right:8px; }
  .hero-invitation { display:none; }
  .page-shell .main-nav { display:flex; justify-content:space-between; flex-wrap:wrap; align-items:center; padding:6px 9px; margin-bottom:14px; }
  .nav-toggle, .mobile-random { display:inline-flex; align-items:center; justify-content:center; gap:9px; min-height:44px; padding:9px 12px; color:#174f9c; background:#eaf2ff; border:0; border-radius:8px; font-size:14px; font-weight:700; text-decoration:none; }
  .nav-toggle>span { font-size:20px; line-height:1; }
  .mobile-random { color:#314762; background:#fff5d6; }
  .nav-links { display:none; flex-basis:100%; grid-template-columns:repeat(2,minmax(0,1fr)); padding:9px 0 2px; }
  .main-nav[data-open="true"] .nav-links { display:grid; }
  .page-shell .nav-links>a { justify-content:flex-start; min-height:48px; font-size:14px; }
  .page-shell .search-panel { padding:12px; margin-bottom:16px; }
  .page-shell .search-row { gap:7px; flex-wrap:wrap; }
  .page-shell .search-row input { flex:1 1 120px; width:0; padding:10px; }
  .page-shell .search-row .small-button { padding:10px; }
  .page-shell .daily-head { padding:12px 15px; gap:7px; }
  .page-shell .daily-title-label { font-size:15px; }
  .page-shell .daily-title-label span { font-size:21px; }
  .page-shell .daily-body-grid { display:block; padding:18px 16px; }
  .page-shell .daily-body-grid>.avatar { display:none; }
  .page-shell .daily-joke-title { font-size:24px; }
  .page-shell .joke-lines, .page-shell .daily-card .joke-lines { font-size:18px; line-height:1.65; }
  .page-shell .joke-row { padding:19px 16px; }
  .page-shell .row-title { font-size:20px; }
  .page-shell .row-body-grid { display:block; }
  .page-shell .row-body-grid>.avatar { display:none; }
  .page-shell .joke-row .joke-lines { font-size:17px; }
  .page-shell .row-actions { gap:6px; }
  .page-shell .row-actions .action-button { padding:10px; font-size:13px; }
  .page-shell .section-ribbon { padding:16px; }
  .page-shell .section-ribbon h2 { font-size:18px; }
  .page-shell .sidebar, .page-shell .form-grid { grid-template-columns:1fr; }
  .page-shell .panel { padding:20px 16px; }
  .page-shell .panel h1 { font-size:25px; }
  .page-shell .category-grid { grid-template-columns:1fr; }
  .page-shell .site-footer { padding:24px 18px; }
  .page-shell .footer-grid { gap:24px 16px; }
  .page-shell .footer-brand { grid-column:1/-1; }
  .page-shell .joke-tools { padding:16px; }
  .page-shell .breadcrumbs { font-size:12px; }
}
@media(prefers-reduced-motion:reduce) {
  *, *::before, *::after { scroll-behavior:auto!important; transition:none!important; animation:none!important; }
}
@media(forced-colors:active) {
  :where(a,button,input,select,textarea,summary):focus-visible { outline:3px solid Highlight; }
  .page-shell a[aria-current="page"] { border:2px solid Highlight; }
}
@media print {
  .page-shell { width:100%; margin:0; }
  .page-shell :is(.hero,.main-nav,.search-panel,.sidebar,.ad-slot,.site-footer,.row-actions,.tag-list,.joke-tools,.comments-card,.recent-card,.next-reading,.breadcrumbs,.skip-link) { display:none!important; }
  .page-shell .public-layout { display:block; }
  .page-shell .daily-card { border:0; box-shadow:none; }
  .page-shell .daily-body-grid { display:block; }
  .page-shell .daily-body-grid>.avatar { display:none; }
}
