/* Additions to the live site's CSS (src/static/_next/static/chunks/*.css).
 *
 * A few parts of the live site render different markup depending on the
 * screen width (decided in JavaScript there). The static port keeps every
 * variant in the HTML and hides the ones that do not apply:
 *   twl-hide-d  hidden at 1024px and wider   (desktop)
 *   twl-hide-t  hidden from 640px to 1023px  (tablet)
 *   twl-hide-m  hidden below 640px           (mobile)
 */
@media (min-width: 1024px) {
  .twl-hide-d { display: none !important; }
}
@media (min-width: 640px) and (max-width: 1023.98px) {
  .twl-hide-t { display: none !important; }
}
@media (max-width: 639.98px) {
  .twl-hide-m { display: none !important; }
}

/* ---- Brochure content (TWL-5+) ----
 * New sections not present on the old live site. The live CSS is a
 * precompiled Tailwind build, so new layout pieces live here instead of
 * as new utility classes.
 */
.twl-grid { display: grid; gap: 10px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .twl-grid { gap: 15px; grid-template-columns: repeat(var(--twl-cols, 3), minmax(0, 1fr)); } }
@media (min-width: 1536px) { .twl-grid { gap: 20px; } }
.twl-card { background: #fffbf4; padding: 15px 20px; transition: background-color .6s; height: 100%; }
.twl-card:hover { background: color-mix(in srgb, var(--color-primary, #d4a86a) 20%, transparent); }
@media (min-width: 1280px) { .twl-card { padding: 30px 35px; } }
@media (min-width: 1536px) { .twl-card { padding: 40px 45px; } }
.twl-card-title { margin-bottom: 8px; }
@media (min-width: 1280px) { .twl-card-title { margin-bottom: 12px; } }
.twl-mt { margin-top: 20px; }
@media (min-width: 1280px) { .twl-mt { margin-top: 30px; } }
@media (min-width: 1536px) { .twl-mt { margin-top: 40px; } }
.twl-mb { margin-bottom: 15px; }
@media (min-width: 1280px) { .twl-mb { margin-bottom: 20px; } }
@media (min-width: 640px) { .twl-items-start { align-items: flex-start; } }

/* Team cards for people with only a brochure headshot (round crop on
 * black) or no photo yet. Replace with full portraits when available. */
.twl-team-avatar { object-fit: contain; object-position: center 12%; padding: 8% 8% 30%; }
.twl-team-initial { position: absolute; z-index: -2; left: 50%; top: 14%; transform: translateX(-50%);
  width: 62%; aspect-ratio: 1; border-radius: 50%; background: var(--primary, #d4a86a); color: #fff;
  display: flex; align-items: center; justify-content: center; font-size: clamp(40px, 6vw, 90px); }

/* Our Approach page (TWL-7) */
.twl-eyebrow { display: block; font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--primary, #d4a86a); margin-bottom: 6px; font-weight: 500; }
@media (min-width: 1536px) { .twl-eyebrow { font-size: 12px; } }
.twl-num { flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--primary, #d4a86a); color: #fff;
  display: inline-flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 600; }
@media (min-width: 1536px) { .twl-num { width: 36px; height: 36px; font-size: 16px; } }
.twl-row { display: flex; gap: 12px; align-items: flex-start; }
.twl-card-dark { background: #171717; color: #fff; padding: 15px 20px; height: 100%; border: 1px solid #323232; }
@media (min-width: 1280px) { .twl-card-dark { padding: 30px 35px; } }
@media (min-width: 1536px) { .twl-card-dark { padding: 40px 45px; } }
.twl-card-dark .twl-text { color: #d4d4d4; }
.twl-callout { background: #171717; color: #fff; padding: 15px 20px; border-left: 3px solid var(--primary, #d4a86a); }
@media (min-width: 1280px) { .twl-callout { padding: 25px 35px; } }
.twl-steps { counter-reset: step; }
.twl-list { list-style: none; margin: 0; padding: 0; }
.twl-list li { display: flex; gap: 10px; align-items: baseline; padding: 6px 0; border-bottom: 1px solid rgba(255,255,255,.12); }
.twl-list li:last-child { border-bottom: 0; }
.twl-list .twl-k { color: var(--primary, #d4a86a); min-width: 1.2em; font-weight: 600; }
.twl-split { display: grid; gap: 20px; }
@media (min-width: 768px) { .twl-split { grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; } }
.twl-split img { width: 100%; height: auto; display: block; }
.twl-split img.twl-logo-2c, .twl-logo-2c { width: 140px; height: auto; margin-top: 15px; }
@media (min-width: 1536px) { .twl-split img.twl-logo-2c { width: 180px; } }
.twl-note { font-size: 11px; color: #6b6b6b; font-style: italic; }
@media (min-width: 1536px) { .twl-note { font-size: 13px; } }
.twl-pt-0 { padding-top: 0 !important; }

/* TWL-8: portfolio tracker, logo on cream background */
@media (min-width: 640px) { .twl-grid.twl-grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .twl-grid.twl-grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.twl-portfolio-card { display: flex; flex-direction: column; }
.twl-portfolio-card .twl-status { margin: 6px 0 10px; }
.twl-portfolio-card .twl-list { flex: 1; }
.twl-portfolio-card .twl-k { min-width: 3em; }
.twl-outlook { margin-top: 12px; padding-top: 10px; border-top: 1px solid rgba(255,255,255,.18); color: #d4d4d4; font-style: italic; }
.twl-logo-2c { mix-blend-mode: multiply; }
