/*
Theme Name: SkytreeCorp Blogger Edition
Version: 1.0
Author: Sourajit Saha
*/

/* SkytreeCorp — independent Blogger implementation, Note reference layout. */
:root {
  --bg: #fff;
  --text: #15151a;
  --muted: #595960;
  --line: #e7e7eb;
  --accent: #00bfff;
  --accent-soft: #e7f8ff;
  --g1: #07364f;
  --g2: #008ac0;
  --panel: #fff;
  --lime: #00bfff;
  --heading: 'Bricolage Grotesque', sans-serif;
  --body: Inter, Arial, sans-serif;
  color-scheme: light
}

html.dark {
  --bg: #101114;
  --text: #f4f4f5;
  --muted: #bcbcc3;
  --line: #303137;
  --accent: #00bfff;
  --accent-soft: #132b36;
  --g1: #152331;
  --g2: #333;
  --panel: #1b1c21;
  color-scheme: dark
}

* {
  box-sizing: border-box
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 24px
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 14px/1.5 var(--body);
  overflow-wrap: break-word
}

a {
  color: inherit;
  text-decoration: none
}

button,
input {
  font: inherit
}

button,
a,
input {
  touch-action: manipulation
}

button {
  cursor: pointer
}

img {
  display: block;
  max-width: 100%;
  height: auto
}

svg {
  display: block;
  width: 22px;
  height: 22px
}

h1,
h2,
h3,
h4 {
  font-family: var(--heading);
  line-height: 1.2;
  margin: 0
}

p {
  margin: 0
}

a:hover {
  color: var(--accent)
}

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 5px
}

button {
  color: inherit
}

.wrap {
  width: 100%;
  max-width: 1280px;
  margin: auto;
  padding: 0 24px
}

.skip {
  position: fixed;
  left: 16px;
  top: -70px;
  z-index: 100;
  background: var(--panel);
  padding: 12px 20px
}

.skip:focus {
  top: 12px
}

.masthead {
  background: linear-gradient(120deg, var(--g1), var(--g2));
  color: #fff
}

.topbar {
  min-height: 80px;
  display: flex;
  align-items: center;
  gap: 32px
}

.brand {
  font: 800 29px/1 var(--heading);
  letter-spacing: -1.3px;
  white-space: nowrap;
  color: #fff
}

.brand span {
  font-weight: 500;
  opacity: .76
}

.brand:hover {
  color: #fff
}

.navigation {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 30px;
  margin-left: auto
}

.navigation>a,
.network>summary {
  font-size: 14px;
  font-weight: 500;
  color: #fff
}

.navigation a:hover {
  text-decoration: underline;
  text-underline-offset: 5px
}

.network {
  position: relative
}

.network>summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  gap: 7px;
  align-items: center;
  padding: 12px 0
}

.network>summary::-webkit-details-marker {
  display: none
}

.network>summary:after {
  content: '';
  border-right: 1.5px solid;
  border-bottom: 1.5px solid;
  width: 5px;
  height: 5px;
  transform: rotate(45deg);
  margin-top: -3px
}

.dropdown {
  position: absolute;
  z-index: 30;
  top: 100%;
  left: -18px;
  min-width: 226px;
  padding: 10px;
  background: var(--panel);
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 16px 40px #0002
}

.dropdown a {
  display: block;
  padding: 11px 12px;
  border-radius: 6px
}

.dropdown a:hover {
  background: var(--accent-soft);
  color: var(--accent);
  text-decoration: none
}

.actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: auto
}

.icon-button {
  border: 0;
  background: transparent;
  padding: 8px;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  width: 38px;
  height: 38px
}

.icon-button:hover {
  background: #ffffff16
}

.menu-toggle {
  display: none
}

.sun {
  display: none
}

.dark .sun {
  display: block
}

.dark .moon {
  display: none
}

.hero {
  padding: 96px 24px;
  display: flex;
  align-items: center;
  flex-direction: column;
  text-align: center;
  gap: 16px
}

.emblem {
  height: 96px;
  width: 96px;
  background: #ffffff12;
  border: 3px solid #ffffff33;
  border-radius: 50%;
  display: grid;
  place-items: center
}

.emblem svg {
  height: 80px;
  width: 80px
}

.hero h1 {
  font-size: 36px;
  font-weight: 700;
  letter-spacing: -.7px
}

.hero p {
  font-size: 18px;
  line-height: 1.55;
  max-width: 450px;
  font-weight: 500;
  color: #ffffffde
}

.hero-search {
  width: 100%;
  max-width: 576px;
  margin-top: 0;
  position: relative
}

