/*
 * Base layer intentionally contains no :root token declarations.
 * Foundation and semantic tokens are defined in assets/css/tokens.css.
 * Keep base.css for low-level element resets or truly global base rules only.
 */


.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,
.screen-reader-text:active {
  position: static;
  width: auto;
  height: auto;
  margin: 0;
  overflow: visible;
  clip: auto;
  white-space: normal;
}

html {
  font-size: 100%;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  /* Keep a stable vertical scrollbar gutter so drawer scroll-lock does not cause
     a horizontal layout nudge on platforms with classic scrollbars (notably Windows). */
  scrollbar-gutter: stable;
}

body {
  margin: 0;
  font-family: var(--ta-font-body);
  font-size: var(--ta-content-font-size);
  line-height: var(--ta-content-line-height);
}

img,
picture,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: var(--ta-content-link-color);
  text-decoration-thickness: var(--ta-content-link-decoration-thickness);
  text-decoration-color: currentColor;
  text-underline-offset: var(--ta-content-link-underline-offset);
  transition: color var(--ta-transition-fast), text-decoration-color var(--ta-transition-fast), text-decoration-thickness var(--ta-transition-fast);
}

a:hover,
a:focus-visible {
  color: var(--ta-content-link-hover-color);
  text-decoration-thickness: var(--ta-content-link-decoration-thickness-hover);
}

.ta-site-main article,
.ta-prose,
.entry-content,
.wp-block-post-content {
  color: var(--ta-content-body-color);
  font-size: var(--ta-content-font-size);
  line-height: var(--ta-content-line-height);
}

.ta-site-main :where(p),
.ta-prose :where(p),
.entry-content :where(p),
.wp-block-post-content :where(p) {
  text-wrap: pretty;
}

.ta-site-main article > :first-child,
.ta-prose > :first-child,
.entry-content > :first-child,
.wp-block-post-content > :first-child {
  margin-top: 0;
}

.ta-site-main article > :last-child,
.ta-prose > :last-child,
.entry-content > :last-child,
.wp-block-post-content > :last-child {
  margin-bottom: 0;
}

.ta-site-main :where(p, ul, ol, dl, blockquote, pre, table),
.ta-prose :where(p, ul, ol, dl, blockquote, pre, table),
.entry-content :where(p, ul, ol, dl, blockquote, pre, table),
.wp-block-post-content :where(p, ul, ol, dl, blockquote, pre, table) {
  max-width: var(--ta-content-max-width);
}

.ta-site-main :where(p, ul, ol, dl, blockquote, pre, table, figure),
.ta-prose :where(p, ul, ol, dl, blockquote, pre, table, figure),
.entry-content :where(p, ul, ol, dl, blockquote, pre, table, figure),
.wp-block-post-content :where(p, ul, ol, dl, blockquote, pre, table, figure) {
  margin-block: var(--ta-content-block-gap);
}

.ta-site-main :where(ul, ol),
.ta-prose :where(ul, ol),
.entry-content :where(ul, ol),
.wp-block-post-content :where(ul, ol) {
  padding-inline-start: var(--ta-content-list-indent);
}

.ta-site-main li + li,
.ta-prose li + li,
.entry-content li + li,
.wp-block-post-content li + li {
  margin-top: var(--ta-content-list-item-gap);
}

.ta-site-main :where(h1, h2, h3, h4, h5, h6),
.ta-prose :where(h1, h2, h3, h4, h5, h6),
.entry-content :where(h1, h2, h3, h4, h5, h6),
.wp-block-post-content :where(h1, h2, h3, h4, h5, h6) {
  max-width: var(--ta-content-heading-max-width);
  font-family: var(--ta-font-heading);
  font-weight: var(--ta-content-heading-font-weight);
  line-height: var(--ta-content-heading-line-height);
  letter-spacing: var(--ta-content-heading-letter-spacing);
  color: var(--ta-content-heading-color);
  text-wrap: pretty;
}

.ta-site-main :where(h1),
.ta-prose :where(h1),
.entry-content :where(h1),
.wp-block-post-content :where(h1) {
  font-size: var(--ta-content-title-font-size);
  margin-block: 0 var(--ta-content-title-margin-block-end);
}

