/*
 Theme Name:   Spotlight Child
 Theme URI:    https://interiortales.com
 Description:  InteriorTales Design System
 Author:       Ahmet Akusta
 Template:     spotlight
 Version:      1.0.0
*/

@import url('../spotlight/style.css');

:root {
  /* Sitewide primary accent (parent theme default #0ADEA9 failed contrast
     with white button text, and clashed with the homepage's warm palette). */
  --cs-color-primary: #8b4f35;

  --it-color-bg: #f7f3ed;
  --it-color-surface: #fffdf9;
  --it-color-text: #2b2b29;
  --it-color-muted: #6d6861;
  --it-color-line: #d8d0c5;

  /* Brand accents */
  --it-color-accent: #8b4f35;
  --it-color-accent-hover: #70412e;
  --it-color-sage: #d8dfd2;

  /* Functional */
  --it-color-white: #ffffff;
  --it-color-success: #34633f;
  --it-color-error: #a12f2f;
  --it-color-focus: #8b4f35;

  /* Shadows */
  --it-shadow-soft: 0 10px 30px rgb(43 43 41 / 0.08);
  --it-shadow-card-hover: 0 16px 40px rgb(43 43 41 / 0.12);

  /* Fonts */
  --it-font-display: 'Merriweather', Georgia, 'Times New Roman', serif;
  --it-font-body: 'Inter', 'Open Sans', Arial, sans-serif;

  /* Weights */
  --it-weight-regular: 400;
  --it-weight-medium: 500;
  --it-weight-semibold: 600;
  --it-weight-bold: 700;

  /* Font sizes */
  --it-font-xs: 0.75rem;
  --it-font-sm: 0.875rem;
  --it-font-base: 1.0625rem;
  --it-font-lg: 1.25rem;
  --it-font-xl: 1.5rem;

  --it-font-h3: clamp(1.25rem, 2vw, 1.55rem);
  --it-font-h2: clamp(1.8rem, 3.5vw, 2.65rem);
  --it-font-h1: clamp(2.5rem, 6vw, 4.75rem);

  /* Line heights */
  --it-leading-tight: 1.06;
  --it-leading-heading: 1.2;
  --it-leading-body: 1.7;

  /* Letter spacing */
  --it-tracking-eyebrow: 0.12em;
  --it-tracking-normal: 0;

  /* Spacing */
  --it-space-0: 0;
  --it-space-1: 0.5rem;
  --it-space-2: 1rem;
  --it-space-3: 1.5rem;
  --it-space-4: 2rem;
  --it-space-5: 3rem;
  --it-space-6: 4.5rem;
  --it-space-7: 7rem;

  --it-section-space: clamp(4rem, 6vw, 6rem);
  --it-content-width: 45rem;
  --it-wide-width: 75rem;

  --it-radius-sm: 0.25rem;
  --it-radius-md: 0.625rem;
  --it-radius-pill: 999px;
}

/* ============================================================
   TYPOGRAPHY BASE STYLES
============================================================ */

body {
  color: var(--it-color-text);
  font-family: var(--it-font-body);
  font-size: var(--it-font-base);
  line-height: var(--it-leading-body);
}

h1, h2, h3, h4, h5, h6 {
  margin-block-start: 0;
  color: var(--it-color-text);
  font-family: var(--it-font-display);
  font-weight: var(--it-weight-bold);
  text-wrap: balance;
}

h1 {
  font-size: var(--it-font-h1);
  line-height: var(--it-leading-tight);
}

h2 {
  font-size: var(--it-font-h2);
  line-height: var(--it-leading-heading);
}

h3 {
  font-size: var(--it-font-h3);
  line-height: 1.3;
}

/* ============================================================
   UTILITY CLASSES
============================================================ */

.it-page {
  color: var(--it-color-text);
}

.it-container {
  inline-size: min(calc(100% - 2rem), var(--it-wide-width));
  margin-inline: auto;
}

.it-prose {
  max-inline-size: 68ch;
  margin-inline: auto;
}

.it-section {
  padding-block: var(--it-section-space);
}

/* Consecutive sections would otherwise stack a full section-gap on both
   sides (bottom padding of one + top padding of the next), doubling the
   visual gap between them. */
.it-section + .it-section {
  padding-block-start: 0;
}

.it-eyebrow {
  color: var(--it-color-accent);
  font-size: var(--it-font-xs);
  font-weight: var(--it-weight-bold);
  letter-spacing: var(--it-tracking-eyebrow);
  line-height: 1.4;
  text-transform: uppercase;
}

/* ============================================================
   BUTTONS & LINKS
============================================================ */

.it-button,
.wp-block-button__link {
  display: inline-flex;
  min-block-size: 2.75rem;
  padding: 0.75rem 1.25rem;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: var(--it-radius-sm);
  font-weight: var(--it-weight-semibold);
  line-height: 1.2;
  text-decoration: none;
}

.it-button--primary,
.wp-block-button__link.it-button--primary {
  color: var(--it-color-white) !important;
  background: var(--it-color-accent) !important;
}

.it-button--primary:hover,
.wp-block-button__link.it-button--primary:hover {
  background: var(--it-color-accent-hover) !important;
}

.it-button--secondary,
.wp-block-button__link.it-button--secondary {
  color: var(--it-color-text);
  border-color: var(--it-color-text);
  background: transparent;
}

.it-button--text,
.it-text-link,
.wp-block-button__link.it-button--text {
  color: var(--it-color-accent);
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

/* FOCUS STATES */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid var(--it-color-focus);
  outline-offset: 3px;
}

/* ============================================================
   RESPONSIVE GRIDS
============================================================ */

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

.it-cluster__layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 18.75rem;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
}

.it-cluster__sidebar {
  position: sticky;
  top: 2rem;
}

.it-cluster-section {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(2rem, 4vw, 4rem);
  align-items: center;
  margin-block-end: var(--it-space-7);
}

.it-cluster-section--reverse .it-cluster-section__media {
  grid-column: 1;
  grid-row: 1;
}

.it-cluster-section--reverse .it-cluster-section__copy {
  grid-column: 2;
  grid-row: 1;
}

/* ============================================================
   TABLET BREAKPOINT (max 1024px)
============================================================ */

@media (max-width: 64rem) {
  .it-hub-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .it-cluster__layout {
    grid-template-columns: 1fr;
  }

  .it-cluster__sidebar {
    position: static;
  }
}

/* ============================================================
   MOBILE BREAKPOINT (max 720px)
============================================================ */

@media (max-width: 45rem) {
  .it-hub-grid,
  .it-cluster-section {
    grid-template-columns: 1fr;
  }

  .it-cluster-section--reverse .it-cluster-section__copy,
  .it-cluster-section--reverse .it-cluster-section__media {
    grid-column: 1;
  }

  .it-cluster-section--reverse .it-cluster-section__copy {
    grid-row: 1;
  }

  .it-cluster-section--reverse .it-cluster-section__media {
    grid-row: 2;
  }
}

