/*
Theme Name: The IT Dilemma
Author: OpenAI Codex
Description: Custom WordPress theme for The IT Dilemma, a publication about technology risk, infrastructure reality, cybersecurity, and leadership.
Version: 0.5.3
Requires at least: 6.4
Tested up to: 6.7
Requires PHP: 7.4
Text Domain: kelly-hansen
*/

:root {
  --kh-background: #f8fafc;
  --kh-surface: #ffffff;
  --kh-surface-alt: #eef2f5;
  --kh-foreground: #0f172a;
  --kh-muted: #475569;
  --kh-border: #e7e9eb;
  --kh-primary: #0b6fcb;
  --kh-primary-dark: #074c8c;
  --kh-primary-soft: rgba(11, 111, 203, 0.12);
  --kh-danger: #ff5a57;
  --kh-shadow: 0 18px 36px rgba(15, 23, 42, 0.06);
  --kh-radius: 18px;
  --kh-container: 1280px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--kh-background);
  color: var(--kh-foreground);
  font-family: "Manrope", "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.72;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: color 160ms ease, border-color 160ms ease, background-color 160ms ease, transform 160ms ease;
}

a:hover,
a:focus-visible {
  color: var(--kh-primary);
}

button,
input,
textarea {
  font: inherit;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0;
  font-family: "Manrope", "Segoe UI", sans-serif;
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 1;
}

p,
ul,
ol {
  margin: 0;
}

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

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

.screen-reader-text:focus {
  top: 1rem;
  left: 1rem;
  width: auto;
  height: auto;
  clip: auto;
  padding: 0.75rem 1rem;
  margin: 0;
  background: var(--kh-surface);
  color: var(--kh-foreground);
  box-shadow: var(--kh-shadow);
  z-index: 100000;
}

.button,
button,
input[type="submit"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-height: 50px;
  padding: 0.85rem 1.35rem;
  border: 1px solid transparent;
  border-radius: 0.6rem;
  background: var(--kh-primary);
  color: #f0ffff;
  cursor: pointer;
  font-size: 0.98rem;
  font-weight: 700;
  line-height: 1;
}

.button svg,
.icon-button svg,
.button-link svg {
  width: 1.1rem;
  height: 1.1rem;
  fill: currentColor;
}

.button:hover,
.button:focus-visible,
button:hover,
button:focus-visible,
input[type="submit"]:hover,
input[type="submit"]:focus-visible {
  background: var(--kh-primary-dark);
  color: #f0ffff;
  transform: translateY(-1px);
}

.button--outline {
  background: var(--kh-surface);
  border-color: var(--kh-border);
  color: var(--kh-foreground);
}

.button--outline:hover,
.button--outline:focus-visible {
  background: var(--kh-surface-alt);
  border-color: var(--kh-primary);
  color: var(--kh-foreground);
}

.button[aria-disabled="true"] {
  opacity: 0.55;
  pointer-events: none;
}

.icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--kh-border);
  border-radius: 0.55rem;
  background: var(--kh-surface);
  color: var(--kh-foreground);
}

.icon-button:hover,
.icon-button:focus-visible {
  background: var(--kh-primary);
  border-color: var(--kh-primary);
  color: #f0ffff;
}

.button-link {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--kh-primary);
  font-weight: 800;
}

.button-link:hover,
.button-link:focus-visible {
  color: var(--kh-primary-dark);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid rgba(231, 233, 235, 0.75);
  background: rgba(248, 250, 252, 0.95);
  backdrop-filter: blur(14px);
}

.site-header__inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1.5rem;
  min-height: 56px;
}

