/*
Theme Name: Start Expert Skills Training
Theme URI: https://startest.org
Author: Start Expert Skills Training
Author URI: https://startest.org
Description: Editorial WordPress theme for Start Expert Skills Training with modern IT learning content layouts.
Version: 1.0.18
Requires at least: 6.4
Tested up to: 6.5
Requires PHP: 7.4
Text Domain: academy-editorial
*/

:root {
  --bg: #edf3f6;
  --bg-soft: #f8fbfc;
  --surface: rgba(255, 255, 255, 0.86);
  --surface-strong: #ffffff;
  --surface-dark: #0f1e2a;
  --surface-muted: rgba(255, 255, 255, 0.62);
  --text: #1b2a34;
  --text-soft: #5f7280;
  --title: #0d2335;
  --line: rgba(13, 35, 53, 0.1);
  --line-strong: rgba(13, 35, 53, 0.18);
  --accent: #118a7e;
  --accent-strong: #0a665e;
  --accent-soft: rgba(17, 138, 126, 0.12);
  --success: #2d6f92;
  --shadow: 0 20px 60px rgba(13, 35, 53, 0.08);
  --shadow-soft: 0 14px 30px rgba(13, 35, 53, 0.06);
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --max-width: 1240px;
  --content-width: 760px;
  --sidebar-width: 340px;
  --space-1: 0.35rem;
  --space-2: 0.7rem;
  --space-3: 1rem;
  --space-4: 1.4rem;
  --space-5: 1.8rem;
  --space-6: 2.4rem;
  --space-7: 3.2rem;
  --space-8: 4.8rem;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  background:
    radial-gradient(circle at top left, rgba(17, 138, 126, 0.12), transparent 34%),
    radial-gradient(circle at top right, rgba(45, 111, 146, 0.1), transparent 28%),
    linear-gradient(180deg, #f7fbfd 0%, #edf3f6 100%);
  color: var(--text);
  font-size: 18px;
  line-height: 1.8;
}

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

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

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

input,
textarea,
select,
button {
  font: inherit;
}

button,
.button,
input[type="submit"],
.wp-block-search__button {
  border: 0;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  padding: 0.95rem 1.5rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.18s ease, background 0.18s ease;
}

button:hover,
.button:hover,
input[type="submit"]:hover,
.wp-block-search__button:hover {
  background: var(--accent-strong);
  transform: translateY(-1px);
}

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

[hidden] {
  display: none !important;
}

.site-shell {
  width: min(calc(100% - 2rem), var(--max-width));
  margin: 0 auto;
}

.site-header {
  padding: 1.2rem 0 0;
  position: relative;
  z-index: 10;
}

body:not(.home) .site-main {
  padding-top: 1rem;
}

.header-panel {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.85), rgba(248, 251, 252, 0.72));
  backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: var(--radius-xl);
  box-shadow:
    0 22px 50px rgba(13, 35, 53, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.6);
  padding: 1.2rem 1.4rem 1.25rem;
}

.site-branding-row,
.site-nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.site-branding {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-width: 0;
}

.brand-mark {
  width: 64px;
  height: 64px;
  border-radius: 22px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #0f1e2a, #118a7e);
  color: #fff;
  font-size: 1.4rem;
  font-weight: 700;
  box-shadow: var(--shadow-soft);
}

.site-title {
  margin: 0;
  font-size: clamp(1.55rem, 2.7vw, 2.6rem);
  color: var(--title);
  line-height: 1.05;
}

.site-title a {
  color: inherit;
}

.site-description {
  margin: 0.2rem 0 0;
  color: var(--text-soft);
  font-size: 1rem;
  max-width: 28rem;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  flex: 1 1 420px;
  justify-content: flex-end;
  min-width: 0;
}

.header-search {
  flex: 1 1 360px;
  min-width: 0;
  max-width: 540px;
}

.search-form {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.5rem;
  border: 1px solid var(--line);
  background: var(--surface-strong);
  border-radius: 999px;
  min-width: 0;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.8);
}

.search-form label {
  flex: 1;
  min-width: 0;
}

.search-form input[type="search"] {
  width: 100%;
  border: 0;
  background: transparent;
  padding: 1rem 1.1rem;
  color: var(--text);
}

.menu-toggle {
  display: none;
  flex: 0 0 auto;
  white-space: nowrap;
  align-items: center;
  gap: 0.8rem;
  min-height: 66px;
  padding-inline: 1.2rem 1.45rem;
}

.menu-toggle-lines {
  display: grid;
  gap: 0.24rem;
}

.menu-toggle-lines span {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
}

.menu-toggle-label {
  display: inline-flex;
  align-items: center;
}

.site-nav-row {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  align-items: start;
  gap: 1.4rem;
}

.main-navigation ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  padding: 0;
  margin: 0;
}

.main-navigation a {
  display: inline-flex;
  align-items: center;
  padding: 0.9rem 1.1rem;
  border-radius: 999px;
  color: var(--title);
  font-weight: 600;
}

.main-navigation .current-menu-item > a,
.main-navigation a:hover {
  background: var(--accent-soft);
  color: var(--accent-strong);
}

.nav-meta {
  color: var(--text-soft);
  font-size: 0.96rem;
  max-width: 38rem;
  text-align: right;
  line-height: 1.6;
}

.legal-hero .archive-description,
.legal-hero .page-title {
  max-width: 54rem;
}

.inner-hero {
  padding: 1rem 0 1.2rem;
}

.inner-hero-card {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(240px, 0.8fr);
  gap: 1.5rem;
  padding: clamp(1.4rem, 2.5vw, 2rem);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.78), rgba(248, 251, 252, 0.68));
  border: 1px solid rgba(255, 255, 255, 0.76);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(16px);
  border-radius: var(--radius-xl);
}

.inner-hero-copy {
  min-width: 0;
}

.inner-hero-copy .eyebrow,
.inner-hero-copy .page-title,
.inner-hero-copy .archive-title,
.inner-hero-copy .entry-title {
  margin-bottom: 0.9rem;
}

.inner-hero-note {
  display: grid;
  gap: 0.85rem;
  align-content: start;
  padding: 1.1rem 1.2rem;
  background: var(--surface-muted);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(13, 35, 53, 0.08);
}

.inner-hero-note strong {
  font-size: 1rem;
  color: var(--title);
}

