@keyframes astroFadeInOut {
	from {
		opacity: 1;
	}
	to {
		opacity: 0;
	}
}

@keyframes astroFadeIn {
	from {
		opacity: 0;
		mix-blend-mode: plus-lighter;
	}
	to {
		opacity: 1;
		mix-blend-mode: plus-lighter;
	}
}

@keyframes astroFadeOut {
	from {
		opacity: 1;
		mix-blend-mode: plus-lighter;
	}
	to {
		opacity: 0;
		mix-blend-mode: plus-lighter;
	}
}

@keyframes astroSlideFromRight {
	from {
		transform: translateX(100%);
	}
}

@keyframes astroSlideFromLeft {
	from {
		transform: translateX(-100%);
	}
}

@keyframes astroSlideToRight {
	to {
		transform: translateX(100%);
	}
}

@keyframes astroSlideToLeft {
	to {
		transform: translateX(-100%);
	}
}

@media (prefers-reduced-motion) {
	::view-transition-group(*),
	::view-transition-old(*),
	::view-transition-new(*) {
		animation: none !important;
	}

	[data-astro-transition-scope] {
		animation: none !important;
	}
}

@font-face {
  font-family: "b";
  src: url(/static/fonts/Ubuntu-Regular.ttf);
  font-display: swap;
}

@font-face {
  font-family: "title";
  src: url(/static/fonts/Pacifico-Regular.ttf);
  font-display: swap;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  user-select: none;
  transition: background-color 0.2s ease;
}

a {
  text-decoration: none;
  color: inherit;
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}

a:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 2px;
}

::-webkit-scrollbar {
  width: 0px;
}

