/*
Theme Name: High Divide
Theme URI: https://click-refresh.com/
Author: Sammy Russo
Author URI: https://click-refresh.com/
Description: A practical Bootstrap 5 WordPress theme designed for ACF Pro and High Divide Blocks.
Version: 0.1.2
Requires at least: 6.3
Tested up to: 7.1
Requires PHP: 8.0
Text Domain: high-divide
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/old-licenses/gpl-2.0.html
Copyright 2026 Sammy Russo
*/

:root {
    --font-size-small: 1rem;
    --font-size-medium: 1.375rem;
    --font-size-large: 1.75rem;
    --font-size-x-large: 2rem;
}

/* GUTENBERG FONT SIZE PRESETS */

.has-small-font-size   { font-size: var(--font-size-small); }
.has-medium-font-size  { font-size: var(--font-size-medium); }
.has-large-font-size   { font-size: var(--font-size-large); }
.has-x-large-font-size { font-size: var(--font-size-x-large); }


/* NATIVE WordPress ALIGNMENT */

.alignleft {
    float: left;
    margin: 0 1.5rem 1rem 0;
}

.alignright {
    float: right;
    margin: 0 0 1rem 1.5rem;
}

.aligncenter {
    display: block;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.alignwide {
    margin-left: -2rem;
    margin-right: -2rem;
}

.alignfull {
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    max-width: 100vw;
    width: 100vw;
}


/* ENTRY CONTENT BASE STYLES */

.entry-content p {
    margin-bottom: 1.25rem;
    line-height: 1.75;
}

.entry-content ul,
.entry-content ol {
    margin-bottom: 1.25rem;
    padding-left: 1.5rem;
}

.entry-content li {
    margin-bottom: 0.5rem;
    line-height: 1.75;
}

.entry-content blockquote {
    border-left: 4px solid #dee2e6;
    padding: 0.75rem 1.25rem;
    margin: 1.5rem 0;
    color: #6c757d;
    font-style: italic;
}

.entry-content table {
    width: 100%;
    margin-bottom: 1.25rem;
    border-collapse: collapse;
}

.entry-content table th,
.entry-content table td {
    padding: 0.75rem;
    border: 1px solid #dee2e6;
    text-align: left;
}

.entry-content table th {
    background-color: #f8f9fa;
    font-weight: 600;
}

.entry-content pre,
.entry-content code {
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 3px;
    font-size: 0.9rem;
}

.entry-content pre {
    padding: 1rem;
    overflow-x: auto;
    margin-bottom: 1.25rem;
}

.entry-content code {
    padding: 0.2rem 0.4rem;
}

.entry-content img {
    max-width: 100%;
    height: auto;
}

.entry-content hr {
    border: 0;
    border-top: 1px solid #dee2e6;
    margin: 2rem 0;
}


/* ==============================================
   GUTENBERG BLOCK BASE STYLES
   ============================================== */

/* Separator block */
.wp-block-separator {
    border: 0;
    border-top: 1px solid #dee2e6;
    margin: 2rem auto;
}

/* Quote block */
.wp-block-quote {
    border-left: 4px solid #dee2e6;
    padding: 0.75rem 1.25rem;
    margin: 1.5rem 0;
    font-style: italic;
    color: #6c757d;
}

.wp-block-quote cite {
    display: block;
    font-size: 0.875rem;
    margin-top: 0.5rem;
    font-style: normal;
    color: #adb5bd;
}

/* Pullquote block */
.wp-block-pullquote {
    border-top: 4px solid #dee2e6;
    border-bottom: 4px solid #dee2e6;
    padding: 1.5rem;
    text-align: center;
    margin: 2rem 0;
}

/* Cover block */
.wp-block-cover {
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Buttons block */
.wp-block-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.25rem;
}

.wp-block-button__link {
    display: inline-block;
    padding: 0.5rem 1.25rem;
    border-radius: 4px;
    text-decoration: none;
    cursor: pointer;
}
/* Image Block Captions - Native Gutenberg */
/* Wrapper when caption is present */
.wp-block-image figcaption.wp-element-caption {
	display: block;
	font-size: 12px;
	line-height: 17px;
	padding: 5px 10px;
	margin: 0;
	text-align: center;
	background-color: #f3f3f3;
	border-top: 1px solid #ddd;
}

/* Add the border/radius/bg to the figure itself */
.wp-block-image:has(figcaption) {
	border: 1px solid #ddd;
	border-radius: 3px;
	background-color: #f3f3f3;
	overflow: hidden; /* keeps image corners clipped to border-radius */
	margin: 10px;
}

/* Ensure image fills cleanly inside the styled wrapper */
.wp-block-image:has(figcaption) img {
	display: block;
	margin: 0;
	padding: 0;
	border: 0;
	max-width: 100%;
}

/* COMMENTS */

.comments-area {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #dee2e6;
}

.comments-title {
    font-size: 1.375rem;
    margin-bottom: 1.5rem;
}

/* Comment List */
.comment-list {
    list-style: none;
    padding: 0;
    margin: 0 0 2rem 0;
}

.comment-list .children {
    list-style: none;
    padding-left: 2rem;
    margin-top: 1rem;
}

/* Individual Comment */
.comment {
    padding: 1.25rem 0;
    border-bottom: 1px solid #dee2e6;
}

.comment:last-child {
    border-bottom: 0;
}

/* Comment Avatar */
.comment-author .avatar {
    border-radius: 50%;
    margin-right: 0.75rem;
    vertical-align: middle;
}

/* Comment Meta */
.comment-meta {
    margin-bottom: 0.75rem;
    font-size: 0.875rem;
    color: #6c757d;
}

.comment-author b {
    font-size: 1rem;
    color: #212529;
}

.comment-metadata a {
    color: #6c757d;
    text-decoration: none;
}

.comment-metadata a:hover {
    color: #212529;
}

/* Comment Content */
.comment-content {
    margin-bottom: 0.75rem;
    line-height: 1.75;
}

.comment-content p {
    margin-bottom: 0.75rem;
}

/* Reply Link */
.reply {
    font-size: 0.875rem;
}

.comment-reply-link {
    color: #0d6efd;
    text-decoration: none;
}

.comment-reply-link:hover {
    text-decoration: underline;
}

/* Pingbacks / Trackbacks */
.pingback .comment-body,
.trackback .comment-body {
    font-size: 0.875rem;
    color: #6c757d;
}

/* Comment Form */
.comment-respond {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #dee2e6;
}

/* With no comments above it, the comments area already provides the rule. */
.comments-area > .comment-respond:first-child {
    margin-top: 0;
    padding-top: 0;
    border-top: 0;
}

.comment-reply-title {
    font-size: 1.375rem;
    margin-bottom: 1.5rem;
}

.comment-form label {
    display: block;
    font-weight: 500;
    margin-bottom: 0.375rem;
    font-size: 0.875rem;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    width: 100%;
    padding: 0.5rem 0.75rem;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    margin-bottom: 1rem;
    font-size: 1rem;
    line-height: 1.5;
    color: #212529;
    background-color: #fff;
    transition: border-color 0.15s ease-in-out;
}

.comment-form input[type="text"]:focus,
.comment-form input[type="email"]:focus,
.comment-form input[type="url"]:focus,
.comment-form textarea:focus {
    border-color: #0d6efd;
    outline: 0;
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
}

.comment-form textarea {
    min-height: 150px;
    resize: vertical;
}

.comment-form .submit {
    display: inline-block;
    padding: 0.5rem 1.25rem;
    background-color: #0d6efd;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.15s ease-in-out;
}

.comment-form .submit:hover {
    background-color: #0a58ca;
}

/* Logged in / must log in notice */
.must-log-in,
.logged-in-as {
    font-size: 0.875rem;
    color: #6c757d;
    margin-bottom: 1rem;
}

.logged-in-as a {
    color: #0d6efd;
    text-decoration: none;
}

.logged-in-as a:hover {
    text-decoration: underline;
}

/* No comments notice */
.no-comments {
    color: #6c757d;
    font-style: italic;
    margin-bottom: 1.5rem;
}

/* CALENDAR WIDGET */

.widget_calendar .calendar_wrap {
    overflow-x: auto;
}

#wp-calendar {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
    margin-bottom: 0;
}