.ta-site-main :where(h2),
.ta-prose :where(h2),
.entry-content :where(h2),
.wp-block-post-content :where(h2) {
  font-size: var(--ta-content-h2-font-size);
  margin-block: var(--ta-content-h2-margin-block-start) var(--ta-content-h2-margin-block-end);
}

.ta-site-main :where(h3),
.ta-prose :where(h3),
.entry-content :where(h3),
.wp-block-post-content :where(h3) {
  font-size: var(--ta-content-h3-font-size);
  margin-block: var(--ta-content-h3-margin-block-start) var(--ta-content-h3-margin-block-end);
}

.ta-site-main :where(h4, h5, h6),
.ta-prose :where(h4, h5, h6),
.entry-content :where(h4, h5, h6),
.wp-block-post-content :where(h4, h5, h6) {
  font-size: var(--ta-content-h4-font-size);
  margin-block: var(--ta-content-h4-margin-block-start) var(--ta-content-h4-margin-block-end);
}

.ta-site-main :where(strong, b),
.ta-prose :where(strong, b),
.entry-content :where(strong, b),
.wp-block-post-content :where(strong, b) {
  font-weight: var(--ta-font-weight-semibold);
}

.ta-site-main :where(small),
.ta-prose :where(small),
.entry-content :where(small),
.wp-block-post-content :where(small) {
  font-size: var(--ta-content-small-font-size);
  color: var(--ta-content-caption-color);
}


.ta-site-main :where(figcaption, .wp-element-caption, .blocks-gallery-caption),
.ta-prose :where(figcaption, .wp-element-caption, .blocks-gallery-caption),
.entry-content :where(figcaption, .wp-element-caption, .blocks-gallery-caption),
.wp-block-post-content :where(figcaption, .wp-element-caption, .blocks-gallery-caption) {
  max-width: var(--ta-content-max-width);
  margin-top: var(--ta-content-list-item-gap);
  color: var(--ta-content-caption-color);
  font-size: var(--ta-content-small-font-size);
}

.ta-site-main :where(.wp-block-image, .wp-block-video, .wp-block-audio, .wp-block-embed),
.ta-prose :where(.wp-block-image, .wp-block-video, .wp-block-audio, .wp-block-embed),
.entry-content :where(.wp-block-image, .wp-block-video, .wp-block-audio, .wp-block-embed),
.wp-block-post-content :where(.wp-block-image, .wp-block-video, .wp-block-audio, .wp-block-embed) {
  margin-block: var(--ta-content-section-gap);
}

.ta-site-main :where(.wp-block-image img, .wp-block-video video, .wp-block-post-featured-image img),
.ta-prose :where(.wp-block-image img, .wp-block-video video, .wp-block-post-featured-image img),
.entry-content :where(.wp-block-image img, .wp-block-video video, .wp-block-post-featured-image img),
.wp-block-post-content :where(.wp-block-image img, .wp-block-video video, .wp-block-post-featured-image img) {
  border-radius: var(--ta-content-media-radius);
}

.ta-site-main :where(.wp-block-buttons),
.ta-prose :where(.wp-block-buttons),
.entry-content :where(.wp-block-buttons),
.wp-block-post-content :where(.wp-block-buttons) {
  gap: var(--ta-content-buttons-gap);
}

.ta-site-main :where(.wp-element-button, .wp-block-button__link),
.ta-prose :where(.wp-element-button, .wp-block-button__link),
.entry-content :where(.wp-element-button, .wp-block-button__link),
.wp-block-post-content :where(.wp-element-button, .wp-block-button__link) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: var(--ta-action-primary-min-height);
  padding: var(--ta-action-primary-padding-block) var(--ta-action-primary-padding-inline);
  border: 1px solid transparent;
  border-radius: var(--ta-action-primary-radius);
  background: var(--ta-action-primary-bg);
  color: var(--ta-action-primary-color);
  -webkit-text-fill-color: var(--ta-action-primary-color);
  font: inherit;
  font-size: var(--ta-action-primary-font-size);
  font-weight: var(--ta-action-primary-font-weight);
  line-height: var(--ta-action-primary-line-height);
  text-decoration: none;
}