/* ====== 主题: Light (默认) ====== */
:root {
  --main_bg_color: url(/static/img/bz-light.jpg);
  --main_text_color: #ffffff;
  --gradient: linear-gradient(120deg, #bd34fe, #e0321b 30%, #41d1ff 60%);
  --purple_text_color: #747bff;
  --text_bg_color: rgba(180, 200, 230, 0.5);
  --item_bg_color: rgba(235, 240, 250, 0.25);
  --item_hover_color: rgba(225, 235, 250, 0.4);
  --item_left_title_color: #ffffff;
  --footer_text_color: #ffffff;
  --left_tag_item: rgba(235, 240, 250, 0.35);
  --card_filter: 0px;
  --back_filter: 20px;
  --back_filter_color: rgba(0, 0, 0, 0.17);
  --fill: #ffffff;
  --module_dock_bg: rgba(255, 255, 255, 0.26);
  --module_dock_border: rgba(255, 255, 255, 0.38);
  --module_dock_inactive_bg: rgba(255, 255, 255, 0.1);
  --module_dock_inactive_color: rgba(255, 255, 255, 0.72);
  --module_dock_hover_bg: rgba(255, 255, 255, 0.28);
  --module_dock_active_bg: rgba(255, 255, 255, 0.92);
  --module_dock_active_color: #24262b;
  --module_dock_active_border: rgba(255, 255, 255, 0.58);
  --module_dock_shadow: rgba(20, 30, 45, 0.28);
  --weather_dialog_backdrop: rgba(35, 44, 56, 0.28);
  --weather_dialog_bg: rgba(246, 248, 252, 0.92);
  --weather_dialog_border: rgba(255, 255, 255, 0.74);
  --weather_dialog_text: #252a32;
  --weather_dialog_muted: rgba(37, 42, 50, 0.72);
  --weather_dialog_subtle: rgba(37, 42, 50, 0.54);
  --weather_dialog_faint: rgba(37, 42, 50, 0.4);
  --weather_dialog_line: rgba(37, 42, 50, 0.11);
  --weather_dialog_line_strong: rgba(37, 42, 50, 0.18);
  --weather_dialog_surface: rgba(255, 255, 255, 0.5);
  --weather_dialog_control_bg: rgba(255, 255, 255, 0.5);
  --weather_dialog_control_hover: rgba(255, 255, 255, 0.78);
  --weather_dialog_active_bg: #313740;
  --weather_dialog_active_text: #f7f8fa;
  --weather_dialog_focus: rgba(37, 42, 50, 0.78);
  --weather_dialog_shadow: rgba(31, 39, 50, 0.22);
  --weather_dialog_inset: rgba(255, 255, 255, 0.76);
  --weather_dialog_warning_border: rgba(162, 111, 28, 0.3);
  --weather_dialog_warning_bg: rgba(230, 180, 95, 0.16);
  --weather_dialog_warning_text: #604718;
  --weather_dialog_rain: rgba(65, 133, 175, 0.78);
  --weather_aqi_good_text: #28643d;
  --weather_aqi_good_bg: rgba(55, 139, 83, 0.14);
  --weather_aqi_moderate_text: #765817;
  --weather_aqi_moderate_bg: rgba(185, 141, 58, 0.16);
  --weather_aqi_sensitive_text: #88491e;
  --weather_aqi_sensitive_bg: rgba(196, 108, 55, 0.16);
  --weather_aqi_poor_text: #8b3038;
  --weather_aqi_poor_bg: rgba(190, 68, 78, 0.15);
}

/* ====== Dark 主题 ====== */
[data-theme="Dark"] {
  --main_bg_color: url(/static/img/bz-dark.jpg);
  --main_text_color: #fff;
  --gradient: linear-gradient(120deg, rgb(133, 62, 255), #f76cc6 30%, rgb(255, 255, 255) 60%);
  --purple_text_color: #747bff;
  --text_bg_color: rgba(26, 4, 48, 0.5);
  --item_bg_color: rgba(19, 20, 24, 0.35);
  --item_hover_color: rgba(19, 23, 27, 0.55);
  --item_left_title_color: #ffffff;
  --footer_text_color: #ffffff;
  --left_tag_item: rgba(19, 20, 24, 0.35);
  --card_filter: 0px;
  --back_filter: 20px;
  --back_filter_color: rgba(0, 0, 0, 0.55);
  --fill: #ffffff;
  --module_dock_bg: rgba(16, 17, 20, 0.42);
  --module_dock_border: rgba(255, 255, 255, 0.14);
  --module_dock_inactive_bg: rgba(0, 0, 0, 0.14);
  --module_dock_inactive_color: rgba(255, 255, 255, 0.55);
  --module_dock_hover_bg: rgba(255, 255, 255, 0.08);
  --module_dock_active_bg: rgba(43, 44, 48, 0.96);
  --module_dock_active_color: #fafafa;
  --module_dock_active_border: rgba(255, 255, 255, 0.14);
  --module_dock_shadow: rgba(0, 0, 0, 0.45);
  --weather_dialog_backdrop: rgba(8, 10, 13, 0.56);
  --weather_dialog_bg: rgba(22, 24, 29, 0.9);
  --weather_dialog_border: rgba(255, 255, 255, 0.18);
  --weather_dialog_text: #f7f8fa;
  --weather_dialog_muted: rgba(255, 255, 255, 0.72);
  --weather_dialog_subtle: rgba(255, 255, 255, 0.52);
  --weather_dialog_faint: rgba(255, 255, 255, 0.38);
  --weather_dialog_line: rgba(255, 255, 255, 0.08);
  --weather_dialog_line_strong: rgba(255, 255, 255, 0.16);
  --weather_dialog_surface: rgba(255, 255, 255, 0.045);
  --weather_dialog_control_bg: rgba(255, 255, 255, 0.06);
  --weather_dialog_control_hover: rgba(255, 255, 255, 0.12);
  --weather_dialog_active_bg: rgba(255, 255, 255, 0.92);
  --weather_dialog_active_text: #1d2025;
  --weather_dialog_focus: rgba(255, 255, 255, 0.8);
  --weather_dialog_shadow: rgba(0, 0, 0, 0.32);
  --weather_dialog_inset: rgba(255, 255, 255, 0.08);
  --weather_dialog_warning_border: rgba(235, 177, 84, 0.2);
  --weather_dialog_warning_bg: rgba(235, 177, 84, 0.08);
  --weather_dialog_warning_text: rgba(255, 255, 255, 0.78);
  --weather_dialog_rain: rgba(118, 181, 220, 0.82);
  --weather_aqi_good_text: #d8f4e2;
  --weather_aqi_good_bg: rgba(71, 150, 97, 0.2);
  --weather_aqi_moderate_text: #f7e7bd;
  --weather_aqi_moderate_bg: rgba(185, 141, 58, 0.18);
  --weather_aqi_sensitive_text: #ffd8b6;
  --weather_aqi_sensitive_bg: rgba(196, 108, 55, 0.18);
  --weather_aqi_poor_text: #ffd0d3;
  --weather_aqi_poor_bg: rgba(190, 68, 78, 0.18);
}

body {
  height: 100%;
  min-height: 100vh;
  width: 100%;
  position: relative;
  font-family: "b", sans-serif;
  background: var(--main_bg_color) no-repeat fixed top center / cover;
  transition: color 0.1s ease;
  color: var(--main_text_color);
  isolation: isolate;
}

#at-loading {
  background: radial-gradient(white, #d8eaff);
  background-size: 100%;
  background-position: center;
  height: 100%;
  width: 100%;
  position: fixed;
  z-index: 999999;
  top: 0;
  pointer-events: none;
  opacity: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: opacity 0.3s ease;
}

::view-transition-old(root),
::view-transition-new(root) {
  animation: none;
}

::view-transition-old(blog-content),
::view-transition-new(blog-content),
::view-transition-old(workspace-content),
::view-transition-new(workspace-content) {
  mix-blend-mode: normal;
}

::view-transition-old(blog-content),
::view-transition-old(workspace-content) {
  animation: blogContentLeave 0.16s ease both;
}

::view-transition-new(blog-content),
::view-transition-new(workspace-content) {
  animation: blogContentEnter 0.32s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes blogContentLeave {
  to {
    opacity: 0;
    transform: translate3d(0, -6px, 0);
  }
}

@keyframes blogContentEnter {
  from {
    opacity: 0;
    transform: translate3d(0, 8px, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

@media (prefers-reduced-motion: reduce) {
  ::view-transition-old(blog-content),
  ::view-transition-new(blog-content),
  ::view-transition-old(workspace-content),
  ::view-transition-new(workspace-content) {
    animation: none;
  }
}

#at-loading-center {
  height: 150px;
  width: 150px;
  position: relative;
  border-radius: 50%;
  background: #472eff;
  animation: zoom 1s linear infinite;
}

@keyframes zoom {
  0% {
    transform: scale(0);
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
  100% {
    transform: scale(1);
    opacity: 0;
  }
}

.at-filter {
  position: fixed;
  inset: 0;
  background: var(--back_filter_color);
  backdrop-filter: blur(var(--back_filter));
  -webkit-backdrop-filter: blur(var(--back_filter));
  z-index: 0;
  pointer-events: none;
}

.at-main {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  transition: transform 0.5s ease;
  position: relative;
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  z-index: 1;
}

.at-left {
  overflow-y: auto;
  width: 230px;
  height: auto;
  display: flex;
  padding: 85px 15px 15px;
  position: sticky;
  top: 0;
  left: 0;
  align-items: center;
  flex-direction: column;
  flex-shrink: 0;
}

.at-left::-webkit-scrollbar {
  display: none;
}

.logo {
  flex-shrink: 0;
  width: 90%;
  position: relative;
  aspect-ratio: 1/1;
  margin-top: 50px;
  background-size: cover;
  border-radius: 50%;
}

.left-div {
  flex-shrink: 0;
  width: 100%;
  border-radius: 13px;
  margin-top: 15px;
  padding: 20px;
  backdrop-filter: blur(var(--card_filter));
  -webkit-backdrop-filter: blur(var(--card_filter));
  background: var(--item_bg_color);
}

.left-des {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.left-des-item {
  display: flex;
  align-items: center;
  line-height: 20px;
  font-size: 15px;
  margin-bottom: 5px;
  overflow: hidden;
}

.left-des-item i,
.left-des-item svg {
  width: 16px;
  height: 16px;
  fill: var(--fill);
  font-size: 18px;
  margin-right: 10px;
}

.left-tag {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  padding: 14px;
}

.left-tag-item {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 28px;
  margin: 0px 5px 5px 0;
  padding: 10px;
  font-size: 13px;
  border-radius: 10px;
  background: var(--left_tag_item);
}

#line {
  width: 100%;
  height: 240px;
  font-size: 13px;
  padding-left: 8px;
  scroll-snap-type: y mandatory;
  overflow-y: scroll;
}

#line li {
  list-style: none;
  position: relative;
  padding: 15px 0px 0px 15px;
  border-left: 2px solid #d5d5d5;
  border-radius: 0;
  scroll-snap-align: end;
  color: var(--main_text_color);
}

.focus {
  width: 8px;
  height: 8px;
  border-radius: 22px;
  background-color: rgb(255 255 255);
  border: 2px solid #fff;
  position: absolute;
  left: -5px;
  top: 50%;
}

#line li:first-child .focus:first-child {
  background-color: #aaffcd;
  animation: focus 1.8s ease infinite;
}

#line::-webkit-scrollbar {
  display: none;
}

.at-right {
  width: calc(100% - 230px);
  min-height: 100vh;
  display: flex;
  padding: 20px 0;
  position: relative;
  padding-bottom: 20px;
  flex-direction: column;
}

.welcome {
  font-size: 65px;
  font-weight: 800;
  margin: 20px 0;
}

.index-logo {
  flex-shrink: 0;
  width: 40%;
  margin-top: 30px;
  position: relative;
  max-width: 200px;
  aspect-ratio: 1/1;
  background-size: cover;
  border-radius: 50%;
  border: 0.5px solid #ffffff;
}

.description {
  font-size: 20px;
  margin-top: 7px;
}

.gradientText {
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  background-size: 200%;
  background-position: 0%;
  font-family: "title";
  animation: backgroundSizeAnimation 10s ease-in-out infinite;
  background-image: var(--gradient);
}

@keyframes backgroundSizeAnimation {
  0% {
    background-position: 100%;
  }
  25% {
    background-position: 50%;
  }
  50% {
    background-position: 0%;
  }
  75% {
    background-position: 50%;
  }
  100% {
    background-position: 100%;
  }
}

.purpleText {
  color: var(--purple_text_color);
  font-weight: 800;
}

.textBackground {
  font-weight: 800;
  background: var(--text_bg_color);
  border-radius: 5px;
  font-size: 17px;
  margin: 0 3px;
  padding: 2px 4px;
}

.iconContainer {
  width: 100%;
  height: 60px;
  display: flex;
  align-items: center;
  overflow-x: scroll;
  margin-top: 20px;
}

.iconContainer::-webkit-scrollbar {
  display: none;
}

.iconItem {
  width: 49px;
  height: 43px;
  box-sizing: border-box;
  border-radius: 7px;
  display: flex;
  margin-left: 10px;
  backdrop-filter: blur(var(--card_filter));
  -webkit-backdrop-filter: blur(var(--card_filter));
  background: var(--item_bg_color);
  align-items: center;
  justify-content: center;
  transition: width 0.3s ease, opacity 0.3s ease, transform 0.3s ease;
  flex-shrink: 0;
}

.iconItem i,
.iconItem svg {
  width: 22px;
  height: 22px;
  fill: var(--fill);
  font-size: 22px;
  margin-right: 3px;
}

.switch {
  width: 55px;
  height: 43px;
  box-sizing: border-box;
  border-radius: 7px;
  display: flex;
  margin-left: 10px;
  backdrop-filter: blur(var(--card_filter));
  -webkit-backdrop-filter: blur(var(--card_filter));
  background: var(--item_bg_color);
  align-items: center;
  justify-content: center;
  transition: width 1s ease, opacity 1s ease, transform 1s ease;
  flex-shrink: 0;
}

.workspaceModules {
  width: calc(100% - 14px);
  margin: 20px 7px 12px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
  gap: 32px;
}

.timeModule {
  min-width: 0;
  height: 160px;
  min-height: 160px;
  padding: 15px 24px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  color: var(--main_text_color);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.timeModule,
.weatherModule {
  border: 1px solid var(--module_dock_border);
  border-radius: 24px;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  background: var(--item_bg_color);
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

.timeModule:hover,
.weatherModule:hover {
  background: var(--item_hover_color);
  border-color: var(--module_dock_active_border);
}

.timeDate {
  margin: 0 0 16px;
  font-size: 12px;
  font-weight: 500;
  line-height: 16px;
  text-transform: uppercase;
  opacity: 0.72;
}

.timeDisplay {
  min-width: 0;
  display: flex;
  align-items: flex-end;
  gap: 24px;
}

.timeValue {
  font-size: 96px;
  font-weight: 300;
  font-family: ui-sans-serif, system-ui, sans-serif;
  font-variant-numeric: tabular-nums;
  line-height: 96px;
  white-space: nowrap;
}

.sunTransit {
  width: 86px;
  flex-shrink: 0;
  padding-bottom: 3px;
}

.sunTransitArc {
  position: relative;
  width: 84px;
  height: 42px;
  border: 1px dashed currentColor;
  border-bottom: 0;
  border-radius: 84px 84px 0 0;
  opacity: 0.55;
}

.sunTransitDot {
  position: absolute;
  left: 0;
  top: 0;
  width: 6px;
  height: 6px;
  border: 1px solid currentColor;
  border-radius: 50%;
  background: var(--main_text_color);
  offset-path: path("M 0 42 A 42 42 0 0 1 84 42");
  offset-distance: var(--sun-progress, 0%);
  offset-rotate: 0deg;
  transform: translate(-50%, -50%);
  transition: offset-distance 1s linear;
}

.sunTransitDot.is-revealing {
  animation: sunTransitReveal 1.4s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes sunTransitReveal {
  from {
    offset-distance: 0%;
  }
  to {
    offset-distance: var(--sun-progress, 0%);
  }
}

.sunTransitLabel {
  display: block;
  margin-top: 6px;
  font-size: 9px;
  font-weight: 500;
  line-height: 13.5px;
  text-align: center;
  text-transform: uppercase;
  opacity: 0.5;
}

.weatherModule {
  width: 100%;
  min-width: 0;
  height: 160px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  color: var(--main_text_color);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.weatherTopline {
  width: 100%;
  min-width: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.weatherGlobe {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0.82;
}

.weatherIcon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.weatherModule.is-loading .weatherIcon {
  animation: weatherPulse 1s ease-in-out infinite;
}

.weatherCopy {
  width: 100%;
  min-width: 0;
}

.weatherReading,
.weatherLocation {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.weatherReading {
  margin: 0;
  font-size: 24px;
  font-weight: 300;
  line-height: 32px;
}

.weatherLocation {
  margin: 4px 0 0;
  font-size: 12px;
  line-height: 16px;
  opacity: 0.58;
}

.weatherRefresh {
  width: 24px;
  height: 24px;
  border: 0;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--main_text_color);
  background: transparent;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.2s ease, opacity 0.2s ease;
}

.weatherRefresh:hover:not(:disabled) {
  background: var(--left_tag_item);
  transform: translateY(-1px);
}

.weatherRefresh:active:not(:disabled) {
  transform: scale(0.96);
}

.weatherRefresh:focus-visible {
  outline: 2px solid var(--fill);
  outline-offset: 2px;
}

.weatherRefresh:disabled {
  cursor: wait;
  opacity: 0.5;
}

@keyframes weatherPulse {
  0%,
  100% {
    opacity: 0.45;
    transform: scale(0.92);
  }
  50% {
    opacity: 1;
    transform: scale(1);
  }
}

.iconTip {
  white-space: nowrap;
  display: none;
}

.iconItem:hover {
  width: 95px;
  transform: translateY(-2px);
  background: var(--item_hover_color);
}

.iconItem:hover .iconTip {
  display: block;
}

.switch:hover {
  width: 55px;
  background: var(--item_hover_color);
}

.title {
  display: flex;
  align-items: center;
  font-size: 26px;
  font-weight: 800;
  margin: 20px 0;
  transition: transform 0.4s ease;
}

.title i,
.title svg {
  margin-right: 8px;
  height: 26px;
  width: 26px;
  fill: var(--fill);
}

.title:hover {
  transform: translateY(-5px);
}

.moduleContent {
  display: block;
  min-width: 0;
  width: 100%;
  grid-column: 1;
  grid-row: 1;
}

.moduleSwitcherLayout {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 54px;
  align-items: start;
  gap: 14px;
}

.moduleDock {
  position: sticky;
  top: 20px;
  grid-column: 2;
  grid-row: 1;
  width: 54px;
  z-index: 2;
  display: flex;
  justify-content: center;
  align-self: start;
  margin: 20px 0 0;
}

.moduleDockSurface {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 10px 6px;
  border: 1px solid var(--module_dock_border);
  border-radius: 15px;
  background: var(--module_dock_bg);
  box-shadow: 0 10px 24px -18px var(--module_dock_shadow), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.moduleDockSurface:hover {
  border-color: var(--module_dock_active_border);
}

.moduleDockItem {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.moduleDockButton {
  position: relative;
  width: 40px;
  height: 40px;
  padding: 11px;
  border: 1px solid transparent;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--module_dock_inactive_color);
  background: var(--module_dock_inactive_bg);
  cursor: pointer;
  transition: color 0.3s ease, background-color 0.3s ease, border-color 0.3s ease, transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease;
}

.moduleDockButton:hover {
  color: var(--main_text_color);
  border-color: var(--module_dock_border);
  background: var(--module_dock_hover_bg);
  transform: translateX(1px);
}

.moduleDockButton:active {
  transform: translateX(1px) scale(0.96);
}

.moduleDockButton.is-active {
  color: var(--module_dock_active_color);
  border-color: var(--module_dock_active_border);
  background: var(--module_dock_active_bg);
  box-shadow: 0 4px 10px -7px var(--module_dock_shadow);
}

.moduleDockButton:focus-visible {
  outline: 2px solid var(--fill);
  outline-offset: 2px;
}

.moduleDockIcon {
  width: 17px;
  height: 17px;
  flex-shrink: 0;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.moduleDockIcon.is-brand {
  width: 19px;
  height: 19px;
  fill: currentColor;
  stroke: none;
}

.moduleDockButton.is-active .moduleDockIcon {
  transform: scale(1.1);
}

.modulePanel {
  width: 100%;
}

.siteSkillsSection {
  width: calc(100% - 68px);
}

.modulePanel {
  animation: modulePanelIn 0.24s ease both;
}

@keyframes modulePanelIn {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.projectList {
  display: flex;
  flex-wrap: wrap;
}

.projectItem {
  margin: 7px;
  display: flex;
  background-color: var(--item_bg_color);
  border-radius: 8px;
  padding: 15px;
  height: 100px;
  width: calc(25% - 15px);
  backdrop-filter: blur(var(--card_filter));
  -webkit-backdrop-filter: blur(var(--card_filter));
  -webkit-transition: opacity 0.5s ease, background-color 0.2s ease, border 0.2s ease, transform 0.3s ease;
  transition: opacity 0.5s ease, background-color 0.2s ease, border 0.2s ease, transform 0.3s ease;
}

.projectItem:hover {
  box-shadow: 0 8px 16px -4px #2c2d300c;
  transform: translateY(-2px);
}

.projectItem:active {
  transform: scale(0.9);
  background-color: var(--item_hover_color);
}

.projectItem:hover .projectItemLeft {
  width: 100%;
}

.projectItem:hover .projectItemRight {
  width: 0%;
}

.projectItem:hover .projectItemRight img {
  transform: rotate(40deg);
}

.projectItem:hover h1 {
  font-size: 18px;
}

.projectItemLeft h1 {
  font-weight: normal;
  font-size: 16px;
  margin: 0px;
  transition: font-size 0.4s ease;
  color: var(--item_left_title_color);
}

.projectItemLeft {
  transition: width 0.4s ease;
  height: 100%;
  width: 80%;
}

.projectItemRight {
  overflow: hidden;
  transition: width 0.4s ease;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 20%;
  height: 100%;
}

.projectItemRight img {
  height: 39px;
  width: 39px;
}

.externalLinksSection {
  margin-top: 26px;
}

.externalLinksTitleIcon {
  fill: none !important;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.externalLinkGrid {
  margin: 0 11px 0 7px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.externalLinkButton {
  min-width: 0;
  min-height: 84px;
  padding: 14px;
  border: 1px solid transparent;
  border-radius: 8px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 16px;
  align-items: center;
  gap: 12px;
  color: var(--main_text_color);
  background: var(--item_bg_color);
  backdrop-filter: blur(var(--card_filter));
  -webkit-backdrop-filter: blur(var(--card_filter));
  transition: transform 0.25s ease, background-color 0.2s ease, border-color 0.2s ease;
}

.externalLinkButton:hover {
  border-color: var(--module_dock_active_border);
  background: var(--item_hover_color);
  transform: translateY(-2px);
}

.externalLinkButton:active {
  transform: scale(0.98);
}

.externalLinkButton:focus-visible {
  outline: 2px solid var(--fill);
  outline-offset: 2px;
}

.externalLinkArrow {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.externalLinkCopy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.externalLinkCopy strong,
.externalLinkCopy small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.externalLinkCopy strong {
  font-size: 14px;
  font-weight: 600;
  line-height: 20px;
}

.externalLinkCopy small {
  font-size: 10px;
  line-height: 15px;
  opacity: 0.55;
}

.externalLinkArrow {
  opacity: 0.45;
  transition: opacity 0.2s ease, transform 0.25s ease;
}

.externalLinkButton:hover .externalLinkArrow {
  opacity: 0.9;
  transform: translate(2px, -2px);
}

.skill {
  padding: 25px;
  width: 100%;
}

.skill img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}

.pageFooter {
  position: relative;
  z-index: 1;
  opacity: 0;
  transition: opacity 0.3s ease-out;
  padding: 12px;
  text-align: center;
  width: 100%;
  margin-top: auto;
  backdrop-filter: blur(var(--card_filter));
  -webkit-backdrop-filter: blur(var(--card_filter));
  background: var(--item_bg_color);
  color: var(--footer_text_color);
  font-size: 13px;
}

.pageFooter.visible {
  opacity: 1;
}

.tc {
  position: fixed;
  inset: 0;
  display: flex;
  visibility: hidden;
  width: auto;
  height: auto;
  min-height: 100vh;
  min-height: 100dvh;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  background: rgba(20, 20, 20, 0.5);
  z-index: 99999;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}

.tc.active {
  visibility: visible;
}

.tc-main {
  z-index: 100000;
  width: 80%;
  max-width: 300px;
  min-height: 200px;
  background-color: #ffffff;
  border-radius: 15px;
  display: flex;
  transition: transform 0.2s linear;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  transform: translateY(30%) scale(0.5);
}

.tc-main.active {
  transform: translateY(0) scale(1);
}

.tc-img {
  width: 100%;
  height: 100%;
}

.onoffswitch {
  position: relative;
  width: 38px;
  height: 20px;
  user-select: none;
}

.onoffswitch-checkbox {
  display: none;
}

.onoffswitch-label {
  display: block;
  overflow: hidden;
  cursor: pointer;
  height: 100%;
  border-radius: 50px;
}

.onoffswitch-inner {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 200%;
  height: 100%;
  margin-left: -100%;
}

.switch.is-theme-ready .onoffswitch-inner {
  transition: margin 0.2s ease-in 0s;
}

.onoffswitch-inner:before,
.onoffswitch-inner:after {
  display: flex;
  justify-content: center;
  align-items: center;
  float: left;
  width: 50%;
  height: 100%;
  padding: 0;
  font-size: 12px;
  color: white;
  font-family: Trebuchet, Arial, sans-serif;
  font-weight: bold;
  box-sizing: border-box;
}

.onoffswitch-inner:before {
  content: "";
  background-color: rgb(110 110 110 / 50%);
  color: #FFFFFF;
  text-align: left;
}

.onoffswitch-inner:after {
  content: "";
  background-color: #272727;
  color: #FAFAFA;
  text-align: right;
}

.onoffswitch-switch {
  display: block;
  height: 70%;
  aspect-ratio: 1/1;
  background: #FFFFFF;
  position: absolute;
  top: 12.5%;
  bottom: 12.5%;
  right: 5px;
  border-radius: 20px;
}

.switch.is-theme-ready .onoffswitch-switch {
  transition: right 0.2s ease-in 0s;
}

.onoffswitch-checkbox:checked + .onoffswitch-label .onoffswitch-inner {
  margin-left: 0;
}

.onoffswitch-checkbox:checked + .onoffswitch-label .onoffswitch-switch {
  right: 50%;
}

@media (min-width: 800px) {
  .index-logo {
    display: none;
  }
}

@media (max-width: 1150px) {
  .externalLinkGrid {
    margin-inline: 10px;
  }

  .projectItem {
    margin: 10px;
    width: calc(50% - 20px);
  }
}

@media (max-width: 1000px) {
  .workspaceModules {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .timeModule {
    height: 160px;
    min-height: 160px;
    align-items: flex-start;
  }

  .timeDate {
    text-align: left;
  }

  .timeDisplay {
    flex-direction: row;
    align-items: flex-end;
    gap: 24px;
  }

  .timeValue {
    font-size: 72px;
    line-height: 72px;
  }
}

@media (max-width: 360px) {
  .timeModule,
  .weatherModule {
    height: 160px;
    min-height: 160px;
    padding-inline: 16px;
  }

  .timeDisplay {
    gap: 14px;
  }

  .timeValue {
    font-size: 56px;
    line-height: 56px;
  }

  .weatherReading {
    font-size: 22px;
  }
}

@media (max-width: 800px) {
  .at-left {
    display: none;
  }

  .projectItem {
    width: calc(50% - 18px);
    margin: 9px;
  }

  .externalLinkGrid {
    margin-inline: 9px;
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .at-right {
    width: 100%;
  }

  .description {
    font-size: 4vw;
  }

  .welcome {
    font-size: 10vw;
    margin: 2vw 0;
  }

  .iconContainer {
    margin-top: 4vw;
  }

  .moduleSwitcherLayout {
    display: flex;
    flex-direction: column;
    gap: 0;
  }

  .moduleContent {
    order: 1;
  }

  .moduleDock {
    position: relative;
    top: auto;
    width: 100%;
    align-self: stretch;
    order: 2;
    margin: 10px 0 2px;
  }

  .moduleDockSurface {
    flex-direction: row;
    gap: 6px;
    padding: 5px 8px;
    border-radius: 12px;
  }

  .siteSkillsSection {
    width: 100%;
  }

  .moduleDockItem,
  .moduleDockButton {
    width: 38px;
    height: 38px;
  }

  .moduleDockButton {
    padding: 10px;
    border-radius: 9px;
  }

  .moduleDockIcon {
    width: 16px;
    height: 16px;
  }

  .workspaceModules {
    width: calc(100% - 18px);
    margin: 18px 9px 12px;
  }

  .weatherModule {
    padding: 24px;
  }

  .projectItem {
    padding: 10px;
  }

  .projectItemLeft h1 {
    font-size: 18px;
  }

  .projectItem:hover h1 {
    font-size: 20px;
  }

  .projectItemRight img {
    display: block;
  }

}

@media (prefers-reduced-motion: reduce) {
  .modulePanel {
    animation: none;
  }

  .moduleDockSurface,
  .moduleDockButton,
  .moduleDockIcon,
  .sunTransitDot,
  .weatherModule,
  .weatherRefresh {
    transition: none;
  }

  .sunTransitDot.is-revealing {
    animation: none;
  }
}

/* ====== Blog structure ====== */
.blogNavBar {
  grid-template-columns: auto minmax(0, 1fr) auto;
}

.blogSectionNav {
  justify-self: center;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--module_dock_border);
  border-radius: 8px;
  background: var(--item_bg_color);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.blogSectionNav a {
  min-width: 58px;
  height: 33px;
  padding: 0 11px;
  border: 1px solid transparent;
  border-radius: 5px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  line-height: 16px;
  opacity: 0.58;
  transition: opacity 0.2s ease, transform 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

.blogSectionNav a:hover {
  opacity: 1;
  transform: translateY(-1px);
}

.blogSectionNav a:active {
  transform: scale(0.98);
}

.blogSectionNav a.is-active {
  border-color: var(--module_dock_active_border);
  color: var(--module_dock_active_color);
  background: var(--module_dock_active_bg);
  opacity: 1;
}

.blogSectionNav a:focus-visible,
.blogSearchButton:focus-visible,
.blogTopicRail a:focus-visible,
.blogPagination a:focus-visible,
.blogArticleTags a:focus-visible,
.blogSearchDialog button:focus-visible,
.blogSearchInputWrap:focus-within,
.blogSearchResult:focus-visible,
.blogToc a:focus-visible,
.blogAboutActions a:focus-visible {
  outline: 2px solid var(--fill);
  outline-offset: 2px;
}

.blogHeaderActions {
  align-items: center;
  gap: 8px;
}

.blogSearchButton {
  width: 43px;
  height: 43px;
  border: 1px solid var(--module_dock_border);
  border-radius: 8px;
  display: grid;
  place-items: center;
  color: var(--main_text_color);
  background: var(--item_bg_color);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  cursor: pointer;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.2s ease, border-color 0.2s ease;
}

.blogSearchButton:hover {
  border-color: var(--module_dock_active_border);
  background: var(--item_hover_color);
  transform: translateY(-2px);
}

.blogSearchButton:active {
  transform: scale(0.97);
}

.blogSearchButton svg,
.blogSearchHeader svg,
.blogSearchInputWrap svg,
.blogSearchState svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.blogTopicRail {
  min-height: 70px;
  margin-top: 22px;
  padding: 12px 3px;
  border-top: 1px solid var(--module_dock_border);
  border-bottom: 1px solid var(--module_dock_border);
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
}

.blogTopicRail > span {
  font-size: 10px;
  font-weight: 600;
  line-height: 15px;
  text-transform: uppercase;
  opacity: 0.5;
}

.blogTopicRail > div {
  min-width: 0;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
}

.blogTopicRail a,
.blogArticleTags a {
  min-height: 28px;
  padding: 4px 8px;
  border: 1px solid var(--module_dock_border);
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--main_text_color);
  background: var(--module_dock_inactive_bg);
  font-size: 10px;
  line-height: 16px;
  opacity: 0.72;
  transition: opacity 0.2s ease, transform 0.2s ease, background-color 0.2s ease;
}

.blogTopicRail a:hover,
.blogArticleTags a:hover {
  background: var(--item_hover_color);
  opacity: 1;
  transform: translateY(-1px);
}

.blogTopicRail small {
  font-size: 8px;
  opacity: 0.5;
}

.blogPostTags {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  font-size: 9px;
  line-height: 13px;
  opacity: 0.42;
}

.blogPostRow {
  min-height: 158px;
}

.blogPagination {
  min-height: 84px;
  margin-top: 26px;
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) 40px;
  align-items: center;
  gap: 12px;
}

.blogPagination > a,
.blogPagination > span,
.blogPagination > div a,
.blogPagination > div span {
  width: 40px;
  height: 40px;
  border: 1px solid var(--module_dock_border);
  border-radius: 6px;
  display: grid;
  place-items: center;
  color: var(--main_text_color);
  background: var(--item_bg_color);
  font-size: 10px;
  font-variant-numeric: tabular-nums;
  transition: transform 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

.blogPagination > div {
  display: flex;
  justify-content: center;
  gap: 7px;
}

.blogPagination a:hover {
  border-color: var(--module_dock_active_border);
  background: var(--item_hover_color);
  transform: translateY(-1px);
}

.blogPagination a:active {
  transform: scale(0.97);
}

.blogPagination .is-current {
  color: var(--module_dock_active_color);
  background: var(--module_dock_active_bg);
}

.blogPagination .is-disabled {
  opacity: 0.25;
}

.blogPagination svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.blogListingPage,
.blogArchivePage,
.blogAboutPage {
  width: calc(100% - 14px);
  margin: 0 7px;
  padding-top: 26px;
}

.blogListHeader {
  min-height: 154px;
  padding: 34px 0 28px;
  border-top: 1px solid var(--module_dock_active_border);
  border-bottom: 1px solid var(--module_dock_active_border);
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}

.blogListHeader p,
.blogAboutCopy > p:first-child {
  margin: 0;
  font-size: 9px;
  font-weight: 600;
  line-height: 13px;
  opacity: 0.5;
}

.blogListHeader h1 {
  margin: 7px 0 0;
  font-size: 35px;
  font-weight: 600;
  line-height: 43px;
  letter-spacing: 0;
}

.blogListHeader > span,
.blogListHeader > a {
  padding-bottom: 5px;
  font-size: 10px;
  line-height: 15px;
  opacity: 0.6;
}

.blogListHeader > a:hover {
  text-decoration: underline;
}

.blogListingPage .blogPostList {
  margin-top: 12px;
}

.blogEmptyState {
  min-height: 280px;
  border-top: 1px solid var(--module_dock_border);
  border-bottom: 1px solid var(--module_dock_border);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.blogIndex > .blogEmptyState {
  border-top: 0;
}

.blogEmptyState h2 {
  font-size: 22px;
  line-height: 29px;
}

.blogEmptyState p {
  margin-top: 8px;
  font-size: 11px;
  line-height: 17px;
  opacity: 0.55;
}

/* Search dialog */
.blogSearchOverlay {
  position: fixed;
  inset: 0;
  z-index: 99998;
  padding: 20px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  background: var(--weather_dialog_backdrop);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  animation: blogSearchFade 0.22s ease both;
}

.blogSearchDialog {
  width: min(640px, 100%);
  max-height: calc(100dvh - 40px);
  margin-top: min(12vh, 110px);
  border: 1px solid var(--weather_dialog_border);
  border-radius: 8px;
  overflow: hidden;
  color: var(--weather_dialog_text);
  background: var(--weather_dialog_bg);
  box-shadow: 0 24px 70px -34px var(--weather_dialog_shadow), inset 0 1px 0 var(--weather_dialog_inset);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  animation: blogSearchIn 0.3s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.blogSearchHeader {
  min-height: 74px;
  padding: 15px 18px;
  border-bottom: 1px solid var(--weather_dialog_line);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.blogSearchHeader p,
.blogSearchResultLabel {
  margin: 0;
  font-size: 8px;
  font-weight: 600;
  line-height: 12px;
  opacity: 0.48;
}

.blogSearchHeader h2 {
  margin: 3px 0 0;
  font-size: 18px;
  font-weight: 600;
  line-height: 24px;
}

.blogSearchHeader button {
  width: 34px;
  height: 34px;
  border: 1px solid var(--weather_dialog_line);
  border-radius: 6px;
  display: grid;
  place-items: center;
  color: inherit;
  background: var(--weather_dialog_control_bg);
  cursor: pointer;
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.blogSearchHeader button:hover,
.blogSearchState button:hover {
  background: var(--weather_dialog_control_hover);
}

.blogSearchHeader button:active,
.blogSearchState button:active {
  transform: scale(0.97);
}

.blogSearchField {
  padding: 16px 18px 14px;
}

.blogSearchField label {
  display: block;
  margin-bottom: 7px;
  font-size: 9px;
  line-height: 13px;
  color: var(--weather_dialog_muted);
}

.blogSearchInputWrap {
  height: 48px;
  border: 1px solid var(--weather_dialog_line_strong);
  border-radius: 6px;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  align-items: center;
  background: var(--weather_dialog_control_bg);
}

.blogSearchInputWrap > svg {
  justify-self: end;
  margin-right: 10px;
  color: var(--weather_dialog_subtle);
}

.blogSearchInputWrap input {
  width: 100%;
  min-width: 0;
  height: 100%;
  padding-right: 13px;
  border: 0;
  outline: 0;
  color: var(--weather_dialog_text);
  background: transparent;
  font: inherit;
  font-size: 13px;
  user-select: text;
}

.blogSearchInputWrap input::placeholder {
  color: var(--weather_dialog_faint);
}

.blogSearchResults {
  max-height: min(52vh, 430px);
  padding: 4px 18px 18px;
  overflow-y: auto;
}

.blogSearchResultLabel {
  padding: 8px 2px 9px;
}

.blogSearchResult {
  min-height: 82px;
  padding: 13px 3px;
  border-top: 1px solid var(--weather_dialog_line);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  color: inherit;
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.blogSearchResult:hover {
  background: var(--weather_dialog_surface);
  transform: translateX(3px);
}

.blogSearchResult h3 {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  line-height: 20px;
}

.blogSearchResult p {
  margin: 4px 0 0;
  display: -webkit-box;
  overflow: hidden;
  color: var(--weather_dialog_muted);
  font-size: 10px;
  line-height: 15px;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
}

.blogSearchResult > span {
  font-size: 9px;
  font-variant-numeric: tabular-nums;
  color: var(--weather_dialog_subtle);
}

.blogSearchSkeleton {
  display: grid;
}

.blogSearchSkeleton span {
  height: 76px;
  border-top: 1px solid var(--weather_dialog_line);
  background: linear-gradient(100deg, transparent 20%, var(--weather_dialog_surface) 45%, transparent 70%);
  background-size: 200% 100%;
  animation: blogSearchSkeleton 1.3s ease-in-out infinite;
}

.blogSearchState {
  min-height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  color: var(--weather_dialog_muted);
}

.blogSearchState > svg {
  width: 26px;
  height: 26px;
  flex: 0 0 auto;
}

.blogSearchState h3 {
  margin: 0;
  color: var(--weather_dialog_text);
  font-size: 13px;
  line-height: 19px;
}

.blogSearchState p {
  margin: 4px 0 0;
  font-size: 10px;
  line-height: 15px;
}

.blogSearchState button {
  min-height: 34px;
  margin-left: 10px;
  padding: 0 12px;
  border: 1px solid var(--weather_dialog_line_strong);
  border-radius: 6px;
  color: var(--weather_dialog_text);
  background: var(--weather_dialog_control_bg);
  font-size: 10px;
  cursor: pointer;
}

@keyframes blogSearchFade {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes blogSearchIn {
  from { opacity: 0; transform: translateY(14px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes blogSearchSkeleton {
  from { background-position: 120% 0; }
  to { background-position: -120% 0; }
}

/* Archive */
.blogArchivePageHeader {
  margin-bottom: 42px;
  border-top: 0;
  border-bottom: 0;
}

.blogArchiveYear {
  display: grid;
  grid-template-columns: 124px minmax(0, 1fr);
  gap: 28px;
  padding-bottom: 46px;
}

.blogArchiveYearLabel {
  padding-top: 16px;
}

.blogArchiveYearLabel h2 {
  margin: 0;
  font-size: 31px;
  font-weight: 300;
  font-variant-numeric: tabular-nums;
  line-height: 39px;
}

.blogArchiveYearLabel span {
  display: block;
  margin-top: 3px;
  font-size: 9px;
  line-height: 13px;
  opacity: 0.48;
}

.blogArchiveTimeline {
  border-top: 1px solid var(--module_dock_active_border);
}

.blogArchiveTimeline > a {
  min-height: 126px;
  padding: 20px 4px;
  border-bottom: 1px solid var(--module_dock_border);
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) 80px;
  align-items: center;
  gap: 18px;
  color: inherit;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.2s ease;
}

.blogArchiveTimeline > a:hover {
  background: color-mix(in srgb, var(--item_hover_color) 68%, transparent);
  transform: translateX(4px);
}

.blogArchiveTimeline time,
.blogArchiveTimeline > a > span {
  font-size: 9px;
  font-variant-numeric: tabular-nums;
  line-height: 13px;
  opacity: 0.5;
}

.blogArchiveTimeline > a > span {
  text-align: right;
}

.blogArchiveTimeline h3 {
  margin: 0;
  font-size: 17px;
  font-weight: 600;
  line-height: 24px;
}

.blogArchiveTimeline p {
  margin: 6px 0 0;
  display: -webkit-box;
  overflow: hidden;
  font-size: 10px;
  line-height: 16px;
  opacity: 0.55;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
}

/* About */
.blogAboutIntro {
  min-height: 440px;
  padding: 46px 0 54px;
  border-bottom: 1px solid var(--module_dock_active_border);
  display: flex;
  align-items: center;
}

.blogAboutCopy {
  width: min(100%, 680px);
}

.blogAboutCopy h1 {
  max-width: 10ch;
  margin: 13px 0 0;
  font-size: 42px;
  font-weight: 600;
  line-height: 52px;
  letter-spacing: 0;
}

.blogAboutCopy > p:not(:first-child) {
  max-width: 55ch;
  margin: 17px 0 0;
  font-size: 13px;
  line-height: 23px;
  opacity: 0.68;
}

.blogAboutCopy .blogAboutLead {
  margin-top: 28px;
  font-size: 17px;
  font-weight: 500;
  line-height: 29px;
  opacity: 0.9;
}

.blogAboutActions {
  margin-top: 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.blogAboutActions a {
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid var(--module_dock_border);
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  color: inherit;
  background: var(--item_bg_color);
  font-size: 11px;
  transition: transform 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

.blogAboutActions a:hover {
  border-color: var(--module_dock_active_border);
  background: var(--item_hover_color);
  transform: translateY(-2px);
}

.blogAboutActions a:active {
  transform: scale(0.98);
}

.blogAboutStats {
  min-height: 142px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-bottom: 1px solid var(--module_dock_active_border);
}

.blogAboutStats > div {
  padding: 27px 22px;
  border-right: 1px solid var(--module_dock_border);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.blogAboutStats > div:last-child {
  border-right: 0;
}

.blogAboutStats dt {
  font-size: 9px;
  line-height: 13px;
  opacity: 0.5;
}

.blogAboutStats dd {
  margin: 7px 0 0;
  font-size: 30px;
  font-weight: 300;
  font-variant-numeric: tabular-nums;
  line-height: 38px;
}

/* Article content and TOC */
.blogArticleTags {
  margin-top: 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.blogArticleHero {
  margin: 28px 0 0 152px;
}

.blogArticleHero img {
  width: 100%;
  max-height: 480px;
  border: 1px solid var(--module_dock_border);
  border-radius: 8px;
  display: block;
  object-fit: cover;
}

.blogArticleContent {
  display: grid;
  grid-template-columns: 124px minmax(0, 1fr) 180px;
  align-items: start;
  gap: 28px;
}

.blogArticleContent .blogArticleBody {
  grid-column: 2;
  max-width: none;
  margin-left: 0;
  padding: 46px 0 76px;
}

.blogToc {
  position: sticky;
  top: 24px;
  grid-column: 3;
  padding: 48px 0 18px 17px;
  border-left: 1px solid var(--module_dock_border);
}

.blogToc > p {
  margin: 0 0 12px;
  font-size: 8px;
  font-weight: 600;
  line-height: 12px;
  opacity: 0.48;
}

.blogToc nav {
  display: grid;
  gap: 3px;
}

.blogToc a {
  padding: 5px 7px;
  border-radius: 4px;
  display: block;
  overflow: hidden;
  color: inherit;
  font-size: 10px;
  line-height: 16px;
  opacity: 0.52;
  text-overflow: ellipsis;
  white-space: nowrap;
  transition: opacity 0.2s ease, background-color 0.2s ease, transform 0.2s ease;
}

.blogToc a:hover {
  background: var(--item_bg_color);
  opacity: 1;
  transform: translateX(2px);
}

.blogToc a.is-nested {
  padding-left: 17px;
  font-size: 9px;
}

.blogProse {
  color: var(--main_text_color);
  font-size: 15px;
  line-height: 29px;
}

.blogProse > :first-child {
  margin-top: 0;
}

.blogProse h2,
.blogProse h3,
.blogProse h4 {
  scroll-margin-top: 28px;
  color: var(--main_text_color);
  font-weight: 600;
  letter-spacing: 0;
}

.blogProse h2 {
  margin: 52px 0 18px;
  padding-bottom: 11px;
  border-bottom: 1px solid var(--module_dock_border);
  font-size: 24px;
  line-height: 33px;
}

.blogProse h3 {
  margin: 38px 0 14px;
  font-size: 19px;
  line-height: 27px;
}

.blogProse h4 {
  margin: 30px 0 12px;
  font-size: 16px;
  line-height: 23px;
}

.blogProse p {
  margin: 0 0 18px;
  opacity: 0.82;
}

.blogProse a {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, 0.4);
  text-underline-offset: 3px;
}

.blogProse a:hover {
  text-decoration-color: currentColor;
}

.blogProse strong {
  font-weight: 700;
  opacity: 1;
}

.blogProse ul,
.blogProse ol {
  margin: 18px 0 24px;
  padding-left: 24px;
}

.blogProse li {
  margin: 7px 0;
  padding-left: 3px;
  opacity: 0.8;
}

.blogProse blockquote {
  margin: 27px 0;
  padding: 17px 19px;
  border-left: 2px solid rgba(255, 255, 255, 0.62);
  border-radius: 0 6px 6px 0;
  background: var(--item_bg_color);
}

.blogProse blockquote p:last-child {
  margin-bottom: 0;
}

.blogProse code {
  padding: 2px 5px;
  border: 1px solid var(--module_dock_border);
  border-radius: 4px;
  background: var(--module_dock_inactive_bg);
  font-family: "Cascadia Code", "SFMono-Regular", Consolas, monospace;
  font-size: 0.86em;
  user-select: text;
}

.blogProse pre {
  max-width: 100%;
  margin: 25px 0;
  padding: 18px;
  border: 1px solid var(--module_dock_border);
  border-radius: 8px;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.32) rgba(255, 255, 255, 0.07);
  scrollbar-gutter: stable;
  background: rgba(19, 20, 24, 0.72);
  color: #f4f4f5;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
  user-select: text;
  -webkit-overflow-scrolling: touch;
}

.blogProse pre::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

.blogProse pre::-webkit-scrollbar-track {
  border-radius: 0 0 6px 6px;
  background: rgba(255, 255, 255, 0.07);
}

.blogProse pre::-webkit-scrollbar-thumb {
  border: 2px solid rgba(19, 20, 24, 0.72);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.36);
}

.blogProse pre::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.52);
}

.blogProse pre code {
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font-size: 12px;
  line-height: 21px;
}

.blogCodeBlock {
  position: relative;
  max-width: 100%;
  margin: 25px 0;
}

.blogProse .blogCodeBlock pre {
  margin: 0;
  padding-top: 48px;
}

.blogCodeCopyButton {
  position: absolute;
  z-index: 1;
  top: 10px;
  right: 10px;
  width: 30px;
  height: 30px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 6px;
  display: grid;
  place-items: center;
  color: rgba(255, 255, 255, 0.78);
  background: rgba(19, 20, 24, 0.74);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
  cursor: pointer;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease, opacity 0.2s ease;
}

.blogCodeCopyButton:hover:not(:disabled) {
  border-color: rgba(255, 255, 255, 0.3);
  color: #ffffff;
  background: rgba(42, 44, 50, 0.92);
  transform: translateY(-1px);
}

.blogCodeCopyButton:active:not(:disabled) {
  transform: scale(0.96);
}

.blogCodeCopyButton:focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: 2px;
}

.blogCodeCopyButton:disabled {
  cursor: wait;
  opacity: 0.62;
}

.blogCodeCopyButton svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.blogCodeSuccessIcon {
  display: none;
}

.blogCodeCopyButton[data-state="copied"] {
  border-color: rgba(170, 255, 205, 0.34);
  color: #aaffcd;
}

.blogCodeCopyButton[data-state="copied"] .blogCodeCopyIcon {
  display: none;
}

.blogCodeCopyButton[data-state="copied"] .blogCodeSuccessIcon {
  display: block;
}

.blogCodeCopyButton[data-state="error"] {
  border-color: rgba(255, 180, 180, 0.34);
  color: #ffb4b4;
}

@media (max-width: 640px) {
  .blogProse .blogCodeBlock {
    margin-right: -9px;
    margin-left: -9px;
  }

  .blogProse .blogCodeBlock pre {
    border-radius: 6px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .blogCodeCopyButton {
    transition: none;
  }
}

.blogProse hr {
  height: 1px;
  margin: 38px 0;
  border: 0;
  background: var(--module_dock_border);
}

.githubRepoEmbed {
  margin: 30px 0;
  border: 1px solid var(--module_dock_border);
  border-radius: 8px;
  overflow: hidden;
  background: var(--item_bg_color);
  box-shadow: 0 16px 42px -34px var(--module_dock_shadow), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.2s ease, border-color 0.2s ease;
}

.githubRepoEmbed:hover {
  border-color: var(--module_dock_active_border);
  background: var(--item_hover_color);
  transform: translateY(-2px);
}

.githubRepoEmbed:active {
  transform: scale(0.99);
}

.githubRepoEmbedLink,
.blogProse .githubRepoEmbedLink {
  padding: 20px;
  display: block;
  color: inherit;
  text-decoration: none;
}

.blogProse .githubRepoEmbedLink:hover {
  text-decoration: none;
}

.githubRepoEmbedLink:focus-visible {
  outline: 2px solid var(--fill);
  outline-offset: -3px;
}

.githubRepoEmbedHeader,
.githubRepoEmbedIdentity,
.githubRepoEmbedName,
.githubRepoEmbedMeta,
.githubRepoEmbedMetaItem {
  display: flex;
  align-items: center;
}

.githubRepoEmbedHeader {
  min-width: 0;
  gap: 10px;
}

.githubRepoEmbedIdentity {
  min-width: 0;
  flex: 1 1 auto;
  gap: 10px;
}

.githubRepoEmbedAvatar {
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
  border: 1px solid var(--module_dock_border);
  border-radius: 50%;
  overflow: hidden;
  background: var(--module_dock_inactive_bg);
}

.githubRepoEmbedAvatar img,
.blogProse .githubRepoEmbedAvatar img {
  width: 100%;
  height: 100%;
  margin: 0;
  border: 0;
  border-radius: 0;
  display: block;
  object-fit: cover;
}

.githubRepoEmbedName {
  min-width: 0;
  gap: 5px;
  font-size: 14px;
  line-height: 20px;
}

.githubRepoEmbedOwner,
.githubRepoEmbedDivider {
  flex: 0 0 auto;
  opacity: 0.56;
}

.githubRepoEmbedRepository {
  min-width: 0;
  overflow: hidden;
  font-size: 15px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.githubRepoEmbedStatus {
  flex: 0 0 auto;
  padding: 3px 7px;
  border: 1px solid var(--module_dock_border);
  border-radius: 4px;
  background: var(--module_dock_inactive_bg);
  font-size: 8px;
  font-weight: 600;
  line-height: 12px;
  text-transform: uppercase;
  opacity: 0.68;
}

.githubRepoEmbedExternal {
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0.5;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.githubRepoEmbed:hover .githubRepoEmbedExternal {
  opacity: 0.9;
  transform: translate(2px, -2px);
}

.blogProse .githubRepoEmbedDescription {
  max-width: 68ch;
  min-height: 42px;
  margin: 17px 0 0;
  overflow: hidden;
  font-size: 12px;
  line-height: 21px;
  opacity: 0.68;
}

.githubRepoEmbedMeta {
  min-width: 0;
  margin-top: 17px;
  padding-top: 13px;
  border-top: 1px solid color-mix(in srgb, var(--module_dock_border) 74%, transparent);
  flex-wrap: wrap;
  gap: 9px 18px;
}

.githubRepoEmbedMetaItem {
  min-width: 0;
  gap: 6px;
  font-size: 9px;
  line-height: 13px;
  opacity: 0.62;
}

.githubRepoEmbedLanguage {
  margin-right: auto;
}

.githubRepoEmbedLanguageDot {
  width: 7px;
  height: 7px;
  flex: 0 0 7px;
  border-radius: 50%;
  background: #a3a3a3;
}

.githubRepoEmbedMetaIcon {
  width: 13px;
  height: 13px;
  flex: 0 0 13px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.githubRepoEmbed[data-state="loading"] .githubRepoEmbedDescription {
  position: relative;
  color: transparent;
}

.githubRepoEmbed[data-state="loading"] .githubRepoEmbedDescription::before {
  content: "";
  position: absolute;
  top: 5px;
  left: 0;
  width: min(76%, 430px);
  height: 8px;
  border-radius: 3px;
  background: color-mix(in srgb, var(--main_text_color) 13%, transparent);
  box-shadow: 0 17px 0 color-mix(in srgb, var(--main_text_color) 9%, transparent);
}

.githubRepoEmbed[data-state="loading"] .githubRepoEmbedDescription::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, transparent 25%, rgba(255, 255, 255, 0.12) 45%, transparent 65%);
  transform: translateX(-100%);
  animation: githubRepoEmbedLoading 1.25s ease-in-out infinite;
}

.githubRepoEmbed[data-state="loading"] .githubRepoEmbedMeta {
  opacity: 0.56;
}

.githubRepoEmbed[data-state="error"] {
  border-color: color-mix(in srgb, #d75b5b 42%, var(--module_dock_border));
}

.githubRepoEmbed[data-state="error"] .githubRepoEmbedStatus {
  color: #ffb4b4;
}

.githubRepoEmbed[data-state="archived"] .githubRepoEmbedStatus {
  opacity: 0.5;
}

@keyframes githubRepoEmbedLoading {
  to { transform: translateX(100%); }
}

@media (max-width: 480px) {
  .githubRepoEmbedLink,
  .blogProse .githubRepoEmbedLink {
    padding: 16px;
  }

  .githubRepoEmbedStatus {
    display: none;
  }

  .githubRepoEmbedAvatar {
    width: 28px;
    height: 28px;
    flex-basis: 28px;
  }

  .githubRepoEmbedName {
    font-size: 12px;
  }

  .githubRepoEmbedRepository {
    font-size: 13px;
  }

  .githubRepoEmbedMeta {
    gap: 9px 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .githubRepoEmbed,
  .githubRepoEmbedExternal {
    transition: none;
  }

  .githubRepoEmbed[data-state="loading"] .githubRepoEmbedDescription::after {
    animation: none;
  }
}

.blogProse img {
  width: 100%;
  height: auto;
  margin: 26px 0;
  border: 1px solid var(--module_dock_border);
  border-radius: 8px;
  display: block;
}

.blogProse table {
  width: 100%;
  margin: 26px 0;
  border-collapse: collapse;
  display: block;
  overflow-x: auto;
  font-size: 12px;
  line-height: 19px;
}

.blogProse th,
.blogProse td {
  min-width: 120px;
  padding: 10px 12px;
  border: 1px solid var(--module_dock_border);
  text-align: left;
}

.blogProse th {
  background: var(--item_bg_color);
  font-weight: 600;
}

@media (max-width: 1100px) {
  .blogArticleContent {
    grid-template-columns: 124px minmax(0, 1fr);
  }

  .blogToc {
    display: none;
  }
}

@media (max-width: 800px) {
  .blogListingPage,
  .blogArchivePage,
  .blogAboutPage {
    width: calc(100% - 18px);
    margin-right: 9px;
    margin-left: 9px;
  }

  .blogAboutCopy h1 {
    font-size: 36px;
    line-height: 46px;
  }
}

@media (max-width: 640px) {
  .blogNavBar {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
  }

  .blogHomeLink {
    grid-column: 1;
    grid-row: 1;
  }

  .blogHeaderActions {
    grid-column: 2;
    grid-row: 1;
  }

  .blogSectionNav {
    width: 100%;
    margin-top: 8px;
    grid-column: 1 / -1;
    grid-row: 2;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .blogSectionNav a {
    min-width: 0;
  }

  .blogTopicRail {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .blogPostRow {
    min-height: 174px;
  }

  .blogPostTags {
    display: none;
  }

  .blogListHeader {
    min-height: 132px;
    align-items: flex-start;
    flex-direction: column;
    justify-content: flex-end;
    gap: 10px;
  }

  .blogListHeader h1 {
    font-size: 29px;
    line-height: 38px;
  }

  .blogArchivePageHeader {
    margin-bottom: 30px;
  }

  .blogArchiveYear {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .blogArchiveYearLabel {
    display: flex;
    align-items: baseline;
    gap: 9px;
  }

  .blogArchiveTimeline > a {
    grid-template-columns: 48px minmax(0, 1fr);
  }

  .blogArchiveTimeline > a > span {
    display: none;
  }

  .blogAboutIntro {
    min-height: 0;
  }

  .blogAboutCopy h1 {
    font-size: 34px;
    line-height: 43px;
  }

  .blogAboutStats {
    min-height: 112px;
  }

  .blogAboutStats > div {
    padding: 19px 10px;
  }

  .blogAboutStats dd {
    font-size: 23px;
    line-height: 31px;
  }

  .blogArticleContent {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
  }

  .blogArticleContent .blogArticleBody {
    min-width: 0;
    max-width: 100%;
    grid-column: 1;
    grid-row: 2;
  }

  .blogToc {
    position: relative;
    top: auto;
    grid-column: 1;
    grid-row: 1;
    display: block;
    padding: 22px 0;
    border-left: 0;
    border-bottom: 1px solid var(--module_dock_border);
  }

  .blogToc nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 3px 8px;
  }

  .blogToc a,
  .blogToc a.is-nested {
    padding-left: 7px;
  }

  .blogArticleHero {
    margin-left: 0;
  }

  .blogProse {
    font-size: 14px;
    line-height: 27px;
  }

  .blogProse h2 {
    margin-top: 42px;
    font-size: 21px;
    line-height: 29px;
  }

  .blogProse h3 {
    margin-top: 32px;
    font-size: 18px;
    line-height: 26px;
  }

  .blogProse pre {
    margin-right: -9px;
    margin-left: -9px;
    border-radius: 6px;
  }

  .blogSearchOverlay {
    padding: 10px;
  }

  .blogSearchDialog {
    max-height: calc(100dvh - 20px);
    margin-top: 4vh;
  }

  .blogSearchResult {
    grid-template-columns: 1fr;
    gap: 5px;
  }
}

@media (max-width: 390px) {
  .blogSearchButton,
  .blogHeaderActions .switch {
    width: 40px;
  }

  .blogHeaderActions {
    gap: 6px;
  }

  .blogSectionNav a {
    padding-right: 7px;
    padding-left: 7px;
    font-size: 10px;
  }

  .blogToc nav {
    grid-template-columns: 1fr;
  }

  .blogAboutStats dt {
    font-size: 8px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .blogSearchOverlay,
  .blogSearchDialog,
  .blogSearchSkeleton span {
    animation: none;
  }

  .blogSectionNav a,
  .blogSearchButton,
  .blogTopicRail a,
  .blogPagination a,
  .blogSearchHeader button,
  .blogSearchResult,
  .blogArchiveTimeline > a,
  .blogAboutActions a,
  .blogToc a {
    transition: none;
  }
}

/* ====== Blog ====== */
.blogRight {
  padding-bottom: 48px;
}

.blogPageHeader {
  width: calc(100% - 14px);
  margin: 20px 7px 0;
}

.blogNavBar {
  min-height: 44px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
}

.blogHomeLink {
  width: max-content;
  min-height: 43px;
  padding: 0 15px 0 11px;
  border: 1px solid var(--module_dock_border);
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--main_text_color);
  background: var(--item_bg_color);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.2s ease, border-color 0.2s ease;
}

.blogHomeLink:hover {
  border-color: var(--module_dock_active_border);
  background: var(--item_hover_color);
  transform: translateX(-2px);
}

.blogHomeLink:active {
  transform: translateX(-2px) scale(0.98);
}

.blogHomeLink:focus-visible,
.blogFeatured:focus-visible,
.blogPostRow:focus-visible,
.blogBreadcrumb a:focus-visible,
.blogArticleEnd a:focus-visible {
  outline: 2px solid var(--fill);
  outline-offset: 3px;
}

.blogHomeLink svg,
.blogReadLabel svg,
.blogPostArrow,
.blogBreadcrumb svg,
.blogArticleEnd svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.blogHomeLink span {
  font-size: 13px;
  line-height: 18px;
}

.blogHeaderActions {
  display: flex;
  justify-content: flex-end;
}

.blogHeaderActions .switch {
  margin-left: 0;
  border: 1px solid var(--module_dock_border);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.blogMasthead {
  padding: 70px 0 35px;
  border-bottom: 1px solid var(--module_dock_border);
}

.blogKicker {
  margin: 0 0 12px;
  font-size: 11px;
  font-weight: 600;
  line-height: 16px;
  letter-spacing: 0;
  opacity: 0.58;
}

.blogMasthead h1 {
  margin: 0;
  font-size: 56px;
  font-weight: 700;
  line-height: 64px;
  letter-spacing: 0;
}

.blogMasthead h1 .gradientText {
  display: inline-block;
  padding: 0.12em 0.24em 0.26em 0.08em;
  margin: -0.12em -0.24em -0.26em -0.08em;
  font-weight: 400;
}

.blogMastheadCopy {
  max-width: 38ch;
  margin: 14px 0 0;
  font-size: 16px;
  line-height: 25px;
  opacity: 0.68;
}

.blogPageHeader.is-compact .blogMasthead {
  padding: 38px 0 24px;
}

.blogPageHeader.is-compact .blogMasthead h1 {
  font-size: 40px;
  line-height: 48px;
}

.blogPageHeader.is-compact .blogMastheadCopy {
  margin-top: 12px;
  font-size: 14px;
  line-height: 21px;
}

.blogIndex,
.blogArticle {
  width: calc(100% - 14px);
  margin-right: 7px;
  margin-left: 7px;
}

.blogIndex {
  padding-top: 30px;
}

.blogFeatured {
  min-height: 258px;
  border: 1px solid var(--module_dock_border);
  border-radius: 8px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 132px;
  overflow: hidden;
  color: var(--main_text_color);
  background: var(--item_bg_color);
  box-shadow: 0 16px 42px -34px var(--module_dock_shadow), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  animation: blogReveal 0.55s cubic-bezier(0.16, 1, 0.3, 1) both;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.25s ease, border-color 0.25s ease;
}

.blogFeatured:hover {
  border-color: var(--module_dock_active_border);
  background: var(--item_hover_color);
  transform: translateY(-3px);
}

.blogFeatured:active {
  transform: translateY(-1px) scale(0.99);
}

.blogFeaturedMain {
  min-width: 0;
  padding: 34px 38px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.blogPostMeta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 10px;
  line-height: 15px;
  text-transform: uppercase;
  opacity: 0.64;
}

.blogPostMeta > * + *::before {
  content: "/";
  margin-right: 8px;
  opacity: 0.48;
}

.blogFeatured h2 {
  max-width: 16ch;
  margin: 31px 0 0;
  font-size: 34px;
  font-weight: 600;
  line-height: 43px;
  letter-spacing: 0;
}

.blogFeaturedMain > p {
  max-width: 56ch;
  margin: 13px 0 0;
  font-size: 13px;
  line-height: 21px;
  opacity: 0.68;
}

.blogReadLabel {
  margin-top: auto;
  padding-top: 24px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 600;
  line-height: 16px;
}

.blogReadLabel svg {
  width: 16px;
  height: 16px;
  transition: transform 0.25s ease;
}

.blogFeatured:hover .blogReadLabel svg {
  transform: translateX(4px);
}

.blogFeaturedAside {
  border-left: 1px solid var(--module_dock_border);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.035);
}

.blogFeaturedAside span {
  font-size: 50px;
  font-weight: 300;
  font-variant-numeric: tabular-nums;
  line-height: 56px;
}

.blogFeaturedAside small {
  margin-top: 5px;
  font-size: 9px;
  font-weight: 600;
  line-height: 13px;
  opacity: 0.52;
}

.blogArchiveHeading {
  min-height: 96px;
  margin-top: 46px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 17px;
  border-bottom: 1px solid var(--module_dock_active_border);
}

.blogArchiveHeading p,
.blogArticleEnd p {
  margin: 0;
  font-size: 9px;
  font-weight: 600;
  line-height: 13px;
  opacity: 0.52;
}

.blogArchiveHeading h2,
.blogArticleEnd h2 {
  margin: 4px 0 0;
  font-size: 24px;
  font-weight: 600;
  line-height: 31px;
  letter-spacing: 0;
}

.blogArchiveHeading > span {
  padding-bottom: 3px;
  font-size: 10px;
  line-height: 15px;
  opacity: 0.54;
}

.blogPostList {
  border-bottom: 1px solid var(--module_dock_active_border);
}

.blogPostRow {
  min-height: 142px;
  padding: 24px 4px;
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) 104px 26px;
  align-items: center;
  gap: 20px;
  border-top: 1px solid color-mix(in srgb, var(--module_dock_border) 74%, transparent);
  color: var(--main_text_color);
  animation: blogReveal 0.5s cubic-bezier(0.16, 1, 0.3, 1) both;
  animation-delay: calc(var(--post-index) * 80ms + 80ms);
  transition: background-color 0.25s ease;
}

.blogPostRow:first-child {
  border-top: 0;
}

.blogPostRow:hover {
  background: color-mix(in srgb, var(--item_hover_color) 72%, transparent);
}

.blogPostNumber {
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  line-height: 18px;
  opacity: 0.38;
}

.blogPostSummary {
  min-width: 0;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.blogPostRow:hover .blogPostSummary {
  transform: translateX(5px);
}

.blogPostSummary h3 {
  margin: 0;
  font-size: 19px;
  font-weight: 600;
  line-height: 27px;
  letter-spacing: 0;
}

.blogPostSummary p {
  max-width: 58ch;
  margin: 7px 0 0;
  display: -webkit-box;
  overflow: hidden;
  font-size: 11px;
  line-height: 17px;
  opacity: 0.58;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.blogPostRowMeta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  font-size: 9px;
  line-height: 13px;
  opacity: 0.58;
}

.blogPostRowMeta span {
  color: var(--main_text_color);
  font-weight: 600;
}

.blogPostRowMeta small {
  font-size: inherit;
}

.blogPostArrow {
  width: 17px;
  height: 17px;
  opacity: 0.52;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.blogPostRow:hover .blogPostArrow {
  opacity: 1;
  transform: translateX(4px);
}

.blogArticle {
  padding-top: 22px;
}

.blogBreadcrumb {
  min-height: 42px;
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 10px;
  line-height: 15px;
  opacity: 0.62;
}

.blogBreadcrumb a {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: inherit;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.blogBreadcrumb a:hover {
  opacity: 1;
  transform: translateX(-2px);
}

.blogBreadcrumb svg {
  width: 14px;
  height: 14px;
}

.blogArticleHeader {
  min-height: 298px;
  padding: 48px 0;
  border-bottom: 1px solid var(--module_dock_active_border);
  display: grid;
  grid-template-columns: 124px minmax(0, 1fr);
  gap: 28px;
  align-items: start;
  animation: blogReveal 0.5s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.blogArticleMeta {
  padding-top: 8px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  font-size: 9px;
  font-variant-numeric: tabular-nums;
  line-height: 14px;
  opacity: 0.58;
}

.blogArticleMeta span {
  margin-bottom: 7px;
  padding: 3px 7px;
  border: 1px solid var(--module_dock_border);
  border-radius: 4px;
  color: var(--main_text_color);
  font-weight: 600;
  opacity: 1;
}

.blogArticleMeta small {
  font-size: inherit;
}

.blogArticleTitle {
  min-width: 0;
}

.blogArticleTitle h1 {
  max-width: 15ch;
  margin: 0;
  font-size: 46px;
  font-weight: 600;
  line-height: 57px;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

.blogArticleTitle p {
  max-width: 58ch;
  margin: 24px 0 0;
  font-size: 14px;
  line-height: 23px;
  opacity: 0.64;
}

.blogArticleBody {
  max-width: 690px;
  margin-left: 152px;
  padding: 46px 0 76px;
  user-select: text;
}

.blogArticleBody * {
  user-select: text;
}

.blogArticleBody section + section {
  margin-top: 44px;
}

.blogArticleBody h2 {
  margin: 0 0 18px;
  font-size: 23px;
  font-weight: 600;
  line-height: 31px;
  letter-spacing: 0;
}

.blogArticleBody section > p {
  margin: 0;
  font-size: 15px;
  line-height: 29px;
  opacity: 0.82;
}

.blogArticleBody section > p + p {
  margin-top: 17px;
}

.blogArticleEnd {
  min-height: 126px;
  padding: 25px 0;
  border-top: 1px solid var(--module_dock_active_border);
  display: grid;
  grid-template-columns: 124px minmax(0, 1fr);
  gap: 28px;
  align-items: center;
}

.blogArticleEnd h2 {
  font-size: 17px;
  line-height: 23px;
}

.blogArticleEnd > a {
  min-width: 0;
  min-height: 62px;
  padding: 0 16px;
  border: 1px solid var(--module_dock_border);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  color: var(--main_text_color);
  background: var(--item_bg_color);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.2s ease, border-color 0.2s ease;
}

.blogArticleEnd > a:hover {
  border-color: var(--module_dock_active_border);
  background: var(--item_hover_color);
  transform: translateX(3px);
}

.blogArticleEnd > a:active {
  transform: translateX(3px) scale(0.99);
}

.blogArticleEnd > a span {
  overflow: hidden;
  font-size: 13px;
  line-height: 19px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@keyframes blogReveal {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 800px) {
  .blogRight {
    padding-bottom: 36px;
  }

  .blogPageHeader {
    width: calc(100% - 18px);
    margin-right: 9px;
    margin-left: 9px;
  }

  .blogMasthead {
    padding-top: 56px;
  }

  .blogMasthead h1 {
    font-size: 48px;
    line-height: 57px;
  }

  .blogIndex,
  .blogArticle {
    width: calc(100% - 18px);
    margin-right: 9px;
    margin-left: 9px;
  }
}

@media (max-width: 640px) {
  .blogNavBar {
    grid-template-columns: 1fr auto;
  }

  .blogMasthead {
    padding: 46px 0 28px;
  }

  .blogMasthead h1 {
    font-size: 42px;
    line-height: 52px;
  }

  .blogMastheadCopy {
    font-size: 14px;
    line-height: 22px;
  }

  .blogPageHeader.is-compact .blogMasthead {
    padding-top: 30px;
  }

  .blogIndex {
    padding-top: 22px;
  }

  .blogFeatured {
    min-height: 0;
    grid-template-columns: 1fr;
  }

  .blogFeaturedMain {
    min-height: 272px;
    padding: 27px 24px;
  }

  .blogFeatured h2 {
    margin-top: 27px;
    font-size: 29px;
    line-height: 38px;
  }

  .blogFeaturedAside {
    min-height: 72px;
    border-top: 1px solid var(--module_dock_border);
    border-left: 0;
    flex-direction: row;
    gap: 10px;
  }

  .blogFeaturedAside span {
    font-size: 27px;
    line-height: 34px;
  }

  .blogFeaturedAside small {
    margin-top: 2px;
  }

  .blogArchiveHeading {
    min-height: 84px;
    margin-top: 30px;
  }

  .blogPostRow {
    min-height: 154px;
    padding: 23px 2px;
    grid-template-columns: 36px minmax(0, 1fr) 22px;
    grid-template-rows: auto auto;
    gap: 10px 12px;
  }

  .blogPostNumber {
    grid-row: 1 / span 2;
    align-self: start;
    padding-top: 5px;
  }

  .blogPostSummary {
    grid-column: 2;
  }

  .blogPostSummary h3 {
    font-size: 17px;
    line-height: 24px;
  }

  .blogPostRowMeta {
    grid-column: 2;
    grid-row: 2;
    flex-direction: row;
    align-items: center;
    gap: 8px;
  }

  .blogPostRowMeta > * + *::before {
    content: "/";
    margin-right: 8px;
    opacity: 0.48;
  }

  .blogPostArrow {
    grid-column: 3;
    grid-row: 1 / span 2;
  }

  .blogArticleHeader {
    min-height: 0;
    padding: 34px 0 40px;
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .blogArticleMeta {
    padding-top: 0;
    flex-direction: row;
    align-items: center;
    gap: 9px;
  }

  .blogArticleMeta span {
    margin: 0 3px 0 0;
  }

  .blogArticleTitle h1 {
    font-size: 35px;
    line-height: 45px;
  }

  .blogArticleTitle p {
    margin-top: 18px;
    font-size: 13px;
    line-height: 22px;
  }

  .blogArticleBody {
    max-width: none;
    margin-left: 0;
    padding: 37px 0 60px;
  }

  .blogArticleBody h2 {
    font-size: 21px;
    line-height: 29px;
  }

  .blogArticleBody section > p {
    font-size: 14px;
    line-height: 27px;
  }

  .blogArticleEnd {
    grid-template-columns: 1fr;
    gap: 18px;
  }
}

@media (max-width: 380px) {
  .blogMasthead h1 {
    font-size: 37px;
    line-height: 47px;
  }

  .blogPageHeader.is-compact .blogMasthead h1 {
    font-size: 34px;
    line-height: 42px;
  }

  .blogFeaturedMain {
    padding-right: 20px;
    padding-left: 20px;
  }

  .blogPostMeta {
    gap: 6px;
  }

  .blogPostMeta > * + *::before {
    margin-right: 6px;
  }

  .blogPostRow {
    grid-template-columns: 30px minmax(0, 1fr) 18px;
    gap: 10px 9px;
  }

  .blogArticleTitle h1 {
    font-size: 31px;
    line-height: 40px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html[data-blog-entering="true"] .blogRight {
    animation: none;
  }

  html[data-blog-leaving="true"] .blogRight {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .blogFeatured,
  .blogPostRow,
  .blogArticleHeader {
    animation: none;
  }

  .blogHomeLink,
  .blogFeatured,
  .blogReadLabel svg,
  .blogPostSummary,
  .blogPostArrow,
  .blogBreadcrumb a,
  .blogArticleEnd > a {
    transition: none;
  }
}

/* Final blog layout constraints must follow the legacy blog rules above. */
.blogNavBar {
  grid-template-columns: auto minmax(0, 1fr) auto;
}

.blogPostRow {
  min-height: 158px;
}

.blogArticleBody.blogProse h2 {
  margin: 52px 0 18px;
  font-size: 24px;
  line-height: 33px;
}

@media (max-width: 640px) {
  .blogNavBar {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .blogPostRow {
    min-height: 174px;
  }

  .blogArticleContent .blogArticleBody.blogProse {
    padding: 37px 0 60px;
  }

  .blogArticleBody.blogProse h2 {
    margin-top: 42px;
    font-size: 21px;
    line-height: 29px;
  }
}

/* Keep the blog responsive without changing the homepage container. */
.blogShell {
  --blog-meta-column: clamp(92px, 9vw, 124px);
  --blog-content-gap: clamp(20px, 2vw, 28px);
  --blog-toc-column: clamp(156px, 13vw, 180px);
  max-width: 1600px;
  padding-right: clamp(16px, 2vw, 28px);
  padding-left: clamp(16px, 2vw, 28px);
}

.blogShell .blogArticleHeader,
.blogShell .blogArticleEnd {
  grid-template-columns: var(--blog-meta-column) minmax(0, 1fr);
  gap: var(--blog-content-gap);
}

.blogShell .blogArticleHero {
  margin-left: calc(var(--blog-meta-column) + var(--blog-content-gap));
}

.blogShell .blogArticleContent {
  grid-template-columns: var(--blog-meta-column) minmax(0, 1fr) var(--blog-toc-column);
  gap: var(--blog-content-gap);
}

.blogShell .blogArticleBody {
  width: 100%;
  max-width: 820px;
}

@media (max-width: 1100px) {
  .blogShell .blogArticleContent {
    grid-template-columns: var(--blog-meta-column) minmax(0, 1fr);
  }
}

@media (max-width: 640px) {
  .blogShell {
    --blog-content-gap: 0px;
    padding-right: 16px;
    padding-left: 16px;
  }

  .blogShell .blogArticleHeader,
  .blogShell .blogArticleContent,
  .blogShell .blogArticleEnd {
    grid-template-columns: minmax(0, 1fr);
  }

  .blogShell .blogArticleHero {
    margin-left: 0;
  }
}

/* ====== Photos and Drive workspace ====== */
.workspaceRight,
.workspaceRouteContent {
  width: 100%;
  min-width: 0;
}

.workspaceRight {
  padding-bottom: 48px;
}

.workspaceNavBar {
  grid-template-columns: minmax(0, 1fr) auto;
}

.workspaceMasthead {
  padding-top: 54px;
}

.workspaceMasthead h1 {
  font-size: 48px;
  line-height: 58px;
}

.workspaceMasthead .gradientText {
  padding-right: 0.3em;
}

@media (max-width: 640px) {
  .workspaceMasthead {
    padding-top: 38px;
  }

  .workspaceMasthead h1 {
    font-size: 39px;
    line-height: 49px;
  }
}
/* Route announcer */
	.astro-route-announcer {
		position: absolute;
		left: 0;
		top: 0;
		clip: rect(0 0 0 0);
		clip-path: inset(50%);
		overflow: hidden;
		white-space: nowrap;
		width: 1px;
		height: 1px;
	}