/* sethshoultes.com page-specific styles (hero, consulting, tools, apps, chat). Kit components live in vendor/site-kit. */
/* hero */
.hero { padding: 9rem 0 4rem; background: radial-gradient(60% 50% at 80% 0%, rgba(255, 107, 44, 0.14), transparent 70%); }
.hero-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 3rem; align-items: center; }
.hero .lead { margin-top: 1.5rem; }
.hero-photo { width: 100%; max-width: 420px; justify-self: end; height: auto; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 24px; border: 1px solid var(--border); }
@media (max-width: 860px) {
  .hero { padding-top: 7rem; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-photo { justify-self: start; max-width: 280px; }
}
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 1rem; padding: 2rem 0 0; }
.stat { border-top: 1px solid var(--border); padding-top: 1rem; }
.stat strong { display: block; font-size: 1.6rem; font-weight: 800; letter-spacing: -0.02em; }
.stat span { color: var(--muted); font-size: 0.95rem; }

.band .btn { margin-top: 1.5rem; }
#build { padding: 4rem 0; }
/* illustrations */
.art { display: block; width: 100%; height: auto; aspect-ratio: 16 / 7; object-fit: cover; border-radius: var(--radius); border: 1px solid var(--border); margin-bottom: 1.5rem; }
.art-banner { aspect-ratio: 3 / 1; }
.card-img { width: 100%; height: auto; border-radius: 10px; margin-bottom: 0.5rem; }
#next-art, .meetup-art { max-height: 300px; aspect-ratio: 16 / 5; }
.card-img { aspect-ratio: 3 / 1; object-fit: cover; }
@media (max-width: 640px) { .card-img { aspect-ratio: 4 / 1; } }

/* hero photo: full-bleed on desktop with the headline over the dark left side */
.hero { position: relative; overflow: hidden; padding: 8rem 0 5rem; min-height: min(86vh, 760px); display: flex; flex-direction: column; justify-content: center; }
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 70% center; z-index: 0; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, rgba(11,13,16,0.92) 0%, rgba(11,13,16,0.75) 35%, rgba(11,13,16,0) 62%), linear-gradient(0deg, var(--bg) 0%, rgba(11,13,16,0) 22%); pointer-events: none; }
.hero > .wrap { position: relative; z-index: 2; width: 100%; }
.hero-grid { grid-template-columns: minmax(0, 620px); }
@media (max-width: 860px) {
  .hero { display: block; min-height: 0; padding: 64px 0 3rem; }
  .hero-bg { position: relative; display: block; height: 360px; object-position: 76% 0%; }
  .hero::after { inset: 64px 0 auto 0; height: 360px; background: linear-gradient(0deg, var(--bg) 0%, rgba(11,13,16,0) 35%); }
  .hero-grid { grid-template-columns: 1fr; padding-top: 1.5rem; }
}

/* about photos */
/* "Work with me" row on the homepage (#163): three plain links, each with one line of why */
.work-row { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem 2rem; }
.work-row li { display: flex; flex-direction: column; gap: 0.25rem; border-top: 1px solid var(--border); padding-top: 0.9rem; min-width: 0; }
.work-row a { font-weight: 700; min-height: 44px; display: inline-flex; align-items: center; }
.work-row span { color: var(--muted); font-size: 0.95rem; }
@media (max-width: 860px) { .work-row { grid-template-columns: 1fr; gap: 0.5rem; } }
.about-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 3rem; align-items: start; }
.about-photos { display: grid; gap: 1.25rem; justify-items: start; }
.about-photos figure { margin: 0; }
.about-photos img { display: block; height: auto; border-radius: var(--radius); border: 1px solid var(--border); }
.about-photos figure:first-child img { width: 240px; max-width: 100%; }
.about-photos figure:last-child img { width: 300px; max-width: 100%; }
.about-photos figcaption { color: var(--muted); font-size: 0.9rem; margin-top: 0.5rem; }
.byline { display: flex; align-items: center; gap: 0.6rem; color: var(--muted); margin-top: 1.25rem; font-weight: 500; }
.byline img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }
@media (max-width: 860px) {
  .about-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .about-photos { grid-template-columns: 1fr 1fr; align-items: start; }
  .about-photos img { width: 100% !important; }
}