.hero-search input {
  width: 100%;
  padding: 17px 58px 17px 24px;
  border: 1px solid #ffffff33;
  background: #ffffff1a;
  border-radius: 8px;
  color: #fff;
  outline-offset: 4px;
  min-height: 55px
}

.hero-search input::placeholder {
  color: #ffffffca
}

.hero-search button {
  position: absolute;
  right: 14px;
  top: 10px;
  border: 0;
  background: none;
  color: #ffffffcc;
  padding: 8px
}

.hero-search svg {
  width: 18px;
  height: 18px
}

.section-title {
  font-size: 18px;
  font-weight: 700;
  padding: 32px 0
}

.post-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 56px 32px;
  padding-bottom: 48px
}

.post-card {
  min-width: 0;
  display: flex;
  flex-direction: column
}

.card-image {
  aspect-ratio: 4/3;
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  background: var(--accent-soft);
  margin-bottom: 16px;
  display: block
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .3s
}

.post-card:hover .card-image img {
  transform: scale(1.03)
}

.image-fallback {
  display: grid;
  width: 100%;
  height: 100%;
  place-items: center;
  color: var(--accent);
  background: linear-gradient(135deg, var(--accent-soft), var(--line))
}

.image-fallback svg {
  width: 90px;
  height: 90px
}

.featured-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  padding: 4px 12px;
  border-radius: 30px;
  background: var(--lime);
  color: #111;
  font-size: 12px;
  font-weight: 700;
  z-index: 1
}

.card-labels {
  min-height: 32px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .6px
}

.card-labels a:not(:first-child) {
  display: none
}

.post-card h3 {
  font-size: 20px;
  line-height: 1.25;
  font-weight: 800;
  margin: 4px 0 16px
}

.post-card h3 a:hover {
  text-decoration: underline;
  text-underline-offset: 3px
}

.card-excerpt {
  font-size: 14px;
  line-height: 1.45;
  color: var(--muted);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 18px
}

.card-meta {
  margin-top: auto;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase
}

.pagination {
  text-align: center;
  margin: 0 0 64px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap
}

.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: 30px;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  padding: 13px 27px;
  min-height: 46px
}

.dark .pill {
  color: #111
}

.pill:hover {
  filter: brightness(1.08);
  color: #fff
}

.dark .pill:hover {
  color: #111
}

.plain {
  background: var(--accent-soft);
  color: var(--accent)
}

.empty {
  padding: 64px 24px;
  text-align: center;
  grid-column: 1/-1
}

.empty h2 {
  font-size: 28px;
  margin-bottom: 14px
}

.empty p {
  color: var(--muted);
  max-width: 520px;
  margin: auto
}

.article-heading {
  background: linear-gradient(120deg, var(--g1), var(--g2));
  color: #fff;
  padding: 110px 24px 60px;
  text-align: center
}

.article-heading h1 {
  font-size: 48px;
  font-weight: 700;
  max-width: 900px;
  margin: 0 auto 22px;
  letter-spacing: -1.1px
}

.article-heading .post-meta {
  font-size: 13px;
  opacity: .8;
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap
}

.article-cover {
  max-width: 1120px;
  padding: 0 16px;
  margin: 0 auto 48px;
  background: linear-gradient(var(--g2) 45%, var(--bg) 45%)
}

.article-cover img {
  width: 100%;
  max-height: 650px;
  object-fit: cover;
  border-radius: 16px
}

.article-content {
  font-size: 18px;
  line-height: 1.85;
  max-width: 788px;
  padding: 48px 24px;
  margin: auto
}

.article-content h2 {
  font-size: 30px;
  margin: 40px 0 18px
}

.article-content h3 {
  font-size: 24px;
  margin: 32px 0 16px
}

.article-content p,
.article-content ul,
.article-content ol,
.article-content blockquote,
.article-content pre,
.article-content table {
  margin: 0 0 24px
}

.article-content a {
  font-weight: 600;
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px
}

.article-content img {
  margin: 24px auto;
  border-radius: 12px;
  height: auto
}

.article-content iframe {
  max-width: 100%
}

.article-content blockquote {
  border-left: 4px solid var(--accent);
  padding: 10px 24px;
  color: var(--muted);
  font-style: italic
}

.article-content pre {
  padding: 20px;
  background: var(--accent-soft);
  border-radius: 12px;
  overflow: auto;
  font-size: 14px
}

.article-content code {
  font-family: ui-monospace, monospace
}

.article-content table {
  width: 100%;
  border-collapse: collapse;
  display: block;
  overflow: auto;
  font-size: 15px
}

.article-content th,
.article-content td {
  padding: 12px;
  border: 1px solid var(--line);
  text-align: left
}

.post-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 32px
}

