/*
Theme Name: Silver Trumpets v19
Theme URI: https://12tribes.net/stn/
Author: 12T.CO
Author URI: https://12tribes.net/stn/
Description: A clean, fast three-column theme for 12T.CO. A featured-post slider, a podcast player with every lesson, a holy days calendar (with the 12T.CO Holy Days plugin), and room for newsletters. Light, accessible and mobile friendly.
Version: 0.19.0
Requires at least: 6.3
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: silver-trumpets
Tags: blog, news, three-columns, left-sidebar, right-sidebar, custom-logo, custom-menu, featured-images, translation-ready, accessibility-ready
*/

:root {
	--ink: #1D2433;
	--ink-soft: #4A5468;
	--midnight: #1B2745;
	--mist: #EEF1F6;
	--paper: #FFFFFF;
	--line: #D5DBE6;
	--link: #1B4F9C;
	--accent: #1F6FC5;
	--heading: "Tiempos Headline", "Tiempos Text", Tiempos, Georgia, "Times New Roman", serif;
	--text: Georgia, "Times New Roman", Times, serif;
	--sans: "Atkinson Hyperlegible", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	--max: 1400px;
	--col-left: 210px;
	--col-right: 290px;
	--gap: 1.75rem;
}

/* Base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--mist); color: var(--ink); font: 400 1.125rem/1.65 var(--sans); }
img { max-width: 100%; height: auto; }

/* Paragraph text uses the serif stack; navigation, buttons, dates and the footer stay in the sans font. */
.entry__excerpt, .entry-content, .archive-description, .content > p { font-family: var(--text); }
.powerpress_player, .powerpress_links { font-family: var(--sans); }

/* Tiempos is a licensed font. If you have the web font files, upload them to assets/fonts/ and enable this:
@font-face { font-family: "Tiempos Headline"; src: url("assets/fonts/tiempos-headline-bold.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
*/
a { color: var(--link); }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--link); outline-offset: 2px; }

