/* Annual Reports to the Community – Option B
   Sizes are in px, not rem: the site sets html { font-size: 1px },
   so rem units would shrink everything.
   All rules are scoped under .ar-reports so they don't collide with
   the site's existing vad-* classes. Fonts inherit from the site. */

.ar-reports {
  --ar-navy: #0F2C55;
  --ar-link: #1A5A9C;
  --ar-link-hover: #0F2C55;
  --ar-text: #1C2430;
  --ar-muted: #4A5868;      /* 7:1 on white */
  --ar-border: #D3DEE8;
  --ar-row-border: #E3EAF1;
  --ar-tint: #F4F7FA;
  --ar-on-navy-muted: #B9D4EC;

  color: var(--ar-text);
  line-height: 1.5;
  display: flex;
  flex-direction: column;
  gap: 40px;

  /* WORKAROUND: the Umbraco grid column (.row > .col-md-12.column) shrinks
     to its content's narrowest width. A definite width here forces the
     column to grow. Remove once the site-wide grid CSS is fixed. */
  width: min(1040px, calc(100vw - 48px));
}

.ar-reports *,
.ar-reports *::before,
.ar-reports *::after { box-sizing: border-box; }

/* Screen-reader-only text */
.ar-reports .ar-sr {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* Visible keyboard focus everywhere in the block */
.ar-reports a:focus-visible,
.ar-reports summary:focus-visible {
  outline: 3px solid #F2A900;
  outline-offset: 2px;
  border-radius: 4px;
}

/* ---------- Latest report banner ---------- */
.ar-latest {
  background: var(--ar-navy);
  color: #fff;
  border-radius: 12px;
  padding: 28px 32px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px 40px;
}
.ar-latest__kicker {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  color: var(--ar-on-navy-muted);
}
.ar-latest__title {
  margin: 2px 0 0;
  font-size: 32px;
  line-height: 1.1;
  font-weight: 700;
  color: #fff;
}
.ar-latest__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.ar-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 8px;
  font-weight: 700;
  text-decoration: none;
}
.ar-btn--solid { background: #fff; color: var(--ar-navy); border: 2px solid #fff; }
.ar-btn--solid:hover { background: #E6EFF8; border-color: #E6EFF8; color: var(--ar-navy); }
.ar-btn--ghost { background: transparent; color: #fff; border: 2px solid var(--ar-on-navy-muted); }
.ar-btn--ghost:hover { background: rgba(255, 255, 255, 0.12); color: #fff; }
.ar-latest a:focus-visible { outline-color: #fff; }

/* ---------- Section headings ---------- */
.ar-heading {
  margin: 0;
  font-size: 28px;
  line-height: 1.2;
  font-weight: 700;
  color: var(--ar-navy);
}
.ar-section { display: flex; flex-direction: column; gap: 20px; }

/* ---------- Table ---------- */
.ar-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--ar-border);
  border-radius: 12px;
}
.ar-table {
  width: 100%;
  min-width: 640px;
  border-collapse: collapse;
  font-size: 16px;
}
.ar-table caption {
  text-align: left;
  padding: 14px 20px;
  font-size: 14px;
  color: var(--ar-muted);
  border-bottom: 1px solid var(--ar-border);
}
.ar-table thead tr { background: var(--ar-tint); }
.ar-table th[scope="col"] {
  padding: 12px 20px;
  text-align: left;
  font-weight: 700;
  color: var(--ar-navy);
}
.ar-table th[scope="col"]:first-child { width: 22%; }
.ar-table tbody tr { border-top: 1px solid var(--ar-row-border); }
.ar-table th[scope="row"] {
  padding: 14px 20px;
  text-align: left;
  font-size: 22px;
  font-weight: 700;
  color: var(--ar-navy);
  white-space: nowrap;
}
.ar-table td { padding: 14px 20px; vertical-align: middle; }

.ar-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
}
.ar-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;              /* touch target */
  font-weight: 600;
  color: var(--ar-link);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.ar-link:hover { color: var(--ar-link-hover); }
.ar-tag {
  font-size: 13px;
  font-weight: 400;
  color: var(--ar-muted);
  text-decoration: none;
}
.ar-none { color: var(--ar-muted); font-size: 15px; }

/* ---------- Earlier reports (collapsible) ---------- */
.ar-archive {
  border: 1px solid var(--ar-border);
  border-radius: 12px;
}
.ar-archive > summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 56px;
  padding: 12px 20px;
  font-weight: 700;
  font-size: 18px;
  color: var(--ar-navy);
}
.ar-archive > summary::-webkit-details-marker { display: none; }
.ar-archive > summary::after {
  content: "";
  width: 0.6em;
  height: 0.6em;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  flex: none;
}
.ar-archive[open] > summary::after { transform: rotate(-135deg) translateY(-2px); }
.ar-archive[open] > summary { border-bottom: 1px solid var(--ar-border); }
.ar-archive__note {
  margin: 0;
  padding: 14px 20px 0;
  font-size: 15px;
  color: var(--ar-muted);
}
.ar-archive__list {
  list-style: none;
  margin: 0;
  padding: 16px 20px 20px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(144px, 1fr));
  gap: 12px;
}
.ar-archive__list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 48px;
  padding: 0 16px;
  border: 1px solid var(--ar-border);
  border-radius: 8px;
  font-weight: 700;
  font-size: 17px;
  color: var(--ar-navy);
  text-decoration: none;
}
.ar-archive__list a:hover { border-color: var(--ar-link); color: var(--ar-link); }