.post-tags a {
  font-size: 12px;
  text-decoration: none;
  padding: 6px 14px;
  border: 1px solid var(--line);
  border-radius: 24px
}

.post-links {
  max-width: 788px;
  margin: 12px auto 48px;
  display: flex;
  justify-content: space-between;
  padding: 0 24px;
  gap: 16px
}

.related-section {
  border-top: 1px solid var(--line);
  padding-top: 10px
}

.related-section[hidden] {
  display: none
}

.static-page .article-heading {
  padding: 72px 24px
}

.static-page .article-heading h1 {
  margin: 0 auto
}

.static-page .article-content {
  padding-top: 56px
}

.site-footer {
  border-top: 1px solid var(--line);
  margin-top: 24px;
  padding: 48px 0 24px
}

.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px
}

.footer-brand {
  font: 800 28px/1 var(--heading);
  letter-spacing: -1px
}

.footer-description {
  font-size: 14px;
  color: var(--muted);
  max-width: 360px;
  margin: 16px 0
}

.footer-top h3 {
  font-size: 16px;
  margin-bottom: 16px
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 14px;
  color: var(--muted)
}

.parent {
  font-size: 13px;
  color: var(--muted)
}

.parent a {
  font-weight: 600
}

.footer-bottom {
  border-top: 1px solid var(--line);
  margin-top: 36px;
  padding-top: 22px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: var(--muted);
  font-size: 12px
}

.social-links {
  display: flex;
  gap: 16px
}

.back-top {
  position: fixed;
  right: 28px;
  bottom: 20px;
  z-index: 20;
  background: var(--accent);
  color: #fff;
  border: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center
}

.dark .back-top {
  color: #111
}

.back-top[hidden] {
  display: none
}

.search-dialog {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--panel);
  color: var(--text);
  width: min(580px, calc(100% - 32px));
  box-shadow: 0 20px 80px #0005
}

.search-dialog::backdrop {
  background: #0009
}

.search-dialog h2 {
  font-size: 24px;
  margin: 0 0 22px
}

.search-dialog .close {
  float: right;
  border: 0;
  background: transparent;
  color: var(--text);
  font-size: 25px;
  padding: 0 5px
}

.search-dialog form {
  display: flex;
  gap: 10px
}

.search-dialog input {
  width: 100%;
  min-width: 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--bg);
  color: var(--text)
}

.status {
  color: var(--muted);
  font-size: 13px;
  text-align: center;
  margin: 0 0 16px
}

@media(min-width:1280px) {
  .wrap {
    padding: 0 24px
  }
}

@media(max-width:1023px) {
  .navigation {
    gap: 18px
  }

  .brand {
    font-size: 25px
  }

  .topbar {
    gap: 18px
  }

  .post-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr))
  }

  .article-heading h1 {
    font-size: 40px
  }
}

@media(max-width:760px) {
  .wrap {
    padding: 0 20px
  }

  .topbar {
    min-height: 72px;
    flex-wrap: wrap;
    position: relative;
    gap: 10px
  }

  .brand {
    font-size: 25px
  }

  .menu-toggle {
    display: flex
  }

  .navigation {
    display: none;
    order: 3;
    width: 100%;
    padding: 14px 0 22px;
    margin: 0;
    align-items: stretch;
    gap: 4px;
    flex-direction: column
  }

  .navigation.is-open {
    display: flex
  }

  .navigation>a {
    padding: 10px 0
  }

  .network>summary {
    padding: 10px 0
  }

  .dropdown {
    position: static;
    box-shadow: none;
    margin: 8px 0
  }

  .actions {
    gap: 2px
  }

  .hero {
    padding: 68px 20px;
    gap: 16px
  }

  .hero h1 {
    font-size: 32px
  }

  .hero p {
    font-size: 17px
  }

  .hero-search input {
    padding-left: 18px
  }

  .article-heading {
    padding: 65px 20px 40px
  }

  .article-heading h1 {
    font-size: 34px;
    letter-spacing: -.6px
  }

  .article-content {
    font-size: 17px;
    padding: 32px 20px
  }

  .article-content h2 {
    font-size: 26px
  }

  .footer-top {
    grid-template-columns: 1fr 1fr;
    gap: 32px
  }

  .footer-intro {
    grid-column: 1/-1
  }

  .footer-bottom {
    flex-direction: column
  }

  .post-links {
    padding: 0 20px;
    flex-wrap: wrap
  }

  .related-section .post-grid .post-card:last-child {
    display: none
  }
}

