/* ==========================================================================
   J&L Vision Homes — Models page (The J&L Collection)
   --------------------------------------------------------------------------
   Scoped stylesheet. EVERY selector below is namespaced `.mdl` so this file
   cannot affect any other page. Loaded AFTER assets/app.css, which still
   supplies the approved header, nav, logo lockup and footer.

   Palette is inherited from the approved brand direction:
   PALETTE — v8 coastal light (2026-08-07)
     clean white ......... #ffffff
     warm ivory .......... #f7f4ed
     linen / soft sand ... #f0e9de
     pale coastal blue ... #e8f0f3
     coastal blue ........ #3d7898   <- main brand (fills, graphics)
     coastal blue ink .... #376b88   <- the same blue, for small text
     deep blue ........... #193746   <- closing CTA and headings only
     champagne gold ...... #b89a63  #8a6f3d  #d9c49a   <- hairlines only
     charcoal body text .. #303538
     warm gray borders ... rgba(48,53,56,.13)
   ========================================================================== */

.mdl {
  --mdl-ivory: #ffffff;
  --mdl-ivory-2: #eef7fd;
  --mdl-sand: #eef7fd;
  --mdl-coast: #eef7fd;
  --mdl-white: #ffffff;
  --mdl-tint: #dceefb;
  --mdl-navy: #0d315c;
  --mdl-navy-2: #0085e5;
  --mdl-blue: #075ccb;
  --mdl-blue-deep: #075ccb;
  --mdl-elec: #0085e5;
  --mdl-gold: #c69b55;
  --mdl-gold-deep: #8a6a30;
  --mdl-gold-lt: #e0c089;
  --mdl-text: #202a33;
  --mdl-text-2: #48555f;
  --mdl-text-3: #55636e;
  --mdl-line: rgba(7, 92, 203, 0.22);
  --mdl-line-soft: rgba(7, 92, 203, 0.11);
  --mdl-serif: "Newsreader", "Iowan Old Style", Georgia, "Times New Roman", serif;
  --mdl-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --mdl-gutter: clamp(20px, 5vw, 72px);
  --mdl-maxw: 1400px;
  --mdl-ease: cubic-bezier(0.16, 1, 0.3, 1);

  background: var(--mdl-ivory);
  color: var(--mdl-text);
  font-family: var(--mdl-sans);
}

.mdl__wrap {
  width: 100%;
  max-width: var(--mdl-maxw);
  margin-inline: auto;
  padding-inline: var(--mdl-gutter);
}

/* Shared type ------------------------------------------------------------ */

.mdl__eyebrow {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--mdl-gold-deep);
  margin: 0;
}

.mdl__eyebrow--light { color: var(--mdl-gold-lt); }

.mdl__rule {
  width: 64px;
  height: 1px;
  background: var(--mdl-gold);
  border: 0;
  margin: 22px 0 0;
}

.mdl__h2 {
  font-family: var(--mdl-serif);
  font-weight: 300;
  font-size: clamp(1.9rem, 3.4vw, 3rem);
  line-height: 1.1;
  letter-spacing: -0.015em;
  text-wrap: balance;
  margin: 0;
}

/* ==========================================================================
   1 · Introduction
   ========================================================================== */

.mdl-intro {
  padding-block: clamp(48px, 7vw, 104px) clamp(32px, 4vw, 56px);
  position: relative;
}

/* Fine drafting detail: a hairline grid fading out behind the intro. */
.mdl-intro::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 100%;
  background-image:
    linear-gradient(to right, rgba(183, 154, 91, 0.12) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(183, 154, 91, 0.12) 1px, transparent 1px);
  background-size: 96px 96px;
  -webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.5), transparent 72%);
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.5), transparent 72%);
  pointer-events: none;
}

.mdl-intro__inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(32px, 5vw, 88px);
  align-items: end;
}

.mdl-intro__title {
  font-family: var(--mdl-serif);
  font-weight: 300;
  font-size: clamp(2.3rem, 4.6vw, 4.05rem);
  line-height: 1.04;
  letter-spacing: -0.022em;
  text-wrap: balance;
  margin: 18px 0 0;
  color: var(--mdl-navy);
}

