/*
Theme Name: Midad — Soft & Calm
Text Domain: midad
Author: Midad
Description: مدوّنة شخصية عربية بطابعٍ ناعم وهادئ (أخضر مريميّ + ورق كريميّ) بوضعين ليليّ ونهاريّ، مع نوع محتوى للمشاريع وصورة غلاف افتراضية للمقالات بلا صور. A calm Arabic blog theme — light/dark mode, a Projects custom post type, and an automatic default cover for photoless posts.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
*/

/* =========================================================
   مِداد — "ناعم وهادئ" / Soft & Calm direction
   Sage greens · warm cream paper · large soft radii
   Light + dark · Arabic RTL
   ========================================================= */

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  /* type */
  --display: "Thmanyah Display", "Times New Roman", serif;
  --text: "Thmanyah Text", Georgia, serif;
  --sans: "Thmanyah Sans", system-ui, sans-serif;
  --brand: "Masmak", var(--display);

  /* light — warm cream paper + sage */
  --bg: oklch(0.955 0.012 92);
  --surface: oklch(0.99 0.008 95);
  --surface-2: oklch(0.925 0.014 88);
  --cream: oklch(0.915 0.016 86);
  --ink: oklch(0.30 0.012 80);
  --ink-2: oklch(0.46 0.012 80);
  --ink-3: oklch(0.62 0.012 82);
  --line: oklch(0.885 0.012 84);
  --line-2: oklch(0.83 0.014 84);

  --sage: oklch(0.62 0.062 140);
  --sage-deep: oklch(0.50 0.058 142);
  --sage-ink: oklch(0.50 0.058 142);   /* sage text on light */
  --sage-wash: oklch(0.92 0.028 138);
  --sage-blob: oklch(0.62 0.062 140 / .15);

  /* dark inverted "band" panel (newsletter / footer accents) */
  --band-bg: oklch(0.27 0.014 110);
  --band-ink: oklch(0.95 0.012 95);
  --band-sub: oklch(0.74 0.012 100);
  --band-sage: oklch(0.70 0.075 140);
  --band-field: oklch(1 0 0 / .06);
  --band-line: oklch(1 0 0 / .14);

  --nav-glass: oklch(0.99 0.008 95 / .78);
  --shadow-card: 0 22px 44px -30px oklch(0.45 0.05 130 / .5);
  --shadow-soft: 0 1px 2px oklch(0.4 0.02 90 / .05), 0 16px 38px -24px oklch(0.4 0.04 110 / .28);

  --maxw: 1180px;
  --r: 26px;       /* card radius */
  --r-lg: 40px;    /* big panel radius */
  --r-sm: 18px;    /* thumb radius */
}

[data-theme="dark"] {
  --bg: oklch(0.215 0.01 135);
  --surface: oklch(0.258 0.012 134);
  --surface-2: oklch(0.30 0.013 134);
  --cream: oklch(0.31 0.013 134);
  --ink: oklch(0.93 0.012 100);
  --ink-2: oklch(0.755 0.013 110);
  --ink-3: oklch(0.61 0.012 115);
  --line: oklch(0.345 0.012 128);
  --line-2: oklch(0.40 0.014 128);

  --sage: oklch(0.74 0.082 138);
  --sage-deep: oklch(0.80 0.085 138);
  --sage-ink: oklch(0.82 0.082 138);
  --sage-wash: oklch(0.32 0.038 136);
  --sage-blob: oklch(0.74 0.082 138 / .14);

  --band-bg: oklch(0.165 0.01 135);
  --band-ink: oklch(0.94 0.012 95);
  --band-sub: oklch(0.72 0.012 110);
  --band-sage: oklch(0.76 0.085 138);
  --band-field: oklch(1 0 0 / .05);
  --band-line: oklch(1 0 0 / .12);

  --nav-glass: oklch(0.258 0.012 134 / .72);
  --shadow-card: 0 22px 48px -28px oklch(0 0 0 / .6);
  --shadow-soft: 0 1px 2px oklch(0 0 0 / .35), 0 18px 40px -22px oklch(0 0 0 / .6);
}

