/*
Theme Name: The Field Service Guy
Theme URI: https://example.com/the-field-service-guy
Author: Mehdi
Description: A fast, magazine-style WordPress theme for sharing Salesforce Field Service news, release highlights, best practices and tutorials. Featured hero, category sections, topic tiles, newsletter call to action, reading progress, automatic table of contents, related posts and callout block styles. No page builder, no jQuery, no external fonts.
Version: 1.0.0
Requires at least: 6.3
Tested up to: 6.8
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: field-service-guy
Tags: blog, news, two-columns, right-sidebar, custom-logo, custom-menu, featured-images, sticky-post, threaded-comments, translation-ready, wide-blocks, block-styles
*/

/* ==========================================================================
   1. Tokens
   ========================================================================== */
:root {
	--fsg-navy: #032D60;
	--fsg-blue: #0B5CAB;
	--fsg-sky: #1B96FF;
	--fsg-ice: #EAF5FE;
	--fsg-ink: #16202C;
	--fsg-text: #2B3440;
	--fsg-muted: #5C6B7A;
	--fsg-line: #DCE3EA;
	--fsg-bg: #FFFFFF;
	--fsg-soft: #F4F7FA;
	--fsg-success: #2E844A;
	--fsg-warning: #A96404;
	--fsg-radius: 12px;
	--fsg-radius-sm: 8px;
	--fsg-shadow: 0 1px 2px rgba(3, 45, 96, .06), 0 4px 16px rgba(3, 45, 96, .06);
	--fsg-shadow-hover: 0 2px 4px rgba(3, 45, 96, .08), 0 12px 32px rgba(3, 45, 96, .12);
	--fsg-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	--fsg-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
	--fsg-container: 1200px;
	--fsg-narrow: 760px;
	--fsg-gutter: clamp(16px, 4vw, 32px);
}

