/*
Theme Name: SaffTech
Description: A lightweight professional homepage and editorial theme for saffi.biz.
Version: 1.2.7
Requires at least: 6.3
Requires PHP: 7.4
Text Domain: safftech
*/
:root {
  color-scheme: light;
  --navy: #10243b;
  --blue: #0869cb;
  --text: #344b65;
  --line: #d9e5ef;
  --pale: #ebf5fc;
  font-family: "Segoe UI", system-ui, sans-serif;
  color: var(--navy);
  background: #fff;
}
*, *::before, *::after { box-sizing: border-box; }
body, h1, h2, h3, p { margin: 0; }
body { line-height: 1.5; }
a { color: inherit; }
button { font: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 4px; }
.skip { position: fixed; z-index: 11; top: calc(var(--toolbar-offset) + .5rem); left: .5rem; background: white; padding: .6rem 1rem; transform: translateY(-150%); }
.skip:focus { transform: translateY(0); }
.wrap { width: min(calc(100% - 5rem), 75rem); margin-inline: auto; }
.header-inner, .footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 1.2rem; }
:root { --header-height: 64px; }
body { --toolbar-offset: 0px; }
.site-header {
  position: sticky;
  top: var(--toolbar-offset);
  z-index: 10;
  background: #fff;
}
main[id], main [id] {
  scroll-margin-top: calc(var(--header-height) + var(--toolbar-offset) + .75rem);
}
@media (min-width: 601px) {
  body.admin-bar { --toolbar-offset: 46px; }
}
@media (min-width: 783px) {
  body.admin-bar { --toolbar-offset: 32px; }
}
.header-inner { min-height: 64px; }
.brand { position: relative; display: inline-block; padding-bottom: .2rem; font-size: 1.85rem; font-weight: 800; line-height: 1.05; letter-spacing: -.065em; text-decoration: none; }
.brand span { color: var(--blue); }
.brand::after { content: ""; position: absolute; inset: auto 0 -.25rem .2rem; height: .38rem; border-top: .22rem solid var(--blue); border-radius: 65% 70% 0 0; transform: rotate(-4deg); }
nav { display: flex; flex-wrap: wrap; align-items: center; gap: .45rem clamp(.7rem, 1.55vw, 1.5rem); }
nav a { padding-block: .5rem; font-size: .875rem; font-weight: 620; text-decoration: none; }
nav a:hover, .text-link:hover { text-decoration: underline; text-underline-offset: .22em; }
.home-link { box-shadow: 0 2px #a7d4f7; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: .65rem 1.1rem; border: 1px solid #0762b3; border-radius: .6rem; background: linear-gradient(110deg, #075ba8, #0869cb); color: #fff; font-size: .925rem; font-weight: 700; text-decoration: none; transition: box-shadow .18s, translate .18s; }
.button:hover { box-shadow: 0 4px 14px #0c579a2e; text-decoration: none; }
.button:active { translate: 0 1px; }
.button.small { min-height: 38px; padding: .45rem .95rem; }
.button.secondary, .button.white { background: #fff; color: var(--navy); }
.button.white { border-color: transparent; }
.menu-toggle { min-height: 44px; border: 1px solid var(--line); border-radius: .5rem; background: white; color: var(--navy); padding: .45rem .8rem; font-weight: 700; }

.hero { position: relative; isolation: isolate; overflow: hidden; background: #f2f6f9; }
.hero-photo { position: absolute; z-index: -1; inset: 0 0 0 38%; width: 62%; height: 100%; object-fit: cover; object-position: center 58%; }
.hero::after { content: ""; position: absolute; z-index: -1; inset: 0; background: linear-gradient(90deg, #f2f6f9 32%, #f2f6f9f0 43%, #f2f6f900 65%); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 58%) 1fr; align-items: center; padding-block: clamp(2.3rem, 4vw, 4.4rem); min-height: clamp(22rem, 33vw, 30rem); }
.eyebrow { margin-bottom: .65rem; color: #075cae; font-size: .875rem; font-weight: 750; text-transform: uppercase; }
h1, h2, h3 { line-height: 1.12; letter-spacing: -.035em; }
h1 { max-width: 22ch; font-size: clamp(2.15rem, 4vw, 3.65rem); font-weight: 800; }
h2 { font-size: clamp(1.65rem, 2.75vw, 2.5rem); font-weight: 800; }
h3 { font-size: 1.16rem; font-weight: 750; }
.intro { max-width: 43ch; margin-top: .9rem; font-size: clamp(1rem, 1.5vw, 1.15rem); color: var(--text); }
.actions { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 1.3rem; }

.section { padding-block: clamp(1.35rem, 2.7vw, 2.25rem); }
.section-heading { display: flex; align-items: center; justify-content: space-between; gap: .55rem 1rem; margin-bottom: 1rem; }
.section-heading h2::after { content: ""; display: block; width: 3.1rem; height: 3px; margin-top: .5rem; background: linear-gradient(90deg, #075cae, #20a5df); }
.section-heading > p, .apps-layout > p, .lede { color: var(--text); }
.services-grid, .work-grid, .article-grid, .tool-grid { display: grid; gap: clamp(.75rem, 1.5vw, 1.15rem); }
.services-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.work-grid, .article-grid, .tool-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.card { min-width: 0; border: 1px solid var(--line); border-radius: .62rem; background: linear-gradient(145deg, #fff, #f8fbfd); box-shadow: 0 3px 12px #10243b07; transition: transform .18s, box-shadow .18s, border-color .18s; }
.card:focus-within { border-color: var(--blue); box-shadow: 0 6px 18px #10243b15; }
@media (hover: hover) {
  .card:hover { transform: translateY(-3px); border-color: #b6d3ec; box-shadow: 0 8px 22px #10243b12; }
}
.services-grid .card { padding: .85rem 1rem 1rem; }
.card p { color: var(--text); font-size: .925rem; }
.services-grid h3 { margin-block: .52rem .25rem; }
.glyph { display: grid; place-items: center; width: 3.15rem; height: 2.6rem; flex: none; background: #e4f2fc; border-radius: .6rem; color: #075cae; font-size: 1.33rem; font-weight: 750; }
.showcase, .editorial { display: flex; flex-direction: column; overflow: hidden; }
.showcase-art { display: grid; place-items: center; aspect-ratio: 2.28; overflow: hidden; background: linear-gradient(145deg, #9dc5de, #335b7e); }
.app-art { background: linear-gradient(110deg, #3c6681, #c5e0eb); }
.it-art { background: linear-gradient(35deg, #244d6c, #90bdd9); }
.it-art > span { color: #b4d9ed; font: 700 clamp(3.8rem, 9vw, 7rem)/1 "Segoe UI Symbol", sans-serif; text-shadow: 0 4px 8px #10243b66; }
.browser-mock, .dashboard-mock { align-self: end; width: 73%; height: 84%; border-radius: .45rem .45rem 0 0; box-shadow: 0 6px 20px #10243b60; background: #eff6fb; }
.browser-mock { padding: .6rem; color: var(--navy); }
.browser-mock > i { display: block; height: 3px; width: 100%; margin-bottom: .45rem; background: #c6d9e9; }
.browser-mock b { display: block; font-size: clamp(.65rem, 1.25vw, 1.05rem); line-height: 1.12; }
.browser-mock > span { display: block; width: 24%; height: .25rem; margin-top: .4rem; background: var(--blue); }
.browser-mock > div { display: flex; gap: .3rem; margin-top: .5rem; }
.browser-mock em { flex: 1; height: 1.2rem; background: #cfdfed; border-radius: .12rem; }
.dashboard-mock { display: flex; align-items: center; justify-content: space-around; padding: .6rem; border: .35rem solid #162d43; border-bottom: 0; }
.bars { display: flex; align-items: end; gap: .2rem; width: 47%; height: 70%; border-bottom: 1px solid #b5ccdf; }
.bars i { flex: 1; height: 34%; background: #70aacf; }
.bars i:nth-child(even) { height: 70%; }
.bars i:last-child { height: 87%; background: #0869cb; }
.donut { width: 24%; aspect-ratio: 1; border: .3rem solid #9ec9e5; border-right-color: #0869cb; border-bottom-color: #417ea8; border-radius: 50%; }
.card-copy { display: flex; flex: 1; flex-direction: column; gap: .25rem; padding: .65rem .9rem .85rem; }
.card .status { color: #075cae; font-size: .875rem; font-weight: 700; }
.card-copy .text-link { margin-top: auto; padding-top: .25rem; }
.text-link { color: #075cae; font-size: .9rem; font-weight: 700; text-underline-offset: .16em; }
.tinted { background: linear-gradient(105deg, #eff8fd, #e7f1fa); }
.apps-layout { display: grid; grid-template-columns: minmax(9rem, 1fr) minmax(0, 3fr); align-items: center; gap: 1.15rem; }
.tool { display: flex; align-items: center; gap: .65rem; padding: .65rem; }
.tool h3 { font-size: 1.02rem; }
.tool p { line-height: 1.35; }
.tool .glyph { width: 2.65rem; height: 2.65rem; }
.editorial img, .article-art { display: block; width: 100%; height: auto; aspect-ratio: 3 / 1; object-fit: cover; }
.article-art { display: grid; place-items: center; overflow: hidden; }
.note { margin-top: .75rem; color: var(--text); font-size: .875rem; }
.contact-wrap { padding-block: .5rem 1.25rem; }
.contact-panel { position: relative; isolation: isolate; overflow: hidden; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: clamp(.75rem, 2vw, 1.5rem); padding: clamp(1rem, 2.7vw, 2rem); border-radius: .9rem; color: white; background: linear-gradient(115deg, #06284d, #0969b2); }
.contact-panel::after { content: ""; position: absolute; z-index: -1; right: -3%; bottom: -130%; width: 43%; aspect-ratio: 1.4; border-radius: 50%; border: 1.5rem solid #a7d7ff29; background: #a7d7ff16; }
.contact-panel p { color: #e5f2ff; margin-top: .35rem; }
.contact-panel a:focus-visible { outline-color: white; }
.contact-icon { display: grid; place-items: center; width: 3.6rem; aspect-ratio: 1; border-radius: .7rem; background: #ffffff26; font-size: 2rem; }
.about { display: grid; grid-template-columns: 1fr 2fr; align-items: center; gap: 1rem 2rem; }
.site-footer { border-top: 1px solid var(--line); background: #f5f9fc; }
.footer-inner { min-height: 75px; padding-block: .85rem; flex-wrap: wrap; }
.footer-inner > span { color: var(--text); font-size: .875rem; }

@media (max-width: 64rem) {
  .wrap { width: calc(100% - 3rem); }
  .header-inner { gap: .75rem; }
  .header-inner nav { gap: .25rem .7rem; }
  .header-inner nav a { font-size: .82rem; }
  .apps-layout { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 51rem) {
  .header-inner { flex-wrap: wrap; padding-block: .6rem; }
  html:not(.menu-ready) .site-header { position: static; }
  .header-inner nav { width: 100%; }
  .menu-ready .header-inner nav {
    max-height: calc(100vh - var(--toolbar-offset) - 5rem);
    max-height: calc(100dvh - var(--toolbar-offset) - 5rem);
    overflow-y: auto;
  }
  .menu-ready .header-inner nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); padding-bottom: .4rem; }
  .header-inner nav a { font-size: .925rem; }
  .hero-grid { grid-template-columns: minmax(0, 1fr); min-height: 0; padding-block: 2rem 0; }
  .hero-photo { position: relative; inset: auto; z-index: auto; order: 1; width: 100%; height: clamp(11rem, 48vw, 20rem); object-position: center 60%; }
  .hero { display: flex; flex-direction: column; gap: 1.25rem; }
  .hero::after { display: none; }
  .services-grid, .work-grid, .article-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .section-heading { align-items: flex-start; flex-direction: column; }
}
@media (max-width: 36rem) {
  .wrap { width: calc(100% - 2rem); }
  .work-grid, .article-grid, .tool-grid, .about { grid-template-columns: minmax(0, 1fr); }
  .services-grid .card { padding: .7rem; }
  .contact-panel { grid-template-columns: minmax(0, 1fr); justify-items: start; }
  .contact-icon { display: none; }
  .footer-inner { align-items: flex-start; flex-direction: column; }
}
@media (max-width: 22rem) {
  .services-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
  .hero .eyebrow, .hero h1, .hero .intro, .hero .actions, .hero-photo, .enter { animation: arrive .55s cubic-bezier(.2, .75, .25, 1) var(--delay, 0ms) backwards; }
  .hero h1 { --delay: 70ms; }
  .hero .intro { --delay: 130ms; }
  .hero .actions { --delay: 190ms; }
  .hero-photo { --delay: 100ms; }
  @keyframes arrive { from { opacity: .5; translate: 0 7px; } to { opacity: 1; translate: 0 0; } }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .card:hover { transform: none; }
  .button:active { translate: none; }
}

/* WordPress navigation and editorial content. */
.menu-list, .menu-list .sub-menu { margin: 0; padding: 0; list-style: none; }
.menu-list { display: flex; flex-wrap: wrap; gap: .25rem 1rem; align-items: center; }
.menu-list a { display: inline-block; }
.menu-list .sub-menu { padding-inline-start: .75rem; }
.menu-list .current-menu-item > a { text-decoration: underline; text-underline-offset: .22em; }
.menu-ready .header-inner nav > .menu-list { grid-column: 1 / -1; }
.reading-layout { max-width: 64rem; min-height: 50vh; }
.reading-layout h1, .editorial-index > h1 { max-width: none; overflow-wrap: anywhere; }
.entry-header, .entry-image, .entry-taxonomy, .comments, .pagination { margin-block: 1rem; }
.entry-image, .entry-content img, .entry-content video, .entry-content iframe { max-width: 100%; }
.entry-image, .entry-content img, .entry-content video { height: auto; }
.entry-content { overflow-wrap: anywhere; }
.entry-content > *, .comments > * { margin-block: 1rem; }
.entry-content figure { margin-inline: 0; }
.entry-content pre, .wp-block-table { overflow-x: auto; }
.entry-content iframe[src*="youtube"], .entry-content iframe[src*="youtu.be"], .entry-content iframe[src*="vimeo"] { width: 100%; height: auto; aspect-ratio: 16 / 9; }
.entry-content .alignleft { float: left; margin-inline-end: 1rem; }
.entry-content .alignright { float: right; margin-inline-start: 1rem; }
.entry-content .aligncenter { display: block; margin-inline: auto; }
.entry-content::after { content: ""; display: block; clear: both; }
.wp-caption, .comment-form input, .comment-form textarea { max-width: 100%; }
.article-grid { margin-block: 1rem; }
.article-title .text-link { font-size: inherit; }
.article-title { font-size: 1.16rem; }
.article-art-fallback { background: linear-gradient(155deg, #e7f3fb, #bcd9ef); }
.screen-reader-text { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.screen-reader-text:focus { position: static; width: auto; height: auto; margin: 0; overflow: visible; clip-path: none; white-space: normal; }

/* Primary navigation disclosures and category-specific reading layouts. */
.nav-disclosure { position: relative; }
.nav-disclosure summary {
  display: flex; align-items: center; gap: .35rem; padding-block: .5rem;
  cursor: pointer; list-style: none; font-size: .875rem; font-weight: 620;
}
.nav-disclosure summary::-webkit-details-marker { display: none; }
.nav-disclosure summary::after {
  content: ""; width: .4rem; height: .4rem;
  border: solid currentColor; border-width: 0 1px 1px 0;
  transform: rotate(45deg); margin-top: -.2rem;
}
.nav-disclosure[open] summary::after { transform: rotate(225deg); margin-top: .2rem; }
.nav-disclosure ul {
  position: absolute; z-index: 2; right: 0; min-width: 11.25rem;
  list-style: none; margin: 0; padding: .3rem;
  border: 1px solid var(--line); border-radius: .55rem;
  background: #fff; box-shadow: 0 8px 18px #10243b14;
}
.nav-disclosure li a { display: block; padding: .5rem .65rem; }
.entry-content { font-size: clamp(1rem, 1.75vw, 1.125rem); line-height: 1.7; }
.entry-content h2, .entry-content h3, .entry-content h4 { margin-block: 1.45em .5em; }
.entry-content .gallery { display: grid; gap: .8rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 10rem), 1fr)); }
.entry-content .gallery-item { min-width: 0; margin: 0; }
.entry-content figcaption, .entry-content .wp-caption-text { font-size: .875rem; color: var(--text); }
.entry-content .wp-block-embed__wrapper { max-width: 100%; }

@media (max-width: 64rem) {
  .nav-disclosure summary { font-size: .82rem; }
}
@media (max-width: 51rem) {
  .nav-disclosure summary { font-size: .925rem; }
  .nav-disclosure ul { position: static; box-shadow: none; }
  .menu-ready .header-inner nav { align-items: start; }
}
@media (max-width: 36rem) {
}

/* Light editorial layouts, scoped to archives and individual articles. */
.collection-header { margin-block: .55rem 1.4rem; }
.collection-header h1 { max-width: none; }
.collection-description { color: var(--text); margin-top: .55rem; }
.collection-layout, .reading-columns { display: grid; gap: clamp(1rem, 3vw, 2.5rem); }
.collection-technical .collection-layout:has(> aside),
.reading-columns:has(> .reading-side) { grid-template-columns: minmax(0, 1fr) minmax(13rem, 24%); align-items: start; }
.collection-feed, .reading-main { min-width: 0; }
.reading-main > .comments {
  margin-block: 2rem 0;
  padding-block-start: 1.5rem;
  border-top: 1px solid var(--line);
  overflow-wrap: anywhere;
}
.reading-main > .comments .comment-respond {
  margin-block: 1.75rem 0;
  padding: clamp(.85rem, 3vw, 1.5rem);
  border: 1px solid var(--line);
  border-radius: .8rem;
  background: #f3f7fb;
}
.reading-main > .comments .comment-respond:first-child { margin-block-start: 0; }
.reading-main > .comments .comment-reply-title { line-height: 1.25; margin-block-end: .8rem; }
.reading-main > .comments .comment-form { display: grid; gap: 1rem; }
.reading-main > .comments .comment-form label { font-weight: 600; }
.reading-main > .comments .comment-form :is(textarea, input[type="text"], input[type="email"], input[type="url"]) {
  display: block;
  width: 100%;
  margin-block-start: .35rem;
  padding: .65rem .75rem;
  border: 1px solid #8298ae;
  border-radius: .5rem;
  background: #fff;
  color: var(--navy);
  font: inherit;
}
.reading-main > .comments .comment-form textarea { min-height: 8rem; resize: vertical; }
.reading-main > .comments .comment-form .submit { font-family: inherit; cursor: pointer; }
.reading-main > .comments :is(.logged-in-as, .comment-notes, .must-log-in) { color: var(--text); font-size: .925rem; }
.collection-lead { position: relative; display: grid; align-items: stretch; overflow: hidden; border: 1px solid var(--line); border-radius: .9rem; background: var(--pale); box-shadow: 0 4px 14px #10243b0a; }
.collection-lead:has(.lead-image) { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); }
.lead-image { display: block; width: 100%; height: 100%; min-height: 15rem; object-fit: cover; }
.lead-copy { align-self: center; padding: clamp(1rem, 3vw, 2.4rem); }
.lead-copy h2 { font-size: clamp(1.45rem, 2.8vw, 2.5rem); overflow-wrap: anywhere; }
.lead-copy > p:not(.eyebrow) { margin-top: .55rem; color: var(--text); }
.lead-copy .button { margin-top: 1rem; }
.collection-list-title { margin-block: 1.4rem .65rem; font-size: 1.4rem; }
.collection-entries, .collection-group-grid { display: grid; gap: 1rem; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.collection-entries .card-copy { overflow-wrap: anywhere; }
.collection-entries .article-title { font-size: 1.1rem; }
.collection-entries .article-title a { color: var(--navy); }
.collection-entries .card-excerpt { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.collection-technical .editorial > :first-child { aspect-ratio: 16 / 9; }
.collection-travel .collection-lead:has(.lead-image) { min-height: clamp(19rem, 34vw, 29rem); grid-template-columns: minmax(0, 1fr); align-items: end; }
.collection-travel .collection-lead > .lead-image { position: absolute; inset: 0; height: 100%; }
.collection-travel .collection-lead:has(.lead-image) .lead-copy { position: relative; align-self: end; max-width: 33rem; margin: clamp(.75rem, 3vw, 2rem); border-radius: .65rem; background: #fffffff5; }
.collection-travel .collection-lead h2, .reading-travel h1 { letter-spacing: -.045em; }
.collection-travel .editorial > :first-child { aspect-ratio: 4 / 3; }
.collection-media .collection-lead:has(.lead-image) { grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr); }
.collection-media .lead-image, .collection-media .editorial > :first-child, .collection-group img { aspect-ratio: 16 / 9; }
.collection-media .lead-image { height: auto; min-height: 0; align-self: center; }
.collection-media .editorial, .collection-group { background: linear-gradient(145deg, #fff, var(--pale)); }
.collection-groups h2, .section-panel h2 { font-size: 1.22rem; margin-bottom: .55rem; }
.collection-group { display: block; overflow: hidden; border: 1px solid var(--line); border-radius: .65rem; font-weight: 700; text-decoration: none; }
.collection-group:hover span { text-decoration: underline; }
.collection-group img { display: block; width: 100%; height: auto; object-fit: cover; }
.collection-group span { display: block; padding: .7rem .9rem; }
.section-panel { min-width: 0; padding: 1rem; border: 1px solid var(--line); border-radius: .7rem; background: linear-gradient(135deg, var(--pale), #f8fbfe); }
.section-panel ul, .section-panel ol { margin: 0; padding-inline-start: 1.2rem; }
.section-panel li { padding-block: .4rem; overflow-wrap: anywhere; }
.section-panel li + li { border-top: 1px solid var(--line); }
.section-panel a { text-underline-offset: .15em; }
.reading-layout { max-width: 72rem; }
.reading-article .entry-header { max-width: 54rem; }
.reading-article .entry-header h1 { text-wrap: balance; }
.reading-article .entry-image { display: block; width: 100%; border-radius: .8rem; margin-block: 0 1rem; }
.reading-main:only-child { max-width: 49rem; }
.article-share { margin-block: 1.75rem; padding-block-start: 1rem; border-top: 1px solid var(--line); }
.article-share h2 { font-size: 1.22rem; }
.article-share-actions { display: flex; flex-wrap: wrap; gap: .5rem; margin-block: .65rem; }
.article-share-actions .button { gap: .4rem; cursor: pointer; }
.article-share p { font-size: .925rem; color: var(--text); }
.article-share [data-manual] { display: grid; gap: .25rem; margin-block-start: .65rem; }
.article-share input { width: 100%; padding: .55rem; border: 1px solid #8298ae; border-radius: .4rem; font: inherit; }
.article-share [data-status]:not(:empty) { margin-block-start: .45rem; }
@media (width > 51rem) {
  .utility-reading > .reading-article { max-width: 49rem; margin-inline: auto; }
}
.reading-side { display: grid; gap: .9rem; }
.reading-side:not(:has(.section-panel:not([hidden]))) { display: none; }
.reading-columns:has(> .reading-side:not(:has(.section-panel:not([hidden])))) { grid-template-columns: minmax(0, 1fr); }
.reading-side .related-articles { list-style: none; padding: 0; }
.related-articles a { display: flex; align-items: center; gap: .6rem; }
.related-articles img { width: 3.3rem; height: 2.6rem; flex: none; border-radius: .25rem; object-fit: cover; }
.entry-content pre { padding: .85rem 1rem; border: 1px solid var(--line); border-radius: .5rem; background: #f3f7fb; overflow-wrap: normal; }
.reading-travel .entry-content figure img { border-radius: .5rem; }
.reading-media .entry-content :is(.wp-block-embed, iframe[src*="youtube"], iframe[src*="youtu.be"], iframe[src*="vimeo"]) { background: var(--pale); border-radius: .6rem; }
.gallery-viewer { max-width: min(92vw, 70rem); max-height: 92vh; padding: .75rem; background: #fff; border: 1px solid var(--line); border-radius: .65rem; color: var(--navy); }
.gallery-viewer::backdrop { background: #10243bcc; }
.gallery-viewer form { display: flex; justify-content: end; margin-bottom: .5rem; }
.gallery-viewer button { padding: .4rem .7rem; border: 1px solid var(--line); border-radius: .4rem; background: var(--pale); color: var(--navy); }
.gallery-viewer img { display: block; max-width: 100%; max-height: 76vh; object-fit: contain; }

@media (max-width: 51rem) {
  .collection-technical .collection-layout:has(> aside),
  .reading-columns:has(> .reading-side) { grid-template-columns: minmax(0, 1fr); }
  .collection-entries, .collection-group-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 36rem) {
  .collection-lead:has(.lead-image), .collection-media .collection-lead:has(.lead-image),
  .collection-entries, .collection-group-grid { grid-template-columns: minmax(0, 1fr); }
  .lead-image { height: auto; min-height: 0; aspect-ratio: 16 / 9; }
  .collection-travel .collection-lead:has(.lead-image) { min-height: 0; }
  .collection-travel .collection-lead > .lead-image { position: static; height: auto; }
  .collection-travel .collection-lead:has(.lead-image) .lead-copy { margin: 0; background: none; }
}


/* WordPress adds a generic Group wrapper inside synced patterns. Keep the
   original grid/flex children in the formatting context of their theme class. */
#services .section-heading > .wp-block-group__inner-container,
#services .services-grid > .wp-block-group__inner-container,
#work .showcase > .wp-block-group__inner-container,
#work .card-copy > .wp-block-group__inner-container {
  display: contents;
}
#services .section-heading > .wp-block-group__inner-container > *,
#services .services-grid > .wp-block-group__inner-container > *,
#work .showcase > .wp-block-group__inner-container > *,
#work .card-copy > .wp-block-group__inner-container > * {
  margin-block: 0;
}
#work .showcase .wp-block-image {
  margin: 0;
  aspect-ratio: 2.28;
  overflow: hidden;
}
#work .showcase .wp-block-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
#work .showcase-art.web-art:has(> .browser-mock) {
  background: #fff url("assets/featured-work.png") center / contain no-repeat;
}
#work .showcase-art.web-art > .browser-mock { visibility: hidden; }
.skip:not(:focus) { clip-path: inset(50%); }
@media print {
  .skip { display: none; }
  .site-header { position: static; }
}
