/*
Theme Name: SDTTA Modern
Description: Responsive, mobile-friendly refresh of the SDTTA theme. Keeps the SDTTA page templates, sidebars, page-tree menu and helper functions of the original iNove-based theme, with colors taken from the SDTTA logo.
Version: 0.1.0
Author: Daryl Sterling Jr.
Author URI: https://sdtta.org/
Requires at least: 6.0
Requires PHP: 8.0
Text Domain: sdtta-modern
Tags: two-columns, right-sidebar, responsive-layout, custom-menu, theme-options, threaded-comments
*/

/* ==========================================================================
   Tokens: colors from the SDTTA logo (ocean wave + sun ball)
   ========================================================================== */
:root {
	--sd-ocean-950: #061f3a;
	--sd-ocean-900: #0a2f57;
	--sd-ocean-800: #0b4a86;
	--sd-ocean-700: #0b5ea8;
	--sd-ocean-500: #1489d4;
	--sd-sky-400: #22a3e3;
	--sd-sky-100: #e3f2fb;
	--sd-sky-50: #f2f9fd;
	--sd-sun-400: #f4bd3c;
	--sd-sun-500: #f0a531;
	--sd-sun-600: #e8892b;
	--sd-ink: #1c2733;
	--sd-ink-soft: #3d4b59;
	--sd-muted: #5f6f7e;
	--sd-border: #d3e2ee;
	--sd-white: #fff;

	--sd-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	--sd-radius: 10px;
	--sd-shadow: 0 1px 2px rgba(6, 31, 58, 0.08), 0 4px 16px rgba(6, 31, 58, 0.08);
	--sd-max: 1200px;
	--sd-gutter: 16px;
}

/* ==========================================================================
   Base
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
	margin: 0;
	background: var(--sd-ocean-950) url(assets/img/skyline.jpg) center top / 100% auto no-repeat;
	color: var(--sd-ink);
	font-family: var(--sd-font);
	font-size: 16px;
	line-height: 1.6;
}

img, video, iframe, embed, object { max-width: 100%; }
img { height: auto; }

a { color: var(--sd-ocean-700); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover, a:focus { color: var(--sd-ocean-500); }
:focus-visible { outline: 3px solid var(--sd-sun-500); outline-offset: 2px; }

h1, h2, h3, h4, h5, h6 { color: var(--sd-ocean-900); line-height: 1.25; margin: 1.4em 0 0.5em; letter-spacing: -0.01em; }
h1 { font-size: 1.9rem; }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.2rem; }
h4 { font-size: 1.05rem; }
p, ul, ol, dl, blockquote, pre, table, figure { margin: 0 0 1em; }

blockquote { border-left: 4px solid var(--sd-sky-400); background: var(--sd-sky-50); padding: 0.75em 1em; margin-left: 0; }
pre { overflow-x: auto; background: var(--sd-sky-50); padding: 0.75em 1em; border-radius: 6px; }
hr { border: 0; border-top: 1px solid var(--sd-border); margin: 1.5em 0; }

table { border-collapse: collapse; max-width: 100%; }
th, td { padding: 4px 6px; vertical-align: top; }

input[type="text"], input[type="email"], input[type="password"], input[type="search"], input[type="tel"], input[type="url"], input[type="number"], select, textarea {
	font: inherit;
	max-width: 100%;
	padding: 6px 10px;
	border: 1px solid var(--sd-border);
	border-radius: 6px;
	background: var(--sd-white);
}

.button, button, input[type="submit"], input[type="button"] {
	font: inherit;
	cursor: pointer;
}

.sd-button,
input[type="submit"].sd-button,
.comment-form input[type="submit"] {
	display: inline-block;
	padding: 8px 16px;
	border: 0;
	border-radius: 999px;
	background: var(--sd-ocean-700);
	color: var(--sd-white);
	font-weight: 600;
	text-decoration: none;
	line-height: 1.3;
}
.sd-button:hover, .sd-button:focus, .comment-form input[type="submit"]:hover { background: var(--sd-ocean-800); color: var(--sd-white); }
.sd-button--sun { background: linear-gradient(180deg, var(--sd-sun-400), var(--sd-sun-600)); color: var(--sd-ocean-950); }
.sd-button--sun:hover, .sd-button--sun:focus { background: var(--sd-sun-600); color: var(--sd-ocean-950); }
.sd-button--ghost { background: transparent; color: var(--sd-ocean-700); box-shadow: inset 0 0 0 1px var(--sd-border); }
.sd-button--ghost:hover, .sd-button--ghost:focus { background: var(--sd-sky-50); color: var(--sd-ocean-800); }

.screen-reader-text {
	border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%);
	height: 1px; width: 1px; margin: -1px; overflow: hidden; padding: 0;
	position: absolute !important; word-wrap: normal !important;
}
.skip-link:focus {
	clip: auto; clip-path: none; height: auto; width: auto; margin: 0;
	left: 8px; top: 8px; z-index: 100001;
	padding: 10px 16px; background: var(--sd-white); color: var(--sd-ocean-900); border-radius: 6px;
}

/* ==========================================================================
   Layout
   ========================================================================== */
