/*
Theme Name: Tom Heckbert
Theme URI: https://timecoded.substack.com
Author: Tom Heckbert
Description: A lean, museum-style block theme for Tom Heckbert's books, shop, blog and the Timecoded newsletter. Book listings come from the free companion plugin Tom Heckbert Books.
Version: 1.2.7
Requires at least: 6.6
Tested up to: 7.1
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: tom-heckbert
Tags: block-patterns, full-site-editing, editor-style, wide-blocks, accessibility-ready
*/

/* Small additions theme.json cannot express. Prefix th- keeps them out of core's way. */
:root { --th-line: var(--wp--preset--color--limestone); }
.skip-link:focus { background: var(--wp--preset--color--ink); color: var(--wp--preset--color--parchment); }

/* Labels (museum caption style) */
.th-label, .th-cat { font-family: var(--wp--preset--font-family--sans); font-size: .75rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--wp--preset--color--graphite); }
.th-cat, .th-label.is-bronze { color: var(--wp--preset--color--bronze); }
.th-lede { font-family: var(--wp--preset--font-family--display); font-size: var(--wp--preset--font-size--large); line-height: 1.35; color: var(--wp--preset--color--graphite); }

/* Header */
.th-header { border-bottom: 1px solid var(--th-line); padding-top: 1.1rem; padding-bottom: 1.1rem; }
.th-header .wp-block-site-title { font-variant: small-caps; }
.th-header .wp-block-navigation a { padding: .5rem 0; border-bottom: 1px solid transparent; }
.th-header .wp-block-navigation a:hover, .th-header .wp-block-navigation .current-menu-item > a { border-color: var(--wp--preset--color--bronze); }

/* Sections */
.th-section { padding-top: var(--wp--preset--spacing--70); padding-bottom: var(--wp--preset--spacing--70); }
.th-section.has-night-background-color .th-label { color: var(--wp--preset--color--gold); }
.th-section.has-night-background-color a:where(:not(.wp-element-button)) { color: var(--wp--preset--color--gold); }
.th-section-head { margin-bottom: var(--wp--preset--spacing--50); }

/* Exhibit object: image on a white mount with collection-label caption */
.is-style-th-mount img, .th-object .wp-block-image img { background: var(--wp--preset--color--white); padding: clamp(.6rem, 1.5vw, 1.1rem); box-shadow: var(--wp--custom--shadow--mount); aspect-ratio: 5 / 8; object-fit: cover; width: 100%; height: auto; }
.th-object { gap: 0; }
.th-object .th-caption { margin-top: .9rem; border-top: 1px solid var(--th-line); padding-top: .6rem; gap: .15rem; }
.th-object .th-caption > * { margin: 0; }
.th-object-title { font-size: 1.2rem !important; font-weight: 600; line-height: 1.2; }
.th-object-title a { color: var(--wp--preset--color--ink); text-decoration: none; }
.th-object-title a:hover { color: var(--wp--preset--color--bronze); }
.th-meta { font-size: .82rem; color: var(--wp--preset--color--graphite); }
@media (prefers-reduced-motion: no-preference) { .th-object img { transition: transform .3s; } .th-object:hover img { transform: translateY(-3px); } }

/* Grids */
.th-grid { display: grid !important; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--wp--preset--spacing--50) clamp(1rem, 2.5vw, 2rem); }
@media (min-width: 700px) { .th-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .th-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.th-wings { gap: 1px !important; background: var(--th-line); border: 1px solid var(--th-line); }
.th-wings > .wp-block-column, .th-wings > .wp-block-group { background: var(--wp--preset--color--parchment); padding: var(--wp--preset--spacing--50) var(--wp--preset--spacing--40); }


.wp-block-button__link { min-height: 44px; display: inline-flex; align-items: center; }

/* Blog */
.th-blog-item { border-top: 1px solid var(--th-line); padding: var(--wp--preset--spacing--50) 0; }
.th-prose { font-size: 1.125rem; line-height: 1.75; }
.th-prose > p:first-of-type::first-letter { float: left; font-family: var(--wp--preset--font-family--display); font-size: 4.6rem; line-height: .8; padding: .35rem .5rem 0 0; color: var(--wp--preset--color--bronze); }
.th-prose figcaption, .wp-block-image figcaption { border-top: 1px solid var(--th-line); padding-top: .5rem; text-align: left; }

/* Timecoded feed (core RSS block) */
.th-rss { padding: 0; }
.th-rss .wp-block-rss__item { border-top: 1px solid rgba(244, 239, 230, .3); padding-top: 1rem; }
.th-rss .wp-block-rss__item-title a { font-family: var(--wp--preset--font-family--display); font-size: 1.6rem; line-height: 1.15; text-decoration: none; }
.th-rss .wp-block-rss__item-publish-date { font-size: .75rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--wp--preset--color--gold); }
.th-rss .wp-block-rss__item-excerpt { font-size: .95rem; opacity: .85; }

