/* WordPress-side additions on top of the demo stylesheet (assets/styles.css, ported verbatim). */
.form-feedback:empty { display: none; }
.form-feedback { margin-top: 1rem; padding: .75rem 1rem; border-radius: var(--radius); font-weight: 600; }
.form-feedback.is-error { background: #fdecec; color: #8a1414; border: 1px solid #e3a3a3; }
.form-feedback.is-success { background: #eef7dc; color: #2f4a06; border: 1px solid #b9d98a; }
.by-form .field-error { margin: .35rem 0 0; color: #a3161a; font-size: .9rem; font-weight: 600; }
.by-form [aria-invalid="true"] { border-color: #a3161a; box-shadow: 0 0 0 1px #a3161a; }
.by-form .req { color: #a3161a; }
.site-footer .legal a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.page-content-default { padding: 4rem 0; }
.page-content-default h2 { margin-top: 2rem; }
/* Footer column headings are h2 (were h3 in the demo) so short pages never skip a heading level. Same look. */
.site-footer h2.f-h { font-family: var(--cond); font-weight: 700; line-height: 1.15; color: #fff; font-size: 1.05rem; text-transform: uppercase; letter-spacing: .12em; margin: 0 0 1rem; }
/* Keep the MMG accessibility launcher clear of the fixed mobile call bar. */
@media (max-width: 860px) { .a11y-launcher { bottom: calc(84px + env(safe-area-inset-bottom)) !important; } }
/* ---- Blog (migrated posts from the old site) ---- */
.post-hero h1 { font-size: clamp(2.1rem, 4.4vw, 3.6rem); max-width: 24ch; }
.post-meta { font-family: var(--cond); font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: #c6d3dc; margin: 0; }
.post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.75rem; }
.post-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.post-card .pc-media { display: block; aspect-ratio: 16 / 10; background: var(--night); overflow: hidden; }
.post-card .pc-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.post-card:hover .pc-media img { transform: scale(1.04); }
.post-card .pc-body { padding: 1.2rem 1.3rem 1.4rem; }
.post-card .pc-meta { font-family: var(--cond); font-weight: 600; text-transform: uppercase; letter-spacing: .08em; font-size: .85rem; color: var(--muted); margin: 0 0 .4rem; }
.post-card .pc-title { font-size: 1.3rem; line-height: 1.2; margin: 0 0 .6rem; }
.post-card .pc-title a { color: var(--ink); text-decoration: none; }
.post-card .pc-title a:hover { color: var(--blue); text-decoration: underline; }
.post-card .pc-excerpt { margin: 0; color: var(--muted); font-size: .98rem; }
.by-pagination ul { list-style: none; display: flex; flex-wrap: wrap; gap: .5rem; padding: 0; margin: 2.5rem 0 0; justify-content: center; }
.by-pagination a, .by-pagination span { display: inline-block; min-width: 2.75rem; min-height: 2.75rem; padding: .55rem .9rem; text-align: center; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; font-family: var(--cond); font-weight: 700; text-decoration: none; }
.by-pagination .current { background: var(--night); color: #fff; border-color: var(--night); }
.post-wrap { max-width: 780px; }
.post-body { font-size: 1.1rem; line-height: 1.7; overflow-wrap: anywhere; }
.post-body img { max-width: 100%; height: auto; }
.post-body .aligncenter, .post-body .wp-caption.aligncenter { display: block; margin: 1.5rem auto; }
.post-body .alignleft { float: left; margin: .3rem 1.5rem 1rem 0; max-width: 50%; }
.post-body .alignright { float: right; margin: .3rem 0 1rem 1.5rem; max-width: 50%; }
.post-body .wp-caption { max-width: 100%; }
.post-body .wp-caption-text { font-size: .9rem; color: var(--muted); margin-top: .4rem; }
.post-body iframe { display: block; width: 100%; max-width: 100%; height: auto; aspect-ratio: 16 / 9; border: 0; margin: 1.5rem 0; }
.post-body audio { width: 100%; margin: 1rem 0; }
.post-body table { width: 100%; border-collapse: collapse; margin: 1.5rem 0; display: block; overflow-x: auto; }
.post-body th, .post-body td { border: 1px solid var(--line); padding: .5rem .7rem; }
.post-body::after { content: ""; display: table; clear: both; }
@media (max-width: 600px) { .post-body .alignleft, .post-body .alignright { float: none; margin: 1rem auto; max-width: 100%; display: block; } }
.post-tags { display: flex; flex-wrap: wrap; gap: .5rem; margin: 2rem 0 0; }
.post-tags a { font-size: .85rem; padding: .3rem .7rem; background: var(--paper-2); border-radius: 999px; text-decoration: none; color: var(--ink); }
.post-cta { margin: 3rem 0 0; padding: 1.75rem; background: var(--night); color: #fff; border-radius: var(--radius); }
.post-cta h2 { color: #fff; margin: 0 0 .5rem; font-size: 1.8rem; }
.post-cta p { color: #d6e0e7; margin: 0 0 1.2rem; }
.post-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin: 2.5rem 0 0; }
.post-nav a { display: block; padding: 1rem 1.1rem; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: var(--ink); font-weight: 600; line-height: 1.3; }
.post-nav a span { display: block; font-family: var(--cond); text-transform: uppercase; letter-spacing: .08em; font-size: .8rem; color: var(--muted); margin-bottom: .3rem; }
.post-nav .pn-next { grid-column: 2; text-align: right; }
@media (max-width: 600px) { .post-nav { grid-template-columns: 1fr; } .post-nav .pn-next { grid-column: 1; text-align: left; } }
.post-back { margin: 2rem 0 0; }
.post-hero-h1 { font-size: clamp(2.1rem, 4.4vw, 3.6rem) !important; max-width: 24ch !important; }
/* Yield calculators */
.calc-out .row-note { color: #c6d3dc; margin: 0 0 1rem; }
.calc .hint { font-size: .9rem; color: var(--muted); margin: .35rem 0 0; }
.calc-source { margin-top: 1.5rem; font-size: .95rem; color: var(--muted); max-width: 60em; }