.site-logo,
.site-footer__brand {
  color: var(--kh-primary);
  font-size: 1.08rem;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.custom-logo {
  max-height: 34px;
  width: auto;
}

.site-navigation {
  justify-self: start;
}

.primary-menu {
  display: flex;
  align-items: center;
  gap: 2rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.primary-menu a {
  color: rgba(15, 23, 42, 0.76);
  font-size: 0.98rem;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.primary-menu .current-menu-item > a,
.primary-menu .current_page_item > a,
.primary-menu .current_page_parent > a,
.primary-menu a:hover,
.primary-menu a:focus-visible {
  color: var(--kh-primary);
}

.primary-menu li {
  position: relative;
}

.primary-menu .menu-item-has-children {
  display: flex;
  align-items: center;
}

.primary-menu .menu-item-has-children > a::after {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-left: 0.45rem;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  opacity: 0.6;
  transform: rotate(45deg) translateY(-2px);
}

.primary-menu .sub-menu {
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 60;
  display: none;
  min-width: 220px;
  margin: 0.65rem 0 0;
  padding: 0.5rem;
  list-style: none;
  background: var(--kh-surface);
  border: 1px solid var(--kh-border);
  border-radius: 0.75rem;
  box-shadow: var(--kh-shadow);
}

.primary-menu .sub-menu::before {
  content: '';
  position: absolute;
  top: -0.65rem;
  left: 0;
  right: 0;
  height: 0.65rem;
}

.primary-menu .sub-menu li {
  position: static;
}

.primary-menu .sub-menu a {
  display: block;
  padding: 0.55rem 0.75rem;
  border-radius: 0.5rem;
  font-size: 0.92rem;
  font-weight: 700;
  white-space: nowrap;
}

.primary-menu .sub-menu a:hover,
.primary-menu .sub-menu a:focus-visible {
  background: var(--kh-surface-alt);
  color: var(--kh-primary);
}

.primary-menu .menu-item-has-children:hover > .sub-menu,
.primary-menu .menu-item-has-children:focus-within > .sub-menu {
  display: block;
}

.submenu-toggle {
  display: none;
}

.site-header__actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.utility-menu {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.utility-menu a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0.7rem 1rem;
  border: 1px solid var(--kh-border);
  border-radius: 0.6rem;
  background: var(--kh-surface);
  color: var(--kh-foreground);
  font-size: 0.92rem;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
}

.utility-menu li:last-child a {
  border-color: var(--kh-primary);
  background: var(--kh-primary);
  color: #fff;
}

.utility-menu a:hover,
.utility-menu a:focus-visible {
  border-color: var(--kh-primary);
  background: var(--kh-surface-alt);
  color: var(--kh-primary-dark);
}

.utility-menu li:last-child a:hover,
.utility-menu li:last-child a:focus-visible {
  background: var(--kh-primary-dark);
  color: #fff;
}

.site-header__action-link {
  min-height: 42px;
  padding: 0.7rem 1rem;
  font-size: 0.92rem;
  white-space: nowrap;
}

.menu-toggle {
  display: none;
  grid-auto-flow: row;
  gap: 4px;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid var(--kh-border);
  border-radius: 0.55rem;
  background: var(--kh-surface);
}

.menu-toggle__line {
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: var(--kh-foreground);
}

.site-main {
  min-height: calc(100vh - 56px);
}

.page-hero,
.home-hero {
  background: var(--kh-background);
}

.home-hero--has-background {
  overflow: hidden;
  background-color: var(--kh-background);
}

.page-hero {
  padding: 3.5rem 0 3.125rem;
}

.page-hero--muted {
  background: var(--kh-surface-alt);
  border-bottom: 1px solid var(--kh-border);
}

.page-hero--center {
  text-align: center;
}

.page-hero__eyebrow {
  margin-bottom: 1rem;
  color: var(--kh-primary);
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.page-hero__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.4rem;
  padding: 0.4rem 1rem;
  border: 1px solid var(--kh-border);
  border-radius: 999px;
  background: var(--kh-surface);
  color: var(--kh-foreground);
  font-size: 0.95rem;
  font-weight: 800;
}

.page-hero__title {
  max-width: 22ch;
  font-size: clamp(2.1rem, 4.5vw, 4.5rem);
}

.home-hero__title {
  max-width: 11ch;
  font-size: clamp(2.51rem, 5.41vw, 5.41rem);
  padding-left: 25px;
}

.page-hero__title--wide {
  max-width: 14ch;
}

.page-hero__title--accent {
  color: var(--kh-primary);
}

.page-hero__subtitle {
  display: block;
  margin-top: 0.5rem;
  color: rgba(71, 85, 105, 0.95);
  font-weight: 400;
}

.page-hero__summary,
.home-hero__summary {
  max-width: 46rem;
  margin-top: 1.75rem;
  color: var(--kh-muted);
  font-size: 1.08rem;
  line-height: 1.75;
}

.kh-articles__grid--fallback {
  margin-top: 2rem;
}

.kh-archive-empty__cta {
  margin-top: 2.5rem;
  text-align: center;
}

.page-hero__count {
  margin-top: 0.85rem;
  color: var(--kh-muted);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.kh-related-topics {
  padding: 3.5rem 0 5rem;
  border-top: 1px solid var(--kh-border);
}

.kh-related-topics__title {
  font-size: 1.3rem;
}

.kh-related-topics .tag-list {
  margin-top: 1.25rem;
}

.kh-related-topics .tag {
  transition: background-color 0.15s ease;
}

.kh-related-topics .tag:hover,
.kh-related-topics .tag:focus-visible {
  background: var(--kh-primary);
  color: #fff;
}

.page-hero--center .page-hero__title,
.page-hero--center .page-hero__summary {
  margin-right: auto;
  margin-left: auto;
}

.home-hero {
  position: relative;
}

.home-hero__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.34fr);
  align-items: start;
  gap: 4rem;
  min-height: min(calc(100vh - 56px), 760px);
  padding: 6.5rem 0 3.5rem;
}

.home-hero__vertical {
  position: absolute;
  top: 0;
  left: 0;
  color: rgba(15, 23, 42, 0.05);
  font-size: 2.0rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  text-transform: uppercase;
  transform: translateX(-0.2rem) rotate(180deg);
  writing-mode: vertical-rl;
}

.home-hero__content {
  max-width: 48rem;
  padding-left: 1.5rem;
}

.home-hero__eyebrow {
  color: var(--kh-primary);
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.home-hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.25rem;
  margin-top: 2.5rem;
}

.home-hero__tag {
  color: var(--kh-primary);
  font-size: 0.95rem;
  font-weight: 800;
}

.home-hero__media {
  justify-self: end;
  align-self: start;
  display: flex;
  justify-content: center;
  width: min(475px, 100%);
}

.home-hero__image-frame,
.feature-image-frame,
.workshop-card__placeholder {
  border: 1px solid var(--kh-border);
  border-radius: var(--kh-radius);
  background: linear-gradient(145deg, rgba(11, 111, 203, 0.08), rgba(238, 242, 245, 0.8));
  box-shadow: var(--kh-shadow);
  overflow: hidden;
}

.home-hero__image-frame {
  width: 100%;
  height: auto;
  aspect-ratio: auto;
  border: 0;
  background: transparent;
  background-color: transparent;
  box-shadow: none;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  overflow: visible;
}

.home-hero__image,
.feature-image-frame img,
.workshop-card__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.home-hero__image {
  width: auto;
  max-width: 100%;
  background: transparent;
  background-color: transparent;
  object-fit: contain;
  object-position: center bottom;
}

.feature-image-frame {
  min-height: 320px;
}

.feature-image-frame--empty,
.workshop-card__placeholder {
  display: grid;
  place-items: center;
  padding: 2rem;
  color: var(--kh-muted);
  text-align: center;
}

.section-band {
  border-top: 1px solid var(--kh-border);
}

.section-band--muted {
  background: var(--kh-surface-alt);
}

.indexed-section {
  padding: 3rem 0;
}

.indexed-section--compact {
  padding: 1rem 0 2rem;
}

.indexed-layout {
  display: grid;
  grid-template-columns: minmax(180px, 0.3fr) minmax(0, 1fr);
  gap: 4rem;
}

.indexed-layout__sidebar {
  position: relative;
}

.indexed-layout__pin {
  position: sticky;
  top: 6.5rem;
}

.indexed-layout__number {
  color: var(--kh-primary);
  font-size: 0.86rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.indexed-layout__title {
  margin-top: 0.5rem;
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 700;
  letter-spacing: -0.05em;
}

.indexed-layout__content {
  min-width: 0;
}

.lead-copy {
  color: var(--kh-muted);
  font-size: 1.1rem;
  line-height: 1.75;
}

.lead-copy > * + *,
.line-list__body > * + *,
.principle-item__text > * + * {
  margin-top: 0.9rem;
}

.lead-copy ul,
.lead-copy ol,
.line-list__body ul,
.line-list__body ol,
.principle-item__text ul,
.principle-item__text ol {
  padding-left: 1.35rem;
}

.lead-copy li + li,
.line-list__body li + li,
.principle-item__text li + li {
  margin-top: 0.45rem;
}

.lead-copy--strong {
  color: var(--kh-foreground);
  font-weight: 700;
}

.stack-lg > * + * {
  margin-top: 2rem;
}

.stack-md > * + * {
  margin-top: 1.5rem;
}

.stack-sm > * + * {
  margin-top: 1rem;
}

.line-list__item + .line-list__item,
.case-study + .case-study {
  margin-top: 2.3rem;
  padding-top: 2.3rem;
  border-top: 1px solid var(--kh-border);
}

.case-study__label {
  color: var(--kh-primary);
  font-size: 1.02rem;
}

.line-list__heading {
  font-size: clamp(1.55rem, 2.6vw, 2.35rem);
  font-weight: 700;
  letter-spacing: -0.05em;
}

.line-list__body {
  margin-top: 0.7rem;
  max-width: 44rem;
  color: var(--kh-muted);
  font-size: 1.08rem;
}

.principle-item__title,
.case-study__label,
.split-feature__title,
.article-preview__title,
.project-card__title,
.workshop-card__title,
.podcast-card__title,
.resume-panel__title {
  font-weight: 700;
  letter-spacing: -0.05em;
}

.principle-item__title,
.split-feature__title,
.podcast-card__title {
  font-size: clamp(1.5rem, 2.2vw, 2.1rem);
}

.principle-item__text,
.case-study__text,
.split-feature__copy p,
.article-preview__excerpt,
.project-card__summary,
.workshop-card__excerpt,
.podcast-card__excerpt,
.help-desk__sidebar-card p,
.resume-panel__copy,
.placeholder-card p {
  color: var(--kh-muted);
  font-size: 1.05rem;
  line-height: 1.72;
}

.split-feature {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 360px);
  gap: 3.5rem;
  align-items: start;
}

.split-feature__copy {
  max-width: 46rem;
}

.split-feature__visual {
  align-self: stretch;
}

.section-heading-center {
  max-width: 56rem;
  margin: 0 auto;
  text-align: center;
}

.section-heading-center h2 {
  font-size: clamp(2.2rem, 5vw, 4rem);
}

.section-heading-center p {
  margin-top: 1.25rem;
  color: var(--kh-muted);
  font-size: 1.08rem;
}

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

.project-card,
.workshop-card,
.podcast-card,
.entry-shell,
.placeholder-card,
.help-desk__sidebar-card,
.kh-contact-card {
  border: 1px solid var(--kh-border);
  border-radius: var(--kh-radius);
  background: var(--kh-surface);
  box-shadow: var(--kh-shadow);
}

.kh-contact-card {
  padding: 2rem;
}

.kh-contact-card iframe {
  display: block;
  width: 100%;
  border: none;
}

.kh-contact-linkedin {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  padding: 1.75rem 2rem;
  border: 1px solid var(--kh-border);
  border-radius: var(--kh-radius);
  background: var(--kh-surface-alt);
}

.kh-contact-linkedin__title {
  font-size: 1.2rem;
}

.kh-contact-linkedin__copy {
  margin-top: 0.35rem;
  color: var(--kh-muted);
}

.kh-contact-linkedin .button {
  flex-shrink: 0;
  white-space: nowrap;
}

.kh-newsletter--card {
  border: 1px solid var(--kh-border);
  border-radius: var(--kh-radius);
  background: var(--kh-surface);
  box-shadow: var(--kh-shadow);
  padding: 2rem;
}

.kh-newsletter--inline {
  margin: 2.5rem 0;
  padding: 2rem;
  border: 1px solid var(--kh-border);
  border-radius: var(--kh-radius);
  background: var(--kh-surface-alt);
  text-align: center;
}

.kh-newsletter__heading {
  font-size: 1.4rem;
}

.kh-newsletter__copy {
  margin-top: 0.5rem;
  color: var(--kh-muted);
}

.kh-newsletter__form {
  max-width: 30rem;
  margin: 1.25rem auto 0;
}

.kh-newsletter__form iframe,
.kh-newsletter__form > * {
  max-width: 100%;
}

.kh-newsletter-page {
  max-width: 34rem;
  margin: 0 auto;
}

.project-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  padding: 1.8rem;
}

.project-card__title {
  font-size: clamp(1.7rem, 2.4vw, 2.5rem);
}

.project-card__summary {
  margin-top: 1.25rem;
}

.project-card__footer {
  margin-top: auto;
  padding-top: 2rem;
}

.help-desk__layout {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(260px, 0.75fr);
  gap: 4rem;
}

.help-desk__posts {
  min-width: 0;
}

.article-preview + .article-preview {
  margin-top: 4rem;
}

.article-preview__date {
  color: var(--kh-muted);
  font-size: 0.94rem;
}

.article-preview__title {
  margin-top: 0.55rem;
  font-size: clamp(2rem, 4vw, 3.1rem);
}

.article-preview__tags,
.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 1rem;
}

.tag {
  display: inline-flex;
  align-items: center;
  padding: 0.32rem 0.75rem;
  border-radius: 999px;
  background: #e8edf4;
  color: var(--kh-foreground);
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1;
}

.tag--warm {
  background: var(--kh-danger);
  color: #fff;
}

.article-preview__excerpt {
  margin-top: 1rem;
}

.article-preview__link {
  margin-top: 1.3rem;
}

.help-desk__sidebar-card {
  position: sticky;
  top: 6.5rem;
  padding: 1.7rem;
  background: var(--kh-surface-alt);
}

.help-desk__sidebar-card h3 {
  font-size: 1.9rem;
}

.podcast-list {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  max-width: 900px;
  margin: 0 auto;
}

.podcast-card {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 1.5rem;
  padding: 1.5rem;
}

.podcast-card__play {
  display: grid;
  place-items: center;
  width: 96px;
  height: 96px;
  border-radius: 0.9rem;
  background: var(--kh-surface-alt);
  color: var(--kh-primary);
}

.podcast-card__title {
  font-size: clamp(1.7rem, 2.6vw, 2.5rem);
}

.podcast-card__excerpt {
  margin-top: 0.7rem;
}

.podcast-card__duration {
  margin-top: 0.9rem;
  color: var(--kh-primary);
  font-size: 0.95rem;
  font-weight: 800;
}

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

.workshop-card {
  overflow: hidden;
}

.workshop-card__media {
  aspect-ratio: 16 / 10;
  background: linear-gradient(145deg, rgba(11, 111, 203, 0.12), rgba(238, 242, 245, 0.7));
}

.workshop-card__media a {
  display: block;
  width: 100%;
  height: 100%;
}

.workshop-card__body {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1.5rem;
}

.workshop-card__title {
  font-size: clamp(1.8rem, 2.5vw, 2.45rem);
}

.contact-form {
  max-width: 100%;
}

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