.hero-band {
  padding: var(--space-7) 0 var(--space-6);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(280px, 0.85fr);
  gap: 1.6rem;
}

.hero-card,
.hero-aside {
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow);
  border-radius: var(--radius-xl);
  padding: clamp(1.6rem, 3vw, 2.6rem);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--accent-soft);
  color: var(--accent-strong);
  border-radius: 999px;
  padding: 0.55rem 1rem;
  font-size: 0.92rem;
  font-weight: 700;
  margin-bottom: 1.2rem;
}

.hero-title,
.archive-title,
.page-title,
.entry-title {
  margin: 0;
  color: var(--title);
  line-height: 1.12;
}

.hero-title {
  font-size: clamp(2.6rem, 6vw, 5rem);
}

.hero-summary,
.archive-description,
.entry-summary {
  color: var(--text-soft);
  font-size: 1.08rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 1.6rem;
}

.hero-stats {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.9rem;
  padding: 0;
  margin: 1.6rem 0 0;
}

.hero-stats li {
  padding: 0.95rem 1rem;
  border-radius: 20px;
  background: rgba(13, 35, 53, 0.04);
  border: 1px solid rgba(13, 35, 53, 0.06);
}

.hero-stats strong {
  display: block;
  margin-bottom: 0.3rem;
  color: var(--title);
  font-size: 1rem;
}

.ghost-button {
  background: transparent;
  color: var(--title);
  border: 1px solid var(--line-strong);
}

.hero-aside h2,
.widget-title,
.comments-title,
.reply-title {
  margin-top: 0;
  color: var(--title);
  line-height: 1.25;
}

.hero-points,
.meta-list,
.widget ul,
.footer-menu {
  list-style: none;
  padding: 0;
  margin: 0;
}

.hero-points li,
.meta-list li,
.widget li {
  display: flex;
  gap: 0.8rem;
  align-items: flex-start;
}

.hero-points li + li,
.meta-list li + li,
.widget li + li {
  margin-top: 1rem;
}

.hero-points strong {
  display: block;
  color: var(--title);
}

.site-main {
  padding-bottom: var(--space-8);
}

.insight-strip {
  padding: 0 0 1.4rem;
}

.insight-strip-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.9fr);
  gap: 1.2rem;
}

.insight-panel,
.insight-metrics {
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.76);
  box-shadow: var(--shadow-soft);
  border-radius: var(--radius-xl);
  backdrop-filter: blur(14px);
  padding: 1.35rem;
}

.insight-panel h2 {
  margin: 0 0 0.8rem;
  line-height: 1.15;
  color: var(--title);
  font-size: clamp(1.45rem, 2.5vw, 2rem);
}

.insight-panel p {
  margin: 0;
  color: var(--text-soft);
}

.insight-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
}

.metric-card {
  display: grid;
  gap: 0.4rem;
  align-content: start;
  padding: 1rem;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(17, 138, 126, 0.1), rgba(255, 255, 255, 0.65));
}

.metric-card strong {
  font-size: 1.55rem;
  line-height: 1;
  color: var(--accent-strong);
}

.metric-card span {
  color: var(--title);
  font-weight: 600;
  line-height: 1.5;
}

.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, var(--sidebar-width));
  gap: 2rem;
  align-items: start;
}

.content-stack,
.sidebar-stack {
  display: grid;
  gap: 1.5rem;
}

.sidebar-stack {
  position: sticky;
  top: 1.25rem;
}

.legal-layout {
  width: min(calc(100% - 2rem), 980px);
  margin: 0 auto;
}

.archive-intro,
.entry-card,
.widget,
.pagination,
.comment-respond,
.comments-area,
.author-box,
.post-navigation,
.empty-state {
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.72);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(14px);
  border-radius: var(--radius-lg);
}

.archive-intro,
.entry-card,
.comment-respond,
.comments-area,
.author-box,
.post-navigation,
.empty-state {
  padding: clamp(1.4rem, 3vw, 2rem);
}

.entry-card {
  overflow: hidden;
  position: relative;
}

.entry-card::after {
  content: "";
  position: absolute;
  inset: auto 1.2rem 0.9rem;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(17, 138, 126, 0.12), transparent);
  pointer-events: none;
}

.entry-card.sticky {
  border-color: rgba(17, 138, 126, 0.24);
  box-shadow:
    0 22px 44px rgba(13, 35, 53, 0.08),
    0 0 0 1px rgba(17, 138, 126, 0.05);
}

.featured-thumb {
  margin: -2rem -2rem 1.4rem;
  overflow: hidden;
}

.featured-thumb img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.featured-thumb-placeholder {
  display: grid;
  place-items: end start;
  aspect-ratio: 16 / 9;
  padding: 1.2rem;
  background:
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.35), transparent 24%),
    linear-gradient(135deg, rgba(15, 30, 42, 0.95), rgba(17, 138, 126, 0.82));
}

.featured-thumb-placeholder span {
  display: inline-flex;
  padding: 0.6rem 0.9rem;
  border-radius: 999px;
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(8px);
  font-weight: 700;
}

.entry-meta,
.entry-taxonomy,
.comment-metadata {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem 1rem;
  color: var(--text-soft);
  font-size: 0.94rem;
}

.entry-meta {
  margin: 1rem 0 1.25rem;
}

.entry-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  background: rgba(13, 35, 53, 0.06);
}

.entry-title {
  font-size: clamp(1.9rem, 3vw, 3rem);
}

.entry-card .entry-title {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
}

.entry-card p:last-child {
  margin-bottom: 0;
}

.entry-taxonomy {
  margin-top: 0;
}

.taxonomy-link {
  display: inline-flex;
  padding: 0.6rem 0.95rem;
  border-radius: 999px;
  background: rgba(17, 138, 126, 0.1);
  color: var(--accent-strong);
  font-weight: 600;
}

.read-more-link {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  min-height: 48px;
  padding: 0.7rem 1rem;
  border-radius: 999px;
  background: rgba(15, 155, 142, 0.09);
  border: 1px solid rgba(15, 155, 142, 0.12);
  font-weight: 700;
  color: var(--accent-strong);
  white-space: nowrap;
  transition:
    background 180ms ease,
    border-color 180ms ease,
    transform 180ms ease;
}