.screen-reader-text { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip-link.screen-reader-text:focus { position: fixed; top: .5rem; left: .5rem; z-index: 100; width: auto; height: auto; margin: 0; padding: .75rem 1rem; clip-path: none; background: var(--accent); color: #fff; font-weight: 700; }

/* Masthead: centered logo, search underneath, menu below */
.site-header { background-color: rgb(0, 144, 241); background-image: linear-gradient(180deg, rgb(0, 144, 241) 0%, rgb(238, 241, 246) 100%); color: #fff; }
.site-header :focus-visible { outline-color: #fff; }
.site-header__inner, .primary-nav__inner { max-width: var(--max); margin: 0 auto; padding-inline: 1.25rem; }
.site-header__inner { display: flex; flex-direction: column; align-items: center; gap: 1.1rem; padding-block: 1.5rem 1.25rem; text-align: center; }
.brand__title { margin: 0; font: 700 clamp(2rem, 4.5vw, 3.25rem)/1.1 var(--heading); letter-spacing: -.01em; }
.brand__title a { color: inherit; text-decoration: none; }
.brand__tagline { margin: .35rem 0 0; color: #D6EBFF; font-size: 1.05rem; }
.custom-logo-link { display: block; line-height: 0; }
.custom-logo { display: block; width: min(100%, 600px); height: auto; margin-inline: auto; }

/* Search */
.search-form { display: flex; width: min(100%, 32rem); }
.search-field { flex: 1; min-width: 0; padding: .65rem .9rem; font: inherit; font-size: 1rem; color: var(--ink); background: var(--paper); border: 1px solid #7FA9C9; border-right: 0; border-radius: 4px 0 0 4px; }
.search-submit { padding: .65rem 1.1rem; font: 700 1rem var(--sans); color: #fff; background: var(--accent); border: 1px solid var(--accent); border-radius: 0 4px 4px 0; cursor: pointer; }
.search-submit:hover { background: #185AA3; border-color: #185AA3; }
.site-header .search-field { border-color: rgba(8, 18, 46, .3); }
.site-header .search-submit { background: #0A1F66; border-color: #0A1F66; }
.site-header .search-submit:hover { background: #142E8C; border-color: #142E8C; }

/* Navigation */
.primary-nav { border-top: 1px solid rgba(8, 18, 46, .15); }
.primary-nav ul { margin: 0; padding: 0; list-style: none; }
.primary-nav #primary-menu { display: flex; flex-wrap: wrap; justify-content: center; gap: 0 .25rem; }
.primary-nav li { position: relative; }
.primary-nav a { display: block; padding: .85rem 1rem; color: #08122E; font-weight: 700; text-decoration: none; border-bottom: 3px solid transparent; }
.primary-nav a:hover { background: rgba(0, 100, 200, .14); border-bottom-color: #08122E; }
.primary-nav .current-menu-item > a, .primary-nav .current_page_item > a, .primary-nav .current-menu-ancestor > a { border-bottom-color: #08122E; }
.primary-nav .menu-item-has-children > a::after { content: ""; display: inline-block; margin-left: .45rem; border: .3rem solid transparent; border-top-color: currentColor; border-bottom: 0; vertical-align: middle; }
.primary-nav .sub-menu { display: none; position: absolute; top: 100%; left: 0; z-index: 20; min-width: 15rem; background: #F4FAFE; border: 1px solid rgba(27, 39, 69, .25); border-radius: 0 0 4px 4px; box-shadow: 0 6px 16px rgba(27, 39, 69, .18); }
.primary-nav li:hover > .sub-menu, .primary-nav li:focus-within > .sub-menu, .primary-nav li.is-open > .sub-menu { display: block; }
.primary-nav .sub-menu a { padding: .65rem 1rem; font-weight: 400; border-bottom: 0; }
.primary-nav .sub-menu .sub-menu { top: 0; left: 100%; border-radius: 4px; }
.nav-toggle { display: none; }

/* Three-column layout */
.layout { display: grid; grid-template-columns: var(--col-left) minmax(0, 1fr) var(--col-right); grid-template-areas: "left main right"; gap: var(--gap); align-items: start; max-width: var(--max); margin: 0 auto; padding: 2rem 1.25rem 3rem; }
.content { grid-area: main; }
.sidebar-left { grid-area: left; }
.sidebar-right { grid-area: right; }

/* Entries */
.archive-header { margin-bottom: 1.5rem; padding-bottom: 1rem; border-bottom: 2px solid var(--midnight); }
.archive-title { margin: 0 0 .5rem; font: 700 2rem/1.15 var(--heading); }
.entry-list { display: grid; gap: 2rem; }
.entry { padding: clamp(1.25rem, 3vw, 2rem); background: var(--paper); border-radius: 4px; box-shadow: 0 1px 2px rgba(27, 39, 69, .08), 0 6px 18px rgba(27, 39, 69, .10); }
.entry__meta { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: .4rem .85rem; margin-bottom: .5rem; color: var(--ink-soft); font-size: .95rem; }
.chip { display: inline-block; padding: .1rem .6rem; color: var(--midnight); background: #DCE3F0; border-radius: 3px; font-size: .9rem; font-weight: 700; text-decoration: none; }
.chip:hover { color: #fff; background: var(--accent); }
.entry__title { margin: 0 0 .75rem; text-align: center; font: 700 clamp(1.9rem, 3vw, 2.4rem)/1.25 var(--heading); }
.entry__title a { color: var(--ink); text-decoration: none; }
.entry__title a:hover { text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 3px; text-underline-offset: 4px; }
.entry__excerpt p { margin: 0; }
.entry__excerpt, .entry-content > :is(p, ul, ol, blockquote, h2, h3, h4, pre) { max-width: 68ch; margin-inline: auto; }
.entry__header { margin-bottom: 1.25rem; }
.powerpress_player { margin: 1.25rem 0; }
.powerpress_player:first-child { margin-top: 0; }
.powerpress_player:last-child { margin-bottom: 0; }
.powerpress_player audio, .powerpress_player video, .powerpress_player iframe { max-width: 100%; }
.powerpress_links { margin: .75rem 0 1.25rem; font-size: .95rem; }
.entry__thumb { display: block; margin: 0 0 1rem; }
.entry__thumb img { display: block; margin-inline: auto; width: auto; max-width: 100%; height: auto; max-height: 360px; border-radius: 4px; }
.entry--lead .entry__thumb img { max-height: 520px; }
.entry--single .entry__title { font-size: clamp(2rem, 4vw, 2.75rem); }

.entry-content > * { margin-block: 0 1.25em; }
.entry-content h2, .entry-content h3 { margin-top: 1.75em; font-family: var(--heading); line-height: 1.25; }
.entry-content blockquote { margin-inline: 0; padding-left: 1.25rem; border-left: 4px solid var(--accent); color: var(--ink-soft); }
.alignleft { float: left; margin: 0 1.25rem 1rem 0; }
.alignright { float: right; margin: 0 0 1rem 1.25rem; }
.aligncenter { display: block; margin-inline: auto; }
.wp-caption-text, figcaption { color: var(--ink-soft); font-size: .95rem; }

.post-navigation { margin-top: 2rem; }
.post-navigation .nav-links { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.post-navigation .nav-previous { grid-column: 1; }
.post-navigation .nav-next { grid-column: 2; text-align: right; }
.post-navigation a { display: block; height: 100%; padding: 1rem 1.25rem; color: #fff; background: var(--accent); border-radius: 4px; text-decoration: none; box-shadow: 0 1px 2px rgba(27, 39, 69, .08), 0 6px 18px rgba(27, 39, 69, .10); }
.post-navigation a:hover { background: #185AA3; }
.nav-label { display: block; font-size: .85rem; font-weight: 700; opacity: .92; }
.nav-title { display: block; font: 700 1.05rem/1.3 var(--heading); }
.pagination { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: .5rem; margin-top: 2rem; }
.page-btn { display: inline-block; padding: .6rem 1.1rem; color: #fff; background: var(--accent); border-radius: 4px; font-weight: 700; text-decoration: none; }
a.page-btn:hover { background: #185AA3; }
.page-btn.is-disabled { color: #6B778C; background: #DCE3F0; }
.page-num { min-width: 2.6rem; padding-inline: .5rem; text-align: center; }
.page-btn.is-current { background: #0A1F66; }

/* Single post */
.entry--single .entry__thumb { margin-bottom: 1.5rem; text-align: center; }
.entry--single .entry__thumb img { max-height: 520px; }
.entry--single .entry-content { line-height: 1.75; }
.entry--single .entry-content a { color: var(--link); text-decoration: underline; text-underline-offset: 3px; }
.entry--single .entry-content a:hover { text-decoration-thickness: 2px; }
.entry--single .entry-content h2 { font-size: 1.6rem; }
.entry--single .entry-content h3 { font-size: 1.3rem; }
.entry--single .entry-content h4 { margin-top: 1.5em; font-family: var(--heading); font-size: 1.1rem; line-height: 1.3; }
.entry--single .entry-content ul, .entry--single .entry-content ol { padding-left: 1.5rem; }
.entry--single .entry-content li { margin-bottom: .4em; }
.entry--single .entry-content > blockquote { margin: 1.75em auto; padding: .9rem 1.25rem; background: #F3F7FC; border-left: 4px solid var(--accent); border-radius: 0 4px 4px 0; color: var(--ink); font-style: italic; }
.entry--single .entry-content blockquote p { margin: 0 0 .75em; max-width: none; }
.entry--single .entry-content blockquote p:last-child { margin-bottom: 0; }
.entry--single .entry-content cite { display: block; margin-top: .5rem; font-size: .95rem; font-style: normal; font-weight: 700; color: var(--ink-soft); }
.entry--single .entry-content img { height: auto; border-radius: 4px; }
.entry--single .entry-content figure { margin: 1.5rem auto; text-align: center; }
.entry--single .entry-content figcaption { margin-top: .5rem; }
.entry--single .entry-content hr { max-width: 68ch; margin: 2rem auto; border: 0; border-top: 1px solid var(--line); }
.entry--single .entry-content table { display: block; max-width: 100%; overflow-x: auto; border-collapse: collapse; }
.entry--single .entry-content th, .entry--single .entry-content td { padding: .5rem .75rem; border: 1px solid var(--line); }
.entry--single .entry-content iframe, .entry--single .entry-content video, .entry--single .entry-content embed { max-width: 100%; }
.entry--single .entry-content iframe[src*="youtube"], .entry--single .entry-content iframe[src*="vimeo"] { width: 100%; height: auto; aspect-ratio: 16 / 9; }
.entry__footer { max-width: 68ch; margin: 2rem auto 0; padding-top: 1rem; border-top: 1px solid var(--line); color: var(--ink-soft); font-size: .95rem; }
.entry__terms { margin: 0 0 .5rem; }
.entry__terms-label { margin-right: .35rem; font-weight: 700; }
.chip--tag { background: var(--mist); }

/* Phone: post navigation stacks */
@media (max-width: 599px) {
	.post-navigation .nav-links { grid-template-columns: 1fr; }
	.post-navigation .nav-previous, .post-navigation .nav-next { grid-column: 1; text-align: left; }
}

/* Featured slider (posts marked "Stick to the top of the blog") */
.slider { margin-bottom: 2rem; background: var(--paper); border-radius: 4px; box-shadow: 0 1px 2px rgba(27, 39, 69, .08), 0 6px 18px rgba(27, 39, 69, .10); }
.slider__track { display: flex; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; }
.js .slider__track { scrollbar-width: none; }
.js .slider__track::-webkit-scrollbar { display: none; }
.slider__stage { position: relative; }
.slide { flex: 0 0 100%; min-width: 0; padding: clamp(1.25rem, 3vw, 2rem); padding-inline: 4rem; scroll-snap-align: start; }
.slide .entry__thumb img { max-height: 300px; }
.slider__controls { display: flex; align-items: center; justify-content: center; padding: 0 1rem 1.1rem; }
.slider__btn { position: absolute; top: 50%; z-index: 2; transform: translateY(-50%); width: 2.75rem; height: 2.75rem; padding: 0; color: #fff; background: var(--accent); border: 0; border-radius: 50%; font: 700 1.6rem/1 var(--sans); cursor: pointer; }
.slider__prev { left: .6rem; }
.slider__next { right: .6rem; }
.slider__btn:hover:not(:disabled) { background: #185AA3; }
.slider__btn:disabled { background: #C3CCDA; cursor: default; }
.slider__dots { display: flex; }
.slider__dot { position: relative; width: 1.5rem; height: 1.5rem; padding: 0; background: none; border: 0; cursor: pointer; }
.slider__dot::after { content: ""; position: absolute; inset: .35rem; background: #C3CCDA; border-radius: 50%; }
.slider__dot[aria-current="true"]::after { background: var(--accent); }

/* Sidebars */
.widget { margin-bottom: 2rem; }
.widget-title { margin: 0 0 .75rem; padding-bottom: .5rem; font: 700 1.1rem/1.3 var(--heading); border-bottom: 2px solid var(--midnight); }
.widget ul { margin: 0; padding: 0; list-style: none; }
.widget li { padding: .45rem 0; border-bottom: 1px solid var(--line); }
.widget li:last-child { border-bottom: 0; }
.widget .children, .widget .sub-menu { padding-left: 1rem; }
.widget a { text-decoration: none; }
.widget a:hover { text-decoration: underline; }
.player-placeholder { margin: 0; color: var(--ink-soft); }

/* Podcast player */
.player__now { margin-bottom: .9rem; }
.player__label { display: block; color: var(--ink-soft); font-size: .85rem; font-weight: 700; }
.player__title { display: block; margin: .15rem 0; color: var(--ink); font: 700 1.1rem/1.3 var(--heading); text-decoration: none; }
.player__title:hover { text-decoration: underline; }
.player__date { color: var(--ink-soft); font-size: .9rem; }
.player__seek { display: block; width: 100%; margin: 0; accent-color: var(--accent); }
.player__times { display: flex; justify-content: space-between; color: var(--ink-soft); font-size: .85rem; font-variant-numeric: tabular-nums; }
.player__controls { display: flex; align-items: center; justify-content: center; gap: .4rem; margin: .75rem 0; }
.player__btn { display: inline-flex; align-items: center; justify-content: center; width: 2.5rem; height: 2.5rem; padding: 0; color: var(--accent); background: var(--paper); border: 1px solid #B8C4D8; border-radius: 50%; font: 700 .8rem var(--sans); cursor: pointer; }
.player__btn:hover:not(:disabled) { background: #E6F0FB; }
.player__btn:disabled { color: #A9B4C6; border-color: #DCE3F0; cursor: default; }
.player__btn svg { width: 1.2rem; height: 1.2rem; fill: currentColor; }
.player__btn--play { width: 3.4rem; height: 3.4rem; color: #fff; background: var(--accent); border-color: var(--accent); }
.player__btn--play:hover:not(:disabled) { background: #185AA3; }
.player__btn--play svg { width: 1.6rem; height: 1.6rem; }
.player__btn .icon-pause { display: none; }
.is-playing .player__btn--play .icon-play { display: none; }
.is-playing .player__btn--play .icon-pause { display: block; }
.player__extras { text-align: center; }
.player__speed { padding: .3rem .8rem; color: var(--accent); background: var(--paper); border: 1px solid #B8C4D8; border-radius: 999px; font: 700 .85rem var(--sans); cursor: pointer; }
.player__error { margin: .75rem 0 0; color: #9B1C1C; font-size: .95rem; }
.player__list { max-height: min(22rem, 45vh); margin: 1rem 0 0; padding: 0; overflow-y: auto; border-top: 1px solid var(--line); list-style: none; }
.widget .player__list li { padding: 0; }
.player__item { display: block; width: 100%; padding: .6rem .5rem; color: var(--ink); background: none; border: 0; border-left: 4px solid transparent; font: inherit; font-size: .95rem; line-height: 1.35; text-align: left; cursor: pointer; }
.player__item:hover { background: var(--mist); }
.player__item[aria-current="true"] { background: #E6F0FB; border-left-color: var(--accent); }
.player__item-title { display: block; font-weight: 700; }
.player__item-date { display: block; color: var(--ink-soft); font-size: .85rem; }

/* Footer */
.site-footer { background: var(--accent); color: #fff; text-align: center; }
.site-footer__inner { max-width: var(--max); margin: 0 auto; padding: 2rem 1.25rem; }
.site-footer p { margin: 0; }
.site-footer__name { font: 700 1.2rem/1.4 var(--sans); }
.site-footer .site-footer__copy { margin-top: .2rem; font-size: 1rem; }
.site-footer__logo { display: block; width: auto; max-width: 100%; height: auto; max-height: 64px; margin: 1.1rem auto 0; }

/* Phone pagination: fewer page numbers */
@media (max-width: 599px) {
	.page-num--far { display: none; }
	.page-btn { padding: .55rem .7rem; font-size: .95rem; }
}

/* Slider arrows on small screens */
@media (max-width: 599px) {
	.slide { padding-inline: 2.9rem; }
	.slider__btn { width: 2.25rem; height: 2.25rem; font-size: 1.35rem; }
	.slider__prev { left: .35rem; }
	.slider__next { right: .35rem; }
}

/* Tablet: content + right column; browse column drops under the content */
@media (max-width: 1099px) {
	.layout { grid-template-columns: minmax(0, 1fr) var(--col-right); grid-template-areas: "main right" "left right"; }
}

/* Keep the player in view on wider screens */
@media (min-width: 760px) {
	.sidebar-right { position: sticky; top: 1rem; max-height: calc(100vh - 2rem); overflow-y: auto; }
}

/* Phone: single column, player right after the content */
@media (max-width: 759px) {
	.layout { grid-template-columns: minmax(0, 1fr); grid-template-areas: "main" "right" "left"; padding-top: 1.25rem; }
	.js .nav-toggle { display: block; width: 100%; padding: .85rem 0; color: #08122E; background: none; border: 0; font: 700 1rem var(--sans); text-align: center; cursor: pointer; }
	.js .primary-nav #primary-menu { display: none; flex-direction: column; }
	.js .primary-nav #primary-menu.is-open { display: flex; }
	.primary-nav a { padding-inline: .5rem; }
	.primary-nav .menu-item-has-children > a::after { display: none; }
	.primary-nav .sub-menu { display: block; position: static; min-width: 0; padding-left: 1rem; background: transparent; border: 0; border-radius: 0; box-shadow: none; }
}