#wp-calendar caption {
    font-weight: 600;
    font-size: 0.9375rem;
    padding: 0.5rem 0;
    text-align: center;
    color: #212529;
    caption-side: top;
}

#wp-calendar th {
    text-align: center;
    padding: 0.375rem;
    font-weight: 600;
    color: #6c757d;
    border-bottom: 1px solid #dee2e6;
}

#wp-calendar td {
    text-align: center;
    padding: 0.375rem;
    border: 1px solid #dee2e6;
    color: #212529;
}

#wp-calendar td.pad {
    background-color: #f8f9fa;
}

#wp-calendar td a {
    font-weight: 600;
    color: #0d6efd;
    text-decoration: none;
}

#wp-calendar td a:hover {
    text-decoration: underline;
}

#wp-calendar #today {
    background-color: #0d6efd;
    color: #fff;
    border-radius: 3px;
    font-weight: 600;
}

#wp-calendar #today a {
    color: #fff;
}

/* Prev / Next navigation */
#wp-calendar tfoot td {
    border: 0;
    padding-top: 0.5rem;
    font-size: 0.8125rem;
}

#wp-calendar tfoot #prev {
    text-align: left;
}

#wp-calendar tfoot #next {
    text-align: right;
}

#wp-calendar tfoot a {
    color: #0d6efd;
    text-decoration: none;
}

