/* Core block defaults. Low-specificity rules preserve editor color, alignment,
   width and spacing choices. Shared by the front end and both block editors. */

/* Article layout: the same type, cyan panels and card vocabulary as the journal. */
.ct-single {padding-block:2.5rem 4rem}
.ct-article-hero {
  text-align:center;
  border:0;
  background:transparent;
  padding:3.5rem 0;
}
.ct-article-hero>.ct-article-title {
  font-family:var(--wp--preset--font-family--sans);
  font-size:clamp(2.5rem,4.5vw,4rem);
  font-weight:780;
  line-height:1.1;
  letter-spacing:-.05em;
  margin-block:1.25rem;
  text-wrap:balance;
  max-width:100%;
  margin-inline:auto;
}
.ct-article-back {font-size:.75rem;font-weight:750;letter-spacing:.14em;text-transform:uppercase;margin:0 0 1.5rem}
.ct-article-back a {text-decoration:none}
.ct-article-hero .ct-article-deck {max-width:100%;margin:1rem auto 1.5rem;font-size:1.125rem;line-height:1.8}
.ct-article-hero .ct-meta {justify-content:center;font-size:.875rem}
.ct-single>.ct-single-image {border:1px solid var(--ct-border);background:var(--wp--preset--color--ice);margin-block:2rem 3rem!important}
.ct-single>.ct-single-image img {max-height:520px;object-fit:cover}
.ct-single .ct-reading {padding-block:.5rem 1.5rem}
.ct-single .ct-reading>.wp-block-paragraph:first-child,
.ct-single .ct-reading>p:first-child {font-size:1.25em;color:var(--wp--preset--color--ink);line-height:1.7}
.ct-term-pills {display:flex;flex-wrap:wrap;justify-content:center;gap:.5rem}
.ct-term-pills .wp-block-post-terms__separator {display:none}
.ct-term-pills a {display:inline-block;border:1px solid var(--ct-border);border-radius:6px;background:var(--wp--preset--color--base);padding:.3rem .85rem;font-size:.875rem;font-weight:650;text-decoration:none}
.ct-term-pills a:is(:hover,:focus-visible) {color:var(--ct-ink);border-color:var(--ct-ink);background:var(--wp--preset--color--bright);transform:translateY(-2px);box-shadow:2px 2px 0 var(--ct-ink)}
.ct-article-end>.ct-term-pills {justify-content:flex-start;margin-bottom:2rem}
.ct-author-card {border:1px solid var(--ct-border);border-radius:12px;background:var(--wp--preset--color--ice);padding:1.5rem 2rem;margin-bottom:2rem}
.ct-author-card .ct-eyebrow {font-size:.75rem;margin-bottom:.5rem}
.ct-author-card .wp-block-post-author-name {font-family:var(--wp--preset--font-family--sans);font-size:1.25rem;font-weight:750;margin:0}
.ct-author-card .wp-block-post-author-name a {color:var(--ct-ink);text-decoration:none}
.ct-author-card .wp-block-post-author-name a:is(:hover,:focus-visible) {color:var(--ct-accent)}
.ct-author-card .wp-block-post-author-biography {margin-top:.75rem}
.ct-story-nav {gap:1rem;margin-block:2rem!important}
.ct-story-nav>.wp-block-post-navigation-link {
  border:1px solid var(--ct-border);border-radius:12px;padding:1.4rem;
  font-size:.8125rem;color:var(--wp--preset--color--muted);
  transition:border-color var(--ct-motion-slow) var(--ct-ease),box-shadow var(--ct-motion-slow) var(--ct-ease),transform var(--ct-motion-slow) var(--ct-ease);
}
.ct-story-nav>.wp-block-post-navigation-link:empty {display:none}
.ct-story-nav>.wp-block-post-navigation-link:is(:hover,:focus-within) {border-color:var(--ct-accent);box-shadow:0 8px 24px rgb(18 37 43 / 8%);transform:translateY(-4px)}
.ct-story-nav a {display:block;margin-top:.5rem;font-family:var(--wp--preset--font-family--sans);font-size:1.1rem;font-weight:700;line-height:1.4;text-decoration:none;color:var(--ct-ink)}
.ct-story-nav a:is(:hover,:focus-visible) {color:var(--ct-accent)}
.ct-single>.ct-comments {border-top:1px solid var(--ct-border);padding-top:2rem;padding-bottom:0;margin-top:3rem}
.ct-single .comment-respond {border:1px solid var(--ct-border);border-radius:12px;padding:2rem;background:var(--wp--preset--color--ice)}
.ct-single .comment-respond h3 {font-size:1.75rem;letter-spacing:-.035em;margin-top:0}

