/* PHVA v4, real estate media niche page (virtual-assistant-for/real-estate-media.html).
   Loaded after v4.css and v4-g4.css. Every class is md- prefixed. Never touches [hidden]. */

/* ---------- hero ---------- */
.md-hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .92fr); gap: clamp(32px, 6vw, 84px); align-items: center; }
.md-hero-copy { min-width: 0; }
.md-ctas { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; margin-top: 30px; }
.md-ctas .btn { min-height: 48px; }
.md-tap { display: inline-flex; align-items: center; min-height: 44px; }

/* the handoff note: canary paper, blue ruling, red margin, pen ink */
.md-desk { position: relative; margin: 0; padding: 22px 0 8px; min-width: 0; }
.md-under { position: absolute; inset: 32px -8px 34px 12px; background: var(--note-2); border-radius: var(--r); transform: rotate(2.4deg); box-shadow: var(--shadow); }
.md-sheet {
  padding: 30px clamp(18px, 3vw, 36px) 22px clamp(42px, 4.6vw, 58px); transform: rotate(-1deg);
  background-image:
    linear-gradient(90deg, transparent calc(clamp(30px, 3.4vw, 42px) - 1px), rgba(217, 83, 76, .55) calc(clamp(30px, 3.4vw, 42px) - 1px), rgba(217, 83, 76, .55) clamp(30px, 3.4vw, 42px), transparent clamp(30px, 3.4vw, 42px)),
    repeating-linear-gradient(180deg, transparent 0 41px, var(--note-rule) 41px 42px);
  background-position: 0 0, 0 22px;
}
.md-sheet-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 14px; }
.md-day { font-size: clamp(2rem, 3.2vw, 2.5rem); line-height: 1; color: var(--note-pen); transform: rotate(-2deg); }
.md-role { font: 700 .76rem/1.3 var(--body); letter-spacing: .06em; text-transform: uppercase; color: var(--note-ink-2); text-align: right; }
.md-lines { list-style: none; margin: 14px 0 0; padding: 0; }
.md-lines li { display: grid; grid-template-columns: 44px 28px minmax(0, 1fr); gap: 8px; align-items: start; padding: 7px 0; font: 400 1.5rem/1.1 var(--pen-font); color: var(--note-ink); }
.md-lines .md-time { font: 700 .8rem/1.9 var(--body); color: var(--note-ink-2); font-variant-numeric: tabular-nums; }
.md-lines .t { min-width: 0; overflow-wrap: anywhere; }
.md-lines b { font-weight: 400; color: var(--note-pen); }
.md-hold .t { text-decoration: underline wavy rgba(35, 64, 200, .45); text-underline-offset: 6px; text-decoration-thickness: 1px; }
.md-flag { margin-top: 4px; padding: 8px 10px !important; margin-left: -10px; background: rgba(217, 83, 76, .16); }
.md-flag b { color: #9c1f18; }
.md-foot { margin: 14px 0 0; padding-top: 10px; border-top: 1.5px dashed rgba(22, 24, 27, .3); font: 700 .86rem/1.45 var(--body); color: var(--note-ink); }
.md-cap { margin: 18px 0 0 14px; font-size: .86rem; color: var(--ink-3); }

/* ---------- the shoot day bar ---------- */
.md-dayline { display: flex; margin: 8px 0 30px; border: 1px solid var(--rule); border-radius: var(--r); background: var(--card); min-height: 64px; transform: none; font-size: inherit; color: inherit; }
.md-day-shoot { flex: 0 0 11%; min-width: 64px; display: grid; place-items: center; background: var(--ink); color: var(--paper); font: 700 .82rem/1 var(--body); letter-spacing: .04em; text-transform: uppercase; border-radius: var(--r) 0 0 var(--r); }
.md-day-rest { flex: 1; display: flex; flex-wrap: wrap; align-items: stretch; }
.md-day-rest i { flex: 1 1 auto; font-style: normal; display: grid; place-items: center; padding: 10px 8px; font: 500 .84rem/1.2 var(--body); color: var(--ink-2); background: var(--paper-2); border-left: 1px dashed var(--field-line); text-align: center; }

/* ---------- the chain ---------- */
.md-chains { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(16px, 3vw, 32px); }
.md-chain { background: var(--card); color: #16181b; border: 1px solid var(--rule); border-radius: var(--r); padding: 24px clamp(18px, 2.4vw, 28px); box-shadow: var(--shadow); }
.md-chain h3 { color: #16181b; font-size: 1.3rem; }
.md-links { list-style: none; margin: 18px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 0; }
.md-links li { position: relative; padding: 8px 12px; margin-right: 14px; font: 600 .86rem/1.2 var(--body); color: #575d65; border: 1.5px dashed #b4b9b1; border-radius: var(--r); }
.md-links li:not(:last-child)::after { content: ""; position: absolute; right: -15px; top: 50%; width: 14px; border-top: 1.5px solid #b4b9b1; }
.md-links li.on { color: #16181b; background: var(--note); border: 1.5px solid var(--note-2); }
.md-links li.on.soft { background: repeating-linear-gradient(135deg, var(--note) 0 8px, var(--card) 8px 16px); }
.md-chain-note { margin: 16px 0 0; font: 400 1.5rem/1.1 var(--pen-font); color: #2340c8; }
.md-chain-us { border-color: #2340c8; }

/* ---------- AI split card ---------- */
.md-split { display: grid; grid-template-columns: .8fr 1.2fr; border: 1px solid var(--rule); border-radius: var(--r); overflow: hidden; background: var(--card); color: #16181b; box-shadow: var(--shadow); }
.md-split h3 { color: #16181b; font-size: 1.2rem; margin-bottom: 14px; }
.md-split-tools { padding: 26px clamp(18px, 2.6vw, 32px); background: #eaece7; }
.md-split-tools ul { margin: 0; padding: 0 0 0 1.1em; color: #3c4148; line-height: 1.6; }
.md-split-va { padding: 26px clamp(18px, 2.6vw, 32px); border-left: 1px solid rgba(35,64,200,.35); }
.md-split-va .ticks li { color: #16181b; }
.md-split-foot { grid-column: 1 / -1; margin: 0; padding: 16px clamp(18px, 2.6vw, 32px); font-size: 1.7rem; line-height: 1.1; color: #2340c8; background: var(--note); border-top: 1px solid var(--note-2); }

/* ---------- overnight day bars ---------- */
.md-clocks { display: grid; gap: 26px; align-content: center; min-width: 0; }
.md-clock-k { display: block; font: 700 .78rem/1 var(--body); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 10px; }
.md-track { position: relative; height: 40px; background: var(--paper-2); border: 1px solid var(--rule); border-radius: var(--r); }
.md-work { position: absolute; top: 0; bottom: 0; left: calc(var(--a) / 24 * 100%); width: calc((var(--b) - var(--a)) / 24 * 100%); background: color-mix(in srgb, var(--pen) 22%, transparent); }
.md-work-va { background: var(--note); }
.md-mark { position: absolute; top: 50%; left: calc(var(--t) / 24 * 100%); transform: translate(-50%, -50%); font: 700 .74rem/1.1 var(--body); color: var(--ink); background: var(--card); color: #16181b; border: 1px solid var(--rule); padding: 4px 6px; border-radius: var(--r); white-space: nowrap; }
.md-mark-9 { transform: translate(-30%, -50%); border-color: var(--pen); }
.md-hours { display: flex; justify-content: space-between; margin-top: 6px; font: 500 .74rem/1 var(--body); color: var(--ink-3); }

/* ---------- managed: comparison ---------- */
.md-managed { align-items: start; }
.md-compare { border: 1px solid var(--rule); border-radius: var(--r); background: var(--card); color: #16181b; min-width: 0; }
.md-cmp-row { display: grid; grid-template-columns: 1.1fr 1fr 1fr 1.2fr; }
.md-cmp-row > span { padding: 12px 12px; font-size: .9rem; line-height: 1.35; border-top: 1px solid #d5d8d1; color: #3c4148; }
.md-cmp-row > span:last-child { background: color-mix(in srgb, var(--note) 35%, var(--card)); color: #16181b; }
.md-cmp-row [role="rowheader"] { font-weight: 700; color: #16181b; }
.md-cmp-head > span { border-top: 0; font: 700 .74rem/1.2 var(--body); letter-spacing: .05em; text-transform: uppercase; color: #575d65; }
.md-cmp-head > span:last-child { background: var(--note); color: #16181b; }

/* ---------- final ---------- */
.md-final .md-sheet-done { margin-top: 30px; max-width: 480px; transform: rotate(1deg); }
.md-sheet-done .stamp { flex: none; }
.md-form-col { min-width: 0; }
.md-form-col .fine { margin-top: 14px; }

/* ---------- phones ---------- */
@media (max-width: 900px) {
  .md-hero-grid { grid-template-columns: 1fr; }
  .md-chains, .md-split { grid-template-columns: 1fr; }
  .md-split-va { border-left: 0; border-top: 1px solid rgba(35,64,200,.35); }
}
@media (max-width: 620px) {
  .md-sheet { padding-left: 40px; }
  .md-lines li { grid-template-columns: 38px 26px minmax(0, 1fr); font-size: 1.32rem; gap: 6px; }
  .md-under { inset: 30px -4px 30px 8px; }
  .md-dayline { flex-direction: column; }
  .md-day-shoot { flex: none; min-height: 44px; border-radius: var(--r) var(--r) 0 0; }
  .md-day-rest i { flex: 1 1 33%; border-top: 1px dashed var(--field-line); }
  .md-cmp-row { grid-template-columns: 1fr 1fr; }
  .md-cmp-head { display: none; }
  .md-cmp-row > span[role="rowheader"] { grid-column: 1 / -1; background: #eaece7; }
  .md-cmp-row > span[role="cell"]:nth-child(2)::before { content: "Job board: "; font-weight: 700; }
  .md-cmp-row > span[role="cell"]:nth-child(3)::before { content: "Editing service: "; font-weight: 700; }
  .md-cmp-row > span[role="cell"]:nth-child(3) { display: none; }
  .md-cmp-row > span:last-child::before { content: "PHVA: "; font-weight: 700; }
  .md-mark { font-size: .75rem; }
  .md-links li { padding: 10px 10px; }
}
@media (prefers-reduced-motion: reduce) { .md-sheet, .md-under { transform: none; } }

.g4 .band-proof .cell .k, .g4 .band-proof .cell .c.src { color: #3d3a16; }