#wp-calendar tfoot a:hover {
    text-decoration: underline;
}

/* SEARCH FORM */

.search-form {
    display: flex;
    gap: 0.5rem;
    align-items: stretch;
}

.search-form label {
    flex: 1;
    margin: 0;
}

.search-form .search-field {
    width: 100%;
    padding: 0.5rem 0.75rem;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    font-size: 1rem;
    line-height: 1.5;
    color: #212529;
    background-color: #fff;
    transition: border-color 0.15s ease-in-out;
}

.search-form .search-field:focus {
    border-color: #0d6efd;
    outline: 0;
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
}

.search-form .search-submit {
    padding: 0.5rem 1.25rem;
    background-color: #0d6efd;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    cursor: pointer;
    white-space: nowrap;
    transition: background-color 0.15s ease-in-out;
}

.search-form .search-submit:hover {
    background-color: #0a58ca;
}

/* Search form inside widget */
.widget .search-form {
    flex-direction: column;
    gap: 0.375rem;
}

.widget .search-form label {
    flex: unset;
}

.widget .search-form .search-submit {
    width: 100%;
}

/* Search form inside navbar */
.navbar .search-form {
    flex-direction: row;
    margin-left: 1rem;
}

.navbar .search-form .search-field {
    font-size: 0.875rem;
    padding: 0.375rem 0.75rem;
}

.navbar .search-form .search-submit {
    font-size: 0.875rem;
    padding: 0.375rem 0.75rem;
}

/* No results page search form */
.page-content .search-form {
    max-width: 500px;
    margin: 0 auto;
}

/* SIDEBAR WIDGETS */

/* Widget Base */
.widget {
    margin-bottom: 2rem;
}

.widget:last-child {
    margin-bottom: 0;
}

.widget-title {
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding-bottom: 0.5rem;
    margin-bottom: 1rem;
    border-bottom: 2px solid #dee2e6;
    color: #212529;
}

/* Widget Lists — shared by recent posts, 
   categories, archives, pages, meta */
.widget ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.widget ul li {
    padding: 0.375rem 0;
    border-bottom: 1px solid #f1f1f1;
    font-size: 0.9375rem;
}

.widget ul li:last-child {
    border-bottom: 0;
}

.widget ul li a {
    color: #212529;
    text-decoration: none;
}

.widget ul li a:hover {
    color: #0d6efd;
}

/* Post count in categories/archives */
.widget ul li .post-count,
.widget ul li span {
    color: #6c757d;
    font-size: 0.875rem;
    float: right;
}

/* Recent Posts Widget */
.widget_recent_entries ul li {
    padding: 0.5rem 0;
}

.widget_recent_entries .post-date {
    display: block;
    font-size: 0.8125rem;
    color: #6c757d;
    margin-top: 0.25rem;
}

/* Recent Comments Widget */
.widget_recent_comments ul li {
    padding: 0.5rem 0;
    font-size: 0.9375rem;
    line-height: 1.5;
}