.read-more-link:hover {
  background: rgba(15, 155, 142, 0.14);
  border-color: rgba(15, 155, 142, 0.22);
  transform: translateY(-1px);
}

.card-footer {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  margin-top: 1.5rem;
  padding-top: 0.9rem;
  border-top: 1px solid rgba(10, 32, 48, 0.08);
}

.card-signal {
  display: inline-flex;
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  background: rgba(13, 35, 53, 0.05);
  color: var(--text-soft);
  font-size: 0.92rem;
  font-weight: 700;
}

.entry-content {
  max-width: var(--content-width);
  font-size: 1.05rem;
}

.entry-content > * + * {
  margin-top: 1.2rem;
}

.entry-content h2,
.entry-content h3,
.entry-content h4 {
  color: var(--title);
  line-height: 1.25;
  margin-bottom: 0.4rem;
}

.entry-content h2 {
  font-size: clamp(1.6rem, 3vw, 2.15rem);
}

.entry-content h3 {
  font-size: clamp(1.3rem, 2.4vw, 1.75rem);
}

.entry-content p,
.entry-content li {
  color: var(--text);
}

.entry-content blockquote,
.wp-block-quote,
.wp-block-pullquote {
  margin: 2rem 0;
  padding: 1.4rem 1.6rem;
  border-left: 4px solid var(--accent);
  background: linear-gradient(135deg, rgba(17, 138, 126, 0.12), rgba(255, 255, 255, 0.8));
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  color: var(--title);
  font-size: 1.2rem;
}

.entry-content pre,
.entry-content code,
.wp-block-code {
  font-family: "SFMono-Regular", Consolas, Monaco, monospace;
}

.entry-content pre,
.wp-block-code {
  background: #12202d;
  color: #f6f1e8;
  padding: 1.2rem 1.3rem;
  border-radius: var(--radius-md);
  overflow-x: auto;
}

.entry-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.8rem 0;
  overflow: hidden;
  border-radius: var(--radius-md);
  box-shadow: inset 0 0 0 1px var(--line);
}

.entry-content th,
.entry-content td {
  padding: 1rem 1.1rem;
  border-bottom: 1px solid var(--line);
  text-align: right;
}

.entry-content th {
  background: rgba(16, 32, 51, 0.06);
  color: var(--title);
}

.entry-content ul,
.entry-content ol {
  padding-inline-start: 1.3rem;
}

.entry-content hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 2rem 0;
}

.info-callout {
  display: grid;
  gap: 0.8rem;
  padding: 1.2rem 1.3rem;
  border-radius: var(--radius-md);
  background: rgba(31, 107, 79, 0.09);
  color: var(--title);
}

.info-callout strong {
  font-size: 1.05rem;
}

.author-box {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  align-items: start;
}

.author-avatar img {
  border-radius: 50%;
}

.widget {
  padding: 1.35rem;
}

.widget-spotlight {
  background: linear-gradient(180deg, rgba(15, 30, 42, 0.96), rgba(17, 138, 126, 0.9));
  color: #edf9f9;
}

.widget-spotlight .widget-title,
.widget-spotlight .eyebrow {
  color: #fff;
}

.widget-spotlight .eyebrow {
  background: rgba(255, 255, 255, 0.12);
}

.widget-checklist {
  background: linear-gradient(180deg, rgba(17, 138, 126, 0.08), rgba(255, 255, 255, 0.8));
}

.widget-title {
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

.widget_search .search-form,
.sidebar-stack .search-form {
  flex-direction: column;
  align-items: stretch;
  border-radius: var(--radius-lg);
  padding: 1rem;
}

.widget_search input[type="search"],
.sidebar-stack input[type="search"] {
  min-height: 72px;
  border-radius: var(--radius-md);
  background: var(--bg-soft);
  padding: 1rem 1.15rem;
}

.widget_search button,
.sidebar-stack button {
  width: 100%;
}

.widget ul li {
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--line);
}

.widget ul li:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.archive-header {
  margin-bottom: 1.5rem;
}

.legal-document {
  overflow: visible;
}

.legal-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-bottom: 1.2rem;
}

.section-kicker {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.section-kicker .archive-description {
  max-width: 44rem;
  margin: 0;
}

.featured-collections {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.2rem;
}

.collection-card {
  padding: 1.3rem;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.72);
  box-shadow: var(--shadow-soft);
}

.collection-card h3 {
  margin: 0 0 0.8rem;
  color: var(--title);
  line-height: 1.2;
  font-size: 1.45rem;
}

.collection-card p {
  margin: 0;
  color: var(--text-soft);
}

.collection-card.accent {
  background: linear-gradient(180deg, rgba(17, 138, 126, 0.12), rgba(255, 255, 255, 0.82));
}

