@font-face {
  font-family: "Gelasio";
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url("/static/site/assets/fonts/gelasio/gelasio-latin-400-normal.68e2b704c5624ba84e70.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Gelasio";
  font-style: italic;
  font-display: swap;
  font-weight: 400;
  src: url("/static/site/assets/fonts/gelasio/gelasio-latin-400-italic.0a06efba3949d19ad4cb.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Gelasio";
  font-style: normal;
  font-display: swap;
  font-weight: 700;
  src: url("/static/site/assets/fonts/gelasio/gelasio-latin-700-normal.dff91a5084db8f15e401.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Gelasio";
  font-style: italic;
  font-display: swap;
  font-weight: 700;
  src: url("/static/site/assets/fonts/gelasio/gelasio-latin-700-italic.33881ef5fa10796ddad4.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  color-scheme: light dark;
  --wtk-font-serif: -apple-system-ui-serif, ui-serif, "Gelasio", Georgia, Cambria, "Times New Roman", Times, serif;
  --wtk-font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  --wtk-color-page-bg: #ffffff;
  --wtk-color-page-text: rgba(0, 0, 0, 0.76);
  --wtk-color-page-title: rgba(0, 0, 0, 0.92);
  --wtk-color-page-muted: rgba(0, 0, 0, 0.6);
  --wtk-color-page-tertiary: rgba(0, 0, 0, 0.4);
  --wtk-color-page-quaternary: rgba(0, 0, 0, 0.2);
  
  --wtk-color-tint-pink-rgb: 255, 48, 74;
  --wtk-color-tint-red-rgb: 255, 0, 13;
  --wtk-color-tint-green-rgb: 42, 209, 84;
  --wtk-color-tint-blue-rgb: 0, 73, 255;
  --wtk-color-tint-orange-rgb: 255, 94, 0;
  --wtk-color-tint-purple-rgb: 191, 0, 255;
  
  
  --wtk-color-glass-background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.78), rgba(255, 255, 255, 0.46)),
    linear-gradient(135deg, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.02));
  --wtk-color-glass-border: rgba(255, 255, 255, 0.64);
  --wtk-color-glass-shadow-outer: rgba(0, 0, 0, 0.08);
  --wtk-color-glass-shadow-inner: rgba(0, 0, 0, 0.04);
  --wtk-color-glass-highlight: rgba(255, 255, 255, 0.72);
  --wtk-color-glass-solid: #fafafa;
  
  --wtk-color-glass-topbar-background: rgba(255, 255, 255, 0.72);
  --wtk-color-glass-border: rgba(255, 255, 255, 0.64);
  --wtk-color-glass-topbar-shadow: rgba(0, 0, 0, 0.08);
  
  --wtk-color-page-code-bg: rgba(0, 0, 0, 0.055);
  --wtk-color-page-rule: rgba(0, 0, 0, 0.12);
  --wtk-color-settings-active-bg: color-mix(in srgb, var(--wtk-color-accent) 10%, transparent);
  --wtk-color-settings-active-border: color-mix(in srgb, var(--wtk-color-accent) 32%, transparent);
  
  --wtk-layout-settings-panel-width: 294px;
  --wtk-layout-gear-edge-gap: 14px;
  --wtk-layout-gear-nav-gap: 8px;
  --wtk-layout-topbar-bleed: 2px;
  
  --wtk-layout-content-width: 900px;
  --wtk-layout-nav-width: 1170px;
  --wtk-layout-desktop-content-gap: 1.25em;
  --wtk-layout-footer-gap: 1.25em;
  --wtk-layout-desktop-topbar-top: 1.25em;
  --wtk-layout-desktop-topbar-height: 64px;
  
  --wtk-layout-mobile-page-gap: 1em;
  --wtk-layout-mobile-topbar-top: 1em;
  --wtk-layout-mobile-topbar-height: 48px;
  
  --wtk-type-body: clamp(1rem, 0.9375rem + 0.5vw, 1.125rem);
  --wtk-type-h1: clamp(1.875rem, 1.4375rem + 3.5vw, 2.75rem);
  --wtk-type-h2: clamp(1.5rem, 1.3125rem + 1.5vw, 1.875rem);
  --wtk-type-h3: clamp(1.25rem, 1.125rem + 1vw, 1.5rem);
  --wtk-type-card-title: clamp(1.25rem, 1.125rem + 1vw, 1.5rem);
  --wtk-type-card-excerpt: clamp(0.9375rem, 0.90625rem + 0.25vw, 1rem);
}

::view-transition-group(root),
::view-transition-old(root),
::view-transition-new(root) {
  animation-duration: 260ms;
  animation-timing-function: cubic-bezier(0.2, 0.8, 0.2, 1);
}


:root[data-blog-scheme="light"] {
  color-scheme: light;
}

:root[data-blog-scheme="dark"] {
  color-scheme: dark;
}


/* Link colours are WebTintKit's (rest: the control shade; hover and focus: the full accent). */






.wtk-container {
  display: flex;
  flex-direction: column;
  width: min(100%, var(--wtk-layout-nav-width));
  margin: 0 auto;
  /* Make sure the container fills the vertical space if content is short */
  flex: 1;
}


.blogSettings {
  position: static;
  flex: 0 0 auto;
  line-height: 1;
}

.blogSettingsButton {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border: 1px solid transparent;
  border-radius: 999px;
  margin: 0;
  padding: 0;
  background: transparent;
  color: var(--wtk-color-page-muted);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition:
    color 180ms ease,
    transform 180ms ease;
}

.blogSettingsIcon {
  display: block;
  width: 1.1875rem;
  height: 1.1875rem;
  fill: currentColor;
  pointer-events: none;
  transition:
    color 180ms ease,
    transform 180ms ease;
}

.blogSettings.isOpen .blogSettingsButton {
  color: var(--wtk-color-accent);
  text-decoration: none;
}

.blogSettings.isOpen .blogSettingsIcon {
  transform: scale(1.08);
}

@media (hover: hover) and (pointer: fine) {
  .blogSettingsButton:hover {
    color: color-mix(in srgb, var(--wtk-color-accent) 76%, transparent);
    text-decoration: none;
  }

  .blogSettingsButton:hover .blogSettingsIcon {
    transform: scale(1.08);
  }
}

.blogSettingsButton:active {
  transform: scale(0.96);
}

.blogSettingsPanel {
  position: absolute;
  top: calc(100% + var(--wtk-layout-desktop-content-gap) + 1px);
  right: 0;
  z-index: 30;
  width: min(var(--wtk-layout-settings-panel-width), calc(100vw - 32px));
  border: 1px solid var(--wtk-color-glass-border);
  border-radius: 14px;
  padding: 16px;
  background: var(--wtk-color-glass-solid);
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  box-shadow:
    0 0 16px var(--wtk-color-glass-topbar-shadow),
    0 16px 34px rgba(0, 0, 0, 0.12),
    inset 0 0 0 rgba(255, 255, 255, 0.86);
  color: var(--wtk-color-page-text);
  transform-origin: top right;
  transition:
    background-color 260ms ease,
    border-color 260ms ease,
    box-shadow 260ms ease,
    color 260ms ease;
}

.blogSettings.isOpen .blogSettingsPanel {
  animation: blogSettingsPanelIn 180ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.blogSettingsPanel[hidden] {
  display: none;
}

@keyframes blogSettingsPanelIn {
  from {
    opacity: 0;
    transform: translateY(-6px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.blogSettingsSection {
  margin: 0;
}

.blogSegmentedControl {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 4px;
  border: 1px solid var(--wtk-color-page-rule);
  border-radius: 12px;
  padding: 4px;
  background: rgba(255, 255, 255, 0.24);
  transition:
    background-color 260ms ease,
    border-color 260ms ease;
}

.blogSegmentedControl button,
.blogTintOption {
  position: relative;
  border: 1px solid transparent;
  border-radius: 9px;
  margin: 0;
  background: transparent;
  color: var(--wtk-color-page-muted);
  cursor: pointer;
  font: inherit;
  font-size: 0.84375rem;
  font-weight: 680;
  line-height: 1;
  -webkit-tap-highlight-color: transparent;
  transition:
    background-color 180ms ease,
    border-color 180ms ease,
    color 180ms ease,
    transform 180ms ease;
}

.wtk-footer {
  transition:
    color 260ms ease,
    border-color 260ms ease;
}

.blogSegmentedControl button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35em;
  min-height: 2.125rem;
  padding: 0 10px;
}

.blogSegmentedControl button:focus-visible,
.blogSegmentedControl button.isPreviewing,
.blogTintOption:focus-visible,
.blogTintOption.isPreviewing {
  color: var(--wtk-color-page-title);
}

@media (hover: hover) and (pointer: fine) {
  .blogSegmentedControl button:hover,
  .blogTintOption:hover {
    color: var(--wtk-color-page-title);
  }
}

.blogSegmentedControl button.isSelected,
.blogTintOption.isSelected {
  border-color: var(--wtk-color-settings-active-border);
  background: var(--wtk-color-settings-active-bg);
  color: var(--wtk-color-page-title);
}

.blogSegmentedControl button:active,
.blogTintOption:active {
  transform: scale(0.98);
}

.blogTintRow {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  border-top: 1px solid var(--wtk-color-page-rule);
  margin-top: 1em;
  padding-top: 1em;
}

.blogTintOption {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 2rem;
  min-height: 2rem;
  padding: 0;
  border-radius: 999px;
}

.blogTintSwatch {
  width: 1.3125rem;
  height: 1.3125rem;
  border: 1px solid rgba(0, 0, 0, 0.14);
  border-radius: 999px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.3),
    0 1px 2px rgba(0, 0, 0, 0.1);
}

.blogTintSwatch--pink { background: rgb(var(--wtk-color-tint-pink-rgb)); }
.blogTintSwatch--grey { background: #000000; }
.blogTintSwatch--red { background: rgb(var(--wtk-color-tint-red-rgb)); }
.blogTintSwatch--green { background: rgb(var(--wtk-color-tint-green-rgb)); }
.blogTintSwatch--blue { background: rgb(var(--wtk-color-tint-blue-rgb)); }
.blogTintSwatch--orange { background: rgb(var(--wtk-color-tint-orange-rgb)); }
.blogTintSwatch--purple { background: rgb(var(--wtk-color-tint-purple-rgb)); }


/* Main content area - keeping TOC plumbing but centering the single card for now */
.blogMain {
  width: min(100%, var(--wtk-layout-nav-width));
  margin: var(--wtk-layout-desktop-content-gap) auto 0;
  flex: 1;
  display: flex;
  flex-direction: column;
}

/* Later when TOC is added, we use this structure */
.blogPostMain {
  width: min(100%, var(--wtk-layout-content-width));
}


/* Padding only on the consumer cards that used this adapter before 1.0. */
:where(.comingSoonCard, .pressKitHost > .document, .app-pane).wtk-glass {
  padding: var(--wtk-layout-desktop-content-gap);
}

/* Specific styling for the Coming Soon card to center content */
.comingSoonCard {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.comingSoonCard h2 {
  margin: 0;
  color: var(--wtk-color-page-tertiary);
  font-size: var(--wtk-type-h2);
  font-weight: 600;
  line-height: 1.08;
  overflow-wrap: anywhere;
  text-align: center;
}


.wtk-footer {
  width: min(100%, var(--wtk-layout-content-width));
  margin: var(--wtk-layout-footer-gap) auto 0;
  color: var(--wtk-color-page-muted);
  font-size: 0.84375rem;
  text-align: center;
}

.wtk-footer p {
  margin: 0;
}


/* Mobile Breakpoints */
@media (max-width: 768px) {


  .wtk-footer {
    margin-top: var(--wtk-layout-mobile-page-gap);
  }

  .blogSettingsButton {
    width: 2rem;
    height: 2rem;
  }

  .blogSettingsPanel {
    top: calc(100% + var(--wtk-layout-mobile-page-gap));
    left: auto;
    right: 0;
    width: min(var(--wtk-layout-settings-panel-width), calc(100vw - (2 * var(--wtk-layout-mobile-page-gap))));
    max-height: calc(100vh - var(--wtk-layout-mobile-contents-top) - var(--wtk-layout-mobile-page-gap));
    overflow: auto;
  }

  .blogTintRow {
    gap: 6px;
  }

  .blogMain {
    margin-top: var(--wtk-layout-mobile-page-gap);
  }
  
  :where(.comingSoonCard, .pressKitHost > .document, .app-pane).wtk-glass {
    padding: 1em;
  }

  .blogPostMain.hasPostPanel {
    display: block;
  }
}

/* Dark Mode Overrides */
@media (prefers-color-scheme: dark) {
  :root:not([data-blog-scheme="light"]) {
    --wtk-color-page-bg: #222628;
    --wtk-color-page-text: rgba(255, 255, 255, 0.85);
    --wtk-color-page-title: rgba(255, 255, 255, 0.95);
    --wtk-color-page-muted: rgba(255, 255, 255, 0.7);
    --wtk-color-page-tertiary: rgba(255, 255, 255, 0.45);
    --wtk-color-page-quaternary: rgba(255, 255, 255, 0.2);
    --wtk-color-glass-background: rgba(0, 0, 0, 0.28);
    --wtk-color-glass-border: rgba(255, 255, 255, 0.06);
    --wtk-color-glass-shadow-outer: rgba(0, 0, 0, 0.18);
    --wtk-color-glass-shadow-inner: rgba(0, 0, 0, 0.08);
    --wtk-color-glass-highlight: rgba(255, 255, 255, 0.06);
    --wtk-color-glass-solid: rgb(34, 38, 40);
    --wtk-color-glass-topbar-background: rgba(0, 0, 0, 0.28);
    --wtk-color-glass-border: rgba(255, 255, 255, 0.06);
    --wtk-color-glass-topbar-shadow: rgba(0, 0, 0, 0.18);
    --wtk-color-page-code-bg: rgba(255, 255, 255, 0.08);
    --wtk-color-page-rule: rgba(255, 255, 255, 0.14);
  }

  :root:not([data-blog-scheme="light"]) .blogSettingsPanel {
    box-shadow:
      0 0 16px rgba(0, 0, 0, 0.18),
      0 0 18px rgba(0, 0, 0, 0.08),
      inset 0 0 0 rgba(255, 255, 255, 0.06);
  }

  :root:not([data-blog-scheme="light"]) .blogSegmentedControl {
    background: rgba(0, 0, 0, 0.12);
  }

  :root:not([data-blog-scheme="light"]) .blogTintSwatch {
    border-color: rgba(255, 255, 255, 0.18);
  }

  :root:not([data-blog-scheme="light"]) .blogTintSwatch--grey {
    background: #ffffff;
  }

}

:root[data-blog-scheme="dark"] {
  --wtk-color-page-bg: #222628;
  --wtk-color-page-text: rgba(255, 255, 255, 0.85);
  --wtk-color-page-title: rgba(255, 255, 255, 0.95);
  --wtk-color-page-muted: rgba(255, 255, 255, 0.7);
  --wtk-color-page-tertiary: rgba(255, 255, 255, 0.45);
  --wtk-color-page-quaternary: rgba(255, 255, 255, 0.2);
  --wtk-color-glass-background: rgba(0, 0, 0, 0.28);
  --wtk-color-glass-border: rgba(255, 255, 255, 0.06);
  --wtk-color-glass-shadow-outer: rgba(0, 0, 0, 0.18);
  --wtk-color-glass-shadow-inner: rgba(0, 0, 0, 0.08);
  --wtk-color-glass-highlight: rgba(255, 255, 255, 0.06);
  --wtk-color-glass-solid: rgb(34, 38, 40);
  --wtk-color-glass-topbar-background: rgba(0, 0, 0, 0.28);
  --wtk-color-glass-border: rgba(255, 255, 255, 0.06);
  --wtk-color-glass-topbar-shadow: rgba(0, 0, 0, 0.18);
  --wtk-color-page-code-bg: rgba(255, 255, 255, 0.08);
  --wtk-color-page-rule: rgba(255, 255, 255, 0.14);
}

:root[data-blog-scheme="dark"] .blogSettingsPanel {
  box-shadow:
    0 0 16px rgba(0, 0, 0, 0.18),
    0 0 18px rgba(0, 0, 0, 0.08),
    inset 0 0 0 rgba(255, 255, 255, 0.06);
}

:root[data-blog-scheme="dark"] .blogSegmentedControl {
  background: rgba(0, 0, 0, 0.12);
}

:root[data-blog-scheme="dark"] .blogTintSwatch {
  border-color: rgba(255, 255, 255, 0.18);
}

:root[data-blog-scheme="dark"] .blogTintSwatch--grey {
  background: #ffffff;
}