.ta-site-main :where(.wp-element-button:hover, .wp-block-button__link:hover),
.ta-prose :where(.wp-element-button:hover, .wp-block-button__link:hover),
.entry-content :where(.wp-element-button:hover, .wp-block-button__link:hover),
.wp-block-post-content :where(.wp-element-button:hover, .wp-block-button__link:hover) {
  background: var(--ta-action-primary-hover-bg);
  color: var(--ta-action-primary-color);
  -webkit-text-fill-color: var(--ta-action-primary-color);
}

.ta-site-main :where(.wp-element-button:focus-visible, .wp-block-button__link:focus-visible),
.ta-prose :where(.wp-element-button:focus-visible, .wp-block-button__link:focus-visible),
.entry-content :where(.wp-element-button:focus-visible, .wp-block-button__link:focus-visible),
.wp-block-post-content :where(.wp-element-button:focus-visible, .wp-block-button__link:focus-visible) {
  background: var(--ta-action-primary-hover-bg);
  color: var(--ta-action-primary-color);
  -webkit-text-fill-color: var(--ta-action-primary-color);
  box-shadow: var(--ta-action-primary-focus-ring);
}

.ta-site-main :where(hr),
.ta-prose :where(hr),
.entry-content :where(hr),
.wp-block-post-content :where(hr) {
  width: min(100%, var(--ta-content-max-width));
  height: 0;
  margin-block: var(--ta-content-rule-margin-block);
  border: 0;
  border-top: 1px solid var(--ta-content-rule-color);
}

.ta-site-main :where(code, kbd, samp),
.ta-prose :where(code, kbd, samp),
.entry-content :where(code, kbd, samp),
.wp-block-post-content :where(code, kbd, samp) {
  padding: var(--ta-content-code-padding-block) var(--ta-content-code-padding-inline);
  border-radius: var(--ta-content-code-radius);
  background: var(--ta-content-code-bg);
  font-size: 0.92em;
}


.ta-site-main :where(blockquote),
.ta-prose :where(blockquote),
.entry-content :where(blockquote),
.wp-block-post-content :where(blockquote) {
  padding: var(--ta-content-blockquote-padding-block) var(--ta-content-blockquote-padding-inline);
  border-inline-start: 3px solid var(--ta-content-blockquote-border-color);
  background: var(--ta-content-blockquote-bg);
  color: var(--ta-content-blockquote-color);
}

.ta-site-main :where(blockquote cite, .wp-block-quote__citation),
.ta-prose :where(blockquote cite, .wp-block-quote__citation),
.entry-content :where(blockquote cite, .wp-block-quote__citation),
.wp-block-post-content :where(blockquote cite, .wp-block-quote__citation) {
  display: block;
  margin-top: var(--ta-content-blockquote-cite-margin-top);
  font-size: var(--ta-content-small-font-size);
  color: var(--ta-content-blockquote-cite-color);
}

.ta-site-main :where(pre),
.ta-prose :where(pre),
.entry-content :where(pre),
.wp-block-post-content :where(pre) {
  overflow-x: auto;
  padding: var(--ta-content-pre-padding);
  border: 1px solid var(--ta-content-pre-border-color);
  border-radius: var(--ta-content-pre-radius);
  background: var(--ta-content-pre-bg);
}

.ta-site-main :where(table),
.ta-prose :where(table),
.entry-content :where(table),
.wp-block-post-content :where(table) {
  width: 100%;
  border-collapse: collapse;
}

.ta-site-main :where(thead th),
.ta-prose :where(thead th),
.entry-content :where(thead th),
.wp-block-post-content :where(thead th) {
  background: var(--ta-content-table-header-bg);
}

.ta-site-main :where(tbody tr:nth-child(even)),
.ta-prose :where(tbody tr:nth-child(even)),
.entry-content :where(tbody tr:nth-child(even)),
.wp-block-post-content :where(tbody tr:nth-child(even)) {
  background: var(--ta-content-table-row-stripe-bg);
}

.ta-site-main :where(th, td),
.ta-prose :where(th, td),
.entry-content :where(th, td),
.wp-block-post-content :where(th, td) {
  padding: var(--ta-content-table-cell-padding-block) var(--ta-content-table-cell-padding-inline);
  border-bottom: 1px solid var(--ta-content-table-border-color);
  text-align: left;
  vertical-align: top;
}

