/* Plus Jakarta Sans (variable, SIL OFL 1.1, see fonts/OFL.txt); self-hosted so the CSP stays 'self'. */
@font-face {
  font-family: "Plus Jakarta Sans";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("fonts/plus-jakarta-sans-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}
@font-face {
  font-family: "Plus Jakarta Sans";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("fonts/plus-jakarta-sans-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}

:root {
  --bg: #e9e8e4;
  --surface: #f3f2ef;
  --text: #2e3235;
  --muted: #6c7176;
  --border: #d4d2cc;
  --accent: #7d6a24;
  --accent-soft: #f1e8bf;
  --highlight: #e9d98f;
  --on-highlight: #2e3235;

  --ga: #66806c;
  --preview: #8f8259;
  --retirement: #96695f;
  --announcement: #667789;
  --guidance: #7b6f88;

  --radius: 10px;
  --font: "Plus Jakarta Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1c1e20;
    --surface: #242729;
    --text: #d3d4d0;
    --muted: #8d9195;
    --border: #34383b;
    --accent: #d8c680;
    --accent-soft: #33301f;
    --highlight: #d3c178;

    --ga: #8fa894;
    --preview: #b5a77c;
    --retirement: #bd8f85;
    --announcement: #91a2b4;
    --guidance: #a498b1;
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
  border-top: 4px solid var(--highlight);
}

.masthead, main, footer {
  max-width: 940px;
  margin: 0 auto;
  padding: 0 20px;
}

.masthead { padding-top: 72px; padding-bottom: 28px; }

/* Azure logo as a faint watermark behind the heading. */
.masthead { position: relative; }
.masthead::before {
  content: "";
  position: absolute;
  top: 72px; /* = .masthead padding-top, so the logo's top lines up with the heading */
  right: 20px;
  width: 190px;
  height: 190px;
  background: url("azure.svg") center / contain no-repeat;
  opacity: 0.18;
  pointer-events: none;
}
.masthead > * { position: relative; }
@media (prefers-color-scheme: dark) {
  .masthead::before { opacity: 0.3; }
}

h1 {
  margin: 0 0 12px;
  font-size: clamp(1.8rem, 4.5vw, 2.5rem);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

h1 em {
  font-style: normal;
  background: linear-gradient(transparent 62%, var(--highlight) 62%, var(--highlight) 92%, transparent 92%);
}
@media (prefers-color-scheme: dark) {
  h1 em { background: none; color: var(--highlight); }
}

.lede { margin: 0; max-width: 56ch; color: var(--muted); }
.hint { margin: 10px 0 0; color: var(--accent); font-size: 0.9rem; font-weight: 600; }
.meta { margin: 20px 0 0; color: var(--muted); font-size: 0.82rem; }

.controls {
  position: sticky;
  top: 0;
  z-index: 5;
  display: grid;
  gap: 10px;
  padding: 14px 0;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}

#search {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--text);
  font: inherit;
}
#search::placeholder { color: var(--muted); }
#search:focus { outline: none; border-color: var(--highlight); box-shadow: 0 0 0 3px var(--accent-soft); }

.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip[hidden] { display: none; }
.chip.toggle { justify-self: start; border-style: dashed; }

.chip {
  padding: 4px 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 0.8rem;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.chip:hover { color: var(--text); border-color: var(--muted); }
.chip[aria-pressed="true"] {
  background: var(--highlight);
  border-color: var(--highlight);
  color: var(--on-highlight);
}

:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.section {
  margin: 36px 0 12px;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-auto-flow: dense; /* an opened, full-width card leaves no hole beside its neighbour */
  gap: 12px;
}

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 22px 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  cursor: pointer;
  transition: border-color 0.15s;
}
.card.open { grid-column: 1 / -1; border-color: var(--highlight); }

.card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: auto;
}

.more {
  padding: 2px 0;
  border: 0;
  background: none;
  color: var(--muted);
  font: inherit;
  font-size: 0.78rem;
  cursor: pointer;
}
.more::after { content: " \25BE"; }
.more[aria-expanded="true"]::after { content: " \25B4"; }

.details { display: none; cursor: auto; }
.card.open .details { display: block; margin-top: 18px; }

/* Hover preview: after the pointer has rested on a card for a second, the details drop
   out below it, over the grid, so nothing moves. */
@keyframes reveal {
  from { opacity: 0; visibility: hidden; }
  to { opacity: 1; visibility: visible; }
}
@media (hover: hover) {
  .card:not(.open):hover { z-index: 3; border-color: var(--highlight); }
  .card:not(.open):hover .details {
    display: block;
    position: absolute;
    top: calc(100% - var(--radius));
    left: -1px;
    right: -1px;
    padding: 4px 24px 22px;
    border: 1px solid var(--highlight);
    border-top: 0;
    border-radius: 0 0 var(--radius) var(--radius);
    background: var(--surface);
    box-shadow: 0 18px 30px rgba(0, 0, 0, 0.22);
    animation: reveal 0.15s 1s both;
  }
  /* Set while the page is being scrolled; cleared when the pointer next moves. */
  .no-preview .card:not(.open):hover { border-color: var(--border); }
  .no-preview .card:not(.open):hover .details { display: none; }
}

.source {
  display: inline-block;
  margin-top: 14px;
  color: var(--accent);
  font-size: 0.85rem;
  text-decoration: none;
}
.source:hover { text-decoration: underline; text-underline-offset: 3px; }

.card-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 12px;
  color: var(--muted);
  font-size: 0.8rem;
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.status::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
}
.status-ga { color: var(--ga); }
.status-preview { color: var(--preview); }
.status-retirement { color: var(--retirement); }
.status-announcement { color: var(--announcement); }
.status-guidance { color: var(--guidance); }

.importance { margin-left: auto; display: inline-flex; gap: 3px; }
.importance span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--border);
}
.importance span.on { background: var(--muted); }

.card h2 {
  margin: 10px 0 16px;
  font-size: 1.15rem;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -0.01em;
}
.card p { margin: 0; }

.card .impact {
  margin-top: 14px;
  padding: 12px 16px;
  border-left: 3px solid var(--highlight);
  border-radius: 0 6px 6px 0;
  background: var(--accent-soft);
}
.impact .label {
  display: block;
  margin-bottom: 2px;
  color: var(--accent);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 14px;
}
.tag {
  padding: 2px 9px;
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--muted);
  font-size: 0.75rem;
}
.tag.action { border-color: var(--accent); color: var(--accent); }

.notice {
  margin: 48px 0;
  color: var(--muted);
  text-align: center;
}

footer {
  margin-top: 56px;
  padding-top: 20px;
  padding-bottom: 48px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.8rem;
}
footer p { margin: 0; max-width: 64ch; }

@media (max-width: 640px) {
  .grid { grid-template-columns: 1fr; }
}

/* Narrow screens: keep the heading clear of the logo (190 + 10 gap). */
@media (max-width: 900px) {
  h1 { padding-right: 200px; }
}

@media (max-width: 540px) {
  .masthead { padding-top: 44px; }
  /* Logo beside the heading, top-aligned with it; the heading wraps short of it. */
  .masthead::before { top: 44px; width: 88px; height: 88px; }
  h1 { padding-right: 104px; }
  .card { padding: 18px; }
}
