:where([data-etch-element="container"]) {
  inline-size: 100%;
  display: flex;
  flex-direction: column;
  max-inline-size: var(--content-width, 1366px);
  align-self: center; margin-inline: auto;
}
:where([data-etch-element="flex-div"]) {
  inline-size: 100%;
  display: flex;
  flex-direction: column;
}
:where([data-etch-element="iframe"]) {
  inline-size: 100%;
  height: auto;
 aspect-ratio: 16/9;
}
:where([data-etch-element="section"]) {
  inline-size: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.sitemap {
  /* category groups flow down columns (no gaps under short groups); column count follows the width */
columns: 16.25rem;
column-gap: var(--space-xl);
}
.sitemap__group {
  /* keep a category heading with all its posts in one column */
break-inside: avoid;
padding-block-end: var(--space-l);
}
.sitemap__title {
  margin-block: 0 var(--space-xs);
font-size: var(--text-l);
text-transform: uppercase;
}
.sitemap__title-link {
  color: inherit;
text-decoration: none;

&:hover,
&:focus-visible {
  text-decoration: underline;
}
}
.sitemap__list {
  margin: 0;
padding-inline-start: 0;
list-style: none;
}
.sitemap__item {
  margin-block-end: var(--space-xs);

/* beat .post-body__content :where(li) indent */
.post-body__content & {
  padding-inline-start: 0;
}
}
.site-footer {
  background-color: var(--base-semi-dark);
color: var(--white);
padding-block: var(--space-xs);
}
.site-nav {
  display: flex;
align-items: center;
/* keep a clear space between the logo and the menu even when a long menu fills the row (OMA, 2026-12-03) */
column-gap: var(--space-l);

@media (width < 43.75rem) {
  flex-direction: column;
}
}
.site-nav__brand {
  flex-shrink: 0;
}
.site-nav__logo {
  /* 80 px tall like the irrigationadvice.com and hightick.com logos (Mark, 2026-12-03); the 122x117 original scales to 83.4 px wide. Both sizes fixed so the browser reserves the space before the image loads (no layout shift); rounded white tile on the dark header (Mark, 2026-12-03) */
inline-size: 5.2125rem;
block-size: 5rem;
border-radius: var(--radius-m);
}
.site-nav__menu {
  flex: 1;

@media (width < 43.75rem) {
  inline-size: 100%;
}
}
.site-nav__list {
  display: flex;
flex-wrap: wrap;
align-items: center;
justify-content: center;
gap: var(--space-xs) var(--space-m);
padding-block: var(--space-s);
}
.site-nav__item {
  min-inline-size: 0;
}
.site-nav__link {
  color: var(--white);
text-decoration: none;
/* semibold in the footer, bold in the header (Mark, 2026-12-03) */
font-weight: 600;

.site-header & {
  font-weight: 700;
}

&:hover,
&:focus-visible {
  color: var(--white);
  text-decoration: underline;
}
}
.site-header {
  background-color: var(--base-semi-dark);
color: var(--white);
padding-block: var(--space-xs);
}
.post-page {
  padding-inline: var(--space-s);
padding-block: var(--space-m);
}
.post-layout {
  display: grid;
grid-template-columns: 3fr 1fr;
grid-template-areas: 'header .' 'main aside';
column-gap: var(--space-xl);

/* phones: one column, sidebar widgets under the article (same as the archive layout) */
@media (width < 40.625rem) {
  grid-template-columns: 1fr;
  grid-template-areas: 'header' 'main' 'aside';
}
}
.post-layout__header {
  grid-area: header;
background-color: var(--white);
padding: var(--space-xs);
padding-block-start: var(--space-m);
border-radius: var(--radius-l) var(--radius-l) 0 0;
}
.post-title {
  text-align: center;
margin-block: 0 var(--space-xs);
font-size: var(--text-xl);
}
.post-meta {
  display: flex;
flex-wrap: wrap;
align-items: center;
justify-content: center;
gap: var(--space-xs);
margin-block-end: var(--space-s);
font-size: var(--text-s);
color: var(--text-dark-muted);
}
.post-meta__date {
  &::before {
  content: "•";
  margin-inline-end: var(--space-xs);
}
}
.post-meta__rating {
  display: none;

&::before {
  content: "•";
  margin-inline-end: var(--space-xs);
}
}
.post-meta__category {
  &::before {
  content: "•";
  margin-inline-end: var(--space-xs);
  color: var(--text-dark-muted);
}
}
.post-layout__aside {
  grid-area: aside;
display: flex;
flex-direction: column;

@media (width < 40.625rem) {
  margin-block-start: var(--space-l);
}
}
.widget {
  background-color: var(--white);
border-radius: var(--radius-l);
box-shadow: var(--card-shadow);
overflow: hidden;
margin-block-end: var(--space-l);
}
.widget__title {
  margin: 0;
padding: var(--space-s) var(--space-m);
background-color: var(--base-semi-dark);
color: var(--white);
text-transform: uppercase;
letter-spacing: 0.05em;
font-size: var(--text-m);
}
.link-list__item {
  border-block-end: var(--border-size) var(--border-style) var(--border-color-light);

&:last-child {
  border-block-end: none;
}
}
.link-list__link {
  display: block;
padding-block: var(--space-xs);
padding-inline: var(--space-m);
color: var(--base-ultra-dark);
text-decoration: none;
font-weight: 600;

&:hover,
&:focus-visible {
  color: var(--base-ultra-dark);
  background-color: var(--base-ultra-light);
}
}
.post-layout__main {
  grid-area: main;
}
.post {
  background-color: var(--white);
border-radius: 0 0 var(--radius-l) var(--radius-l);
padding-block-end: var(--space-s);
}
.post__figure {
  /* same side inset as .post-body__content text, no extra width cap: the featured image gets the same room as a body Figure; the per-post featuredWidth (sizes) sets its display width (ported from hightick.com 2026-12-03; was capped at 700px) */
inline-size: calc(100% - 2 * var(--space-l));
margin-inline: auto;
margin-block-end: var(--space-l);

/* per-post frame around the featured image: post field featuredFrame = "border" (1 px line) — same as hightick.com */
&[data-frame="border"] .post__image {
  /* add the frame's padding and border so the picture itself keeps its natural width */
  inline-size: min(100%, calc(var(--post-image-w, 100%) + 2 * var(--space-xs) + 2 * var(--border-width)));
  border: var(--border-width) solid var(--black);
  /* white space between the frame and the image's edge */
  padding: var(--space-xs);
  background-color: var(--white);
}

/* featuredFrame = "panel": drop shadow, same as .panel */
&[data-frame="panel"] .post__image {
  box-shadow: 0 6px 18px color-mix(in srgb, black 30%, transparent);
}
}
.post__image {
  /* width comes from the post's featuredWidth (template sets --post-image-w), capped at the column: the browser reserves the space before the image loads (no layout shift) and small images never upscale (CLS fix 2026-12-03; was inline-size: auto) */
display: block;
inline-size: min(100%, var(--post-image-w, 100%));
block-size: auto;
margin-inline: auto;
}
.post__caption {
  /* optional featured caption (post field featuredCaption), same look as hightick.com */
margin-block-start: var(--space-xs);
font-size: var(--text-s);
font-weight: 700;
color: var(--text-dark-muted);
text-align: center;
}
.post-body__content {
  padding-inline: var(--space-l);

  > h2 {
    text-align: center;
  }

  & :where(li) {
    margin-bottom: var(--list-item-spacing);
    padding-inline-start: 0.5em;
  }
}
.author-box {
  display: flex;
align-items: stretch;
gap: var(--space-m);
background-color: var(--white);
border-radius: var(--radius-l);
margin-block-start: var(--space-m);
padding-block: var(--space-s);
padding-inline: var(--space-l);

@media (width < 40.625rem) {
  flex-direction: column;
  align-items: center;
  text-align: center;
}
}
.author-box__avatar {
  min-block-size: 6rem;
max-block-size: 13.75rem;
max-inline-size: 13.75rem;
aspect-ratio: 1;
object-fit: cover;
flex-shrink: 0;

@media (width < 40.625rem) {
  block-size: 6rem;
  min-block-size: unset;
}
}
.author-box__content {
  flex: 1 1 auto;
}
.author-box__title {
  margin-block-end: var(--space-xs);
}
.author-box__name {
  margin-block-end: var(--space-xs);
}
.author-box__bio {
  margin-block-end: var(--space-xs);
}
.author-box__contact {
  font-size: var(--text-s);
color: var(--text-dark-muted);
}
.rating-widget {
  display: flex;
align-items: baseline;
flex-wrap: wrap;
gap: var(--space-xs);
background-color: var(--white);
border-radius: var(--radius-l);
padding: var(--space-m);
margin-block-start: var(--space-s);
}
.rating-widget__label {
  font-weight: 600;
color: var(--tertiary);
}
.rating-widget__stars {
  display: flex;
}
.rating-widget__star {
  cursor: pointer;
font-size: var(--text-xl);
line-height: 1;
padding: 0.25rem 0.375rem;
color: var(--border-color-dark);
transition: color 0.15s ease;

&.is-filled {
  color: var(--tertiary);
}

&:hover,
&:focus-visible {
  color: var(--tertiary-semi-light);
}

&:disabled {
  cursor: default;
}
}
.rating-widget__message {
  color: var(--danger);
font-size: var(--text-s);
margin: 0;
margin-inline-start: var(--space-m);
}
.archive-layout {
  display: grid;
grid-template-columns: 1fr 18.75rem;
grid-template-areas: 'title .' 'posts aside';
gap: var(--grid-gap) var(--space-xl);
align-items: start;
margin-block: var(--space-l) var(--space-m);
padding-inline: var(--space-s);

@media (width < 56.25rem) {
  grid-template-columns: 1fr;
  grid-template-areas: 'title' 'posts' 'aside';
}
}
.archive-layout__title {
  grid-area: title;
text-align: center;
margin-block: 0;
}
.post-grid {
  grid-area: posts;
display: grid;
grid-template-columns: var(--grid-2);
gap: var(--grid-gap);

@media (width < 43.75rem) {
  grid-template-columns: var(--grid-1);
}
}
.post-card {
  position: relative;
}
.post-card__media {
  /* hold the card image box at the card media aspect ratio (4:3); without this, images taller than 4:3 stretch the box */
min-block-size: 0;
}
.post-card__image {
  inline-size: 100%;
block-size: 100%;
object-fit: cover;
}
.post-card__title {
  text-align: center;
}
.post-card__link {
  color: var(--tertiary);
text-decoration: none;

&::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 10;
}

&.etch-builder-block::after {
  display: none;
}

&:hover,
&:focus-visible {
  color: var(--tertiary);
  text-decoration: underline;
}
}
.post-card__meta {
  text-align: center;
}
.post-card__author {
  margin-inline-end: var(--space-s);
}
.post-card__excerpt {
  margin-block-start: var(--space-s);
}
.post-card__button {
  /* plain label (span), not a link: the card's title link covers the whole card, so a click here still opens the post (2026-12-03) */
align-self: center;

/* the site's primary blue, 15% darker, with white semibold text: 4.9:1 contrast (plain --primary was 2.9:1, below WCAG AA 4.5:1) (Mark, 2026-12-03).
   .post-card prefix needed: ACSS's .post-card [class*=btn--] sets the same variables, loads later and would win a tie */
.post-card &.btn--primary {
  --btn-background: color-mix(in oklch, var(--primary) 85%, black);
  --btn-text-color: var(--white);
  --btn-border-color: color-mix(in oklch, var(--primary) 85%, black);
  --btn-font-weight: 600;
  font-weight: 600;
}

/* hover: the title link's overlay covers the whole card, so the button itself never gets :hover. Darken it when the card is hovered or a link in it has keyboard focus */
.post-card:is(:hover, :focus-within) &.btn--primary {
  --btn-background: color-mix(in oklch, var(--primary) 70%, black);
  --btn-border-color: color-mix(in oklch, var(--primary) 70%, black);
  background-color: color-mix(in oklch, var(--primary) 70%, black);
  border-color: color-mix(in oklch, var(--primary) 70%, black);
}
}
.archive-layout__aside {
  grid-area: aside;
}
body {
  background-color: var(--primary-ultra-light);
}
.not-found {
  background-color: var(--white);
border-radius: var(--radius-l);
padding: var(--space-l);
text-align: center;
}
.panel {
  box-shadow: 0 6px 18px color-mix(in srgb, black 30%, transparent);
}
.figure {
  margin-block: var(--space-m);
margin-inline: auto;
max-inline-size: 100%;
text-align: center;

.figure-group > & {
  /* share the row; each image shrinks to fit, never upscales; stack below ~15rem */
  flex: 1 1 0;
  min-inline-size: min(100%, 15rem);
  margin-block: 0;
  margin-inline: 0;
}

/* first thing in the body: no top margin, so the image top lines up with the first sidebar widget */
.post-body__content > &:first-child {
  margin-block-start: 0;
}

/* FigureGroup layout = "2col": two figures per row (2 x 2 grids, e.g. 800 scan results) */
.figure-group[data-layout="2col"] > & {
  flex: 1 1 calc(50% - var(--space-l));
}
}
.figure__image {
  /* etch-reset has figure > img { inline-size: 100% }; auto keeps the width attribute (natural size) so screenshots never upscale; max-inline-size shrinks them to fit */
display: block;
inline-size: auto;
max-inline-size: 100%;
block-size: auto;
margin-inline: auto;

/* Figure frame prop = "true": drop shadow (same as .panel) */
.figure[data-frame="true"] & {
  box-shadow: 0 6px 18px color-mix(in srgb, black 30%, transparent);
}

/* Figure frame prop = "border": thin black outline with white padding (same as the featured frame) */
.figure[data-frame="border"] & {
  border: var(--border-width) solid var(--black);
  padding: var(--space-xs);
  background-color: var(--white);
}
}
.figure__caption {
  margin-block-start: var(--space-xs);
font-size: var(--text-s);
font-weight: 700;
color: var(--text-dark-muted);
}
.figure-group {
  /* FigureGroup component: side-by-side Figure instances with one shared caption.
   layout = "row" (default): figures share the row, stacking when narrow; "2col": two per row (see .figure) */
display: flex;
flex-wrap: wrap;
justify-content: center;
align-items: flex-start;
gap: var(--space-xs) var(--space-l);
margin-block: var(--space-m);
margin-inline: auto;
max-inline-size: 100%;
text-align: center;
}
.figure-group__caption {
  flex-basis: 100%;
font-size: var(--text-s);
font-weight: 700;
color: var(--text-dark-muted);
}
.data-table {
  /* tables in post bodies (converted from WordPress) */
inline-size: 100%;
border-collapse: collapse;
margin-block: var(--space-m);
font-size: var(--text-s);

& :where(th, td) {
  border: var(--border-width, 1px) solid var(--border-color-dark);
  padding: var(--space-2xs, 0.4em) var(--space-xs);
  vertical-align: top;
  text-align: start;
}

& :where(th) {
  background-color: var(--base-ultra-light);
  text-align: center;
}

/* phones: the table scrolls sideways instead of squeezing */
@media (width < 40.625rem) {
  display: block;
  overflow-x: auto;
}
}