/* Archive Widget */
.widget_archive ul li {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Categories Widget */
.widget_categories ul li {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.widget_categories ul li a {
    flex: 1;
}

/* Pages Widget */
.widget_pages ul li a {
    display: block;
}

/* Nav Menu Widget */
.widget_nav_menu ul li {
    padding: 0.375rem 0;
}

.widget_nav_menu ul li a {
    display: block;
    color: #212529;
    text-decoration: none;
}

.widget_nav_menu ul li a:hover {
    color: #0d6efd;
}

/* Sub menus in nav menu widget */
.widget_nav_menu ul ul {
    padding-left: 1rem;
    margin-top: 0.25rem;
}

/* Tag Cloud Widget */
.widget_tag_cloud .tagcloud {
    display: flex;
    flex-wrap: wrap;
    gap: 0.375rem;
}

.widget_tag_cloud .tagcloud a {
    display: inline-block;
    padding: 0.25rem 0.625rem;
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 3px;
    font-size: 0.8125rem !important;
    color: #212529;
    text-decoration: none;
    transition: all 0.15s ease-in-out;
}

.widget_tag_cloud .tagcloud a:hover {
    background-color: #0d6efd;
    border-color: #0d6efd;
    color: #fff;
}

/* Text Widget */
.widget_text .textwidget {
    font-size: 0.9375rem;
    line-height: 1.75;
    color: #212529;
}

.widget_text .textwidget p:last-child {
    margin-bottom: 0;
}

/* Image Widget */
.widget_media_image img {
    max-width: 100%;
    height: auto;
}

/* RSS Widget */
.widget_rss ul li {
    padding: 0.5rem 0;
}

.widget_rss .rsswidget {
    font-weight: 500;
    color: #212529;
    text-decoration: none;
}

.widget_rss .rsswidget:hover {
    color: #0d6efd;
}

.widget_rss .rss-date {
    display: block;
    font-size: 0.8125rem;
    color: #6c757d;
    margin-top: 0.25rem;
}

.widget_rss .rssSummary {
    font-size: 0.875rem;
    color: #6c757d;
    margin-top: 0.25rem;
    line-height: 1.5;
}

/* Meta Widget */
.widget_meta ul li a {
    color: #212529;
    text-decoration: none;
}

.widget_meta ul li a:hover {
    color: #0d6efd;
}

/* POST NAVIGATION */

/* Single Post Prev/Next */
.post-navigation {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #dee2e6;
}

.post-navigation .nav-links {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
}

.post-navigation .nav-previous,
.post-navigation .nav-next {
    flex: 1;
}

.post-navigation .nav-next {
    text-align: right;
}

.post-navigation .nav-subtitle {
    display: block;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #6c757d;
    margin-bottom: 0.25rem;
}

.post-navigation .nav-title {
    font-size: 0.9375rem;
    font-weight: 500;
    color: #212529;
    text-decoration: none;
}

.post-navigation a {
    display: block;
    text-decoration: none;
    color: #212529;
    transition: color 0.15s ease-in-out;
}

.post-navigation a:hover {
    color: #0d6efd;
}

.post-navigation a:hover .nav-title {
    color: #0d6efd;
}

/* Posts Navigation — index/archive prev/next */
.posts-navigation {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #dee2e6;
}

.posts-navigation .nav-links {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.posts-navigation .nav-previous a,
.posts-navigation .nav-next a {
    display: inline-block;
    padding: 0.5rem 1.25rem;
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    color: #212529;
    text-decoration: none;
    font-size: 0.9375rem;
    transition: all 0.15s ease-in-out;
}

.posts-navigation .nav-previous a:hover,
.posts-navigation .nav-next a:hover {
    background-color: #0d6efd;
    border-color: #0d6efd;
    color: #fff;
}
/* PAGINATION */

/* Posts Pagination — archive, search, blog */
.pagination {
    margin-top: 2rem;
    margin-bottom: 2rem;
}

.nav-links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.375rem;
}

.page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.25rem;
    height: 2.25rem;
    padding: 0 0.625rem;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    font-size: 0.9375rem;
    color: #212529;
    text-decoration: none;
    transition: all 0.15s ease-in-out;
    background-color: #fff;
}

.page-numbers:hover {
    background-color: #0d6efd;
    border-color: #0d6efd;
    color: #fff;
}

.page-numbers.current {
    background-color: #0d6efd;
    border-color: #0d6efd;
    color: #fff;
    font-weight: 600;
}

.page-numbers.dots {
    border: 0;
    background: transparent;
    cursor: default;
    color: #6c757d;
}

.page-numbers.dots:hover {
    background: transparent;
    color: #6c757d;
}

.page-numbers.prev,
.page-numbers.next {
    font-size: 0.875rem;
    padding: 0 0.875rem;
}

/* Single post page links — for paginated posts */
.page-links {
    margin-top: 2rem;
    font-size: 0.9375rem;
    display: flex;
    align-items: center;
    gap: 0.375rem;
    flex-wrap: wrap;
}

.page-links .page-links-title {
    color: #6c757d;
    margin-right: 0.25rem;
}

.page-links a,
.page-links > span:not(.page-links-title) {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2rem;
    height: 2rem;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    text-decoration: none;
    color: #212529;
    background-color: #fff;
    transition: all 0.15s ease-in-out;
}

.page-links a:hover {
    background-color: #0d6efd;
    border-color: #0d6efd;
    color: #fff;
}

.page-links > span:not(.page-links-title) {
    background-color: #0d6efd;
    border-color: #0d6efd;
    color: #fff;
    font-weight: 600;
}
/* STICKY POSTS */

.sticky {
    position: relative;
    padding: 1.5rem;
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    border-left: 4px solid #0d6efd;
    border-radius: 4px;
    margin-bottom: 2rem;
}

.sticky-label {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #fff;
    background-color: #0d6efd;
    padding: 0.2rem 0.5rem;
    border-radius: 3px;
    margin-bottom: 0.75rem;
}


/* BY POST AUTHOR COMMENT */

.bypostauthor > .comment-body {
    position: relative;
    padding: 1rem;
    background-color: #f0f7ff;
    border: 1px solid #cfe2ff;
    border-left: 4px solid #0d6efd;
    border-radius: 4px;
}

.bypostauthor > .comment-body .comment-author .fn {
    color: #0d6efd;
}

.bypostauthor > .comment-body::before {
    content: 'Author';
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #fff;
    background-color: #0d6efd;
    padding: 0.15rem 0.45rem;
    border-radius: 3px;
    margin-bottom: 0.5rem;
}
/* GUTENBERG GALLERY BLOCK */

.wp-block-gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    padding: 0;
    list-style: none;
}

