/* Theme tuetran 2.0.0 (cms K35): ported from the drawing design/cms-web (to-ve/02), theme.css + blog.css + utility.css.
   Light neutral tone, one accent (primary_color) set by the layout as --accent, --accent-ink, --accent-text, --accent-line. */

/* ---- theme.css ---- */
/* Stock theme tuetran of the cms core: a light neutral page, one accent colour (primary_color).
   The layout sets the accent into --accent, --accent-ink, --accent-text, --accent-line.
   Desktop from 1024, tablet 561 to 1023, phone up to 560. */

:root {
  --bg: #FFFFFF;
  --bg-soft: #F5F5F5;
  --line: #E5E5E5;
  --line-strong: #D4D4D4;
  --ink: #171717;
  --ink-2: #525252;
  --ink-3: #6B6B6B;
  --ok: #15803D;
  --err: #B91C1C;
  --accent: #1D4ED8;
  --accent-ink: #FFFFFF;
  --accent-text: #1D4ED8;
  --accent-line: #1D4ED8;
  --r-btn: 8px;
  --r-card: 12px;
  --r-field: 8px;
  --wrap: 1120px;
  --pad: 24px;
  --sec: 48px;
  --head-gap: 24px;
  --font: "Be Vietnam Pro", system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: light;
}
:root[data-theme="dark"] {
  --bg: #0A0A0A;
  --bg-soft: #171717;
  --line: #262626;
  --line-strong: #404040;
  --ink: #FAFAFA;
  --ink-2: #A3A3A3;
  --ink-3: #8F8F8F;
  --ok: #4ADE80;
  --err: #F87171;
  color-scheme: dark;
}
/* The dark page follows the visitor's device; data-theme="light" keeps a page light whatever the device says */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0A0A0A;
    --bg-soft: #171717;
    --line: #262626;
    --line-strong: #404040;
    --ink: #FAFAFA;
    --ink-2: #A3A3A3;
    --ink-3: #8F8F8F;
    --ok: #4ADE80;
    --err: #F87171;
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg, #FFFFFF); color: var(--ink, #171717); font-family: var(--font); font-size: 16px; line-height: 1.6; font-weight: 400; overflow-x: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; }
button, input, textarea, select { font: inherit; color: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--ink, #171717); outline-offset: 2px; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 50; padding: 10px 16px; background: var(--bg, #FFFFFF); border: 1px solid var(--ink, #171717); border-radius: var(--r-btn); text-decoration: none; font-weight: 600; }
.skip:focus { top: 8px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--pad)); margin: 0 auto; padding: 0 var(--pad); }
.read { width: 100%; max-width: calc(760px + 2 * var(--pad)); margin: 0 auto; padding: 0 var(--pad); }
.ic { display: inline-flex; flex: none; width: 20px; height: 20px; }
.ic svg { width: 100%; height: 100%; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 10px 20px; border-radius: var(--r-btn); border: 1px solid transparent; font-size: 15px; line-height: 1.4; font-weight: 600; text-decoration: none; cursor: pointer; background: none; }
.btn .ic { width: 18px; height: 18px; }
.btn-primary { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.btn-primary:hover { text-decoration: underline; text-underline-offset: 3px; }
.btn-line { border-color: var(--line-strong, #D4D4D4); color: var(--ink, #171717); }
.btn-line:hover { border-color: var(--ink, #171717); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.lnk { color: var(--accent-text); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.lnk:hover { text-decoration-thickness: 2px; }
.more { display: inline-flex; align-items: center; gap: 6px; font-size: 15px; font-weight: 600; color: var(--accent-text); text-decoration: underline; text-underline-offset: 3px; }
.more .ic { width: 16px; height: 16px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 20; background: var(--bg, #FFFFFF); border-bottom: 1px solid var(--line, #E5E5E5); }
.hd-row { display: flex; align-items: center; gap: 24px; min-height: 64px; }
.hd-brand { display: inline-flex; align-items: center; gap: 12px; min-height: 44px; text-decoration: none; color: var(--ink, #171717); margin-right: auto; }
.hd-logo { width: auto; height: var(--tuetran-logo-height, 40px); }
.hd-name { font-size: 17px; line-height: 1.4; font-weight: 700; }
.hd-nav { display: flex; align-items: center; }
.hd-list { display: flex; align-items: center; gap: 4px; margin: 0; padding: 0; list-style: none; }
.hd-item { position: relative; }
.hd-link { display: inline-flex; align-items: center; gap: 4px; min-height: 44px; padding: 0 12px; border: 0; background: none; font-size: 15px; line-height: 1.4; font-weight: 500; color: var(--ink-2, #525252); text-decoration: none; cursor: pointer; position: relative; }
.hd-link .ic { width: 16px; height: 16px; }
.hd-link:hover { color: var(--ink, #171717); }
.hd-link[aria-current="page"] { color: var(--ink, #171717); font-weight: 600; }
.hd-link[aria-current="page"]::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 6px; height: 2px; background: var(--accent-line); }
.hd-sub { position: absolute; top: 100%; left: 0; min-width: 240px; margin: 0; padding: 6px; list-style: none; background: var(--bg, #FFFFFF); border: 1px solid var(--line, #E5E5E5); border-radius: var(--r-card); }
.hd-sub-link { display: flex; align-items: center; min-height: 44px; padding: 0 12px; border-radius: var(--r-btn); font-size: 15px; color: var(--ink, #171717); text-decoration: none; }
.hd-sub-link:hover { background: var(--bg-soft, #F5F5F5); }
.hd-burger { display: none; align-items: center; justify-content: center; width: 44px; height: 44px; border: 1px solid var(--line, #E5E5E5); border-radius: var(--r-btn); background: none; cursor: pointer; }
.hd-panel { border-top: 1px solid var(--line, #E5E5E5); padding: 8px 0 16px; }
.hd-panel-list { margin: 0; padding: 0; list-style: none; }
.hd-panel-link { display: flex; align-items: center; min-height: 48px; font-size: 16px; font-weight: 500; color: var(--ink, #171717); text-decoration: none; border-bottom: 1px solid var(--line, #E5E5E5); }
.hd-panel-link[aria-current="page"] { font-weight: 700; text-decoration: underline; text-decoration-color: var(--accent-line); text-decoration-thickness: 2px; text-underline-offset: 6px; }
.hd-panel-sub { margin: 0; padding: 0 0 0 16px; list-style: none; }
.hd-panel-sub .hd-panel-link { font-size: 15px; font-weight: 400; color: var(--ink-2, #525252); }

/* Footer */
.site-footer { border-top: 1px solid var(--line, #E5E5E5); margin-top: var(--sec); }
.ft-row { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 48px; padding: 40px 0 32px; }
.ft-row.ft-solo { grid-template-columns: minmax(0, 1fr); }
.ft-brand { display: flex; flex-direction: column; gap: 12px; }
.ft-name { margin: 0; display: inline-flex; align-items: center; gap: 10px; font-size: 17px; line-height: 1.4; font-weight: 700; }
.ft-logo { width: auto; height: 32px; }
.ft-about { margin: 0; font-size: 15px; line-height: 1.6; color: var(--ink-2, #525252); }
.ft-social { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 0; padding: 0; list-style: none; }
.ft-social-link { display: inline-flex; align-items: center; min-height: 36px; padding: 0 14px; border: 1px solid var(--line-strong, #D4D4D4); border-radius: 999px; font-size: 14px; font-weight: 500; text-decoration: none; color: var(--ink, #171717); }
.ft-social-link:hover { border-color: var(--ink, #171717); }
.ft-col { display: flex; flex-direction: column; gap: 12px; }
.ft-title { margin: 0; font-size: 14px; line-height: 1.5; font-weight: 600; color: var(--ink, #171717); }
.ft-list { display: flex; flex-direction: column; gap: 4px; margin: 0; padding: 0; list-style: none; }
.ft-contact { display: flex; align-items: flex-start; gap: 10px; min-height: 36px; padding: 6px 0; font-size: 15px; line-height: 1.6; color: var(--ink-2, #525252); text-decoration: none; }
a.ft-contact:hover { color: var(--ink, #171717); text-decoration: underline; }
.ft-contact .ic { width: 18px; height: 18px; margin-top: 3px; color: var(--ink, #171717); }
.ft-bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 24px; padding: 16px 0 24px; border-top: 1px solid var(--line, #E5E5E5); font-size: 13px; line-height: 1.5; color: var(--ink-3, #6B6B6B); }
.ft-legal { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 16px; }
.ft-copy { margin: 0; }
.ft-legal-link { display: inline-flex; align-items: center; min-height: 32px; color: var(--ink-2, #525252); text-decoration: none; }
.ft-legal-link:hover { text-decoration: underline; }
.ft-powered { display: inline-flex; align-items: center; min-height: 32px; margin: 0; color: var(--ink-3, #6B6B6B); text-decoration: none; }
.ft-powered:hover { text-decoration: underline; }

/* Block frame */
.blk { padding: var(--sec) 0; }
.blk-head { display: flex; flex-direction: column; gap: 8px; margin-bottom: var(--head-gap); }
.blk-head-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: var(--head-gap); }
.blk-head-row .blk-head { margin-bottom: 0; }
.blk-label { margin: 0; font-size: 14px; line-height: 1.5; font-weight: 600; color: var(--ink-2, #525252); }
.blk-title { margin: 0; font-size: 22px; line-height: 1.35; font-weight: 700; letter-spacing: -0.01em; }
.blk-lead { margin: 0; font-size: 16px; line-height: 1.6; color: var(--ink-2, #525252); }
.media { overflow: hidden; border-radius: var(--r-card); background: var(--bg-soft, #F5F5F5); }
.media img { width: 100%; height: 100%; object-fit: cover; }

/* intro: the opening of a page */
.intro { padding: calc(var(--sec) + 32px) 0; }
.intro-copy { display: flex; flex-direction: column; gap: 16px; }
.intro-label { margin: 0; font-size: 15px; line-height: 1.5; font-weight: 600; color: var(--ink-2, #525252); }
.intro-title { margin: 0; font-size: 28px; line-height: 1.3; font-weight: 700; letter-spacing: -0.01em; }
.intro-lead { margin: 0; font-size: 17px; line-height: 1.6; color: var(--ink-2, #525252); }
.intro .actions { margin-top: 8px; }
.intro[data-style="1"] .intro-copy { align-items: center; text-align: center; }
.intro[data-style="1"] .actions { justify-content: center; }
.intro-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: center; }
.intro-media { aspect-ratio: 4 / 3; }

/* text-media: text with a picture */
.tm-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: center; }
.text-media[data-style="2"] .tm-media { order: 2; }
.tm-media { aspect-ratio: 4 / 3; }
.tm-copy { display: flex; flex-direction: column; gap: 12px; }
.tm-text { display: flex; flex-direction: column; gap: 12px; font-size: 16px; line-height: 1.7; color: var(--ink-2, #525252); }
.tm-text p { margin: 0; }
.tm-copy .actions { margin-top: 8px; }

/* card-grid: a grid of cards */
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin: 0; padding: 0; list-style: none; }
.card { display: flex; flex-direction: column; border: 1px solid var(--line, #E5E5E5); border-radius: var(--r-card); overflow: hidden; background: var(--bg, #FFFFFF); }
.card-media { aspect-ratio: 3 / 2; border-radius: 0; border-bottom: 1px solid var(--line, #E5E5E5); }
.card-body { display: flex; flex-direction: column; gap: 8px; padding: 20px; flex: 1; }
.card-icon { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border: 1px solid var(--line-strong, #D4D4D4); border-radius: var(--r-btn); color: var(--ink, #171717); margin-bottom: 4px; }
.card-icon .ic { width: 22px; height: 22px; }
.card-title { margin: 0; font-size: 18px; line-height: 1.4; font-weight: 600; }
.card-text { margin: 0; font-size: 15px; line-height: 1.6; color: var(--ink-2, #525252); }
.card .more { margin-top: auto; padding-top: 4px; min-height: 32px; }

/* post-card: the card of a post, shared */
.post-card { position: relative; display: flex; flex-direction: column; border: 1px solid var(--line, #E5E5E5); border-radius: var(--r-card); overflow: hidden; background: var(--bg, #FFFFFF); }
.post-card:hover .post-card-title { text-decoration: underline; text-underline-offset: 3px; }
.post-card-media { aspect-ratio: 16 / 9; border-radius: 0; border-bottom: 1px solid var(--line, #E5E5E5); }
.post-card-body { display: flex; flex-direction: column; gap: 8px; padding: 20px; }
.post-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; margin: 0; font-size: 13px; line-height: 1.5; color: var(--ink-2, #525252); }
.post-meta-group { font-weight: 600; color: var(--ink, #171717); }
.post-card-title { margin: 0; font-size: 18px; line-height: 1.4; font-weight: 600; }
.post-card-title a { text-decoration: none; }
.post-card-title a::after { content: ""; position: absolute; inset: 0; }
.post-card-text { margin: 0; font-size: 15px; line-height: 1.6; color: var(--ink-2, #525252); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

/* faq: questions and answers */
.faq-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 48px; align-items: start; }
.faq-row .blk-head { margin-bottom: 0; }
.faq-list { border-top: 1px solid var(--line, #E5E5E5); }
.faq-item { border-bottom: 1px solid var(--line, #E5E5E5); }
.faq-q { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 56px; padding: 12px 0; list-style: none; cursor: pointer; font-size: 17px; line-height: 1.5; font-weight: 600; }
.faq-q::-webkit-details-marker { display: none; }
.faq-q .ic { width: 20px; height: 20px; color: var(--ink-2, #525252); }
.faq-q .ic-minus { display: none; }
.faq-item[open] .ic-plus { display: none; }
.faq-item[open] .ic-minus { display: inline-flex; }
.faq-a { margin: 0; padding: 0 0 20px; font-size: 16px; line-height: 1.7; color: var(--ink-2, #525252); }

/* contact-cta: call to contact */
.cta-box { display: flex; align-items: center; justify-content: space-between; gap: 32px; padding: 32px; border: 1px solid var(--line-strong, #D4D4D4); border-radius: var(--r-card); }
.cta-copy { display: flex; flex-direction: column; gap: 8px; }
.cta-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: start; }
.cta-row .cta-copy { gap: 12px; }
.cta-row .actions { margin-top: 8px; }
.cta-list { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line, #E5E5E5); }
.cta-item { display: flex; align-items: flex-start; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line, #E5E5E5); }
.cta-item-icon { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; flex: none; border: 1px solid var(--line-strong, #D4D4D4); border-radius: var(--r-btn); }
.cta-item-icon .ic { width: 20px; height: 20px; }
.cta-item-body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.cta-item-label { font-size: 13px; line-height: 1.5; color: var(--ink-2, #525252); }
.cta-item-value { font-size: 16px; line-height: 1.5; font-weight: 600; color: var(--ink, #171717); text-decoration: none; overflow-wrap: anywhere; }
a.cta-item-value { display: inline-flex; align-items: center; min-height: 32px; }
a.cta-item-value:hover { text-decoration: underline; }

/* Text written in the admin editor (pages, posts, the text block) */
.prose { font-size: 17px; line-height: 1.75; color: var(--ink, #171717); overflow-wrap: break-word; }
.prose > * { margin: 0 0 20px; }
.prose > *:last-child { margin-bottom: 0; }
.prose h2 { margin-top: 40px; font-size: 22px; line-height: 1.35; font-weight: 700; letter-spacing: -0.01em; }
.prose h3 { margin-top: 32px; font-size: 18px; line-height: 1.4; font-weight: 600; }
.prose ul, .prose ol { padding-left: 24px; }
.prose li + li { margin-top: 6px; }
.prose a { color: var(--accent-text); text-decoration: underline; text-underline-offset: 3px; }
.prose blockquote { padding: 16px 0; border-top: 1px solid var(--line-strong, #D4D4D4); border-bottom: 1px solid var(--line-strong, #D4D4D4); color: var(--ink, #171717); font-size: 18px; font-weight: 500; }
.prose figure { margin-left: 0; margin-right: 0; }
.prose figure .media { aspect-ratio: 16 / 9; }
.prose figcaption { margin-top: 8px; font-size: 14px; line-height: 1.5; color: var(--ink-2, #525252); }
.prose .table-wrap { overflow-x: auto; border: 1px solid var(--line, #E5E5E5); border-radius: var(--r-card); }
.prose table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.5; }
.prose th, .prose td { padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--line, #E5E5E5); vertical-align: top; }
.prose th { font-weight: 600; background: var(--bg-soft, #F5F5F5); }
.prose tr:last-child td { border-bottom: 0; }

/* page-title: the head of an inner page */
.page-title { padding: 48px 0 0; }
.page-title + .blk { padding-top: var(--head-gap); }
.pt-copy { display: flex; flex-direction: column; gap: 12px; }
.pt-title { margin: 0; font-size: 28px; line-height: 1.3; font-weight: 700; letter-spacing: -0.01em; }
.pt-lead { margin: 0; font-size: 17px; line-height: 1.6; color: var(--ink-2, #525252); }

/* Fields */
.field { display: flex; flex-direction: column; gap: 6px; }
.field-label { font-size: 14px; line-height: 1.5; font-weight: 600; }
.field-req { color: var(--err, #B91C1C); }
.input { width: 100%; min-height: 44px; padding: 10px 14px; border: 1px solid var(--line-strong, #D4D4D4); border-radius: var(--r-field); background: var(--bg, #FFFFFF); font-size: 16px; line-height: 1.5; }
textarea.input { min-height: 140px; resize: vertical; }
.input::placeholder { color: var(--ink-3, #6B6B6B); }
.input:focus { outline: 2px solid var(--ink, #171717); outline-offset: 0; border-color: var(--ink, #171717); }
.field-bad .input { border-color: var(--err, #B91C1C); border-width: 2px; }
.field-err { display: flex; align-items: center; gap: 6px; font-size: 14px; line-height: 1.5; color: var(--err, #B91C1C); }
.field-err .ic { width: 16px; height: 16px; }
.alert { display: flex; align-items: flex-start; gap: 12px; padding: 16px; border: 1px solid currentColor; border-radius: var(--r-card); font-size: 15px; line-height: 1.6; }
.alert .ic { margin-top: 2px; }
.alert-ok { color: var(--ok, #15803D); }
.alert-err { color: var(--err, #B91C1C); }
.alert-body { display: flex; flex-direction: column; gap: 2px; color: var(--ink, #171717); }
.alert-title { font-weight: 600; }
.search-form { display: flex; gap: 8px; }
.search-form .input { flex: 1; min-width: 0; }
.search-box { position: relative; flex: 1; min-width: 0; display: flex; }
.search-box .ic { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: var(--ink-2, #525252); pointer-events: none; }
.search-box .input { padding-left: 42px; }

/* Still: no motion */
@media (prefers-reduced-motion: no-preference) {
  :root:not([data-still]) .btn, :root:not([data-still]) .hd-link, :root:not([data-still]) .ft-social-link { transition: border-color .15s, color .15s; }
}

/* Tablet: 561 to 1023 */
@media (max-width: 1023px) {
  :root { --pad: 24px; --sec: 40px; --head-gap: 20px; }
  .intro { padding: calc(var(--sec) + 24px) 0; }
  .intro-title, .pt-title { font-size: 26px; }
  .intro-row, .tm-row { gap: 32px; }
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
  .faq-row { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .cta-row { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .ft-row { gap: 32px; }
}
@media (max-width: 767px) {
  .hd-nav { display: none; }
  .hd-burger { display: inline-flex; }
  .intro-row, .tm-row { grid-template-columns: minmax(0, 1fr); }
  .text-media[data-style="2"] .tm-media { order: 0; }
  .intro-row .intro-media { order: 2; }
  .cta-box { flex-direction: column; align-items: flex-start; }
}
/* Phone: up to 560 */
@media (max-width: 560px) {
  :root { --pad: 16px; --sec: 32px; --head-gap: 16px; }
  .intro { padding: calc(var(--sec) + 16px) 0; }
  .hd-row { gap: 12px; min-height: 60px; }
  .hd-logo { height: calc(var(--tuetran-logo-height, 40px) * 0.8); }
  .hd-name { font-size: 16px; }
  .intro-title, .pt-title { font-size: 22px; }
  .intro-lead, .pt-lead { font-size: 16px; }
  .blk-title { font-size: 18px; }
  .card-title, .post-card-title { font-size: 17px; }
  .grid-3 { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .blk-head-row { flex-direction: column; align-items: flex-start; gap: 8px; }
  .actions { flex-direction: column; align-items: stretch; }
  .actions .btn { width: 100%; }
  .cta-box { padding: 20px; gap: 20px; }
  .page-title { padding-top: 32px; }
  .prose { font-size: 16px; }
  .prose h2 { font-size: 18px; margin-top: 32px; }
  .prose h3 { font-size: 17px; }
  .ft-row { grid-template-columns: minmax(0, 1fr); gap: 24px; padding: 32px 0 24px; }
  .ft-social-link, .ft-contact, .ft-legal-link, .ft-powered, a.cta-item-value, .card .more, .more { min-height: 44px; }
  .ft-contact { align-items: center; }
  .ft-contact .ic { margin-top: 0; }
  .ft-bottom { flex-direction: column; align-items: flex-start; font-size: 13px; }
  .faq-q { font-size: 16px; }
  .post-meta { font-size: 13px; }
  .field-label, .alert, .card-text, .post-card-text, .ft-about { font-size: 15px; }
  .search-form { flex-direction: column; }
}

/* Reading frame of editor text inside a block (long text, not the lead) */
.prose-frame { max-width: 760px; }
.ft-bottom.ft-only { border-top: 0; padding-top: 24px; }

/* ---- blog.css ---- */
/* Posts: blog.html, post.html */

/* post-list: group filter, grid of posts, pager */
.filter-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: var(--head-gap); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.chip { display: inline-flex; align-items: center; min-height: 36px; padding: 0 14px; border: 1px solid var(--line-strong, #D4D4D4); border-radius: 999px; font-size: 14px; line-height: 1.4; font-weight: 500; color: var(--ink, #171717); text-decoration: none; }
.chip:hover { border-color: var(--ink, #171717); }
.chip[aria-current="page"] { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); font-weight: 600; }
.filter-search { display: flex; width: 320px; }
.pager { display: flex; justify-content: center; margin-top: 40px; }
.pager-list { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0; padding: 0; list-style: none; }
.pager-link { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-width: 40px; min-height: 40px; padding: 0 12px; border: 1px solid var(--line, #E5E5E5); border-radius: var(--r-btn); font-size: 15px; line-height: 1.4; font-weight: 500; color: var(--ink, #171717); text-decoration: none; }
.pager-link:hover { border-color: var(--ink, #171717); }
.pager-link[aria-current="page"] { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); font-weight: 700; }
.pager-link[aria-disabled="true"] { color: var(--ink-3, #6B6B6B); border-color: var(--line, #E5E5E5); pointer-events: none; }
.pager-link .ic { width: 16px; height: 16px; }
.empty { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 48px 24px; border: 1px solid var(--line, #E5E5E5); border-radius: var(--r-card); text-align: center; }
.empty-icon { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; border: 1px solid var(--line-strong, #D4D4D4); border-radius: var(--r-btn); }
.empty-icon .ic { width: 24px; height: 24px; }
.empty-title { margin: 0; font-size: 18px; line-height: 1.4; font-weight: 600; }
.empty-text { margin: 0; font-size: 15px; line-height: 1.6; color: var(--ink-2, #525252); }
.empty .actions { margin-top: 4px; justify-content: center; }

/* post-header, post-cover, post-body, post-tags */
.post-header { padding: 48px 0 0; }
.ph-copy { display: flex; flex-direction: column; gap: 12px; }
.ph-back { display: inline-flex; align-items: center; gap: 6px; min-height: 32px; font-size: 14px; font-weight: 500; color: var(--ink-2, #525252); text-decoration: none; }
.ph-back:hover { color: var(--ink, #171717); text-decoration: underline; }
.ph-back .ic { width: 16px; height: 16px; }
.ph-meta { font-size: 14px; }
.ph-meta .ic { width: 16px; height: 16px; }
.ph-meta-item { display: inline-flex; align-items: center; gap: 6px; }
a.post-meta-group { text-decoration: underline; text-underline-offset: 3px; }
.ph-title { margin: 0; font-size: 28px; line-height: 1.3; font-weight: 700; letter-spacing: -0.01em; }
.ph-lead { margin: 0; font-size: 17px; line-height: 1.6; color: var(--ink-2, #525252); }
.post-cover { padding: 32px 0 0; }
.post-cover .media { aspect-ratio: 16 / 9; }
.post-body { padding: 32px 0 0; }
.post-tags { padding: 32px 0 0; }
.tags-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding-top: 24px; border-top: 1px solid var(--line, #E5E5E5); }
.tags-label { display: inline-flex; align-items: center; gap: 6px; margin-right: 4px; font-size: 14px; font-weight: 600; }
.tags-label .ic { width: 16px; height: 16px; }

@media (max-width: 1023px) {
  .filter-search { width: 100%; }
}
@media (max-width: 560px) {
  .chip, .pager-link, .ph-back { min-height: 44px; }
  a.post-meta-group { display: inline-flex; align-items: center; min-height: 44px; }
  .pager-link { min-width: 44px; }
  .pager-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .post-header { padding-top: 32px; }
  .ph-title { font-size: 22px; }
  .ph-lead { font-size: 16px; }
  .post-cover, .post-body { padding-top: 24px; }
  .ph-meta, .tags-label, .chip { font-size: 14px; }
  .empty { padding: 32px 16px; }
}

/* ---- utility.css ---- */
/* Utility pages: search.html, contact.html, 404.html */

/* search-results */
.sr-form { margin-bottom: var(--head-gap); }
.sr-summary { margin: 0 0 8px; font-size: 15px; line-height: 1.6; color: var(--ink-2, #525252); }
.sr-summary strong { color: var(--ink, #171717); }
.sr-list { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line, #E5E5E5); }
.sr-item { display: flex; flex-direction: column; gap: 6px; padding: 20px 0; border-bottom: 1px solid var(--line, #E5E5E5); }
.sr-type { margin: 0; font-size: 13px; line-height: 1.5; font-weight: 600; color: var(--ink-2, #525252); }
.sr-title { margin: 0; font-size: 18px; line-height: 1.4; font-weight: 600; }
.sr-title a { color: var(--ink, #171717); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.sr-title a:hover { text-decoration-thickness: 2px; }
.sr-text { margin: 0; font-size: 15px; line-height: 1.6; color: var(--ink-2, #525252); }
mark { background: none; color: var(--ink, #171717); font-weight: 700; text-decoration: underline; text-decoration-color: var(--accent-line); text-decoration-thickness: 2px; text-underline-offset: 3px; }

/* contact-main */
.ct-row { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: 48px; align-items: start; }
.ct-info { display: flex; flex-direction: column; gap: 16px; }
.ct-card { display: flex; flex-direction: column; gap: 20px; padding: 32px; border: 1px solid var(--line, #E5E5E5); border-radius: var(--r-card); }
.ct-title { margin: 0; font-size: 18px; line-height: 1.4; font-weight: 600; }
.ct-pair { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; }
.ct-form { display: flex; flex-direction: column; gap: 20px; }
.ct-note { margin: 0; font-size: 14px; line-height: 1.5; color: var(--ink-2, #525252); }
.ct-form .btn { align-self: flex-start; }

/* not-found */
.nf { padding: 80px 0; }
.nf-copy { display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; }
.nf-code { margin: 0; font-size: 15px; line-height: 1.5; font-weight: 600; color: var(--ink-2, #525252); }
.nf-title { margin: 0; font-size: 28px; line-height: 1.3; font-weight: 700; letter-spacing: -0.01em; }
.nf-text { margin: 0; font-size: 17px; line-height: 1.6; color: var(--ink-2, #525252); }
.nf-form { display: flex; gap: 8px; width: 100%; max-width: 480px; margin-top: 12px; }
.nf .actions { justify-content: center; margin-top: 4px; }

@media (max-width: 1023px) {
  .ct-row { grid-template-columns: minmax(0, 1fr); gap: 32px; }
}
@media (max-width: 560px) {
  .ct-card { padding: 20px; }
  .ct-pair { grid-template-columns: minmax(0, 1fr); }
  .ct-form .btn { align-self: stretch; }
  .nf { padding: 48px 0; }
  .nf-title { font-size: 22px; }
  .nf-text { font-size: 16px; }
  .nf-form { flex-direction: column; }
  .sr-title { font-size: 17px; }
  .sr-type { font-size: 13px; }
}

/* ---- port to the CMS ---- */
/* What the drawing does not show: a text-media block left without its picture, an answer of several paragraphs written in the editor */
.tm-row.tm-solo { grid-template-columns: minmax(0, 1fr); }
.tm-solo .tm-copy { max-width: 760px; }
div.faq-a p { margin: 0; }
div.faq-a > * + * { margin-top: 8px; }
.ct-row.ct-solo { grid-template-columns: minmax(0, 1fr); }

/* Cookie notice of the cookie-consent package (partials/cookie-consent, K43): a card at the foot of the screen, the theme's line and radius */
.cookie-consent { position: fixed; z-index: 30; left: 16px; right: 16px; bottom: 16px; max-width: 560px; margin: 0 auto; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; padding: 16px 20px; background: var(--bg, #FFFFFF); color: var(--ink, #171717); border: 1px solid var(--line-strong, #D4D4D4); border-radius: var(--r-card); }
.cookie-consent-text { flex: 1 1 240px; margin: 0; font-size: 15px; line-height: 1.5; color: var(--ink-2, #404040); }
.cookie-consent-accept { flex: 0 0 auto; }
