/* Sample-issue pages (/newsletters/<sample>). Shared parts live in site.css.
   The newsletter mock-ups (.nl-*) keep each invented client's own fonts and colours on purpose. */
@layer page {
.sample-bar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px 24px; padding-top: 12px; padding-bottom: 12px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); font-size: 14.5px; }
.sample-bar .back { font-weight: 800; color: var(--ink); text-decoration: none; }
.sample-bar .back:hover { color: var(--green-text); }
.sample-flag { font-family: var(--mono); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--faint); }
.sample-intro { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px 48px; padding-top: 48px; padding-bottom: 36px; align-items: end; }
.sample-intro h1 { margin-top: 10px; font-weight: 800; font-size: clamp(36px, 4.8vw, 60px); line-height: 1.02; letter-spacing: -0.035em; }
.sample-intro p { color: var(--body); font-size: 17.5px; }
.sample-intro dl { margin-top: 18px; display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; font-size: 15px; }
.sample-intro dt { font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--faint); padding-top: 3px; }
.reader { display: grid; grid-template-columns: minmax(0, 660px) minmax(0, 1fr); gap: 48px; align-items: start; padding-bottom: 40px; }
.inbox { background: var(--card); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; box-shadow: var(--shadow); }
.inbox-head { padding: 14px 18px; border-bottom: 1px solid var(--line-soft); background: var(--surface); font-size: 13.5px; line-height: 1.6; color: var(--muted); }
.inbox-head strong { color: var(--ink); }
.notes { position: sticky; top: 24px; display: grid; gap: 14px; }
.note { padding: 16px 18px; border-radius: var(--radius); background: var(--surface); border-left: 3px solid var(--green); }
.note h3 { font-family: var(--mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--green-text); font-weight: 500; }
.note p { margin-top: 6px; font-size: 15.5px; color: var(--body); }
.companion { margin-top: 24px; padding-top: 48px; border-top: 1px solid var(--line); }
.companion h2 { margin-top: 10px; font-size: clamp(28px, 3.4vw, 40px); font-weight: 800; letter-spacing: -0.03em; line-height: 1.1; }
.companion > p { margin-top: 10px; color: var(--muted); max-width: 640px; }
.plain-mail { margin-top: 22px; max-width: 660px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; font-size: 16px; line-height: 1.6; white-space: pre-line; color: var(--ink); box-shadow: var(--shadow-sm); }
.plain-mail .pm-head { display: block; font-size: 13px; color: var(--faint); margin-bottom: 10px; white-space: normal; }
.wa { margin-top: 22px; max-width: 420px; background: #E9E2D6; padding: 16px; border-radius: 14px; display: grid; gap: 8px; }
.wa-bubble { justify-self: end; max-width: 92%; background: #D9FDD3; color: #111B21; padding: 10px 12px 18px; border-radius: 10px 0 10px 10px; font-size: 15px; line-height: 1.45; position: relative; white-space: pre-line; }
.wa-bubble .wa-time { position: absolute; right: 10px; bottom: 4px; font-size: 11px; color: #56656D; }
.wa-label { font-family: var(--mono); font-size: 11.5px; color: #4A5A58; letter-spacing: .06em; text-transform: uppercase; }
.sample-line { color: var(--muted); font-size: 15px; }
@media (max-width: 1080px) { .reader { grid-template-columns: minmax(0, 1fr); } .notes { position: static; grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 860px) { .sample-intro { grid-template-columns: minmax(0, 1fr); gap: 24px; } }
@media (max-width: 640px) { .notes { grid-template-columns: minmax(0, 1fr); } .sample-intro { padding-top: 24px; } }
/* Samples */
.samples { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; margin-top: 32px; }
.sample { display: flex; flex-direction: column; text-decoration: none; color: var(--ink); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; background: var(--card); transition: transform .15s ease, box-shadow .15s ease; }
.sample:hover { color: var(--ink); transform: translateY(-3px); box-shadow: var(--shadow); }
@media (prefers-reduced-motion: reduce) { .sample, .sample:hover { transition: none; transform: none; } }
.sample-top { padding: 22px; min-height: 150px; display: flex; flex-direction: column; justify-content: space-between; gap: 18px; }
.sample-top .mono { font-size: 12px; opacity: .85; }
.sample-title { font-size: 24px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.1; }
.s-build { background: #0B0F0E; color: #FFFFFF; }
.s-buyer { background: #1F3A5F; color: #FFFFFF; }
.s-gulf { background: #E8DCC4; color: #2A2116; }
.s-draft { background: #00B37E; color: #04140E; }
.sample-body { padding: 18px 22px 20px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.sample-body p { color: var(--muted); font-size: 15px; }
.sample-for { margin-top: auto; display: flex; justify-content: space-between; font-size: 14px; font-weight: 700; }
.sample-for span:last-child { color: var(--green-text); }


/* ---------- Newsletter mock-ups: each invented client keeps its own masthead ---------- */
/* Mock-ups are always printed on white, so links inside them use the light-mode green in dark mode too. */
.nl { --green-text: #0B7A57; --ink: #0B0F0E; }
/* ---------- Newsletter bodies: each sample has its own masthead ---------- */
.nl { font-size: 16.5px; line-height: 1.62; color: #1D2422; background: #FFFFFF; }
.nl p + p { margin-top: 14px; }
.nl-block { padding: 26px 30px; }
.nl-block + .nl-block { border-top: 1px solid #ECE8E0; }
.nl h2 { font-size: 22px; line-height: 1.25; margin-bottom: 10px; }
.nl .nl-cta { display: inline-block; margin-top: 8px; padding: 12px 18px; font-weight: 800; text-decoration: none; border-radius: 3px; }
.nl .nl-small { font-size: 13px; color: #5E6A67; }
.nl .nl-foot { padding: 20px 30px 26px; background: #F6F4EF; font-size: 13px; color: #5E6A67; line-height: 1.55; }
.nl-num { font-family: var(--mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }

/* The Build Log (founders) */
.nl-build .nl-mast { background: #1D2B4F; color: #FFFFFF; padding: 30px 30px 26px; }
.nl-build .nl-mast .nl-num { color: #B9C4E6; }
.nl-build .nl-mast h1 { margin-top: 10px; font-family: var(--serif); font-weight: 600; font-size: 44px; line-height: 1; }
.nl-build .nl-mast p { margin-top: 8px; color: #D5DCF0; font-size: 15px; }
.nl-build h2 { font-family: var(--serif); font-weight: 600; color: #1D2B4F; }
.nl-build .nl-cta { background: #1D2B4F; color: #FFFFFF; }
.nl-build .nl-index { display: grid; gap: 4px; margin-top: 12px; padding: 14px 16px; background: #EEF1F8; font-size: 15px; }
.nl-build .nl-index span { font-family: var(--mono); font-size: 12px; color: #3B4C7A; margin-right: 8px; }

/* Buyer's Bulletin (exporters) */
.nl-buyer { font-family: var(--sans); }
.nl-buyer .nl-mast { background: #9A5418; color: #FFF8EE; padding: 28px 30px; display: grid; gap: 6px; }
.nl-buyer .nl-mast h1 { font-family: var(--serif); font-size: 42px; font-weight: 700; line-height: 1; letter-spacing: -.01em; }
.nl-buyer .nl-mast .nl-num { color: #FCE1C4; }
.nl-buyer h2 { font-family: var(--serif); color: #7A3F0F; font-weight: 700; }
.nl-buyer .spec { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; margin-top: 14px; border: 1px solid #E6D3BF; }
.nl-buyer .spec div { padding: 12px 14px; border-right: 1px solid #E6D3BF; }
.nl-buyer .spec div:last-child { border-right: 0; }
.nl-buyer .spec b { display: block; font-family: var(--serif); font-size: 22px; color: #7A3F0F; }
.nl-buyer .spec span { font-size: 13px; color: #5E6A67; }
.nl-buyer .finishes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 14px; }
.nl-buyer .swatch { display: grid; gap: 8px; font-size: 14px; }
.nl-buyer .swatch i { display: block; height: 64px; border-radius: 2px; }
.sw-steel { background: linear-gradient(135deg, #8E979B, #D3D8DA 50%, #7D8689); }
.sw-iron { background: linear-gradient(135deg, #3B3D3F, #626568 55%, #2E3032); }
.sw-alu { background: linear-gradient(135deg, #B7BDC2, #E9ECEE 50%, #A9AFB4); }
.nl-buyer .nl-cta { background: #9A5418; color: #FFF8EE; }
.nl-buyer .fair { display: grid; grid-template-columns: 74px 1fr; gap: 16px; align-items: center; padding: 14px; background: #FBF2E8; border: 1px solid #EED8C0; }
.nl-buyer .fair-date { text-align: center; font-family: var(--serif); line-height: 1; color: #7A3F0F; }
.nl-buyer .fair-date b { display: block; font-size: 30px; }
.nl-buyer .fair-date span { font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }

/* The Gulf Investor Brief (UAE real estate) */
.nl-gulf .nl-mast { background: #EDE4D3; color: #12201F; padding: 30px 30px 22px; border-bottom: 5px solid #8C6B2F; text-align: left; }
.nl-gulf .nl-mast .nl-num { color: #6B5222; }
.nl-gulf .nl-mast h1 { margin-top: 10px; font-family: var(--serif); font-size: 40px; line-height: 1.04; font-weight: 500; letter-spacing: -.01em; }
.nl-gulf .nl-mast h1 em { font-weight: 700; }
.nl-gulf .nl-mast p { margin-top: 8px; font-size: 14.5px; color: #4A3A18; }
.nl-gulf h2 { font-family: var(--serif); font-weight: 600; color: #3D2F12; }
.nl-gulf .qa { display: grid; gap: 14px; margin-top: 10px; }
.nl-gulf .qa div { padding-left: 16px; border-left: 3px solid #C9B27C; }
.nl-gulf .qa b { display: block; color: #3D2F12; }
.nl-gulf .costs { list-style: none; padding: 0; margin-top: 12px; display: grid; gap: 10px; counter-reset: c; }
.nl-gulf .costs li { counter-increment: c; display: grid; grid-template-columns: 34px 1fr; gap: 10px; }
.nl-gulf .costs li::before { content: counter(c); font-family: var(--serif); font-size: 26px; line-height: 1; color: #8C6B2F; }
.nl-gulf .nl-cta { background: #3D2F12; color: #FFFFFF; }
.nl-gulf .tz { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.nl-gulf .tz span { font-family: var(--mono); font-size: 12.5px; padding: 6px 10px; border: 1px solid #C9B27C; color: #3D2F12; }

/* Second Draft (creators) */
.nl-draft .nl-mast { background: #F7D046; color: #12201F; padding: 28px 30px 24px; }
.nl-draft .nl-mast h1 { font-family: var(--serif); font-style: italic; font-weight: 800; font-size: 50px; line-height: .95; letter-spacing: -.02em; }
.nl-draft .nl-mast p { margin-top: 10px; font-size: 15px; }
.nl-draft h2 { font-family: var(--serif); font-weight: 700; }
.nl-draft .video { display: grid; grid-template-columns: 150px 1fr; gap: 16px; align-items: center; padding: 14px; background: #12201F; color: #FFFFFF; }
.nl-draft .thumb { aspect-ratio: 16 / 9; background: #F7D046; display: grid; place-items: center; }
.nl-draft .thumb svg { width: 34px; height: 34px; }
.nl-draft .video b { display: block; font-size: 16px; }
.nl-draft .video span { font-size: 13px; color: #C9D2CF; }
.nl-draft .steal { list-style: none; padding: 0; display: grid; gap: 12px; margin-top: 12px; }
.nl-draft .steal li { font-family: var(--serif); font-size: 21px; line-height: 1.3; font-style: italic; padding: 12px 16px; background: #FFF8D6; }
.nl-draft .sponsor { padding: 14px 16px; border: 1.5px dashed #12201F; font-size: 15px; }
.nl-draft .sponsor .nl-num { display: block; margin-bottom: 4px; }
.nl-draft .nl-cta { background: #12201F; color: #F7D046; }

@media (max-width: 640px) {
  .nl-block { padding: 22px 18px; }
  .nl-build .nl-mast, .nl-buyer .nl-mast, .nl-gulf .nl-mast, .nl-draft .nl-mast { padding: 24px 18px; }
  .nl-build .nl-mast h1 { font-size: 36px; }
  .nl-draft .nl-mast h1 { font-size: 40px; }
  .nl-buyer .spec, .nl-buyer .finishes { grid-template-columns: minmax(0, 1fr); }
  .nl-buyer .spec div { border-right: 0; border-bottom: 1px solid #E6D3BF; }
  .nl-buyer .spec div:last-child { border-bottom: 0; }
  .nl-buyer .swatch { grid-template-columns: 80px 1fr; align-items: center; }
  .nl-buyer .swatch i { height: 44px; }
  .nl-draft .video { grid-template-columns: minmax(0, 1fr); }
  .nl .nl-foot { padding: 18px; }
}
}