.contact-form input,
.contact-form textarea,
.search-field {
  width: 100%;
  padding: 0.95rem 1rem;
  border: 1px solid var(--kh-border);
  border-radius: 0.55rem;
  background: var(--kh-surface);
  color: var(--kh-foreground);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.contact-form input:focus,
.contact-form textarea:focus,
.search-field:focus {
  outline: 2px solid rgba(11, 111, 203, 0.18);
  outline-offset: 1px;
  border-color: rgba(11, 111, 203, 0.45);
}

.contact-form textarea {
  min-height: 132px;
  margin-top: 1rem;
  resize: vertical;
}

.contact-form .button {
  margin-top: 1rem;
}

.contact-notice {
  margin-bottom: 1rem;
  padding: 1rem 1.2rem;
  border-radius: 0.75rem;
  font-weight: 700;
}

.contact-notice--success {
  background: rgba(11, 111, 203, 0.12);
  color: var(--kh-primary-dark);
}

.contact-notice--error {
  background: rgba(255, 90, 87, 0.12);
  color: #a12727;
}

.resume-panel {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.resume-panel__title {
  font-size: clamp(2.5rem, 5vw, 4rem);
}

.resume-panel__copy {
  max-width: 48rem;
  margin: 1.4rem auto 0;
}

.resume-panel__actions {
  margin-top: 2.5rem;
}

.placeholder-card,
.entry-shell {
  padding: 2rem;
}

.placeholder-card h3,
.entry-title {
  font-size: clamp(2rem, 4vw, 3rem);
}

.entry-meta {
  margin-bottom: 0.75rem;
  color: var(--kh-muted);
  font-size: 0.92rem;
}

.single-feature {
  margin-bottom: 1.8rem;
  overflow: hidden;
  border-radius: 1rem;
}

.entry-content {
  color: var(--kh-muted);
  font-size: 1.05rem;
  line-height: 1.82;
}

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

.entry-content h2,
.entry-content h3,
.entry-content h4 {
  color: var(--kh-foreground);
  letter-spacing: -0.04em;
}

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

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

.entry-content ul,
.entry-content ol {
  padding-left: 1.2rem;
}

.entry-content blockquote {
  padding-left: 1.2rem;
  border-left: 3px solid var(--kh-primary);
  color: var(--kh-foreground);
  font-weight: 700;
}

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

.entry-card {
  padding: 1.4rem;
  border: 1px solid var(--kh-border);
  border-radius: 1rem;
  background: var(--kh-surface);
  box-shadow: var(--kh-shadow);
}

.entry-card__title {
  margin-top: 0.55rem;
  font-size: 1.65rem;
  font-weight: 700;
  letter-spacing: -0.05em;
}

.entry-card__excerpt {
  margin-top: 0.8rem;
  color: var(--kh-muted);
}

.post-template-band {
  border-top: 1px solid var(--kh-border);
  background: var(--kh-surface);
}

.post-template-layout {
  display: grid;
  grid-template-columns: minmax(0, 760px) minmax(280px, 340px);
  gap: 4rem;
  align-items: start;
  padding: 4rem 0 5.5rem;
}

.post-article {
  min-width: 0;
}

.post-article__kicker {
  margin-bottom: 1rem;
  color: var(--kh-primary);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1.4;
  text-transform: uppercase;
}

.post-article__title {
  max-width: 14ch;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.65rem, 6vw, 5rem);
  line-height: 0.98;
  letter-spacing: -0.055em;
}

.post-article__subtitle {
  margin-top: 1.4rem;
  color: #334155;
  font-size: clamp(1.12rem, 2vw, 1.32rem);
  line-height: 1.48;
}

.post-article__meta {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin-top: 1.8rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--kh-border);
  color: var(--kh-muted);
  font-size: 0.95rem;
  line-height: 1.45;
}

.post-article__meta strong {
  color: var(--kh-foreground);
}

.post-article__meta-main {
  display: flex;
  flex: 1;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  min-width: 0;
}

.post-article__meta-main p {
  min-width: 0;
}

.post-article__read-time {
  flex: 0 0 auto;
  color: var(--kh-muted);
  font-size: 0.95rem;
  font-weight: 700;
  white-space: nowrap;
}

.post-article__read-time::before {
  content: "";
  display: inline-block;
  width: 0.82rem;
  height: 0.82rem;
  margin-right: 0.42rem;
  border: 2px solid currentColor;
  border-radius: 50%;
  vertical-align: -0.1rem;
}

.post-article__avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
}

.post-article__feature {
  position: relative;
  margin: 2.25rem 0 2.75rem;
  overflow: hidden;
  border: 1px solid var(--kh-border);
  border-radius: var(--kh-radius);
  background: var(--kh-surface-alt);
}

.post-article__feature img {
  width: 100%;
  max-height: 460px;
  object-fit: cover;
}

.post-article__feature > .post-article__feature-card {
  right: 2rem;
  bottom: 2rem;
}

.post-article__feature figcaption {
  padding: 0.8rem 1rem;
  color: var(--kh-muted);
  font-size: 0.9rem;
}

.post-article__feature-hook {
  border-top: 1px solid var(--kh-border);
  background: var(--kh-surface);
  color: var(--kh-foreground);
  font-family: "Manrope", "Segoe UI", sans-serif;
  font-size: 0.98rem;
  font-weight: 700;
  line-height: 1.5;
}

.post-article__feature-caption {
  border-top: 1px solid var(--kh-border);
  background: var(--kh-surface);
}

.post-article__feature--generated {
  position: relative;
  min-height: 360px;
  background:
    radial-gradient(circle at 18% 20%, rgba(255, 255, 255, 0.86), transparent 22%),
    linear-gradient(135deg, #18202a, #42515f 48%, #dfe7eb);
}

.post-article__feature--generated::before {
  content: "";
  position: absolute;
  inset: 2.4rem;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 0.85rem;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.13) 1px, transparent 1px),
    linear-gradient(rgba(255, 255, 255, 0.13) 1px, transparent 1px);
  background-size: 52px 52px;
}

.post-article__feature-card {
  position: absolute;
  right: 2.6rem;
  bottom: 2.6rem;
  z-index: 1;
  max-width: min(360px, calc(100% - 5.2rem));
  padding: 1.2rem 1.3rem 1.2rem 1.45rem;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-left: 4px solid var(--kh-primary);
  border-radius: 0.85rem;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.84), rgba(15, 23, 42, 0.68));
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.34);
  color: #f8fafc;
  font-weight: 800;
  line-height: 1.35;
  backdrop-filter: blur(12px);
}

.post-article__content {
  color: #253041;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.1rem;
  line-height: 1.82;
}

.post-article__content > * + * {
  margin-top: 1.15rem;
}

.post-article__content p:first-child {
  color: #1f2937;
  font-size: 1.24rem;
}

.post-article__content a.ts-article-link,
.entry-content a.ts-article-link {
  color: var(--kh-primary-dark);
  text-decoration-line: underline;
  text-decoration-style: dotted;
  text-decoration-thickness: 0.11em;
  text-underline-offset: 0.22em;
}

.post-article__content a.ts-article-link:hover,
.post-article__content a.ts-article-link:focus-visible,
.entry-content a.ts-article-link:hover,
.entry-content a.ts-article-link:focus-visible {
  color: var(--kh-primary);
  text-decoration-style: solid;
}

.post-article__content h2,
.post-article__content h3,
.post-article__content h4 {
  color: var(--kh-foreground);
  font-family: Georgia, "Times New Roman", serif;
  letter-spacing: -0.035em;
}

.post-article__content h2 {
  margin-top: 3.4rem;
  font-size: clamp(2rem, 3vw, 2.5rem);
  line-height: 1.08;
}

.post-article__content h3 {
  margin-top: 2.6rem;
  font-size: clamp(1.55rem, 2.4vw, 2rem);
  line-height: 1.16;
}

.post-article__content ul,
.post-article__content ol {
  padding-left: 1.35rem;
}

.post-article__content li + li {
  margin-top: 0.45rem;
}

.post-article__content blockquote {
  margin: 2.7rem 0;
  padding: 1.6rem 1.75rem 1.6rem 2rem;
  border-left: 6px solid var(--kh-primary);
  background: var(--kh-surface-alt);
  color: var(--kh-foreground);
  font-size: clamp(1.35rem, 2.4vw, 1.65rem);
  font-weight: 500;
  line-height: 1.32;
  letter-spacing: -0.025em;
}

.post-article__content blockquote > * + * {
  margin-top: 1rem;
}

.post-article__content .wp-block-group,
.post-article__content .wp-block-columns,
.post-article__content .wp-block-table {
  margin-top: 2.7rem;
}

.post-article__content .wp-block-group {
  padding: 1.75rem;
  border: 1px solid var(--kh-border);
  border-radius: var(--kh-radius);
  background: var(--kh-surface-alt);
}

.ts-threat-model-table-wrap {
  overflow-x: auto;
  margin: 2rem 0;
}

.ts-threat-model-table {
  width: 100%;
  table-layout: fixed;
  border-collapse: collapse;
  min-width: 760px;
}

.ts-threat-model-table th,
.ts-threat-model-table td {
  padding: 1rem;
  vertical-align: top;
  text-align: left;
  border-bottom: 1px solid #dcdcdc;
}

.ts-threat-model-table th {
  font-weight: 700;
  font-size: 1rem;
}

.ts-threat-model-table td {
  line-height: 1.7;
}

.ts-threat-model-table strong {
  display: block;
  margin-bottom: 0.5rem;
}

.ts-threat-model-col {
  width: 22%;
}

.ts-goal-col {
  width: 26%;
}

.ts-dwell-time-col {
  width: 24%;
}

.ts-modern-reality-col {
  width: 28%;
}