/* Footer */
.th-footer { color: #D8D1C4; font-size: .9rem; }
.th-footer a { color: var(--wp--preset--color--parchment); }
.th-footer .th-fine { border-top: 1px solid #3A3631; padding-top: 1rem; font-size: .78rem; color: #B5AC9E; }

/* Layout fixes */
.wp-site-blocks > footer, .wp-site-blocks > main { margin-block-start: 0; }
main > .alignfull:first-child { margin-block-start: 0; }
.th-vitrine { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; align-items: end; }
.th-footer ul { list-style: none; padding-left: 0; }
.th-facts { gap: .35rem; }
.th-facts > p { margin: 0; }
.has-night-background-color .wp-block-rss__item-title a { color: var(--wp--preset--color--parchment); }
.th-rss-light .wp-block-rss__item { border-top-color: var(--wp--preset--color--limestone); }
.th-rss-light .wp-block-rss__item-title a { color: var(--wp--preset--color--ink); }
.th-rss-light .wp-block-rss__item-publish-date { color: var(--wp--preset--color--bronze); }

/* Sidebars */
.th-has-sidebar { gap: clamp(2rem, 5vw, 4rem); }
.th-sidebar { font-size: .95rem; }
.th-sidebar h2 { font-size: 1.3rem; margin-top: 2rem; }
.th-sidebar .wp-block-latest-posts, .th-sidebar .wp-block-categories, .th-widgets ul { padding-left: 0; list-style: none; }
.th-sidebar-inner { border-top: 1px solid var(--th-line); padding-top: 1rem; }
/* FAQ */
.th-faq .wp-block-details { border-top: 1px solid var(--th-line); padding: 1rem 0; }
.th-faq summary { font-family: var(--wp--preset--font-family--display); font-size: 1.35rem; cursor: pointer; }
/* Footer social links */
.th-footer .th-social ul { flex-direction: column; align-items: flex-start; gap: .4rem; }
.th-footer .th-social a { font-size: .9rem; letter-spacing: 0; text-transform: none; font-weight: 400; }

/* Headings never wrap beside a drop cap. */
.th-prose :is(h2, h3) { clear: both; }

/* Books coming soon (shown while no book is switched on) */
.th-soon{max-width:40rem;margin:0 auto;padding:clamp(1.5rem,4vw,2.5rem);text-align:center;background:var(--wp--preset--color--parchment,#f6f0e4);border:1px solid var(--wp--preset--color--gold,#c9a458);box-shadow:inset 0 0 0 6px var(--wp--preset--color--parchment,#f6f0e4),inset 0 0 0 7px rgba(122,78,34,.35)}
.th-soon .th-soon-title{margin:.25rem 0 .75rem;font-family:var(--wp--preset--font-family--display,"Cormorant Garamond",serif);font-size:clamp(1.6rem,3vw,2.2rem)}
.th-soon p{margin:0 auto 1rem;max-width:32rem}
.th-soon .wp-block-buttons{justify-content:center}
.th-soon.is-compact{text-align:left;margin:0}
.th-soon.is-compact .wp-block-buttons{justify-content:flex-start}

/* Latest from the blog (homepage) */
.th-latest-posts .wp-block-post-template { gap: clamp(1.25rem, 3vw, 2rem); }
.th-latest-posts .wp-block-post { display: flex; flex-direction: column; gap: .4rem; }
.th-latest-posts .wp-block-post-featured-image { margin: 0 0 .5rem; }
.th-latest-posts .wp-block-post-featured-image img { border: 1px solid var(--th-line, #ddd3c2); }
.th-latest-posts .wp-block-post-title { margin: 0; }
.th-latest-posts .wp-block-post-date { font-size: .8rem; letter-spacing: .06em; text-transform: uppercase; color: var(--wp--preset--color--bronze, #7a4e22); }
.th-latest-posts .wp-block-post-excerpt { margin: 0; }
.th-latest-posts .wp-block-post-excerpt__more-text { display: none; }
.th-latest-empty { font-style: italic; color: var(--wp--preset--color--bronze, #7a4e22); max-width: 36rem; }
.th-latest-all a { font-weight: 600; }

/* Homepage Coin of the month, filled from the newest Coin of the Month post: show the whole coin, no portrait crop. */
.th-home-coinmonth.th-cotm-live .th-cotm-figure img { aspect-ratio: auto; object-fit: contain; }

/* Reader comments (1.2.3). Blog posts only; every comment waits for approval. */
.th-comments-wrap { padding-top: 0; }
.th-comments { max-width: 42rem; margin-inline: auto; border-top: 1px solid var(--th-line); padding-top: var(--wp--preset--spacing--50); }
.th-comments-title, .th-comments .comment-reply-title { font-family: var(--wp--preset--font-family--display); font-size: var(--wp--preset--font-size--x-large); font-weight: 600; line-height: 1.15; margin: 0 0 var(--wp--preset--spacing--40); }
.th-comments .comment-reply-title small { display: block; margin-top: .5rem; font-family: var(--wp--preset--font-family--sans); font-size: var(--wp--preset--font-size--small); font-weight: 400; }
.th-comments .comment-reply-title small a { color: var(--wp--preset--color--bronze); }
.th-comments .wp-block-comment-template { list-style: none; margin: 0 0 var(--wp--preset--spacing--50); padding: 0; }
.th-comments .wp-block-comment-template li { margin: 0; }
.th-comments .wp-block-comment-template ol { list-style: none; margin: 0; padding: 0 0 0 clamp(1rem, 4vw, 2rem); border-left: 2px solid var(--wp--preset--color--gold); }
.th-comment { padding: var(--wp--preset--spacing--40) 0; border-bottom: 1px solid var(--th-line); }
.th-comment-meta { gap: .35rem 1rem; align-items: baseline; margin: 0 0 .5rem; }
.th-comment .wp-block-comment-author-name { font-family: var(--wp--preset--font-family--sans); font-weight: 600; font-size: var(--wp--preset--font-size--medium); color: var(--wp--preset--color--ink); }
.th-comment .wp-block-comment-date, .th-comment .wp-block-comment-date a { font-size: .8rem; letter-spacing: .06em; text-transform: uppercase; color: var(--wp--preset--color--graphite); text-decoration: none; }
.th-comment .wp-block-comment-content { line-height: 1.7; overflow-wrap: anywhere; }
.th-comment .wp-block-comment-content p { margin: 0 0 .75rem; }
.th-comment .comment-awaiting-moderation { display: block; margin: 0 0 .75rem; padding: .75rem 1rem; font-style: normal; background: var(--wp--preset--color--stone); border-left: 4px solid var(--wp--preset--color--bronze); color: var(--wp--preset--color--ink); }
.th-comment .wp-block-comment-reply-link a { font-size: .8rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--wp--preset--color--bronze); }
.th-comments .comment-respond { background: var(--wp--preset--color--white); border: 1px solid var(--th-line); padding: clamp(1.25rem, 5vw, 2.25rem); }
.th-comments .wp-block-comment-template .comment-respond { margin: var(--wp--preset--spacing--30) 0; }
.th-comment-note { margin: 0 0 var(--wp--preset--spacing--40); padding: .75rem 1rem; background: var(--wp--preset--color--parchment); border-left: 4px solid var(--wp--preset--color--gold); font-size: var(--wp--preset--font-size--small); line-height: 1.6; color: var(--wp--preset--color--ink); }
.th-comments .comment-form { display: flex; flex-direction: column; gap: var(--wp--preset--spacing--30); }
.th-comments .comment-form > p { margin: 0; }
.th-comments .comment-form label { display: block; margin-bottom: .35rem; font-family: var(--wp--preset--font-family--sans); font-size: var(--wp--preset--font-size--small); font-weight: 600; color: var(--wp--preset--color--ink); }
.th-comments .comment-form .required { color: var(--wp--preset--color--bronze); }
.th-comments .comment-form :is(input[type="text"], input[type="email"], textarea) { box-sizing: border-box; width: 100%; padding: .75rem .85rem; font: inherit; font-size: 1rem; color: var(--wp--preset--color--ink); background: var(--wp--preset--color--white); border: 1px solid var(--wp--preset--color--graphite); border-radius: 0; }
.th-comments .comment-form textarea { min-height: 9rem; resize: vertical; }
.th-comments .comment-form :is(input, textarea):focus-visible { outline: 2px solid var(--wp--preset--color--bronze); outline-offset: 2px; border-color: var(--wp--preset--color--bronze); }
.th-comments .comment-form-cookies-consent { display: flex; gap: .6rem; align-items: flex-start; }
.th-comments .comment-form-cookies-consent input { width: 1.15rem; height: 1.15rem; margin: .15rem 0 0; accent-color: var(--wp--preset--color--bronze); flex: none; }
.th-comments .comment-form-cookies-consent label { margin: 0; font-weight: 400; }
.th-comments .comment-form-th-list { display: flex; gap: .6rem; align-items: flex-start; margin: 0; }
.th-comments .comment-form-th-list input { width: 1.15rem; height: 1.15rem; margin: .15rem 0 0; accent-color: var(--wp--preset--color--bronze); flex: none; }
.th-comments .comment-form-th-list label { margin: 0; font-weight: 600; }
.th-comments .comment-form > .th-list-privacy { margin: -.5rem 0 0 1.75rem; font-size: var(--wp--preset--font-size--small); line-height: 1.55; color: var(--wp--preset--color--graphite); }
.th-comments .th-list-privacy a { color: var(--wp--preset--color--bronze); }
.th-comments .form-submit .submit, .th-comments .form-submit .wp-block-button__link { min-height: 2.75rem; cursor: pointer; }
.th-comments .logged-in-as { font-size: var(--wp--preset--font-size--small); color: var(--wp--preset--color--graphite); }
.th-comments .logged-in-as a { color: var(--wp--preset--color--bronze); }
.th-comments .wp-block-comments-pagination { margin: 0 0 var(--wp--preset--spacing--40); }
.th-has-sidebar .th-comments-part .th-comments { max-width: none; margin-top: var(--wp--preset--spacing--50); }
@media (min-width: 48rem) {
	.th-comments .comment-form { display: grid; grid-template-columns: 1fr 1fr; column-gap: var(--wp--preset--spacing--40); }
	.th-comments .comment-form > :is(.th-comment-note, .comment-form-comment, .comment-form-cookies-consent, .comment-form-th-list, .th-list-privacy, .form-submit, .logged-in-as, .comment-notes) { grid-column: 1 / -1; }
}

/* 1.2.4 Share row: equal round icon buttons on one line, name shown as a tooltip on hover or keyboard focus.
   Overrides the plugin's share.css (higher specificity, so load order does not matter). */
body .th-share.th-share--icons { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1.1rem; }
body .th-share.th-share--icons .th-share-label { flex: 0 0 auto; margin: 0; }
body .th-share.th-share--icons .th-share-list { display: flex; flex-wrap: nowrap; align-items: center; gap: .5rem; flex: 1 1 auto; min-width: 0; margin: 0; padding: 0; list-style: none; }
body .th-share.th-share--icons .th-share-list li { position: relative; flex: 0 0 auto; margin: 0; }
body .th-share.th-share--icons .th-share-btn { position: relative; box-sizing: border-box; display: inline-flex; align-items: center; justify-content: center; gap: 0; width: 44px; height: 44px; min-width: 44px; min-height: 44px; padding: 0; border: 1px solid var(--wp--preset--color--limestone); border-radius: 50%; background: var(--wp--preset--color--white); color: var(--wp--preset--color--ink); text-decoration: none; cursor: pointer; transition: color .15s, border-color .15s, background-color .15s; }
body .th-share.th-share--icons .th-share-btn .th-share-icon { width: 18px; height: 18px; }
body .th-share.th-share--icons .th-share-btn:hover { color: var(--wp--preset--color--bronze); border-color: var(--wp--preset--color--bronze); background: var(--wp--preset--color--parchment); text-decoration: none; }
body .th-share.th-share--icons .th-share-btn:focus-visible { outline: 2px solid var(--wp--preset--color--bronze); outline-offset: 3px; color: var(--wp--preset--color--bronze); border-color: var(--wp--preset--color--bronze); }
body .th-share.th-share--icons .th-share-btn.is-done { color: var(--wp--preset--color--white); background: var(--wp--preset--color--bronze); border-color: var(--wp--preset--color--bronze); }
/* Name: visually hidden (screen readers use it, or the link's aria-label), shown as a tooltip on hover/focus. */
body .th-share.th-share--icons .th-share-btn .th-share-txt { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0; }
body .th-share.th-share--icons .th-share-btn:focus-visible .th-share-txt { width: auto; height: auto; margin: 0; overflow: visible; clip: auto; clip-path: none; left: 50%; bottom: calc(100% + 9px); transform: translateX(-50%); padding: .4rem .6rem; border-radius: 2px; background: var(--wp--preset--color--ink); color: var(--wp--preset--color--parchment); font: 600 .68rem/1 var(--wp--preset--font-family--sans, system-ui, sans-serif); letter-spacing: .08em; text-transform: uppercase; pointer-events: none; z-index: 20; box-shadow: 0 2px 6px rgba(31, 29, 26, .18); }
body .th-share.th-share--icons .th-share-btn:focus-visible .th-share-txt::after { content: ""; position: absolute; top: 100%; left: 50%; margin-left: -5px; border: 5px solid transparent; border-top-color: var(--wp--preset--color--ink); }
@media (hover: hover) {
	body .th-share.th-share--icons .th-share-btn:hover .th-share-txt { width: auto; height: auto; margin: 0; overflow: visible; clip: auto; clip-path: none; left: 50%; bottom: calc(100% + 9px); transform: translateX(-50%); padding: .4rem .6rem; border-radius: 2px; background: var(--wp--preset--color--ink); color: var(--wp--preset--color--parchment); font: 600 .68rem/1 var(--wp--preset--font-family--sans, system-ui, sans-serif); letter-spacing: .08em; text-transform: uppercase; pointer-events: none; z-index: 20; box-shadow: 0 2px 6px rgba(31, 29, 26, .18); }
	body .th-share.th-share--icons .th-share-btn:hover .th-share-txt::after { content: ""; position: absolute; top: 100%; left: 50%; margin-left: -5px; border: 5px solid transparent; border-top-color: var(--wp--preset--color--ink); }
}
.has-night-background-color .th-share.th-share--icons .th-share-btn { background: transparent; color: inherit; }
/* Phones: label above, buttons stay on one line; tighter gap, and the row scrolls sideways if it still does not fit.
   The padding/negative margin pair leaves room for the tooltip inside the scrolling row. */
@media (max-width: 600px) {
	body .th-share.th-share--icons .th-share-label { flex-basis: 100%; }
	body .th-share.th-share--icons .th-share-list { gap: .375rem; overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: none; padding: 2.4rem 4px 4px; margin: -2.4rem -4px -4px; pointer-events: none; }
	body .th-share.th-share--icons .th-share-list::-webkit-scrollbar { display: none; }
	body .th-share.th-share--icons .th-share-list li { pointer-events: auto; }
}

/* 1.2.4 A columns row left with a single column (for example an About page with no photo) keeps a readable line length. */
.th-section > .wp-block-columns > .wp-block-column:only-child { max-width: 46rem; }

/* 1.2.4 Text selection is off for visitors on the public site (see functions.php); form fields stay fully usable. */
body.th-noselect { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
body.th-noselect input, body.th-noselect textarea, body.th-noselect select, body.th-noselect [contenteditable], body.th-noselect [contenteditable] * { -webkit-user-select: text; user-select: text; -webkit-touch-callout: default; }
body.th-noselect img { -webkit-user-drag: none; }

/* 1.2.5 Wiki: search and "Browse by topic" dropdown side by side from 48rem, stacked on phones. */
.th-wiki-find { display: grid; gap: 1.25rem; margin-top: 1.5rem; }
.th-wiki-find > * { margin: 0; }
.th-wiki-find .th-wiki-search div { max-width: none; }
.th-wiki-find .th-wiki-search label { font-family: var(--wp--preset--font-family--sans, system-ui, sans-serif); font-size: .75rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--wp--preset--color--graphite); margin-bottom: .5rem; }
@media (min-width: 48rem) { .th-wiki-find { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 2rem; align-items: end; } }
.th-topic-menu { margin: 0; }
.th-topic-menu .th-topic-menu__label { display: block; margin: 0 0 .5rem; color: var(--wp--preset--color--graphite); }
.th-topic-menu__row { display: flex; gap: .5rem; align-items: flex-start; }
.th-topic-menu__select { position: relative; flex: 1 1 auto; min-width: 0; display: block; }
.th-topic-menu__select::after { content: ""; position: absolute; right: 1rem; top: 50%; width: .5rem; height: .5rem; margin-top: -.35rem; border-right: 1.5px solid var(--wp--preset--color--bronze); border-bottom: 1.5px solid var(--wp--preset--color--bronze); transform: rotate(45deg); pointer-events: none; }
.th-topic-menu select { -webkit-appearance: none; appearance: none; box-sizing: border-box; width: 100%; min-height: 48px; margin: 0; padding: .7rem 2.75rem .7rem .9rem; border: 1px solid var(--wp--preset--color--graphite); border-radius: 0; background: var(--wp--preset--color--white); color: var(--wp--preset--color--ink); font: 400 1rem/1.3 var(--wp--preset--font-family--sans, system-ui, sans-serif); cursor: pointer; text-overflow: ellipsis; }
.th-topic-menu select:hover { border-color: var(--wp--preset--color--bronze); }
.th-topic-menu select:focus-visible { outline: 3px solid var(--wp--preset--color--bronze); outline-offset: 2px; }
.th-topic-menu select:invalid { color: var(--wp--preset--color--graphite); }
.th-topic-menu option { color: var(--wp--preset--color--ink); }
.th-topic-menu__go { flex: 0 0 auto; min-height: 48px; min-width: 4.5rem; padding: .7rem 1.2rem; cursor: pointer; }
.th-topic-menu__go:focus-visible { outline: 3px solid var(--wp--preset--color--bronze); outline-offset: 2px; }
.th-sidebar .th-topic-menu .th-topic-menu__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
@media print { .th-topic-menu { display: none; } }
.th-wiki-find .wp-element-button, .th-wiki-find input[type=search] { box-sizing: border-box; min-height: 48px; }
.th-wiki-find .wp-element-button { padding: .7rem 1.2rem; }
/* WordPress's standard visually hidden text (screen readers only). */
.screen-reader-text { border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%); height: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute !important; width: 1px; word-wrap: normal !important; }
.screen-reader-text:focus { background: var(--wp--preset--color--white); clip: auto !important; clip-path: none; color: var(--wp--preset--color--ink); display: block; height: auto; left: 5px; padding: 1rem 1.5rem; top: 5px; width: auto; z-index: 100000; }

/* 1.2.5 Site search. Desktop (600px and up): a search icon after the menu that opens a field. Phones: a full-width field at the top of the menu. */
.th-header-tools { align-items: center; }
.th-header-search { display: none; margin: 0; }
.th-nav-search { width: 100%; margin: 0 0 1rem; box-sizing: border-box; align-self: stretch; }
/* Phone menu: core pads the overlay with root-padding variables this theme does not define, which left links and search flush to the screen edge. */
.wp-block-navigation__responsive-container.is-menu-open:not(.disable-default-overlay) { padding: 1.25rem 1.5rem 2rem; }
.wp-block-navigation__responsive-container.is-menu-open .th-nav-search { margin-top: 1rem; }
@media (min-width: 600px) {
	.th-header-search { display: flex; }
	.wp-block-navigation .th-nav-search { display: none; }
}
.th-header-search .wp-block-search__inside-wrapper { align-items: center; border: 1px solid transparent; transition: border-color .15s; }
.th-header-search .wp-block-search__button { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; min-width: 44px; margin: 0; padding: 0; border: 0; border-radius: 0; background: transparent; color: var(--wp--preset--color--ink); cursor: pointer; }
.th-header-search .wp-block-search__button:hover { color: var(--wp--preset--color--bronze); background: transparent; }
.th-header-search .wp-block-search__button svg { width: 22px; height: 22px; fill: currentColor; min-width: 22px; }
.th-header-search .wp-block-search__input { box-sizing: border-box; height: 44px; padding: 0 .75rem; border: 0; background: var(--wp--preset--color--white); color: var(--wp--preset--color--ink); font: 400 1rem/1.2 var(--wp--preset--font-family--sans, system-ui, sans-serif); }
.th-header-search:not(.wp-block-search__searchfield-hidden) .wp-block-search__inside-wrapper { border-color: var(--wp--preset--color--graphite); background: var(--wp--preset--color--white); }
.th-header-search:not(.wp-block-search__searchfield-hidden) .wp-block-search__input { width: min(18rem, 40vw); }
.th-header-search .wp-block-search__input:focus-visible, .th-header-search .wp-block-search__button:focus-visible, .th-nav-search .wp-block-search__input:focus-visible, .th-nav-search .wp-block-search__button:focus-visible, .th-search-page-form .wp-block-search__input:focus-visible, .th-search-page-form .wp-block-search__button:focus-visible { outline: 3px solid var(--wp--preset--color--bronze); outline-offset: 2px; }
.th-nav-search .wp-block-search__inside-wrapper { box-sizing: border-box; width: 100%; padding: 0; border: 1px solid var(--wp--preset--color--graphite); background: var(--wp--preset--color--white); }
.th-nav-search .wp-block-search__input { box-sizing: border-box; min-height: 48px; padding: .7rem .9rem; border: 0; background: transparent; color: var(--wp--preset--color--ink); font: 400 1rem/1.3 var(--wp--preset--font-family--sans, system-ui, sans-serif); }
.th-nav-search .wp-block-search__button { width: 48px; min-height: 48px; margin: 0; padding: 0; border: 0; border-radius: 0; background: var(--wp--preset--color--bronze); color: var(--wp--preset--color--white); display: inline-flex; align-items: center; justify-content: center; }
.th-nav-search .wp-block-search__button svg { width: 22px; height: 22px; fill: currentColor; }

/* Results page */
.th-search-hero { padding-bottom: var(--wp--preset--spacing--50); }
.th-search-results { margin-top: 0; }
.th-search-hero .th-search-heading { margin: .25rem 0 1.25rem; overflow-wrap: anywhere; }
.th-search-page-form .wp-block-search__inside-wrapper { gap: .5rem; }
.th-search-page-form .wp-block-search__input { box-sizing: border-box; min-height: 48px; padding: .7rem .9rem; border: 1px solid var(--wp--preset--color--graphite); border-radius: 0; background: var(--wp--preset--color--white); font: 400 1rem/1.3 var(--wp--preset--font-family--sans, system-ui, sans-serif); }
.th-search-page-form .wp-block-search__button { min-height: 48px; margin: 0; padding: .7rem 1.2rem; border-radius: 0; }
.th-search-count { margin: 1rem 0 0; color: var(--wp--preset--color--graphite); font-size: .95rem; }
.th-search-results { padding-bottom: clamp(3rem, 8vw, 6rem); }
.th-search-results .th-result-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--wp--preset--color--limestone); }
.th-search-results .th-result-list > li { margin: 0; padding: 1.5rem 0; border-bottom: 1px solid var(--wp--preset--color--limestone); }
.th-result > * { margin: 0; }
.th-result .th-result-kind { margin-bottom: .4rem; color: var(--wp--preset--color--bronze); }
.th-result .th-result-title { font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2rem); line-height: 1.2; }
.th-result .th-result-title a { text-decoration: none; color: var(--wp--preset--color--ink); }
.th-result .th-result-title a:hover { color: var(--wp--preset--color--bronze); text-decoration: underline; text-underline-offset: .15em; }
.th-result .th-result-excerpt { margin-top: .5rem; color: var(--wp--preset--color--graphite); }
.th-result .th-result-excerpt p { margin: 0; }
.th-result .wp-block-post-excerpt__more-text { display: none; }
.th-search-none ul { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; padding: 0; list-style: none; }
.th-search-results .wp-block-query-pagination { margin-top: 2rem; }

/* ARVAIX header mark (1.2.6) */
.th-header .th-brand { margin: 0; line-height: 0; }
.th-header .th-brand a { display: inline-block; padding: .25rem 0; }
.th-header .th-brand img { display: block; width: auto; height: 28px; max-width: 62vw; }
.th-header .th-brand a:focus-visible { outline: 3px solid var(--wp--preset--color--bronze); outline-offset: 4px; }
.th-header .wp-block-site-tagline { margin-top: .2rem; }
@media (min-width: 782px) { .th-header .th-brand img { height: 36px; } }

/* ARVAIX footer mark (1.2.6) */
.th-footer .th-footer-brand { margin-top: 0; margin-bottom: clamp(1.5rem, 4vw, 2.5rem); padding-bottom: clamp(1.25rem, 3vw, 2rem); border-bottom: 1px solid rgba(244, 239, 230, .18); line-height: 0; }
.th-footer .th-footer-brand a { display: inline-block; }
.th-footer .th-footer-brand img { display: block; width: auto; height: 34px; max-width: 70vw; }
.th-footer .th-footer-brand a:focus-visible { outline: 3px solid var(--wp--preset--color--gold); outline-offset: 4px; }
@media (min-width: 782px) { .th-footer .th-footer-brand img { height: 44px; } }