.mdl-intro__lede {
  font-size: clamp(1.02rem, 1.15vw, 1.16rem);
  line-height: 1.62;
  color: var(--mdl-text-2);
  max-width: 46ch;
  margin: 0;
}

.mdl-intro__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 30px;
  margin: 30px 0 0;
  padding-top: 22px;
  border-top: 1px solid var(--mdl-line);
  list-style: none;
}

.mdl-intro__meta li {
  font-size: 0.76rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--mdl-text-3);
}

.mdl-intro__meta b {
  display: block;
  font-family: var(--mdl-serif);
  font-size: 1.5rem;
  font-weight: 400;
  letter-spacing: normal;
  text-transform: none;
  color: var(--mdl-navy);
  margin-bottom: 2px;
}

/* Wide editorial image beneath the introduction. */
.mdl-intro__figure {
  position: relative;
  margin: clamp(34px, 4.5vw, 62px) 0 0;
}

.mdl-intro__figure img {
  display: block;
  width: 100%;
  height: clamp(240px, 34vw, 460px);
  object-fit: cover;
  object-position: center 62%;
}

.mdl-intro__figure figcaption {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  margin-top: 12px;
  font-size: 0.76rem;
  color: var(--mdl-text-3);
}

/* ==========================================================================
   2 · Filter row
   ========================================================================== */

.mdl-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 4px;
  padding-block: clamp(30px, 3.6vw, 48px) 6px;
  border-bottom: 1px solid var(--mdl-line);
}

.mdl-filters__label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--mdl-text-3);
  margin-right: 20px;
}

.mdl-filter {
  appearance: none;
  background: none;
  border: 0;
  border-bottom: 2px solid transparent;
  padding: 8px 16px 12px;
  font: inherit;
  font-size: 0.9rem;
  color: var(--mdl-text-2);
  cursor: pointer;
  transition: color 0.25s var(--mdl-ease), border-color 0.25s var(--mdl-ease);
}

.mdl-filter:hover { color: var(--mdl-navy); }

.mdl-filter[aria-pressed="true"] {
  color: var(--mdl-navy);
  font-weight: 600;
  border-bottom-color: var(--mdl-gold);
}

.mdl-filters__count {
  margin-left: auto;
  font-size: 0.8rem;
  color: var(--mdl-text-3);
  padding-bottom: 12px;
}

/* ==========================================================================
   3 · The collection grid
   ========================================================================== */

.mdl-collection {
  padding-block: clamp(40px, 5vw, 72px) clamp(56px, 7vw, 112px);
}

.mdl-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(34px, 4vw, 68px) clamp(28px, 3.4vw, 56px);
  margin: 0;
  padding: 0;
  list-style: none;
}

.mdl-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--mdl-line-soft);
  border-radius: 2px;
  overflow: hidden;
  transition: border-color 0.4s var(--mdl-ease);
}

.mdl-card:hover { border-color: var(--mdl-line); }

.mdl-card[hidden] { display: none; }

/* --- figure ------------------------------------------------------------- */

.mdl-card__fig {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--mdl-ivory-2);
}

.mdl-card__fig img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: scale(1.001);
  transition: transform 0.9s var(--mdl-ease);
}

.mdl-card:hover .mdl-card__fig img { transform: scale(1.03); }

/* Architectural placeholder — used where no finished photograph exists yet. */
.mdl-card__plan {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background:
    linear-gradient(to bottom, #fbf8f2, #f4efe5);
}

.mdl-card__plan::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(183, 154, 91, 0.14) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(183, 154, 91, 0.14) 1px, transparent 1px);
  background-size: 34px 34px;
}

/* Drawing width scales with the model's VERIFIED living area, so the six
   placeholders read as a set of related elevations rather than one image
   repeated. The proportion is derived from real data — it asserts nothing
   about storeys, roofline or elevation style. Set per card via --plan-w. */
.mdl-card__plan svg {
  position: relative;
  width: min(var(--plan-w, 64%), 320px);
  height: auto;
  color: var(--mdl-gold);
  opacity: 0.85;
}