.post-article__content .kh-import-box h3 {
  margin-top: 0;
  margin-bottom: 0.85rem;
  color: var(--kh-primary-dark);
  font-family: "Manrope", "Segoe UI", sans-serif;
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.post-article__content .kh-import-box h3::after {
  content: "";
  display: block;
  width: 4rem;
  height: 2px;
  margin-top: 0.7rem;
  background: linear-gradient(
    135deg,
    #07111f 0%,
    #0f172a 40%,
    #164e63 75%,
    #33bfce 100%
  );
}

.post-article__content .kh-import-box p,
.post-article__content .kh-import-box ul {
  font-family: "Manrope", "Segoe UI", sans-serif;
  font-size: 0.98rem;
  line-height: 1.7;
}

.post-article__content .kh-import-box li + li {
  margin-top: 0.8rem;
}

.post-article__content .kh-import-box--faq p {
  margin-top: 1.1rem;
}

.post-article__content .kh-import-box--faq p:first-of-type {
  margin-top: 0;
}

.post-article__content .kh-import-box--faq strong {
  display: block;
  margin-bottom: 0.28rem;
  color: var(--kh-foreground);
  line-height: 1.35;
}

.post-article__content .kh-framework {
  counter-reset: kh-framework;
  display: grid;
  gap: 0;
  margin: 2.4rem 0;
  padding: 0;
  color: var(--kh-foreground);
}

.post-article__content .kh-framework__step {
  counter-increment: kh-framework;
  position: relative;
  display: grid;
  grid-template-columns: 2.15rem minmax(0, 1fr);
  gap: 0.9rem;
  padding: 0 0 1.35rem;
  border: 0;
  background: transparent;
  color: #334155;
  font-family: "Manrope", "Segoe UI", sans-serif;
  font-size: 1rem;
  line-height: 1.6;
}

.post-article__content .kh-framework__step:last-child {
  padding-bottom: 0;
}

.post-article__content .kh-framework__step-content {
  min-width: 0;
}

.post-article__content .kh-framework__step::before {
  content: counter(kh-framework);
  position: relative;
  z-index: 1;
  display: inline-grid;
  place-items: center;
  width: 1.35rem;
  height: 1.35rem;
  margin-top: 0.12rem;
  border: 1px solid rgba(15, 23, 42, 0.55);
  border-radius: 50%;
  color: #334155;
  font-size: 0.75rem;
  font-weight: 800;
  line-height: 1;
}

.post-article__content .kh-framework__step:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 1.7rem;
  bottom: 0.35rem;
  left: 0.66rem;
  border-left: 2px dotted rgba(15, 23, 42, 0.42);
}

.post-article__content .kh-framework__step strong {
  display: block;
  margin-bottom: 0.28rem;
  color: var(--kh-foreground);
  font-weight: 800;
  line-height: 1.25;
}

.post-article__content .kh-article-cta {
  position: relative;
  margin-top: 3rem;
  padding: 2rem;
  border: 1px solid rgba(11, 111, 203, 0.35);
  border-radius: var(--kh-radius);
  background:
    linear-gradient(135deg, rgba(11, 111, 203, 0.18), transparent 42%),
    #101827;
  color: #f8fafc;
  box-shadow: 0 28px 70px rgba(15, 23, 42, 0.2);
}

.post-article__content .kh-article-cta__eyebrow {
  color: #fff;
  font-family: "Manrope", "Segoe UI", sans-serif;
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1.3;
  text-transform: uppercase;
}

.post-article__content .kh-article-cta__copy {
  margin-top: 0.85rem;
  color: #f8fafc;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.35rem, 2.4vw, 1.75rem);
  font-weight: 700;
  line-height: 1.28;
  letter-spacing: -0.025em;
}

.post-article__content .kh-article-cta p.kh-article-cta__eyebrow {
  color: #fff;
}



.post-article__author {
  margin-top: 4rem;
  display: flex;
  gap: 1rem;
  padding: 1.25rem 0 0;
  border-top: 1px solid rgba(15, 23, 42, 0.18);
  color: var(--kh-foreground);
}

.post-article__author h2 {
  color: var(--kh-foreground);
  font-size: 1.08rem;
  letter-spacing: 0;
  line-height: 1.2;
}

.post-article__author-bio {
  margin-top: 0.9rem;
  color: #334155;
  font-size: 0.98rem;
  line-height: 1.55;
}

.post-article__author-title {
  margin-top: 0.25rem;
  color: #4b5563;
  font-size: 0.86rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.4;
}

.post-article__author-separator {
  color: #9ca3af;
  font-weight: 500;
}

.post-article__author-avatar {
  flex: 0 0 auto;
  width: 56px;
  height: 56px;
  border-radius: 50%;
}

.post-article__author-body {
  min-width: 0;
}

.post-article__author-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-top: 1rem;
  color: var(--kh-foreground);
  font-size: 0.95rem;
  font-weight: 800;
}

.post-article__author-link:hover,
.post-article__author-link:focus-visible {
  color: var(--kh-primary);
}

.post-sidebar {
  position: sticky;
  top: 6.5rem;
  display: grid;
  gap: 1.25rem;
}

.post-sidebar__card {
  padding: 1.45rem;
  border: 1px solid var(--kh-border);
  border-radius: var(--kh-radius);
  background: var(--kh-surface);
  box-shadow: var(--kh-shadow);
}

.post-sidebar__card h2 {
  margin-bottom: 0.9rem;
  color: var(--kh-primary-dark);
  font-size: 1.02rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.post-sidebar__card p {
  color: var(--kh-muted);
  font-size: 0.96rem;
  line-height: 1.65;
}

.post-sidebar__card p + p {
  margin-top: 0.75rem;
}

.post-sidebar__card .button {
  margin-top: 1rem;
  min-height: 44px;
  padding: 0.72rem 1rem;
  font-size: 0.9rem;
}

.post-sidebar__tags {
  margin-top: 0;
}

.itd-home {
  background: var(--kh-background);
}

.itd-hero {
  display: flex;
  align-items: flex-end;
  min-height: min(calc(100vh - 56px), 820px);
  padding: 7rem 0 5rem;
  background:
    linear-gradient(90deg, rgba(6, 13, 26, 0.92), rgba(6, 13, 26, 0.66)),
    linear-gradient(135deg, #111827, #1f2937);
  background-position: center;
  background-size: cover;
  color: #fff;
}

.itd-hero__inner {
  max-width: var(--kh-container);
}

.itd-eyebrow {
  color: var(--kh-primary);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.itd-hero .itd-eyebrow,
.itd-dilemma .itd-eyebrow,
.itd-podcast .itd-eyebrow {
  color: #bfdbfe;
}

.itd-hero h1 {
  max-width: 12ch;
  margin-top: 1rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3.4rem, 9vw, 8rem);
  line-height: 0.92;
  letter-spacing: -0.065em;
}

.itd-hero__summary {
  max-width: 48rem;
  margin-top: 1.8rem;
  color: #dbeafe;
  font-size: clamp(1.1rem, 2vw, 1.38rem);
  line-height: 1.55;
}

.itd-editor-content {
  background: var(--kh-surface);
}

.itd-editor-content .entry-content {
  padding: 1.875rem 0;
}

.itd-editor-content .entry-content > :where(:not(.alignfull)) {
  max-width: var(--kh-container);
  margin-right: auto;
  margin-left: auto;
  padding-right: 1.25rem;
  padding-left: 1.25rem;
}

.itd-editor-content .entry-content > .alignwide {
  max-width: var(--kh-container);
}

.itd-editor-content .entry-content > .alignfull {
  max-width: none;
}

.itd-hero__actions,
.itd-section-action {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2rem;
}

.itd-trust-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 2rem;
}

.itd-trust-strip span {
  padding: 0.45rem 0.75rem;
  border: 1px solid rgba(191, 219, 254, 0.22);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #dbeafe;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.78rem;
}

.itd-button--light {
  background: #fff;
  color: #101827;
}

.itd-button--light:hover,
.itd-button--light:focus-visible {
  background: #dbeafe;
  color: #101827;
}

/* === Home Book Promo === */

.itd-book-promo {
  background: #0a1120;
  color: #fff;
  padding: 5rem 0;
  overflow: hidden;
}

.itd-book-promo__inner {
  display: grid;
  grid-template-columns: 1fr minmax(280px, 0.7fr);
  align-items: center;
  gap: 3.5rem;
}

.itd-book-promo__eyebrow {
  color: #ff8181;
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin: 0 0 0.8rem;
  font-family: inherit;
}

.itd-book-promo__heading {
  margin: 0 0 1.2rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.03em;
}

.itd-book-promo__accent {
  display: block;
  color: #c30101;
}

.itd-book-promo__body {
  max-width: 38rem;
  margin: 0 0 2rem;
  color: #aab4c8;
  font-size: 1rem;
  line-height: 1.7;
}

.itd-book-promo__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.itdb-btn--outline-dark {
  border: 2px solid rgba(255, 255, 255, 0.3);
  color: #fff;
  background: transparent;
  padding: 0.7rem 1.5rem;
  border-radius: 0.35rem;
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
  transition: border-color 0.18s, background 0.18s;
}

.itdb-btn--outline-dark:hover {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
}

/* Homepage banner linking to the Cybersecurity Starting Point quiz. */
.itd-quiz-promo {
  display: block;
  width: 85%;
  max-width: var(--kh-container);
  margin: 3rem auto;
  border-radius: var(--kh-radius);
  overflow: hidden;
  box-shadow: var(--kh-shadow);
  transition: transform 200ms ease, box-shadow 200ms ease;
}

.itd-quiz-promo:hover,
.itd-quiz-promo:focus-visible {
  transform: translateY(-4px);
  box-shadow: 0 24px 48px rgba(15, 23, 42, 0.12);
}

.itd-quiz-promo img {
  display: block;
  width: 100%;
  height: auto;
}

.itd-book-promo__media {
  display: flex;
  align-items: center;
  justify-content: center;
}

.itd-book-promo__img {
  width: 100%;
  max-width: 420px;
  height: auto;
  display: block;
  filter: drop-shadow(0 24px 48px rgba(0, 0, 0, 0.5));
}

/* === Home Page Sections === */

.itd-section {
  padding: 6rem 0;
}

.itd-section--white {
  background: #fff;
}

.itd-section--muted {
  border-top: 1px solid var(--kh-border);
  background: var(--kh-surface-alt);
}

.itd-section-head {
  max-width: 58rem;
  margin-bottom: 2.4rem;
}

.itd-section-head h2,
.itd-cred h2,
.itd-dilemma h2,
.itd-case h2,
.itd-podcast h2,
.itd-final h2 {
  margin-top: 0.8rem;
  font-size: clamp(2.2rem, 5vw, 4.4rem);
  line-height: 0.98;
}

.itd-cred {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.78fr);
  gap: 4rem;
  align-items: start;
}