.wp-block-gallery .blocks-gallery-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.wp-block-gallery .blocks-gallery-item {
    display: flex;
    flex-grow: 1;
    flex-direction: column;
    justify-content: center;
    margin: 0;
    position: relative;
    overflow: hidden;
}

.wp-block-gallery .blocks-gallery-item figure {
    margin: 0;
    height: 100%;
}

.wp-block-gallery .blocks-gallery-item img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 3px;
    transition: transform 0.2s ease-in-out;
}

.wp-block-gallery .blocks-gallery-item img:hover {
    transform: scale(1.02);
}

/* Caption inside gallery item */
.wp-block-gallery .blocks-gallery-item figcaption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 0.5rem 0.75rem;
    background: linear-gradient(transparent, rgba(0,0,0,0.65));
    color: #fff;
    font-size: 0.8125rem;
    text-align: center;
    opacity: 0;
    transition: opacity 0.2s ease-in-out;
}

.wp-block-gallery .blocks-gallery-item:hover figcaption {
    opacity: 1;
}

/* Column count variants */
.wp-block-gallery.columns-1 .blocks-gallery-item {
    width: 100%;
}

.wp-block-gallery.columns-2 .blocks-gallery-item {
    width: calc(50% - 0.25rem);
}

.wp-block-gallery.columns-3 .blocks-gallery-item {
    width: calc(33.333% - 0.375rem);
}

.wp-block-gallery.columns-4 .blocks-gallery-item {
    width: calc(25% - 0.375rem);
}

.wp-block-gallery.columns-5 .blocks-gallery-item {
    width: calc(20% - 0.4rem);
}

.wp-block-gallery.columns-6 .blocks-gallery-item {
    width: calc(16.666% - 0.417rem);
}

/* Crop images option */
.wp-block-gallery.is-cropped .blocks-gallery-item img {
    height: 100%;
    object-fit: cover;
}

/* Responsive — collapse to 2 col on small screens */
@media (max-width: 576px) {
    .wp-block-gallery.columns-3 .blocks-gallery-item,
    .wp-block-gallery.columns-4 .blocks-gallery-item,
    .wp-block-gallery.columns-5 .blocks-gallery-item,
    .wp-block-gallery.columns-6 .blocks-gallery-item {
        width: calc(50% - 0.25rem);
    }
}

/* Single column on extra small */
@media (max-width: 360px) {
    .wp-block-gallery .blocks-gallery-item {
        width: 100%;
    }
}
/* GUTENBERG VIDEO BLOCK */

.wp-block-video {
    margin-bottom: 1.5rem;
}

.wp-block-video video {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 4px;
}

.wp-block-video figcaption {
    display: block;
    font-size: 0.8125rem;
    line-height: 1.5;
    padding: 0.5rem 0.75rem;
    margin: 0;
    text-align: center;
    background-color: #f3f3f3;
    border: 1px solid #ddd;
    border-top: 0;
    border-radius: 0 0 4px 4px;
    color: #6c757d;
}

/* Embed block — YouTube, Vimeo etc */
.wp-block-embed {
    margin-bottom: 1.5rem;
}

.wp-block-embed__wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 ratio */
    height: 0;
    overflow: hidden;
    border-radius: 4px;
}