/* ============================================================
   REDUCED MOTION
============================================================ */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}

/* ============================================================
   FORCE OVERRIDE — Spotlight Customizer inline CSS loads AFTER
   this stylesheet, so plain rules lose ties. !important wins.
============================================================ */
h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6 {
  font-family: var(--it-font-display) !important;
  letter-spacing: normal !important;
}

.wp-block-button .wp-block-button__link:not(.has-background),
.wp-block-button__link.it-button--text,
.wp-block-button__link.it-button--secondary {
  background-color: transparent !important;
  color: var(--it-color-accent) !important;
  border-color: var(--it-color-accent) !important;
}

.wp-block-button .wp-block-button__link.it-button--primary,
.wp-block-button__link.it-button--primary {
  background-color: var(--it-color-accent) !important;
  color: #ffffff !important;
  border-color: var(--it-color-accent) !important;
}

/* ============================================================
   HOMEPAGE — hero media, hub cards, newsletter form
============================================================ */
.it-home-hero__inner {
  align-items: center;
}

.it-home-hero__media img {
  width: 100%;
  height: auto;
  border-radius: var(--it-radius-md);
  display: block;
}

.it-hub-card {
  display: flex;
  flex-direction: column;
}

.it-hub-card__media {
  margin: 0 0 var(--it-space-2);
  border-radius: var(--it-radius-md);
  overflow: hidden;
}

.it-hub-card__media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  height: auto;
  object-fit: cover;
  display: block;
}

.it-hub-card__title {
  margin-block-end: 0.25rem;
}

.it-hub-card__title a {
  color: inherit !important;
  text-decoration: none !important;
}

.it-hub-card__title a:hover {
  color: var(--it-color-accent) !important;
}

.it-hub-card__description {
  color: var(--it-color-muted);
  font-size: var(--it-font-sm);
  margin-block-end: 0;
}

.it-disabled-link {
  display: block;
  color: inherit;
}

.it-coming-soon {
  align-self: flex-start;
  margin-block: var(--it-space-1) 0;
  padding: 0.35rem 0.65rem;
  border-radius: var(--it-radius-pill);
  background: var(--it-color-sage);
  color: var(--it-color-text);
  font-size: var(--it-font-xs);
  font-weight: var(--it-weight-semibold);
}

.it-newsletter-form {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-block-start: var(--it-space-2);
  max-width: 32rem;
}

.it-newsletter-form input[type="email"] {
  flex: 1 1 16rem;
  padding: 0.75rem 1rem;
  border: 1px solid var(--it-color-line);
  border-radius: var(--it-radius-sm);
  font-family: var(--it-font-body);
  font-size: var(--it-font-base);
}

.it-newsletter-form button {
  border: none;
  cursor: pointer;
}

/* Latest articles: real grid layout + brand link colors */
.it-article-grid .wp-block-post-template {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2rem 1.5rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.it-article-grid .wp-block-post-template:has(> li:only-child) {
  grid-template-columns: minmax(0, 28rem);
}

.it-article-grid .wp-block-post-template:has(> li:nth-child(2):last-child) {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (max-width: 64rem) {
  .it-article-grid .wp-block-post-template {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 45rem) {
  .it-article-grid .wp-block-post-template {
    grid-template-columns: 1fr;
  }
}

.wp-block-post-title a,
.wp-block-post-title a:visited {
  color: var(--it-color-text) !important;
  text-decoration: none !important;
}

.wp-block-post-title a:hover {
  color: var(--it-color-accent) !important;
}

.wp-block-post-date time {
  color: var(--it-color-muted);
  font-size: var(--it-font-xs);
}

/* ============================================================
   SITE HEADER
============================================================ */
#masthead {
  border-bottom: 1px solid var(--it-color-line);
  background: var(--it-color-surface);
}

#masthead .navbar-wrap {
  background: transparent !important;
}

#masthead .navbar-container {
  inline-size: min(calc(100% - 2rem), var(--it-wide-width));
  margin-inline: auto;
  padding-block: 1.25rem;
}

#masthead .navbar-brand,
#masthead .site-title {
  font-family: var(--it-font-display) !important;
  font-size: 1.5rem !important;
  font-weight: var(--it-weight-bold) !important;
  color: var(--it-color-text) !important;
  text-decoration: none !important;
}

#masthead .navbar-nav {
  gap: 0.5rem 1.75rem;
  flex-wrap: nowrap;
}

#masthead .navbar-nav a {
  font-family: var(--it-font-body) !important;
  font-size: var(--it-font-sm) !important;
  font-weight: var(--it-weight-medium) !important;
  color: var(--it-color-text) !important;
  text-decoration: none !important;
}

#masthead .navbar-nav a:hover {
  color: var(--it-color-accent) !important;
}

/* ============================================================
   SITE FOOTER
============================================================ */
.it-site-footer {
  background: var(--it-color-text);
  color: var(--it-color-sage);
  padding-block: var(--it-space-6) var(--it-space-4);
}

/* Keep the footer at the viewport edge on short legal/empty pages. */
.site-inner {
  display: flex;
  min-height: 100vh;
  flex-direction: column;
}

.site-content {
  flex: 1 0 auto;
}

.it-site-footer__grid {
  display: grid;
  grid-template-columns: 1.3fr 0.9fr 0.8fr 1.1fr 0.8fr;
  gap: var(--it-space-5) var(--it-space-4);
  padding-block-end: var(--it-space-5);
}

.it-site-footer__brand .it-site-footer__logo {
  display: inline-block;
  font-family: var(--it-font-display);
  font-size: var(--it-font-xl);
  font-weight: var(--it-weight-bold);
  color: var(--it-color-white) !important;
  text-decoration: none !important;
  margin-block-end: 0.75rem;
}

.it-site-footer__brand p {
  color: var(--it-color-sage);
  font-size: var(--it-font-sm);
  max-width: 20rem;
}

.it-site-footer__brand .it-site-footer__signature {
  display: flex;
  gap: 0.55rem;
  align-items: center;
  margin-top: 1.35rem;
  padding-top: 1rem;
  border-top: 1px solid rgb(255 255 255 / 0.14);
  color: rgb(216 223 210 / 0.82);
  font-size: 0.72rem;
  font-weight: var(--it-weight-semibold);
  letter-spacing: 0.075em;
  text-transform: uppercase;
}

.it-site-footer__pinterest {
  display: inline-flex;
  min-height: 2.75rem;
  margin-top: 0.85rem;
  padding: 0.65rem 0.9rem;
  align-items: center;
  gap: 0.55rem;
  border: 1px solid rgb(255 255 255 / 0.2);
  border-radius: 999px;
  background: rgb(255 255 255 / 0.065);
  color: var(--it-color-white) !important;
  font-size: 0.875rem;
  font-weight: var(--it-weight-semibold);
  line-height: 1;
  text-decoration: none !important;
  transition: border-color 180ms ease, background-color 180ms ease,
    transform 180ms ease;
}