html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  transition: background .4s ease, color .4s ease;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
::selection { background: var(--sage-wash); color: var(--sage-ink); }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 40px; }
.narrow { max-width: 760px; }

/* ---------- default photo (fallback cover for photoless posts) ---------- */
/* Any empty .ph slot falls back to an on-brand default cover image.
   Three quiet variants rotate so repeated cards don't look identical. */
.ph {
  width: 100%; height: 100%;
  background: var(--cream) url("img/cover-1.png") center / cover no-repeat;
  display: grid; place-items: center;
}
/* placeholder hint chip — hidden by default since a real default photo now shows.
   Add class .ph.label (or keep a <span>) only where you still want the hint. */
.ph span { display: none; }
.ph.hint span {
  display: inline-block; font-family: var(--sans); font-size: 12px; color: var(--ink-2);
  background: var(--surface); padding: 6px 14px; border-radius: 999px; border: 1px solid var(--line);
}
/* variant rotation */
.card:nth-child(3n+2) .thumb .ph { background-image: url("img/cover-2.png"); }
.card:nth-child(3n) .thumb .ph { background-image: url("img/cover-3.png"); }
.gallery > div:nth-child(2) .ph { background-image: url("img/cover-2.png"); }
.gallery .full .ph { background-image: url("img/cover-3.png"); }
.prose figure .ph { background-image: url("img/cover-2.png"); }

/* ---------- floating pill nav ---------- */
.nav-bar { padding: 18px 0 6px; position: sticky; top: 0; z-index: 40; }
.nav-in {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  background: var(--nav-glass); backdrop-filter: blur(16px) saturate(1.4);
  border: 1px solid var(--line); border-radius: 999px;
  padding: 10px 14px 10px 26px; box-shadow: var(--shadow-soft);
}
.brand { font-family: var(--brand); font-size: 30px; color: var(--sage-deep); line-height: 1; padding-top: 5px; }
.nav { display: flex; gap: 4px; align-items: center; }
.nav ul { display: flex; gap: 4px; align-items: center; list-style: none; margin: 0; padding: 0; }
.nav li { list-style: none; }
.nav .current-menu-item > a,
.nav .current_page_item > a,
.nav .current-menu-parent > a,
.nav .current-menu-ancestor > a { background: var(--ink); color: var(--bg); }
.nav a { font-size: 15px; font-weight: 500; color: var(--ink-2); padding: 9px 18px; border-radius: 999px; transition: all .2s; }
.nav a:hover { background: var(--sage-wash); color: var(--sage-ink); }
.nav a.active { background: var(--ink); color: var(--bg); }
.tools { display: flex; align-items: center; gap: 8px; }
.icon-btn {
  width: 40px; height: 40px; display: grid; place-items: center; border-radius: 999px;
  border: 1px solid var(--line); background: var(--surface); color: var(--ink-2); cursor: pointer; transition: all .2s;
}
.icon-btn:hover { color: var(--sage-ink); border-color: var(--sage); transform: translateY(-1px); }
.icon-btn svg { width: 18px; height: 18px; }
.theme-toggle .moon { display: none; }
[data-theme="dark"] .theme-toggle .sun { display: none; }
[data-theme="dark"] .theme-toggle .moon { display: block; }
.sub {
  font-size: 15px; font-weight: 600; color: var(--surface); background: var(--sage);
  border: none; cursor: pointer; padding: 11px 22px; border-radius: 999px; font-family: var(--sans); transition: all .2s;
}
.sub:hover { background: var(--sage-deep); transform: translateY(-1px); }