.wp-block-embed__wrapper iframe,
.wp-block-embed__wrapper video,
.wp-block-embed__wrapper object,
.wp-block-embed__wrapper embed {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.wp-block-embed figcaption {
    display: block;
    font-size: 0.8125rem;
    line-height: 1.5;
    padding: 0.5rem 0.75rem;
    margin: 0;
    text-align: center;
    background-color: #f3f3f3;
    border: 1px solid #ddd;
    border-top: 0;
    border-radius: 0 0 4px 4px;
    color: #6c757d;
}

/* GUTENBERG AUDIO BLOCK */

.wp-block-audio {
    margin-bottom: 1.5rem;
}

.wp-block-audio audio {
    display: block;
    width: 100%;
    border-radius: 4px;
}

.wp-block-audio figcaption {
    display: block;
    font-size: 0.8125rem;
    line-height: 1.5;
    padding: 0.5rem 0.75rem;
    margin: 0;
    text-align: center;
    background-color: #f3f3f3;
    border: 1px solid #ddd;
    border-top: 0;
    border-radius: 0 0 4px 4px;
    color: #6c757d;
}
/* GUTENBERG TABLE BLOCK */

.wp-block-table {
    margin-bottom: 1.5rem;
    overflow-x: auto;
}

.wp-block-table table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9375rem;
}

.wp-block-table thead {
    background-color: #f8f9fa;
    border-bottom: 2px solid #dee2e6;
}

.wp-block-table thead th {
    padding: 0.75rem 1rem;
    font-weight: 600;
    text-align: left;
    color: #212529;
    border: 1px solid #dee2e6;
}

.wp-block-table tbody td {
    padding: 0.75rem 1rem;
    border: 1px solid #dee2e6;
    color: #212529;
    vertical-align: top;
    line-height: 1.5;
}

.wp-block-table tfoot td {
    padding: 0.75rem 1rem;
    border: 1px solid #dee2e6;
    font-size: 0.875rem;
    color: #6c757d;
    font-style: italic;
}

/* Striped style */
.wp-block-table.is-style-stripes tbody tr:nth-child(odd) {
    background-color: #f8f9fa;
}

.wp-block-table.is-style-stripes tbody tr:nth-child(even) {
    background-color: #fff;
}

.wp-block-table.is-style-stripes thead {
    background-color: #e9ecef;
}

/* No borders style */
.wp-block-table.is-style-regular table {
    border: 1px solid #dee2e6;
}

/* Table caption / figcaption */
.wp-block-table figcaption {
    display: block;
    font-size: 0.8125rem;
    line-height: 1.5;
    padding: 0.5rem 0.75rem;
    margin: 0;
    text-align: center;
    background-color: #f3f3f3;
    border: 1px solid #ddd;
    border-top: 0;
    color: #6c757d;
}

/* Responsive table on small screens */
@media (max-width: 576px) {
    .wp-block-table table {
        font-size: 0.875rem;
    }

    .wp-block-table thead th,
    .wp-block-table tbody td,
    .wp-block-table tfoot td {
        padding: 0.5rem 0.625rem;
    }
}
/* GUTENBERG FILE DOWNLOAD BLOCK */

.wp-block-file {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.25rem;
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    margin-bottom: 1.5rem;
}

.wp-block-file .wp-block-file__content-wrapper {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex: 1;
}

/* File name link */
.wp-block-file a:not(.wp-block-file__button) {
    font-size: 0.9375rem;
    font-weight: 500;
    color: #212529;
    text-decoration: none;
    word-break: break-word;
}

.wp-block-file a:not(.wp-block-file__button):hover {
    color: #0d6efd;
    text-decoration: underline;
}

/* Download button */
.wp-block-file__button {
    display: inline-block;
    padding: 0.375rem 1rem;
    background-color: #0d6efd;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    white-space: nowrap;
    transition: background-color 0.15s ease-in-out;
    cursor: pointer;
}

.wp-block-file__button:hover {
    background-color: #0a58ca;
    color: #fff;
    text-decoration: none;
}

/* Responsive — stack on small screens */
@media (max-width: 576px) {
    .wp-block-file {
        flex-direction: column;
        align-items: flex-start;
    }

    .wp-block-file__button {
        width: 100%;
        text-align: center;
    }
}
/* GUTENBERG GROUP BLOCK */

.wp-block-group {
    margin-bottom: 1.5rem;
}

.wp-block-group .wp-block-group__inner-container {
    width: 100%;
}

/* Group block styles */
.wp-block-group.is-style-default {
    padding: 1.5rem;
}

.wp-block-group.has-background {
    padding: 1.5rem;
    border-radius: 4px;
}

/* Wide and full group blocks */
.wp-block-group.alignwide {
    margin-left: -2rem;
    margin-right: -2rem;
    padding-left: 2rem;
    padding-right: 2rem;
}

.wp-block-group.alignfull {
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    padding-left: calc(50vw - 50%);
    padding-right: calc(50vw - 50%);
}


/* GUTENBERG COLUMNS BLOCK */

.wp-block-columns {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    align-items: flex-start;
}