.it-site-footer__pinterest svg {
  flex: 0 0 auto;
  color: #e60023;
}

.it-site-footer__pinterest:hover,
.it-site-footer__pinterest:focus-visible {
  border-color: rgb(255 255 255 / 0.48);
  background: rgb(255 255 255 / 0.12);
  color: var(--it-color-white) !important;
  transform: translateY(-1px);
}

.it-site-footer__pinterest:focus-visible {
  outline: 3px solid #d8b8a8;
  outline-offset: 3px;
}

.it-site-footer__title {
  font-family: var(--it-font-body);
  font-size: var(--it-font-xs);
  font-weight: var(--it-weight-bold);
  letter-spacing: var(--it-tracking-eyebrow);
  text-transform: uppercase;
  color: var(--it-color-white);
  margin-block-end: 1rem;
}

.it-site-footer__nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.it-site-footer__nav-groups {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
}

.it-site-footer__nav-groups h3 {
  margin: 0 0 0.75rem;
  color: var(--it-color-white);
  font-family: var(--it-font-body);
  font-size: var(--it-font-xs);
  font-weight: var(--it-weight-bold);
  letter-spacing: var(--it-tracking-eyebrow);
  text-transform: uppercase;
}

.it-site-footer__nav a {
  color: var(--it-color-sage) !important;
  font-size: var(--it-font-sm);
  text-decoration: none !important;
}

.it-site-footer__nav a:hover {
  color: var(--it-color-white) !important;
}

.it-site-footer__legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block-start: var(--it-space-3);
  border-top: 1px solid rgb(255 255 255 / 0.15);
  font-size: var(--it-font-xs);
  color: var(--it-color-sage);
}

.it-site-footer__legal nav {
  display: flex;
  gap: 1.5rem;
}

.it-site-footer__legal a {
  color: var(--it-color-sage) !important;
  text-decoration: none !important;
}

.it-site-footer__legal a:hover {
  color: var(--it-color-white) !important;
}

@media (max-width: 64rem) {
  .it-site-footer__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 45rem) {
  .it-site-footer__grid {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
   OFF-CANVAS MENU — reachable at every breakpoint via the
   hamburger toggle, so its nav list must always be visible
   (parent theme hid it above the "lg" breakpoint by default).
============================================================ */
.offcanvas-brand.site-title {
  font-family: var(--it-font-display) !important;
  font-weight: var(--it-weight-bold) !important;
}

.it-offcanvas-nav .menu {
  list-style: none;
  margin: 0;
  padding: 0;
}

.it-offcanvas-nav .menu > li {
  border-block-end: 1px solid var(--it-color-line);
}

.it-offcanvas-nav .menu > li > a {
  display: block;
  padding-block: 0.85rem;
  font-family: var(--it-font-body) !important;
  font-size: var(--it-font-base) !important;
  color: var(--it-color-text) !important;
  text-decoration: none !important;
}

.it-skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 10000;
  background: var(--it-color-accent);
  color: #fff;
  padding: 0.75rem 1.25rem;
  border-radius: 0 0 6px 0;
  font-family: var(--it-font-body);
  text-decoration: none;
}

.it-skip-link:focus {
  left: 0;
}

.it-offcanvas-nav .menu > li > a:hover {
  color: var(--it-color-accent) !important;
}

/* ============================================================
   INNER PAGES — shared editorial surface
============================================================ */
.page:not(.home) .main-content,
.archive .main-content,
.search .main-content,
.single-post .main-content,
.error404 .main-content {
  inline-size: min(calc(100% - 2rem), var(--it-wide-width));
  margin-inline: auto;
  padding-block: clamp(3rem, 7vw, 6rem);
}

.page:not(.home) .entry-content,
.page:not(.home) .page-header,
.single-post .entry-content,
.single-post .post-header {
  max-inline-size: 68ch;
  margin-inline: auto;
}

.page:not(.home) .entry-content p,
.single-post .entry-content p,
.single-post .entry-content li {
  color: var(--it-color-text);
  line-height: var(--it-leading-body);
}

.archive .post-archive,
.search .post-archive {
  display: block;
  width: 100%;
}

.archive .post-archive article,
.search .post-archive article {
  padding: var(--it-space-3);
  border: 1px solid var(--it-color-line);
  border-radius: var(--it-radius-md);
  background: var(--it-color-surface);
  box-shadow: var(--it-shadow-soft);
}

.archive .post-archive article:hover,
.search .post-archive article:hover {
  box-shadow: var(--it-shadow-card-hover);
}

.error404 .content-area {
  max-inline-size: 48rem;
  margin-inline: auto;
  text-align: center;
}

.it-not-found {
  display: grid;
  min-block-size: 62vh;
  place-items: center;
  padding-block: var(--it-space-6);
  background: var(--it-color-bg);
}

.it-not-found__inner {
  max-inline-size: 48rem;
  text-align: center;
}

.it-not-found__inner > p:not(.it-eyebrow) {
  max-inline-size: 58ch;
  margin-inline: auto;
  color: var(--it-color-muted);
}

.it-not-found__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--it-space-2);
  align-items: center;
  justify-content: center;
  margin-block-start: var(--it-space-4);
}

@media (max-width: 64rem) {
  .archive .post-archive,
  .search .post-archive {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 45rem) {
  .archive .post-archive,
  .search .post-archive {
    grid-template-columns: 1fr;
  }

  .page:not(.home) .main-content,
  .archive .main-content,
  .search .main-content,
  .single-post .main-content,
  .error404 .main-content {
    padding-block: var(--it-space-5);
  }
}

/* ============================================================
   CONTACT FORM
============================================================ */
.it-contact {
  max-inline-size: 42rem;
  margin-block-start: var(--it-space-5);
  padding: clamp(1.5rem, 4vw, 2.5rem);
  border: 1px solid var(--it-color-line);
  border-radius: var(--it-radius-md);
  background: var(--it-color-surface);
  box-shadow: var(--it-shadow-soft);
}

.it-contact-form > p {
  margin-block: var(--it-space-3);
}

.it-contact-form label:not(.screen-reader-text) {
  display: block;
  margin-block-end: 0.4rem;
  font-weight: var(--it-weight-semibold);
}

.it-contact-form input[type="text"],
.it-contact-form input[type="email"],
.it-contact-form textarea {
  inline-size: 100%;
  padding: 0.75rem 0.875rem;
  border: 1px solid var(--it-color-muted);
  border-radius: var(--it-radius-sm);
  background: var(--it-color-white);
  color: var(--it-color-text);
  font: inherit;
}

.it-contact-form textarea {
  resize: vertical;
}

.it-contact-form .it-checkbox-row {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.65rem;
  align-items: start;
}

.it-contact-form .it-checkbox-row input {
  inline-size: 1.25rem;
  block-size: 1.25rem;
  margin-block-start: 0.2rem;
}

.it-contact-form .it-checkbox-row label {
  margin: 0;
  font-weight: var(--it-weight-regular);
}

.it-form-status {
  margin-block: var(--it-space-2);
  padding: var(--it-space-2);
  border-inline-start: 4px solid;
  background: var(--it-color-bg);
}

.it-form-status--success {
  border-color: var(--it-color-success);
}

.it-form-status--error {
  border-color: var(--it-color-error);
}

.it-field-error {
  display: block;
  min-height: 1.35em;
  margin-block-start: 0.3rem;
  color: var(--it-color-error);
  font-size: var(--it-font-sm);
}

.it-contact-form [aria-invalid="true"] {
  border-color: var(--it-color-error) !important;
  box-shadow: 0 0 0 1px var(--it-color-error);
}

.it-contact-form button:disabled {
  cursor: wait;
  opacity: 0.72;
}

.single-post .entry-content > .wp-block-image {
  width: min(100%, 42rem);
  margin-inline: auto;
  margin-block: clamp(2rem, 5vw, 3.5rem);
}

.single-post .entry-content .wp-block-image img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  border-radius: var(--it-radius-md);
  object-fit: cover;
}

