/* What theme.json can't express: offset-shadow cards, chips, hero background, callouts. */
:root { --txrx-shadow: 5px 5px 0 var(--wp--preset--color--ink); }

/* header */
.txrx-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 700; font-size: 1.25rem; color: var(--wp--preset--color--ink); }
.txrx-logo img { width: 30px; height: 30px; }
.txrx-logo .txrx-slash { color: var(--wp--preset--color--accent); }
.txrx-header { border-bottom: 1px solid var(--wp--preset--color--line); }
.txrx-header .wp-block-navigation-item.current-menu-item > a,
.txrx-header .wp-block-navigation-item a[aria-current="page"] { text-decoration: underline; text-decoration-color: var(--wp--preset--color--accent); text-decoration-thickness: 2.5px; text-underline-offset: 6px; }

/* hero */
.txrx-hero {
  background-image:
    linear-gradient(30deg, transparent 49.4%, #e6ebf2 49.6%, #e6ebf2 50.4%, transparent 50.6%),
    linear-gradient(-30deg, transparent 49.4%, #e6ebf2 49.6%, #e6ebf2 50.4%, transparent 50.6%);
  background-size: 56px 32px;
}
.txrx-eyebrow { font-family: var(--wp--preset--font-family--mono); font-weight: 600; font-size: 0.75rem; letter-spacing: .08em; color: var(--wp--preset--color--accent); display: flex; align-items: center; gap: 8px; }
.txrx-eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 4px color-mix(in srgb, currentColor 25%, transparent); }
.txrx-hero h1 em { font-style: normal; background: linear-gradient(transparent 62%, color-mix(in srgb, var(--wp--preset--color--accent) 30%, transparent) 62%); }
.txrx-hint { font-family: var(--wp--preset--font-family--mono); font-size: 0.75rem; color: var(--wp--preset--color--muted); line-height: 1.8; }
.txrx-tm { font-family: var(--wp--preset--font-family--mono); font-size: 0.6875rem; color: var(--wp--preset--color--muted); margin: 0.5rem 0 0; text-align: right; }
.txrx-hint kbd { font: 600 0.7rem var(--wp--preset--font-family--mono); border: 1.5px solid var(--wp--preset--color--ink); border-bottom-width: 3px; border-radius: 5px; padding: 0 5px; background: #fff; color: var(--wp--preset--color--ink); }

/* buttons */
.wp-block-button.is-style-txrx-ghost .wp-block-button__link { background: var(--wp--preset--color--surface); color: var(--wp--preset--color--ink); box-shadow: 4px 4px 0 var(--wp--preset--color--ink); }
.wp-block-button.is-style-txrx-ghost .wp-block-button__link:hover { box-shadow: 6px 6px 0 var(--wp--preset--color--ink); }
.wp-block-button__link { transition: box-shadow .15s, transform .15s; }
.wp-block-button__link:hover { transform: translate(-1px, -1px); }

/* post cards (Query Loop with "Iso cards" style or .txrx-cards class) */
.is-style-txrx-cards .wp-block-post-template > li,
.txrx-cards .wp-block-post-template > li { background: var(--wp--preset--color--surface); border: 1.5px solid var(--wp--preset--color--ink); border-radius: 14px; overflow: hidden; box-shadow: var(--txrx-shadow); transition: transform .15s, box-shadow .15s; display: flex; flex-direction: column; }
.is-style-txrx-cards .wp-block-post-template > li:hover,
.txrx-cards .wp-block-post-template > li:hover { transform: translate(-2px, -2px); box-shadow: 7px 7px 0 var(--wp--preset--color--accent); }
.txrx-cards .wp-block-post-featured-image, .is-style-txrx-cards .wp-block-post-featured-image { margin: 0; background: var(--wp--preset--color--paper); border-bottom: 1.5px solid var(--wp--preset--color--ink); }
.txrx-cards .wp-block-post-featured-image img, .is-style-txrx-cards .wp-block-post-featured-image img { aspect-ratio: 16 / 9; object-fit: cover !important; width: 100%; height: auto; }
.txrx-card-body { padding: 14px 16px 18px; }
.txrx-card-body .wp-block-post-title { font-size: 1.2rem; margin: 10px 0 6px; }
.txrx-card-body .wp-block-post-title a { text-decoration: none; }
.wp-block-post-terms a { display: inline-block; background: var(--wp--preset--color--accent); color: #fff; padding: 3px 8px; border-radius: 6px; text-decoration: none; }
.wp-block-post-terms .wp-block-post-terms__separator { display: none; }
.wp-block-post-terms a + a, .wp-block-post-terms span + a { margin-left: 6px; }

/* section separators */
.txrx-section { border-top: 1px solid var(--wp--preset--color--line); }
.txrx-sub { color: var(--wp--preset--color--muted); }

/* numbered steps that match diagram tags */
ol.txrx-steps { list-style: none; padding: 0; counter-reset: s; }
ol.txrx-steps li { counter-increment: s; display: flex; gap: 12px; margin-bottom: 14px; }
ol.txrx-steps li::before { content: counter(s); flex: none; width: 24px; height: 24px; border-radius: 6px; background: var(--wp--preset--color--ink); color: #fff; font: 600 12px var(--wp--preset--font-family--mono); display: grid; place-items: center; margin-top: 2px; }
.txrx-diagram img { background: var(--wp--preset--color--surface); border: 1.5px solid var(--wp--preset--color--ink); border-radius: 14px; padding: 8px; box-shadow: var(--txrx-shadow); }

/* callouts */
.wp-block-group.is-style-txrx-incident, .wp-block-group.is-style-txrx-tip { background: var(--wp--preset--color--surface); border: 1.5px solid var(--wp--preset--color--ink); border-left: 6px solid var(--wp--preset--color--accent); border-radius: 10px; padding: 12px 16px; }
.wp-block-group.is-style-txrx-tip { border-left-color: var(--wp--preset--color--hoodie-blue); }
.wp-block-group.is-style-txrx-incident::before, .wp-block-group.is-style-txrx-tip::before { display: block; font: 600 0.7rem var(--wp--preset--font-family--mono); letter-spacing: .04em; margin-bottom: 4px; }
.wp-block-group.is-style-txrx-incident::before { content: "⚠ INCIDENT NOTE"; color: var(--wp--preset--color--accent); }
.wp-block-group.is-style-txrx-tip::before { content: "ⓘ TIP"; color: var(--wp--preset--color--hoodie-blue); }

/* footer */
.txrx-footer { border-top: 1.5px solid var(--wp--preset--color--ink); background: var(--wp--preset--color--surface); font-family: var(--wp--preset--font-family--mono); font-size: 0.8rem; color: var(--wp--preset--color--muted); }
.txrx-footer a { color: var(--wp--preset--color--muted); }

@media (prefers-reduced-motion: reduce) { .wp-block-post-template > li, .wp-block-button__link { transition: none; } }

/* keep reading */
.txrx-related { margin-top: 3rem; background: var(--wp--preset--color--surface); border: 1.5px solid var(--wp--preset--color--ink); border-radius: 14px; box-shadow: var(--txrx-shadow); padding: 16px 20px; }
.txrx-related__title { font: 600 0.75rem var(--wp--preset--font-family--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--wp--preset--color--accent); margin: 0 0 6px; }
.txrx-related ul { margin: 0; padding-left: 1.1rem; }
.txrx-related li { margin: 4px 0; }

/* about page */
.txrx-card { background: var(--wp--preset--color--surface); border: 1.5px solid var(--wp--preset--color--ink); border-radius: 14px; box-shadow: var(--txrx-shadow); padding: 18px 20px; height: 100%; }
.txrx-card h3 { font-size: 1.3rem; margin-top: 4px; }
.txrx-card p:not(.txrx-card__icon) { font-size: 1rem; line-height: 1.55; }
.txrx-card .txrx-card__icon { font: 600 0.75rem var(--wp--preset--font-family--mono); color: var(--wp--preset--color--accent); letter-spacing: .06em; }
ul.txrx-chips { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
ul.txrx-chips li { font: 600 0.75rem var(--wp--preset--font-family--mono); border: 1.5px solid var(--wp--preset--color--ink); border-radius: 6px; padding: 4px 10px; background: var(--wp--preset--color--surface); margin: 0; }
.txrx-about-hero img { max-width: 280px; margin-inline: auto; display: block; }

/* single post meta (category + date, no author) */
.txrx-post-meta { gap: 12px; margin-block: 8px 24px; }

/* isometric avatar (About page) */
.txrx-avatar { max-width: 440px; margin-inline: auto; }
.txrx-avatar svg { width: 100%; height: auto; display: block; overflow: visible; }
.txrx-avatar img { max-width: 280px; display: block; margin-inline: auto; }
.txrx-avatar__body { animation: txrx-bob 3.2s ease-in-out infinite; }
.txrx-avatar__eye { transform-box: fill-box; transform-origin: center; animation: txrx-blink 5.5s infinite; }
.txrx-avatar__led { animation: txrx-led 1.6s ease-in-out infinite; }
.txrx-avatar__float { animation: txrx-float 4s ease-in-out infinite; }
.txrx-avatar__float.b { animation-delay: -1.3s; }
.txrx-avatar__float.c { animation-delay: -2.6s; }
@keyframes txrx-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-4px); } }
@keyframes txrx-blink { 0%, 95%, 100% { transform: scaleY(1); } 97% { transform: scaleY(.1); } }
@keyframes txrx-led { 0%, 100% { opacity: 1; } 50% { opacity: .25; } }
@keyframes txrx-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@media (prefers-reduced-motion: reduce) {
  .txrx-avatar__body, .txrx-avatar__eye, .txrx-avatar__led, .txrx-avatar__float { animation: none; }
}

/* animated article illustrations */
.wp-block-image.txrx-anim { max-width: 620px; margin-inline: auto; }
.wp-block-image.txrx-anim img { width: 100%; height: auto; }

/* featured image = article illustration */
.txrx-featured-iso { margin: 0; background: var(--wp--preset--color--paper); }
.txrx-featured-iso img { width: 100%; height: auto; display: block; object-fit: contain; }
.wp-block-post-template .txrx-featured-iso { border-bottom: 1.5px solid var(--wp--preset--color--ink); }
body.single-post .txrx-featured-iso { border: 1.5px solid var(--wp--preset--color--ink); border-radius: 14px; box-shadow: var(--txrx-shadow); background: var(--wp--preset--color--surface); }
body.single-post .wp-block-post-template .txrx-featured-iso { border: 0; border-bottom: 1.5px solid var(--wp--preset--color--ink); border-radius: 0; box-shadow: none; }
.txrx-cards .txrx-featured-iso img, .is-style-txrx-cards .txrx-featured-iso img { object-fit: contain !important; padding: 6px; }

/* single post: wide layout, title sits close to the header */
body.single-post .wp-block-post-title { margin-top: 0; }
body.single-post .wp-block-post-content > .wp-block-image.txrx-anim { max-width: 900px; }

/* /play/: the canvas game iframe sits flush under the header */
.txrx-play-frame { width: 100%; height: calc(100vh - var(--txrx-header-h, 64px)); border: 0; display: block; }
@supports (height: 100dvh) { .txrx-play-frame { height: calc(100dvh - var(--txrx-header-h, 64px)); } }