.mdl-card__flag {
  position: absolute;
  left: 0;
  bottom: 0;
  background: rgba(252, 251, 249, 0.94);
  border-top: 1px solid rgba(183, 154, 91, 0.4);
  border-right: 1px solid rgba(183, 154, 91, 0.4);
  padding: 7px 14px;
  font-size: 0.66rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--mdl-gold-deep);
}

.mdl-card__status {
  position: absolute;
  top: 0;
  right: 0;
  background: rgba(12, 28, 41, 0.9);
  color: #f3efe9;
  padding: 7px 14px;
  font-size: 0.64rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

/* --- body --------------------------------------------------------------- */

.mdl-card__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: clamp(24px, 2.4vw, 36px) clamp(22px, 2.2vw, 34px) clamp(24px, 2.4vw, 32px);
}

.mdl-card__num {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  color: var(--mdl-gold);
  margin-bottom: 10px;
}

.mdl-card__name {
  font-family: var(--mdl-serif);
  font-weight: 300;
  font-size: clamp(1.6rem, 2.1vw, 2.15rem);
  line-height: 1.12;
  letter-spacing: -0.015em;
  color: var(--mdl-navy);
  margin: 0;
}

/* Fine gold line that extends on hover. */
.mdl-card__line {
  width: 28px;
  height: 1px;
  background: var(--mdl-gold);
  margin: 16px 0 0;
  transition: width 0.55s var(--mdl-ease);
}

.mdl-card:hover .mdl-card__line { width: 68px; }

.mdl-card__desc {
  font-size: 0.94rem;
  line-height: 1.6;
  color: var(--mdl-text-2);
  margin: 16px 0 0;
}

/* --- specifications ----------------------------------------------------- */

.mdl-specs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 2px 0;
  margin: 26px 0 0;
  padding: 20px 0 0;
  border-top: 1px solid var(--mdl-line-soft);
}

.mdl-specs > div { min-width: 0; }

.mdl-specs dt {
  font-size: 0.66rem;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--mdl-text-3);
  margin-bottom: 5px;
}

.mdl-specs dd {
  font-family: var(--mdl-serif);
  font-size: 1.22rem;
  font-weight: 400;
  color: var(--mdl-navy);
  margin: 0;
  white-space: nowrap;
}

.mdl-specs dd small {
  font-family: var(--mdl-sans);
  font-size: 0.7rem;
  color: var(--mdl-text-3);
}

/* --- actions ------------------------------------------------------------ */

.mdl-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: auto;
  padding-top: 26px;
}

.mdl-btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 12px 20px;
  border-radius: 2px;
  font-size: 0.83rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background 0.3s var(--mdl-ease), color 0.3s var(--mdl-ease),
    border-color 0.3s var(--mdl-ease);
}

.mdl-btn__arrow { transition: transform 0.4s var(--mdl-ease); }

.mdl-btn:hover .mdl-btn__arrow { transform: translateX(4px); }

.mdl-btn--primary {
  background: var(--mdl-navy);
  color: #fff;
}

.mdl-btn--primary:hover { background: var(--mdl-blue-deep); }

.mdl-btn--ghost {
  border-color: var(--mdl-line);
  color: var(--mdl-text);
  background: transparent;
}

.mdl-btn--ghost:hover {
  border-color: var(--mdl-gold);
  color: var(--mdl-gold-deep);
}

.mdl-btn--light {
  background: #fff;
  color: var(--mdl-navy);
}

.mdl-btn--light:hover { background: var(--mdl-gold-lt); }

.mdl-btn--outline-light {
  border-color: rgba(243, 239, 233, 0.35);
  color: #f3efe9;
}

.mdl-btn--outline-light:hover {
  border-color: var(--mdl-gold-lt);
  color: var(--mdl-gold-lt);
}

.mdl-collection__note {
  margin: clamp(34px, 4vw, 54px) 0 0;
  padding-top: 22px;
  border-top: 1px solid var(--mdl-line);
  font-size: 0.82rem;
  line-height: 1.65;
  color: var(--mdl-text-3);
  max-width: 78ch;
}

/* ==========================================================================
   4 · Compare the Collection
   ========================================================================== */

.mdl-compare {
  background: var(--mdl-ivory-2);
  border-top: 1px solid var(--mdl-line-soft);
  padding-block: clamp(56px, 7vw, 110px);
}