.itd-cred__copy p,
.itd-case p,
.itd-podcast p,
.itd-final p {
  color: var(--kh-muted);
  font-size: 1.08rem;
  line-height: 1.75;
}

.itd-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
  margin-top: 1.8rem;
}

.itd-cred__image {
  margin-top: 1.6rem;
  overflow: hidden;
  border: 1px solid var(--kh-border);
  border-radius: var(--kh-radius);
  background: var(--kh-surface-alt);
  box-shadow: var(--kh-shadow);
}

.itd-cred__image img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.itd-stats div {
  padding: 1rem;
  border: 1px solid var(--kh-border);
  border-radius: 0.8rem;
  background: var(--kh-surface);
}

.itd-stats strong,
.itd-stats span {
  display: block;
}

.itd-stats strong {
  color: var(--kh-primary-dark);
  font-size: 1.1rem;
  line-height: 1.1;
}

.itd-stats span {
  margin-top: 0.35rem;
  color: var(--kh-muted);
  font-size: 0.86rem;
  font-weight: 700;
  line-height: 1.3;
}

.itd-dilemma,
.itd-podcast {
  background: #101827;
  color: #fff;
}

.itd-dilemma__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(260px, 0.72fr) minmax(260px, 0.62fr);
  gap: 2rem;
  align-items: center;
}

.itd-dilemma__image {
  overflow: hidden;
  border: 1px solid rgba(191, 219, 254, 0.18);
  border-radius: var(--kh-radius);
  background: rgba(255, 255, 255, 0.06);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.24);
}

.itd-dilemma__image img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.itd-dilemma p,
.itd-podcast p {
  max-width: 44rem;
  margin-top: 1.2rem;
  color: #d1d5db;
  font-size: 1.08rem;
}

.itd-checks {
  display: grid;
  gap: 0.75rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.itd-checks li {
  padding: 1rem 1.1rem;
  border: 1px solid rgba(191, 219, 254, 0.2);
  border-radius: 0.85rem;
  background: rgba(255, 255, 255, 0.06);
  color: #f8fafc;
  font-weight: 800;
}

.itd-checks li::before {
  content: "✓";
  margin-right: 0.6rem;
  color: #bfdbfe;
}

.itd-featured-grid,
.itd-service-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.25rem;
}

.itd-featured-grid--large {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.itd-feature-card,
.itd-service {
  overflow: hidden;
  border: 1px solid var(--kh-border);
  border-radius: var(--kh-radius);
  background: var(--kh-surface);
  box-shadow: var(--kh-shadow);
}

.itd-feature-card__media {
  display: grid;
  place-items: center;
  min-height: 190px;
  background: linear-gradient(135deg, #111827, #334155);
  color: #bfdbfe;
  font-weight: 800;
}

.itd-feature-card__media img {
  width: 100%;
  height: 100%;
  min-height: 190px;
  object-fit: cover;
}

.itd-feature-card__body,
.itd-service {
  position: relative;
  padding: 1.35rem;
}

.itd-service__icon {
  width: 42px;
  height: 42px;
  margin-bottom: 1rem;
  border: 1px solid var(--kh-border);
  border-radius: 0.8rem;
  background:
    linear-gradient(135deg, rgba(11, 111, 203, 0.18), transparent),
    var(--kh-surface-alt);
}

.itd-service:nth-child(1) .itd-service__icon::before,
.itd-service:nth-child(2) .itd-service__icon::before,
.itd-service:nth-child(3) .itd-service__icon::before,
.itd-service:nth-child(4) .itd-service__icon::before {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  color: var(--kh-primary-dark);
  font-weight: 900;
}

.itd-service:nth-child(1) .itd-service__icon::before {
  content: "▦";
}

.itd-service:nth-child(2) .itd-service__icon::before {
  content: "◇";
}

.itd-service:nth-child(3) .itd-service__icon::before {
  content: "⌁";
}

.itd-service:nth-child(4) .itd-service__icon::before {
  content: "⌘";
}

.itd-feature-card h3,
.itd-service h3 {
  font-size: clamp(1.35rem, 2vw, 1.8rem);
  line-height: 1.05;
}

.itd-feature-card p,
.itd-service p {
  margin-top: 0.85rem;
  color: var(--kh-muted);
  font-size: 0.98rem;
  line-height: 1.6;
}

.itd-feature-card .button-link {
  margin-top: 1rem;
}

.itd-case {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(320px, 1fr);
  gap: 4rem;
  align-items: start;
}

.itd-case__panel {
  display: grid;
  gap: 0.8rem;
}

.itd-before-after {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
}

.itd-before-after figure {
  position: relative;
  overflow: hidden;
  margin: 0;
  border-radius: 0.85rem;
  background: #111827;
}

.itd-before-after img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.itd-before-after figcaption {
  position: absolute;
  left: 0.75rem;
  bottom: 0.75rem;
  padding: 0.28rem 0.55rem;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.78);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 800;
}

.itd-case__panel div {
  padding: 1.1rem 1.2rem;
  border: 1px solid var(--kh-border);
  border-radius: 0.85rem;
  background: #fff;
}

.itd-case__panel span {
  display: block;
  color: var(--kh-primary-dark);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.itd-case__panel p {
  margin-top: 0.35rem;
  color: var(--kh-foreground);
  font-weight: 700;
}

.itd-category-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0.9rem;
}

.itd-category {
  display: grid;
  min-height: 96px;
  place-items: center;
  padding: 1rem;
  border: 1px solid var(--kh-border);
  border-radius: var(--kh-radius);
  background: #fff;
  color: var(--kh-foreground);
  font-weight: 800;
  text-align: center;
  background-position: center;
  background-size: cover;
}

.itd-category span {
  position: relative;
  z-index: 1;
  padding: 0.3rem 0.55rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.86);
}

.itd-category[style] {
  min-height: 150px;
  color: #fff;
}

.itd-category[style] span {
  background: rgba(15, 23, 42, 0.72);
}

.itd-podcast__inner,
.itd-final .container {
  max-width: 780px;
}

.itd-stats-band {
  border-top: 1px solid var(--kh-border);
  background: #fff;
}

.itd-metric-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.itd-metric-grid div {
  padding: 1.4rem;
  border: 1px solid var(--kh-border);
  border-radius: var(--kh-radius);
  background: var(--kh-surface-alt);
}

.itd-metric-grid strong,
.itd-metric-grid span {
  display: block;
}

.itd-metric-grid strong {
  color: var(--kh-primary-dark);
  font-size: clamp(1.7rem, 3vw, 2.5rem);
  line-height: 1;
}

.itd-metric-grid span {
  margin-top: 0.55rem;
  color: var(--kh-muted);
  font-weight: 800;
}

.itd-field {
  background: var(--kh-surface-alt);
}

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

.itd-field-grid figure {
  overflow: hidden;
  margin: 0;
  border: 1px solid var(--kh-border);
  border-radius: var(--kh-radius);
  background: #fff;
  box-shadow: var(--kh-shadow);
}

.itd-field-grid img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.itd-podcast__layout {
  display: grid;
  grid-template-columns: minmax(240px, 360px) minmax(0, 1fr);
  gap: 3rem;
  align-items: center;
}

.itd-podcast__art {
  overflow: hidden;
  border: 1px solid rgba(191, 219, 254, 0.2);
  border-radius: var(--kh-radius);
  background: rgba(255, 255, 255, 0.06);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.24);
}

.itd-podcast__art img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}

.itd-episode-list {
  margin: 1.4rem 0 0;
  padding: 0;
  list-style: none;
}

.itd-episode-list li {
  padding: 0.7rem 0;
  border-top: 1px solid rgba(191, 219, 254, 0.16);
  color: #f8fafc;
  font-weight: 800;
}

.itd-final {
  background: #fff;
  text-align: center;
}

.itd-final .container {
  margin: 0 auto;
}

.itd-final p {
  margin: 1.1rem auto 0;
}

.itd-final .button {
  margin-top: 2rem;
}

.site-footer {
  border-top: 1px solid var(--kh-border);
  background: var(--kh-background);
}

.site-footer__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 2rem 0 1.25rem;
}

.site-footer__brandline {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  flex-wrap: wrap;
}

.site-footer__copyright {
  color: var(--kh-muted);
  font-size: 0.95rem;
}

