/*
Theme Name: 제이글렌 보드
Author: 제이글렌
Description: 기존 글과 카테고리를 읽기 쉽게 보여 주는 가벼운 한국어 워드프레스 테마입니다.
Version: 1.0.1
Requires at least: 6.6
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: jglenn-boardg
Tags: blog, two-columns, right-sidebar, custom-menu, featured-images
*/

:root {
  color-scheme: light;
  --jgb-bg: #fff;
  --jgb-paper: #f5f7fb;
  --jgb-text: #1c293c;
  --jgb-muted: #647187;
  --jgb-border: #dfe5ed;
  --jgb-blue: #245fc5;
  --jgb-tint: #edf3ff;
}

* { box-sizing: border-box; }
html { scroll-padding-top: 24px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--jgb-paper); color: var(--jgb-text); font-family: 'Apple SD Gothic Neo', 'Malgun Gothic', 'Noto Sans KR', Arial, sans-serif; font-size: 16px; line-height: 1.65; overflow-wrap: anywhere; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button, [type='submit'], summary { cursor: pointer; }
button, a, input, summary { -webkit-tap-highlight-color: transparent; }
button:disabled, input:disabled { cursor: not-allowed; }
img, video { max-width: 100%; height: auto; }
audio, iframe, embed, object { max-width: 100%; }
svg { vertical-align: middle; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--jgb-blue); outline-offset: 4px; }
::selection { background: #dbe8ff; color: #163e7b; }
.screen-reader-text, .jgb-sr-only { clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%); height: 1px; width: 1px; overflow: hidden; position: absolute !important; white-space: nowrap; border: 0; padding: 0; }
.screen-reader-text:focus, .jgb-skip-link:focus { clip: auto; clip-path: none; display: block; height: auto; width: auto; padding: 12px 18px; background: var(--jgb-bg); color: var(--jgb-blue); box-shadow: 0 2px 12px #1c293c22; top: 12px; left: 12px; position: fixed !important; z-index: 100000; white-space: normal; }
.jgb-skip-link { position: absolute; left: -10000px; top: auto; }
.jgb-site { width: 100%; max-width: 1180px; min-height: 100vh; margin-inline: auto; background: var(--jgb-paper); border-inline: 1px solid var(--jgb-border); }
.jgb-site h1, .jgb-site h2, .jgb-site h3, .jgb-site p { margin: 0; }
.jgb-header { background: var(--jgb-bg); }
.jgb-head-inner { padding: 24px 4%; display: flex; justify-content: space-between; align-items: center; gap: 30px; }
.jgb-brand { display: flex; align-items: center; gap: 10px; min-width: 0; flex: 0 1 auto; }
.jgb-brand-symbol { display: grid; place-items: center; flex: 0 0 32px; width: 32px; height: 32px; border-radius: 7px; background: var(--jgb-blue); color: #fff; font-size: 20px; font-weight: 800; }
.jgb-brand-name { min-width: 0; font-size: 27px; letter-spacing: -1px; font-weight: 800; line-height: 1.4; word-break: keep-all; }
.jgb-brand-logo { display: block; flex: 0 0 48px; width: 48px; height: 48px; object-fit: contain; }
.jgb-brand-logo img { display: block; width: 100%; height: 100%; object-fit: contain; }
.jgb-search { display: flex; align-items: center; gap: 8px; max-width: 390px; width: 44%; min-width: 0; border: 1px solid var(--jgb-border); border-radius: 7px; background: var(--jgb-paper); padding: 8px 12px; }
.jgb-search label { flex: 1; min-width: 0; }
.jgb-search input[type='search'] { min-width: 0; width: 100%; padding: 3px 0; font-size: 14px; background: transparent; border: 0; border-radius: 0; }
.jgb-search input::placeholder { color: var(--jgb-muted); opacity: 1; }
.jgb-search button { flex: 0 0 auto; display: flex; align-items: center; gap: 5px; font-size: 13px; white-space: nowrap; padding: 5px 0; border: 0; background: transparent; }
.jgb-search button:hover { color: var(--jgb-blue); }
.jgb-search svg { width: 16px; height: 16px; }
.jgb-nav { border-block: 1px solid var(--jgb-border); padding-inline: 4%; }
.jgb-nav ul { display: flex; align-items: center; flex-wrap: wrap; gap: 0 22px; margin: 0; padding: 0; list-style: none; }
.jgb-nav li { position: relative; min-width: 0; max-width: 100%; margin: 0; }
.jgb-nav a { display: block; padding: 14px 0; font-size: 14px; line-height: 1.65; word-break: keep-all; border-bottom: 2px solid transparent; }
.jgb-nav a:hover, .jgb-nav a[aria-current='page'], .jgb-nav .current-menu-item > a, .jgb-nav .current-menu-ancestor > a { color: var(--jgb-blue); border-bottom-color: var(--jgb-blue); }
.jgb-nav a[aria-current='page'], .jgb-nav .current-menu-item > a { font-weight: 700; }
.jgb-nav .jgb-all-categories { margin-left: auto; }
.jgb-nav .sub-menu { display: block; position: absolute; top: 100%; left: 0; min-width: 200px; max-width: min(320px, 85vw); padding: 6px 14px; border: 1px solid var(--jgb-border); background: var(--jgb-bg); box-shadow: 0 8px 18px #1c293c0f; z-index: 20; visibility: hidden; }
.jgb-nav > ul > li:last-child > .sub-menu { left: auto; right: 0; }
.jgb-nav li:hover > .sub-menu, .jgb-nav li:focus-within > .sub-menu { visibility: visible; }
.jgb-nav .sub-menu a { padding-block: 9px; }
.jgb-nav .sub-menu .sub-menu { position: static; min-width: 0; padding: 0 0 0 14px; border: 0; box-shadow: none; visibility: inherit; }
.jgb-layout { display: grid; grid-template-columns: minmax(0, 1fr) 218px; gap: 26px; align-items: start; padding: 28px 4% 32px; }
.jgb-main, .jgb-sidebar { min-width: 0; }
.jgb-section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px 16px; flex-wrap: wrap; margin-bottom: 19px; }
.jgb-section-head > div { min-width: 0; }
.jgb-section-head h1 { font-size: 26px; font-weight: 750; letter-spacing: -1px; line-height: 1.5; word-break: keep-all; }
.jgb-section-sub { margin-top: 5px !important; color: var(--jgb-muted); font-size: 13px; }
.jgb-section-sub p { margin: 0; }
.jgb-archive-description { margin: -3px 0 20px; font-size: 14px; line-height: 1.85; color: var(--jgb-muted); }
.jgb-archive-description p + p { margin-top: 10px; }
.jgb-archive-description a { color: var(--jgb-blue); text-decoration: underline; text-underline-offset: 3px; }
.jgb-order { margin-bottom: 4px; font-size: 13px; color: var(--jgb-muted); white-space: nowrap; }
.jgb-breadcrumb { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; font-size: 13px; color: var(--jgb-muted); }
.jgb-breadcrumb a:hover { color: var(--jgb-blue); text-decoration: underline; }
.jgb-postgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 15px; }
.jgb-post-card { display: flex; min-width: 0; min-height: 230px; border: 1px solid var(--jgb-border); border-radius: 9px; background: var(--jgb-bg); transition: border-color .15s; }
.jgb-card-link { display: flex; flex: 1; flex-direction: column; min-width: 0; padding: 20px; border-radius: inherit; }
.jgb-post-card:hover, .jgb-post-card:focus-within, .jgb-category-card:hover, .jgb-category-card:focus-within { border-color: var(--jgb-blue); }
.jgb-post-category { display: block; margin-bottom: 11px; font-size: 13px; font-weight: 700; color: var(--jgb-blue); }
.jgb-post-category a:hover { text-decoration: underline; }
.jgb-post-card h2, .jgb-post-card h3 { font-size: 18px; font-weight: 700; line-height: 1.6; letter-spacing: -.6px; word-break: keep-all; }
.jgb-post-card p { margin-top: 12px; font-size: 14px; line-height: 1.8; color: var(--jgb-muted); word-break: keep-all; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.jgb-card-bottom { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: auto; padding-top: 18px; font-size: 13px; color: var(--jgb-muted); }
.jgb-card-bottom span:last-child { color: var(--jgb-blue); }
.jgb-card-image, .jgb-post-card .wp-post-image { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; margin-bottom: 16px; border-radius: 5px; }
.jgb-pages { padding-top: 23px; }
.jgb-pages, .jgb-pages .nav-links, .jgb-pages ul.page-numbers { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 6px; }
.jgb-pages ul.page-numbers { margin: 0; padding: 0; list-style: none; }
.jgb-pages a.page-numbers, .jgb-pages span.page-numbers { display: grid; place-items: center; min-width: 34px; min-height: 34px; padding: 3px 10px; font-size: 13px; background: var(--jgb-bg); border: 1px solid var(--jgb-border); border-radius: 4px; }
.jgb-pages .page-numbers.current { background: var(--jgb-blue); color: #fff; border-color: var(--jgb-blue); }
.jgb-pages a:hover { color: var(--jgb-blue); border-color: var(--jgb-blue); }
.jgb-pages span.dots { color: var(--jgb-muted); background: transparent; border-color: transparent; }
.jgb-empty { padding: 40px 20px; border: 1px solid var(--jgb-border); border-radius: 8px; background: var(--jgb-bg); font-size: 15px; color: var(--jgb-muted); }
.jgb-empty a { color: var(--jgb-blue); text-decoration: underline; text-underline-offset: 3px; }
.jgb-empty p + p { margin-top: 12px; }
.jgb-empty .jgb-search { margin-top: 20px; width: 100%; }
.jgb-side-box { padding: 19px; border: 1px solid var(--jgb-border); border-radius: 9px; background: var(--jgb-bg); }
.jgb-side-heading { display: flex; justify-content: space-between; align-items: center; gap: 8px; border-bottom: 1px solid var(--jgb-border); padding-bottom: 13px; margin-bottom: 8px; }
.jgb-side-heading h2 { font-size: 15px; letter-spacing: -.4px; }
.jgb-side-heading span { font-size: 13px; color: var(--jgb-muted); }
.jgb-category-list, .jgb-category-list ul { display: grid; margin: 0; padding: 0; list-style: none; }
.jgb-category-list li { margin: 0; min-width: 0; }
.jgb-category-list a { display: flex; justify-content: space-between; align-items: center; gap: 9px; min-width: 0; padding: 10px 0; font-size: 14px; line-height: 1.6; }
.jgb-category-list a > span:first-child { min-width: 0; word-break: keep-all; }
.jgb-category-list a > span:last-child:not(:first-child), .jgb-category-list .jgb-count { flex: 0 0 auto; color: var(--jgb-muted); font-size: 13px; font-variant-numeric: tabular-nums; }
.jgb-category-list a:hover, .jgb-category-list a[aria-current='page'], .jgb-category-list .current-cat > a { color: var(--jgb-blue); }
.jgb-category-list a[aria-current='page'], .jgb-category-list .current-cat > a { font-weight: 700; }
.jgb-category-list .children { padding-left: 12px; }
.jgb-side-note { margin-top: 15px; padding-top: 16px; border-top: 1px solid var(--jgb-border); font-size: 13px; color: var(--jgb-muted); line-height: 1.9; }
.jgb-widget { min-width: 0; max-width: 100%; padding: 18px; margin-block: 20px; border: 1px solid var(--jgb-border); border-radius: 9px; background: var(--jgb-bg); overflow-wrap: anywhere; }
.jgb-sidebar > .jgb-widget { font-size: 14px; line-height: 1.85; }
.jgb-sidebar > .jgb-widget:last-child { margin-bottom: 0; }
.jgb-widget .jgb-widget-title, .jgb-widget .wp-block-heading { margin: 0 0 12px; font-size: 17px; line-height: 1.6; letter-spacing: -.4px; }
.jgb-widget p + p { margin-top: 12px; }
.jgb-widget ul, .jgb-widget ol { padding-left: 20px; margin-block: 12px; }
.jgb-widget > :first-child { margin-top: 0; }
.jgb-widget > :last-child { margin-bottom: 0; }
.jgb-widget a:not(.wp-element-button):not(.wp-block-button__link) { color: var(--jgb-blue); }
.jgb-widget a:hover { text-decoration: underline; text-underline-offset: 3px; }
.jgb-widget figure { max-width: 100%; margin: 12px 0; }
.jgb-widget .wp-block-table { overflow-x: auto; }
.jgb-widget table { width: 100%; border-collapse: collapse; font-size: 13px; }
.jgb-widget > table, .jgb-widget :not(.wp-block-table) > table { display: block; max-width: 100%; overflow-x: auto; }
.jgb-widget pre, .comment-content pre { max-width: 100%; padding: 12px; overflow-x: auto; background: var(--jgb-paper); font-size: 14px; line-height: 1.7; word-break: normal; }
.jgb-widget th, .jgb-widget td { padding: 6px; border: 1px solid var(--jgb-border); text-align: left; }
.jgb-widget input:not([type='checkbox']):not([type='radio']), .jgb-widget select, .jgb-widget textarea { min-width: 0; max-width: 100%; padding: 8px; border: 1px solid var(--jgb-border); border-radius: 4px; font-size: 16px; }
.jgb-widget .wp-block-search__inside-wrapper { min-width: 0; flex-wrap: wrap; gap: 8px; }
.jgb-widget .wp-block-search__button { margin-left: 0; white-space: normal; }
.jgb-widget .jgb-search { width: 100%; padding: 6px 8px; }
.jgb-widget .jgb-search input[type='search'] { padding: 0; border: 0; }
.jgb-article > .jgb-widget { border-radius: 6px; background: var(--jgb-paper); }
.jgb-mobile-categories { display: none; margin: 0 0 20px; padding: 0 14px; border: 1px solid var(--jgb-border); border-radius: 7px; background: var(--jgb-bg); }
.jgb-mobile-categories summary { display: flex; justify-content: space-between; gap: 14px; min-height: 44px; padding: 12px 0; font-size: 14px; list-style: none; }
.jgb-mobile-categories summary::-webkit-details-marker { display: none; }
.jgb-mobile-categories summary::after { content: '+'; color: var(--jgb-blue); }
.jgb-mobile-categories[open] summary::after { content: '−'; }
.jgb-mobile-categories .jgb-category-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 14px; padding-bottom: 11px; }
.jgb-category-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.jgb-category-card { display: flex; min-width: 0; border: 1px solid var(--jgb-border); background: var(--jgb-bg); border-radius: 8px; transition: border-color .15s; }
.jgb-category-card > a { display: flex; flex: 1; flex-direction: column; align-items: flex-start; min-width: 0; gap: 10px; padding: 20px; border-radius: inherit; }
.jgb-category-card strong, .jgb-category-card h2 { font-size: 17px; line-height: 1.6; letter-spacing: -.4px; }
.jgb-category-card small { font-size: 13px; color: var(--jgb-blue); }
.jgb-category-card p { font-size: 14px; line-height: 1.8; color: var(--jgb-muted); word-break: keep-all; }
.jgb-category-card span { margin-top: auto; padding-top: 5px; font-size: 13px; color: var(--jgb-blue); }
.jgb-article { min-width: 0; padding: 27px; background: var(--jgb-bg); border: 1px solid var(--jgb-border); border-radius: 9px; }
.jgb-article h1 { margin: 10px 0 15px; font-size: 29px; line-height: 1.55; letter-spacing: -1.2px; word-break: keep-all; }
.jgb-meta { display: flex; flex-wrap: wrap; gap: 6px 13px; padding-bottom: 20px; border-bottom: 1px solid var(--jgb-border); margin-bottom: 23px; font-size: 13px; color: var(--jgb-muted); }
.jgb-meta a:hover { color: var(--jgb-blue); text-decoration: underline; }
.jgb-article-intro { font-size: 18px; line-height: 1.85; word-break: keep-all; }
.jgb-article > .wp-post-image, .jgb-featured-image { display: block; margin: 0 auto 24px; border-radius: 5px; }
.jgb-toc { padding: 0 19px; margin: 24px 0; border: 1px solid var(--jgb-border); border-radius: 6px; background: var(--jgb-paper); }
.jgb-toc-details > summary { display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 12px 0; font-size: 15px; font-weight: 700; line-height: 1.65; list-style: none; }
.jgb-toc-details > summary::-webkit-details-marker { display: none; }
.jgb-toc-show, .jgb-toc-hide { flex: 0 0 auto; margin-left: auto; color: var(--jgb-blue); font-size: 13px; font-weight: 600; letter-spacing: .03em; }
.jgb-toc-details:not([open]) .jgb-toc-hide, .jgb-toc-details[open] .jgb-toc-show { display: none; }
.jgb-toc-details[open] > summary { border-bottom: 1px solid var(--jgb-border); }
.jgb-toc ol { margin: 0; padding: 9px 0 13px; list-style: none; }
.jgb-toc a { display: block; padding: 7px 0; color: var(--jgb-blue); font-size: 14px; line-height: 1.8; word-break: keep-all; }
.jgb-toc a:hover { text-decoration: underline; text-underline-offset: 3px; }
.jgb-toc .jgb-toc-subitem { padding-left: 16px; }
.jgb-entry-content { font-size: 18px; line-height: 1.85; word-break: keep-all; }
.jgb-entry-content::after { content: ''; display: table; clear: both; }
.jgb-entry-content > :first-child { margin-top: 0; }
.jgb-entry-content > :last-child { margin-bottom: 0; }
.jgb-entry-content p { margin-block: 16px; }
.jgb-entry-content h2, .jgb-entry-content h3, .jgb-entry-content h4, .jgb-entry-content h5, .jgb-entry-content h6 { scroll-margin-top: 24px; line-height: 1.6; letter-spacing: -.6px; }
.jgb-entry-content h2 { font-size: 23px; margin: 32px 0 13px; }
.jgb-entry-content h3 { font-size: 20px; margin: 26px 0 12px; }
.jgb-entry-content h4 { font-size: 19px; margin: 24px 0 10px; }
.jgb-entry-content h5, .jgb-entry-content h6 { font-size: 18px; margin: 22px 0 10px; }
.jgb-entry-content ul, .jgb-entry-content ol { padding-left: 24px; margin-block: 16px; }
.jgb-entry-content li + li { margin-top: 5px; }
.jgb-entry-content li > ul, .jgb-entry-content li > ol { margin-block: 6px; }
.jgb-entry-content a:not(.wp-element-button):not(.wp-block-button__link) { color: var(--jgb-blue); text-decoration: underline; text-underline-offset: 3px; }
.jgb-entry-content a:hover { text-decoration-thickness: 2px; }
.jgb-entry-content blockquote { margin: 24px 0; padding: 12px 20px; border-left: 4px solid var(--jgb-blue); background: var(--jgb-paper); }
.jgb-entry-content blockquote p { margin-block: 8px; }
.jgb-entry-content cite { color: var(--jgb-muted); font-size: 14px; font-style: normal; }
.jgb-entry-content hr { border: 0; border-top: 1px solid var(--jgb-border); margin-block: 30px; }
.jgb-entry-content pre { max-width: 100%; padding: 18px; background: var(--jgb-paper); border: 1px solid var(--jgb-border); border-radius: 5px; overflow-x: auto; font-size: 14px; line-height: 1.7; word-break: normal; white-space: pre; }
.jgb-entry-content code, .jgb-entry-content kbd, .jgb-entry-content samp { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: .88em; }
.jgb-entry-content :not(pre) > code { padding: .1em .3em; background: var(--jgb-paper); border-radius: 3px; }
.jgb-entry-content figure { max-width: 100%; margin: 24px 0; }
.jgb-entry-content figcaption, .wp-caption-text, .gallery-caption { font-size: 13px; line-height: 1.7; color: var(--jgb-muted); margin-top: 9px; text-align: center; }
.wp-caption { max-width: 100%; }
.jgb-entry-content .alignleft { float: left; margin: 8px 20px 16px 0; }
.jgb-entry-content .alignright { float: right; margin: 8px 0 16px 20px; }
.jgb-entry-content .aligncenter { display: block; margin-inline: auto; }
.jgb-entry-content .alignwide, .jgb-entry-content .alignfull { clear: both; width: calc(100% + 54px); max-width: calc(100% + 54px); margin-left: -27px; margin-right: -27px; }
.jgb-entry-content .alignwide { width: calc(100% + 28px); max-width: calc(100% + 28px); margin-left: -14px; margin-right: -14px; }
.jgb-entry-content .wp-block-image img { display: block; height: auto; }
.jgb-entry-content .wp-block-image a { display: inline-block; }
.jgb-entry-content .wp-block-table { overflow-x: auto; }
.jgb-entry-content table { width: 100%; border-collapse: collapse; font-size: 16px; line-height: 1.8; word-break: normal; }
.jgb-entry-content > table, .jgb-entry-content :not(.wp-block-table) > table, .comment-content table { display: block; max-width: 100%; overflow-x: auto; }
.jgb-entry-content th, .jgb-entry-content td { padding: 10px 12px; border: 1px solid var(--jgb-border); text-align: left; vertical-align: top; }
.jgb-entry-content th { background: var(--jgb-paper); font-weight: 700; }
.jgb-entry-content .wp-block-embed { clear: both; }
.jgb-entry-content .wp-block-embed__wrapper { max-width: 100%; }
.jgb-entry-content .wp-has-aspect-ratio iframe { position: absolute; inset: 0; height: 100%; width: 100%; }
.jgb-entry-content .wp-block-buttons { margin-block: 20px; }
.wp-element-button, .wp-block-button__link { display: inline-block; padding: 12px 20px; background: var(--jgb-blue); color: #fff; border: 1px solid var(--jgb-blue); border-radius: 6px; font-size: 16px; line-height: 1.6; text-align: center; text-decoration: none; }
.wp-element-button:hover, .wp-block-button__link:hover { filter: brightness(.93); }
.is-style-outline > .wp-block-button__link { color: var(--jgb-blue); background: transparent; }
.jgb-entry-content details { margin-block: 16px; padding: 14px 18px; border: 1px solid var(--jgb-border); border-radius: 6px; background: var(--jgb-paper); }
.jgb-entry-content summary { font-size: 18px; font-weight: 700; }
.jgb-entry-content details[open] summary { margin-bottom: 12px; }
.jgb-entry-content details > :last-child { margin-bottom: 0; }
.jgb-entry-content .wp-block-columns { min-width: 0; }
.jgb-entry-content .wp-block-column { min-width: 0; }
.jgb-entry-content .wp-block-gallery { margin-block: 24px; }
.jgb-entry-content .gallery { display: flex; flex-wrap: wrap; gap: 16px; }
.jgb-entry-content .gallery-item { flex: 1 1 160px; margin: 0; text-align: center; }
.jgb-entry-content .gallery img { height: auto; }
.jgb-entry-content .page-links { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 24px; }
.jgb-entry-content .post-page-numbers { padding: 4px 12px; border: 1px solid var(--jgb-border); border-radius: 4px; }
.jgb-entry-content .post-page-numbers.current { background: var(--jgb-tint); }
.jgb-directory-intro.jgb-entry-content { margin-bottom: 22px; color: var(--jgb-muted); font-size: 14px; line-height: 1.8; }
.jgb-directory-intro.jgb-entry-content:empty { margin-bottom: 0; }
.jgb-directory-intro.jgb-entry-content h2 { margin: 18px 0 8px; color: var(--jgb-text); font-size: 17px; }
.jgb-directory-intro.jgb-entry-content p, .jgb-directory-intro.jgb-entry-content ul, .jgb-directory-intro.jgb-entry-content ol { margin-block: 10px; }
.jgb-directory-intro.jgb-entry-content > :first-child { margin-top: 0; }
.jgb-directory-intro.jgb-entry-content > :last-child { margin-bottom: 0; }
.jgb-directory-intro.jgb-entry-content .alignwide, .jgb-directory-intro.jgb-entry-content .alignfull { width: 100%; max-width: 100%; margin-inline: 0; }
.jgb-policy-draft { padding: 16px 18px; margin-block: 24px; border: 1px solid #c2d4f4; border-left: 4px solid var(--jgb-blue); border-radius: 6px; background: var(--jgb-tint); font-size: 15px; line-height: 1.85; }
.jgb-policy-draft > :first-child { margin-top: 0; }
.jgb-policy-draft > :last-child { margin-bottom: 0; }
.jgb-related { margin-top: 28px; }
.jgb-related > h2 { font-size: 20px; letter-spacing: -.5px; margin-bottom: 13px; }
.jgb-related > ul { display: grid; grid-template-columns: 1fr; gap: 10px; margin: 0; padding: 0; list-style: none; }
.jgb-related > ul > li { min-width: 0; }
.jgb-related > ul > li > a { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; padding: 15px 18px; border: 1px solid var(--jgb-border); border-radius: 7px; background: var(--jgb-bg); font-size: 16px; line-height: 1.7; word-break: keep-all; transition: border-color .15s; }
.jgb-related > ul > li > a:hover, .jgb-related > ul > li > a:focus-visible { color: var(--jgb-blue); border-color: var(--jgb-blue); }
.jgb-related > ul > li > a > span:first-child { min-width: 0; }
.jgb-related > ul > li > a > span[aria-hidden='true'] { color: var(--jgb-blue); flex: 0 0 auto; }
.jgb-related-title { display: block; font-weight: 600; }
.jgb-related-category { display: block; margin-bottom: 4px; font-size: 13px; font-weight: 400; color: var(--jgb-muted); }
.jgb-post-navigation, .post-navigation { margin-top: 28px; }
.post-navigation .nav-links { display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; }
.post-navigation .nav-previous, .post-navigation .nav-next { flex: 1 1 180px; }
.post-navigation .nav-next { text-align: right; }
.post-navigation a { color: var(--jgb-blue); font-size: 14px; }
.jgb-footer { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 18px; padding: 24px 4%; background: var(--jgb-bg); border-top: 1px solid var(--jgb-border); }
.jgb-footer-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 18px; width: 100%; min-width: 0; }
.jgb-footer-brand { font-size: 16px; font-weight: 700; }
.jgb-footer-copy { margin-top: 4px; font-size: 13px; color: var(--jgb-muted); }
.jgb-footer-links, .jgb-footer-links ul { display: flex; gap: 15px; flex-wrap: wrap; margin: 0; padding: 0; list-style: none; font-size: 13px; color: var(--jgb-muted); }
.jgb-footer-links a { display: inline-block; }
.jgb-footer-links a:hover { color: var(--jgb-blue); text-decoration: underline; }
.comments-area, .jgb-comments { margin-top: 28px; padding: 24px; background: var(--jgb-bg); border: 1px solid var(--jgb-border); border-radius: 9px; }
.comments-title, .comment-reply-title, .jgb-comments > h2 { margin-bottom: 18px !important; font-size: 21px; line-height: 1.5; letter-spacing: -.5px; }
.comment-list { list-style: none; margin: 0; padding: 0; }
.comment-list .children { list-style: none; margin: 0; padding-left: 20px; }
.comment-body { padding: 20px 0; border-bottom: 1px solid var(--jgb-border); }
.comment-author { display: flex; align-items: center; flex-wrap: wrap; gap: 9px; font-size: 14px; }
.comment-author .avatar { width: 32px; height: 32px; border-radius: 50%; }
.comment-metadata { margin-top: 6px; color: var(--jgb-muted); font-size: 13px; }
.comment-content { margin-top: 14px; font-size: 17px; line-height: 1.85; }
.comment-content p { margin-block: 10px; }
.comment-content a, .comment-reply-link, .logged-in-as a, .comment-reply-title small a { color: var(--jgb-blue); text-decoration: underline; text-underline-offset: 3px; }
.comment-reply-link { font-size: 13px; }
.comment-awaiting-moderation, .comment-notes, .logged-in-as, .no-comments { color: var(--jgb-muted); font-size: 13px; }
.comment-respond { margin-top: 24px; }
.comment-reply-title small { display: block; font-size: 13px; font-weight: 400; margin-top: 8px; }
.comment-form p { margin-top: 15px; }
.comment-form label { display: block; font-size: 14px; margin-bottom: 5px; }
.comment-form input:not([type='checkbox']):not([type='submit']), .comment-form textarea, .post-password-form input[type='password'] { width: 100%; max-width: 100%; padding: 10px 12px; border: 1px solid var(--jgb-border); border-radius: 5px; background: var(--jgb-bg); font-size: 16px; }
.comment-form textarea { min-height: 150px; resize: vertical; }
.comment-form input[type='checkbox'] { width: 18px; height: 18px; margin: 0; flex: 0 0 auto; accent-color: var(--jgb-blue); }
.comment-form .comment-form-cookies-consent { display: flex; align-items: flex-start; gap: 9px; }
.comment-form-cookies-consent label { font-size: 13px; line-height: 1.6; }
.comment-form input[type='submit'], .post-password-form input[type='submit'] { padding: 11px 20px; color: #fff; background: var(--jgb-blue); border: 1px solid var(--jgb-blue); border-radius: 5px; font-size: 14px; }
.post-password-form label { display: block; }
.post-password-form input[type='submit'] { margin-top: 10px; }
.bypostauthor > .comment-body .fn::after { content: ' ·'; color: var(--jgb-blue); }
.sticky { border-color: #c2d4f4; }

@media (min-width: 741px) and (max-width: 980px) {
  .jgb-postgrid, .jgb-category-grid { grid-template-columns: 1fr; }
}

@media (max-width: 740px) {
  .jgb-site { border-inline: 0; }
  .jgb-head-inner { padding: 20px 5%; gap: 16px; flex-wrap: wrap; }
  .jgb-brand-name { font-size: 25px; }
  .jgb-brand-logo { flex-basis: 44px; width: 44px; height: 44px; }
  .jgb-search { width: 100%; max-width: none; }
  .jgb-search input[type='search'] { font-size: 16px; }
  .jgb-nav { padding-inline: 5%; }
  .jgb-nav ul { gap: 0 17px; }
  .jgb-nav a { min-height: 44px; padding-block: 11px; }
  .jgb-nav .jgb-all-categories { margin-left: 0; }
  .jgb-nav .sub-menu { position: static; min-width: 0; max-width: none; padding: 0 0 0 10px; border: 0; border-left: 1px solid var(--jgb-border); box-shadow: none; visibility: visible; }
  .jgb-nav > ul > li:last-child > .sub-menu { right: auto; }
  .jgb-nav .sub-menu a { padding-block: 8px; }
  .jgb-layout { display: block; padding: 23px 5%; }
  .jgb-sidebar { display: block; }
  .jgb-sidebar > .jgb-side-box { display: none; }
  .jgb-sidebar > .jgb-side-box + .jgb-widget { margin-top: 24px; }
  .jgb-mobile-categories { display: block; }
  .jgb-section-head h1 { font-size: 24px; }
  .jgb-section-head { gap: 10px; }
  .jgb-postgrid, .jgb-category-grid { grid-template-columns: 1fr; }
  .jgb-post-card { min-height: 0; }
  .jgb-post-card h2, .jgb-post-card h3 { font-size: 19px; }
  .jgb-category-card > a { gap: 7px; }
  .jgb-article { padding: 20px; }
  .jgb-article h1 { font-size: 25px; }
  .jgb-directory-intro.jgb-entry-content { font-size: 15px; }
  .jgb-entry-content h2 { font-size: 21px; }
  .jgb-entry-content h3 { font-size: 19px; }
  .jgb-entry-content .alignwide { width: calc(100% + 20px); max-width: calc(100% + 20px); margin-inline: -10px; }
  .jgb-entry-content .alignfull { width: calc(100% + 40px); max-width: calc(100% + 40px); margin-inline: -20px; }
  .jgb-entry-content .alignleft, .jgb-entry-content .alignright { float: none; margin-inline: auto; max-width: 100%; }
  .jgb-entry-content th, .jgb-entry-content td { padding: 9px; }
  .jgb-toc { padding-inline: 15px; }
  .jgb-toc a { min-height: 44px; padding-block: 9px; }
  .jgb-footer { padding: 22px 5%; align-items: flex-start; flex-direction: column; }
  .jgb-footer-inner { align-items: flex-start; flex-direction: column; }
  .comments-area, .jgb-comments { padding: 20px; }
  .comment-list .children { padding-left: 12px; }
}

@media (max-width: 360px) {
  .jgb-section-head { align-items: flex-start; flex-direction: column; gap: 6px; }
  .jgb-mobile-categories .jgb-category-list { grid-template-columns: 1fr; }
  .jgb-card-link { padding: 18px; }
  .jgb-entry-content, .jgb-article-intro { font-size: 17px; }
  .jgb-entry-content summary { font-size: 17px; }
}

@media (pointer: coarse) {
  .jgb-search button, .jgb-nav a, .jgb-category-list a, .jgb-mobile-categories summary, .jgb-footer-links a { min-height: 44px; }
  .jgb-pages a.page-numbers, .jgb-pages span.page-numbers { min-width: 44px; min-height: 44px; }
  .jgb-toc a { padding-block: 9px; }
  .jgb-footer-links a { display: flex; align-items: center; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}

@media print {
  body, .jgb-site, .jgb-article { background: #fff; color: #000; }
  .jgb-site { max-width: none; border: 0; }
  .jgb-layout { display: block; padding: 0; }
  .jgb-header, .jgb-sidebar, .jgb-mobile-categories, .jgb-footer, .jgb-related, .jgb-toc, .jgb-pages, .comment-respond { display: none; }
  .jgb-article { border: 0; padding: 0; }
  .jgb-entry-content { font-size: 12pt; }
  .jgb-entry-content a { color: #000; }
  .jgb-entry-content h2, .jgb-entry-content h3 { break-after: avoid; }
  .jgb-entry-content img, .jgb-entry-content table { break-inside: avoid; }
}