.pagination {
  display: flex;
  justify-content: center;
  padding: 1rem;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.nav-links .page-numbers {
  display: inline-flex;
  min-width: 48px;
  min-height: 48px;
  padding: 0.7rem 1rem;
  justify-content: center;
  align-items: center;
  border-radius: 999px;
  background: rgba(16, 32, 51, 0.06);
  color: var(--title);
  font-weight: 700;
}

.nav-links .current,
.nav-links .page-numbers:hover {
  background: var(--accent);
  color: #fff;
}

.post-navigation {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.post-navigation a {
  display: block;
  padding: 1rem 1.1rem;
  border-radius: var(--radius-md);
  background: rgba(13, 35, 53, 0.03);
}

.nav-subtitle {
  display: block;
  color: var(--text-soft);
  font-size: 0.9rem;
  margin-bottom: 0.3rem;
}

.comments-list {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 0;
}

.comments-intro,
.comments-empty {
  display: grid;
  gap: 0.7rem;
  padding: 1rem 1.1rem;
  margin-bottom: 1rem;
  border-radius: 20px;
  background: rgba(13, 35, 53, 0.04);
  border: 1px solid rgba(13, 35, 53, 0.06);
}

.comments-intro p,
.comments-empty p,
.comments-empty strong {
  margin: 0;
}

.comments-list .children {
  list-style: none;
  margin: 1rem 0 0;
  padding-inline-start: 1.2rem;
  position: relative;
}

.comments-list .children::before {
  content: "";
  position: absolute;
  left: 0.15rem;
  top: 0.2rem;
  bottom: 0.2rem;
  width: 1px;
  background: rgba(13, 35, 53, 0.1);
}

.comment-body {
  padding: 1.3rem;
  background: var(--surface-strong);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
}

.comment-list-item + .comment-list-item {
  margin-top: 1rem;
}

.comment-author {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 0.8rem;
}

.comment-author img {
  border-radius: 50%;
}

.comment-content {
  color: var(--text);
}

.comment-content > *:last-child {
  margin-bottom: 0;
}

.comment-awaiting-moderation {
  display: inline-flex;
  margin-top: 0.8rem;
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  background: rgba(184, 92, 56, 0.1);
  color: var(--accent-strong);
}

.comment-form {
  display: grid;
  gap: 1rem;
}

.comment-form p {
  margin: 0;
}

.comment-privacy-note {
  display: grid;
  gap: 0.65rem;
  padding: 1rem 1.05rem;
  border-radius: 18px;
  background: rgba(13, 35, 53, 0.04);
  color: var(--text-soft);
  line-height: 1.65;
}

.comment-privacy-note p {
  margin: 0;
}

.comment-privacy-note a {
  color: var(--accent-strong);
  font-weight: 700;
}

.comment-consent-check {
  padding: 0.9rem 1rem;
  border-radius: 16px;
  background: rgba(17, 138, 126, 0.08);
  color: var(--title);
}

.comment-consent-check label {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  line-height: 1.6;
  cursor: pointer;
}

.comment-consent-check input[type="checkbox"] {
  margin-top: 0.2rem;
  width: 20px;
  height: 20px;
  accent-color: var(--accent);
}

.comment-form input:not([type="checkbox"]),
.comment-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: var(--surface-strong);
  border-radius: var(--radius-md);
  padding: 1rem 1.15rem;
  color: var(--text);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.comment-form input:not([type="checkbox"]) {
  min-height: 68px;
}

.comment-form textarea {
  min-height: 190px;
  resize: vertical;
}

.comment-form input:focus,
.comment-form textarea:focus,
.search-form input:focus {
  outline: none;
  border-color: rgba(17, 138, 126, 0.45);
  box-shadow: 0 0 0 4px rgba(17, 138, 126, 0.12);
}

.comment-reply-link,
.logged-in-as a,
.comment-edit-link {
  color: var(--accent-strong);
  font-weight: 700;
}

.site-footer {
  padding: 0 0 2rem;
}

.footer-panel {
  background: var(--surface-dark);
  color: rgba(255, 255, 255, 0.9);
  border-radius: var(--radius-xl);
  padding: clamp(1.5rem, 3vw, 2.3rem);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.2rem;
}

.footer-panel a {
  color: inherit;
}

.footer-title {
  margin: 0 0 0.5rem;
  color: #fff;
}

.footer-menu {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem 1rem;
}

.footer-legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem 1.1rem;
  align-items: center;
}

.footer-consent-link {
  background: transparent;
  padding: 0;
  min-height: auto;
  color: inherit;
  font-weight: 700;
}

.footer-consent-link:hover {
  transform: none;
  background: transparent;
  color: #fff;
}

.empty-state {
  text-align: center;
}

.empty-state h2 {
  margin-top: 0;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: 1rem;
  z-index: 999;
  background: var(--accent);
  color: #fff;
  padding: 0.8rem 1rem;
  border-radius: 999px;
  transform: translateY(-200%);
}

.skip-link:focus {
  transform: translateY(0);
}

.consent-dock {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 60;
  pointer-events: none;
}

.consent-banner,
.consent-fab,
.consent-modal-card {
  pointer-events: auto;
}

.consent-banner {
  width: min(calc(100% - 1.5rem), 920px);
  margin: 0 auto 1rem;
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) auto;
  gap: 1rem;
  align-items: end;
  padding: 1rem 1.05rem;
  border-radius: 24px;
  background:
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.12), transparent 30%),
    linear-gradient(145deg, #0a2030, #10384c 55%, #0f7b72 100%);
  color: #f4fbfb;
  box-shadow: 0 22px 50px rgba(13, 35, 53, 0.26);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.consent-banner .eyebrow {
  background: rgba(255, 255, 255, 0.1);
  color: #f4fbfb;
  margin-bottom: 0.8rem;
}

.consent-copy h2 {
  margin: 0 0 0.6rem;
  color: #fff;
  line-height: 1.2;
  font-size: clamp(1.05rem, 1.6vw, 1.35rem);
}

.consent-copy p {
  margin: 0;
  color: rgba(244, 251, 251, 0.82);
  font-size: 0.96rem;
}

.consent-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem 1rem;
  margin-top: 0.8rem;
}

.consent-links a {
  color: #fff;
  font-weight: 700;
}

.consent-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.7rem;
}

.consent-banner .ghost-button {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.24);
}

.consent-banner .ghost-button:hover {
  color: #fff;
}

.consent-modal {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: none;
  place-items: center;
  padding: 1rem;
  overflow-y: auto;
  background: rgba(9, 20, 29, 0.5);
  backdrop-filter: blur(10px);
  -webkit-overflow-scrolling: touch;
}

.consent-modal.is-active {
  display: grid;
}

.consent-modal-card {
  width: min(100%, 860px);
  max-height: calc(100dvh - 2rem);
  overflow-y: auto;
  border-radius: 28px;
  padding: 1.3rem;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 30px 80px rgba(13, 35, 53, 0.22);
}

.consent-modal-head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: start;
  margin-bottom: 1rem;
}

.consent-modal-head h2 {
  margin: 0;
  line-height: 1.15;
  color: var(--title);
}

.consent-close {
  background: rgba(13, 35, 53, 0.06);
  color: var(--title);
  padding: 0;
  width: 48px;
  height: 48px;
  border-radius: 999px;
}

.consent-close:hover {
  background: rgba(13, 35, 53, 0.1);
  color: var(--title);
}

.consent-groups {
  display: grid;
  gap: 0.85rem;
}

.consent-group {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: center;
  padding: 1rem 1.05rem;
  border-radius: 20px;
  background: rgba(13, 35, 53, 0.04);
}

.consent-group strong {
  display: block;
  color: var(--title);
  margin-bottom: 0.35rem;
}

.consent-group p {
  margin: 0;
  color: var(--text-soft);
}

.consent-group input[type="checkbox"] {
  width: 24px;
  height: 24px;
  accent-color: var(--accent);
}