.ar-help { margin: 0; font-size: 15px; color: var(--ar-muted); }
.ar-help a { color: var(--ar-link); font-weight: 600; }

/* ---------- Small screens ---------- */
@media (max-width: 640px) {
  .ar-latest { padding: 24px 20px; }
  .ar-latest__actions,
  .ar-latest__actions .ar-btn { width: 100%; }
  .ar-latest__actions .ar-btn { justify-content: center; }
}

/* ---------- Overrides for site-wide link styles ----------
   The site's own link rules outrank single-class selectors, so these
   repeat the colors with higher specificity. */
.ar-reports .ar-latest a.ar-btn--solid,
.ar-reports .ar-latest a.ar-btn--solid:hover { color: var(--ar-navy); }
.ar-reports .ar-latest a.ar-btn--ghost,
.ar-reports .ar-latest a.ar-btn--ghost:hover { color: #fff; }
.ar-reports .ar-table a.ar-link { color: var(--ar-link); }
.ar-reports .ar-table a.ar-link:hover { color: var(--ar-link-hover); }
.ar-reports .ar-archive__list a { color: var(--ar-navy); }
.ar-reports .ar-archive__list a:hover { color: var(--ar-link); }
.ar-reports .ar-help a { color: var(--ar-link); }

/* OPTIONAL: hide the site's automatic PDF icons inside this block.
   Check the site's real selector in DevTools first and match it,
   then remove the comment markers.
.ar-reports a[href$=".pdf"]::before { content: none; }
*/

/* ---------- Page fix: make the Umbraco grid column fill its row ----------
   This stylesheet is only loaded by the "Content Page Rev2 - Annual Reports"
   template, so this rule affects this page only. */
.row.clearfix > .col-md-12.column {
  flex: 1 1 100%;
  width: 100%;
  max-width: 100%;
}

/* ---------- Resets for the site's own link styling ----------
   The site's stylesheets style every <a> (display, a bottom border used
   as an underline, padding) with selectors that outrank the classes above.
   !important is used deliberately here: this file only loads on the
   Annual Reports template, and every rule is scoped to .ar-reports. */
.ar-reports a.ar-btn,
.ar-reports a.ar-link {
  display: inline-flex !important;
  align-items: center !important;
}
.ar-reports a.ar-btn {
  padding: 0 18px !important;
  line-height: 1.25 !important;
  text-decoration: none !important;
}
.ar-reports a.ar-btn--solid { border: 2px solid #fff !important; }
.ar-reports a.ar-btn--solid:hover { border-color: #E6EFF8 !important; }
.ar-reports a.ar-btn--ghost { border: 2px solid var(--ar-on-navy-muted) !important; }

.ar-reports a.ar-link {
  padding: 0 !important;
  border: 0 !important;
  line-height: 1.3 !important;
  text-decoration: underline !important;
  text-underline-offset: 3px;
}

.ar-reports .ar-archive__list a {
  display: flex !important;
  align-items: center !important;
  padding: 0 16px !important;
  border: 1px solid var(--ar-border) !important;
  text-decoration: none !important;
}
.ar-reports .ar-archive__list a:hover { border-color: var(--ar-link) !important; }