/* designer fixes: hero text column and stats scrim, phone fold, about photos */
.hero-grid { grid-template-columns: minmax(0, min(620px, 52%)); }
.hero .lead { max-width: 520px; }
.hero::after { background: linear-gradient(90deg, rgba(11,13,16,0.92) 0%, rgba(11,13,16,0.75) 35%, rgba(11,13,16,0) 62%), linear-gradient(0deg, var(--bg) 0%, rgba(11,13,16,0.85) 14%, rgba(11,13,16,0) 34%); }
.stat span { color: #c2c7ce; }
.about-grid { align-items: center; }
.about-photos { grid-template-columns: 1fr; }
.about-photos figure:first-child img, .about-photos figure:last-child img { width: 260px; }
.about-photos figure:first-child img { aspect-ratio: 1 / 1; object-fit: cover; }
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-bg { height: 300px; }
  .hero::after { height: 300px; }
  .hero .lead { margin-top: 1rem; }
  .hero-grid { padding-top: 1rem; }
  .about-photos { grid-template-columns: 1fr 1fr; align-items: end; }
  .about-photos figure:first-child img { aspect-ratio: 900 / 1054; }
}
.page-head .byline { margin-top: 0.75rem; }
@media (min-width: 861px) and (max-width: 1180px) { .hero .lead { max-width: 440px; } }