.single-post .post-thumbnail img,
.single-post .entry-header img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.it-author-box {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--it-space-3);
  align-items: center;
  margin-block-start: var(--it-space-6);
  padding: var(--it-space-3);
  border: 1px solid var(--it-color-line);
  border-radius: var(--it-radius-md);
  background: var(--it-color-surface);
}

.archive .post-archive .archive-main > article,
.search .post-archive .archive-main > article {
  margin: 0;
}

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

.it-author-box h2,
.it-author-box p {
  margin-block-end: 0.35rem;
}

.it-related-content {
  margin-block-start: var(--it-space-4);
  padding: var(--it-space-4);
  border-radius: var(--it-radius-md);
  background: var(--it-color-bg);
}

@media (max-width: 30rem) {
  .it-author-box {
    grid-template-columns: 1fr;
  }
}

.post-comments-show button,
.comment-form input,
.comment-form textarea {
  max-inline-size: 100%;
  box-sizing: border-box;
}

.post-comments-show button {
  width: calc(100% - 2rem) !important;
  min-width: 0 !important;
}

.it-honeypot {
  position: absolute !important;
  inline-size: 1px !important;
  block-size: 1px !important;
  overflow: hidden !important;
  clip-path: inset(50%) !important;
}

@media (prefers-reduced-motion: no-preference) {
  .archive .post-archive article,
  .search .post-archive article {
    transition: box-shadow 180ms ease;
  }
}

/* ============================================================
   LAYOUT REPAIR — full-width editorial canvas
============================================================ */
.home .entry-content-wrap,
.home .entry-content {
  width: min(72.5rem, 100%);
  max-width: none !important;
  margin-inline: auto;
  min-width: 0;
}

.home .entry-content > .wp-block-group > .wp-block-group__inner-container {
  width: min(100%, 72.5rem);
  max-width: none !important;
  margin-inline: auto;
}

.it-home-hero {
  padding-block: clamp(3rem, 5vw, 4.5rem) 0;
}

.it-home-hero__inner {
  display: grid !important;
  grid-template-columns: minmax(0, 0.88fr) minmax(32rem, 1.12fr);
  gap: clamp(2rem, 4.5vw, 4rem);
  align-items: center;
  width: 100%;
  max-width: none !important;
}

.it-home-hero__copy,
.it-home-hero__media {
  min-width: 0;
}

.it-home-hero__media img {
  aspect-ratio: 7 / 4;
  border-radius: 1.25rem;
  object-fit: cover;
}

.it-hub-card {
  min-width: 0;
}

.it-hub-card__title,
.it-hub-card__title * {
  word-break: normal;
  overflow-wrap: normal;
  hyphens: none;
}

.it-coming-soon {
  font-weight: var(--it-weight-medium);
}

.it-article-grid .wp-block-post-template:has(> li:only-child) {
  grid-template-columns: minmax(0, 54rem);
}

.archive .post-archive:has(> article:only-child),
.search .post-archive:has(> article:only-child) {
  grid-template-columns: minmax(0, 56.25rem);
}

.archive .post-archive article,
.search .post-archive article {
  width: 100%;
  max-width: 56.25rem;
  min-width: 0;
}

.archive .post-archive .entry-container,
.search .post-archive .entry-container {
  display: block;
  width: 100%;
  min-width: 0;
}

.archive .post-archive .entry-content-wrap,
.search .post-archive .entry-content-wrap,
.archive .post-archive .entry-content,
.search .post-archive .entry-content {
  width: 100%;
  max-width: 65ch;
  min-width: 0;
  margin-inline: 0;
  padding-inline: 0;
}

.archive .post-archive .entry-title,
.search .post-archive .entry-title {
  max-width: 24ch;
  word-break: normal;
  overflow-wrap: normal;
  hyphens: none;
}

.it-hubs,
.it-featured,
.it-about-preview {
  min-height: 0 !important;
}

.it-site-footer {
  margin-block-start: clamp(4rem, 7vw, 6rem);
  padding-block: clamp(1.5rem, 2.25vw, 1.75rem) 0.75rem;
  border-block-start: 1px solid rgb(255 255 255 / 0.12);
}

.it-site-footer__grid {
  grid-template-columns: 1.4fr 1fr 1.2fr;
  gap: clamp(2.25rem, 5vw, 4rem);
  padding-block-end: 1.5rem;
}

.it-site-footer__nav a:hover,
.it-site-footer__nav a:focus-visible {
  color: var(--it-color-white) !important;
  text-decoration: underline !important;
  text-underline-offset: 0.25rem;
}

.it-site-footer__inspire p {
  max-width: 30rem;
  color: var(--it-color-sage);
  font-size: var(--it-font-sm);
}

.it-site-footer__inspire .it-button {
  margin-block-start: var(--it-space-2);
  color: var(--it-color-white) !important;
  border-color: rgb(255 255 255 / 0.6);
}

.it-site-footer__inspire .it-button:hover,
.it-site-footer__inspire .it-button:focus-visible {
  color: var(--it-color-text) !important;
  background: var(--it-color-sage);
}

@media (max-width: 64rem) {
  .it-home-hero__inner {
    grid-template-columns: 1fr;
    gap: var(--it-space-4);
  }

  .it-site-footer__grid {
    grid-template-columns: 1.2fr 1fr 1fr;
  }
}

@media (max-width: 48rem) {
  .home .entry-content > .wp-block-group > .wp-block-group__inner-container {
    width: min(100% - 2rem, 72.5rem);
  }

  .it-site-footer__grid {
    grid-template-columns: 1fr;
    gap: 2.25rem;
  }
}

/* Keep the end of posts and static pages visually connected to the footer. */
body.page:not(.home) .main-content,
body.single-post .main-content {
  padding-bottom: 3rem;
}

body.page:not(.home) .it-site-footer,
body.single-post .it-site-footer {
  margin-block-start: 3rem;
}