.ta-site-main :where(th),
.ta-prose :where(th),
.entry-content :where(th),
.wp-block-post-content :where(th) {
  background: var(--ta-content-table-header-bg);
  color: var(--ta-content-heading-color);
  font-weight: var(--ta-font-weight-semibold);
}

.ta-entry-title {
  margin-top: 0;
}

.ta-entry-content > * + * {
  margin-top: var(--ta-content-block-gap);
}

.ta-entry-content > :where(h2, h3, h4, h5, h6, .wp-block-heading) + :where(p, ul, ol, dl, blockquote, pre, table, figure) {
  margin-top: 0;
}

.ta-entry-content > :where(p, ul, ol, dl, blockquote, pre, table, figure, .wp-block-paragraph, .wp-block-list) {
  line-height: var(--ta-content-line-height);
}

.ta-entry-content > :first-child {
  margin-top: 0;
}

.ta-entry-content > :last-child {
  margin-bottom: 0;
}

.ta-entry-content :where(.wp-block-columns) {
  gap: var(--ta-content-columns-gap);
}

.ta-entry-content :where(.wp-block-group, .wp-block-cover, .wp-block-columns, .wp-block-media-text) {
  overflow-wrap: anywhere;
}

.ta-entry-content :where(.wp-block-group, .wp-block-stack, .wp-block-columns, .wp-block-cover, .wp-block-media-text, .wp-block-gallery) {
  margin-block: var(--ta-content-group-gap);
}

.ta-entry-content :where(.wp-block-group.has-background, .wp-block-cover, .wp-block-cover-image) {
  padding: var(--ta-layout-band-padding-block) var(--ta-layout-band-padding-inline);
}

.ta-entry-content :where(.wp-block-group.is-layout-constrained, .wp-block-cover.is-layout-constrained) > :where(:not(.alignwide):not([class*="alignwide"]):not(.alignfull):not([class*="alignfull"])) {
  width: min(100%, var(--ta-layout-width-content));
  max-width: var(--ta-layout-width-content);
  margin-inline: auto;
}

.ta-entry-content :where(.wp-block-group.is-layout-constrained, .wp-block-cover.is-layout-constrained) > :where(.alignwide, [class*="alignwide"]) {
  width: min(100%, var(--ta-layout-width-wide));
  max-width: var(--ta-layout-width-wide);
  margin-inline: auto;
}

.ta-entry-content :where(.wp-block-group.is-layout-constrained, .wp-block-cover.is-layout-constrained) > :where(.alignfull, [class*="alignfull"]) {
  width: 100%;
  max-width: none;
}

/* Boundary rule: 782px is the governed narrow burger-tablet edge.
   Keep this aligned with the main 768-782 band; do not treat it as a desktop switch. */
@media (max-width: 782px) {
  .ta-entry-content :where(.wp-block-group.has-background, .wp-block-cover, .wp-block-cover-image) {
    padding: var(--ta-entry-constrained-background-padding-block) var(--ta-layout-gutter);
  }
}


.ta-skip-links {
  position: relative;
  z-index: calc(var(--ta-header-z) + 20);
}

.ta-skip-link {
  position: absolute;
  left: var(--ta-space-2);
  z-index: calc(var(--ta-header-z) + 20);
  padding: var(--ta-skip-link-padding-block) var(--ta-skip-link-padding-inline);
  background: var(--ta-color-surface-elevated);
  color: var(--ta-color-text-strong);
  text-decoration: none;
  border: 1px solid var(--ta-color-border-strong);
  box-shadow: var(--ta-shadow);
}

.ta-skip-link--content {
  top: var(--ta-space-2);
}

.ta-skip-link--footer {
  top: calc(var(--ta-space-2) + 3.5rem);
}

.ta-skip-link:focus,
.ta-skip-link:active {
  position: fixed;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid var(--ta-color-focus-ring);
  outline-offset: 3px;
}

#primary:focus {
  outline: none;
}

body.ta-overlay-open {
  overflow: hidden;
}

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

/* Page and component-specific class styling lives in assets/css/components.css. */