.consent-group.is-required {
  background: rgba(17, 138, 126, 0.08);
}

.consent-modal-actions {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1rem;
}

.consent-fab {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 61;
  width: 54px;
  height: 54px;
  min-width: 54px;
  min-height: 54px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 18px;
  box-shadow: 0 16px 36px rgba(13, 35, 53, 0.2);
  max-width: none;
}

.consent-fab-icon {
  position: relative;
  width: 1.2rem;
  height: 1.2rem;
  display: inline-block;
}

.consent-fab-icon::before,
.consent-fab-icon::after {
  content: "";
  position: absolute;
}

.consent-fab-icon::before {
  inset: 0.08rem;
  border-radius: 50% 46% 52% 48%;
  background: rgba(255, 255, 255, 0.96);
}

.consent-fab-icon::after {
  width: 0.2rem;
  height: 0.2rem;
  border-radius: 50%;
  top: 0.34rem;
  left: 0.34rem;
  background: var(--accent);
  box-shadow:
    0.36rem 0.12rem 0 0 var(--accent),
    0.18rem 0.46rem 0 0 var(--accent);
}

body.has-consent-modal {
  overflow: hidden;
}

@media (max-width: 1024px) {
  .content-grid,
  .hero-grid,
  .inner-hero-card,
  .consent-banner,
  .insight-strip-grid,
  .featured-collections,
  .footer-panel,
  .post-navigation {
    grid-template-columns: 1fr;
  }

  .site-nav-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .header-actions {
    width: 100%;
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .header-search {
    width: 100%;
    max-width: none;
  }

  .nav-meta {
    text-align: left;
    max-width: none;
  }

  .sidebar-stack {
    position: static;
  }
}

@media (max-width: 780px) {
  body {
    font-size: 17px;
  }

  .header-panel {
    padding: 1rem;
  }

  .site-branding-row {
    align-items: flex-start;
    flex-direction: column;
    gap: 1.1rem;
  }

  .site-branding {
    width: 100%;
  }

  .site-title {
    font-size: clamp(1.4rem, 8vw, 2rem);
  }

  .menu-toggle {
    display: inline-flex;
    width: 100%;
    justify-content: center;
    min-height: 60px;
  }

  .js-enabled .main-navigation {
    width: 100%;
    display: none;
  }

  .js-enabled .main-navigation.is-open {
    display: block;
  }

  .main-navigation ul {
    flex-direction: column;
    gap: 0.35rem;
  }

  .main-navigation a {
    width: 100%;
    justify-content: center;
    background: rgba(13, 35, 53, 0.04);
  }

  .header-actions {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
  }

  .search-form {
    border-radius: 28px;
  }

  .header-search .search-form,
  .hero-actions {
    flex-direction: column;
  }

  .header-search .search-form button,
  .hero-actions .button,
  .hero-actions .ghost-button {
    width: 100%;
    text-align: center;
    justify-content: center;
  }

  .nav-meta {
    font-size: 1rem;
  }

  .site-nav-row {
    width: 100%;
  }

  .consent-actions,
  .consent-modal-actions {
    justify-content: stretch;
  }

  .consent-actions .button,
  .consent-modal-actions .button,
  .consent-fab {
    width: auto;
    justify-content: center;
  }

  .consent-banner {
    width: min(calc(100% - 1rem), 560px);
    padding: 0.85rem 0.9rem;
    gap: 0.75rem;
    border-radius: 20px;
  }

  .consent-copy h2 {
    font-size: 1rem;
    line-height: 1.25;
  }

  .consent-copy p {
    font-size: 0.94rem;
    line-height: 1.55;
  }

  .consent-links {
    gap: 0.5rem 0.8rem;
  }

  .consent-fab {
    right: 0.75rem;
    bottom: 0.75rem;
    width: 46px;
    height: 46px;
    min-width: 46px;
    min-height: 46px;
    border-radius: 15px;
  }

  .hero-band {
    padding-top: 2rem;
  }

  .hero-stats,
  .insight-metrics {
    grid-template-columns: 1fr;
  }

  .featured-thumb {
    margin: -1.4rem -1.4rem 1rem;
  }

  .entry-content {
    max-width: 100%;
  }

  .author-box {
    grid-template-columns: 1fr;
  }

  .consent-group {
    grid-template-columns: 1fr;
  }

  .consent-modal {
    place-items: start;
    padding: 0.75rem;
  }

  .consent-modal-card {
    width: 100%;
    max-height: calc(100dvh - 1.5rem);
    padding: 1rem;
    border-radius: 22px;
  }

  .consent-modal-head {
    position: sticky;
    top: 0;
    z-index: 2;
    margin: -1rem -1rem 0.9rem;
    padding: 1rem 1rem 0.9rem;
    background: rgba(255, 255, 255, 0.98);
    border-bottom: 1px solid rgba(10, 32, 48, 0.08);
  }

  .card-footer {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 560px) {
  .site-shell {
    width: min(calc(100% - 1rem), var(--max-width));
  }

  .brand-mark {
    width: 56px;
    height: 56px;
    border-radius: 18px;
    font-size: 1.2rem;
  }

  .header-panel,
  .hero-card,
  .hero-aside,
  .inner-hero-card,
  .archive-intro,
  .entry-card,
  .comment-respond,
  .comments-area,
  .author-box,
  .post-navigation,
  .empty-state,
  .widget {
    border-radius: 22px;
  }

  .search-form input[type="search"] {
    padding: 0.8rem 0.9rem;
  }
}

/* Premium redesign overrides */
:root {
  --bg: #eef4f5;
  --bg-soft: #f7fbfb;
  --surface: rgba(255, 255, 255, 0.92);
  --surface-strong: #ffffff;
  --surface-dark: #0b1721;
  --text: #20313b;
  --text-soft: #61737e;
  --title: #0a2030;
  --line: rgba(10, 32, 48, 0.08);
  --line-strong: rgba(10, 32, 48, 0.16);
  --accent: #0f9b8e;
  --accent-strong: #0a736a;
  --accent-soft: rgba(15, 155, 142, 0.11);
  --shadow: 0 28px 60px rgba(10, 32, 48, 0.08);
  --shadow-soft: 0 18px 34px rgba(10, 32, 48, 0.06);
  --radius-xl: 36px;
  --radius-lg: 26px;
  --radius-md: 18px;
}

body {
  font-family: "Avenir Next", "Segoe UI", "Helvetica Neue", sans-serif;
  background:
    radial-gradient(circle at 0% 0%, rgba(15, 155, 142, 0.12), transparent 24%),
    radial-gradient(circle at 100% 0%, rgba(54, 113, 165, 0.1), transparent 22%),
    linear-gradient(180deg, #f7fbfb 0%, #eef4f5 100%);
  color: var(--text);
}

.site-title,
.hero-title,
.archive-title,
.page-title,
.entry-title,
.hero-aside h2,
.widget-title,
.comments-title,
.reply-title,
.inner-hero-note strong,
.insight-panel h2,
.collection-card h3 {
  font-family: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Palatino, Georgia, serif;
}

.header-panel {
  border-radius: 40px;
  padding: 1.2rem 1.35rem 1.1rem;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(250, 253, 253, 0.84));
  border: 1px solid rgba(255, 255, 255, 0.9);
}

.site-title {
  font-size: clamp(1.8rem, 2.8vw, 3rem);
  letter-spacing: -0.03em;
}

.site-description {
  font-size: 0.98rem;
  max-width: 30rem;
}

.main-navigation a {
  padding: 0.78rem 1rem;
  font-size: 0.98rem;
}

.nav-meta {
  max-width: 34rem;
  font-size: 0.95rem;
}

.hero-grid {
  grid-template-columns: minmax(0, 1.5fr) minmax(300px, 0.82fr);
  gap: 1.25rem;
}

.hero-card {
  background:
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.12), transparent 30%),
    linear-gradient(145deg, #0a2030, #10384c 55%, #0f7b72 100%);
  color: rgba(241, 250, 250, 0.92);
  border: 0;
  min-height: 100%;
}

.hero-card .eyebrow {
  background: rgba(255, 255, 255, 0.12);
  color: #f4fbfb;
}

.hero-card .hero-title,
.hero-card .hero-summary,
.hero-card .hero-stats strong,
.hero-card .hero-stats span {
  color: inherit;
}

.hero-title {
  font-size: clamp(3rem, 7vw, 5.8rem);
  line-height: 0.96;
  letter-spacing: -0.05em;
  max-width: 10ch;
}

.hero-summary {
  max-width: 42rem;
  font-size: 1.08rem;
  color: rgba(241, 250, 250, 0.8);
}

.hero-card .ghost-button {
  color: #f4fbfb;
  border-color: rgba(255, 255, 255, 0.2);
}

.hero-stats li {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.08);
}