@media(max-width:539px) {
  .post-grid {
    grid-template-columns: 1fr;
    gap: 40px
  }

  .post-card h3 {
    font-size: 22px
  }

  .card-excerpt {
    font-size: 15px
  }

  .card-image {
    aspect-ratio: 4/3
  }

  .search-dialog form {
    flex-wrap: wrap
  }

  .search-dialog .pill {
    width: 100%
  }

  .back-top {
    right: 16px
  }

  .related-section .post-grid .post-card:last-child {
    display: flex
  }

  .article-heading h1 {
    font-size: 31px
  }

  .footer-top {
    gap: 28px 20px
  }
}

@media(prefers-reduced-motion:reduce) {
  html {
    scroll-behavior: auto
  }

  * {
    transition: none !important;
    animation: none !important
  }
}

/* v2: Blogger-safe controls, cyan palette and a permanent dark footer. */
.topbar {
  gap: 22px
}

.navigation {
  gap: 24px
}

.navigation>a,
.network>summary {
  font-weight: 700
}

.actions {
  gap: 10px
}

.icon-button svg {
  stroke-width: 2
}

.header-search {
  width: 230px;
  position: relative;
  flex-shrink: 1
}

.header-search input {
  width: 100%;
  height: 42px;
  border: 2px solid #00bfff;
  border-radius: 24px;
  padding: 9px 15px 9px 40px;
  background: #fff;
  color: #17212b;
  font-size: 13px
}

.header-search input::placeholder {
  color: #63717e
}

.header-search button {
  position: absolute;
  left: 7px;
  top: 5px;
  width: 30px;
  height: 32px;
  background: none;
  border: 0;
  color: #007eaa;
  display: grid;
  place-items: center;
  padding: 5px
}

.header-search svg {
  width: 18px;
  height: 18px;
  stroke-width: 2
}

.dark .header-search input {
  background: #111823;
  color: #f4f7fa
}

.dark .header-search input::placeholder {
  color: #aeb7c3
}

.dark .header-search button {
  color: #00bfff
}

#theme-toggle {
  background: #ffffff0d;
  border: 1px solid #ffffff30;
  border-radius: 12px;
  width: 42px;
  height: 42px;
  color: #fff
}

.brand span {
  font-weight: 700
}

.topic-strip {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  flex-wrap: wrap;
  margin-top: 12px;
  color: #fff;
  font-size: 15px;
  font-weight: 700
}

.topic-strip a:hover {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 5px
}

.topic-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #00bfff;
  display: inline-block;
  flex-shrink: 0
}

.hero p {
  max-width: 480px
}

.site-footer {
  background: #101114;
  color: #f4f4f5;
  border-color: #303137
}

.site-footer .footer-description,
.site-footer .parent,
.site-footer .footer-links,
.site-footer .footer-bottom {
  color: #bcbcc3
}

.site-footer .footer-bottom {
  border-color: #303137
}

.site-footer a:hover {
  color: #00bfff
}

.site-footer .parent strong {
  color: #f4f4f5;
  font-weight: 600
}

.pill,
.back-top {
  color: #062332
}

.pill:hover {
  color: #062332
}

.plain {
  color: #007da8
}

.dark .plain {
  color: #00bfff
}

.emblem {
  border: 0;
  background: transparent
}

.emblem svg {
  width: 96px;
  height: 96px
}

.single-post .article-content:empty {
  min-height: 100px
}

@media(max-width:1120px) and (min-width:761px) {
  .topbar {
    gap: 14px
  }

  .navigation {
    gap: 17px
  }

  .header-search {
    width: 175px
  }

  .brand {
    font-size: 25px
  }
}

@media(max-width:920px) and (min-width:761px) {
  .header-search {
    width: 145px
  }

  .navigation {
    gap: 12px
  }

  .topbar {
    gap: 10px
  }

  .navigation>a,
  .network>summary {
    font-size: 13px
  }

  .brand {
    font-size: 23px
  }
}

@media(max-width:760px) {
  .topbar {
    gap: 12px;
    padding-top: 12px;
    padding-bottom: 12px
  }

  .actions {
    margin-left: auto;
    gap: 8px;
    flex-wrap: wrap
  }

  .header-search {
    order: 4;
    width: 100%;
    flex-basis: 100%;
    margin-top: 4px
  }

  .topbar>.header-search {
    order: 4
  }

  .hero {
    padding-top: 52px;
    padding-bottom: 64px
  }

  .topic-strip {
    gap: 10px;
    font-size: 13px;
    max-width: 340px;
    line-height: 1.8
  }

  .topic-dot {
    width: 4px;
    height: 4px
  }

  .navigation.is-open {
    order: 5
  }

  .footer-intro {
    grid-column: 1/-1
  }
}