@media (max-width: 45rem) {
  body.page:not(.home) .main-content,
  body.single-post .main-content {
    padding-bottom: 2rem;
  }

  body.page:not(.home) .it-site-footer,
  body.single-post .it-site-footer {
    margin-block-start: 2rem;
  }

  /* Date and author are already presented in the article trust metadata. */
  body.single-post .entry-sidebar-wrap {
    display: none;
  }
}

/* ============================================================
   CATEGORY ARCHIVES — refined editorial card system
============================================================ */
body.category .post-archive .archive-main {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.5rem, 2.6vw, 2.25rem);
}

body.category .post-archive .archive-main > article {
  position: relative;
  padding: 0;
  overflow: hidden;
  border-color: rgb(139 79 53 / 0.18);
  border-radius: 1rem;
  background: var(--it-color-surface);
  box-shadow: 0 8px 26px rgb(43 43 41 / 0.07);
  transition: border-color 180ms ease, box-shadow 180ms ease,
    transform 180ms ease;
}

body.category .post-archive .archive-main > article:hover {
  border-color: rgb(139 79 53 / 0.34);
  box-shadow: 0 18px 42px rgb(43 43 41 / 0.13);
  transform: translateY(-0.25rem);
}

body.category .post-archive article .post-media {
  order: 1;
  margin: 0;
}

body.category .post-archive article .post-media figure {
  border-radius: 0;
  background: var(--it-color-sage);
}

body.category .post-archive article .post-media img {
  aspect-ratio: 16 / 10;
  transition: transform 350ms ease;
}

body.category .post-archive article:hover .post-media img {
  transform: scale(1.025);
}