.hero-stats span {
  display: block;
  color: rgba(241, 250, 250, 0.7);
  line-height: 1.45;
}

.hero-aside {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(245, 250, 250, 0.9));
  border-color: rgba(255, 255, 255, 0.82);
}

.hero-points li {
  padding: 0.1rem 0 1rem;
  border-bottom: 1px solid var(--line);
}

.hero-points li:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.insight-panel,
.insight-metrics,
.archive-intro,
.collection-card,
.widget,
.entry-card,
.author-box,
.comments-area,
.comment-respond,
.post-navigation,
.empty-state,
.inner-hero-card {
  box-shadow:
    0 24px 44px rgba(10, 32, 48, 0.05),
    inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.insight-panel,
.insight-metrics {
  border-radius: 30px;
}

.insight-panel {
  padding: 1.6rem;
}

.insight-panel h2 {
  font-size: clamp(1.8rem, 2.7vw, 2.5rem);
  letter-spacing: -0.04em;
}

.insight-metrics {
  grid-template-columns: 1fr;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(236, 247, 247, 0.92));
}

.metric-card {
  background: rgba(10, 32, 48, 0.04);
  border: 1px solid rgba(10, 32, 48, 0.05);
}

.archive-intro {
  padding: 1.6rem 1.7rem;
}

.archive-title,
.page-title {
  letter-spacing: -0.04em;
}

.featured-collections {
  gap: 1rem;
}

.collection-card {
  padding: 1.45rem;
}

.collection-card.accent {
  background:
    linear-gradient(145deg, rgba(15, 155, 142, 0.14), rgba(255, 255, 255, 0.92));
}

.entry-card {
  padding: 1.55rem;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.entry-card:hover {
  transform: translateY(-4px);
  box-shadow:
    0 28px 52px rgba(10, 32, 48, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.entry-card .entry-title {
  font-size: clamp(1.8rem, 2.8vw, 2.7rem);
  letter-spacing: -0.04em;
}

.entry-summary {
  max-width: 58ch;
}

.featured-thumb {
  border-radius: 24px;
  margin: 0 0 1.25rem;
}

.entry-card::after {
  inset: auto 1.55rem 1.15rem;
}

.entry-badge,
.card-signal {
  background: rgba(10, 32, 48, 0.05);
}

.taxonomy-link {
  background: rgba(15, 155, 142, 0.09);
}

.card-footer {
  padding-top: 0.15rem;
}

.sidebar-stack {
  gap: 1rem;
}

.widget {
  padding: 1.4rem;
}

.widget-title {
  font-size: 1.35rem;
  letter-spacing: -0.03em;
}

.widget-spotlight {
  background:
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.12), transparent 28%),
    linear-gradient(145deg, #081821, #0a2b3a 52%, #0f7b72 100%);
}

.widget-spotlight p {
  color: rgba(237, 249, 249, 0.78);
}

.widget-checklist {
  background: linear-gradient(180deg, rgba(15, 155, 142, 0.08), rgba(255, 255, 255, 0.96));
}

.inner-hero-card {
  border-radius: 34px;
}

.inner-hero-copy .entry-title,
.inner-hero-copy .archive-title,
.inner-hero-copy .page-title {
  letter-spacing: -0.04em;
}

.consent-banner {
  border-radius: 30px;
}

@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }

  .hero-title {
    max-width: none;
  }

  .insight-metrics {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 780px) {
  .site-title {
    font-size: clamp(1.45rem, 9vw, 2.2rem);
  }

  .hero-title {
    font-size: clamp(2.35rem, 14vw, 4rem);
  }

  .hero-stats,
  .insight-metrics,
  .featured-collections {
    grid-template-columns: 1fr;
  }

  .entry-card {
    padding: 1.2rem;
  }

  .featured-thumb {
    border-radius: 20px;
  }

  .consent-banner {
    margin-bottom: 0.75rem;
  }

  .consent-actions .button,
  .consent-modal-actions .button {
    min-height: 54px;
  }
}

/* Global UI level-up */
:root {
  --glass-surface: linear-gradient(180deg, rgba(255, 255, 255, 0.78), rgba(250, 253, 254, 0.58));
  --glass-surface-strong: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(247, 251, 252, 0.78));
  --glass-border: rgba(255, 255, 255, 0.72);
  --glass-shadow: 0 24px 70px rgba(10, 32, 48, 0.08);
  --glass-shadow-soft: 0 18px 44px rgba(10, 32, 48, 0.06);
}