/* ---------- hero ---------- */
.hero { padding: 40px 0 26px; }
.hero-card {
  background: var(--sage-wash); border-radius: var(--r-lg);
  padding: 60px 56px; display: grid; grid-template-columns: 1fr 0.82fr; gap: 48px;
  align-items: center; position: relative; overflow: hidden;
}
.blob { position: absolute; width: 320px; height: 320px; border-radius: 50%; background: var(--sage-blob); top: -120px; left: -80px; }
.blob.b2 { width: 200px; height: 200px; bottom: -90px; left: 30%; top: auto; opacity: .7; }
.pill {
  display: inline-flex; align-items: center; gap: 8px; background: var(--surface);
  border-radius: 999px; padding: 7px 16px; font-size: 14px; font-weight: 500; color: var(--sage-ink); margin-bottom: 22px;
}
.pill .d { width: 8px; height: 8px; border-radius: 50%; background: var(--sage); }
.hero h1 {
  font-family: var(--display); font-weight: 700; font-size: clamp(38px, 4.8vw, 62px);
  line-height: 1.12; letter-spacing: -0.01em; margin-bottom: 18px; position: relative; text-wrap: balance;
}
.hero h1 a { color: inherit; }
.hero .ex { font-family: var(--text); font-size: 18px; color: var(--ink-2); max-width: 44ch; margin-bottom: 24px; position: relative; }
.hero-meta { display: flex; align-items: center; gap: 12px; font-size: 14px; color: var(--ink-3); margin-bottom: 26px; position: relative; }
.avatar { width: 34px; height: 34px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); display: grid; place-items: center; font-family: var(--brand); color: var(--sage-ink); font-size: 17px; padding-top: 3px; }
.hero-meta .who { color: var(--ink-2); font-weight: 500; }
.dot { width: 3px; height: 3px; border-radius: 999px; background: var(--ink-3); }
.btns { display: flex; gap: 12px; position: relative; flex-wrap: wrap; }
.btn { font-size: 15px; font-weight: 600; padding: 13px 26px; border-radius: 999px; transition: all .2s; }
.btn-f { background: var(--ink); color: var(--bg); }
.btn-f:hover { background: var(--sage-deep); }
.btn-g { background: var(--surface); color: var(--ink); }
.btn-g:hover { color: var(--sage-ink); }
.hero-art { aspect-ratio: 1; border-radius: 30px; overflow: hidden; border: 5px solid var(--surface); position: relative; box-shadow: var(--shadow-card); }
.chip {
  position: absolute; top: 16px; right: 16px; z-index: 2; font-size: 12px; font-weight: 600;
  color: var(--surface); background: var(--sage); padding: 6px 13px; border-radius: 999px;
}

/* ---------- sections ---------- */
.sec { padding: 46px 0; }
.sec-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 30px; }
.sec-head.center { flex-direction: column; align-items: center; text-align: center; gap: 14px; }
.sec-head h2 { font-family: var(--display); font-size: clamp(27px, 3.2vw, 38px); font-weight: 700; letter-spacing: -0.01em; }
.sec-head .more { font-size: 14px; font-weight: 600; color: var(--sage-ink); }
.sec-head .more:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- card grid ---------- */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 14px; transition: transform .25s, box-shadow .25s; display: block; }
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow-card); }
.card .thumb { aspect-ratio: 16/10; border-radius: var(--r-sm); overflow: hidden; margin-bottom: 16px; }
.card .b { padding: 2px 12px 14px; }
.card .c { display: inline-block; font-size: 13px; font-weight: 500; color: var(--sage-ink); background: var(--sage-wash); padding: 4px 13px; border-radius: 999px; margin-bottom: 12px; }
.card h3 { font-family: var(--display); font-size: 22px; font-weight: 700; line-height: 1.3; margin-bottom: 8px; transition: color .2s; }
.card:hover h3 { color: var(--sage-ink); }
.card p { font-family: var(--text); font-size: 15px; color: var(--ink-2); }
.card .row { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--ink-3); margin-top: 12px; }