.mdl-compare__head { margin-bottom: clamp(30px, 3.6vw, 48px); }

.mdl-compare__head .mdl__h2 { margin-top: 14px; color: var(--mdl-navy); }

.mdl-compare__scroll { overflow-x: auto; }

.mdl-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.94rem;
}

.mdl-table caption {
  text-align: left;
  font-size: 0.82rem;
  color: var(--mdl-text-3);
  padding-bottom: 16px;
}

.mdl-table th,
.mdl-table td {
  text-align: left;
  padding: 17px 20px 17px 0;
  border-bottom: 1px solid var(--mdl-line);
  vertical-align: middle;
}

.mdl-table thead th {
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--mdl-text-3);
  border-bottom-color: var(--mdl-gold);
  padding-bottom: 13px;
}

.mdl-table tbody th {
  font-family: var(--mdl-serif);
  font-size: 1.2rem;
  font-weight: 400;
  color: var(--mdl-navy);
  white-space: nowrap;
}

.mdl-table tbody th span {
  display: block;
  font-family: var(--mdl-sans);
  font-size: 0.66rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--mdl-gold);
  margin-bottom: 3px;
}

.mdl-table tbody tr:hover { background: rgba(255, 255, 255, 0.7); }

.mdl-table td { color: var(--mdl-text-2); }

.mdl-table .mdl-table__sqft {
  font-family: var(--mdl-serif);
  font-size: 1.08rem;
  color: var(--mdl-navy);
}

.mdl-table__link {
  color: var(--mdl-blue-deep);
  text-decoration: none;
  font-size: 0.84rem;
  border-bottom: 1px solid rgba(15, 95, 141, 0.3);
  padding-bottom: 2px;
  white-space: nowrap;
}

.mdl-table__link:hover {
  color: var(--mdl-gold-deep);
  border-bottom-color: var(--mdl-gold);
}

/* Mobile comparison cards (shown under 768px) */
.mdl-compare__cards { display: none; }

.mdl-ccard {
  background: #fff;
  border: 1px solid var(--mdl-line-soft);
  border-radius: 2px;
  padding: 22px;
  margin-bottom: 14px;
}

.mdl-ccard__name {
  font-family: var(--mdl-serif);
  font-size: 1.45rem;
  font-weight: 400;
  color: var(--mdl-navy);
  margin: 4px 0 0;
}

.mdl-ccard__num {
  font-size: 0.66rem;
  letter-spacing: 0.16em;
  color: var(--mdl-gold);
}

.mdl-ccard__rows {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 18px;
  margin: 18px 0 0;
  padding-top: 16px;
  border-top: 1px solid var(--mdl-line-soft);
}

.mdl-ccard__rows dt {
  font-size: 0.66rem;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--mdl-text-3);
  margin-bottom: 4px;
}

.mdl-ccard__rows dd {
  font-family: var(--mdl-serif);
  font-size: 1.16rem;
  color: var(--mdl-navy);
  margin: 0;
}

/* ==========================================================================
   5 · Closing call to action
   ========================================================================== */

.mdl-cta {
  position: relative;
  background: var(--mdl-navy);
  color: #f3efe9;
  padding-block: clamp(64px, 8vw, 128px);
  overflow: hidden;
}

.mdl-cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(183, 154, 91, 0.16) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(183, 154, 91, 0.16) 1px, transparent 1px);
  background-size: 110px 110px;
  -webkit-mask-image: radial-gradient(ellipse at 78% 12%, #000, transparent 66%);
  mask-image: radial-gradient(ellipse at 78% 12%, #000, transparent 66%);
  pointer-events: none;
}

.mdl-cta__inner {
  position: relative;
  max-width: 780px;
}

.mdl-cta__title {
  font-family: var(--mdl-serif);
  font-weight: 300;
  font-size: clamp(2rem, 3.9vw, 3.35rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
  text-wrap: balance;
  margin: 16px 0 0;
  color: #fdfbf7;
}

.mdl-cta__body {
  font-size: clamp(1rem, 1.1vw, 1.12rem);
  line-height: 1.65;
  color: #a9b6c1;
  max-width: 56ch;
  margin: 22px 0 0;
}

.mdl-cta__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 36px;
}

/* ==========================================================================
   Reveal on scroll
   ========================================================================== */

.mdl-reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.8s var(--mdl-ease), transform 0.8s var(--mdl-ease);
}