.centered-top-container,
.centered-top-placeholder,
.bg-photo-container,
.bg-photo-overlay,
.sidebar-container,
#footer,
.blog-pager,
.post-bottom,
.post-share-buttons,
.post-header-line-1,
.post-footer,
.comments,
.post-filter-message,
.main-heading,
.post-title-container .post-share-buttons,
.subscribe-section-container {
  display: none !important
}

.page,
.page_body,
.centered,
.centered-bottom,
.main,
.blog-posts,
.blog-posts.hfeed {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
  background: transparent
}

.blog-posts>.post-outer-container {
  max-width: 788px;
  margin: 0 auto;
  padding: 40px 24px
}

.post-body {
  font-size: 18px;
  line-height: 1.85;
  word-wrap: break-word
}

.post-body h2 {
  font-size: 30px;
  margin: 38px 0 20px
}

.post-body h3 {
  font-size: 24px;
  margin: 32px 0 16px
}

.post-body p,
.post-body ul,
.post-body ol {
  margin: 0 0 24px
}

.post-body a {
  color: #00bfff;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px
}

.post-title {
  font-size: 38px;
  line-height: 1.2;
  margin: 20px 0 40px
}

.post-body iframe {
  max-width: 100%
}

.post-body img {
  max-width: 100%;
  height: auto
}

.post-wrapper,
.post-outer {
  background: transparent;
  margin: 0;
  padding: 0
}

.main .widget {
  margin: 0
}

.byline,
.post-snippet.snippet-container .snippets-fade {
  display: none
}

.blog-posts .post-outer-container:empty {
  display: none
}

.no-posts-message {
  max-width: 788px;
  padding: 60px 24px;
  margin: auto;
  font-size: 20px
}

.post-bottom {
  display: none !important
}

/* Compact sticky navigation; continuous page background. */
.masthead {
  position: sticky;
  top: 0;
  z-index: 60;
  background: var(--bg);
  color: var(--text);
  border: 0;
  box-shadow: none
}

.masthead .brand,
.masthead .brand:hover,
.masthead .navigation>a,
.masthead .network>summary,
.masthead .icon-button {
  color: var(--text)
}

.masthead #theme-toggle {
  background: var(--panel);
  border-color: var(--line);
  color: var(--text)
}

.hero {
  background: var(--bg);
  color: var(--text)
}

.hero p {
  color: var(--muted)
}

.topic-strip {
  color: var(--text)
}

.topic-strip a:hover {
  color: var(--accent)
}

.hero .hero-pages {
  font-size: 14px;
  line-height: 1.7;
  margin-top: 8px;
  font-weight: 400
}

.hero-pages a {
  color: var(--accent);
  font-weight: 700
}

.article-heading {
  background: var(--bg);
  color: var(--text)
}

.article-cover {
  background: var(--bg)
}

.masthead .brand span {
  color: #00bfff;
  opacity: 1
}

.hero .emblem {
  color: #00bfff
}

.topbar {
  position: relative
}

.navigation {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  margin: 0;
  white-space: nowrap
}

.actions {
  margin-left: auto
}

.header-search {
  flex-shrink: 0
}

@media(max-width:1120px) and (min-width:761px) {
  .navigation {
    gap: 13px
  }

  .navigation>a,
  .network>summary {
    font-size: 12px
  }

  .header-search {
    width: 150px
  }

  .brand {
    font-size: 23px
  }
}

@media(max-width:760px) {
  .navigation {
    position: static;
    transform: none;
    white-space: normal
  }

  .navigation.is-open {
    align-items: center;
    text-align: center
  }

  .navigation .dropdown {
    text-align: left
  }
}

/* Blue navbar branding */
.masthead {
  background: #00bfff;
  color: #111
}

.masthead .brand,
.masthead .brand:hover {
  color: #fff
}

.masthead .brand span {
  color: #000;
  opacity: 1
}

.masthead .navigation>a,
.masthead .network>summary,
.masthead .icon-button {
  color: #111
}

.masthead #theme-toggle {
  background: #ffffff22;
  border-color: #0003;
  color: #111
}

.masthead .brand,
.masthead .brand:hover,
.masthead .brand span {
  color: #fff;
  opacity: 1;
  font-size: 29px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -1.3px
}

@media(max-width:1120px) {

  .masthead .brand,
  .masthead .brand span {
    font-size: 23px
  }
}

@media(max-width:760px) {

  .masthead .brand,
  .masthead .brand span {
    font-size: 25px
  }
}

.header-search input,
.dark .header-search input {
  background: #fff;
  color: #17212b;
  color-scheme: light
}

.header-search input::placeholder,
.dark .header-search input::placeholder {
  color: #63717e
}

.header-search button,
.dark .header-search button {
  color: #007eaa
}

.masthead .navigation>a,
.masthead .navigation>a:hover,
.masthead .network>summary {
  color: #fff
}