/* project card extras */
.proj .top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.proj .top .yr { font-family: var(--text); font-size: 14px; color: var(--ink-3); }
.tech { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 14px; }
.tech span { font-size: 12px; font-weight: 500; color: var(--ink-2); background: var(--sage-wash); border-radius: 999px; padding: 4px 12px; }

/* ---------- archive stream ---------- */
.stream { display: flex; flex-direction: column; gap: 12px; }
.stream-item {
  display: grid; grid-template-columns: auto 1fr auto; gap: 24px; align-items: center;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r);
  padding: 22px 26px; transition: transform .25s, box-shadow .25s;
}
.stream-item:hover { transform: translateY(-3px); box-shadow: var(--shadow-card); }
.stream-item .idx { font-family: var(--brand); font-size: 26px; color: var(--sage); padding-top: 4px; }
.stream-item h3 { font-family: var(--display); font-size: 22px; font-weight: 700; line-height: 1.3; }
.stream-item:hover h3 { color: var(--sage-ink); }
.stream-item .s { font-family: var(--text); font-size: 14px; color: var(--ink-2); margin-top: 4px; }
.stream-item .when { font-size: 13px; color: var(--ink-3); white-space: nowrap; }

/* ---------- topics ---------- */
.topics { display: flex; flex-wrap: wrap; gap: 11px; }
.topic { display: inline-flex; align-items: baseline; gap: 8px; font-size: 15px; font-weight: 500; color: var(--ink-2); background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 11px 20px; transition: all .2s; }
.topic:hover { border-color: var(--sage); color: var(--sage-ink); transform: translateY(-2px); }
.topic .n { font-size: 12px; color: var(--ink-3); }

/* ---------- newsletter band ---------- */
.band { background: var(--band-bg); border-radius: var(--r-lg); padding: 58px; text-align: center; }
.band .lg { font-family: var(--brand); font-size: 52px; color: var(--band-sage); line-height: 1; margin-bottom: 10px; }
.band h2 { font-family: var(--display); font-size: clamp(26px, 3.2vw, 38px); font-weight: 700; color: var(--band-ink); margin-bottom: 12px; }
.band p { font-family: var(--text); font-size: 17px; color: var(--band-sub); max-width: 44ch; margin: 0 auto 26px; }
.form { display: flex; gap: 10px; max-width: 460px; margin: 0 auto; }
.form input { flex: 1; font-family: var(--sans); font-size: 15px; background: var(--band-field); border: 1px solid var(--band-line); color: var(--band-ink); border-radius: 999px; padding: 13px 20px; outline: none; transition: border-color .2s; }
.form input::placeholder { color: var(--band-sub); }
.form input:focus { border-color: var(--band-sage); }
.form button { font-family: var(--sans); font-size: 15px; font-weight: 600; background: var(--band-sage); color: oklch(0.2 0.01 135); border: none; border-radius: 999px; padding: 13px 26px; cursor: pointer; white-space: nowrap; transition: filter .2s; }
.form button:hover { filter: brightness(1.06); }

/* ---------- footer ---------- */
.foot { padding: 44px 0 56px; }
.foot-top { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; align-items: flex-start; }
.foot .brand-lg { font-family: var(--brand); font-size: 36px; color: var(--sage-deep); line-height: 1; }
.foot .blurb { font-family: var(--text); font-size: 15px; color: var(--ink-2); max-width: 34ch; margin-top: 12px; }
.foot-cols { display: flex; gap: 56px; }
.foot-col h4 { font-size: 12px; letter-spacing: .12em; color: var(--ink-3); margin-bottom: 14px; }
.foot-col a { display: block; font-size: 15px; color: var(--ink-2); padding: 5px 0; transition: color .2s; }
.foot-col a:hover { color: var(--sage-ink); }
.foot-base { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-top: 44px; padding-top: 24px; border-top: 1px solid var(--line); font-size: 13px; color: var(--ink-3); }

