html:has(.content-page) {
  background: #132c46;
}
.content-page {
  background: #132c46;
  color: #132752;
}
.content-shell {
  max-width: 520px;
  margin: 0 auto;
  background: #fff;
  min-height: 100svh;
  padding-bottom: calc(92px + env(safe-area-inset-bottom, 0px));
  box-shadow: 0 0 60px #00122444;
}
.content-hero {
  position: relative;
  height: calc(265px + env(safe-area-inset-top, 0px));
  color: white;
  background-image: linear-gradient(#09295055, #071b3010 65%, #00182b25), var(--hero);
  background-position: center;
  background-size: cover;
  padding-top: env(safe-area-inset-top, 0px);
}
.back-home {
  position: absolute;
  left: 12px;
  top: calc(12px + env(safe-area-inset-top, 0px));
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  font-size: 40px;
  text-decoration: none;
  font-weight: 300;
  line-height: 1;
  text-shadow: 0 1px 6px #0008;
}
.hero-note {
  position: absolute;
  right: 23px;
  top: calc(17px + env(safe-area-inset-top, 0px));
  font:
    italic 17px/1.5 "Segoe Print",
    "Bradley Hand",
    cursive;
  transform: rotate(-12deg);
  margin: 0;
  text-shadow: 0 2px 5px #0007;
}
.hero-note:after {
  content: "";
  display: block;
  width: 65%;
  height: 1px;
  background: white;
  margin: 5px 0 0 auto;
}
.content-heading {
  text-align: center;
  padding: 79px 18px 0;
  text-shadow: 0 2px 12px #001c42;
}
.content-heading h1 {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  font-size: 31px;
  line-height: 1.2;
  margin: 0 0 9px;
}
.content-heading svg {
  width: 40px;
  height: 40px;
}
.content-heading p {
  font-size: 14px;
  margin: 0;
  font-weight: 600;
}
.content-body {
  padding: 0 14px 20px;
}
.channel-banner {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: -7px;
  border: 1px solid #ffffffaa;
  border-radius: 13px;
  padding: 12px 13px;
  color: white;
  text-decoration: none;
  min-height: 88px;
  box-shadow: 0 3px 12px #091c3012;
}
.instagram-banner {
  background:
    radial-gradient(ellipse at 0 120%, #ffcf4e, transparent 45%),
    linear-gradient(120deg, #ab17d6, #fa247e 65%, #a95ce0);
}
.youtube-banner {
  background: linear-gradient(115deg, #e70017, #ff1528 70%, #f33c39);
}
.channel-banner > svg {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  stroke-width: 2.3;
}
.instagram-banner .ig-dot {
  fill: white;
  stroke: none;
}
.youtube-banner > svg {
  fill: white;
  stroke: none;
}
.youtube-banner > svg path {
  fill: #f01222;
}
.channel-copy {
  flex: 1;
}
.channel-copy strong {
  display: block;
  font-size: 20px;
  line-height: 1.25;
  margin-bottom: 4px;
}
.channel-copy > span {
  font-size: 11px;
  line-height: 1.5;
  display: block;
}
.channel-avatar {
  width: 62px;
  height: 62px;
  border: 2px solid white;
  border-radius: 50%;
  object-fit: cover;
}
.channel-banner > span:last-child {
  font-size: 30px;
}
.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 21px;
}
.section-heading h2 {
  font-size: 18px;
  margin: 0;
  letter-spacing: -0.035em;
}
.section-heading a {
  font-size: 12px;
  text-decoration: none;
  color: #0065e5;
  min-height: 44px;
  display: flex;
  align-items: center;
  gap: 5px;
}
.sample-note {
  font-size: 10px;
  color: #687b99;
  margin: 0 0 7px;
}
.post-card {
  display: flex;
  width: 100%;
  gap: 13px;
  text-align: left;
  padding: 14px 0;
  border: 0;
  border-bottom: 1px solid #e1e8f2;
  background: white;
  color: inherit;
  font: inherit;
  cursor: pointer;
}
.post-image {
  position: relative;
  flex: 0 0 35%;
  align-self: flex-start;
  aspect-ratio: 1.1;
  overflow: hidden;
  border-radius: 10px;
}
.post-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.post-card:nth-child(2) .post-image img {
  object-position: 70% center;
}
.post-copy {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
  min-width: 0;
}
.post-copy strong {
  font-size: 14px;
  line-height: 1.5;
}
.post-copy small {
  font-size: 11px;
  color: #6d7fa3;
}
.post-copy > span {
  font-size: 12px;
  line-height: 1.7;
  color: #354d76;
}
.post-arrow {
  align-self: center;
  color: #899ab3;
}
.play-mark {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: white;
  font-size: 27px;
  text-shadow: 0 2px 8px #000;
}
.page-message {
  text-align: center;
  padding: 25px 10px 14px;
}
.page-message p {
  font-family: "Yu Mincho", serif;
  font-size: 15px;
  margin: 0 0 7px;
}
.page-message span {
  font-size: 11px;
  color: #697c97;
}
.content-copyright {
  display: block;
  text-align: center;
  font-size: 10px;
  color: #7b8ba4;
  margin-top: 14px;
}
.bottom-nav {
  position: fixed;
  z-index: 5;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(100%, 520px);
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  padding: 11px 12px calc(10px + env(safe-area-inset-bottom, 0px));
  border-radius: 23px 23px 0 0;
  border-top: 1px solid #b0d6ff66;
  background: linear-gradient(120deg, #102b39ee, #173756f2);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 -5px 22px #102b3920;
}
.bottom-nav a {
  color: white;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 58px;
  font-size: 11px;
  border-radius: 14px;
}
.bottom-nav svg {
  width: 28px;
  height: 28px;
}
.bottom-nav a[aria-current="page"] {
  background: radial-gradient(ellipse, #0077ff 0, #0077ff77 45%, #0077ff00 72%);
  text-shadow: 0 0 8px #329cff;
}
.bottom-nav a[aria-current="page"] svg {
  filter: drop-shadow(0 0 6px #00a2ff);
}
@media (hover: hover) {
  .post-card:hover {
    background: #f4f8ff;
  }
  .channel-banner:hover {
    filter: brightness(1.06);
  }
  .bottom-nav a:hover {
    background-color: #ffffff15;
  }
}
@media (max-width: 359px) {
  .channel-banner {
    gap: 8px;
    padding: 11px 9px;
  }
  .channel-avatar {
    width: 45px;
    height: 45px;
  }
  .channel-banner > svg {
    width: 34px;
  }
  .channel-copy strong {
    font-size: 18px;
  }
  .channel-copy > span {
    font-size: 10px;
  }
  .post-copy strong {
    font-size: 13px;
  }
  .post-copy > span {
    font-size: 11px;
  }
  .content-heading p {
    font-size: 12px;
  }
}
@media (min-width: 700px) {
  .content-hero {
    height: 300px;
  }
  .content-heading {
    padding-top: 105px;
  }
  .content-body {
    padding-left: 22px;
    padding-right: 22px;
  }
  .post-card {
    padding: 18px 0;
  }
  .post-image {
    aspect-ratio: 1.3;
  }
}
/* Fluid content pages; compact chrome leaves more room for posts. */
.content-shell {
  width: 100%;
  max-width: none;
  padding-bottom: calc(70px + env(safe-area-inset-bottom, 0px));
  box-shadow: none;
}
.content-hero {
  height: auto;
  padding-top: env(safe-area-inset-top, 0px);
  background: #132c46;
  overflow: hidden;
}
.banner-image {
  display: block;
  width: 100%;
  max-width: none;
  height: auto;
  max-height: 280px;
  margin: auto;
  object-fit: contain;
  object-position: center;
}
.back-home {
  top: auto;
  bottom: 7px;
  left: max(10px, env(safe-area-inset-left));
  width: auto;
  min-width: 44px;
  height: 32px;
  padding: 0 12px;
  display: flex;
  gap: 6px;
  border-radius: 18px;
  background: #051729b3;
  font-size: 27px;
  backdrop-filter: blur(6px);
}
.back-home span {
  font-size: 11px;
}
.content-body {
  width: 100%;
  padding: 0 max(16px, env(safe-area-inset-right)) 20px max(16px, env(safe-area-inset-left));
}
.channel-banner {
  min-height: 56px;
  margin-top: 0;
  padding: 7px 12px;
  gap: 10px;
  border-radius: 0 0 11px 11px;
}
.channel-banner > svg {
  width: 30px;
  height: 30px;
}
.channel-avatar {
  width: 36px;
  height: 36px;
  border-width: 1px;
}
.channel-copy strong {
  font-size: 16px;
  margin-bottom: 1px;
}
.channel-copy > span {
  font-size: 10px;
  line-height: 1.4;
}
.channel-banner > span:last-child {
  font-size: 24px;
}
.section-heading {
  margin-top: 12px;
  gap: 12px;
}
.section-heading h1 {
  font-size: clamp(18px, 2.4vw, 26px);
  margin: 0;
  line-height: 1.4;
}
.sample-note {
  margin-top: 7px;
}
.post-card {
  text-decoration: none;
  padding: 12px 0;
}
.post-image {
  flex-basis: 30%;
  aspect-ratio: 1.35;
}
.post-copy strong {
  font-size: clamp(14px, 1.5vw, 18px);
}
.post-copy > span {
  font-size: clamp(12px, 1.2vw, 15px);
}
.bottom-nav {
  width: 100%;
  border-radius: 15px 15px 0 0;
  padding: 4px max(12px, env(safe-area-inset-right)) calc(4px + env(safe-area-inset-bottom, 0px))
    max(12px, env(safe-area-inset-left));
}
.bottom-nav a {
  min-height: 44px;
  gap: 3px;
  font-size: 10px;
}
.bottom-nav svg {
  width: 22px;
  height: 22px;
}
.post-count {
  font-size: 12px;
  color: #71819c;
}
.return-link,
.article-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: #0065d9;
  font-size: 13px;
  text-decoration: none;
}
.return-link {
  margin-top: 20px;
}
.article-detail {
  max-width: 900px;
  margin: 0 auto;
  padding-top: 16px;
}
.breadcrumbs {
  font-size: 12px;
  margin-bottom: 20px;
}
.breadcrumbs a {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  color: #466183;
}
.article-detail h1 {
  font-size: clamp(23px, 3vw, 36px);
  line-height: 1.5;
  margin: 12px 0;
}
.article-lead {
  font-size: 15px;
  line-height: 1.8;
  color: #526785;
}
.article-image {
  display: block;
  width: 100%;
  max-height: 430px;
  object-fit: cover;
  border-radius: 12px;
  margin: 22px 0;
}
.article-text {
  font-size: 15px;
  line-height: 2;
}
.article-text h2 {
  font-size: 20px;
}
.sample-disclosure {
  padding: 16px;
  background: #f0f5fa;
  border-radius: 10px;
  font-size: 12px;
  color: #60738b;
}
.article-links {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin: 20px 0;
}
.post-section {
  scroll-margin-top: 12px;
}
@media (min-width: 700px) {
  .content-body {
    padding-left: 4vw;
    padding-right: 4vw;
  }
  .post-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
  }
  .post-card {
    min-width: 0;
  }
  .post-image {
    aspect-ratio: 1.2;
  }
  .channel-banner {
    padding: 8px 20px;
  }
  .channel-copy > span {
    font-size: 12px;
  }
  .channel-copy strong {
    font-size: 17px;
  }
  .bottom-nav {
    padding-left: 20vw;
    padding-right: 20vw;
  }
}
@media (max-width: 359px) {
  .channel-avatar {
    width: 32px;
    height: 32px;
  }
  .channel-banner > svg {
    width: 26px;
  }
  .channel-copy strong {
    font-size: 15px;
  }
  .channel-copy > span {
    font-size: 9px;
  }
  .post-card {
    gap: 9px;
  }
  .post-copy > span {
    font-size: 11px;
  }
}

/* Shared navigation on Home; preserve space for its fixed safe-area footer. */
.home-page .room {
  padding-bottom: calc(64px + env(safe-area-inset-bottom, 0px));
}
.content-hero .back-home {
  position: static;
  width: max-content;
  height: 32px;
  margin: 0 10px;
  background: transparent;
  backdrop-filter: none;
}
/* Actual photos retain their full composition; video thumbnails link to YouTube. */
.photo-detail {
  height: auto;
  max-height: none;
  object-fit: contain;
}
.video-preview {
  display: block;
  position: relative;
}
.video-preview .article-image {
  aspect-ratio: 16/9;
  object-fit: contain;
  background: #07172b;
}
.video-play {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 48px;
  text-shadow: 0 2px 15px #000;
}
.watch-video {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 10px 20px;
  border-radius: 9px;
  background: #ed1428;
  color: #fff;
  text-decoration: none;
  font-weight: 600;
}
/* Soft category backgrounds and distinct, readable content cards. */
.camera-page {
  --page-tint: #f5effb;
  --page-end: #eae0f5;
}
.game-page {
  --page-tint: #fff1ed;
  --page-end: #fbe0de;
}
.learn-page {
  --page-tint: #eaf8ef;
  --page-end: #ddf2e9;
}
.content-page .content-shell {
  background: linear-gradient(160deg, var(--page-tint), var(--page-end));
}
.content-page .post-list {
  gap: 12px;
}
.content-page .post-card {
  background: #ffffffed;
  border: 1px solid #ffffffa8;
  border-radius: 15px;
  padding: 13px;
  margin-top: 12px;
  box-shadow: 0 3px 16px #22446005;
}
.content-page .article-text {
  background: #ffffffb8;
  padding: 18px 22px;
  border-radius: 16px;
}
.content-page .channel-banner {
  margin-top: 9px;
  border-radius: 12px;
}
.bottom-nav.has-search {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  align-items: center;
}
.search-trigger {
  justify-self: center;
  position: relative;
  display: grid;
  place-items: center;
  width: 61px;
  height: 61px;
  margin-top: -18px;
  border: 4px solid #ac85ff;
  border-radius: 50%;
  color: white;
  background: linear-gradient(135deg, #158bff, #204bff);
  box-shadow:
    0 0 15px #7774ff,
    0 0 24px #168cff80;
  cursor: pointer;
}
.search-trigger svg {
  width: 28px;
  height: 28px;
}
.search-trigger-label,
.search-label {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.search-open {
  overflow: hidden;
}
.search-panel {
  width: min(92vw, 490px);
  max-height: min(75dvh, 660px);
  padding: 20px;
  border: 1px solid #ffffff;
  border-radius: 23px;
  background: #fcfbff;
  color: #193450;
  box-shadow: 0 24px 80px #071e4566;
}
.search-panel::backdrop {
  background: #061c4266;
  backdrop-filter: blur(7px);
}
.search-panel-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.search-panel-heading h2 {
  margin: 0;
  font-size: 19px;
}
.search-close,
.search-clear {
  background: none;
  border: 0;
  color: #193450;
  min-width: 44px;
  min-height: 44px;
  font-size: 25px;
  cursor: pointer;
}
.search-field {
  display: flex;
  align-items: center;
  gap: 9px;
  background: #eeeef7;
  border-radius: 25px;
  padding: 0 10px 0 15px;
  margin-top: 12px;
}
.search-field > svg {
  width: 21px;
  height: 21px;
  flex-shrink: 0;
}
.search-field input {
  width: 100%;
  min-width: 0;
  min-height: 48px;
  border: 0;
  background: transparent;
  color: #193450;
  font: inherit;
  font-size: 16px;
}
.search-field:focus-within {
  outline: 2px solid #397df1;
  outline-offset: 2px;
}
.search-field input:focus {
  outline: 0;
}
.search-count {
  font-size: 12px;
  color: #586881;
  margin: 15px 2px 7px;
}
.search-results {
  list-style: none;
  padding: 0;
  margin: 0;
}
.search-results a {
  display: flex;
  gap: 13px;
  align-items: center;
  min-height: 61px;
  padding: 12px 3px;
  color: #193450;
  text-decoration: none;
  border-bottom: 1px solid #e6e9f1;
}
.search-results a > svg {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}
.search-results a > span:first-of-type {
  flex: 1;
  min-width: 0;
}
.search-results strong {
  display: block;
  font-size: 14px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}
.search-results small {
  display: block;
  font-size: 11px;
  line-height: 1.6;
  color: #6d7890;
  margin-top: 3px;
}
.search-results a:hover {
  background: #edf2ff;
}
@media (min-width: 700px) {
  .content-page .post-card {
    margin-top: 0;
  }
  .content-page .post-list {
    gap: 18px;
    margin-top: 12px;
  }
}
