/*
Theme Name: Siam Search 2027
Author: Custom Theme Project
Description: A lightweight, Thai-ready classic/hybrid theme for business and editorial sites. Server-rendered content, native blocks, accessible navigation and plugin-owned SEO metadata. 2027 is a planning label, not a search-engine certification.
Version: 1.0.0
Requires at least: 6.6
Requires PHP: 8.3
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: siam-search-2027
Domain Path: /languages
Tags: blog, custom-logo, custom-menu, featured-images, translation-ready, wide-blocks, one-column, two-columns, editor-style
*/
:root {
  --ss27-ink: #102a3c; --ss27-muted: #475c69; --ss27-accent: #07695f;
  --ss27-mint: #e7f3ed; --ss27-canvas: #f6f8f7; --ss27-line: #dce5e1;
  --ss27-white: #fff; --ss27-radius: 16px; --ss27-wide: 1160px; --ss27-reading: 760px;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: 2rem; -webkit-text-size-adjust: 100%; }
body { margin: 0; color: var(--ss27-ink); background: #fff; font-family: system-ui, -apple-system, "Segoe UI", Tahoma, sans-serif; font-size: 1rem; line-height: 1.85; overflow-wrap: anywhere; }
[hidden] { display: none !important; }
img { max-width: 100%; height: auto; vertical-align: middle; }
figure { margin: 0 0 1.5rem; }
svg, video, iframe { max-width: 100%; }
svg:not([width]) { width: 1.25em; }
a { color: var(--ss27-accent); text-underline-offset: .2em; text-decoration-thickness: .065em; }
a:hover { text-decoration-thickness: .13em; }
a, button, input, select, textarea, summary { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid #1453ae; outline-offset: 4px; }
#main-content:focus { outline: none; }
h1, h2, h3, h4, h5, h6 { margin: 0 0 1rem; font-weight: 750; line-height: 1.35; color: inherit; text-wrap: pretty; }
h1 { font-size: clamp(2.1rem, 4.5vw, 3.5rem); }
h2 { font-size: clamp(1.55rem, 2.8vw, 2.1rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1.25rem; }
ul, ol { padding-inline-start: 1.5rem; }
button, input, select, textarea { font: inherit; }
button, .button, input[type="submit"], .wp-block-button__link {
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  border: 1px solid var(--ss27-accent); border-radius: 8px; padding: .8rem 1.3rem;
  background: var(--ss27-accent); color: #fff; font-weight: 650; line-height: 1.5;
  text-decoration: none; min-height: 46px; cursor: pointer;
}
button:hover, .button:hover, input[type="submit"]:hover { background: #064c46; border-color: #064c46; color: #fff; }
.button-small { padding: .65rem 1.05rem; font-size: .9rem; }
input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]), select, textarea {
  padding: .75rem .9rem; border: 1px solid #91a69a; border-radius: 8px;
  background: #fff; color: var(--ss27-ink); max-width: 100%; min-height: 46px;
}
input[type="checkbox"], input[type="radio"] { accent-color: var(--ss27-accent); }
textarea { width: 100%; }
::placeholder { color: #586c62; opacity: 1; }
.container { width: min(var(--ss27-wide), calc(100% - 40px)); margin-inline: auto; }
.reading-width { width: min(var(--ss27-reading), 100%); margin-inline: auto; }
.section-space { padding-block: clamp(2.5rem, 6vw, 5rem); }
.single-main { padding-bottom: 4rem; }
.screen-reader-text {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0, 0, 0, 0); clip-path: inset(50%); white-space: nowrap; border: 0;
}
.skip-link:focus { clip: auto; clip-path: none; width: auto; height: auto; margin: 0; top: 1rem; left: 1rem; padding: .7rem 1rem; color: #fff; background: #102a3c; z-index: 100000; }
.site-header { border-bottom: 1px solid var(--ss27-line); background: #fff; position: relative; z-index: 20; }
.header-inner { display: flex; align-items: center; gap: 1.8rem; min-height: 88px; }
.site-branding { display: flex; align-items: center; gap: .65rem; max-width: 38%; }
.site-name { display: inline-flex; align-items: center; gap: .25rem; color: var(--ss27-ink); font-size: 1.4rem; line-height: 1.4; font-weight: 800; text-decoration: none; }
.brand-dot { display: inline-block; flex-shrink: 0; width: 7px; height: 7px; background: #0e8264; border-radius: 50%; align-self: flex-end; margin-bottom: .32rem; }
.custom-logo-link, .custom-logo { display: block; }
.custom-logo { max-width: 160px; max-height: 54px; width: auto; object-fit: contain; }
.site-branding:has(.custom-logo-link) .site-name, .site-branding:has(.custom-logo) .site-name { font-size: 1rem; }
.site-nav { margin-inline-start: auto; }
.site-nav .menu, .site-nav ul { list-style: none; margin: 0; padding: 0; }
.site-nav .menu { display: flex; align-items: center; gap: 1.3rem; flex-wrap: wrap; }
.site-nav li { position: relative; }
.site-nav a { display: inline-block; padding: .7rem 0; color: var(--ss27-ink); text-decoration: none; font-size: .94rem; }
.site-nav a:hover, .site-nav .current-menu-item > a, .site-nav .current_page_item > a { color: var(--ss27-accent); text-decoration: underline; }
.site-nav li > ul { position: absolute; inset-block-start: 100%; inset-inline-end: 0; background: white; border: 1px solid var(--ss27-line); border-radius: 10px; box-shadow: 0 16px 36px #102a3c12; padding: .7rem; min-width: 220px; max-width: min(320px, 85vw); z-index: 30; }
.site-nav li > ul li > ul { inset-block-start: 0; inset-inline-end: 100%; }
.site-nav li > ul a { padding: .4rem .45rem; max-width: calc(100% - 36px); }
.site-nav:not(.is-enhanced) li > ul { display: none; }
.site-nav:not(.is-enhanced) li:hover > ul, .site-nav:not(.is-enhanced) li:focus-within > ul { display: block; }
.submenu-toggle { border: 0; color: var(--ss27-ink); background: transparent; padding: .1rem; min-height: 32px; min-width: 32px; vertical-align: middle; margin-inline-start: .2rem; }
.submenu-toggle:hover, .submenu-toggle[aria-expanded="true"] { background: var(--ss27-mint); color: var(--ss27-ink); }
.menu-toggle { display: none; }
.header-action:empty { display: none; }
.header-action { flex-shrink: 0; }
.eyebrow { display: flex; align-items: center; gap: .65rem; font-size: .8rem; font-weight: 750; color: var(--ss27-accent); margin-bottom: 1rem; }
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ss27-accent); box-shadow: 0 0 0 5px #07695f0f; }
.home-hero { position: relative; background: radial-gradient(ellipse at 85% 20%, #dff1e8 0, transparent 48%), linear-gradient(130deg, #f8faf7, #f2f8f6); border-bottom: 1px solid var(--ss27-line); padding-block: clamp(3rem, 6vw, 5.3rem); }
.hero-grid { display: grid; grid-template-columns: 1.23fr 1fr; gap: clamp(2rem, 5.5vw, 5rem); align-items: center; }
.hero-copy h1 { font-size: clamp(2.4rem, 4.7vw, 4rem); line-height: 1.27; margin-bottom: 1.5rem; }
.hero-intro { font-size: 1.125rem; color: var(--ss27-muted); max-width: 39rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 1.1rem 1.5rem; align-items: center; margin-top: 1.75rem; }
.text-link { font-weight: 650; }
.topic-panel { padding: clamp(1.4rem, 3vw, 2.2rem); border: 1px solid #cfded6; border-radius: var(--ss27-radius); background: #ffffffed; box-shadow: 0 24px 48px #0e483509; }
.topic-panel > .eyebrow { margin-bottom: .4rem; }
.topic-panel h2 { font-size: 1.65rem; margin-bottom: 1.6rem; }
.topic-panel ul { list-style: none; margin: 0; padding: 0; }
.topic-panel li + li { border-top: 1px solid var(--ss27-line); }
.topic-panel li a { display: flex; gap: .9rem; align-items: center; padding-block: .85rem; text-decoration: none; color: var(--ss27-ink); font-size: .98rem; font-weight: 600; }
.topic-panel li a:hover { color: var(--ss27-accent); }
.topic-number { color: var(--ss27-muted); font-size: .76rem; font-variant-numeric: tabular-nums; }
.topic-arrow { margin-inline-start: auto; color: var(--ss27-accent); }
.section-heading { display: flex; gap: 1.5rem; align-items: flex-end; justify-content: space-between; margin-bottom: 2rem; }
.section-heading h2 { margin-bottom: 0; }
.section-heading .eyebrow { margin-bottom: .5rem; }
.search-form { display: flex; gap: .4rem; align-items: stretch; max-width: 100%; }
.search-form input { min-width: 0; flex: 1 1 160px; width: 210px; font-size: .9rem; }
.search-form button { flex-shrink: 0; padding: .65rem .9rem; font-size: .9rem; }
.post-grid, .hub-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; }
.post-card { overflow: hidden; border: 1px solid var(--ss27-line); border-radius: var(--ss27-radius); background: #fff; display: flex; flex-direction: column; box-shadow: 0 3px 6px #102a3c02; }
.post-card:hover { border-color: #a8c9b8; box-shadow: 0 9px 24px #102a3c09; }
.card-image { display: block; aspect-ratio: 8/5; overflow: hidden; background: var(--ss27-canvas); }
.card-image img { display: block; width: 100%; height: 100%; object-fit: cover; }
.card-art { height: 180px; overflow: hidden; background: #e7f1e9; position: relative; }
.card-art span, .card-art i, .card-art b { position: absolute; display: block; }
.card-art span { height: 190px; width: 190px; border-radius: 50%; border: 1px solid #77a995; inset-inline-end: 16%; top: -45px; box-shadow: 0 0 0 24px #cde3d7, 0 0 0 25px #a4c6b4, 0 0 0 49px #dfede4; }
.card-art i { width: 88px; height: 88px; background: #07695f; border-radius: 18px; transform: rotate(-18deg); left: 22%; top: 72px; }
.card-art b { width: 44px; height: 44px; background: #c6dfaa; border-radius: 50%; right: 16%; top: 110px; }
.post-card:nth-child(3n+2) .card-art { background: #e5ecf3; }
.post-card:nth-child(3n+2) .card-art i { background: #204b72; transform: rotate(15deg); border-radius: 50%; }
.post-card:nth-child(3n+2) .card-art span { border-color: #849ab7; box-shadow: 0 0 0 24px #d1deed, 0 0 0 25px #a2b5ce, 0 0 0 49px #e0e8f1; }
.post-card:nth-child(3n+3) .card-art { background: #f2ece0; }
.post-card:nth-child(3n+3) .card-art i { background: #8a6548; transform: rotate(-12deg); }
.post-card:nth-child(3n+3) .card-art span { border-color: #c4ab88; box-shadow: 0 0 0 24px #e9dcc5, 0 0 0 25px #d4bfa0, 0 0 0 49px #eee5d4; }
.card-body { padding: 1.5rem; display: flex; flex-direction: column; flex: 1; }
.category-links { display: flex; gap: .4rem .5rem; flex-wrap: wrap; margin-bottom: 1rem; }
.category-links a { display: inline-block; background: var(--ss27-mint); border-radius: 5px; padding: .16rem .6rem; text-decoration: none; color: #075a46; font-size: .76rem; line-height: 1.8; font-weight: 650; }
.card-title { font-size: 1.25rem; line-height: 1.55; margin-bottom: .8rem; }
.card-title a { color: var(--ss27-ink); text-decoration: none; }
.card-title a:hover { color: var(--ss27-accent); text-decoration: underline; }
.card-excerpt { font-size: .94rem; line-height: 1.85; color: var(--ss27-muted); }
.card-excerpt p { margin-bottom: 1rem; }
.card-bottom { display: flex; justify-content: space-between; align-items: center; margin-top: auto; padding-top: 1rem; border-top: 1px solid var(--ss27-line); color: var(--ss27-muted); font-size: .78rem; }
.card-bottom > span { font-size: 1.2rem; color: var(--ss27-accent); }
.breadcrumbs { padding-block: 1.6rem 1rem; color: var(--ss27-muted); font-size: .82rem; }
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: .35rem .65rem; margin: 0; padding: 0; list-style: none; }
.breadcrumbs li + li::before { content: "/"; padding-inline-end: .65rem; color: #6d8277; }
.breadcrumbs a { color: inherit; }
.archive-header { max-width: 850px; margin-bottom: 3rem; }
.archive-header h1 { margin-bottom: 1.5rem; }
.archive-description { color: var(--ss27-muted); }
.entry-header { padding-top: clamp(2rem,4vw,3.5rem); padding-bottom: 2rem; }
.entry-header h1 { font-size: clamp(2rem,4vw,3.2rem); line-height: 1.4; }
.wide-header { max-width: 900px; }
.wide-header h1 { font-size: clamp(2.1rem,5vw,4rem); }
.entry-meta { display: flex; flex-wrap: wrap; gap: .45rem 1.1rem; color: var(--ss27-muted); font-size: .83rem; margin-top: 1rem; }
.entry-meta a { color: inherit; }
.entry-summary { color: var(--ss27-muted); font-size: 1.18rem; line-height: 1.8; margin: 1.5rem 0 0; }
.entry-featured-image { margin: .5rem auto 3rem; border-radius: var(--ss27-radius); }
.entry-featured-image img { display: block; width: 100%; height: auto; border-radius: var(--ss27-radius); }
figcaption, .wp-element-caption { font-size: .85rem; color: var(--ss27-muted); text-align: start; margin-top: .65rem; }
.entry-content { line-height: 1.95; }
.entry-content > *:first-child { margin-top: 0; }
.entry-content :is(h2,h3,h4,h5,h6) { margin-top: 2.4rem; margin-bottom: 1rem; scroll-margin-top: 2rem; }
.entry-content :is(h2,h3,h4,h5,h6) a { color: inherit; }
.entry-content p, .entry-content ul, .entry-content ol, .entry-content figure { margin-bottom: 1.6rem; }
.entry-content li + li { margin-top: .35rem; }
.entry-content .wp-block-group :is(h2,h3):first-child { margin-top: 0; }
.entry-content table { border-collapse: collapse; width: 100%; font-size: .95rem; }
.entry-content td, .entry-content th { border: 1px solid var(--ss27-line); padding: .85rem; text-align: start; }
.entry-content th { background: var(--ss27-canvas); }
.wp-block-table { overflow-x: auto; }
.entry-content blockquote, .wp-block-quote { margin-inline: 0; padding: 1.3rem 1.5rem; border-inline-start: 4px solid var(--ss27-accent); background: var(--ss27-canvas); }
.entry-content blockquote > p:last-child { margin-bottom: 0; }
pre { padding: 1.3rem; border-radius: 10px; overflow-x: auto; background: #102a3c; color: #f5fcf8; font-size: .875rem; }
code { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; }
.entry-content hr { border: 0; border-top: 1px solid var(--ss27-line); margin-block: 3rem; }
.wp-block-details { border: 1px solid var(--ss27-line); border-radius: 10px; padding: 1rem 1.3rem; margin-bottom: 1rem; }
.wp-block-details summary { cursor: pointer; font-weight: 650; }
.wp-block-details[open] summary { margin-bottom: 1rem; }
.wp-block-details > :last-child { margin-bottom: 0; }
.alignwide { width: min(var(--ss27-wide), calc(100vw - 40px)); max-width: none; margin-inline-start: 50%; transform: translateX(-50%); }
.alignfull { width: calc(100vw - 40px); max-width: none; margin-inline-start: 50%; transform: translateX(-50%); }
[dir="rtl"] :is(.alignwide,.alignfull) { transform: translateX(50%); }
.alignleft { float: left; margin: .4rem 1.5rem 1rem 0; }
.alignright { float: right; margin: .4rem 0 1rem 1.5rem; }
.aligncenter { display: block; margin-inline: auto; }
.entry-content::after { content: ""; display: table; clear: both; }
.wp-caption { max-width: 100%; }
.wp-caption-text { font-size: .875rem; }
.gallery { display: grid; gap: 1rem; grid-template-columns: repeat(3,minmax(0,1fr)); }
.gallery-item { margin: 0; }
.gallery-caption { font-size: .875rem; }
.sticky .card-title::before { content: "•"; color: var(--ss27-accent); padding-inline-end: .3rem; }
.article-toc { border: 1px solid #cdded5; border-inline-start: 4px solid var(--ss27-accent); border-radius: 10px; background: var(--ss27-canvas); padding: 1.4rem 1.6rem; margin-bottom: 2.5rem; }
.toc-title { font-weight: 750; margin-bottom: .7rem; }
.article-toc ol { list-style: none; padding: 0; margin: 0; }
.article-toc li { margin-block: .35rem; font-size: .95rem; }
.article-toc .toc-level-3 { padding-inline-start: 1.25rem; }
.article-toc a { text-decoration: none; }
.article-toc a:hover { text-decoration: underline; }
.tag-links { margin-top: 2rem; font-size: .875rem; }
.tag-links a { display: inline-block; border: 1px solid var(--ss27-line); padding: .15rem .6rem; border-radius: 5px; margin-inline-end: .3rem; }
.author-box { padding: 1.75rem; background: var(--ss27-canvas); border: 1px solid var(--ss27-line); border-radius: var(--ss27-radius); margin-top: 3rem; }
.author-box h2 { font-size: 1.35rem; }
.author-box p:last-child { margin-bottom: 0; }
.author-box .eyebrow { margin-bottom: .5rem; }
.author-box h2 a { color: inherit; }
.related-section { margin-top: 4rem; padding-top: 3rem; border-top: 1px solid var(--ss27-line); }
.related-section > h2 { margin-bottom: 1.5rem; }
.hub-card { padding: 1.8rem; border: 1px solid var(--ss27-line); border-radius: var(--ss27-radius); position: relative; }
.hub-card h3 { margin-inline-end: 1rem; }
.hub-card h3 a { color: inherit; text-decoration: none; }
.hub-card h3 a:hover { text-decoration: underline; }
.hub-card p { color: var(--ss27-muted); font-size: .95rem; }
.hub-arrow { color: var(--ss27-accent); font-size: 1.4rem; }
.pagination, .page-links { margin-top: 2.5rem; }
.pagination .nav-links { display: flex; flex-wrap: wrap; gap: .5rem; }
.page-numbers, .page-links > a, .page-links > span { display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--ss27-line); padding: .45rem .85rem; border-radius: 7px; min-width: 44px; min-height: 44px; text-decoration: none; }
.page-numbers.current, .page-links .current { color: white; background: var(--ss27-accent); border-color: var(--ss27-accent); }
.post-navigation { margin-top: 2.5rem; }
.post-navigation .nav-links { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; padding-block: 1.5rem; border-block: 1px solid var(--ss27-line); }
.post-navigation a { text-decoration: none; }
.post-navigation .nav-next { text-align: end; }
.nav-subtitle { display: block; font-size: .78rem; color: var(--ss27-muted); margin-bottom: .4rem; }
.nav-title { font-weight: 650; }
.comments-area { margin-top: 4rem; }
.comment-list { list-style: none; padding: 0; }
.comment-list .children { list-style: none; padding-inline-start: 1rem; }
.comment-body { border-bottom: 1px solid var(--ss27-line); padding-block: 1rem; }
.comment-metadata { font-size: .8rem; margin-bottom: .5rem; }
.bypostauthor > .comment-body { border-inline-start: 3px solid var(--ss27-accent); padding-inline-start: 1rem; }
.comment-form label { display: block; }
.comment-form-cookies-consent label { display: inline; margin-inline-start: .4rem; }
.comment-respond { margin-top: 2rem; }
.not-found { max-width: 700px; margin-inline: auto; padding-block: 3rem; }
.error-code { color: var(--ss27-accent); font-size: clamp(4rem,15vw,8rem); line-height: 1; font-weight: 800; }
.not-found .search-form { margin-block: 2rem; }
.empty-state { padding: 2rem; border: 1px dashed var(--ss27-line); border-radius: var(--ss27-radius); }
.site-footer { background: #f3f7f4; border-top: 1px solid var(--ss27-line); padding-top: 3rem; }
.footer-top { display: flex; flex-wrap: wrap; gap: 2rem; align-items: flex-start; justify-content: space-between; padding-bottom: 2rem; }
.footer-brand { max-width: 460px; }
.footer-brand p { margin: 1rem 0 0; font-size: .92rem; color: var(--ss27-muted); }
.footer-menu { display: flex; flex-wrap: wrap; gap: .6rem 1.5rem; list-style: none; margin: 0; padding: 0; }
.footer-menu a { font-size: .9rem; color: var(--ss27-ink); }
.footer-bottom { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; border-top: 1px solid var(--ss27-line); padding-block: 1.3rem; font-size: .8rem; color: var(--ss27-muted); }
.footer-bottom p { margin: 0; }
/* Native-block pattern accents. No proprietary builder dependencies. */
.ss27-value-panel { padding: clamp(1.5rem,4vw,3rem); border-radius: var(--ss27-radius); background: var(--ss27-mint); }
.ss27-service-card { border: 1px solid var(--ss27-line); border-radius: 14px; padding: 1.5rem; height: 100%; }
.ss27-takeaway { background: var(--ss27-canvas); border-inline-start: 4px solid var(--ss27-accent); padding: 1.5rem; border-radius: 8px; }
.ss27-cta-panel { padding: clamp(1.5rem,4vw,3rem); border-radius: var(--ss27-radius); background: #102a3c; color: white; }
.ss27-cta-panel a:not(.wp-block-button__link) { color: #bdedda; }
@media (max-width: 1100px) { .header-inner { gap: 1rem; } .site-nav .menu { gap: .9rem; } .header-action { display: none; } }
@media (max-width: 960px) {
  .header-inner { flex-wrap: wrap; padding-block: 1rem; min-height: 76px; }
  .site-branding { max-width: calc(100% - 105px); }
  .menu-toggle { display: inline-flex; margin-inline-start: auto; padding: .5rem .75rem; font-size: .9rem; }
  .site-nav { width: 100%; margin: 0; }
  .site-nav.is-enhanced:not(.is-open) { display: none; }
  .site-nav .menu { display: block; border-top: 1px solid var(--ss27-line); padding-top: .75rem; }
  .site-nav a { padding-block: .7rem; }
  .site-nav li > ul, .site-nav li > ul li > ul { position: static; border: 0; border-inline-start: 1px solid var(--ss27-line); border-radius: 0; box-shadow: none; margin-inline-start: .5rem; padding: 0 .9rem; max-width: 100%; min-width: 0; }
  .site-nav:not(.is-enhanced) li > ul { display: block; }
  .hero-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .hero-copy h1 { font-size: clamp(2.3rem,5vw,3.2rem); }
  .post-grid, .hub-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .section-heading { align-items: flex-start; }
}
@media (max-width: 640px) {
  .hero-grid { grid-template-columns: 1fr; gap: 2rem; }
  .home-hero { padding-block: 2.5rem; }
  .hero-copy h1 { font-size: 2.45rem; }
  .hero-intro { font-size: 1.05rem; }
  .topic-panel { padding: 1.35rem; }
  .topic-panel h2 { font-size: 1.45rem; }
  .section-heading { display: block; }
  .section-heading .search-form { margin-top: 1.5rem; }
  .post-grid, .hub-grid { grid-template-columns: 1fr; }
  .card-art { height: 160px; }
  .card-body { padding: 1.3rem; }
  .entry-header h1 { font-size: 2.1rem; }
  .entry-summary { font-size: 1.05rem; }
  .article-toc { padding: 1.2rem; }
  .entry-content .wp-block-columns { gap: 1.25rem; }
  .alignleft, .alignright { float: none; margin-inline: 0; }
  .post-navigation .nav-links { gap: 1rem; }
  .gallery { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; animation: none !important; transition: none !important; } }
@media print {
  .site-header, .site-footer, .article-toc, .related-section, .comments-area, .breadcrumbs, .post-navigation, .hero-actions { display: none !important; }
  body { color: #000; background: #fff; font-size: 11pt; }
  .container, .reading-width { width: 100%; max-width: none; }
  .entry-header { padding-top: 0; } a { color: inherit; } h2, h3, figure { break-after: avoid; }
}

.hero-grid:not(:has(.topic-panel)) { grid-template-columns: 1fr; }