/* ---------- page head (projects) ---------- */
.page-head { padding: 36px 0 8px; }
.page-head .pill { margin-bottom: 16px; }
.page-head h1 { font-family: var(--display); font-size: clamp(40px, 5vw, 60px); font-weight: 700; line-height: 1.1; letter-spacing: -0.01em; margin-bottom: 16px; text-wrap: balance; }
.page-head .intro { font-family: var(--text); font-size: 18px; color: var(--ink-2); max-width: 56ch; }

/* ---------- article ---------- */
.progress { position: fixed; top: 0; right: 0; height: 3px; background: var(--sage); width: 0; z-index: 70; transition: width .1s linear; }
.article-head { padding: 40px 0 36px; text-align: center; }
.article-head .cat { font-size: 13px; font-weight: 600; letter-spacing: .03em; color: var(--sage-ink); margin-bottom: 16px; display: inline-block; background: var(--sage-wash); padding: 5px 15px; border-radius: 999px; }
.article-head h1 { font-family: var(--display); font-size: clamp(36px, 4.8vw, 60px); font-weight: 700; line-height: 1.14; letter-spacing: -0.01em; max-width: 19ch; margin: 0 auto 22px; text-wrap: balance; }
.article-head .lede { font-family: var(--text); font-size: 20px; color: var(--ink-2); max-width: 56ch; margin: 0 auto 26px; }
.byline { display: flex; align-items: center; justify-content: center; gap: 13px; font-size: 14px; color: var(--ink-3); }
.byline .avatar { width: 38px; height: 38px; font-size: 18px; }
.byline .who { color: var(--ink); font-weight: 600; }

.cover { aspect-ratio: 16/8; border-radius: var(--r-lg); overflow: hidden; border: 5px solid var(--surface); margin: 6px 0 52px; box-shadow: var(--shadow-card); }