body::before,
body::after {
  content: "";
  position: fixed;
  inset: auto;
  width: 28rem;
  height: 28rem;
  border-radius: 50%;
  filter: blur(70px);
  pointer-events: none;
  z-index: -1;
}

body::before {
  top: -10rem;
  left: -8rem;
  background: rgba(15, 155, 142, 0.12);
}

body::after {
  top: 6rem;
  right: -10rem;
  background: rgba(74, 121, 165, 0.12);
}

.header-panel,
.hero-aside,
.insight-panel,
.insight-metrics,
.archive-intro,
.collection-card,
.widget,
.entry-card,
.author-box,
.comments-area,
.comment-respond,
.post-navigation,
.empty-state,
.inner-hero-card,
.pagination,
.consent-modal-card {
  background: var(--glass-surface);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow-soft);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
}

.consent-banner {
  background:
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.12), transparent 30%) !important,
    linear-gradient(145deg, #0a2030, #10384c 55%, #0f7b72 100%) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  box-shadow: 0 22px 50px rgba(13, 35, 53, 0.26) !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

.header-panel {
  position: relative;
  overflow: clip;
  padding: 1.25rem 1.25rem 1.3rem;
  border-radius: 38px;
  box-shadow: var(--glass-shadow);
}

.header-panel::before {
  content: "";
  position: absolute;
  inset: -20% auto auto -10%;
  width: 18rem;
  height: 18rem;
  border-radius: 50%;
  background: rgba(15, 155, 142, 0.08);
  filter: blur(46px);
  pointer-events: none;
}

.site-branding-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: center;
}

.site-branding {
  gap: 1.1rem;
}

.brand-mark {
  width: 68px;
  height: 68px;
  border-radius: 22px;
  box-shadow:
    0 16px 32px rgba(15, 155, 142, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.site-title {
  letter-spacing: -0.045em;
}

.header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.75rem;
  flex: 0 0 auto;
}

.header-mobile-controls {
  display: none;
  align-items: center;
  justify-content: flex-end;
  gap: 0.6rem;
  align-self: center;
}

.header-utility-item {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  min-height: 54px;
  padding: 0.85rem 1rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.54);
  border: 1px solid rgba(10, 32, 48, 0.08);
  color: var(--title);
  font-size: 0.95rem;
  font-weight: 600;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.header-utility-item:hover {
  background: rgba(255, 255, 255, 0.78);
  color: var(--accent-strong);
}

.header-utility-icon {
  position: relative;
  width: 1.1rem;
  height: 1.1rem;
  flex: 0 0 1.1rem;
}

.header-utility-icon.is-search::before,
.header-utility-icon.is-search::after,
.header-utility-icon.is-shield::before,
.header-utility-icon.is-shield::after {
  content: "";
  position: absolute;
}

.header-utility-icon.is-search::before {
  inset: 0.02rem 0.15rem 0.15rem 0.02rem;
  border: 2px solid currentColor;
  border-radius: 50%;
}

.header-utility-icon.is-search::after {
  width: 0.45rem;
  height: 2px;
  right: 0;
  bottom: 0.05rem;
  background: currentColor;
  transform: rotate(45deg);
  transform-origin: right center;
}

.header-utility-icon.is-shield::before {
  inset: 0.02rem 0.14rem 0.18rem;
  border: 2px solid currentColor;
  border-bottom-left-radius: 0.65rem;
  border-bottom-right-radius: 0.65rem;
  border-top-left-radius: 0.35rem;
  border-top-right-radius: 0.35rem;
}

.header-utility-icon.is-shield::after {
  top: 0.26rem;
  left: 0.46rem;
  width: 2px;
  height: 0.44rem;
  background: currentColor;
  box-shadow: -0.18rem 0.16rem 0 0 currentColor, 0.18rem 0.16rem 0 0 currentColor;
}

.header-search-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1rem;
  margin-top: 1rem;
  align-items: center;
}

.header-search {
  max-width: none;
}

.search-form {
  min-height: 74px;
  padding: 0.45rem;
  background: rgba(255, 255, 255, 0.64);
  border: 1px solid rgba(10, 32, 48, 0.08);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.92),
    0 10px 24px rgba(10, 32, 48, 0.05);
}

.search-form:focus-within {
  border-color: rgba(15, 155, 142, 0.26);
  box-shadow:
    0 0 0 4px rgba(15, 155, 142, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.92);
}

.search-form input[type="search"] {
  padding: 1rem 1.2rem;
}

.search-form .search-submit,
.search-form button {
  min-height: 58px;
  padding-inline: 1.45rem;
}

.header-status-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.65rem;
}

.header-status-item {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  min-height: 50px;
  padding: 0.8rem 0.95rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.52);
  border: 1px solid rgba(10, 32, 48, 0.08);
  color: var(--title);
  font-size: 0.92rem;
  font-weight: 600;
}

.status-dot {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), #54b5aa);
  box-shadow: 0 0 0 6px rgba(15, 155, 142, 0.08);
}

.search-toggle,
.menu-toggle {
  background: rgba(255, 255, 255, 0.68);
  color: var(--title);
  border: 1px solid rgba(10, 32, 48, 0.08);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow:
    0 14px 24px rgba(10, 32, 48, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.92);
}

.site-nav-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.7fr);
  gap: 1rem;
  align-items: center;
  margin-top: 1rem;
  padding-top: 1rem;
}

.main-navigation ul {
  gap: 0.55rem;
}

.main-navigation a {
  padding: 0.78rem 1rem;
  background: rgba(255, 255, 255, 0.48);
  border: 1px solid transparent;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.86);
}