/* Text, headings, lists, quotes, code, classic content and footnotes. */
:where(.wp-block-post-content,.editor-styles-wrapper) :where(p) {overflow-wrap:break-word}
:where(.wp-block-post-content,.editor-styles-wrapper) :where(h1,h2,h3,h4,h5,h6) {scroll-margin-top:2rem}
:where(.wp-block-list) {padding-inline-start:1.5em}
:where(.wp-block-list) :where(li) {padding-inline-start:.25em}
:where(.wp-block-list) :where(li)::marker {color:var(--ct-accent);font-weight:700}
:where(.wp-block-list) :where(ul,ol) {margin-block:.5em}
:where(.wp-block-quote) :where(p:first-child) {margin-top:0}
:where(.wp-block-quote) :where(p:last-of-type) {margin-bottom:.75rem}
:where(.wp-block-quote,.wp-block-pullquote) :where(cite) {display:block;font-size:.875rem;line-height:1.7;font-style:normal;font-weight:600;color:var(--wp--preset--color--muted)}
:where(.wp-block-pullquote) :where(blockquote) {border:0;background:transparent;margin:0;padding:0}
:where(.wp-block-pullquote) :where(p) {font-size:inherit;line-height:inherit;letter-spacing:-.025em}
:where(.wp-block-code,.wp-block-preformatted) {overflow:auto;max-width:100%;tab-size:2}
:where(.wp-block-code) :where(code) {white-space:pre;overflow-wrap:normal;font:inherit;background:transparent;padding:0}
:where(.wp-block-post-content,.editor-styles-wrapper) :where(p,li,td,blockquote) :where(code) {font-family:var(--wp--preset--font-family--mono);font-size:.9em;border:1px solid var(--ct-border);border-radius:4px;background:var(--wp--preset--color--ice);padding:.12em .35em}
:where(.wp-block-verse) {white-space:pre-wrap;overflow-wrap:break-word}
:where(.wp-block-footnotes) :where(li) {padding-inline-start:.3rem;margin-top:.75rem}
:where(.wp-block-footnotes) :where(a),:where(sup.fn) :where(a) {text-underline-offset:3px}
:where(.wp-block-post-content,.editor-styles-wrapper) :where(mark) {background:var(--wp--preset--color--bright);color:var(--ct-ink);padding:.05em .15em}
:where(.wp-block-post-content,.editor-styles-wrapper) :where(kbd) {font-family:var(--wp--preset--font-family--mono);font-size:.85em;border:1px solid var(--ct-border);border-bottom-width:3px;border-radius:4px;padding:.1em .35em}
:where(.wp-block-post-content,.editor-styles-wrapper) :where(hr) {border:0;border-top:1px solid var(--ct-border)}
:where(.wp-block-separator:not(.is-style-wide):not(.is-style-dots)) {width:100px}
:where(.wp-block-separator.is-style-dots)::before {color:var(--ct-accent);letter-spacing:1em}
:where(.wp-block-math) {max-width:100%;overflow-x:auto;padding-block:.75rem}