/* consulting page on the site layout */
.consulting { padding-top: 8rem; padding-bottom: 3rem; }
.consulting section { padding: 0; margin-top: 4.5rem; }
.consulting h1 { font-size: clamp(2.2rem, 6vw, 3.8rem); margin: 0.5rem 0 1rem; }
.consulting h2 { margin-bottom: 0.75rem; }
.consulting .btn-row { margin-top: 1.5rem; }
.proof { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1rem; margin-top: 1.5rem; }
.proof div { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.25rem; }
.proof strong { display: block; margin-bottom: 0.25rem; }
.proof p { color: var(--muted); font-size: 0.95rem; }
.plans, .once { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.25rem; margin-top: 1.5rem; align-items: stretch; }
.plan { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.75rem 1.5rem; display: flex; flex-direction: column; }
.plan.featured { border: 2px solid var(--accent); position: relative; }
.plan .tag { position: absolute; top: 0; left: 1.5rem; transform: translateY(-50%); background: var(--accent); color: #0b0d10; padding: 0.15rem 0.7rem; border-radius: 999px; letter-spacing: 0.06em; }
.plan .for { color: var(--muted); font-size: 0.95rem; margin: 0.25rem 0 1rem; }
.price { font-size: 2.2rem; font-weight: 800; letter-spacing: -0.03em; }
.price span { font-size: 1rem; font-weight: 500; color: var(--muted); }
.plan ul { list-style: none; margin: 1.25rem 0 1.5rem; flex: 1; }
.once .plan ul { flex: 0; }
.plan li { padding-left: 1.6rem; position: relative; margin-bottom: 0.55rem; font-size: 0.95rem; color: var(--muted); }
.plan li::before { content: "\2713"; position: absolute; left: 0; color: var(--accent); font-weight: 700; }
.plan .btn { width: 100%; text-align: center; }
.table-wrap { overflow-x: auto; }
.consulting table { width: 100%; border-collapse: collapse; margin-top: 1.5rem; background: var(--surface); border: 1px solid var(--border); font-size: 0.95rem; }
.consulting th, .consulting td { padding: 0.8rem 1rem; border-bottom: 1px solid var(--border); text-align: center; }
.consulting th:first-child, .consulting td:first-child { text-align: left; }
.consulting thead th { background: var(--surface-2); font-weight: 600; }
.consulting tbody tr:last-child td { border-bottom: 0; }
@media (max-width: 640px) { #compare { display: none; } }

/* forms (consulting, talk) */
.consulting form, .contact-form { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.75rem 1.5rem; margin-top: 1.5rem; max-width: 680px; display: grid; gap: 1rem; }
.consulting form label, .contact-form label { font-weight: 600; font-size: 0.95rem; display: grid; gap: 0.35rem; }
.consulting input, .consulting select, .consulting textarea, .contact-form input, .contact-form select, .contact-form textarea { font: inherit; font-weight: 400; padding: 0.7rem 0.9rem; border: 1px solid #4a515c; border-radius: 10px; background: var(--bg); color: var(--text); width: 100%; }
.consulting textarea, .contact-form textarea { min-height: 140px; resize: vertical; }
.consulting form .btn, .contact-form .btn { border: 0; cursor: pointer; font: inherit; font-weight: 700; justify-self: start; }
.consulting form .btn:disabled, .contact-form .btn:disabled { opacity: 0.6; cursor: wait; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
#form-status { font-size: 0.95rem; min-height: 1.4em; }
#form-status.ok { color: #7ee2b8; }
#form-status.err { color: #ffb4a0; }
.thanks { padding-top: 8rem; padding-bottom: 5rem; }
.thanks > * { max-width: 680px; }
.thanks h1 { font-size: clamp(2.2rem, 6vw, 3.8rem); margin-top: 0.5rem; }
.talk { padding-top: 8rem; padding-bottom: 3rem; } .talk h1 { font-size: clamp(2.2rem, 6vw, 3.8rem); margin-top: 0.5rem; }

.small-note { color: var(--muted); font-size: 0.9rem; margin-top: 1.5rem; }
.small-note a { text-decoration: underline; text-underline-offset: 3px; }
.consulting form { max-width: none; }
.consulting form .btn, .contact-form .btn { margin-bottom: 0; }
.consulting form, .contact-form { padding-bottom: 1.25rem; }
#form-status:empty { display: none; }
.plan.featured { padding: calc(1.75rem - 1px) calc(1.5rem - 1px); }

/* Service pages */
.service-hero { padding: 8rem 0 2rem; }
.service-hero h1 { text-wrap: balance; font-size: clamp(2rem, 4.8vw, 3.6rem); max-width: 20em; margin-bottom: 1.25rem; }
.service-sec-thin { padding: 2.25rem 0; }
.service-sec { padding: 3.5rem 0; }
.service-sec h2 { margin-bottom: 1rem; }
.service ul:not(.link-grid):not(.feature-grid) { padding-left: 1.2rem; color: var(--muted); }
.service ul:not(.link-grid):not(.feature-grid), .hub ul:not(.link-grid):not(.photo-credits) { margin: 0 0 1.5rem; padding-left: 1.2rem; color: var(--muted); }
.service ul:not(.link-grid):not(.feature-grid) li, .hub ul:not(.link-grid):not(.photo-credits) li { margin-bottom: 0.4rem; }
.hub h2 { margin-top: 2.5rem; }
.hub .lead { margin-top: 1rem; }
.hub .prose { margin-top: 2.5rem; }
.hub .hub-note { margin-top: 1.5rem; }
.service-sec p + p, .service-sec ul + p { margin-top: 1rem; }

.books { list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 0.25rem 2rem; margin-top: 1.5rem; }
.books li { padding: 0.8rem 0; border-top: 1px solid var(--border); display: grid; gap: 0.1rem; }
.bk-title { font-weight: 600; }
.bk-author { color: var(--muted); font-size: 0.92rem; }

.shelf { border-top: 1px solid var(--border); padding: 0.4rem 0; }
.shelf:last-child { border-bottom: 1px solid var(--border); }
.shelf summary { cursor: pointer; font-weight: 700; font-size: 1.1rem; padding: 0.8rem 0; list-style: none; display: flex; align-items: center; gap: 0.6rem; }
.shelf summary::-webkit-details-marker { display: none; }
.shelf summary::after { content: "+"; margin-left: auto; color: var(--accent); font-weight: 400; font-size: 1.4rem; line-height: 1; }
.shelf[open] summary::after { content: "\2212"; }
.shelf .count { color: var(--muted); font-weight: 400; font-size: 0.9rem; }
.shelf .books { margin-top: 0; padding-bottom: 0.75rem; }
.shelf .books li { border-top: 0; padding: 0.45rem 0; }

.shelves { max-width: 980px; }
.shelf .books { grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: 0 2rem; align-items: start; }
.shelf .books li { align-content: start; gap: 0.15rem; }
.shelf summary { scroll-margin-top: 80px; }
.shelf summary:hover { color: var(--accent); }

/* Free tools */
.tool-box { padding: 1rem 0 2rem; }
.tool-form { max-width: none; grid-template-columns: minmax(0, 1fr); }
.tool-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 1rem; }
.tool-fieldset { min-width: 0; border: 1px solid var(--border); border-radius: 10px; padding: 1rem; display: grid; gap: 0.75rem; }
.tool-fieldset legend { font-weight: 600; font-size: 0.95rem; padding: 0 0.4rem; }
.tool-hours { display: grid; gap: 0.5rem; }
.tool-hours-row { display: grid; grid-template-columns: 7rem minmax(0, 1fr) minmax(0, 1fr); gap: 0.75rem; align-items: center; }
.tool-hours-row span { color: var(--muted); font-size: 0.95rem; }
.tool-link { background: none; border: 0; padding: 0; font: inherit; color: var(--accent); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.tool-result { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.5rem; margin-top: 1.5rem; }
.tool-result-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1rem; }
.tool-result-head h2 { margin: 0; font-size: 1.5rem; }
.tool-result .btn { border: 0; cursor: pointer; font: inherit; font-weight: 700; }
.tool-result .btn:disabled { opacity: 0.5; cursor: not-allowed; }
.tool-status { color: #7ee2b8; font-size: 0.95rem; min-height: 1.4em; margin-top: 0.75rem; }
.tool-code { background: var(--bg); border: 1px solid var(--border); border-radius: 10px; padding: 1rem; overflow-x: auto; max-height: 28rem; font-size: 0.85rem; line-height: 1.5; }
.tool-notes h3 { font-size: 1rem; margin: 1.25rem 0 0.5rem; }
.tool-notes ul { padding-left: 1.2rem; color: var(--muted); }
@media (max-width: 640px) { .tool-hours-row { grid-template-columns: 5.5rem minmax(0, 1fr) minmax(0, 1fr); gap: 0.5rem; } }
.tool-rows { display: grid; gap: 1rem; }
.tool-row { display: grid; grid-template-columns: minmax(0, 2fr) repeat(3, minmax(0, 1fr)) auto; gap: 0.75rem; align-items: end; }
.tool-row label { font-size: 0.85rem; }
.tool-row .tool-link { padding-bottom: 0.7rem; }
.tool-table { width: 100%; border-collapse: collapse; margin-top: 1.25rem; font-size: 0.95rem; }
.tool-table th, .tool-table td { padding: 0.6rem 0.75rem; border-bottom: 1px solid var(--border); text-align: right; }
.tool-table th:first-child, .tool-table td:first-child { text-align: left; }
@media (max-width: 760px) { .tool-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr); } .tool-row label:first-child { grid-column: 1 / -1; } .tool-row .tool-link { grid-column: 1 / -1; justify-self: start; padding-bottom: 0; } }
.tool-wrap { white-space: pre-wrap; overflow-wrap: anywhere; }
.tool-tabs { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 1rem 0; }
.tool-tabs button { font: inherit; font-weight: 600; background: var(--bg); color: var(--muted); border: 1px solid var(--border); border-radius: 999px; padding: 0.45rem 1rem; cursor: pointer; }
.tool-tabs button[aria-selected="true"] { color: #0b0d10; background: var(--accent); border-color: var(--accent); }
.tool-panel { color: var(--muted); }
.tool-panel strong { color: var(--text); }
.tool-panel[hidden] { display: none; }

.tool-form .btn:disabled { opacity: 0.6; cursor: wait; }
.tool-status-err { color: #ffb4a0; }
.tool-checks { list-style: none; display: grid; gap: 0.75rem; margin-top: 1rem; }
.tool-check { background: var(--bg); border: 1px solid var(--border); border-left-width: 4px; border-radius: 10px; padding: 0.9rem 1rem; }
.tool-check p { color: var(--muted); font-size: 0.95rem; margin-top: 0.35rem; overflow-wrap: anywhere; }
.tool-check-ok { border-left-color: #7ee2b8; }
.tool-check-warn { border-left-color: #f2c14e; }
.tool-check-bad, .tool-check-block { border-left-color: #ff7a59; }
.tool-check-unknown { border-left-color: #6b7280; }
.tool-badge { display: inline-block; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin-right: 0.6rem; }
.tool-cp { margin-top: 1.25rem; font-weight: 600; }



/* Spacing utilities (replace inline styles). !important keeps the precedence the inline styles had. */
.mt-05 { margin-top: 0.5rem !important; }
.mt-075 { margin-top: 0.75rem !important; }
.mt-1 { margin-top: 1rem !important; }
.mt-15 { margin-top: 1.5rem !important; }
.mt-2 { margin-top: 2rem !important; }
.mt-25 { margin-top: 2.5rem !important; }
.pt-1 { padding-top: 1rem !important; }
.grid-wide { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)) !important; }
/* Apps page */
.apps-bundle { margin: 1.5rem 0 0; max-width: 680px; }
.apps-bundle .tag { white-space: normal; }
.apps-bundle h2 { margin: 0.5rem 0 0.25rem; font-size: 1.8rem; }
.apps-includes { list-style: none; margin: 1.25rem 0; padding: 0; }
.apps-includes li { padding-left: 0; margin-bottom: 0.6rem; }
.apps-includes li::before { content: none; }
.apps-bundle .btn { width: auto; }
.apps-status { display: inline-block; min-width: 6.2rem; margin-right: 0.5rem; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); }
.tool-actions { margin-top: 0; }

/* chat */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.chat { display: flex; flex-direction: column; gap: 0.75rem; margin-bottom: 1rem; }
.msg { padding: 0.8rem 1rem; border-radius: 14px; max-width: 100%; white-space: pre-wrap; overflow-wrap: anywhere; }
.msg.bot { background: var(--surface); border: 1px solid var(--border); align-self: flex-start; }
.msg.me { background: var(--accent); color: #0b0d10; align-self: flex-end; font-weight: 500; }
.chips[hidden] { display: none; }
.chips { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-bottom: 1rem; }
.chip { font: inherit; font-size: 0.9rem; background: transparent; color: var(--text); border: 1px solid #4a515c; border-radius: 999px; padding: 0.65rem 1rem; cursor: pointer; text-align: left; }
.chip:hover { border-color: var(--text); }
.chat-form { display: flex; gap: 0.5rem; }
.chat-form input { flex: 1; min-width: 0; font: inherit; padding: 0.8rem 1rem; border-radius: 999px; border: 1px solid #4a515c; background: var(--surface); color: var(--text); }
.chat-form .btn { border: 0; cursor: pointer; font: inherit; font-weight: 700; }
.chat-form .btn:disabled { opacity: 0.5; cursor: wait; }
.small-note { color: var(--muted); font-size: 0.85rem; margin-top: 0.75rem; }

/* readiness check */
.stack { display: grid; gap: 1.1rem; }
.stack label { display: grid; gap: 0.4rem; font-weight: 600; }
.stack label .opt { display: inline; }
.stack input, .stack select, .stack textarea { font: inherit; font-weight: 400; padding: 0.8rem 1rem; border-radius: 12px; border: 1px solid #4a515c; background: var(--surface); color: var(--text); width: 100%; }
.stack .opt { color: var(--muted); font-weight: 400; }
.stack .btn { border: 0; cursor: pointer; font: inherit; font-weight: 700; justify-self: start; }
.stack .btn:disabled { opacity: 0.6; cursor: wait; }
.rc-error { margin-top: 1.25rem; color: #ffb4a0; border-left: 3px solid #ff7a5c; padding: 0.5rem 0 0.5rem 0.9rem; }
.rc-error[hidden], .rc-result[hidden] { display: none; }
.rc-result { margin-top: 2.5rem; padding-top: 2rem; border-top: 1px solid var(--border); }
.rc-score { font-size: clamp(4rem, 12vw, 5.5rem); font-weight: 800; letter-spacing: -0.05em; line-height: 1; margin: 0.5rem 0 0.25rem; color: var(--accent); }
.rc-score small { font-size: 1.4rem; color: var(--muted); font-weight: 500; margin-left: 0.2rem; letter-spacing: 0; }
.rc-level { font-size: 1.15rem; font-weight: 700; margin-bottom: 1rem; }
.rc-h { margin-top: 1.75rem; }
.rc-opps { margin: 1rem 0 1.5rem 1.25rem; color: var(--muted); }
.rc-opps li { margin-bottom: 1.1rem; }
.rc-opps li span { display: block; }
.rc-opps strong { color: var(--text); }

.site-footer a { white-space: nowrap; }
.tool-sublist { margin: 0.6rem 0 0; padding-left: 1.2rem; color: var(--muted); font-size: 0.92rem; }
.tool-sublist li { margin-bottom: 0.3rem; }


/* card sections under service and city pages */
.service-more, .city-more { padding-bottom: 2rem; }
.service-more h2, .city-more h2 { margin-top: 3rem; }

/* service hero badge (Housecall Pro Superpro) */
.hero-badge { justify-self: center; line-height: 0; }
.hero-badge img { display: block; width: 220px; height: 220px; border-radius: 50%; }
@media (max-width: 860px) { .hero-badge { justify-self: start; } .hero-badge img { width: 160px; height: 160px; } }

/* homepage: why I do this */
.why-quote { font-size: clamp(1.5rem, 3.4vw, 2.4rem); line-height: 1.3; letter-spacing: -0.02em; font-weight: 700; max-width: 880px; margin: 0 0 1.25rem; }
#why { padding: 3.5rem 0; }

/* post hero image above the title (outside .post-content) */
.post > .post-img, .post > picture > .post-img { display: block; width: 100%; max-width: 100%; height: auto; margin: 0 0 2rem; border-radius: 6px; }
.post-content picture { display: block; }

/* post: speed table and chart (blog/i-moved-my-wordpress-site-four-ways) */
.post-content .hint { font-size: 0.85rem; color: var(--muted); margin-bottom: 0.3rem; }
@media (min-width: 720px) { .post-content .hint { display: none; } }
.post-content .table-wrap table { border-collapse: collapse; min-width: 40rem; }
.post-content .table-wrap th, .post-content .table-wrap td { white-space: nowrap; padding: 0.5rem 0.8rem; border-bottom: 1px solid var(--border); text-align: left; }
.post-content .table-wrap th:first-child, .post-content .table-wrap td:first-child { position: sticky; left: 0; background: var(--bg); }
.post-content figure.chart { margin: 1.5rem 0; max-width: 30rem; }
.post-content figure.chart figcaption { font-size: 0.9rem; color: var(--muted); margin-bottom: 0.6rem; }
.post-content figure.chart svg { width: 100%; height: auto; display: block; }

/* academy: courses and lessons (page types course and lesson) */
.academy { padding-block: 6rem 4rem; }
.academy .crumbs { font-size: 0.9rem; color: var(--muted); margin: 0 0 1rem; }
.academy .eyebrow { margin: 0 0 0.5rem; }
.academy h1 { text-wrap: balance; margin: 0 0 1.5rem; }
.academy .course-img { display: block; width: 100%; max-width: 100%; height: auto; max-height: 22rem; object-fit: cover; border-radius: var(--radius, 8px); margin: 0 0 2rem; }
.academy .lesson img { display: block; max-width: 100%; height: auto; margin: 1.5rem 0; border-radius: 6px; }
.academy .lesson pre { overflow-x: auto; background: var(--bg); border: 1px solid var(--border); border-radius: 8px; padding: 1rem; font-size: 0.9rem; line-height: 1.5; }
.academy .lesson :not(pre) > code { overflow-wrap: anywhere; }
.academy .lesson table, .academy .lesson figure { max-width: 100%; overflow-x: auto; display: block; }
.academy .syllabus { margin: 0 0 1.5rem; padding-left: 1.6rem; }
.academy .syllabus li { margin: 0; }
.academy .syllabus a { display: block; padding: 0.75rem 0; }
.academy ul, .academy ol { margin: 0 0 1.25rem; }
.academy li { margin-bottom: 0.35rem; }
.academy .lesson h2, .academy .lesson h3, .academy .lesson h4 { margin-top: 2rem; margin-bottom: 0.6rem; }
.academy .video-link a { display: inline-block; padding: 0.75rem 0; font-weight: 600; }
.academy h2 { margin-top: 2.5rem; font-size: clamp(1.4rem, 3vw, 1.9rem); }
.academy h3 { font-size: clamp(1.15rem, 2.4vw, 1.4rem); }
.academy h1, .academy h2, .academy h3, .academy p, .academy li { overflow-wrap: anywhere; }
.academy .lesson code, .academy .course code { overflow-wrap: anywhere; white-space: pre-wrap; }
.academy .lesson pre code { white-space: pre; overflow-wrap: normal; }
.recipe { padding-block: 6rem 4rem; }
.recipe .crumbs { font-size: 0.9rem; color: var(--muted); margin: 0 0 1rem; }
.recipe .eyebrow { margin: 0 0 0.5rem; }
.recipe h1 { text-wrap: balance; margin: 0 0 1.5rem; }
.recipe img { display: block; max-width: 100%; height: auto; margin: 1.5rem 0; border-radius: 6px; }
.recipe pre { overflow-x: auto; background: var(--bg); border: 1px solid var(--border); border-radius: 8px; padding: 1rem; font-size: 0.9rem; line-height: 1.5; }
.recipe :not(pre) > code { overflow-wrap: anywhere; }
.recipe table, .recipe figure { max-width: 100%; overflow-x: auto; display: block; }
.recipe ul, .recipe ol { margin: 0 0 1.25rem; padding-left: 1.4rem; }
.recipe li { margin-bottom: 0.35rem; }
.recipe h2, .recipe h3, .recipe h4 { margin-top: 2rem; margin-bottom: 0.6rem; }
.recipe h2 { margin-top: 2.5rem; font-size: clamp(1.4rem, 3vw, 1.9rem); }
.recipe h3 { font-size: clamp(1.15rem, 2.4vw, 1.4rem); }
.recipe h1, .recipe h2, .recipe h3, .recipe p, .recipe li { overflow-wrap: anywhere; }

/* recipes: the AI runbooks (page type recipe) */
.recipe .lead { margin: 0 0 1.25rem; }
.recipe-hub { padding-block: 6rem 4rem; }
.recipe pre, .recipe pre code { white-space: pre-wrap; overflow-wrap: anywhere; }
.recipe td code { overflow-wrap: break-word; }
.recipe .recipe-meta { display: flex; flex-wrap: wrap; gap: 0.4rem 1.5rem; list-style: none; padding: 0; margin: 0 0 2rem; font-size: 0.95rem; color: var(--muted); }
.recipe .recipe-meta li { margin: 0; }
.recipe hr { border: 0; border-top: 1px solid var(--border); margin: 2.5rem 0; }
.recipe .callout { border-left: 4px solid var(--accent); background: var(--surface); border-radius: 0 8px 8px 0; padding: 0.9rem 1.1rem; margin: 1.5rem 0; }
.recipe .callout.gotcha { border-left-color: #d97706; }
.recipe .recipe-footer { margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--border); }
.recipe table { border-collapse: collapse; font-size: 0.95rem; }
.recipe th, .recipe td { padding: 0.55rem 0.8rem; border-bottom: 1px solid var(--border); text-align: left; vertical-align: top; }
.lesson-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin: 3rem 0 0; max-width: var(--col, 720px); }
.lesson-nav a { display: block; padding: 1rem 1.2rem; border: 1px solid var(--border); border-radius: 10px; text-decoration: none; color: inherit; }
.lesson-nav a:hover { border-color: currentColor; }
.lesson-nav a span { display: block; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); }
.lesson-nav .next { text-align: right; grid-column: 2; }
@media (max-width: 600px) { .lesson-nav { grid-template-columns: 1fr; } .lesson-nav .next { grid-column: 1; text-align: left; } }
@media (max-width: 480px) { .recipe table { display: table; width: 100%; table-layout: fixed; font-size: 0.8rem; } .recipe th, .recipe td { padding: 0.45rem 0.4rem; overflow-wrap: anywhere; } .recipe td code { font-size: 0.72rem; } }


/* page videos: one per service, city and hub page, under the intro (_includes/page-video.html) */
.page-video { padding-block: 2.5rem 0; }
.city-body > .page-video { padding-block: 3rem 4rem; }
.page-video .video-facade::after { left: auto; top: auto; right: 1.25rem; bottom: 1.25rem; width: 72px; height: 72px; margin: 0; background-color: rgba(11, 13, 16, 0.62); background-size: 36px; border: 3px solid #fff; }
.wrap .page-video { padding-inline: 0; }
.page-video .video-facade-box { max-width: 56rem; }
@media (max-width: 600px) { .page-video .video-facade::after { width: 48px; height: 48px; right: 0.6rem; top: 0.6rem; bottom: auto; left: auto; background-size: 24px; border-width: 2px; } }


/* meal planner (page type planner) */
.meals { padding-block: 6rem 4rem; }
.meals .eyebrow { margin: 0 0 0.5rem; }
.meals h1 { text-wrap: balance; margin: 0 0 1.25rem; }
.meals h2 { margin-top: 3rem; font-size: clamp(1.4rem, 3vw, 1.9rem); }
.meals h3 { font-size: clamp(1.1rem, 2.2vw, 1.35rem); }
.meals h4 { margin: 1rem 0 0.4rem; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); }
.mp-status { min-height: 1.5rem; margin: 0; color: var(--accent); font-weight: 600; }
.mp-help { color: var(--muted); max-width: var(--col, 720px); }
.mp-week { display: grid; grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); gap: 1rem; }
.mp-day { border: 1px solid var(--border); border-radius: 12px; background: var(--surface); padding: 1rem; display: grid; gap: 0.6rem; align-content: start; }
.mp-day.mp-over { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent); }
.mp-day h3 { margin: 0; }
.mp-day-meals { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.4rem; }
.mp-day-meals li { display: flex; justify-content: space-between; align-items: flex-start; gap: 0.5rem; margin: 0; }
.mp-x { background: none; border: 0; color: var(--muted); text-decoration: underline; cursor: pointer; min-height: 44px; padding: 0 0.4rem; font: inherit; font-size: 0.85rem; }
.mp-add, .mp-own, .mp-note, .mp-move, #mp-extra, #mp-pick { width: 100%; min-height: 44px; padding: 0.5rem 0.7rem; border: 1px solid var(--border); border-radius: 8px; background: var(--bg); color: inherit; font: inherit; }
.mp-tools { display: flex; flex-wrap: wrap; gap: 0.6rem; margin: 0 0 1.25rem; }
.mp-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(18rem, 1fr)); gap: 1rem; }
.mp-store { border: 1px solid var(--border); border-radius: 12px; background: var(--surface); padding: 1rem 1.1rem; }
.mp-store h3 { margin: 0 0 0.6rem; }
.mp-items { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.5rem; }
.mp-items li { display: grid; grid-template-columns: 1fr auto; gap: 0.5rem; align-items: center; margin: 0; }
.mp-items label { display: grid; grid-template-columns: auto 1fr; gap: 0 0.7rem; align-items: center; min-height: 44px; cursor: pointer; }
.mp-items input[type="checkbox"] { width: 1.5rem; height: 1.5rem; grid-row: 1 / span 2; margin: 0; }
.mp-items small { color: var(--muted); grid-column: 2; display: block; line-height: 1.3; }
.mp-items .mp-move { width: auto; max-width: 8.5rem; min-height: 44px; font-size: 0.85rem; }
.mp-done label span { text-decoration: line-through; color: var(--muted); }
.mp-empty { color: var(--muted); margin: 0; }
.mp-extra { margin: 1.25rem 0 0; max-width: 28rem; display: grid; gap: 0.4rem; }
.mp-extra-row { display: flex; gap: 0.6rem; }
.mp-pickrow { display: flex; align-items: center; gap: 0.6rem; max-width: 20rem; }
.mp-pickrow select { flex: 1; }
.mp-meals { margin-top: 1rem; }
.mp-meal { border: 1px solid var(--border); border-radius: 12px; background: var(--surface); padding: 1.1rem 1.2rem; display: grid; gap: 0.4rem; align-content: start; list-style: none; }
.mp-meal h3, .mp-meal p, .mp-meal ul { margin: 0; }
.mp-meal ul { padding-left: 1.2rem; display: grid; gap: 0.2rem; }
.mp-meal li { list-style: disc; }
.mp-kind { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--accent); font-weight: 700; }
.mp-glance { color: var(--muted); }
.mp-meal .btn { justify-self: start; margin-top: 0.4rem; }
@media print {
  .site-nav, footer, .mp-help, .mp-tools, .mp-extra, .mp-pickrow, .mp-meals, #meals, .mp-status, .mp-move, .mp-x, .mp-add, .mp-own, .eyebrow, .lead, .hub-note, canvas, .starfield { display: none !important; }
  body { background: #fff; color: #000; }
  .meals { padding: 0; }
  .mp-store, .mp-day { border-color: #999; background: #fff; break-inside: avoid; }
  .mp-note { border: 0; padding: 0; min-height: 0; }
  .mp-list { grid-template-columns: 1fr 1fr; }
  .mp-store, .mp-day { color: #000; }
  .mp-items small, .mp-day-meals li { color: #333; }
  .mp-items li { grid-template-columns: 1fr; }
  .mp-items input[type="checkbox"] { width: 1rem; height: 1rem; }
  .mp-day input, .mp-day select { background: none; color: #000; }
  .mp-note:placeholder-shown { display: none; }
  .mp-day input { outline: none; }
}
.consulting li a, .consulting td a { text-decoration: underline; text-underline-offset: 0.2em; }
.service p a:not(.btn), .service li a:not(.link-card), .hub p a:not(.btn), .hub li a:not(.link-card) { text-decoration: underline; text-underline-offset: 0.2em; } /* links inside running text must not rely on colour alone (axe link-in-text-block) */

/* city pages: one credited place photo in the first body section (_layouts/city.html) */
.city-photo { margin: 1.5rem 0 0; }
.city-photo img { display: block; width: 100%; max-width: 100%; height: auto; border-radius: 10px; }
.city-photo figcaption { margin: 0.5rem 0 1.5rem; font-size: 0.85rem; color: var(--muted); }

/* service pages: art and real screenshots between sections (_layouts/service.html, data: figures) */
.service-fig { margin: 2.5rem auto; }
.service-fig img { display: block; width: 100%; max-width: var(--col, 720px); height: auto; border-radius: 10px; border: 1px solid var(--border); }
.service-fig figcaption { margin-top: 0.5rem; font-size: 0.85rem; color: var(--muted); }