.mdl-reveal.is-in {
  opacity: 1;
  transform: none;
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 1279px) {
  .mdl-grid { gap: 34px 30px; }
  .mdl-card__body { padding: 26px 24px 26px; }
}

@media (max-width: 1023px) {
  .mdl-intro__inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 26px;
    align-items: start;
  }
  .mdl-intro__lede { max-width: 60ch; }
  .mdl-specs { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 0; }
}

@media (max-width: 767px) {
  .mdl-grid { grid-template-columns: minmax(0, 1fr); gap: 30px; }

  .mdl-filters { gap: 4px 0; }
  .mdl-filters__label { width: 100%; margin: 0 0 8px; }
  .mdl-filters__count { display: none; }
  .mdl-filter { padding: 8px 13px 11px; font-size: 0.86rem; }

  .mdl-card__fig { aspect-ratio: 4 / 3; }
  .mdl-card__actions { gap: 8px; }
  .mdl-btn { padding: 13px 18px; }

  /* Table → comparison cards */
  .mdl-compare__scroll { display: none; }
  .mdl-compare__cards { display: block; }

  .mdl-cta__actions .mdl-btn { flex: 1 1 100%; justify-content: center; }
}

@media (max-width: 389px) {
  .mdl-specs { gap: 16px 0; }
  .mdl-specs dd { font-size: 1.1rem; }
  .mdl-card__actions .mdl-btn { flex: 1 1 100%; justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  .mdl-reveal { opacity: 1; transform: none; transition: none; }
  .mdl-card__fig img,
  .mdl-card__line,
  .mdl-btn__arrow { transition: none; }
  .mdl-card:hover .mdl-card__fig img { transform: none; }
}

@media print {
  .mdl-cta, .mdl-filters { display: none; }
  .mdl-card { break-inside: avoid; border-color: #ccc; }
}

/* ==========================================================================
   6 · v9 J&L BRAND LANGUAGE
   --------------------------------------------------------------------------
   The token block above carries the surfaces. This section carries the part
   that actually makes the page look like J&L rather than a recoloured
   template: blue rails on the cards, blue information components, blue icon
   containers, gold pinstripes and richer blue reveal states.

   Nothing structural. The six-card grid, its stagger, its directional
   assembly animation and all copy are untouched.
   ========================================================================== */

/* ---- Bands -------------------------------------------------------------
   Predominantly pure white, so the homes and the Florida photography supply
   the colour. One soft-blue band for the comparison, one saturated J&L blue
   for the close. */
.mdl { background: #ffffff; }
.mdl-intro { background: #ffffff; }
.mdl-collection { background: #ffffff; }
.mdl-compare { background: var(--mdl-ivory-2); }

/* ---- Typography --------------------------------------------------------- */
.mdl__h1, .mdl__h2, .mdl__h3, .mdl-card__name, .mdl-ccard__name { color: var(--mdl-navy); }
.mdl__eyebrow {
  color: var(--mdl-blue);
  display: inline-flex;
  align-items: center;
  gap: 9px;
}
.mdl__eyebrow::before {
  content: "";
  width: 14px;
  height: 3px;
  flex: 0 0 auto;
  background: var(--mdl-blue);
}
.mdl-cta .mdl__eyebrow { color: #fff; }
.mdl-cta .mdl__eyebrow::before { background: #fff; }

/* The section rule becomes a blue rail with a gold pinstripe under it —
   the same device the rest of the site uses at every section head. */
.mdl__rule {
  position: relative;
  width: 74px;
  height: 4px;
  background: var(--mdl-blue);
}
.mdl__rule::after {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 42px;
  height: 1px;
  background: var(--mdl-gold);
}

/* ---- Intro figure: blue mat, base rail, corner bracket ------------------ */
.mdl-intro__figure { position: relative; isolation: isolate; }
.mdl-intro__figure::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  box-shadow:
    inset 0 0 0 1px rgba(7, 92, 203, 0.2),
    inset 0 -5px 0 0 var(--mdl-blue);
}
.mdl-intro__figure::before {
  content: "";
  position: absolute;
  top: -1px;
  left: -1px;
  width: 34px;
  height: 34px;
  z-index: 2;
  border-top: 4px solid var(--mdl-elec);
  border-left: 4px solid var(--mdl-elec);
  pointer-events: none;
}
.mdl-intro__figure img { filter: saturate(1.12) contrast(1.03); }

/* ---- Filter row --------------------------------------------------------- */
.mdl-filter { color: var(--mdl-text-2); }
.mdl-filter:hover { color: var(--mdl-blue); }
.mdl-filter[aria-pressed="true"],
.mdl-filter.is-active {
  color: var(--mdl-blue);
  border-bottom-color: var(--mdl-blue);
}

/* ---- The six cards -----------------------------------------------------
   A blue rail across the head of every card, a soft-blue information strip
   for the specs, and a blue-filled action footer. This is the component
   that carries the page. */
.mdl-card {
  background: #fff;
  border: 1px solid var(--mdl-line-soft);
  border-top: 3px solid var(--mdl-blue);
  box-shadow: 0 1px 3px rgba(7, 92, 203, 0.05);
  /* .mdl-card IS the .mdl-reveal element. Its entrance animates opacity
     and transform over 0.8s, so both MUST stay in this transition list —
     an earlier version of this rule dropped opacity and the six-card
     entrance snapped instead of fading. Hover therefore does its work
     with the border and the shadow only; adding a transform lift here
     would either fight the entrance or run at 0.8s and feel sluggish. */
  transition:
    opacity 0.8s var(--mdl-ease),
    transform 0.8s var(--mdl-ease),
    border-color 0.4s var(--mdl-ease),
    box-shadow 0.45s var(--mdl-ease);
}
.mdl-card:hover {
  border-color: var(--mdl-line);
  border-top-color: var(--mdl-elec);
  box-shadow: 0 30px 56px -34px rgba(7, 92, 203, 0.45);
}

.mdl-card__fig { background: var(--mdl-tint); position: relative; }
.mdl-card__fig img { filter: saturate(1.12) contrast(1.03); }
.mdl-card__fig::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  box-shadow: inset 0 0 0 1px rgba(7, 92, 203, 0.14);
}

/* The architectural placeholder becomes a blueprint rather than a warm
   sketch — blue ground, blue grid, blue linework. */
.mdl-card__plan { background: linear-gradient(to bottom, #f4faff, var(--mdl-tint)); }
.mdl-card__plan::before {
  background-image:
    linear-gradient(to right, rgba(7, 92, 203, 0.15) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(7, 92, 203, 0.15) 1px, transparent 1px);
}
.mdl-card__plan svg { color: var(--mdl-blue); opacity: 0.72; }

.mdl-card__flag {
  background: #ffffff;
  border-top: 1px solid rgba(7, 92, 203, 0.28);
  border-right: 1px solid rgba(7, 92, 203, 0.28);
  color: var(--mdl-blue);
}
.mdl-card__status { background: var(--mdl-blue); color: #fff; }

.mdl-card__num { color: var(--mdl-blue); }
.mdl-card__line { background: var(--mdl-gold); }
.mdl-card:hover .mdl-card__line { width: 68px; background: var(--mdl-elec); }

/* Specs read as a blue information component, not a text list. */
.mdl-specs {
  background: var(--mdl-ivory-2);
  border-top: 1px solid rgba(7, 92, 203, 0.16);
  border-bottom: 1px solid rgba(7, 92, 203, 0.16);
}
.mdl-specs dt { color: var(--mdl-blue); }
.mdl-specs dd { color: var(--mdl-navy); }

.mdl-btn--primary { background: var(--mdl-blue); color: #fff; border-color: var(--mdl-blue); }
.mdl-btn--primary:hover { background: var(--mdl-navy); border-color: var(--mdl-navy); }
.mdl-btn--ghost { border-color: var(--mdl-line); color: var(--mdl-blue); }
.mdl-btn--ghost:hover { background: var(--mdl-blue); color: #fff; border-color: var(--mdl-blue); }
.mdl-btn--light { background: #fff; color: var(--mdl-navy); }
.mdl-btn--light:hover { background: var(--mdl-navy); color: #fff; }

/* ---- Comparison --------------------------------------------------------- */
.mdl-table thead th { color: var(--mdl-blue); border-bottom-color: rgba(7, 92, 203, 0.3); }
.mdl-table caption { color: var(--mdl-text-2); }
.mdl-table tbody tr { border-bottom-color: rgba(7, 92, 203, 0.14); }
.mdl-table tbody tr:hover { background: rgba(255, 255, 255, 0.72); }
.mdl-table td a, .mdl-table a { color: var(--mdl-blue); }
.mdl-ccard {
  background: #fff;
  border: 1px solid var(--mdl-line-soft);
  border-top: 3px solid var(--mdl-blue);
}

/* ---- Closing CTA: vivid J&L blue, gold pinstripe, navy/white pair ------- */
.mdl-cta {
  background: var(--mdl-blue);
  color: #fff;
}
.mdl-cta::before {
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.12) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.12) 1px, transparent 1px);
}
.mdl-cta::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--mdl-gold), rgba(198, 155, 85, 0) 46%);
}
.mdl-cta .mdl__h2, .mdl-cta h2 { color: #fff; }
.mdl-cta p { color: #d6e8fb; }
.mdl-cta .mdl-btn--light { background: #fff; color: var(--mdl-navy); border-color: #fff; }
.mdl-cta .mdl-btn--light:hover { background: var(--mdl-navy); color: #fff; border-color: var(--mdl-navy); }
.mdl-cta .mdl-btn--outline-light { border-color: rgba(255, 255, 255, 0.62); color: #fff; }
.mdl-cta .mdl-btn--outline-light:hover { background: #fff; color: var(--mdl-navy); border-color: #fff; }

/* ---- Gold is never a text colour ---------------------------------------
   These four were still setting type in gold, which is 2.55:1 on white and
   fails AA outright. Gold stays on the card underline, the section
   pinstripe and the CTA hairline — places where it carries no meaning. */
.mdl-table tbody th span,
.mdl-ccard__num { color: var(--mdl-blue); }
.mdl-table__link { color: var(--mdl-blue); border-bottom-color: rgba(7, 92, 203, 0.4); }
.mdl-table__link:hover { color: var(--mdl-navy); border-bottom-color: var(--mdl-navy); }
.mdl-btn--ghost:hover { border-color: var(--mdl-blue); }
.mdl-filter[aria-pressed="true"] { border-bottom-color: var(--mdl-blue); }


/* ==========================================================================
   7 · SUNSET ACCENT — #F4A62A
   --------------------------------------------------------------------------
   These rules exist HERE as well as in the accent layer because models.html
   loads models.css AFTER app.css. At equal specificity the later sheet wins,
   so every .mdl-* accent rule written in app.css was being overridden by this
   file and the models page came out with almost no warmth at all — measured
   at 0.04% of the page before this block was added.

   Tokens are inherited from the accent layer, so tuning --jl-sun there still
   moves these too.
   ========================================================================== */

/* Eyebrow ticks — the warm thread that runs through every section. */
.mdl__eyebrow::before { background: var(--jl-sun); }
.mdl-cta .mdl__eyebrow::before { background: var(--jl-sun); }

/* Statistics. The three headline figures, and the one spec a buyer
   actually compares. The other three specs stay navy so the accent still
   marks a hierarchy rather than colouring the whole block. */
.mdl-intro__meta b { color: var(--jl-sun-ink); }
.mdl-specs > div:last-child dt,
.mdl-specs > div:last-child dd { color: var(--jl-sun-ink); }
.mdl-table__sqft { color: var(--jl-sun-ink); font-weight: 600; }

/* Arrows. */
.mdl-btn--primary .mdl-btn__arrow,
.mdl-btn--primary .btn__arrow,
.mdl-btn--ghost .mdl-btn__arrow,
.mdl-btn--ghost .btn__arrow { color: var(--jl-sun); }
.mdl-btn--ghost:hover .mdl-btn__arrow,
.mdl-btn--ghost:hover .btn__arrow { color: #fff; }

/* The rule under each model name: champagne at rest, sunset once the card
   is live. The two golds handing over is the idea in one component. */
.mdl-card__line { background: var(--mdl-gold); }
.mdl-card:hover .mdl-card__line { background: var(--jl-sun); width: 68px; }

/* Filter row. */
.mdl-filter:hover { color: var(--jl-sun-ink); }
.mdl-filter[aria-pressed="true"],
.mdl-filter.is-active { border-bottom-color: var(--jl-sun); }

/* Card interaction — rail, numeral, status chip and shadow all warm
   together, so the whole card reads as live. */
.mdl-card:hover {
  border-top-color: var(--jl-sun);
  box-shadow:
    0 30px 56px -34px rgba(7, 92, 203, 0.42),
    0 0 0 1px var(--jl-sun-glow);
}
.mdl-card:hover .mdl-card__num { color: var(--jl-sun-ink); }
.mdl-card:hover .mdl-card__status { background: var(--jl-sun); color: var(--jl-sun-on); }

/* Primary CTA states. Navy on the fill, never white — white on #F4A62A is
   2.03:1. */
.mdl-btn--primary:hover,
.mdl-btn--primary:focus-visible {
  background: var(--jl-sun);
  border-color: var(--jl-sun);
  color: var(--jl-sun-on);
}
.mdl-btn--primary:hover .mdl-btn__arrow,
.mdl-btn--primary:hover .btn__arrow { color: var(--jl-sun-on); }

/* The one resting sunset button on the page, on the closing blue band. */
.mdl-cta .mdl-btn--light {
  background: var(--jl-sun);
  border-color: var(--jl-sun);
  color: var(--jl-sun-on);
}
.mdl-cta .mdl-btn--light:hover {
  background: var(--jl-sun-press);
  border-color: var(--jl-sun-press);
  color: var(--jl-sun-on);
}

/* ---- Weight pass — mirrored from the accent layer, since this sheet
   loads after app.css and would otherwise win on these selectors. ---- */
.mdl__rule {
  background:
    linear-gradient(90deg, var(--jl-sun) 0 22px, transparent 22px),
    var(--mdl-blue);
}
.mdl-specs dd { color: var(--jl-sun-ink); }
.mdl-specs dt { color: var(--mdl-blue); }
.mdl-card__status { background: var(--jl-sun); color: var(--jl-sun-on); }
.mdl-card:hover .mdl-card__status { background: var(--jl-sun-press); color: var(--jl-sun-on); }

/* ==========================================================================
   8 · STRUCTURAL WEIGHT PASS — v9.2
   --------------------------------------------------------------------------
   Mirrored from the accent layer. models.css loads AFTER app.css, so these
   selectors have to be restated here or the later sheet wins and the page
   silently keeps the old values.
   ========================================================================== */

/* Editorial numerals. 0.66-0.72rem = small text, so the ink tone on white
   (5.08:1) rather than the accent itself (2.03:1). */
.mdl-card__num,
.mdl-ccard__num { color: var(--jl-sun-ink); }
.mdl-table tbody th span { color: var(--jl-sun-ink); }

/* Two-tone card rail — sunset for the first 22%, then J&L blue. The border
   goes transparent and the rail is painted as a background under it, so the
   3px is still reserved and nothing moves. */
.mdl-card {
  border-top-color: transparent;
  background-color: #fff;
  background-image: linear-gradient(90deg, var(--jl-sun) 0 22%, var(--mdl-blue) 22%);
  background-repeat: no-repeat;
  background-size: 100% 3px;
  background-position: 0 0;
}
.mdl-card:hover {
  border-top-color: transparent;
  background-image: linear-gradient(90deg, var(--jl-sun) 0 42%, var(--mdl-blue) 42%);
}
.mdl-ccard {
  border-top-color: transparent;
  background-color: #fff;
  background-image: linear-gradient(90deg, var(--jl-sun) 0 22%, var(--mdl-blue) 22%);
  background-repeat: no-repeat;
  background-size: 100% 3px;
  background-position: 0 0;
}

/* The oversized warm corner is deliberately NOT used here. It was tried and
   removed: this figure is 1256px wide, so a corner offset 26px outside it
   reads as a tick on the edge rather than as a graphic device. It stays on
   the tall, column-width figures — the Jennifer story photograph and the
   family band — where the arms are comparable to the figure's height. */