.main-navigation .current-menu-item > a,
.main-navigation a:hover {
  background: rgba(15, 155, 142, 0.12);
  border-color: rgba(15, 155, 142, 0.12);
}

.nav-meta {
  justify-self: end;
  max-width: 32rem;
  padding: 0.9rem 1rem;
  text-align: left;
  background: rgba(255, 255, 255, 0.44);
  border: 1px solid rgba(10, 32, 48, 0.06);
  border-radius: 20px;
}

.hero-card {
  position: relative;
  overflow: hidden;
  box-shadow: 0 30px 70px rgba(7, 24, 33, 0.18);
}

.hero-card::after {
  content: "";
  position: absolute;
  inset: auto -8% -28% auto;
  width: 18rem;
  height: 18rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  filter: blur(20px);
  pointer-events: none;
}

.widget,
.entry-card,
.archive-intro,
.collection-card,
.inner-hero-card,
.comments-area,
.comment-respond {
  border-radius: 28px;
}

.widget,
.entry-card,
.collection-card,
.archive-intro {
  box-shadow:
    0 20px 40px rgba(10, 32, 48, 0.05),
    inset 0 1px 0 rgba(255, 255, 255, 0.78);
}

.collection-card,
.widget,
.entry-card,
.archive-intro,
.inner-hero-note,
.metric-card {
  position: relative;
  overflow: hidden;
}

.collection-card::before,
.widget::before,
.entry-card::before,
.archive-intro::before,
.inner-hero-note::before,
.metric-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.22), transparent 42%);
  pointer-events: none;
}

.entry-card {
  overflow: hidden;
}

.featured-thumb img {
  transform: scale(1.01);
}

.metric-card,
.card-signal,
.entry-badge,
.taxonomy-link {
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

@media (max-width: 1024px) {
  .site-branding-row {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .header-actions {
    grid-column: 1 / -1;
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .header-search-panel,
  .site-nav-row {
    grid-template-columns: 1fr;
  }

  .nav-meta {
    justify-self: stretch;
    max-width: none;
  }
}

@media (max-width: 780px) {
  .header-panel {
    padding: 0.95rem;
    border-radius: 28px;
  }

  .site-branding-row {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.8rem;
    align-items: center;
  }

  .header-actions {
    display: none;
  }

  .header-mobile-controls {
    display: inline-flex;
    align-items: center;
  }

  .search-toggle,
  .menu-toggle {
    display: inline-flex;
    width: 52px;
    min-width: 52px;
    min-height: 52px;
    padding: 0;
    justify-content: center;
    border-radius: 16px;
  }

  .search-toggle .header-utility-icon {
    margin: 0 auto;
  }

  .menu-toggle-label {
    display: none;
  }

  .site-branding {
    width: auto;
    justify-self: start;
    text-align: left;
    gap: 0.8rem;
  }

  .brand-mark {
    width: 54px;
    height: 54px;
    border-radius: 18px;
    font-size: 1.2rem;
  }

  .site-description,
  .header-status-list,
  .nav-meta {
    display: none;
  }

  .site-title {
    font-size: clamp(1.4rem, 8vw, 1.9rem);
    line-height: 1;
  }

  .header-search-panel {
    margin-top: 0.9rem;
    gap: 0.8rem;
    display: none;
  }

  .header-search-panel.is-open {
    display: grid;
  }

  .search-form {
    min-height: 64px;
    border-radius: 22px;
  }

  .search-form input[type="search"] {
    min-height: 54px;
    padding: 0.9rem 1rem;
    font-size: 1rem;
  }

  .search-form .search-submit,
  .search-form button {
    min-height: 54px;
    padding-inline: 1.15rem;
  }

  .js-enabled .main-navigation {
    display: none;
  }

  .js-enabled .main-navigation.is-open {
    display: block;
  }

  .main-navigation {
    width: 100%;
    display: none;
  }

  .main-navigation.is-open {
    display: block;
  }

  .main-navigation ul {
    flex-direction: column;
    padding: 0.35rem;
    background: rgba(255, 255, 255, 0.62);
    border: 1px solid rgba(10, 32, 48, 0.08);
    border-radius: 22px;
    box-shadow: 0 18px 32px rgba(10, 32, 48, 0.07);
  }

  .main-navigation a {
    width: 100%;
    min-height: 52px;
    justify-content: flex-start;
    border-radius: 16px;
  }

  .hero-card,
  .hero-aside,
  .archive-intro,
  .entry-card,
  .widget,
  .collection-card,
  .inner-hero-card {
    border-radius: 24px;
  }

  .hero-card,
  .hero-aside,
  .archive-intro,
  .collection-card,
  .widget,
  .entry-card,
  .inner-hero-card,
  .comments-area,
  .comment-respond {
    box-shadow:
      0 16px 32px rgba(10, 32, 48, 0.05),
      inset 0 1px 0 rgba(255, 255, 255, 0.72);
  }
}

/* Performance-safe overrides */
body::before,
body::after {
  display: none !important;
}

.header-panel,
.hero-aside,
.insight-panel,
.insight-metrics,
.archive-intro,
.collection-card,
.widget,
.entry-card,
.author-box,
.comments-area,
.comment-respond,
.post-navigation,
.empty-state,
.inner-hero-card,
.pagination,
.consent-banner,
.consent-modal-card,
.metric-card,
.card-signal,
.entry-badge,
.taxonomy-link,
.header-utility-item,
.header-status-item,
.search-form,
.main-navigation a {
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  box-shadow: none !important;
}

.header-panel,
.hero-aside,
.insight-panel,
.insight-metrics,
.archive-intro,
.collection-card,
.widget,
.entry-card,
.author-box,
.comments-area,
.comment-respond,
.post-navigation,
.empty-state,
.inner-hero-card,
.pagination {
  background: #ffffff !important;
}

.hero-card,
.widget-spotlight {
  box-shadow: none !important;
}

.collection-card::before,
.widget::before,
.entry-card::before,
.archive-intro::before,
.inner-hero-note::before,
.metric-card::before,
.header-panel::before,
.hero-card::after {
  display: none !important;
}

.entry-card:hover,
button:hover,
.button:hover,
input[type="submit"]:hover,
.wp-block-search__button:hover {
  transform: none !important;
}

.sidebar-stack {
  position: static !important;
}