/* Tables retain both native styles: regular and stripes. */
.wp-block-table {overflow-x:auto;border:2px solid var(--ct-ink);border-radius:12px;box-shadow:4px 4px 0 var(--ct-ink)}
:where(.wp-block-table) :where(table) {width:100%;border-collapse:collapse;margin:0}
.wp-block-table :is(th,td),.wp-block-table.is-style-stripes :is(th,td) {border:1px solid var(--ct-ink);padding:.9rem 1rem;vertical-align:top}
:where(.wp-block-table) :where(thead) {background:var(--wp--preset--color--ice);border-bottom:2px solid var(--ct-ink)}
:where(.wp-block-table) :where(th) {font-weight:700;text-align:start}
:where(.wp-block-table) :where(tfoot) {border-top:2px solid var(--ct-ink);font-weight:600}
.wp-block-table.is-style-stripes {border:2px solid var(--ct-ink)}
.wp-block-table.is-style-stripes tbody tr:nth-child(odd) {background:var(--wp--preset--color--ice)}
:where(.wp-block-table) :where(tbody tr) {transition:background-color var(--ct-motion-fast) var(--ct-ease)}
:where(.wp-block-table) :where(tbody tr:hover) {background:color-mix(in srgb,var(--wp--preset--color--bright) 10%,var(--wp--preset--color--base))}