.site {
	max-width: var(--sd-max);
	margin: 0 auto;
	background: var(--sd-sky-50);
	min-height: 100vh;
	display: flex;
	flex-direction: column;
}

.site-content {
	flex: 1;
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 24px;
	padding: 20px var(--sd-gutter) 32px;
}

@media (min-width: 960px) {
	body { padding: 24px 24px 0; }
	.site { min-height: calc(100vh - 24px); border-radius: var(--sd-radius) var(--sd-radius) 0 0; overflow: hidden; box-shadow: 0 10px 40px rgba(0, 0, 0, 0.35); }
	.site-content { grid-template-columns: minmax(0, 1fr) 320px; padding: 28px 28px 40px; gap: 28px; }
	.site-content.no-sidebar { grid-template-columns: minmax(0, 1fr); }
}

.site-main { min-width: 0; }

/* ==========================================================================
   Header
   ========================================================================== */
.site-header { background: var(--sd-white); position: relative; z-index: 50; }

.utility-bar {
	background: var(--sd-ocean-950);
	color: #cfe4f3;
	font-size: 0.85rem;
}
.utility-bar .inner {
	display: flex;
	justify-content: flex-end;
	gap: 16px;
	padding: 6px var(--sd-gutter);
}
.utility-bar a { color: #e6f3fc; text-decoration: none; }
.utility-bar a:hover, .utility-bar a:focus { color: var(--sd-sun-400); text-decoration: underline; }

.site-branding {
	display: flex;
	align-items: center;
	gap: 16px;
	padding: 12px var(--sd-gutter);
}
.site-logo { display: block; flex: 0 1 auto; min-width: 0; line-height: 0; }
/* horizontal lockup (about 6:1): size by height, never wider than the room left beside the Menu button */
.site-logo img { width: min(232px, calc(100vw - 150px)); height: auto; }

.site-tagline {
	margin: 0;
	flex: 1;
	color: var(--sd-ocean-800);
	font-weight: 600;
	font-size: 0.95rem;
	line-height: 1.3;
}
.site-tagline small { display: block; color: var(--sd-muted); font-weight: 400; font-size: 0.8rem; }

.header-cta { display: none; gap: 10px; align-items: center; }

.menu-toggle {
	margin-left: auto;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 8px 12px;
	border: 1px solid var(--sd-border);
	border-radius: 8px;
	background: var(--sd-white);
	color: var(--sd-ocean-900);
	font-weight: 600;
}
.menu-toggle-icon,
.menu-toggle-icon::before,
.menu-toggle-icon::after {
	display: block;
	width: 18px;
	height: 2px;
	background: currentColor;
	border-radius: 2px;
	position: relative;
	transition: transform 0.2s ease;
}
.menu-toggle-icon::before, .menu-toggle-icon::after { content: ""; position: absolute; left: 0; }
.menu-toggle-icon::before { top: -6px; }
.menu-toggle-icon::after { top: 6px; }
.menu-toggle[aria-expanded="true"] .menu-toggle-icon { background: transparent; }
.menu-toggle[aria-expanded="true"] .menu-toggle-icon::before { transform: translateY(6px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle-icon::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 599px) {
	/* phones: logo + menu button on one row, tagline on its own line underneath */
	.site-branding { flex-wrap: wrap; row-gap: 4px; }
	.site-tagline { order: 3; flex-basis: 100%; font-size: 0.85rem; }
	.site-tagline small { display: none; }
}

@media (min-width: 600px) {
	.site-logo img { width: 280px; }
	.site-tagline { font-size: 1.15rem; }
}

/* ==========================================================================
   Navigation (page tree via wp_list_pages, or a WP menu if one is assigned)
   ========================================================================== */
.main-navigation {
	background: linear-gradient(180deg, var(--sd-ocean-700), var(--sd-ocean-800));
	border-bottom: 3px solid var(--sd-sun-500);
}
.main-navigation ul { list-style: none; margin: 0; padding: 0; }
.main-navigation a {
	display: block;
	color: var(--sd-white);
	text-decoration: none;
	font-weight: 600;
	font-size: 0.95rem;
}

/* Mobile: collapsible panel */
.main-navigation .menu { display: none; padding: 6px 0 10px; }
.main-navigation.is-open .menu { display: block; }
.main-navigation li { position: relative; border-top: 1px solid rgba(255, 255, 255, 0.12); }
.main-navigation .menu > li:first-child { border-top: 0; }
.main-navigation a { padding: 12px var(--sd-gutter); padding-right: 56px; }
.main-navigation a:hover, .main-navigation a:focus { background: rgba(255, 255, 255, 0.12); }
.main-navigation .current_page_item > a,
.main-navigation .current-menu-item > a,
.main-navigation .current_page_ancestor > a { color: var(--sd-sun-400); }

.main-navigation ul ul { display: none; background: rgba(0, 0, 0, 0.18); }
.main-navigation li.is-open > ul { display: block; }
.main-navigation ul ul a { padding-left: calc(var(--sd-gutter) + 16px); font-weight: 500; }

.submenu-toggle {
	position: absolute;
	right: 4px;
	top: 2px;
	width: 44px;
	height: 44px;
	border: 0;
	border-radius: 8px;
	background: transparent;
	color: var(--sd-white);
}
.submenu-toggle::before {
	content: "";
	display: inline-block;
	width: 8px;
	height: 8px;
	border-right: 2px solid currentColor;
	border-bottom: 2px solid currentColor;
	transform: rotate(45deg) translate(-2px, -2px);
	transition: transform 0.2s ease;
}
.submenu-toggle[aria-expanded="true"]::before { transform: rotate(-135deg) translate(-2px, -2px); }
.submenu-toggle:hover, .submenu-toggle:focus { background: rgba(255, 255, 255, 0.12); }

/* Desktop: horizontal bar with dropdowns */
@media (min-width: 960px) {
	.menu-toggle { display: none; }
	.header-cta { display: flex; }
	.site-branding { padding: 16px 28px; }
	.site-logo img { width: 380px; }
	.utility-bar .inner { padding: 6px 28px; }

	.main-navigation .menu { display: flex; flex-wrap: wrap; padding: 0 16px; }
	.main-navigation li { border-top: 0; }
	.main-navigation .menu > li > a { padding: 13px 14px; }
	.main-navigation .menu > li.has-submenu > a { padding-right: 30px; }

	.main-navigation .submenu-toggle { width: 24px; height: 24px; top: 12px; right: 4px; }
	.main-navigation .submenu-toggle::before { width: 6px; height: 6px; }

	.main-navigation ul ul {
		position: absolute;
		left: 0;
		top: 100%;
		min-width: 230px;
		padding: 6px 0;
		background: var(--sd-white);
		border-radius: 0 0 8px 8px;
		box-shadow: var(--sd-shadow);
		border-top: 3px solid var(--sd-sun-500);
	}
	.main-navigation li:hover > ul,
	.main-navigation li:focus-within > ul,
	.main-navigation li.is-open > ul { display: block; }
	.main-navigation ul ul a { color: var(--sd-ocean-900); padding: 9px 16px; font-weight: 500; }
	.main-navigation ul ul a:hover, .main-navigation ul ul a:focus { background: var(--sd-sky-100); color: var(--sd-ocean-800); }
	.main-navigation ul ul .submenu-toggle { display: none; }
	.main-navigation ul ul ul { left: 100%; top: -6px; border-radius: 8px; }
}

/* ==========================================================================
   Cards: posts, pages and the legacy ".post" markup used by the page templates
   ========================================================================== */
.post,
.card,
.page-header,
.comments-area,
.errorbox,
.messagebox {
	background: var(--sd-white);
	border: 1px solid var(--sd-border);
	border-radius: var(--sd-radius);
	box-shadow: var(--sd-shadow);
	padding: 20px;
	margin-bottom: 24px;
	overflow-wrap: break-word;
}
@media (min-width: 600px) {
	.post, .card, .page-header, .comments-area { padding: 24px 28px; }
}

.post > h1:first-child, .post > h2:first-child,
.entry-title { margin-top: 0; }
.post h2 { font-size: 1.5rem; }
.entry-title { font-size: 1.6rem; margin-bottom: 0.25em; }
.entry-title a, .post h2 a.title { color: var(--sd-ocean-900); text-decoration: none; }
.entry-title a:hover, .entry-title a:focus, .post h2 a.title:hover { color: var(--sd-ocean-500); text-decoration: underline; }

/* Meta line: new templates use .entry-meta, legacy templates use .info/.date/.act */
.entry-meta,
.post .info {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px 16px;
	color: var(--sd-muted);
	font-size: 0.85rem;
	border-bottom: 1px solid var(--sd-border);
	padding-bottom: 10px;
	margin-bottom: 16px;
}
.post .info .act { display: flex; gap: 12px; margin-left: auto; }
.entry-meta a, .post .info a { color: var(--sd-ocean-700); }
.entry-meta .edit-link, .post .info .editpost { margin-left: auto; }

.entry-footer { color: var(--sd-muted); font-size: 0.85rem; border-top: 1px solid var(--sd-border); padding-top: 10px; margin-top: 16px; }
.entry-footer > span + span::before { content: "·"; margin: 0 8px; }

.fixed, .clear { clear: both; }
.alignleft { float: left; margin: 0 1em 0.5em 0; }
.alignright { float: right; margin: 0 0 0.5em 1em; }
.aligncenter { display: block; margin-left: auto; margin-right: auto; }
.wp-caption { max-width: 100%; }
.wp-caption-text, .wp-element-caption { color: var(--sd-muted); font-size: 0.85rem; text-align: center; }

/* Old content often has fixed pixel widths in inline styles */
.entry-content [style*="width"],
.post .content [style*="width"] { max-width: 100%; }
.entry-content::after, .post .content::after { content: ""; display: table; clear: both; }

@media (max-width: 759px) {
	.entry-content table, .post .content table, .site-main > table {
		display: block;
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
	}
	.alignleft, .alignright { float: none; margin: 0 0 1em; }
}

/* Homepage mission notice (from the theme options) */
#notice.post {
	background: linear-gradient(135deg, var(--sd-white) 60%, #fff7e8);
	border-left: 5px solid var(--sd-sun-500);
}
#notice .content > div[style] { font-family: inherit !important; font-size: 1.05rem !important; line-height: 1.55 !important; }
@media (max-width: 759px) {
	#notice .content > div[style] { text-align: left !important; }
}

/* Join and Membership Card templates lay out with a 600px table: an empty 130px spacer cell, then
   the content (with the PayPal form as a label/input table). On phones, stack it all. */
@media (max-width: 759px) {
	.page-template-join-php .site-main table,
	.page-template-join-php .site-main tbody,
	.page-template-join-php .site-main tr,
	.page-template-join-php .site-main td,
	.page-template-membership-card-php .site-main > table,
	.page-template-membership-card-php .site-main > table > tbody,
	.page-template-membership-card-php .site-main > table > tbody > tr,
	.page-template-membership-card-php .site-main > table > tbody > tr > td {
		display: block;
		width: auto !important;
		max-width: 100%;
		overflow: visible;
	}
	.page-template-join-php .site-main td[width="130"],
	.page-template-membership-card-php .site-main td[width="130"] { display: none; }
	.page-template-join-php .site-main input[type="text"],
	.page-template-join-php .site-main textarea { width: 100%; }
	.page-template-membership-card-php .card { width: auto !important; max-width: 400px; }
}

/* Page header for archives, search, 404 */
.page-header { padding-top: 16px; padding-bottom: 16px; }
.page-title { margin: 0; font-size: 1.4rem; }
.archive-description { color: var(--sd-muted); margin-top: 6px; }

/* Pagination */
.pagination, #pagenavi { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin: 8px 0 24px; }
.pagination .nav-links { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.pagination .page-numbers, #pagenavi a, #pagenavi span {
	display: inline-block;
	padding: 6px 12px;
	border-radius: 999px;
	background: var(--sd-white);
	border: 1px solid var(--sd-border);
	text-decoration: none;
}
.pagination .page-numbers.current { background: var(--sd-ocean-700); color: var(--sd-white); border-color: var(--sd-ocean-700); }

/* ==========================================================================
   Sidebar
   ========================================================================== */
.sidebar { min-width: 0; }
.sidebar .widget {
	background: var(--sd-white);
	border: 1px solid var(--sd-border);
	border-radius: var(--sd-radius);
	box-shadow: var(--sd-shadow);
	padding: 18px 20px;
	margin-bottom: 20px;
	overflow: hidden;
	font-size: 0.95rem;
}
.sidebar .widget h2,
.sidebar .widget h3,
.sidebar .widget-title {
	margin: 0 0 10px;
	font-size: 1.05rem;
	color: var(--sd-ocean-900);
	padding-bottom: 8px;
	border-bottom: 2px solid var(--sd-sky-100);
}
.sidebar .widget ul { list-style: none; padding: 0; margin: 0; }
.sidebar .widget li { padding: 5px 0; border-bottom: 1px solid var(--sd-sky-100); }
.sidebar .widget li:last-child { border-bottom: 0; }
.sidebar .widget li a { text-decoration: none; }
.sidebar .widget li a:hover, .sidebar .widget li a:focus { text-decoration: underline; }

/* The "Most recent news..." heading lives in its own block widget, the list in the next one */
.sidebar .widget_block:has(> h3:only-child) { margin-bottom: 0; border-bottom: 0; border-radius: var(--sd-radius) var(--sd-radius) 0 0; padding-bottom: 0; box-shadow: none; }
.sidebar .widget_block:has(> h3:only-child) + .widget_block { border-top: 0; border-radius: 0 0 var(--sd-radius) var(--sd-radius); padding-top: 4px; }
.sidebar .wp-block-latest-posts { padding: 0; }

.member-box { text-align: center; background: linear-gradient(180deg, var(--sd-white), var(--sd-sky-50)); }
.member-box p { margin: 0 0 8px; }
.member-box .sd-button { width: 100%; margin-bottom: 8px; }
.member-box .member-links { display: flex; justify-content: center; gap: 14px; font-size: 0.9rem; }

.fb-widget iframe { display: block; width: 100%; border: 0; }

/* Thursday RR winners: markup is injected by multiroundrobin.com's winners.js */
.rr-winners .mrr_whole_box { color: var(--sd-ink); }
.rr-winners .mrr_whole_box h2 {
	position: relative;
	padding-right: 38px; /* room for the medal */
	line-height: 1.3;
}
.rr-winners .mrr_whole_box h2::after {
	content: "";
	position: absolute;
	right: 0;
	top: -4px;
	width: 26px;
	height: 37px;
	background: url(https://www.multiroundrobin.com/imgs/gold-medal.png) no-repeat center / contain;
}
.rr-winners .mrr_date_tournament { white-space: nowrap; }
.rr-winners sup { font-size: 0.65em; line-height: 0; position: relative; top: -0.5em; vertical-align: baseline; }
.rr-winners .mrr_whole_box > a { text-decoration: none; }
.rr-winners .mrr_whole_box > a:hover h4, .rr-winners .mrr_whole_box > a:focus h4 { text-decoration: underline; }
.rr-winners .mrr_whole_box h4 { margin: 0 0 6px; font-size: 0.95rem; color: var(--sd-ocean-700); }
.rr-winners .mrr_error_msg_div { color: #b42318; }
.rr-winners .mrr_error_msg_div:empty { display: none; }

.rr-winners .mrr_group_winners_table { width: 100%; margin: 0; }
.rr-winners .mrr_group_winners_table td { padding: 3px 0; vertical-align: middle; }
/* the three star columns (all games / all matches / upset), then the name */
.rr-winners .mrr_group_winners_table td:not(:last-child) { width: 1.15em; text-align: center; font-size: 1.05rem; line-height: 1; }
.rr-winners .mrr_group_winners_table td:last-child { padding-left: 6px; overflow-wrap: anywhere; }
/* winner rows are the ones without a class */
.rr-winners .mrr_group_winners_table tr:not([class]) a { text-decoration: none; font-weight: 600; }
.rr-winners .mrr_group_winners_table tr:not([class]) a:hover, .rr-winners .mrr_group_winners_table tr:not([class]) a:focus { text-decoration: underline; }
.rr-winners .mrr_group_winners_table .mrr_all_games_won { color: var(--sd-sun-600); }
.rr-winners .mrr_group_winners_table .mrr_all_matches_won { color: var(--sd-sun-400); }
.rr-winners .mrr_group_winners_table .mrr_upset_victory { color: var(--sd-sky-400); }

.rr-winners .mrr_sep td, .rr-winners .mrr_sep_2 td { padding: 0; }
.rr-winners .mrr_group_winners_table hr { margin: 8px 0; border-top-color: var(--sd-sky-100); }
.rr-winners .mrr_legend td { padding: 1px 0; font-size: 0.8rem; color: var(--sd-muted); }
.rr-winners .mrr_legend td:not(:last-child) { font-size: 0.9rem; }
.rr-winners .mrr_power_by td { padding: 0; text-align: center; font-size: 0.75rem; color: var(--sd-muted); }
.rr-winners .mrr_power_by a { color: inherit; }

/* ==========================================================================
   Footer
   ========================================================================== */
.footer-ads { text-align: center; padding: 12px var(--sd-gutter); background: var(--sd-sky-100); border-top: 1px solid var(--sd-border); }
.footer-ads:empty { display: none; }
@media (max-width: 759px) {
	/* the legacy AdSense unit is a fixed 728x90 block and can't shrink */
	.footer-ads--legacy { display: none; }
}

.site-footer {
	background: var(--sd-ocean-900);
	color: #cfe4f3;
	font-size: 0.9rem;
}
.site-footer .inner {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 20px;
	align-items: center;
	justify-content: space-between;
	padding: 18px var(--sd-gutter);
}
.site-footer a { color: #e6f3fc; }
.site-footer a:hover, .site-footer a:focus { color: var(--sd-sun-400); }
.footer-title { color: var(--sd-white); font-weight: 600; }
@media (min-width: 960px) { .site-footer .inner { padding: 20px 28px; } }

/* ==========================================================================
   Comments
   ========================================================================== */
.comment-list { list-style: none; margin: 0 0 1.5em; padding: 0; }
.comment-list .children { list-style: none; margin: 0; padding-left: 20px; border-left: 2px solid var(--sd-sky-100); }
.comment-body { padding: 12px 0; border-bottom: 1px solid var(--sd-border); }
.comment-meta { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: center; font-size: 0.85rem; color: var(--sd-muted); }
.comment-author { display: flex; align-items: center; gap: 8px; font-weight: 600; color: var(--sd-ink); }
.comment-author .avatar { border-radius: 50%; }
.comment-content { margin-top: 6px; }
.reply { font-size: 0.85rem; }
.comment-form label { display: block; font-weight: 600; font-size: 0.9rem; }
.comment-form input[type="text"], .comment-form input[type="email"], .comment-form input[type="url"], .comment-form textarea { width: 100%; }

/* ==========================================================================
   Plugin / embed compatibility
   ========================================================================== */
/* NextGEN galleries */
.ngg-galleryoverview { display: flex; flex-wrap: wrap; gap: 8px; }
.ngg-gallery-thumbnail-box { float: none !important; width: auto !important; }

/* Google Calendar and other wide embeds keep their height, shrink their width */
.entry-content iframe, .post .content iframe { max-width: 100%; }

/* Legacy search box & forms inside content */
.post .content input[type="text"], .post .content select { max-width: 100%; }

@media print {
	body { background: none; }
	.site-header, .sidebar, .site-footer, .footer-ads, .comments-area { display: none; }
	.post { box-shadow: none; border: 0; }
}