.site-footer__socials {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.site-footer__signature {
  display: flex;
  justify-content: center;
  gap: 0.7rem 1.25rem;
  flex-wrap: wrap;
  padding: 0.35rem 0 2rem;
  color: var(--kh-muted);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.78rem;
}

.site-footer__signature strong {
  color: var(--kh-primary);
  font-weight: 500;
}

.site-footer__signature a {
  color: var(--kh-muted);
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.site-footer__signature a:hover,
.site-footer__signature a:focus-visible {
  color: var(--kh-primary);
}

.search-form {
  display: flex;
  gap: 0.9rem;
}

.pagination,
.nav-links {
  margin-top: 2rem;
}

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

.nav-links .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.75rem;
  min-height: 2.75rem;
  padding: 0.55rem 0.9rem;
  border: 1px solid var(--kh-border);
  border-radius: 999px;
  background: var(--kh-surface);
}

.nav-links .current {
  background: var(--kh-primary);
  border-color: var(--kh-primary);
  color: #f0ffff;
}

.wp-caption {
  max-width: 100%;
}

.wp-caption-text {
  margin-top: 0.6rem;
  color: var(--kh-muted);
  font-size: 0.92rem;
  text-align: center;
}

.alignleft {
  float: left;
  margin: 0.45rem 1.4rem 1rem 0;
}

.alignright {
  float: right;
  margin: 0.45rem 0 1rem 1.4rem;
}

.aligncenter {
  display: block;
  margin-right: auto;
  margin-left: auto;
}

@media (max-width: 1080px) {
  .itd-book-promo__inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .itd-book-promo__body {
    margin-left: auto;
    margin-right: auto;
  }

  .itd-book-promo__actions {
    justify-content: center;
  }

  .itd-book-promo__media {
    order: -1;
    min-height: 260px;
  }
}

@media (max-width: 1080px) {
  .indexed-layout,
  .split-feature,
  .help-desk__layout,
  .post-template-layout,
  .itd-cred,
  .itd-dilemma__grid,
  .itd-case,
  .itd-podcast__layout,
  .home-hero__grid {
    grid-template-columns: 1fr;
  }

  .home-hero__content {
    padding-left: 0;
    display: block;
  }

  .home-hero__title {
    max-width: 10ch;
    padding-left: 0;
    font-size: clamp(2.2rem, 8.2vw, 4.2rem);
  }

  .home-hero__summary {
    max-width: 34rem;
    font-size: 1rem;
  }

  .home-hero__vertical {
    display: none;
  }

  .home-hero__media {
    display: none;
  }

  .home-hero__image-frame {
    height: auto;
    aspect-ratio: 4 / 5;
  }

  .help-desk__sidebar-card,
  .post-sidebar {
    position: static;
  }

  .post-article__title {
    max-width: 13ch;
  }

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

  .itd-featured-grid,
  .itd-service-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .itd-category-grid,
  .itd-metric-grid,
  .itd-field-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 920px) {
  .site-header__inner {
    grid-template-columns: auto auto 1fr auto;
    gap: 0.85rem;
  }

  .menu-toggle {
    display: inline-grid;
    place-items: center;
  }

  .site-navigation {
    display: none;
    grid-column: 1 / -1;
    width: 100%;
  }

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

  .primary-menu {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem 0 1.35rem;
  }

  .primary-menu li {
    width: 100%;
  }

  .primary-menu .menu-item-has-children {
    flex-wrap: wrap;
  }

  .primary-menu .menu-item-has-children > a::after {
    display: none;
  }

  .primary-menu .sub-menu {
    position: static;
    display: none;
    width: 100%;
    margin: 0.75rem 0 0;
    padding: 0 0 0 1rem;
    border: none;
    border-left: 2px solid var(--kh-border);
    border-radius: 0;
    box-shadow: none;
    background: transparent;
  }

  .primary-menu .menu-item-has-children:hover > .sub-menu,
  .primary-menu .menu-item-has-children:focus-within > .sub-menu {
    display: none;
  }

  .primary-menu .menu-item-has-children.submenu-open > .sub-menu {
    display: block;
  }

  .submenu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    margin-left: auto;
    padding: 0;
    border: 1px solid var(--kh-border);
    border-radius: 0.55rem;
    background: var(--kh-surface);
  }

  .submenu-toggle__arrow {
    width: 8px;
    height: 8px;
    border-right: 2px solid var(--kh-foreground);
    border-bottom: 2px solid var(--kh-foreground);
    transform: rotate(45deg);
    transition: transform 0.2s ease;
  }

  .menu-item-has-children.submenu-open .submenu-toggle__arrow {
    transform: rotate(-135deg);
  }

  .site-header__actions {
    gap: 0.5rem;
  }

  .utility-menu a {
    min-height: 38px;
    padding: 0.6rem 0.8rem;
    font-size: 0.84rem;
  }

  .site-header__action-link {
    min-height: 38px;
    padding: 0.6rem 0.8rem;
    font-size: 0.84rem;
  }

  .workshop-grid,
  .project-grid,
  .entry-grid,
  .itd-featured-grid,
  .itd-service-grid,
  .itd-metric-grid,
  .itd-field-grid {
    grid-template-columns: 1fr;
  }

  .page-hero,
  .indexed-section {
    padding: 2.5rem 0;
  }

  .page-hero {
    padding: 2.5rem 0;
  }

  .post-template-layout {
    padding: 3rem 0 4.5rem;
  }

  .itd-hero,
  .itd-section {
    padding: 4.5rem 0;
  }

  .itd-hero h1 {
    max-width: 100%;
  }

  .itd-stats,
  .itd-category-grid,
  .itd-before-after {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .home-hero__grid {
    min-height: auto;
    padding: 3.25rem 0 4rem;
  }

  .home-hero__title {
    max-width: 9ch;
    font-size: clamp(1.95rem, 10.4vw, 3.15rem);
  }

  .home-hero__summary {
    margin-top: 1.35rem;
    font-size: 0.98rem;
    line-height: 1.65;
  }

  .site-header__actions {
    gap: 0.4rem;
  }

  .post-article__meta-main {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.45rem;
  }

  .utility-menu {
    gap: 0.4rem;
  }

  .utility-menu a {
    min-height: 44px;
    padding: 0.6rem 0.75rem;
    font-size: 0.875rem;
  }

  .site-header__action-link {
    min-height: 44px;
    padding: 0.6rem 0.75rem;
    font-size: 0.875rem;
  }

  .site-header__action-link svg {
    display: none;
  }
  .home-hero__actions {
    align-items: stretch;
    flex-direction: column;
  }

  .home-hero__actions .button,
  .home-hero__actions .button--outline {
    width: 100%;
  }

  .indexed-layout {
    gap: 2rem;
  }

  .indexed-layout__pin {
    position: static;
  }

  .contact-form__grid,
  .podcast-card {
    grid-template-columns: 1fr;
  }

  .podcast-card__play {
    width: 88px;
    height: 88px;
  }

  .site-footer__top,
  .site-footer__brandline {
    flex-direction: column;
    align-items: flex-start;
  }

  .site-footer__signature {
    justify-content: flex-start;
  }

  .search-form {
    flex-direction: column;
  }

  .post-article__title {
    max-width: 100%;
    font-size: clamp(2.35rem, 12vw, 3.5rem);
  }

  .post-article__feature--generated {
    min-height: 300px;
  }

  .post-article__feature--generated::before {
    inset: 1.25rem;
  }

  .post-article__feature-card {
    right: 1.25rem;
    bottom: 1.25rem;
    max-width: calc(100% - 2.5rem);
  }

  .post-article__feature > .post-article__feature-card {
    right: 1.25rem;
    bottom: 1.25rem;
  }

  .post-article__content {
    font-size: 1.04rem;
  }

  .kh-newsletter--inline {
    margin: 2rem 0;
    padding: 1.5rem 1rem;
  }

  .post-article__content p:first-child {
    font-size: 1.14rem;
  }

  .itd-hero {
    min-height: auto;
  }

  .itd-hero__actions,
  .itd-section-action {
    align-items: stretch;
    flex-direction: column;
  }

  .itd-hero__actions .button,
  .itd-section-action .button,
  .itd-final .button {
    width: 100%;
  }
}

/* === The IT Dilemma: Book Landing Page === */

.itdb {
  --itdb-red: #c30101;
  --itdb-red-dark: #8f0101;
  --itdb-navy: #0a1120;
  background: var(--kh-background);
}

.itdb-announce {
  background: var(--itdb-red);
  color: #fff;
}

.itdb-announce__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  padding: 0.65rem 0;
}

.itdb-announce__text {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.itdb-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 48px;
  padding: 0.85rem 1.4rem;
  border: 1px solid transparent;
  border-radius: 0.6rem;
  font-size: 0.98rem;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
  white-space: nowrap;
}

.itdb-btn--primary {
  background: var(--itdb-red);
  color: #fff;
}

.itdb-btn--primary:hover,
.itdb-btn--primary:focus-visible {
  background: var(--itdb-red-dark);
  color: #fff;
  transform: translateY(-1px);
}

.itdb-btn--outline-light {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.55);
  color: #fff;
}

.itdb-btn--outline-light:hover,
.itdb-btn--outline-light:focus-visible {
  background: rgba(255, 255, 255, 0.12);
  border-color: #fff;
  color: #fff;
}

.itdb-btn--dark {
  background: var(--itdb-navy);
  border-color: var(--itdb-navy);
  color: #fff;
}

.itdb-btn--dark:hover,
.itdb-btn--dark:focus-visible {
  background: #000;
  color: #fff;
}

.itdb-btn--sm {
  min-height: 34px;
  padding: 0.45rem 0.95rem;
  font-size: 0.82rem;
  border-radius: 0.45rem;
}

.itdb-hero {
  position: relative;
  overflow: hidden;
  padding: 5rem 0 4.5rem;
  background: var(--itdb-navy);
  color: #fff;
}

.itdb-hero__grid {
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
}

.itdb-hero__content {
  position: relative;
  z-index: 2;
  max-width: 54%;
}

.itdb-ribbon {
  --amz-orange: #ff9900;
  --amz-orange-dark: #e07b00;
  display: inline-flex;
  align-items: center;
  background: linear-gradient(135deg, #ffc94d 0%, var(--amz-orange) 55%, var(--amz-orange-dark) 100%);
  color: #14213d;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  white-space: nowrap;
  clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 50%, calc(100% - 14px) 100%, 0 100%);
  box-shadow: 0 6px 16px rgba(224, 123, 0, 0.35);
}

.itdb-ribbon--eyebrow {
  font-size: 1.15rem;
  padding: 0.65rem 2rem 0.65rem 1.1rem;
}

.itdb-ribbon--btn {
  min-height: 48px;
  padding: 0.85rem 2rem 0.85rem 1.4rem;
  font-size: 0.98rem;
  line-height: 1;
}

.itdb-hero h1 {
  margin-top: 0.9rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.5rem, 5.2vw, 4.3rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.itdb-hero__accent {
  display: block;
  margin-top: 0.2rem;
  color: var(--itdb-red);
}

.itdb-hero__subtitle {
  margin-top: 1.4rem;
  color: #dbe2f0;
  font-size: 1.12rem;
  font-weight: 600;
  line-height: 1.5;
}

.itdb-hero__summary {
  max-width: 38rem;
  margin-top: 1rem;
  color: #aab4c8;
  font-size: 1rem;
  line-height: 1.7;
}

.itdb-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2rem;
}