body.category .post-archive article .meta-category {
  order: 2;
  margin: 1.35rem 1.5rem 0;
  color: var(--it-color-accent);
  font-size: 0.72rem;
  font-weight: var(--it-weight-semibold);
  line-height: 1.35;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

body.category .post-archive article .meta-category a {
  color: inherit;
  text-decoration: none;
}

body.category .post-archive article .meta-category a:hover,
body.category .post-archive article .meta-category a:focus-visible {
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

body.category .post-archive article .entry-header {
  order: 3;
  padding-inline: 1.5rem;
}

body.category .post-archive article .entry-title {
  min-height: 3.72em;
  margin: 0.65rem 0 0.85rem;
  font-size: clamp(1.35rem, 1.8vw, 1.65rem);
  line-height: 1.24;
  -webkit-line-clamp: 3;
}

body.category .post-archive article .entry-title a {
  color: var(--it-color-text);
  text-decoration: none;
}

body.category .post-archive article .entry-title a:hover,
body.category .post-archive article .entry-title a:focus-visible {
  color: var(--it-color-accent);
}

body.category .post-archive article .entry-container {
  display: flex;
  order: 4;
  flex: 1 1 auto;
  width: auto;
  margin: 0;
  padding: 0 1.5rem 1.5rem;
}

body.category .post-archive article .entry-content-wrap,
body.category .post-archive article .entry-content {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
}

body.category .post-archive article .entry-content {
  color: var(--it-color-muted);
  font-size: 0.95rem;
  line-height: 1.65;
}

body.category .post-archive article .post-meta {
  gap: 0.55rem 1rem;
  padding-top: 1.1rem;
  color: var(--it-color-muted);
  font-size: 0.75rem;
}

body.category .post-archive article .entry-more-button {
  margin-top: 1rem;
}

body.category .post-archive article .entry-more {
  display: inline-flex;
  min-height: 2.75rem;
  padding: 0.65rem 1.1rem;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: var(--it-weight-semibold);
  letter-spacing: 0.035em;
}

body.category .post-archive .ajax-navigation {
  margin-top: clamp(2.5rem, 5vw, 4rem);
}

body.category .post-archive .load-more {
  border-radius: 999px;
  box-shadow: 0 8px 22px rgb(43 43 41 / 0.1);
}

@media (max-width: 64rem) {
  body.category .post-archive .archive-main {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 45rem) {
  body.category .post-archive .archive-main {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  body.category .post-archive article .meta-category {
    margin-inline: 1.25rem;
  }

  body.category .post-archive article .entry-header {
    padding-inline: 1.25rem;
  }

  body.category .post-archive article .entry-container {
    padding-inline: 1.25rem;
    padding-bottom: 1.25rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.category .post-archive .archive-main > article,
  body.category .post-archive article .post-media img {
    transition: none;
  }

  body.category .post-archive .archive-main > article:hover,
  body.category .post-archive article:hover .post-media img {
    transform: none;
  }
}

/* ============================================================
   FINAL TECHNICAL LAYOUT PASS
   Footer rules intentionally remain unchanged.
============================================================ */
h1,
h2,
h3 {
  word-break: normal;
  overflow-wrap: normal;
  hyphens: none;
}

main h1,
main h2,
main h3 {
  word-break: normal !important;
  overflow-wrap: normal !important;
  hyphens: none !important;
}

/* Archive cards and AJAX navigation are separate layout regions. */
.archive .post-archive,
.search .post-archive {
  display: block;
  width: 100%;
}

.archive .post-archive .archive-wrap,
.search .post-archive .archive-wrap,
.archive .post-archive .archive-main,
.search .post-archive .archive-main {
  width: 100%;
  max-width: none;
  min-width: 0;
}

.archive .post-archive .archive-main,
.search .post-archive .archive-main {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2.25rem 1.75rem;
  align-items: stretch;
}

.archive .post-archive article,
.search .post-archive article {
  display: flex;
  width: 100%;
  max-width: none;
  min-width: 0;
  height: 100%;
  margin: 0;
  padding: 1.5rem;
  flex-direction: column;
  border: 1px solid var(--it-color-line);
  border-radius: var(--it-radius-md);
  background: var(--it-color-surface);
}

.post-archive article .meta-category {
  order: 1;
}

.post-archive article .post-media {
  order: 2;
  width: 100%;
  margin: 1rem 0 1.25rem;
}

.post-archive article .post-media figure {
  margin: 0;
  overflow: hidden;
  border-radius: 0.75rem;
}

.post-archive article .post-media img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.post-archive article .entry-header {
  order: 3;
}

.post-archive article .entry-container {
  display: block;
  order: 4;
  width: 100%;
}

.post-archive article .entry-title {
  display: -webkit-box;
  margin: 0 0 1rem;
  overflow: hidden;
  font-size: clamp(1.625rem, 2.2vw, 2.25rem);
  line-height: 1.08;
  min-height: 4.32em;
  word-break: normal;
  overflow-wrap: normal;
  hyphens: none;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
}

.post-archive article .entry-content-wrap,
.post-archive article .entry-content {
  width: 100%;
  max-width: none;
  min-width: 0;
  margin: 0;
  padding: 0;
}

.post-archive article .entry-content {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
}

.post-archive article .post-meta {
  margin-top: auto;
  padding-top: 1rem;
}

.post-archive .ajax-navigation {
  display: flex;
  width: 100%;
  height: auto;
  min-height: 0;
  margin-top: 2.5rem;
  align-items: center;
  justify-content: center;
}

.post-archive .ajax-navigation .load-more {
  position: static;
  inset: auto;
  display: inline-flex;
  width: auto;
  height: auto;
  min-height: 3rem;
  padding: 0.75rem 1.75rem;
  align-self: center;
  align-items: center;
  justify-self: center;
  justify-content: center;
}

/* Full-width home sections share one 1160px editorial line. */
.home .it-home-hero,
.home .it-hubs,
.home .it-article-grid,
.home .it-about-preview {
  width: min(72.5rem, 100%);
  max-width: none;
  margin-inline: auto;
}

.home .it-home-hero__inner,
.home .it-hub-grid,
.home .it-article-grid > *,
.home .it-about-preview > * {
  width: 100%;
  max-width: none;
}

.home .it-home-hero {
  padding-block: 4rem;
}

.home .it-home-hero__inner,
.home .it-home-hero__inner.wp-block-columns {
  display: grid !important;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: center;
}

.home .it-home-hero__copy,
.home .it-home-hero__media {
  width: 100%;
  max-width: none;
  min-width: 0;
}

.home .it-home-hero__title {
  max-width: 11ch;
  word-break: normal;
  overflow-wrap: normal;
  hyphens: none;
}

.home .it-home-hero__image,
.home .it-home-hero__image img {
  display: block;
  width: 100%;
}

.home .it-home-hero__image {
  aspect-ratio: 7 / 4;
  overflow: hidden;
  border-radius: 1.25rem;
  background: var(--it-color-bg);
}

.home .it-home-hero__image img {
  height: auto;
  aspect-ratio: 7 / 4;
  object-fit: cover;
  border-radius: 1.25rem;
}

.home .it-home-hero .wp-block-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.home .it-home-hero .wp-block-button__link {
  display: inline-flex;
  min-height: 3rem;
  padding: 0.75rem 1.5rem;
  align-items: center;
  justify-content: center;
}

.home .it-hubs,
.home .it-article-grid,
.home .it-about-preview {
  min-height: 0 !important;
  margin-top: 6rem;
}

.home .it-about-preview {
  padding-block: 4rem;
}

.home .it-hub-grid {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(13.75rem, 1fr)) !important;
  gap: 2.25rem 1.5rem;
  align-items: stretch;
}

.home .it-hub-card,
.home .it-hub-card > .wp-block-group__inner-container {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.home .it-hub-card__media img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 1rem;
}

.home .it-hub-card__title {
  word-break: normal;
  overflow-wrap: normal;
  hyphens: none;
  white-space: normal;
}

.home .it-hub-card__description {
  margin-bottom: 1.25rem;
}

.home .it-hub-card [role="status"] {
  display: inline-flex;
  width: fit-content;
  min-height: 2.25rem;
  margin-top: auto;
  padding: 0.5rem 0.875rem;
  align-items: center;
  border-radius: 999px;
  font-size: 0.8125rem;
  line-height: 1.3;
}

.home .it-article-grid .wp-block-post-template {
  display: grid;
  width: 100%;
  grid-template-columns: repeat(3, minmax(16.25rem, 1fr));
  gap: 3rem 1.75rem;
}

.home .it-article-grid .wp-block-post {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.home .it-article-grid .wp-block-post-featured-image {
  margin: 0;
  overflow: hidden;
  border-radius: 0.875rem;
}

.home .it-article-grid .wp-block-post-featured-image img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.home .it-article-grid .wp-block-post-title,
.home .it-article-grid .wp-block-post-excerpt {
  display: -webkit-box;
  overflow: hidden;
  word-break: normal;
  overflow-wrap: normal;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
}

.home .it-article-grid .wp-block-post-title {
  margin-top: 1.125rem;
}

.home .it-article-grid .wp-block-post-date {
  margin-top: auto;
  padding-top: 1rem;
}

.home .it-article-grid .wp-block-query-pagination,
.navigation.pagination {
  grid-column: 1 / -1;
  display: flex;
  width: 100%;
  margin-top: 2.5rem;
  gap: 0.75rem;
  align-items: center;
}

.pagination .current,
.wp-block-query-pagination .current {
  display: inline-flex;
  min-width: 2.5rem;
  min-height: 2.5rem;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--it-color-accent);
  color: var(--it-color-white);
}

/* Article media: featured remains landscape; content media stays portrait. */
.single-post .entry-content > .wp-block-image {
  width: auto;
  max-width: 100%;
  margin: 2.5rem auto;
}

.single-post .entry-content .wp-block-image img {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 47.5rem;
  margin-inline: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

@media (max-width: 64rem) {
  .archive .post-archive .archive-main,
  .search .post-archive .archive-main {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .home .it-hub-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 56.25rem) {
  .home .it-home-hero__inner {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .home .it-home-hero__title {
    max-width: 14ch;
  }

  .home .it-article-grid .wp-block-post-template {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 37.5rem) {
  .archive .post-archive .archive-main,
  .search .post-archive .archive-main,
  .home .it-hub-grid,
  .home .it-article-grid .wp-block-post-template {
    grid-template-columns: minmax(0, 1fr) !important;
  }
}

@media (max-width: 30rem) {
  .home .it-home-hero .wp-block-buttons {
    flex-direction: column;
    align-items: stretch;
  }

  .home .it-home-hero .wp-block-button,
  .home .it-home-hero .wp-block-button__link {
    width: 100%;
  }
}

/* ============================================================
   CONSISTENCY PASS — header, author archives and footer
============================================================ */
#masthead.site-header {
  position: relative;
  width: 100%;
  min-height: 6.375rem;
  border-block-end: 1px solid var(--it-color-line);
  background: var(--it-color-surface) !important;
  box-shadow: none;
}

#masthead .navbar-primary,
#masthead .navbar-wrap {
  width: 100%;
  min-height: 6.3125rem;
}

#masthead .navbar-container {
  width: min(calc(100% - 2rem), var(--it-wide-width));
  min-height: 6.25rem;
  margin-inline: auto;
  padding: 1.25rem 0;
}

.author .main-content {
  display: block;
  width: min(calc(100% - 2rem), var(--it-wide-width));
  margin-inline: auto;
}

.author .content-area {
  width: 100% !important;
  max-width: none !important;
}

.author .sidebar-area,
.author .widget-area {
  display: none !important;
}

.author .page-header {
  width: 100%;
  max-width: none;
  margin-inline: auto;
  margin-block-end: clamp(2rem, 4vw, 3.5rem);
  padding: clamp(1.5rem, 3vw, 2.5rem);
  border: 1px solid var(--it-color-line);
  border-radius: var(--it-radius-md);
  background: var(--it-color-surface);
}

.author .page-author-container {
  align-items: center;
}

.author .author-avatar img {
  border-radius: 50%;
  box-shadow: 0 0 0 0.35rem var(--it-color-bg);
}

.it-initial-avatar {
  display: inline-flex;
  flex: 0 0 var(--it-avatar-size, 96px);
  width: var(--it-avatar-size, 96px);
  height: var(--it-avatar-size, 96px);
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #9a654f;
  box-shadow: 0 0 0 0.35rem var(--it-color-bg);
  color: #fff;
  font-family: Merriweather, Georgia, serif;
  font-size: calc(var(--it-avatar-size, 96px) * 0.32);
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.04em;
}

.author .author-avatar .it-initial-avatar {
  --it-avatar-size: 140px !important;
}

.author .page-author-content,
.author .archive-description {
  max-width: 38.75rem;
}

.author .post-archive .post-categories {
  font-size: 0.75rem;
  line-height: 1.35;
  letter-spacing: 0.02em;
}

.single-post .entry-single-header {
  margin-bottom: 0;
}

.single-post .entry-single-header + .cs-container .main-content {
  padding-top: clamp(0.625rem, 1vw, 0.875rem);
}

.single-post .entry-single-header .entry-title {
  max-width: 68rem;
  font-size: clamp(2.25rem, 4.2vw, 4rem);
  line-height: 1.03;
  text-wrap: balance;
}

.single-post .entry-post-next .entry-title {
  margin-block: 1.25rem 0;
  font-size: clamp(1.125rem, 1.4vw, 1.375rem);
  line-height: 1.25;
  overflow-wrap: break-word;
  text-wrap: pretty;
}

.author .archive-description {
  max-width: 60ch;
  color: var(--it-color-muted);
}

.author .post-archive {
  width: 100%;
}

.author .post-archive .archive-main > .it-author-profile {
  grid-column: 1 / -1;
  width: 100%;
  max-width: none;
  margin-inline: 0;
}

/* Match Gulden's article archive to the refined category card system. */
body.author .post-archive .archive-main {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.5rem, 2.6vw, 2.25rem);
}

body.author .post-archive .archive-main > article {
  position: relative;
  padding: 0;
  overflow: hidden;
  border-color: rgb(139 79 53 / 0.18);
  border-radius: 1rem;
  background: var(--it-color-surface);
  box-shadow: 0 8px 26px rgb(43 43 41 / 0.07);
  transition: border-color 180ms ease, box-shadow 180ms ease,
    transform 180ms ease;
}

body.author .post-archive .archive-main > article:hover {
  border-color: rgb(139 79 53 / 0.34);
  box-shadow: 0 18px 42px rgb(43 43 41 / 0.13);
  transform: translateY(-0.25rem);
}

body.author .post-archive article .post-media {
  order: 1;
  margin: 0;
}

body.author .post-archive article .post-media figure {
  border-radius: 0;
  background: var(--it-color-sage);
}

body.author .post-archive article .post-media img {
  aspect-ratio: 16 / 10;
  transition: transform 350ms ease;
}

body.author .post-archive article:hover .post-media img {
  transform: scale(1.025);
}

body.author .post-archive article .meta-category {
  order: 2;
  margin: 1.35rem 1.5rem 0;
  color: var(--it-color-accent);
  font-size: 0.72rem;
  font-weight: var(--it-weight-semibold);
  line-height: 1.35;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

body.author .post-archive article .meta-category a {
  color: inherit;
  text-decoration: none;
}

body.author .post-archive article .meta-category a:hover,
body.author .post-archive article .meta-category a:focus-visible {
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

body.author .post-archive article .entry-header {
  order: 3;
  padding-inline: 1.5rem;
}

body.author .post-archive article .entry-title {
  min-height: 3.72em;
  margin: 0.65rem 0 0.85rem;
  font-size: clamp(1.35rem, 1.8vw, 1.65rem);
  line-height: 1.24;
  -webkit-line-clamp: 3;
}

body.author .post-archive article .entry-title a {
  color: var(--it-color-text);
  text-decoration: none;
}

body.author .post-archive article .entry-title a:hover,
body.author .post-archive article .entry-title a:focus-visible {
  color: var(--it-color-accent);
}

body.author .post-archive article .entry-container {
  display: flex;
  order: 4;
  flex: 1 1 auto;
  width: auto;
  margin: 0;
  padding: 0 1.5rem 1.5rem;
}

body.author .post-archive article .entry-content-wrap,
body.author .post-archive article .entry-content {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
}

body.author .post-archive article .entry-content {
  color: var(--it-color-muted);
  font-size: 0.95rem;
  line-height: 1.65;
}

body.author .post-archive article .post-meta {
  gap: 0.55rem 1rem;
  padding-top: 1.1rem;
  color: var(--it-color-muted);
  font-size: 0.75rem;
}

body.author .post-archive article .entry-more-button {
  margin-top: 1rem;
}

body.author .post-archive article .entry-more {
  display: inline-flex;
  min-height: 2.75rem;
  padding: 0.65rem 1.1rem;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: var(--it-weight-semibold);
  letter-spacing: 0.035em;
}

body.author .post-archive .ajax-navigation {
  margin-top: clamp(2.5rem, 5vw, 4rem);
}

body.author .post-archive .load-more {
  border-radius: 999px;
  box-shadow: 0 8px 22px rgb(43 43 41 / 0.1);
}

@media (max-width: 64rem) {
  body.author .post-archive .archive-main {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 45rem) {
  body.author .post-archive .archive-main {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  body.author .post-archive article .meta-category {
    margin-inline: 1.25rem;
  }

  body.author .post-archive article .entry-header {
    padding-inline: 1.25rem;
  }

  body.author .post-archive article .entry-container {
    padding-inline: 1.25rem;
    padding-bottom: 1.25rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.author .post-archive .archive-main > article,
  body.author .post-archive article .post-media img {
    transition: none;
  }

  body.author .post-archive .archive-main > article:hover,
  body.author .post-archive article:hover .post-media img {
    transform: none;
  }
}

.it-site-footer__nav ul {
  gap: 0.55rem;
}

.it-site-footer__legal {
  padding-block-start: 0.75rem;
}

.it-site-footer__inspire {
  align-self: start;
  padding: clamp(1.25rem, 3vw, 1.75rem);
  border: 1px solid rgb(255 255 255 / 0.14);
  border-radius: var(--it-radius-md);
  background: rgb(255 255 255 / 0.055);
}

@media (max-width: 48rem) {
  #masthead.site-header,
  #masthead .navbar-primary,
  #masthead .navbar-wrap,
  #masthead .navbar-container {
    min-height: 4.75rem;
  }

  #masthead .navbar-container {
    padding-block: 0.75rem;
  }

  .author .page-author-container {
    align-items: flex-start;
  }

  .it-site-footer__nav ul {
    grid-template-columns: 1fr;
  }

  .home .it-hub-card,
  .home .it-hub-card > .wp-block-group__inner-container,
  .home .it-hub-card__title {
    width: 100%;
    max-width: 100%;
  }
}

/* ============================================================
   TRUST & POLICY PAGES — aligned editorial reading layout
============================================================ */
.it-trust-page .entry-single-header .cs-container {
  width: min(calc(100% - 2rem), 48rem);
  max-width: none;
  margin-inline: auto;
}

.it-trust-page .entry-content {
  width: min(100%, 45rem) !important;
  max-width: none !important;
  max-inline-size: none !important;
  margin-inline: auto;
}

.it-trust-page .entry-single-header .entry-title {
  max-width: none;
  text-wrap: balance;
}

.it-trust-page .entry-single-header + .cs-container .main-content {
  padding-top: clamp(2rem, 3vw, 2.75rem);
}

.it-trust-page .entry-content {
  color: var(--it-color-text);
}

.it-trust-page .entry-content > h2 {
  margin: 2rem 0 0;
  padding-top: 2rem;
  border-top: 1px solid var(--it-color-line);
  font-size: clamp(1.5rem, 2.4vw, 1.9rem);
  line-height: 1.22;
  text-wrap: balance;
}

.it-trust-page .entry-content > h2:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

.it-trust-page .entry-content > h2 + p {
  margin-top: 0.8rem;
}

.it-trust-page .entry-content > p {
  max-width: 68ch;
  color: var(--it-color-muted);
}

.it-trust-page .entry-content a {
  text-underline-offset: 0.18em;
  text-decoration-thickness: 0.08em;
}

.it-affiliate-disclosure-page .it-associate-notice {
  margin: 0 0 2rem;
  padding: 1.25rem 1.5rem;
  border: 1px solid rgb(139 79 53 / 0.22);
  border-radius: 0.75rem;
  background: #faf6f0;
  color: var(--it-color-accent);
}

.it-affiliate-disclosure-page .it-associate-notice p {
  max-width: none;
  margin: 0;
  color: var(--it-color-text);
  font-size: 1rem;
  line-height: 1.6;
}

.it-affiliate-disclosure-page .it-associate-notice strong {
  color: var(--it-color-accent);
}

.single-post .cs-custom-content-post-before > div[style] {
  margin: 0 !important;
  padding: 0.8rem 1rem !important;
  border: 1px solid rgb(139 79 53 / 0.2) !important;
  border-radius: 0.65rem !important;
  background: #faf7f2 !important;
  color: var(--it-color-text);
  font-size: 0.9rem;
  line-height: 1.55;
}

.single-post .cs-custom-content-post-before {
  margin-bottom: clamp(0.875rem, 1.5vw, 1.25rem);
}

.single-post .cs-custom-content-post-before > div[style] strong {
  color: var(--it-color-accent);
}

.it-paid-link {
  white-space: nowrap;
  font-size: 0.72em;
  font-weight: var(--it-weight-semibold);
  letter-spacing: 0.025em;
  opacity: 0.82;
}

.it-site-footer__associate {
  padding-block: 0.85rem;
  border-top: 1px solid rgb(255 255 255 / 0.15);
  color: var(--it-color-sage);
  font-size: 0.78rem;
  line-height: 1.55;
}

.it-site-footer__associate p {
  margin: 0;
}

.it-site-footer__associate strong {
  color: var(--it-color-white);
}

.it-site-footer__associate a {
  margin-inline-start: 0.4rem;
  color: var(--it-color-sage) !important;
  text-underline-offset: 0.18em;
}

@media (max-width: 45rem) {
  .it-trust-page .entry-content {
    width: 100% !important;
  }

  .it-trust-page .entry-single-header + .cs-container .main-content {
    padding-top: 1.5rem;
  }

  .it-trust-page .entry-content > h2 {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
  }

  .it-affiliate-disclosure-page .it-associate-notice {
    padding: 1.1rem 1.2rem;
  }
}

@media (min-width: 45.01rem) and (max-width: 48rem) {
  .it-trust-page .entry-single-header .entry-title {
    margin-inline-start: 1.0625rem;
  }
}

/* ============================================================
   POLICY TABLES — scoped, readable and mobile-stacked
============================================================ */
.policy-page .entry-single-header .entry-title {
  font-size: clamp(2.5rem, 4vw, 3.5rem);
  line-height: 1.1;
}

.policy-page .entry-content > h2 {
  font-size: clamp(1.5rem, 2.4vw, 1.9rem);
  line-height: 1.22;
}

.policy-page .entry-content {
  font-size: max(1rem, 16px);
  line-height: 1.7;
}

.it-policy-table-wrap {
  width: 100%;
  max-width: 100%;
  margin-block: 1.5rem 2rem;
}

.entry-content .it-policy-table {
  display: table;
  width: 100%;
  max-width: 100%;
  table-layout: fixed;
  overflow: visible;
  border-collapse: collapse;
  font-size: 1rem;
  line-height: 1.55;
}

.it-policy-table th,
.it-policy-table td {
  padding: 0.7rem;
  vertical-align: top;
  overflow-wrap: anywhere;
  word-break: normal;
}

.it-policy-table th {
  background: #f3eee7;
  font-weight: var(--it-weight-semibold);
}

.it-policy-table .it-policy-detail {
  display: block;
  margin-top: 0.4rem;
  color: var(--it-color-muted);
  font-size: 0.9em;
  line-height: 1.45;
}

@media (max-width: 48rem) {
  .entry-content .it-policy-table,
  .it-policy-table tbody,
  .it-policy-table tr,
  .it-policy-table td {
    display: block;
    width: 100%;
  }

  .it-policy-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
  }

  .it-policy-table tr {
    margin-bottom: 1rem;
    overflow: hidden;
    border: 1px solid var(--it-color-line);
    border-radius: 0.75rem;
    background: var(--it-color-surface);
  }

  .it-policy-table td {
    display: grid;
    grid-template-columns: minmax(7.25rem, 0.8fr) minmax(0, 1.7fr);
    gap: 0.75rem;
    border: 0;
    border-bottom: 1px solid var(--it-color-line);
  }

  .it-policy-table td:last-child {
    border-bottom: 0;
  }

.it-policy-table td::before {
    content: attr(data-label);
    color: var(--it-color-text);
    font-weight: var(--it-weight-semibold);
  }
}

/* Mobile reading floor: excerpts and actionable card copy should not shrink
   below the browser's comfortable 16px reading size. Keep this final so older
   component rules cannot accidentally lower the size again. */
@media (max-width: 45rem) {
  body.category .post-archive article .entry-content,
  body.author .post-archive article .entry-content,
  .home .wp-block-post-excerpt__excerpt,
  .home .it-room-card p,
  .single-post .cs-custom-content-post-before > div[style],
  .it-site-footer__about p,
  .it-site-footer__card p {
    font-size: max(1rem, 16px) !important;
  }

  body.category .post-archive article .entry-more,
  body.author .post-archive article .entry-more,
  .it-site-footer__associate {
    font-size: max(0.875rem, 14px);
  }
}

@media (max-width: 25rem) {
  .it-policy-table td {
    grid-template-columns: 1fr;
    gap: 0.25rem;
  }
}