/* Wide reading canvas and aligned article footer. */
a,
a:hover,
a:focus,
a:visited {
  text-decoration: none !important
}

.article-content {
  max-width: 1140px;
  padding-left: 20px;
  padding-right: 20px
}

.article-cover {
  max-width: 1140px;
  padding: 0 20px;
  background: var(--bg)
}

.article-cover svg {
  width: 100%;
  height: auto;
  aspect-ratio: 16/9;
  border-radius: 16px
}

.related-section,
.post-links {
  max-width: 1140px;
  padding-left: 20px;
  padding-right: 20px;
  margin-left: auto;
  margin-right: auto
}

.related-section .section-title {
  font-size: 28px;
  padding: 24px 0
}

.related-section .section-title:after {
  content: "";
  display: block;
  width: 44px;
  height: 4px;
  background: #00bfff;
  margin-top: 16px;
  border-radius: 4px
}

.related-section .post-card {
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  background: var(--panel)
}

.related-section .card-image {
  border-radius: 0;
  margin: 0;
  aspect-ratio: 16/9
}

.related-section .card-labels,
.related-section .card-excerpt,
.related-section .card-meta {
  display: none
}

.related-section .post-card h3 {
  padding: 18px 16px;
  margin: 0;
  color: #00bfff
}

.post-links {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  align-items: center;
  gap: 16px;
  border-top: 1px solid var(--line);
  padding-top: 26px;
  padding-bottom: 20px
}

.post-links>:first-child {
  justify-self: start
}

.post-links>:nth-child(2) {
  justify-self: center
}

.post-links>:last-child {
  justify-self: end
}

.post-links .pill {
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--panel);
  color: #00bfff;
  font-weight: 700;
  padding: 13px 20px
}

.nav-placeholder {
  visibility: hidden
}

.card-image>svg {
  width: 100%;
  height: 100%
}

.site-footer>.wrap {
  max-width: 1140px;
  padding-left: 20px;
  padding-right: 20px
}

.footer-top {
  grid-template-columns: 1.8fr 1fr 1fr;
  gap: 64px
}

.footer-description {
  max-width: none;
  text-align: justify
}

.footer-top>div {
  min-width: 0
}

.footer-bottom {
  align-items: center
}

.back-top {
  bottom: 76px
}

@media(max-width:760px) {
  .footer-top {
    grid-template-columns: 1fr 1fr;
    gap: 30px
  }

  .footer-intro {
    grid-column: 1/-1
  }

  .post-links {
    gap: 8px
  }

  .post-links .pill {
    padding: 11px 10px;
    font-size: 12px
  }

  .related-section .section-title {
    font-size: 24px
  }
}

/* Match Cubetoons desktop navbar: 70px. */
.masthead .topbar {
  min-height: 70px;
  height: 70px;
  padding-top: 0;
  padding-bottom: 0
}

@media(max-width:760px) {
  .masthead .topbar {
    height: auto;
    min-height: 70px;
    padding-top: 8px;
    padding-bottom: 8px
  }
}