.wp-block-column {
    flex: 1;
    min-width: 0;
}

/* Stack columns on mobile */
@media (max-width: 599px) {
    .wp-block-columns {
        flex-direction: column;
    }

    .wp-block-column {
        width: 100%;
        flex: none;
    }
}

/* Two columns */
.wp-block-columns.has-2-columns .wp-block-column {
    flex-basis: calc(50% - 0.75rem);
}

/* Three columns */
.wp-block-columns.has-3-columns .wp-block-column {
    flex-basis: calc(33.333% - 1rem);
}

/* Four columns */
.wp-block-columns.has-4-columns .wp-block-column {
    flex-basis: calc(25% - 1.125rem);
}

/* Column block with background */
.wp-block-column.has-background {
    padding: 1.25rem;
    border-radius: 4px;
}

/* Nested group inside column */
.wp-block-column .wp-block-group {
    margin-bottom: 0;
}

/* Column spacing variants */
.wp-block-columns.is-not-stacked-on-mobile {
    flex-wrap: nowrap;
}

@media (max-width: 599px) {
    .wp-block-columns.is-not-stacked-on-mobile {
        flex-direction: row;
    }

    .wp-block-columns.is-not-stacked-on-mobile .wp-block-column {
        width: auto;
        flex: 1;
    }
}


/* GUTENBERG ROW BLOCK */
.wp-block-group.is-layout-flex {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
}

.wp-block-group.is-layout-flex.is-content-justification-left {
    justify-content: flex-start;
}

.wp-block-group.is-layout-flex.is-content-justification-center {
    justify-content: center;
}

.wp-block-group.is-layout-flex.is-content-justification-right {
    justify-content: flex-end;
}

.wp-block-group.is-layout-flex.is-content-justification-space-between {
    justify-content: space-between;
}
/* GUTENBERG BLOCK ALIGN SUPPORTS*/
.alignfull {
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
}
.alignwide {
    max-width: var(--bs-container-lg, 960px); /* or whatever wide should mean */
    margin-left: auto;
    margin-right: auto;
}
/* ACCESSIBILITY */

/* Skip to Content Link */
.skip-link {
    position: absolute;
    top: -100%;
    left: 0;
    z-index: 9999;
    display: block;
    padding: 0.75rem 1.25rem;
    background-color: #0d6efd;
    color: #fff;
    font-size: 0.9375rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 0 0 4px 0;
    transition: top 0.15s ease-in-out;
}

.skip-link:focus {
    top: 0;
    color: #fff;
    outline: 3px solid #fff;
    outline-offset: 2px;
}

/* Screen Reader Text */
.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;
    width: 1px;
    word-wrap: normal !important;
}

.screen-reader-text:focus {
    background-color: #f8f9fa;
    border-radius: 4px;
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
    clip: auto !important;
    clip-path: none;
    color: #212529;
    display: block;
    font-size: 0.9375rem;
    font-weight: 600;
    height: auto;
    left: 0.5rem;
    line-height: normal;
    padding: 1rem 1.5rem;
    text-decoration: none;
    top: 0.5rem;
    width: auto;
    z-index: 100000;
}

/* Focus States */
a:focus,
button:focus,
input:focus,
select:focus,
textarea:focus,
[tabindex]:focus {
    outline: 3px solid #0d6efd;
    outline-offset: 2px;
}

/* Remove outline for mouse users
   only show for keyboard navigation */
a:focus:not(:focus-visible),
button:focus:not(:focus-visible),
input:focus:not(:focus-visible),
select:focus:not(:focus-visible),
textarea:focus:not(:focus-visible),
[tabindex]:focus:not(:focus-visible) {
    outline: none;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
    outline: 3px solid #0d6efd;
    outline-offset: 2px;
}

/* Focus within for grouped elements */
.navbar:focus-within .nav-link:focus,
.widget:focus-within a:focus {
    outline: 3px solid #0d6efd;
    outline-offset: 2px;
}
/* ==============================================
   SITE HEADER — STACKED LAYOUT
   Logo + Header Widget Space row, above the
   primary nav row. See headers/header-stacked.php.
   ============================================== */

.hd-stacked-header__top {
    padding: 0.75rem 0;
}

.hd-stacked-header__widgets {
    justify-content: flex-end;
    align-items: center;
    gap: 1.25rem;
    font-size: 0.875rem;
    color: var(--hd-nav-links);
}

.hd-stacked-header__widgets a {
    color: var(--hd-nav-links);
}

.hd-stacked-header__widgets a:hover {
    color: var(--hd-nav-links-hover);
}