.itdb-trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1.4rem 1.8rem;
  margin: 2rem 0 0;
  padding: 0;
  list-style: none;
}

.itdb-trust-row li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #cdd5e3;
  font-size: 0.84rem;
  font-weight: 700;
}

.itdb-trust-row svg {
  width: 18px;
  height: 18px;
  color: var(--itdb-red);
  flex-shrink: 0;
}

.itdb-hero__bg {
  position: absolute;
  top: 0;
  right: max(1rem, calc((100% - 1280px) / 2));
  width: 62%;
  height: 100%;
  pointer-events: none;
}

.itdb-hero__bg::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(to right, var(--itdb-navy) 0%, rgba(10, 20, 48, 0) 42%);
}

.itdb-hero__bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: left center;
  display: block;
  opacity: 0.92;
}

.itdb-cover {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 230px;
  aspect-ratio: 0.66;
  padding: 1.6rem 1.2rem;
  overflow: hidden;
  border-radius: 0.4rem;
  text-align: center;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.45);
}

.itdb-cover--sm {
  width: 120px;
  padding: 0.9rem 0.7rem;
}

.itdb-cover--main {
  background: #fff;
  border: 1px solid #e3e3e3;
  color: #111;
}

.itdb-cover--workbook {
  background: #0d0d0d;
  border: 1px solid #222;
  color: #fff;
}

.itdb-hero__media .itdb-cover--workbook {
  position: absolute;
  top: 6%;
  right: 0;
  z-index: 1;
  transform: rotate(4deg);
}

.itdb-hero__media .itdb-cover--main {
  position: relative;
  z-index: 2;
  transform: rotate(-3deg) translateX(-18px);
}

.itdb-cover__kicker {
  color: var(--itdb-red);
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.itdb-cover__title {
  margin-top: 0.35rem;
  font-size: 1.6rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.02em;
}

.itdb-cover--sm .itdb-cover__title {
  margin-top: 0.15rem;
  font-size: 0.95rem;
}

.itdb-cover__title--accent {
  color: var(--itdb-red);
}

.itdb-cover__title--light {
  color: #fff;
}

.itdb-cover__title--sm {
  font-size: 1.05rem;
}

.itdb-cover--sm .itdb-cover__title--sm {
  font-size: 0.7rem;
}

.itdb-cover__edition {
  display: inline-block;
  margin-top: 0.5rem;
  padding: 0.2rem 0.55rem;
  border-radius: 0.2rem;
  background: var(--itdb-red);
  color: #fff;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.itdb-cover--sm .itdb-cover__edition {
  margin-top: 0.25rem;
  padding: 0.12rem 0.4rem;
  font-size: 0.5rem;
}

.itdb-cover__sub {
  margin-top: 0.9rem;
  color: #555;
  font-size: 0.62rem;
  line-height: 1.4;
}

.itdb-cover--sm .itdb-cover__sub {
  display: none;
}

.itdb-cover__icon-svg {
  width: 54px;
  height: 54px;
  margin-top: auto;
  color: var(--itdb-red);
}

.itdb-cover--sm .itdb-cover__icon-svg {
  width: 30px;
  height: 30px;
}

.itdb-cover__icon-svg--light {
  color: #666;
}

.itdb-cover__author {
  margin-top: auto;
  color: #333;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.itdb-cover--sm .itdb-cover__author {
  display: none;
}

.itdb-cover--photo {
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.itdb-cover--photo img {
  width: 100%;
  height: 100%;
  border-radius: 0.4rem;
  object-fit: cover;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.45);
}

.itdb-who-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.itdb-who-card {
  padding: 1.8rem 1.2rem;
  border: 1px solid var(--kh-border);
  border-radius: var(--kh-radius);
  background: #fff;
  text-align: center;
}

.itdb-who-card__icon {
  width: 40px;
  height: 40px;
  margin: 0 auto 1rem;
  color: var(--itdb-red);
}

.itdb-who-card h3 {
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.itdb-who-card p {
  margin-top: 0.6rem;
  color: var(--kh-muted);
  font-size: 0.9rem;
  line-height: 1.55;
}

.itdb-inside {
  padding: 5rem 0;
  background: var(--itdb-navy);
  color: #fff;
}

.itdb-inside__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
}

.itdb-inside__col h2 {
  margin-bottom: 1.6rem;
  font-size: clamp(1.9rem, 3vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.itdb-checks {
  display: grid;
  gap: 1.6rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.itdb-checks li {
  position: relative;
  padding-left: 2.3rem;
  color: #d7dce6;
  font-size: 1.3rem;
  line-height: 1.7;
}

.itdb-checks li::before {
  content: "\2713";
  position: absolute;
  top: 0.05em;
  left: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 50%;
  background: rgba(195, 1, 1, 0.18);
  color: var(--itdb-red);
  font-size: 0.9rem;
  font-weight: 800;
}

.itdb-resource {
  display: flex;
  align-items: flex-start;
  gap: 1.1rem;
  margin-bottom: 1.1rem;
  padding: 1.3rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--kh-radius);
  background: rgba(255, 255, 255, 0.04);
}

.itdb-resource .itdb-cover {
  width: 150px;
  height: 220px;
  aspect-ratio: auto;
  flex-shrink: 0;
}

.itdb-resource .itdb-cover--photo img {
  object-fit: contain;
}

.itdb-resource__label {
  margin-bottom: 0.4rem;
  color: var(--itdb-red);
  font-weight: 800;
  font-size: 0.95rem;
}

.itdb-resource p {
  color: #c7cedb;
  font-size: 0.92rem;
  line-height: 1.55;
}

.itdb-resource__body .itdb-btn {
  margin-top: 0.9rem;
}

.itdb-inside__quote {
  grid-column: 1 / -1;
  max-width: 50rem;
  margin-top: 1rem;
  padding-top: 2.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  color: #e7eaf1;
  font-size: 1.2rem;
  font-style: italic;
  line-height: 1.5;
}

.itdb-domain-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 2.5rem;
}

.itdb-domain {
  padding: 1.3rem 1.1rem;
  border: 1px solid var(--kh-border);
  border-left: 4px solid var(--itdb-red);
  border-radius: 0.7rem;
  background: #fff;
  color: var(--kh-foreground);
  font-weight: 700;
  font-size: 0.95rem;
}

.itdb-stats-band {
  border-top: 1px solid var(--kh-border);
  background: var(--kh-surface-alt);
  padding: 4.5rem 0;
}

.itdb-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.2rem;
}

.itdb-stats > div {
  padding: 1.6rem;
  border: 1px solid var(--kh-border);
  border-radius: var(--kh-radius);
  background: #fff;
  text-align: center;
}

.itdb-stats strong {
  display: block;
  color: var(--itdb-red);
  font-size: 2.6rem;
  font-weight: 800;
  line-height: 1;
}

.itdb-stats__label {
  display: block;
  margin-top: 0.5rem;
  color: var(--kh-foreground);
  font-weight: 800;
  font-size: 0.95rem;
}

.itdb-stats p {
  margin-top: 0.5rem;
  color: var(--kh-muted);
  font-size: 0.85rem;
  line-height: 1.5;
}

.itdb-final {
  padding: 5rem 0 3.5rem;
  background: var(--itdb-navy);
  color: #fff;
}

.itdb-final__grid {
  display: grid;
  grid-template-columns: minmax(260px, 0.6fr) minmax(0, 1fr);
  align-items: center;
  gap: 3rem;
}

.itdb-final__media {
  display: flex;
  justify-content: center;
  gap: 1rem;
}

.itdb-final__media-img {
  width: 100%;
  max-width: 260px;
  height: auto;
  display: block;
}

.itdb-final h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.9rem, 3.4vw, 2.7rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.itdb-final__content p {
  max-width: 36rem;
  margin-top: 1.1rem;
  color: #c7cedb;
  font-size: 1.02rem;
  line-height: 1.6;
}

.itdb-feature-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem 2rem;
  margin: 3rem 0 0;
  padding-top: 2.2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  list-style: none;
}

.itdb-feature-row li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  min-width: 200px;
}

.itdb-feature-row svg {
  width: 22px;
  height: 22px;
  margin-top: 0.1rem;
  color: var(--itdb-red);
  flex-shrink: 0;
}

.itdb-feature-row strong {
  display: block;
  color: #fff;
  font-size: 0.92rem;
  font-weight: 800;
}

.itdb-feature-row span {
  display: block;
  margin-top: 0.15rem;
  color: #aab4c8;
  font-size: 0.82rem;
}

@media (max-width: 1080px) {
  .itdb-hero__grid,
  .itdb-inside__grid,
  .itdb-final__grid {
    grid-template-columns: 1fr;
  }

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

  .itdb-domain-grid,
  .itdb-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .itdb-hero__bg {
    display: none;
  }

  .itdb-hero__content {
    max-width: 100%;
  }

  .itdb-final__media {
    order: -1;
  }
}

@media (max-width: 720px) {
  .itdb-announce__inner {
    flex-direction: column;
    gap: 0.5rem;
    padding: 0.85rem 0;
    text-align: center;
  }

  .itdb-hero__actions .itdb-btn,
  .itdb-final__content .itdb-hero__actions .itdb-btn {
    width: 100%;
  }

  .itdb-hero__actions {
    flex-direction: column;
    align-items: stretch;
  }

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

  .itdb-domain-grid,
  .itdb-stats {
    grid-template-columns: 1fr;
  }

  .itdb-cover--lg {
    width: 170px;
  }

  .itdb-feature-row {
    justify-content: flex-start;
  }
}

/* === 404 Page === */