/* Cubetoons 1.2 homepage mosaic, SkytreeCorp blue palette. */
#sc-home{max-width:1240px;margin:28px auto 64px;padding:0 20px}
#sc-mosaic{display:flex;flex-direction:column;gap:28px}
#sc-home .sc-home-row{display:grid;grid-template-columns:minmax(0,1.7fr) minmax(0,1fr);gap:28px;align-items:stretch}
#sc-home .sc-home-row.reversed{grid-template-columns:minmax(0,1fr) minmax(0,1.7fr)}
#sc-home .sc-home-row.full{grid-template-columns:minmax(0,1fr)}
#sc-home .sc-home-card{position:relative;min-width:0;min-height:420px;display:flex;flex-direction:column;padding-top:250px;border:1.5px solid var(--line);border-radius:20px;overflow:hidden;background:#121722;box-shadow:0 4px 14px rgba(15,23,42,.06)}
#sc-home .full .sc-home-card{min-height:480px;padding-top:300px}
#sc-home .sc-home-media{position:absolute;inset:0;display:block;width:100%;height:100%;background:#152b39}
#sc-home .sc-home-media svg{display:block;width:100%;height:100%;object-fit:cover}
#sc-home .sc-home-media:after{content:'';position:absolute;inset:0;background:linear-gradient(180deg,transparent 46%,rgba(5,7,13,.38));pointer-events:none}
#sc-home .sc-home-caption{position:relative;z-index:1;flex:0 0 auto;margin:auto 20px 20px;width:min(480px,calc(100% - 40px));padding:16px 18px;border-radius:14px;background:rgba(255,255,255,.9);border:1px solid rgba(255,255,255,.5);backdrop-filter:blur(12px);box-shadow:0 10px 28px rgba(0,0,0,.16)}
html.dark #sc-home .sc-home-caption{background:rgba(14,19,28,.84);border-color:rgba(255,255,255,.08)}
#sc-home .reversed .sc-home-card.main-card .sc-home-caption{align-self:flex-end}
#sc-home .side-card .sc-home-caption{width:auto;margin:auto 12px 12px;padding:14px 16px;background:rgba(9,13,22,.86);border-color:transparent;box-shadow:none}
#sc-home h2{font-size:1.08rem;line-height:1.4;font-weight:800;margin:0;overflow-wrap:anywhere}
#sc-home h2 a{color:#00bfff}
#sc-home .sc-home-label{display:flex;gap:8px;flex-wrap:wrap;color:#00bfff;font-size:.7rem;font-weight:800;margin-bottom:8px}
#sc-home .sc-home-label span{background:rgba(0,191,255,.14);padding:3px 9px;border-radius:20px}
#sc-home .sc-home-description{color:#475569;font-size:.87rem;line-height:1.65;margin:9px 0 0}
html.dark #sc-home .sc-home-description,#sc-home .side-card .sc-home-description{color:#bac3d2}
#sc-home .sc-home-actions{display:flex;justify-content:space-between;align-items:center;gap:16px;margin-top:40px}
#sc-home .sc-home-actions .pill{font:inherit;font-weight:700;cursor:pointer;border:2px solid #00bfff;border-radius:999px;padding:15px 24px}
#sc-home .sc-home-actions .pill:first-child{background:#00bfff;color:#071923}
#sc-home .sc-home-actions .plain{background:transparent;color:#00bfff}
#sc-home-more:disabled{opacity:.55;cursor:default}
#sc-home-error:empty{display:none}
.post-links{display:flex!important;justify-content:space-between!important;align-items:center;gap:16px}
.post-links .pill{font:inherit;font-weight:700;cursor:pointer}
@media(max-width:900px){#sc-mosaic{gap:18px}#sc-home .sc-home-row,#sc-home .sc-home-row.reversed,#sc-home .sc-home-row.full{grid-template-columns:minmax(0,1fr);gap:18px}#sc-home .sc-home-card,#sc-home .full .sc-home-card{min-height:0;padding-top:180px}#sc-home .sc-home-caption,#sc-home .reversed .sc-home-card.main-card .sc-home-caption,#sc-home .side-card .sc-home-caption{margin:auto 12px 12px;width:auto;align-self:stretch}#sc-home h2{font-size:1.05rem}}
@media(max-width:480px){#sc-home .sc-home-actions .pill{font-size:.8rem;padding:12px 14px}}

/* Hide post labels on cards and article pages. Keep label data for related posts. */
#sc-home .sc-home-label,.card-labels,.single-post .post-tags{display:none!important}

/* Match the centered post title to the article reading width. */
.single-post .article-heading{width:100%;max-width:1140px;margin-left:auto;margin-right:auto;padding-left:20px;padding-right:20px;box-sizing:border-box}
.single-post .article-heading h1{width:100%;max-width:none;margin-left:auto;margin-right:auto;text-align:center}

/* Image-led recommendation cards, without descriptions. */
#PopularPosts1 [role="feed"]{grid-template-columns:repeat(3,minmax(0,1fr));gap:24px}
#PopularPosts1 article.post{padding:0;border:0;background:transparent;max-width:none;overflow:hidden}
#PopularPosts1 .sc-popular-cover{display:block;width:100%;aspect-ratio:16/9;border-radius:14px;overflow:hidden;background:var(--accent-soft);margin:0 0 16px}
#PopularPosts1 .sc-popular-cover svg{display:block;width:100%!important;height:100%!important;max-width:none;object-fit:cover}
#PopularPosts1 .post-title{margin:0!important;font-size:20px!important;line-height:1.35!important}
#PopularPosts1 .popular-posts-snippet,#PopularPosts1 .jump-link{display:none!important}
@media(max-width:900px){#PopularPosts1 [role="feed"]{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:600px){#PopularPosts1 [role="feed"]{grid-template-columns:1fr}#PopularPosts1 article.post{padding:0}}


#PopularPosts1.widget{box-sizing:border-box;width:100%;max-width:1140px;margin:40px auto!important;padding:28px 20px;border-top:1px solid var(--line);color:var(--text)}
#PopularPosts1>.title{font-family:var(--heading);font-size:28px;line-height:1.3;font-weight:700;margin:0 0 28px}
#PopularPosts1>.title:after{content:'';display:block;width:44px;height:4px;background:var(--accent);margin-top:16px;border-radius:4px}
#PopularPosts1 [role="feed"]{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px;align-items:start}
#PopularPosts1 article.post{min-width:0;border:1px solid var(--line);border-radius:16px;background:var(--panel);overflow:hidden;padding:0;margin:0}
#PopularPosts1 .sc-popular-cover{margin:0;border-radius:0}
#PopularPosts1 .post-title{padding:18px 16px;font-family:var(--heading);font-weight:700;letter-spacing:normal}
#PopularPosts1 .post-title a{color:var(--accent)}
@media(max-width:900px){#PopularPosts1 [role="feed"]{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:600px){#PopularPosts1 [role="feed"]{grid-template-columns:1fr}#PopularPosts1>.title{font-size:24px}}


/* Shared article card separation: keep the page visible between rounded panels. */
.post-body :is(article,div,main)[id]:has(>section){background:transparent!important;background-image:none!important}
.post-body :is(article,div,main)[id]>section{background-clip:padding-box}

.sc-home-media img{width:100%;height:100%;object-fit:cover}.sc-home-media{background:linear-gradient(135deg,#07364f,#008ac0)}

/* WordPress header and article layouts */
body.admin-bar .masthead{top:var(--wp-admin--admin-bar--height,32px)}
.hero .topic-strip{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:10px}
.hero .topic-strip a{white-space:nowrap}
.single-post .article-content{--paper:var(--panel);--edge:var(--line);counter-reset:chapter}
html.dark .single-post .article-content{--paper:#181d25;--edge:#354454}
.single-post .article-content :is(article,.st-chapters)>section,.single-post .article-content>section,.single-post .article-content article>p:first-of-type{margin:24px 0;padding:clamp(18px,3vw,32px);background:var(--paper);border:1px solid var(--edge);border-radius:14px;line-height:1.85}
.single-post .article-content article>p:first-of-type{border-top:4px solid #00a6d7}
.single-post .article-content section>:is(h2,h3):first-child{display:flex;align-items:baseline;gap:.7em;margin-top:0}
.single-post .article-content section>:is(h2,h3):first-child:before{counter-increment:chapter;content:counter(chapter,decimal-leading-zero);background:#066782;color:white;border-radius:100px;font:700 .85rem/2.3 system-ui;text-align:center;min-width:2.3em}
.single-post .article-content .questions{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:14px}
.single-post .article-content figure{max-width:100%;margin:1.5em auto}
.st-directory{width:min(1100px,92%);margin:clamp(36px,6vw,80px) auto;color:var(--text)}
.st-directory h1{font-size:clamp(2.3rem,5vw,4rem);letter-spacing:-.045em;margin:0}
.st-directory>p,.st-meta{color:var(--muted)}
.st-controls{display:grid;grid-template-columns:2fr 1fr 1fr;gap:18px;padding:24px 0}
.st-controls label{display:grid;gap:8px;text-transform:uppercase;letter-spacing:.09em;font:700 .75rem system-ui}
.st-controls :is(input,select){width:100%;padding:12px 14px;border:1px solid var(--line);border-radius:9px;background:var(--panel);color:var(--text);font:1rem system-ui}
.st-count{display:flex;justify-content:space-between;border-block:1px solid var(--line);padding:14px 0;font-weight:700}
.st-directory ol{counter-reset:row;padding:0;list-style:none;margin:0}
.st-directory li:not([hidden]){display:grid;grid-template-columns:40px 1fr;gap:12px;padding:18px 0;border-bottom:1px solid var(--line)}
.st-directory li:not([hidden]):before{counter-increment:row;content:counter(row,decimal-leading-zero);font-weight:800;color:var(--accent)}
.st-directory li a{font-size:1rem;color:var(--text);font-weight:750}
.st-directory li a:hover{color:var(--accent)}
.st-meta{display:flex;gap:14px;font-size:.78rem;margin-top:5px;flex-wrap:wrap}
@media(max-width:650px){.st-controls{grid-template-columns:1fr}.single-post .article-content .questions{grid-template-columns:1fr!important}}

@keyframes st-tree-turn{to{transform:rotateY(360deg)}}
@keyframes st-title-light{to{background-position:200% center}}
.hero .emblem svg{animation:st-tree-turn 7s linear infinite;transform-origin:center}
.hero h1{background:linear-gradient(100deg,#0078a5,#00bfff,#80e5ff,#0078a5);background-size:200% auto;background-clip:text;-webkit-background-clip:text;color:transparent;animation:st-title-light 4.5s linear infinite}
@media(prefers-reduced-motion:reduce){.hero .emblem svg,.hero h1{animation:none}}
.article-cover>svg{display:block;width:100%;height:auto}
.cookieadmin_re_consent{display:none!important}