.hd-stacked-header__widgets .widget {
    margin-bottom: 0;
}

/* ==============================================
   WP ADMIN BAR OFFSET
   ============================================== */

/* WP admin bar is 32px on desktop, 46px on mobile */

/* Fixed/sticky header offset when admin bar is showing */
.admin-bar .site-header.fixed-top {
    top: 32px;
}

.admin-bar .site-header.sticky-top {
    top: 32px;
}

/* Offcanvas navbar offset */
.admin-bar .site-header.fixed-top ~ .offcanvas {
    top: 32px;
}

@media (max-width: 782px) {
    .admin-bar .site-header.fixed-top {
        top: 46px;
    }

    .admin-bar .site-header.sticky-top {
        top: 46px;
    }

    .admin-bar .site-header.fixed-top ~ .offcanvas {
        top: 46px;
    }
}

/* Prevent content hiding behind a Fixed/Sticky navbar. Height (including any
   admin-bar offset above) is measured live by fixed-nav-offset.js rather than
   hardcoded, since it depends on the logo and nav font size. Skipped on
   flush-hero pages so the nav can overlay the hero instead — see
   high_divide_body_classes(). */
body.hd-fixed-nav-offset {
    padding-top: var(--hd-header-height, 0px);
}

/* Flush-hero pages skip the body padding above so the nav can overlay the
   hero, but the hero itself still needs to clear the nav — otherwise its
   heading renders behind it (Section's own Vertical Padding can't be relied
   on: even "5 — Extra Large" isn't guaranteed to match the nav's real
   height, which varies with the logo and nav font size). Pushing the whole
   hero block down looks identical to a true behind-the-nav overlay since
   the navbar is opaque either way. */
.hd-flush-hero {
    padding-top: var(--hd-header-height, 0px);
}

/* Output from the high_divide_after_header hook (e.g. a sitewide bar) sits
   between the header and <main>. On a flush-hero page with a Fixed Top nav
   the body has no offset, so the bar would hide behind the nav. Instead the
   bar clears the nav, and the hero below it no longer needs to. On every
   other page the body offset already clears the nav. --hd-header-height is
   only set when the nav is Fixed Top, so these rules are inert otherwise. */
body:not(.hd-fixed-nav-offset) .site-header.fixed-top ~ .hd-after-header {
    padding-top: var(--hd-header-height, 0px);
}

body:not(.hd-fixed-nav-offset) .hd-after-header ~ #main-content .hd-flush-hero {
    padding-top: 0;
}

/* A Group used as the hero (hd-hero-pattern) must sit flush against the
   next section; the generic Group bottom margin would show as a gap. */
.hd-flush-hero > .wp-block-group {
    margin-bottom: 0;
}


/* ==============================================
   UTILITY
   ============================================== */

/* Clearfix */
.clearfix::after {
    content: '';
    display: table;
    clear: both;
}

/* Prevent content hiding behind fixed/sticky navbar */
.site-header.fixed-top ~ *,
.site-header.sticky-top ~ * {
    scroll-margin-top: 80px;
}

/* WP generated classes */
.wp-caption {
    max-width: 100%;
    margin-bottom: 1rem;
}

.wp-caption img {
    display: block;
    max-width: 100%;
    height: auto;
}

.wp-caption-text {
    font-size: 0.8125rem;
    color: #6c757d;
    text-align: center;
    padding: 0.375rem 0.5rem;
    background-color: #f3f3f3;
    border: 1px solid #ddd;
    border-top: 0;
}

/* Assistive text */
.says,
.logged-in-as {
    font-size: 0.875rem;
    color: #6c757d;
}

/* Password protected post form */
.post-password-form {
    margin-bottom: 1.5rem;
}

.post-password-form label {
    display: block;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.post-password-form input[type="password"] {
    padding: 0.5rem 0.75rem;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    font-size: 1rem;
    margin-right: 0.5rem;
    color: #212529;
}

.post-password-form input[type="password"]:focus {
    border-color: #0d6efd;
    outline: 0;
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
}

.post-password-form input[type="submit"] {
    padding: 0.5rem 1.25rem;
    background-color: #0d6efd;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.15s ease-in-out;
}

.post-password-form input[type="submit"]:hover {
    background-color: #0a58ca;
}

/* Print styles */
@media print {
    .navbar,
    .sidebar,
    .widget-area,
    .wp-block-buttons,
    .post-navigation,
    .comments-area .comment-respond {
        display: none;
    }

    body {
        font-size: 12pt;
        color: #000;
    }

    a {
        color: #000;
        text-decoration: underline;
    }

    .entry-content img {
        max-width: 100% !important;
    }
}