/* project meta row */
.meta-row { display: flex; flex-wrap: wrap; gap: 16px 40px; justify-content: center; margin: 26px 0 22px; }
.meta-row .m { text-align: center; }
.meta-row .m .k { font-size: 12px; letter-spacing: .1em; color: var(--ink-3); margin-bottom: 5px; }
.meta-row .m .v { font-family: var(--sans); font-size: 15px; font-weight: 600; color: var(--ink); }
.proj-links { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
.btn-line { display: inline-flex; align-items: center; gap: 8px; font-family: var(--sans); font-size: 14px; font-weight: 600; padding: 12px 22px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--ink); transition: all .2s; }
.btn-line:hover { border-color: var(--sage); color: var(--sage-ink); transform: translateY(-1px); }
.btn-line svg { width: 16px; height: 16px; }
.btn-line.fill { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.btn-line.fill:hover { background: var(--sage-deep); border-color: var(--sage-deep); color: var(--bg); }

/* prose */
.prose { font-family: var(--text); font-size: 19px; line-height: 1.9; color: var(--ink); }
.prose > * + * { margin-top: 1.5em; }
.prose .drop::first-letter,
.prose > p:first-of-type::first-letter { font-family: var(--display); font-weight: 700; font-size: 3.4em; line-height: .8; float: right; margin: 0.06em 0 0 0; margin-inline-end: 0.14em; color: var(--sage-ink); }
/* WordPress core alignments / captions inside prose */
.prose img { border-radius: var(--r-sm); }
.prose .wp-caption, .prose figure.wp-block-image { margin: 2.2em 0; }
.prose .wp-caption-text, .prose figcaption { font-family: var(--sans); font-size: 13px; color: var(--ink-3); text-align: center; margin-top: 12px; }
.prose .aligncenter { margin-inline: auto; }
.sticky, .bypostauthor { display: block; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(1px,1px,1px,1px); }
.pagination, .nav-links { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.pagination .page-numbers { display: inline-grid; place-items: center; min-width: 42px; height: 42px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); color: var(--ink-2); background: var(--surface); font-size: 15px; }
.pagination .page-numbers.current { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.pagination a.page-numbers:hover { border-color: var(--sage); color: var(--sage-ink); }
.prose h2 { font-family: var(--display); font-size: 30px; font-weight: 700; line-height: 1.3; margin-top: 1.9em; letter-spacing: -0.01em; }
.prose h3 { font-family: var(--display); font-size: 23px; font-weight: 700; margin-top: 1.6em; }
.prose blockquote { background: var(--sage-wash); border-radius: var(--r); padding: 28px 32px; margin-inline: 0; font-family: var(--display); font-size: 24px; line-height: 1.5; color: var(--sage-ink); font-weight: 500; }
.prose a { color: var(--sage-ink); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.prose ul, .prose ol { padding-inline-start: 1.3em; }
.prose li { margin-top: .5em; }
.prose li::marker { color: var(--sage); }
.prose figure { margin: 2.2em 0; }
.prose figure .ph { aspect-ratio: 16/9; border-radius: var(--r-sm); }
.prose figure { border-radius: var(--r-sm); overflow: hidden; }
.prose figcaption { font-family: var(--sans); font-size: 13px; color: var(--ink-3); text-align: center; margin-top: 12px; }
.prose hr { border: none; border-top: 1px solid var(--line); margin: 2.4em 0; }

.gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 2.4em 0; }
.gallery > div { border-radius: var(--r-sm); overflow: hidden; aspect-ratio: 4/3; border: 1px solid var(--line); }
.gallery .full { grid-column: 1 / -1; aspect-ratio: 16/8; }

.article-foot { margin-top: 50px; padding-top: 30px; border-top: 1px solid var(--line); }
.tags { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 36px; }
.tags a { font-size: 13px; color: var(--ink-2); background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 7px 15px; transition: all .2s; }
.tags a:hover { color: var(--sage-ink); border-color: var(--sage); }
.author-card { display: flex; gap: 18px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 24px; }
.author-card .avatar { width: 60px; height: 60px; font-size: 28px; flex-shrink: 0; }
.author-card h4 { font-family: var(--display); font-size: 20px; font-weight: 700; }
.author-card p { font-family: var(--text); font-size: 15px; color: var(--ink-2); margin-top: 4px; }

.next-proj { margin-top: 10px; }
.next-proj a { display: flex; align-items: center; justify-content: space-between; gap: 20px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 30px 34px; transition: transform .25s, box-shadow .25s; }
.next-proj a:hover { transform: translateY(-3px); box-shadow: var(--shadow-card); }
.next-proj .k { font-size: 12px; letter-spacing: .12em; color: var(--ink-3); margin-bottom: 8px; }
.next-proj h3 { font-family: var(--display); font-size: clamp(24px, 3.4vw, 36px); font-weight: 700; letter-spacing: -0.01em; }
.next-proj a:hover h3 { color: var(--sage-ink); }
.next-proj .arrow { font-family: var(--display); font-size: 38px; color: var(--sage); }

/* reveal */
@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(16px); transition: opacity .7s ease, transform .7s ease; }
  .reveal.in { opacity: 1; transform: none; }
}

/* responsive */
@media (max-width: 900px) {
  .wrap { padding: 0 22px; }
  .nav, .sub { display: none; }
  .hero-card { grid-template-columns: 1fr; padding: 38px 28px; }
  .hero-art { display: none; }
  .grid { grid-template-columns: 1fr 1fr; }
  .foot-cols { gap: 36px; }
}
@media (max-width: 600px) {
  .grid { grid-template-columns: 1fr; }
  .form { flex-direction: column; }
  .stream-item { grid-template-columns: auto 1fr; }
  .stream-item .when { display: none; }
  .band { padding: 40px 24px; }
}