/* Images, galleries, covers, media/text, embeds, audio, video and files. */
:where(.wp-block-image,.wp-block-post-featured-image,.wp-block-video) :where(img,video) {border-radius:inherit}
.wp-block-image.is-style-rounded img {border-radius:9999px}
:where(.wp-block-image) :where(a) {display:inline-block;max-width:100%}
:where(.wp-block-image) :where(img) {vertical-align:middle}
:where(.wp-block-image,.wp-block-gallery,.wp-block-video,.wp-block-audio,.wp-block-table,.wp-block-embed) :where(figcaption) {font-size:.875rem;line-height:1.65;color:var(--wp--preset--color--muted);margin-top:.75rem;text-align:center;overflow-wrap:anywhere}
:where(.wp-block-gallery) :where(.wp-block-image) {overflow:hidden}
/* Overlaid gallery captions need white text over their native dark scrim. */
:where(.wp-block-gallery.has-nested-images) :where(figure.wp-block-image figcaption) {color:#fff;margin-top:0}
:where(.wp-block-cover) {overflow:hidden}
:where(.wp-block-cover) :where(.wp-block-cover__inner-container) {padding:1rem}
:where(.wp-block-cover) :where(a:not(.wp-block-button__link)) {color:inherit;text-decoration-color:var(--wp--preset--color--bright)}
:where(.wp-block-media-text) {overflow:hidden}
:where(.wp-block-media-text) :where(.wp-block-media-text__media img,.wp-block-media-text__media video) {border-radius:8px}
:where(.wp-block-media-text) :where(.wp-block-media-text__content) {padding:1.5rem}
:where(.wp-block-audio) :where(audio) {display:block;width:100%;border:1px solid var(--ct-border);border-radius:12px;background:var(--wp--preset--color--ice);accent-color:var(--ct-accent)}
:where(.wp-block-video) :where(video) {display:block;width:100%;background:var(--ct-ink);accent-color:var(--ct-accent)}
:where(.wp-block-embed) :where(iframe) {max-width:100%;border-radius:12px}
:where(.wp-block-file) {border:1px solid var(--ct-border);border-radius:12px;background:var(--wp--preset--color--ice);padding:1.25rem;overflow-wrap:anywhere}
.wp-block-file .wp-block-file__button {font-size:.875rem;padding:.65rem 1rem;margin:.5rem 0 .5rem 1rem;opacity:1}
:where(.wp-block-file) :where(object) {max-width:100%;border-radius:8px}

/* Native disclosure and WordPress 6.9 accordion controls. */
:where(.wp-block-details) {transition:border-color var(--ct-motion-fast) var(--ct-ease),background-color var(--ct-motion-fast) var(--ct-ease),box-shadow var(--ct-motion-fast) var(--ct-ease)}
:where(.wp-block-details) :where(summary) {cursor:pointer;font-weight:700;font-family:var(--wp--preset--font-family--sans);color:var(--ct-ink);transition:color var(--ct-motion-fast) var(--ct-ease)}
:where(.wp-block-details) :where(summary)::marker {color:var(--ct-accent)}
:where(.wp-block-details:is(:hover,:focus-within,[open])) {border-color:var(--ct-accent);background:var(--wp--preset--color--ice)}
:where(.wp-block-details) :where(summary:focus-visible) {outline:3px solid var(--ct-accent);outline-offset:5px}
:where(.wp-block-details[open]) :where(summary) {margin-bottom:1rem}
:where(.wp-block-accordion) {border:1px solid var(--ct-border);border-radius:12px;overflow:hidden}
:where(.wp-block-accordion-item+.wp-block-accordion-item) {border-top:1px solid var(--ct-border)}
.wp-block-accordion .wp-block-accordion-heading {font-size:1.125rem;margin:0}
.wp-block-accordion-heading__toggle {font-family:var(--wp--preset--font-family--sans);font-weight:700;padding:1.25rem;color:var(--ct-ink);transition:color var(--ct-motion-fast) var(--ct-ease),background-color var(--ct-motion-fast) var(--ct-ease)}
.wp-block-accordion-heading__toggle:is(:hover,:focus-visible) {background:var(--wp--preset--color--ice);color:var(--ct-accent)}
:where(.wp-block-accordion-panel) {padding:0 1.25rem 1.25rem}

/* Widget lists, calendar, taxonomy, social icons and legacy widget wrappers. */
:where(.wp-block-archives-list,.wp-block-categories-list:not(.ct-topic-list),.wp-block-page-list) {list-style:none;padding-inline-start:0}
:where(.wp-block-archives-list,.wp-block-categories-list:not(.ct-topic-list),.wp-block-page-list) :where(li) {margin-block:.65rem}
:where(.wp-block-archives-list,.wp-block-categories-list,.wp-block-page-list) :where(.children,.submenu-container) {padding-inline-start:1.25rem}
:where(.wp-block-latest-posts,.wp-block-rss) {list-style:none;padding-inline-start:0}
:where(.wp-block-latest-posts,.wp-block-rss) :where(li) {border-bottom:1px solid var(--ct-border);padding-block:1rem}
:where(.wp-block-latest-posts,.wp-block-rss) :where(li>a,.wp-block-rss__item-title a) {font-weight:700;text-decoration:none}
:where(.wp-block-latest-posts,.wp-block-rss) :where(time,.wp-block-rss__item-author) {display:block;font-size:.875rem;color:var(--wp--preset--color--muted);margin-top:.4rem}
:where(.wp-block-latest-posts) :where(img) {border-radius:8px}
:where(.wp-block-latest-comments) {padding-inline-start:0}
:where(.wp-block-latest-comments) :where(li) {border-bottom:1px solid var(--ct-border);padding-block:1rem}
:where(.wp-block-latest-comments) :where(time) {font-size:.875rem;color:var(--wp--preset--color--muted)}
:where(.wp-block-latest-comments) :where(p) {font-size:1rem;line-height:1.8}
:where(.wp-block-calendar) {border:1px solid var(--ct-border);border-radius:12px;padding:1rem}
:where(.wp-block-calendar) :where(table) {width:100%;border-collapse:collapse}
.wp-block-calendar table caption {font-weight:700;color:var(--ct-ink);padding:.5rem}
.wp-block-calendar table :is(th,td) {border:1px solid var(--ct-border);text-align:center;padding:.45rem}
.wp-block-calendar table th {background:var(--wp--preset--color--ice);font-weight:700}
.wp-block-calendar table td a {display:block;background:var(--wp--preset--color--bright);color:var(--ct-ink);border-radius:4px;font-weight:700;text-decoration:none}
:where(.wp-block-calendar) :where(.wp-calendar-nav) {margin-top:.75rem;font-size:.875rem}
:where(.wp-block-tag-cloud) {display:flex;gap:.6rem;align-items:center;flex-wrap:wrap}
:where(.wp-block-tag-cloud) :where(a) {border:1px solid var(--ct-border);border-radius:6px;padding:.25rem .65rem;text-decoration:none;line-height:1.5}
:where(.wp-block-tag-cloud) :where(a:is(:hover,:focus-visible)) {border-color:var(--ct-ink);background:var(--wp--preset--color--ice);color:var(--ct-ink);box-shadow:2px 2px 0 var(--ct-ink);transform:translateY(-2px)}
.wp-block-social-links:not(.has-icon-color):not(.is-style-logos-only) .wp-social-link {color:var(--ct-ink)}
.wp-block-social-links:not(.has-icon-background-color):not(.is-style-logos-only) .wp-social-link {background:var(--wp--preset--color--ice)}
.wp-block-social-links .wp-social-link {transition:transform var(--ct-motion-fast) var(--ct-ease),background-color var(--ct-motion-fast) var(--ct-ease),color var(--ct-motion-fast) var(--ct-ease),box-shadow var(--ct-motion-fast) var(--ct-ease)}
.wp-block-social-links .wp-social-link:is(:hover,:focus-within) {transform:translateY(-2px);box-shadow:0 3px 8px rgb(18 37 43 / 10%)}
.wp-block-social-links:not(.has-icon-background-color):not(.is-style-logos-only) .wp-social-link:is(:hover,:focus-within) {background:var(--wp--preset--color--bright)}
:where(.wp-block-social-links.is-style-logos-only) :where(.wp-social-link:is(:hover,:focus-within)) {box-shadow:none}
:where(.wp-block-widget-group) {border:1px solid var(--ct-border);border-radius:12px;padding:1.5rem}

/* Comments, author, post and term query blocks inherit the same editorial system. */
:where(.wp-block-avatar) :where(img) {border-radius:50%}
:where(.wp-block-post-author) :where(img) {border-radius:50%}
:where(.wp-block-post-author) :where(.wp-block-post-author__name) {font-weight:700}
:where(.wp-block-post-author) :where(.wp-block-post-author__bio) {color:var(--wp--preset--color--muted);font-size:.9375rem}
:where(.wp-block-post-comments-form) :where(label) {display:block;font-size:.875rem;font-weight:550;margin-bottom:.4rem}
:where(.wp-block-post-comments-form) :where(textarea,input:not([type=submit]):not([type=checkbox])) {max-width:100%;border:1px solid var(--ct-border);border-radius:8px;padding:.8rem;background:var(--wp--preset--color--base);color:var(--ct-ink);font:inherit;transition:border-color var(--ct-motion-fast) var(--ct-ease),box-shadow var(--ct-motion-fast) var(--ct-ease)}
:where(.wp-block-post-comments-form) :where(.comment-form-cookies-consent label) {display:inline}
:where(.wp-block-post-comments-form) :where(input[type=checkbox]) {accent-color:var(--ct-accent)}
:where(.wp-block-comments) :where(.wp-block-comment-template) {list-style:none;padding-inline-start:0}
:where(.wp-block-comments) :where(.wp-block-comment-template ol) {padding-inline-start:1.5rem;border-inline-start:1px solid var(--ct-border)}
:where(.wp-block-comments) :where(.wp-block-comment-template>li) {padding-block:1rem}
:where(.wp-block-comment-reply-link,.wp-block-comment-edit-link) {font-size:.875rem;font-weight:650}
:where(.wp-block-query-pagination,.wp-block-comments-pagination) {gap:.75rem;align-items:center;margin-block:2rem}
:where(.wp-block-comments-pagination) :where(.page-numbers,.wp-block-comments-pagination-previous,.wp-block-comments-pagination-next) {display:inline-flex;justify-content:center;align-items:center;min-width:38px;min-height:38px;padding:.25rem .6rem;border:1px solid var(--ct-border);border-radius:6px;text-decoration:none}
:where(.wp-block-query-no-results) {border:1px solid var(--ct-border);border-radius:12px;background:var(--wp--preset--color--ice);padding:2rem}
:where(.wp-block-loginout) :where(a) {font-weight:650}
:where(.wp-block-terms-query,.wp-block-term-template,.wp-block-post-template) {min-width:0}
:where(.wp-block-term-count,.wp-block-query-total) {color:var(--wp--preset--color--muted);font-size:.875rem}
:where(.wp-block-site-logo) :where(img) {height:auto}
:where(.wp-block-group,.wp-block-column,.wp-block-columns,.wp-block-buttons) {min-width:0}
:where(.wp-block-navigation) :where(.wp-block-navigation__submenu-container) {border:1px solid var(--ct-border);border-radius:10px;box-shadow:0 8px 24px rgb(18 37 43 / 8%);padding:.4rem}
:where(.wp-block-navigation__submenu-container) :where(.wp-block-navigation-item__content) {padding:.5rem .75rem;border-radius:6px}
:where(.wp-block-navigation__submenu-container) :where(.wp-block-navigation-item__content:is(:hover,:focus-visible)) {background:var(--wp--preset--color--ice)}

/* Optional native block styles, selectable in the editor Styles panel. */
.is-style-ct-panel {border:1px solid var(--ct-border);border-radius:12px;padding:2rem;background:var(--wp--preset--color--ice)}
.is-style-ct-frame {border:1px solid var(--ct-ink);border-radius:12px;padding:.5rem;background:var(--wp--preset--color--base);box-shadow:4px 4px 0 var(--ct-ink)}
.is-style-ct-frame :where(img,video,iframe) {border-radius:8px}
.wp-block-quote.is-style-ct-callout {border:1px solid var(--ct-ink);border-inline-start:6px solid var(--wp--preset--color--bright);border-radius:12px;box-shadow:4px 4px 0 var(--ct-ink)}
.wp-block-list.is-style-ct-checklist {list-style:none;padding-inline-start:0}
.wp-block-list.is-style-ct-checklist>li {position:relative;padding-inline-start:1.8rem}
.wp-block-list.is-style-ct-checklist>li::before {content:'✓';position:absolute;inset-inline-start:0;color:var(--ct-accent);font-weight:750}
.wp-block-table.is-style-ct-compact :where(th,td) {padding:.5rem .75rem;font-size:.9375rem}
.wp-block-heading.is-style-ct-accent {border-inline-start:4px solid var(--wp--preset--color--bright);padding-inline-start:1rem}

/* Native responsive layout behavior remains in WordPress's block styles. */
@media(max-width:600px) {
  .ct-single {padding-block:1.5rem 2.5rem}
  .ct-article-hero {padding:2rem 0}
  .ct-article-hero>.ct-article-title {font-size:2.5rem}
  .ct-article-hero .ct-article-deck {font-size:1rem}
  .ct-single>.ct-single-image {margin-block:1.5rem 2rem!important}
  .ct-single>.ct-single-image img {max-height:320px}
  .ct-single .ct-reading>p:first-child {font-size:1.125em}
  .ct-author-card {padding:1.5rem}
  .ct-story-nav {grid-template-columns:1fr}
  .ct-single .comment-respond {padding:1.5rem}
  .wp-block-file .wp-block-file__button {margin-inline-start:0}
  .wp-block-calendar table :is(th,td) {padding:.3rem}
  :where(.wp-block-media-text) :where(.wp-block-media-text__content) {padding:1rem 0}
  .is-style-ct-panel {padding:1.5rem}
}
@media(prefers-reduced-motion:reduce) {
  .ct-story-nav>.wp-block-post-navigation-link,
  .ct-term-pills a,.wp-block-tag-cloud a,.wp-block-social-links .wp-social-link,
  .wp-block-file .wp-block-file__button {transform:none!important}
}
/* Page-break links and other text-only structural blocks inherit the type
   system; their rendered navigation still receives the pagination treatment. */
:where(.post-nav-links) {display:flex;flex-wrap:wrap;align-items:center;gap:.5rem;font-size:.9375rem}
:where(.post-nav-links) :where(.post-page-numbers) {display:inline-flex;align-items:center;justify-content:center;min-width:38px;min-height:38px;padding:.25rem .6rem;border:1px solid var(--ct-border);border-radius:6px;text-decoration:none}
:where(.post-nav-links) :where(.post-page-numbers.current) {background:var(--wp--preset--color--bright);color:var(--ct-ink)}
:where(.post-nav-links) :where(a.post-page-numbers:is(:hover,:focus-visible)) {background:var(--wp--preset--color--ice);border-color:var(--ct-accent)}

.wp-block-accordion-heading__toggle .wp-block-accordion-heading__toggle-title {text-decoration:none}
.wp-block-accordion-heading__toggle:is(:hover,:focus-visible) .wp-block-accordion-heading__toggle-title {text-decoration:none}
