/*
 * Base layout (Coral Dark reproduction). Colours, fonts and sizes come from the
 * custom properties of /theme.css (generated from the admin appearance editor);
 * the fallbacks here are the same defaults, used by the standalone error page.
 */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--color-bg, #000) var(--background-image, none) var(--background-repeat, no-repeat) var(--background-position, center top) / var(--background-size, auto);
  background-attachment: var(--background-attachment, scroll);
  color: var(--color-text, #999);
  font-family: var(--font-body, Verdana, Geneva, sans-serif);
  font-size: var(--font-size-base, 14px);
  line-height: 1.5;
}
a { color: var(--color-link, #eee); text-decoration: none; }
a:hover, a:focus { color: var(--color-link-hover, #eee); text-decoration: underline; }
h1, h2, h3, h4, h5, h6 { font-family: var(--font-heading, "Helvetica Neue", Helvetica, Arial, sans-serif); font-weight: 400; color: var(--color-heading, #eee); line-height: 1.3; margin: 1em 0 .5em; }
h1 { font-size: var(--font-size-h1, 28px); }
h2 { font-size: var(--font-size-h2, 22px); }
h3 { font-size: 1.3em; }
p, ul, ol, dl, pre, table, figure, blockquote { margin: 0 0 20px; }
ul, ol { padding-left: 1.6em; }
img, video { max-width: 100%; height: auto; vertical-align: middle; }
hr { border: 0; height: 1px; background: #444; margin: 0 0 1.5em; }
code, kbd, pre { font-family: var(--font-mono, monospace); font-size: 1em; }
:not(pre) > code { background: var(--color-code-bg, #2b2b2b); color: var(--color-code-text, #e6e6e6); padding: .1em .35em; border-radius: 3px; }
pre { background: var(--color-code-bg, #2b2b2b); color: var(--color-code-text, #e6e6e6); padding: 1em; border-radius: var(--layout-radius, 6px); overflow-x: auto; line-height: 1.6; white-space: pre; }
blockquote { margin: 0 2em 1.5em; padding: 1em 3em; font-family: "Times New Roman", Times, serif; font-size: 20px; font-style: italic; }
table { border-collapse: collapse; display: block; overflow-x: auto; max-width: 100%; }
th, td { border: 1px solid #777; padding: 3px 10px; text-align: left; vertical-align: top; }
th { color: var(--color-heading, #eee); }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }
.skip-link { position: absolute; left: -999px; top: 0; background: #222; color: #eee; padding: .5em 1em; z-index: 100; }
.skip-link:focus { left: 1em; }

/* ---------- page frame */
#page { max-width: var(--layout-content-width, 1020px); margin: 0 auto; padding: 0 20px; }

/* ---------- header */
.site-header { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; background: var(--color-header-bg, transparent); }
.site-branding { flex: 1 1 35%; min-width: 260px; }
.site-title { margin: 25px 0 0; font-family: var(--font-heading, "Helvetica Neue", Helvetica, Arial, sans-serif); font-size: var(--font-size-site-title, 36px); line-height: 1.2; }
.site-title a, .site-title a:hover { color: var(--color-header-text, #eee); text-decoration: none; }
.site-description { margin: 0; font-family: var(--font-heading, "Helvetica Neue", Helvetica, Arial, sans-serif); font-size: var(--font-size-tagline, 14px); color: var(--color-text-muted, #999); }
.search-form { margin-top: 42px; display: flex; border: 1px solid #555; border-radius: 4px; width: 288px; max-width: 100%; }
.search-field { flex: 1; min-width: 0; background: transparent; color: var(--color-text, #999); border: 0; padding: 8px 10px; font: inherit; }
.search-form:focus-within { border-color: var(--color-accent, #eee); }
.search-field:focus { outline: none; }
.search-submit { background: transparent; color: var(--color-text, #999); border: 0; padding: 0 10px; cursor: pointer; font-size: 1em; }
.search-submit:hover, .search-submit:focus { color: var(--color-link-hover, #eee); }

/* ---------- menu (one dropdown level, no JavaScript needed) */
.main-navigation { flex: 1 1 100%; margin-top: 25px; border-top: 1px solid #444; border-bottom: 1px solid #444; background: var(--color-menu-bg, transparent); }
.menu, .sub-menu { list-style: none; margin: 0; padding: 0; }
.menu { display: flex; flex-wrap: wrap; padding: 0 10px; }
.menu > li { position: relative; }
.menu a { display: block; padding: 13px 12px 11px; color: var(--color-menu-text, #999); font-family: var(--font-menu, Arial, Helvetica, sans-serif); font-size: 14px; line-height: 22px; text-transform: uppercase; text-decoration: none; }
.menu a:hover, .menu a:focus, .menu .current > a, .menu a[aria-current] { color: var(--color-menu-active, #eee); text-decoration: none; }
.menu .has-children > a::after { content: " \25BE"; }
.sub-menu { display: none; position: absolute; left: 0; top: 100%; z-index: 20; min-width: 12em; padding: 5px 0; background: var(--color-menu-bg, #000); border: 1px solid var(--color-menu-border, #555); border-radius: 5px; }
.menu > li:hover > .sub-menu, .menu > li:focus-within > .sub-menu { display: block; }
.sub-menu a { padding: 8px 20px; text-transform: none; }

/* ---------- content + sidebar */
.site-content { display: flex; gap: 40px; margin-top: 25px; }
.content-area { flex: 1 1 0; min-width: 0; }
.widget-area { flex: 0 0 calc(var(--layout-sidebar-width, 25%) - 30px); background: var(--color-sidebar-bg, transparent); }
.sidebar-left .widget-area { order: -1; }
.hentry { margin: 0 0 1.5em; }
.hentry + .hentry { border-top: 1px solid #444; padding-top: 1.5em; }
.entry-title { margin: 0 0 .3em; font-size: var(--font-size-h1, 28px); }
.entry-title a { color: var(--color-heading, #eee); }
.entry-meta { font-size: .85em; text-transform: uppercase; }
.entry-meta > span { margin-right: 1em; }
.entry-meta a { color: var(--color-text, #999); }
.entry-content { margin: 1.5em 0 0; overflow-wrap: break-word; }
.entry-content::after { content: ""; display: table; clear: both; }
.entry-footer { margin-top: 10px; font-size: .85em; text-transform: uppercase; }
.entry-footer .update, .entry-footer .update time { color: var(--color-text, #999); }
.entry-footer .update time { text-transform: none; }
.entry-footer .cat-links { margin-right: 1em; }
.page-header { margin-bottom: 2em; }
.page-title { margin: 0; font-size: 1.4em; text-transform: uppercase; }
.posts-navigation, .post-navigation { overflow: hidden; margin: 0 0 1.5em; font-size: .85em; text-transform: uppercase; }
.nav-previous { float: left; width: 47%; }
.nav-next { float: right; width: 47%; text-align: right; }
.nav-previous a, .nav-next a { color: var(--color-text, #999); }
.nav-previous a::before { content: "\25C2  "; }
.nav-next a::after { content: "  \25B8"; }
.nav-previous a:hover, .nav-next a:hover { color: var(--color-link-hover, #eee); text-decoration: none; }

/* ---------- widgets */
.widget { margin: 0 0 2em; }
.widget-title { font-family: inherit; font-size: 1.07em; font-weight: 700; text-transform: uppercase; border-bottom: 1px solid #444; padding-bottom: 4px; margin: 0 0 .8em; color: var(--color-heading, #eee); }
.archive-form { display: flex; gap: .4em; }
.archive-form select { max-width: 100%; background: #1a1a1a; color: var(--color-text, #999); border: 1px solid #555; border-radius: 4px; padding: 8px 10px; font: inherit; }
.archive-form button { background: transparent; color: var(--color-text, #999); border: 1px solid #444; cursor: pointer; font: inherit; }
.js .archive-form button { display: none; }
.tagcloud { line-height: 1.6; }
.tagcloud a { display: inline-block; margin: 0 .25em .1em 0; line-height: 1.3; }
.tagcloud .count { color: inherit; }
/* WordPress tag cloud: 8pt .. 22pt, linear */
.cloud-1 { font-size: 8pt; } .cloud-2 { font-size: 9.56pt; } .cloud-3 { font-size: 11.11pt; } .cloud-4 { font-size: 12.67pt; } .cloud-5 { font-size: 14.22pt; }
.cloud-6 { font-size: 15.78pt; } .cloud-7 { font-size: 17.33pt; } .cloud-8 { font-size: 18.89pt; } .cloud-9 { font-size: 20.44pt; } .cloud-10 { font-size: 22pt; }

/* ---------- content blocks */
/* WordPress gallery: 3 per row, cropped; items of an incomplete last row stretch; captions overlaid */
.gallery { display: flex; flex-wrap: wrap; gap: 16px; margin: 0 0 20px; }
.gallery figure { position: relative; margin: 0; flex: 1 1 calc((100% - 32px) / 3); max-width: 100%; overflow: hidden; }
.gallery img { display: block; width: 100%; height: 100%; aspect-ratio: 1; object-fit: cover; }
.gallery figure:only-child img, .gallery figure:last-child:nth-child(3n+1) img { aspect-ratio: auto; max-height: 600px; }
.gallery figcaption { position: absolute; left: 0; right: 0; bottom: 0; margin: 0; padding: 2em .6em .6em; font-size: .9em; text-align: center; color: #fff; background: linear-gradient(0deg, rgba(0, 0, 0, .7), rgba(0, 0, 0, 0)); }
figcaption { font-size: .9em; text-align: center; margin: .4em 0 0; color: var(--color-text-muted, #999); }
.embed { margin: 0 0 20px; }
.embed-youtube iframe { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; border: 0; }
.embed-video video { display: block; width: 100%; }

/* ---------- footer */
.site-footer { border-top: 1px solid #444; margin-top: 2em; padding: 1em 0 2em; font-size: .85em; background: var(--color-footer-bg, transparent); }

/* ---------- error page */
.error-page .content-area { max-width: 700px; margin: 4em auto; padding: 0 20px; }

/* ---------- narrow screens: stacked layout, menu expanded inline */
@media (max-width: 768px) {
  .site-header { display: block; }
  .search-form { margin: 1em 0 0; }
  .search-field { flex: 1; width: auto; }
  .menu { display: block; padding: 0; }
  .menu a { padding: 8px 0; }
  .sub-menu { display: block; position: static; border: 0; padding: 0 0 0 1.2em; min-width: 0; background: transparent; }
  .menu .has-children > a::after { content: ""; }
  .site-content { display: block; }
  .widget-area { margin-top: 2em; }
  .gallery { gap: 8px; }
  .gallery figure { flex-basis: calc((100% - 8px) / 2); }
  .search-form { width: 100%; }
  blockquote { margin: 0 0 1.5em; padding: .5em 1em; }
}

/* Image viewer (site.js): article images open full size in a modal dialog. */
.js .entry-content img.zoomable { cursor: zoom-in; }
.entry-content img.zoomable:focus-visible { outline: 2px solid var(--color-link, #eee); outline-offset: 2px; }
html.lightbox-open { overflow: hidden; }
.lightbox { position: fixed; inset: 0; width: 100vw; height: 100vh; max-width: none; max-height: none; margin: 0; padding: 0;
  border: 0; background: transparent; color: #eee; overflow: hidden; }
.lightbox::backdrop { background: rgba(0, 0, 0, .92); }
.lightbox-figure { display: flex; flex-direction: column; align-items: center; justify-content: center; width: 100%; height: 100%;
  margin: 0; padding: 48px 64px 16px; box-sizing: border-box; }
.lightbox-image { display: block; max-width: 100%; max-height: calc(100vh - 110px); width: auto; height: auto; object-fit: contain;
  box-shadow: 0 4px 30px rgba(0, 0, 0, .6); transition: opacity .15s; }
.lightbox.loading .lightbox-image { opacity: .3; }
.lightbox-caption { display: flex; gap: 1em; align-items: baseline; justify-content: center; flex-wrap: wrap; max-width: 100%;
  margin-top: 10px; font-size: 13px; color: #ccc; text-align: center; }
.lightbox-counter { color: #999; white-space: nowrap; }
.lightbox-original { color: #ccc; text-decoration: underline; white-space: nowrap; }
.lightbox-original:hover, .lightbox-original:focus { color: #fff; }
.lightbox-nav, .lightbox-close { position: absolute; border: 0; background: rgba(0, 0, 0, .45); color: #eee; cursor: pointer;
  font: 400 36px/1 Arial, sans-serif; border-radius: 4px; }
.lightbox-nav:hover, .lightbox-close:hover, .lightbox-nav:focus-visible, .lightbox-close:focus-visible { background: rgba(255, 255, 255, .18); color: #fff; }
.lightbox-nav { top: 50%; transform: translateY(-50%); width: 48px; height: 72px; }
.lightbox-prev { left: 8px; }
.lightbox-next { right: 8px; }
.lightbox-close { top: 8px; right: 8px; width: 44px; height: 44px; font-size: 32px; }
.lightbox.single .lightbox-nav { display: none; }
@media (max-width: 600px) {
  .lightbox-figure { padding: 56px 8px 12px; }
  .lightbox-nav { top: auto; bottom: 8px; transform: none; height: 48px; }
  .lightbox-image { max-height: calc(100vh - 140px); }
}