/* ==========================================================================
   2. Base
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
	margin: 0;
	background: var(--fsg-bg);
	color: var(--fsg-text);
	font-family: var(--fsg-font);
	font-size: 17px;
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}
img, svg, video, iframe { max-width: 100%; height: auto; }
img { display: block; }
a { color: var(--fsg-blue); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4, h5, h6 { color: var(--fsg-ink); line-height: 1.25; margin: 0 0 .5em; font-weight: 700; letter-spacing: -.01em; }
p { margin: 0 0 1.2em; }
:focus-visible { outline: 3px solid var(--fsg-sky); outline-offset: 2px; border-radius: 4px; }
::selection { background: var(--fsg-sky); color: #fff; }

.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;
}
.skip-link:focus {
	clip: auto; clip-path: none; height: auto; width: auto; z-index: 1000;
	top: 8px; left: 8px; padding: 12px 18px; background: #fff; color: var(--fsg-navy); border-radius: 8px; box-shadow: var(--fsg-shadow);
}

.fsg-container { width: 100%; max-width: calc(var(--fsg-container) + 2 * var(--fsg-gutter)); margin: 0 auto; padding: 0 var(--fsg-gutter); }
.fsg-container--narrow { max-width: calc(var(--fsg-narrow) + 2 * var(--fsg-gutter)); }

/* Buttons & pills */
.fsg-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: .4em;
	padding: .62em 1.15em; border-radius: 999px; border: 2px solid transparent;
	font: 600 15px/1.2 var(--fsg-font); cursor: pointer; text-decoration: none !important;
	transition: background .15s, color .15s, transform .15s;
}
.fsg-btn--primary { background: var(--fsg-blue); color: #fff; }
.fsg-btn--primary:hover { background: var(--fsg-navy); color: #fff; }
.fsg-btn--light { background: #fff; color: var(--fsg-navy); }
.fsg-btn--light:hover { background: var(--fsg-ice); }
.fsg-pill {
	display: inline-block; padding: .2em .7em; border-radius: 999px;
	background: var(--fsg-ice); color: var(--fsg-blue);
	font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; line-height: 1.6;
}
.fsg-pill:hover { background: var(--fsg-blue); color: #fff; text-decoration: none; }
.fsg-icon-btn {
	display: inline-flex; align-items: center; justify-content: center;
	width: 42px; height: 42px; border-radius: 50%; border: 0; background: transparent; color: var(--fsg-ink); cursor: pointer;
}
.fsg-icon-btn:hover { background: var(--fsg-soft); }

/* ==========================================================================
   3. Header
   ========================================================================== */
.fsg-progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 200; }
.fsg-progress__bar { display: block; height: 100%; background: linear-gradient(90deg, var(--fsg-sky), var(--fsg-blue)); transform: scaleX(0); transform-origin: 0 50%; }
.admin-bar .fsg-progress { top: 32px; }

.fsg-topbar { background: var(--fsg-navy); color: rgba(255, 255, 255, .82); font-size: 13px; }
.fsg-topbar__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 36px; }
.fsg-topbar__text { margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fsg-social { display: flex; gap: 16px; flex-wrap: wrap; }
.fsg-social a { color: inherit; font-weight: 600; }
.fsg-social a:hover { color: #fff; }

.fsg-header { position: sticky; top: 0; z-index: 100; background: rgba(255, 255, 255, .96); backdrop-filter: saturate(1.4) blur(8px); border-bottom: 1px solid var(--fsg-line); }
.admin-bar .fsg-header { top: 32px; }
.fsg-header__inner { display: flex; align-items: center; gap: 24px; min-height: 72px; }
.fsg-brand { flex: 0 0 auto; }
.fsg-brand .custom-logo { max-height: 48px; width: auto; }
.fsg-wordmark { display: inline-flex; align-items: center; gap: 10px; color: var(--fsg-navy); text-decoration: none !important; }
.fsg-wordmark__icon { color: var(--fsg-blue); display: inline-flex; }
.fsg-wordmark__text { font-weight: 800; font-size: 20px; letter-spacing: -.02em; line-height: 1.1; }
.fsg-wordmark--light { color: #fff; }

.fsg-nav { flex: 1 1 auto; }
.fsg-menu { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; flex-wrap: wrap; }
.fsg-menu > li { position: relative; }
.fsg-menu a { display: block; padding: 8px 12px; border-radius: 8px; color: var(--fsg-ink); font-weight: 600; font-size: 15px; text-decoration: none; }
.fsg-menu a:hover, .fsg-menu .current-menu-item > a, .fsg-menu .current-category-ancestor > a, .fsg-menu .current-menu-ancestor > a { background: var(--fsg-ice); color: var(--fsg-blue); }
.fsg-menu .sub-menu {
	list-style: none; margin: 0; padding: 8px; position: absolute; top: 100%; left: 0; min-width: 220px;
	background: #fff; border: 1px solid var(--fsg-line); border-radius: var(--fsg-radius); box-shadow: var(--fsg-shadow-hover);
	opacity: 0; visibility: hidden; transform: translateY(6px); transition: .15s;
}
.fsg-menu li:hover > .sub-menu, .fsg-menu li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.fsg-header__actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.fsg-menu-toggle { display: none; }
.fsg-burger { display: grid; gap: 4px; width: 20px; }
.fsg-burger span { display: block; height: 2px; background: currentColor; border-radius: 2px; transition: .2s; }
.fsg-menu-toggle[aria-expanded="true"] .fsg-burger span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.fsg-menu-toggle[aria-expanded="true"] .fsg-burger span:nth-child(2) { opacity: 0; }
.fsg-menu-toggle[aria-expanded="true"] .fsg-burger span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.fsg-search-panel { border-top: 1px solid var(--fsg-line); padding: 16px 0; background: #fff; }
.fsg-search-form { display: flex; gap: 8px; }
.fsg-search-form input[type="search"] { flex: 1; min-width: 0; }

input[type="text"], input[type="email"], input[type="url"], input[type="search"], input[type="password"], textarea, select {
	width: 100%; padding: .7em 1em; border: 1.5px solid var(--fsg-line); border-radius: var(--fsg-radius-sm);
	font: inherit; font-size: 16px; color: var(--fsg-ink); background: #fff;
}
input:focus, textarea:focus, select:focus { border-color: var(--fsg-blue); outline: none; box-shadow: 0 0 0 3px rgba(27, 150, 255, .25); }

/* ==========================================================================
   4. Cards
   ========================================================================== */
.fsg-card { position: relative; display: flex; flex-direction: column; min-width: 0; }
.fsg-card__media { display: block; overflow: hidden; border-radius: var(--fsg-radius); aspect-ratio: 16 / 9; background: var(--fsg-soft); }
.fsg-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.fsg-card:hover .fsg-card__media img { transform: scale(1.035); }
.fsg-card__body { padding-top: 14px; display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.fsg-card__title { font-size: 19px; margin: 0; }
.fsg-card__title a { color: var(--fsg-ink); text-decoration: none; background-image: linear-gradient(currentColor, currentColor); background-size: 0 2px; background-repeat: no-repeat; background-position: 0 100%; transition: background-size .25s; }
.fsg-card:hover .fsg-card__title a { color: var(--fsg-blue); background-size: 100% 2px; }
.fsg-card__excerpt { margin: 0; color: var(--fsg-muted); font-size: 15px; line-height: 1.55; }

.fsg-card--hero .fsg-card__title { font-size: clamp(26px, 3.2vw, 38px); line-height: 1.15; letter-spacing: -.02em; }
.fsg-card--hero .fsg-card__excerpt { font-size: 17px; }
.fsg-card--hero .fsg-card__body { padding-top: 20px; gap: 12px; }

.fsg-card--compact { flex-direction: row; gap: 14px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--fsg-line); }
.fsg-card--compact:last-child { border-bottom: 0; }
.fsg-card--compact .fsg-card__media { flex: 0 0 88px; aspect-ratio: 1; border-radius: var(--fsg-radius-sm); }
.fsg-card--compact .fsg-card__body { padding: 0; gap: 4px; }
.fsg-card--compact .fsg-card__title { font-size: 15.5px; line-height: 1.35; }
.fsg-card--compact .fsg-fallback__label { display: none; }

.fsg-card--horizontal { flex-direction: row; gap: 24px; align-items: center; }
.fsg-card--horizontal .fsg-card__media { flex: 0 0 min(38%, 320px); }
.fsg-card--horizontal .fsg-card__body { padding: 0; }
.fsg-card--horizontal .fsg-card__title { font-size: 21px; }

/* Branded placeholder when no featured image */
.fsg-fallback { position: relative; display: flex; align-items: flex-end; width: 100%; height: 100%; padding: 16px; overflow: hidden; color: #fff; }
.fsg-fallback::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(255, 255, 255, .18) 1.5px, transparent 1.5px); background-size: 18px 18px; }
.fsg-fallback::after { content: ""; position: absolute; width: 70%; aspect-ratio: 1; right: -18%; top: -30%; border-radius: 50%; border: 28px solid rgba(255, 255, 255, .12); }
.fsg-fallback--0 { background: linear-gradient(135deg, #032D60, #0B5CAB); }
.fsg-fallback--1 { background: linear-gradient(135deg, #0B5CAB, #1B96FF); }
.fsg-fallback--2 { background: linear-gradient(135deg, #014486, #0D9DDA); }
.fsg-fallback--3 { background: linear-gradient(135deg, #1A2B4A, #2E6FD1); }
.fsg-fallback__label { position: relative; z-index: 1; font-weight: 800; font-size: clamp(14px, 1.6vw, 20px); letter-spacing: -.01em; }

/* Meta */
.fsg-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; font-size: 13.5px; color: var(--fsg-muted); }
.fsg-meta > * + *::before { content: "·"; margin-right: 14px; color: var(--fsg-line); font-weight: 700; }
.fsg-meta__author { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; }
.fsg-meta__author a { color: var(--fsg-ink); }
.fsg-meta__avatar { border-radius: 50%; width: 28px; height: 28px; }

/* ==========================================================================
   5. Homepage
   ========================================================================== */
.fsg-hero { padding: clamp(24px, 4vw, 48px) 0; background: linear-gradient(180deg, var(--fsg-ice) 0%, #fff 100%); }
.fsg-hero__grid { display: grid; grid-template-columns: minmax(0, 1.85fr) minmax(0, 1fr); gap: clamp(24px, 3vw, 48px); }
.fsg-hero__side { background: #fff; border-radius: var(--fsg-radius); padding: 20px 22px; box-shadow: var(--fsg-shadow); align-self: start; }
.fsg-hero__side-title { font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: var(--fsg-blue); margin: 0 0 4px; }
.fsg-hero--empty { text-align: center; padding: 96px 0; }
.fsg-hero--empty h1 { font-size: clamp(32px, 5vw, 56px); }

.fsg-section { padding: clamp(32px, 5vw, 64px) 0; }
.fsg-section + .fsg-section { padding-top: 0; }
.fsg-section--band { background: var(--fsg-soft); padding: clamp(40px, 6vw, 72px) 0 !important; margin-bottom: clamp(32px, 5vw, 64px); }
.fsg-section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 24px; padding-bottom: 12px; border-bottom: 2px solid var(--fsg-ink); }
.fsg-section-head__title { margin: 0; font-size: clamp(22px, 2.4vw, 28px); position: relative; }
.fsg-section-head__title::before { content: ""; display: inline-block; width: 10px; height: 10px; border-radius: 3px; background: var(--fsg-sky); margin-right: 10px; vertical-align: middle; transform: translateY(-2px); }
.fsg-section-head__link { font-weight: 600; font-size: 15px; white-space: nowrap; }
.fsg-section__intro { margin: -8px 0 28px; color: var(--fsg-muted); max-width: 640px; }

.fsg-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px 28px; }
.fsg-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.fsg-list { display: grid; gap: 28px; }
.fsg-section--band .fsg-card { background: #fff; border-radius: var(--fsg-radius); box-shadow: var(--fsg-shadow); transition: box-shadow .2s, transform .2s; }
.fsg-section--band .fsg-card:hover { box-shadow: var(--fsg-shadow-hover); transform: translateY(-2px); }
.fsg-section--band .fsg-card__media { border-radius: var(--fsg-radius) var(--fsg-radius) 0 0; }
.fsg-section--band .fsg-card__body { padding: 18px 20px 22px; }

.fsg-topics__grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.fsg-topic {
	display: flex; flex-direction: column; gap: 4px; height: 100%; padding: 20px 22px;
	border: 1.5px solid var(--fsg-line); border-radius: var(--fsg-radius); color: var(--fsg-ink); text-decoration: none !important;
	transition: border-color .15s, background .15s, transform .15s;
}
.fsg-topic:hover { border-color: var(--fsg-blue); background: var(--fsg-ice); transform: translateY(-2px); }
.fsg-topic__name { font-weight: 700; font-size: 17px; }
.fsg-topic__count { font-size: 13.5px; color: var(--fsg-muted); }

.fsg-newsletter { margin: clamp(24px, 4vw, 48px) 0; border-radius: calc(var(--fsg-radius) * 1.5); background: var(--fsg-navy); color: #fff; overflow: hidden; position: relative; }
.fsg-newsletter::after { content: ""; position: absolute; width: 420px; height: 420px; right: -120px; top: -180px; border-radius: 50%; background: radial-gradient(circle, rgba(27, 150, 255, .55), transparent 70%); pointer-events: none; }
.fsg-newsletter__inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1.2fr 1fr; gap: 32px; align-items: center; padding: clamp(28px, 4vw, 52px); }
.fsg-newsletter h2 { color: #fff; font-size: clamp(24px, 3vw, 32px); }
.fsg-newsletter p { color: rgba(255, 255, 255, .82); margin: 0; }
.fsg-subscribe { display: flex; gap: 8px; }
.fsg-subscribe input { border-color: transparent; border-radius: 999px; padding-left: 1.2em; }

/* ==========================================================================
   6. Archive / layout with sidebar
   ========================================================================== */
.fsg-archive-head { padding: clamp(36px, 5vw, 64px) 0 clamp(28px, 4vw, 40px); background: linear-gradient(180deg, var(--fsg-ice), #fff); margin-bottom: clamp(24px, 4vw, 40px); }
.fsg-archive-head__eyebrow { margin: 0 0 6px; font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--fsg-blue); }
.fsg-archive-head__title { font-size: clamp(30px, 4.4vw, 48px); letter-spacing: -.025em; margin: 0; }
.fsg-archive-head__desc { margin-top: 12px; color: var(--fsg-muted); max-width: 680px; font-size: 18px; }
.fsg-archive-head__desc p:last-child { margin: 0; }
.fsg-archive-head__search { margin-top: 20px; max-width: 560px; }

.fsg-with-sidebar { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 56px; padding-bottom: 64px; }
.fsg-sidebar { display: flex; flex-direction: column; gap: 32px; }
.fsg-sidebar .widget { padding: 22px; border: 1px solid var(--fsg-line); border-radius: var(--fsg-radius); }
.widget-title { font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: var(--fsg-blue); margin: 0 0 12px; }
.widget ul { list-style: none; margin: 0; padding: 0; }
.widget li { padding: 6px 0; }
.fsg-sidebar .fsg-search-form { flex-direction: column; }

.fsg-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.fsg-tags a { padding: 4px 12px; border-radius: 999px; background: var(--fsg-soft); color: var(--fsg-text); font-size: 14px; font-weight: 500; }
.fsg-tags a:hover { background: var(--fsg-blue); color: #fff; text-decoration: none; }

.pagination { margin-top: 48px; }
.pagination .nav-links { display: flex; flex-wrap: wrap; gap: 6px; }
.pagination .page-numbers { display: inline-flex; align-items: center; justify-content: center; min-width: 42px; height: 42px; padding: 0 14px; border-radius: 999px; border: 1.5px solid var(--fsg-line); color: var(--fsg-ink); font-weight: 600; }
.pagination .page-numbers.current, .pagination a.page-numbers:hover { background: var(--fsg-blue); border-color: var(--fsg-blue); color: #fff; text-decoration: none; }
.fsg-none { padding: 40px; border: 2px dashed var(--fsg-line); border-radius: var(--fsg-radius); text-align: center; }

/* ==========================================================================
   7. Single article
   ========================================================================== */
.fsg-article__header { padding: clamp(32px, 5vw, 56px) 0 24px; }
.fsg-breadcrumbs { display: flex; gap: 8px; font-size: 14px; font-weight: 600; margin-bottom: 16px; color: var(--fsg-muted); }
.fsg-article__title { font-size: clamp(30px, 4.6vw, 50px); line-height: 1.1; letter-spacing: -.028em; margin-bottom: 16px; }
.fsg-article__dek { font-size: clamp(18px, 2vw, 21px); color: var(--fsg-muted); line-height: 1.5; }
.fsg-article__updated { font-size: 13.5px; color: var(--fsg-success); font-weight: 600; margin: 10px 0 0; }
.fsg-article__hero { margin: 8px auto 40px; }
.fsg-article__hero img { width: 100%; border-radius: calc(var(--fsg-radius) * 1.25); aspect-ratio: 16 / 9; object-fit: cover; }
.fsg-article__hero figcaption { font-size: 14px; color: var(--fsg-muted); margin-top: 8px; text-align: center; }

.fsg-article__layout { display: grid; grid-template-columns: minmax(0, var(--fsg-narrow)); justify-content: center; gap: 56px; padding-bottom: 32px; }
.fsg-has-toc .fsg-article__layout { grid-template-columns: 230px minmax(0, var(--fsg-narrow)); }
.fsg-toc { position: sticky; top: 100px; align-self: start; font-size: 14px; max-height: calc(100vh - 120px); overflow: auto; }
.fsg-toc__title { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--fsg-muted); margin: 0 0 10px; }
.fsg-toc__list { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--fsg-line); }
.fsg-toc__list a { display: block; padding: 6px 0 6px 14px; margin-left: -2px; border-left: 2px solid transparent; color: var(--fsg-muted); line-height: 1.4; }
.fsg-toc__list a:hover { color: var(--fsg-ink); text-decoration: none; }
.fsg-toc__list a.is-active { color: var(--fsg-blue); border-left-color: var(--fsg-blue); font-weight: 600; }

/* Long-form typography */
.entry-content { font-size: 18px; line-height: 1.75; }
.entry-content > * { margin-top: 0; margin-bottom: 1.35em; }
.entry-content h2 { font-size: clamp(24px, 2.6vw, 30px); margin-top: 2em; }
.entry-content h3 { font-size: 22px; margin-top: 1.6em; }
.entry-content h4 { font-size: 19px; margin-top: 1.4em; }
.entry-content a { text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 3px; text-decoration-color: rgba(11, 92, 171, .4); }
.entry-content a:hover { text-decoration-color: currentColor; }
.entry-content ul, .entry-content ol { padding-left: 1.4em; }
.entry-content li { margin-bottom: .4em; }
.entry-content li::marker { color: var(--fsg-blue); font-weight: 700; }
.entry-content img { border-radius: var(--fsg-radius-sm); }
.entry-content figcaption, .entry-content .wp-element-caption { font-size: 14px; color: var(--fsg-muted); text-align: center; margin-top: 8px; }
.entry-content blockquote, .entry-content .wp-block-quote { margin-left: 0; margin-right: 0; padding: 4px 0 4px 24px; border-left: 4px solid var(--fsg-sky); font-size: 21px; color: var(--fsg-ink); font-style: normal; }
.entry-content blockquote cite { display: block; font-size: 15px; color: var(--fsg-muted); margin-top: 8px; font-style: normal; }
.entry-content hr { border: 0; height: 1px; background: var(--fsg-line); margin: 2.5em 0; }
.entry-content code { font-family: var(--fsg-mono); font-size: .86em; background: var(--fsg-soft); border: 1px solid var(--fsg-line); padding: .12em .4em; border-radius: 5px; color: var(--fsg-navy); }
.entry-content pre, .entry-content .wp-block-code {
	font-family: var(--fsg-mono); font-size: 14.5px; line-height: 1.6; background: #0E1A2B; color: #E3ECF7;
	padding: 20px 22px; border-radius: var(--fsg-radius); overflow-x: auto; border: 0;
}
.entry-content pre code { background: none; border: 0; padding: 0; color: inherit; font-size: inherit; }
.entry-content table { width: 100%; border-collapse: collapse; font-size: 15.5px; }
.entry-content th, .entry-content td { padding: 10px 14px; border-bottom: 1px solid var(--fsg-line); text-align: left; vertical-align: top; }
.entry-content thead th { background: var(--fsg-navy); color: #fff; border: 0; }
.entry-content .wp-block-table { overflow-x: auto; }
.entry-content .wp-block-table.is-style-stripes tbody tr:nth-child(odd) { background: var(--fsg-soft); }
.entry-content .alignwide { width: min(1000px, 100vw - 2 * var(--fsg-gutter)); max-width: none; margin-left: 50%; transform: translateX(-50%); }
.entry-content .alignfull { width: 100vw; max-width: none; margin-left: 50%; transform: translateX(-50%); }
.fsg-has-toc .entry-content .alignwide, .fsg-has-toc .entry-content .alignfull { width: 100%; margin-left: 0; transform: none; }
.entry-content .wp-block-button__link { border-radius: 999px; background: var(--fsg-blue); text-decoration: none; font-weight: 600; }

/* Callout block styles */
.is-style-fsg-tip, .is-style-fsg-warning, .is-style-fsg-note {
	position: relative; padding: 18px 22px 18px 56px !important; border-radius: var(--fsg-radius); font-size: 16.5px; line-height: 1.6;
}
.is-style-fsg-tip > :last-child, .is-style-fsg-warning > :last-child, .is-style-fsg-note > :last-child,
.is-style-fsg-tip .wp-block-group__inner-container > :last-child, .is-style-fsg-warning .wp-block-group__inner-container > :last-child, .is-style-fsg-note .wp-block-group__inner-container > :last-child { margin-bottom: 0; }
.is-style-fsg-tip::before, .is-style-fsg-warning::before, .is-style-fsg-note::before {
	position: absolute; left: 18px; top: 18px; width: 24px; height: 24px; border-radius: 50%;
	display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 14px; color: #fff; line-height: 1;
}
.is-style-fsg-tip { background: #EBF7EE; border-left: 4px solid var(--fsg-success); }
.is-style-fsg-tip::before { content: "✓"; background: var(--fsg-success); }
.is-style-fsg-warning { background: #FEF3E2; border-left: 4px solid var(--fsg-warning); }
.is-style-fsg-warning::before { content: "!"; background: var(--fsg-warning); }
.is-style-fsg-note { background: var(--fsg-ice); border-left: 4px solid var(--fsg-blue); }
.is-style-fsg-note::before { content: "i"; background: var(--fsg-blue); font-family: Georgia, serif; font-style: italic; }

.fsg-article__footer { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 20px; align-items: center; padding: 24px 0; margin-top: 40px; border-top: 1px solid var(--fsg-line); border-bottom: 1px solid var(--fsg-line); }
.fsg-article__footer .fsg-tags a { text-decoration: none; }
.fsg-share { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.fsg-share__label { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--fsg-muted); margin-right: 4px; }
.fsg-share__link { padding: 6px 14px; border-radius: 999px; border: 1.5px solid var(--fsg-line); background: #fff; color: var(--fsg-ink) !important; font: 600 14px/1.3 var(--fsg-font); text-decoration: none !important; cursor: pointer; }
.fsg-share__link:hover { border-color: var(--fsg-blue); color: var(--fsg-blue) !important; }

.fsg-author { display: flex; gap: 18px; align-items: flex-start; margin-top: 32px; padding: 24px; background: var(--fsg-soft); border-radius: var(--fsg-radius); }
.fsg-author__avatar { border-radius: 50%; flex: 0 0 auto; }
.fsg-author__label { margin: 0; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--fsg-muted); }
.fsg-author__name { margin: 2px 0 6px; font-weight: 700; font-size: 19px; }
.fsg-author__name a { color: var(--fsg-ink); text-decoration: none !important; }
.fsg-author__bio { margin: 0; font-size: 15.5px; line-height: 1.6; }
.fsg-related { background: var(--fsg-soft); padding: clamp(40px, 6vw, 64px) 0 !important; margin-top: 32px; }

/* Comments */
.fsg-comments { padding: 48px 0 64px; }
.fsg-comments__list, .fsg-comments__list .children { list-style: none; padding: 0; margin: 0 0 32px; }
.fsg-comments__list .children { padding-left: 28px; border-left: 2px solid var(--fsg-line); }
.fsg-comments .comment-body { padding: 18px 0; border-bottom: 1px solid var(--fsg-line); }
.fsg-comments .comment-author { display: flex; align-items: center; gap: 10px; font-weight: 700; }
.fsg-comments .comment-author img { border-radius: 50%; }
.fsg-comments .comment-metadata { font-size: 13px; margin: 2px 0 8px 54px; }
.fsg-comments .comment-metadata a { color: var(--fsg-muted); }
.fsg-comments .comment-content { margin-left: 54px; }
.fsg-comments .reply { margin-left: 54px; font-size: 14px; font-weight: 600; }
.comment-form label { display: block; font-weight: 600; font-size: 14px; margin-bottom: 4px; }
.comment-form p { margin-bottom: 16px; }
.comment-form-cookies-consent { display: flex; gap: 8px; align-items: flex-start; }
.comment-form-cookies-consent label { font-weight: 400; }

/* 404 */
.fsg-404 { padding: 96px 0; text-align: center; }
.fsg-404__code { font-size: clamp(80px, 14vw, 160px); font-weight: 900; line-height: 1; margin: 0; background: linear-gradient(135deg, var(--fsg-navy), var(--fsg-sky)); -webkit-background-clip: text; background-clip: text; color: transparent; letter-spacing: -.05em; }
.fsg-404 .fsg-search-form { max-width: 520px; margin: 28px auto; }

/* ==========================================================================
   8. Footer
   ========================================================================== */
.fsg-footer { background: var(--fsg-navy); color: rgba(255, 255, 255, .78); padding: 64px 0 28px; margin-top: 48px; font-size: 15px; }
.fsg-footer a { color: rgba(255, 255, 255, .9); }
.fsg-footer a:hover { color: #fff; }
.fsg-footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; }
.fsg-footer__about p { margin: 14px 0 18px; max-width: 360px; }
.fsg-footer .widget-title { color: var(--fsg-sky); }
.fsg-footer li { padding: 5px 0; }
.fsg-footer ul { list-style: none; margin: 0; padding: 0; }
.fsg-footer__bottom { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; margin-top: 48px; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, .14); font-size: 13px; }
.fsg-footer__bottom p { margin: 0; max-width: 720px; }
.fsg-footer__menu { list-style: none; display: flex; gap: 16px; margin: 0; padding: 0; }

/* WordPress core classes */
.alignleft { float: left; margin: .3em 1.5em 1em 0; }
.alignright { float: right; margin: .3em 0 1em 1.5em; }
.aligncenter { margin-left: auto; margin-right: auto; }
.wp-caption-text, .gallery-caption { font-size: 14px; color: var(--fsg-muted); }
.sticky .fsg-card__title::after { content: "Featured"; margin-left: 8px; font-size: 11px; vertical-align: middle; padding: 2px 8px; border-radius: 999px; background: var(--fsg-sky); color: #fff; text-transform: uppercase; letter-spacing: .05em; }
.bypostauthor > .comment-body .fn::after { content: "Author"; margin-left: 6px; font-size: 11px; padding: 2px 6px; background: var(--fsg-ice); color: var(--fsg-blue); border-radius: 999px; }

/* ==========================================================================
   9. Responsive
   ========================================================================== */
@media (max-width: 1100px) {
	.fsg-has-toc .fsg-article__layout { grid-template-columns: minmax(0, var(--fsg-narrow)); }
	.fsg-toc { position: static; max-height: none; padding: 18px 20px; background: var(--fsg-soft); border-radius: var(--fsg-radius); }
	.fsg-with-sidebar { grid-template-columns: minmax(0, 1fr); }
	.fsg-topics__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.fsg-footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 960px) {
	.fsg-menu-toggle { display: inline-flex; }
	.fsg-nav {
		position: fixed; inset: 108px 0 0 0; background: #fff; padding: 16px var(--fsg-gutter) 40px; overflow-y: auto;
		opacity: 0; transform: translateY(-8px); visibility: hidden; transition: opacity .2s, transform .2s, visibility .2s; z-index: 99;
	}
	.admin-bar .fsg-nav { top: 154px; }
	.fsg-nav.is-open { opacity: 1; transform: none; visibility: visible; }
	.fsg-menu { flex-direction: column; }
	.fsg-menu a { font-size: 18px; padding: 14px 8px; border-bottom: 1px solid var(--fsg-line); border-radius: 0; }
	.fsg-menu .sub-menu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; padding: 0 0 0 16px; }
	.fsg-nav-open { overflow: hidden; }
	.fsg-hero__grid { grid-template-columns: minmax(0, 1fr); }
	.fsg-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.fsg-newsletter__inner { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 782px) {
	.admin-bar .fsg-header, .admin-bar .fsg-progress { top: 46px; }
}
@media (max-width: 640px) {
	body { font-size: 16px; }
	.fsg-topbar__text { display: none; }
	.fsg-topbar__inner { justify-content: center; }
	.fsg-header__inner { min-height: 64px; gap: 12px; }
	.fsg-wordmark__text { font-size: 17px; }
	.fsg-header__cta { display: none; }
	.fsg-nav { top: 100px; }
	.fsg-grid, .fsg-grid--2 { grid-template-columns: minmax(0, 1fr); }
	.fsg-card--horizontal { flex-direction: column; align-items: stretch; gap: 0; }
	.fsg-card--horizontal .fsg-card__media { flex: none; }
	.fsg-card--horizontal .fsg-card__body { padding-top: 14px; }
	.fsg-topics__grid { grid-template-columns: minmax(0, 1fr); }
	.fsg-subscribe { flex-direction: column; }
	.fsg-footer__grid { grid-template-columns: minmax(0, 1fr); }
	.entry-content { font-size: 17px; }
	.fsg-author { flex-direction: column; }
	.fsg-search-form { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
@media print {
	.fsg-topbar, .fsg-header, .fsg-footer, .fsg-newsletter, .fsg-related, .fsg-toc, .fsg-share, .fsg-progress, .fsg-comments { display: none !important; }
}
