/* The State of Work in Louisiana: interactive data. All rules are scoped under .sowl so the
   stylesheet cannot leak into a host page if the markup is ever placed directly on an Omni page. */

.sowl {
  --purple: #694688;      /* Iris Purple: marks on white */
  --lsu-purple: #461D7C;  /* LSU Purple: headers, rules */
  --gold: #B07F0A;        /* marks on white (gold darkened from Mike Gold to keep 3:1 contrast) */
  --gold-brand: #D29F13;  /* on purple only */
  --green: #006F53;       /* Enchanted Forest */
  --ink: #333333;
  --ink2: #454440;
  --muted: #5A5956;
  --rule: #E6E5E1;
  --base: #D0D0CE;
  --deemph: #8C8A85;
  --paper: #FFFFFF;
  --wash: #F5F4F1;
  --nodata: #EEEDE8;
  --focus: #461D7C;
  font-family: "proxima-nova", "Proxima Nova", "Helvetica Neue", Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.5;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}
.sowl *, .sowl *::before, .sowl *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; background: #FFFFFF; }

.sowl .sowl-wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; }

/* header */
.sowl .sowl-head { background: var(--lsu-purple); color: #fff; padding: 22px 0 0; }
.sowl .sowl-kicker { font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--gold-brand); font-weight: 700; margin: 0 0 4px; }
.sowl .sowl-title { font-size: 28px; line-height: 1.15; margin: 0 0 6px; font-weight: 800; }
.sowl .sowl-sub { margin: 0 0 4px; font-size: 16px; color: #ECE6F4; max-width: 60em; }
.sowl .sowl-disclosure { margin: 0 0 14px; font-size: 13px; color: #D9CFE8; }
.sowl .sowl-sub-short { display: none; margin: 0 0 10px; font-size: 14px; font-weight: 700; }
.sowl .sowl-head a { color: #fff; }

/* tab bar: its own band under the header so it can stay at the top of the window while the
   page scrolls (when the dashboard is framed and the host page scrolls, it simply scrolls along) */
.sowl .sowl-tabbar { background: var(--lsu-purple); position: -webkit-sticky; position: sticky; top: 0; z-index: 50; }
.sowl .sowl-head { padding-bottom: 2px; }
.sowl.sowl-single .sowl-tabbar { display: none; }

/* tabs */
.sowl .sowl-tabs { display: flex; flex-wrap: wrap; gap: 2px; margin: 0; padding: 0; list-style: none; }
.sowl .sowl-tab { appearance: none; border: 0; background: transparent; color: #fff; font: inherit; font-size: 15px; font-weight: 700;
  padding: 10px 14px 11px; cursor: pointer; border-radius: 6px 6px 0 0; }
.sowl .sowl-tab:hover { background: rgba(255,255,255,.12); }
.sowl .sowl-tab[aria-selected="true"] { background: var(--paper); color: var(--lsu-purple); }
.sowl .sowl-tab:focus-visible { outline: 3px solid var(--gold-brand); outline-offset: -3px; }
.sowl.sowl-single .sowl-head { display: none; }

/* views */
.sowl .sowl-main { padding: 22px 0 30px; }
.sowl .sowl-view[hidden] { display: none; }
.sowl .sowl-view-title { font-size: 24px; line-height: 1.2; color: var(--lsu-purple); margin: 0 0 6px; font-weight: 800; }
.sowl .sowl-view-intro { margin: 0 0 18px; max-width: 54em; color: var(--ink2); }
.sowl h3.sowl-h { font-size: 19px; margin: 26px 0 8px; color: var(--ink); }

/* controls */
.sowl .sowl-controls { display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: flex-end; margin: 0 0 14px; }
.sowl .sowl-field { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.sowl .sowl-field > label, .sowl .sowl-field > .sowl-legend-label { font-size: 13px; font-weight: 700; color: var(--ink2); letter-spacing: .02em; }
.sowl select, .sowl input[type="search"], .sowl input[type="text"] { font: inherit; font-size: 15px; padding: 7px 10px; border: 1px solid #A9A7A2; border-radius: 6px;
  background: #fff; color: var(--ink); max-width: 100%; }
.sowl select:focus-visible, .sowl input:focus-visible, .sowl button:focus-visible, .sowl a:focus-visible, .sowl [tabindex]:focus-visible {
  outline: 3px solid var(--focus); outline-offset: 2px; }
.sowl .sowl-seg { display: inline-flex; border: 1px solid #A9A7A2; border-radius: 6px; overflow: hidden; }
.sowl .sowl-seg button { appearance: none; border: 0; border-right: 1px solid #A9A7A2; background: #fff; color: var(--ink); font: inherit; font-size: 14px; padding: 7px 12px; cursor: pointer; }
.sowl .sowl-seg button:last-child { border-right: 0; }
.sowl .sowl-seg button[aria-checked="true"] { background: var(--lsu-purple); color: #fff; font-weight: 700; }

/* figure */
.sowl .sowl-fig { margin: 0 0 26px; border-top: 2px solid var(--lsu-purple); padding-top: 10px; }
.sowl .sowl-fig-title { font-size: 18px; font-weight: 800; margin: 0 0 2px; color: var(--ink); line-height: 1.25; }
.sowl .sowl-fig-sub { font-size: 14px; color: var(--ink2); margin: 0 0 8px; }
.sowl .sowl-fig-body { position: relative; max-width: 860px; }
.sowl .sowl-fig-source { font-size: 12.5px; color: var(--ink2); margin: 8px 0 0; }
.sowl .sowl-fig-note { font-size: 13.5px; color: var(--ink2); margin: 6px 0 0; max-width: 56em; }
.sowl .sowl-fig-tools { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 0; }
.sowl .sowl-btn { appearance: none; font: inherit; font-size: 13px; font-weight: 700; color: var(--lsu-purple); background: #fff;
  border: 1px solid var(--lsu-purple); border-radius: 999px; padding: 4px 12px; cursor: pointer; }
.sowl .sowl-btn:hover { background: #F1ECF7; }
.sowl .sowl-btn[hidden] { display: none; }
.sowl .sowl-meta-btn { display: none; appearance: none; border: 0; background: none; font: inherit; font-size: 14px; font-weight: 700;
  color: var(--lsu-purple); text-decoration: underline; padding: 6px 0; margin: 4px 0 0; cursor: pointer; min-height: 32px; text-align: left; }

/* folded text (phones only; see the media query) */
.sowl .sowl-more { display: none; appearance: none; border: 0; background: none; font: inherit; font-size: 14px; font-weight: 700;
  color: var(--lsu-purple); text-decoration: underline; padding: 6px 0; margin: -10px 0 12px; cursor: pointer; min-height: 32px; }

/* previous and next section */
.sowl .sowl-pager { display: flex; justify-content: space-between; gap: 12px; margin: 30px 0 0; padding-top: 14px; border-top: 1px solid var(--rule); }
.sowl .sowl-page-btn { font-size: 14px; padding: 8px 14px; }
.sowl .sowl-page-btn.is-next { margin-left: auto; }
.sowl .sowl-table-wrap { margin-top: 10px; overflow-x: auto; max-height: 460px; overflow-y: auto; border: 1px solid var(--rule); }
.sowl .sowl-table-wrap[hidden] { display: none; }

/* svg charts */
.sowl svg.sowl-chart { display: block; width: 100%; height: auto; overflow: visible; font-family: inherit; }
.sowl svg.sowl-chart text { fill: var(--ink2); font-size: 12px; }
.sowl svg.sowl-chart .t-ink { fill: var(--ink); }
.sowl svg.sowl-chart .t-muted { fill: var(--muted); }
.sowl svg.sowl-chart .t-strong { font-weight: 700; fill: var(--ink); }
.sowl svg.sowl-chart .grid { stroke: var(--rule); stroke-width: 1; }
.sowl svg.sowl-chart .axis { stroke: var(--base); stroke-width: 1; }
.sowl svg.sowl-chart .v-lab { paint-order: stroke; stroke: #fff; stroke-width: 3px; stroke-linejoin: round; }
.sowl .sowl-chart-focus:focus-visible { outline: 3px solid var(--focus); outline-offset: 4px; }

/* map */
.sowl .sowl-map-wrap { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.sowl svg.sowl-map path.parish { stroke: #fff; stroke-width: .7; cursor: pointer; }
.sowl svg.sowl-map path.parish.area-mode { stroke-width: .25; }
.sowl svg.sowl-map path.outline { fill: none; stroke: #fff; stroke-width: 1.6; pointer-events: none; }
.sowl svg.sowl-map path.sel { fill: none; stroke: var(--ink); stroke-width: 2.4; pointer-events: none; }
.sowl svg.sowl-map path.hover { fill: none; stroke: var(--ink); stroke-width: 1.4; pointer-events: none; }
.sowl .sowl-legend { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 0; margin: 6px 0 0; font-size: 12px; color: var(--ink2); }
.sowl .sowl-legend-title { width: 100%; font-weight: 700; margin-bottom: 3px; font-size: 12.5px; }
.sowl .sowl-legend-item { display: flex; flex-direction: column; min-width: 46px; }
.sowl .sowl-legend-sw { height: 12px; }
.sowl .sowl-legend-lab { padding-top: 2px; white-space: nowrap; }
.sowl .sowl-legend-nodata { margin-left: 14px; display: flex; flex-direction: column; }

/* detail card */
.sowl .sowl-card { background: var(--wash); border-left: 4px solid var(--lsu-purple); padding: 14px 16px; }
.sowl .sowl-card h3, .sowl .sowl-card h4, .sowl .sowl-card h5, .sowl .sowl-card h6 { margin: 0 0 2px; font-size: 20px; font-weight: 800; color: var(--lsu-purple); }
.sowl .sowl-card .sowl-card-sub { margin: 0 0 10px; color: var(--ink2); font-size: 14px; }
.sowl .sowl-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px 16px; margin: 0; }
.sowl .sowl-stat { margin: 0; }
.sowl .sowl-stat dt { font-size: 12.5px; color: var(--ink2); font-weight: 700; }
.sowl .sowl-stat dd { margin: 0; font-size: 22px; font-weight: 800; color: var(--purple); line-height: 1.2; }
.sowl .sowl-stat dd small { display: block; font-size: 12.5px; font-weight: 400; color: var(--ink2); }

/* tables */
.sowl table.sowl-table { border-collapse: collapse; width: 100%; font-size: 14px; }
.sowl table.sowl-table caption { text-align: left; font-size: 13px; color: var(--ink2); padding: 6px 8px; caption-side: top; }
.sowl table.sowl-table th, .sowl table.sowl-table td { padding: 6px 10px; border-bottom: 1px solid var(--rule); text-align: left; vertical-align: top; }
.sowl table.sowl-table thead th { position: sticky; top: 0; background: #F1ECF7; color: var(--ink); font-size: 13px; z-index: 1; }
.sowl table.sowl-table tbody th { font-weight: 400; background: transparent; }
.sowl table.sowl-table td.num, .sowl table.sowl-table th.num { text-align: right; font-variant-numeric: tabular-nums; }
.sowl table.sowl-table th button { appearance: none; border: 0; background: none; font: inherit; font-weight: 700; color: inherit; cursor: pointer; padding: 0; text-align: inherit; }
.sowl table.sowl-table th button::after { content: ""; display: inline-block; width: 1em; color: var(--muted); }
.sowl table.sowl-table th[aria-sort="ascending"] button::after { content: " \25B2"; }
.sowl table.sowl-table th[aria-sort="descending"] button::after { content: " \25BC"; }
.sowl table.sowl-table tr.is-hl td, .sowl table.sowl-table tr.is-hl th { background: #F1ECF7; font-weight: 700; }

/* tooltip */
.sowl-tip { position: fixed; z-index: 9999; pointer-events: none; background: #fff; color: #333; border: 1px solid #C9C7C2; border-radius: 6px;
  box-shadow: 0 2px 10px rgba(0,0,0,.12); padding: 7px 10px; font: 13px/1.4 "proxima-nova", "Proxima Nova", "Helvetica Neue", Helvetica, Arial, sans-serif;
  max-width: 280px; }
.sowl-tip b { color: #461D7C; }
.sowl-tip[hidden] { display: none; }

/* footer */
.sowl .sowl-foot { border-top: 1px solid var(--rule); padding: 16px 0 28px; font-size: 13px; color: var(--ink2); }
.sowl .sowl-foot p { margin: 0 0 6px; max-width: 64em; }
.sowl a { color: var(--lsu-purple); }

.sowl .sowl-sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.sowl .sowl-two { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; }

@media (max-width: 760px) {
  .sowl .sowl-map-wrap, .sowl .sowl-two { grid-template-columns: minmax(0, 1fr); }
  /* compact header: kicker, title, credit line, report link */
  .sowl .sowl-title { font-size: 19px; margin-bottom: 4px; }
  .sowl .sowl-head { padding-top: 12px; }
  .sowl .sowl-kicker { font-size: 11px; margin-bottom: 2px; }
  .sowl .sowl-sub { display: none; }
  .sowl .sowl-sub-short { display: block; }
  .sowl .sowl-disclosure { font-size: 12px; margin-bottom: 6px; line-height: 1.4; }
  .sowl .sowl-main { padding-top: 16px; }

  /* long paragraphs show their first lines with a Read more button */
  .sowl .sowl-fold:not(.is-open):not(.no-fold) > p { display: -webkit-box; -webkit-box-orient: vertical;
    -webkit-line-clamp: var(--fold-lines, 3); line-clamp: var(--fold-lines, 3); overflow: hidden; }
  .sowl .sowl-fold:not(.no-fold) > .sowl-more, .sowl .sowl-fold.is-open > .sowl-more { display: inline-block; }

  .sowl .sowl-fold:not(.no-fold) > p { margin-bottom: 12px; }

  /* figure notes and sources fold behind a button placed right before them */
  .sowl .sowl-fig:not(.meta-open) > .sowl-fig-meta { display: none; }
  .sowl .sowl-meta-btn { display: block; }
  .sowl .sowl-meta-btn[hidden] { display: none; }

  /* larger touch targets; 16px text in form fields stops iPhones zooming in on focus */
  .sowl .sowl-btn { font-size: 14px; padding: 8px 14px; }
  .sowl .sowl-seg button { padding: 9px 14px; font-size: 15px; }
  .sowl select, .sowl input[type="search"], .sowl input[type="text"] { font-size: 16px; padding: 9px 10px; }
  .sowl .sowl-controls > .sowl-field { flex: 1 1 100%; }
  .sowl .sowl-controls > .sowl-field select, .sowl .sowl-controls > .sowl-field input { width: 100%; }
  .sowl .sowl-field > .sowl-seg { align-self: flex-start; max-width: 100%; }
  .sowl .sowl-pager { flex-wrap: wrap; }
  .sowl .sowl-tabs { flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; margin: 0 -16px; padding: 0 16px; }
  .sowl .sowl-tabs::-webkit-scrollbar { display: none; }
  .sowl .sowl-tab { padding: 9px 11px; font-size: 14px; white-space: nowrap; flex: 0 0 auto; }
  .sowl .sowl-view-intro { font-size: 15px; }
  .sowl .sowl-view-title { font-size: 21px; }
}
@media (prefers-reduced-motion: reduce) { .sowl * { transition: none !important; } }
@media print {
  .sowl .sowl-tabbar, .sowl .sowl-fig-tools, .sowl .sowl-pager, .sowl .sowl-more, .sowl .sowl-meta-btn { display: none !important; }
  .sowl .sowl-table-wrap { max-height: none !important; overflow: visible !important; }
  .sowl .sowl-fig-meta { display: block !important; }
  .sowl .sowl-fold > p { display: block !important; -webkit-line-clamp: none !important; overflow: visible !important; }
}