.kh-404 {
  display: flex;
  align-items: center;
  min-height: calc(100vh - 56px);
  padding: 5rem 0;
  background:
    linear-gradient(90deg, rgba(6, 13, 26, 0.92), rgba(6, 13, 26, 0.66)),
    linear-gradient(135deg, #111827, #1f2937);
  color: #fff;
  text-align: center;
}

.kh-404__inner {
  max-width: 720px;
  margin: 0 auto;
}

.kh-404__tag {
  color: #bfdbfe;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.kh-404__code {
  margin-top: 0.6rem;
  font-size: clamp(5.5rem, 16vw, 9rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.03em;
  color: #fff;
  text-shadow: 0.06em 0 0 rgba(195, 1, 1, 0.7), -0.06em 0 0 rgba(11, 111, 203, 0.6);
}

.kh-404__headline {
  margin-top: 0.75rem;
  font-size: clamp(1.2rem, 2.4vw, 1.6rem);
  font-weight: 700;
  color: #e2e8f0;
}

.kh-404__terminal {
  margin: 2.5rem auto 0;
  max-width: 600px;
  border-radius: 0.6rem;
  background: #0b1220;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.45);
  overflow: hidden;
  text-align: left;
}

.kh-404__terminal-bar {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.65rem 0.9rem;
  background: rgba(255, 255, 255, 0.04);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.kh-404__terminal-bar span {
  width: 0.65rem;
  height: 0.65rem;
  border-radius: 50%;
  background: #ff5f56;
}

.kh-404__terminal-bar span:nth-child(2) {
  background: #ffbd2e;
}

.kh-404__terminal-bar span:nth-child(3) {
  background: #27c93f;
}

.kh-404__terminal-title {
  margin-left: 0.6rem;
  color: #94a3b8;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.75rem;
}

.kh-404__terminal-body {
  margin: 0;
  padding: 1.2rem 1.3rem 1.4rem;
  overflow-x: auto;
  color: #9ae6b4;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.85rem;
  line-height: 1.7;
  white-space: pre-wrap;
}

.kh-404__fail {
  color: #ff6b6b;
  font-weight: 700;
}

.kh-404__copy {
  margin-top: 2rem;
  color: #c7cedb;
  font-size: 1.05rem;
  line-height: 1.6;
}

.kh-404__actions {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 1.75rem;
  flex-wrap: wrap;
}

.kh-404 .button--outline {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.55);
  color: #fff;
}

.kh-404 .button--outline:hover,
.kh-404 .button--outline:focus-visible {
  background: rgba(255, 255, 255, 0.12);
  border-color: #fff;
  color: #fff;
}

.kh-404__search {
  max-width: 360px;
  margin: 2.25rem auto 0;
}

.kh-404__footer-joke {
  margin-top: 2.5rem;
  color: #64748b;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.78rem;
  letter-spacing: 0.02em;
}

@media (max-width: 540px) {
  .kh-404__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .kh-404__terminal-body {
    font-size: 0.78rem;
  }
}

/* === Articles Page === */

.kh-articles__intro-band {
  background: var(--kh-surface-alt);
  border-bottom: 1px solid var(--kh-border);
}

.kh-articles__intro-inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 1.75rem 0;
}

.kh-articles__intro-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  border-radius: 999px;
  background: var(--kh-primary-soft);
  color: var(--kh-primary);
}

.kh-articles__intro-icon svg {
  width: 26px;
  height: 26px;
}

.kh-articles__intro-band h3 {
  font-size: 1.3rem;
}

.kh-articles__intro-band p {
  margin-top: 0.3rem;
  max-width: 52rem;
  color: var(--kh-muted);
  font-size: 0.98rem;
  line-height: 1.6;
}

.kh-articles {
  padding: 4rem 0 5rem;
}

.kh-featured {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 2.5rem;
  align-items: center;
  margin-bottom: 4rem;
  padding: 2rem;
  border: 1px solid var(--kh-border);
  border-radius: var(--kh-radius);
  background: var(--kh-surface);
  box-shadow: var(--kh-shadow);
  position: relative;
}

.kh-featured__link-overlay,
.kh-article-card__link-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  text-indent: -9999px;
  overflow: hidden;
}

.kh-featured:focus-within,
.kh-article-card:focus-within {
  outline: 2px solid var(--kh-primary);
  outline-offset: 2px;
}

.kh-featured__media {
  display: block;
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  border-radius: calc(var(--kh-radius) - 6px);
}

.kh-featured__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.kh-featured:hover .kh-featured__image {
  transform: scale(1.04);
}

.kh-featured__image--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #111827, #1f2937);
  color: rgba(255, 255, 255, 0.35);
}

.kh-featured__image--placeholder svg {
  width: 64px;
  height: 64px;
}

.kh-featured__eyebrow {
  color: var(--kh-primary);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.kh-featured__title {
  margin-top: 0.6rem;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
}

.kh-featured__date {
  margin-top: 0.5rem;
  color: var(--kh-muted);
  font-size: 0.92rem;
}

.kh-featured__excerpt {
  margin-top: 1.1rem;
  color: var(--kh-muted);
  font-size: 1.04rem;
  line-height: 1.7;
}

.kh-featured .button {
  margin-top: 1.5rem;
}

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

.kh-article-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--kh-border);
  border-radius: var(--kh-radius);
  background: var(--kh-surface);
  box-shadow: var(--kh-shadow);
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  position: relative;
}

.kh-article-card:hover {
  transform: translateY(-6px);
  border-color: var(--kh-primary);
  box-shadow: 0 24px 48px rgba(15, 23, 42, 0.14);
}

.kh-article-card__media {
  display: block;
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 10;
}

.kh-article-card__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.kh-article-card:hover .kh-article-card__image {
  transform: scale(1.07);
}

.kh-article-card__image--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #111827, #1f2937);
  color: rgba(255, 255, 255, 0.35);
}

.kh-article-card__image--placeholder svg {
  width: 40px;
  height: 40px;
}

.kh-article-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 1.4rem 1.5rem 1.6rem;
}

.kh-article-card__date {
  color: var(--kh-muted);
  font-size: 0.85rem;
}

.kh-article-card__title {
  margin-top: 0.4rem;
  font-size: 1.25rem;
  letter-spacing: -0.03em;
}

.kh-article-card__title a {
  color: inherit;
}

.kh-article-card__title a:hover {
  color: var(--kh-primary);
}

.kh-article-card__excerpt {
  margin-top: 0.75rem;
  overflow: hidden;
  color: var(--kh-muted);
  font-size: 0.94rem;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.kh-article-card__link {
  margin-top: auto;
  padding-top: 1.1rem;
}

.kh-article-card .tag-list,
.kh-featured .tag-list {
  margin-top: 0.75rem;
}

@media (max-width: 1080px) {
  .kh-articles__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  .kh-featured {
    grid-template-columns: minmax(0, 1fr);
  }

  .kh-featured__media {
    aspect-ratio: 16 / 10;
  }
}

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

  .kh-articles__intro-inner {
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
  }
}


/* =============================================================================
   Mobile Improvements
   ============================================================================= */

/* Smooth momentum scrolling on iOS for the threat-model table */
.ts-threat-model-table-wrap {
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x proximity;
}

/* At very narrow widths, collapse the threat-model table to stacked cards     */
/* so readers don't need to scroll a four-column table sideways on a phone.    */
@media (max-width: 600px) {
  .ts-threat-model-table,
  .ts-threat-model-table thead,
  .ts-threat-model-table tbody,
  .ts-threat-model-table tr,
  .ts-threat-model-table th,
  .ts-threat-model-table td {
    display: block;
    width: auto;
  }

  .ts-threat-model-table {
    min-width: 0;
  }

  .ts-threat-model-table thead {
    display: none;
  }

  .ts-threat-model-table tr {
    margin-bottom: 1.25rem;
    border: 1px solid var(--kh-border);
    border-radius: 0.75rem;
    overflow: hidden;
  }

  .ts-threat-model-table td {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--kh-border);
  }

  .ts-threat-model-table td:last-child {
    border-bottom: none;
  }

  .ts-threat-model-col,
  .ts-goal-col,
  .ts-dwell-time-col,
  .ts-modern-reality-col {
    width: auto;
  }
}

/* Slightly larger, more legible tags on mobile */
@media (max-width: 720px) {
  .tag {
    padding: 0.38rem 0.8rem;
    font-size: 0.82rem;
  }

  /* Tighten sidebar cards when stacked below article */
  .post-sidebar {
    gap: 1rem;
  }

  /* Post article feature image: natural height on phones */
  .post-article__feature img {
    max-height: none;
  }

  /* Author bio block: stack avatar above text on narrow screens */
  .post-article__author {
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 2.75rem;
  }

  .post-article__author-avatar {
    width: 48px;
    height: 48px;
  }

  /* Post kicker / category label: keep readable on phones */
  .post-article__kicker {
    font-size: 0.82rem;
  }
}

/* Extra refinements for very small phones (< 480px) */
@media (max-width: 480px) {
  /* Slightly tighter section spacing */
  .post-template-layout {
    padding: 2rem 0 3.5rem;
  }

  .page-hero,
  .indexed-section {
    padding: 1.75rem 0;
  }

  .page-hero {
    padding: 1.75rem 0;
  }

  .itd-hero,
  .itd-section {
    padding: 3rem 0;
  }

  /* Inline newsletter: tighter padding */
  .kh-newsletter--inline {
    padding: 1.25rem 0.9rem;
  }

  /* Sidebar cards: trim padding so they breathe without eating screen space */
  .post-sidebar__card {
    padding: 1.1rem;
  }

  /* Podcast play button: slightly smaller on tiny screens */
  .podcast-card__play {
    width: 72px;
    height: 72px;
  }

  /* Home hero actions: slightly reduce gap */
  .home-hero__actions {
    gap: 0.75rem;
  }

  /* Footer: compact vertical spacing */
  .site-footer__top {
    gap: 1.5rem;
  }

  /* itdb domain/stats grids: 2 columns on small phones instead of 1 */
  .itdb-domain-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
