/* http://meyerweb.com/eric/tools/css/reset/ 
   v2.0 | 20110126
   License: none (public domain)
*/

html,
body,
div,
span,
applet,
object,
iframe,
h1,
h2,
h3,
h4,
h5,
h6,
p,
blockquote,
pre,
a,
abbr,
acronym,
address,
big,
cite,
code,
del,
dfn,
em,
img,
ins,
kbd,
q,
s,
samp,
small,
strike,
strong,
sub,
sup,
tt,
var,
b,
u,
i,
center,
dl,
dt,
dd,
ol,
ul,
li,
fieldset,
form,
label,
legend,
table,
caption,
tbody,
tfoot,
thead,
tr,
th,
td,
article,
aside,
canvas,
details,
embed,
figure,
figcaption,
footer,
header,
hgroup,
menu,
nav,
output,
ruby,
section,
summary,
time,
mark,
audio,
video {
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 100%;
  font: inherit;
  vertical-align: baseline;
}

/* HTML5 display-role reset for older browsers */
article,
aside,
details,
figcaption,
figure,
footer,
header,
hgroup,
menu,
nav,
section {
  display: block;
}

body {
  line-height: 1;
}

ol,
ul {
  list-style: none;
}

blockquote,
q {
  quotes: none;
}

blockquote:before,
blockquote:after,
q:before,
q:after {
  content: '';
  content: none;
}

table {
  border-collapse: collapse;
  border-spacing: 0;
}

/* TABLES, FOR REAL */
table {
  width: 100%;
  text-align: left;
  border-collapse: collapse;
  overflow: hidden;
  border-radius: 8px;
  background: #eee;
}

table thead {
  background-color: #e8e8e8;
  font-weight: 600;
}

table th,
table td {
  padding: 0.5rem;
}


/* TOP LEVEL */
html {
  font-family: 'Work Sans', sans-serif;
  color: #333;
}

body {
  background-color: #fff;
}

main {
  width: 87.5%;
  max-width: 720px;
  margin: 0 auto;
  padding-top: 0;
  padding-bottom: 4rem;
}

article {
  padding-top: 2rem;
  padding-bottom: 2rem;
}


/* Header section */
h1 {
  font-size: 1.75rem;
  line-height: 2rem;
  font-weight: 700;
  color: #000;
  padding-bottom: 1rem;
}

.header h1 a {
  color: #000;
  text-decoration: none;
  transition: color 0.2s ease;
}

.header h1 a:hover {
  color: #312E81;
  transition: color 0.2s ease;
}

.canceled .header h1 a {
  color: #999;
  font-weight: 600;
}

.canceled .header h1 a:hover {
  color: #312E81;
}

.canceled time {
  color: #999;
}

h2 {
  font-size: 1.5rem;
  line-height: 1.75rem;
  font-weight: 600;
  color: #121212;
  padding-bottom: 1rem;
}

/** Make h1 smaller on smaller screens */
@media (max-width: 600px) {
  h1 {
    font-size: 1.5rem;
  }

  h2 {
    font-size: 1.25rem;
  }
}

time {
  font-size: 1rem;
  line-height: 1.5rem;
  color: #888;
}

summary.department {
  font-size: 1rem;
  line-height: 1.5rem;
  font-weight: 500;
  color: #555;
}


/* Content section */
.content {
  margin-top: 2rem;
  margin-bottom: 2rem;
}

.content p {
  font-size: 1.2rem;
  line-height: 1.8rem;
  padding-bottom: 1rem;
}

/** Make p smaller on smaller screens */
@media (max-width: 600px) {
  .content p {
    font-size: 1.1rem;
    line-height: 1.5rem;
  }
}


/* Selection */
form {
  position: sticky;
  top: 0rem;
  right: 0rem;
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
  padding-left: 1rem;
  padding-right: 1rem;
  border-bottom-left-radius: 8px;
  border-bottom-right-radius: 8px;
  background-color: #ddd;
  z-index: 50;
}

form>div {
  width: 87.5%;
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: row;
  /* center the content along the cross axis */
  align-items: center;
}

form .flex-end {
  flex-grow: 1;
  justify-self: end;
  text-align: right;
}

label {
  font-size: 1rem;
  font-weight: 400;
  color: #666;
  margin-right: 1rem;
}

select {
  font-size: 1rem;
  padding-left: 1rem;
  padding-right: 2rem;
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
  border-radius: 8px;
  border: 1px solid #DDD;
  background-color: #FFF;
  color: #666;
  transition: background-color 0.2s ease, color 0.2s ease;

  /** Clean up the dropdown arrow */
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;

  /** Add my own dropdown arrow */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%234F46E6'%3E%3Cpath d='M8 10.586L4.707 7.293a1 1 0 00-1.414 1.414l4 4a1 1 0 001.414 0l4-4a1 1 0 00-1.414-1.414L8 10.586z'/%3E%3C/svg%3E");

  /** Make it centered on the right. */
  background-position: right 0.5rem center;
  background-repeat: no-repeat;
}

option {
  color: #666;
}


/* NAVIGATION */
a {
  color: #4F46E5;
  text-decoration: underline;
  transition: background-color 0.2s ease, color 0.2s ease;
}

a:hover {
  color: #312E81;
  text-decoration: underline;
}


a.more-link {
  text-decoration: none;
  font-size: 1.1rem;
  color: #FFF;
  background-color: #4F46E6;
  border-radius: 8px;
  padding: 0.5rem 1rem;
  display: inline-block;
}

a.more-link.secondary {
  background-color: #999;
}

a.more-link.space {
  margin-top: 2rem;
}

a.more-link:hover {
  background-color: #312E81;
}

a.view-link {
  text-decoration: none;
  font-size: 0.75rem;
  color: #FFF;
  background-color: #4F46E6;
  border-radius: 8px;
  padding: 0.5em 1em;
  display: inline-block;
  border: 1px solid #4F46E6;
}

a.view-link:hover {
  background-color: #312E81;
  border-color: #312E81;
}


/** Title section. */
.title {
  position: relative;
  padding: 2rem 0 1.75rem;
  margin-bottom: 0;
  border-bottom: 1px solid #ddd;
  background-color: #fff;
}

.title-eyebrow {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #999;
  margin-bottom: 0.35rem;
}

.title h1 {
  font-size: 2.25rem;
  line-height: 2.5rem;
  font-weight: 900;
  color: #121212;
}

.title-tagline {
  font-family: 'Inconsolata', monospace;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #999;
  margin-top: 0.6rem;
  margin-bottom: 0;
}

.tagline-dot {
  display: inline-block;
  font-size: 1.4em;
  line-height: 1;
  vertical-align: middle;
  margin: 0 0.25em;
  color: #ccc;
  font-family: serif;
}

.title .data-source {
  font-size: 0.9rem;
  color: #666;
  margin-top: 0.5rem;
}

.title .data-source a {
  color: #4F46E5;
}


/** Breadcrumbs **/

.breadcrumbs ul {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  list-style: none;
  padding: 0;
  margin: 0;
}

.breadcrumbs ul li {
  opacity: 0.5;
  transition: opacity 0.2s ease;
}

.breadcrumbs ul li.current {
  font-weight: 500;
}

.breadcrumbs ul li:hover {
  opacity: 1;
  transition: opacity 0.2s ease;
}

/** Put a slash between each breadcrumb. */

.breadcrumbs li+li:before {
  content: ' / ';
  padding: 0 0.5rem;
}


/* Crawl watermark */
.crawl-watermark {
  font-size: 0.85rem;
  line-height: 1.4rem;
  margin-bottom: 1.5rem;
}

.crawl-watermark p {
  margin: 0;
}

/* Bill entry cards */
.bill-entry {
  padding: 1.5rem 0;
  border-bottom: 1px solid #ddd;
  background: #fff;
}

.bill-entry:first-child {
  padding-top: 2rem;
}

h4.action-type {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #4F46E5;
  padding-bottom: 0.5rem;
}

.bill-entry .bill-meta {
  font-size: 0.9rem;
  color: #666;
  padding-bottom: 0.25rem;
}

.bill-entry time {
  display: block;
  padding-bottom: 0.25rem;
}

.bill-entry .bill-action-date {
  font-size: 0.85rem;
  color: #888;
}

.bill-next-step {
  font-size: 0.85rem;
  color: #888;
  margin-top: 0.15rem;
}

.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 0.75rem;
  padding: 0.35rem 0.75rem;
  background: transparent;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 400;
  color: #6b7280;
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s;
}

.share-btn:hover {
  border-color: #9ca3af;
  color: #374151;
}

.share-btn-confirm {
  color: #16a34a;
  font-weight: 500;
}

.bill-entry .bill-committee {
  font-size: 0.95rem;
  font-weight: 500;
  color: #555;
  padding-bottom: 0.75rem;
}

.bill-entry .content {
  margin-top: 1rem;
  margin-bottom: 0.5rem;
}

.bill-entry .content p {
  font-size: 1.1rem;
  line-height: 1.7rem;
  padding-bottom: 0.75rem;
}

.bill-entry .content h2 {
  font-size: 1.25rem;
  line-height: 1.5rem;
  font-weight: 700;
  color: #121212;
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}

/* Accordion for informational legislation */
.bill-accordion {
  margin-top: 0.25rem;
}

.bill-accordion summary {
  display: flex;
  align-items: center;
  cursor: pointer;
  list-style: none;
}

.bill-accordion summary::-webkit-details-marker {
  display: none;
}

.bill-accordion summary .accordion-title {
  font-size: 1.5rem;
  line-height: 1.75rem;
  font-weight: 700;
  color: #000;
}

.bill-accordion summary::after {
  content: '\25B6';
  margin-left: 0.75rem;
  font-size: 0.75rem;
  color: #4F46E5;
  transition: transform 0.2s ease;
  flex-shrink: 0;
}

.bill-accordion[open] summary::after {
  transform: rotate(90deg);
}

.bill-accordion .accordion-body {
  padding-top: 0.75rem;
}

/* Next update section */
.next-update {
  margin-top: 3rem;
  padding: 1.5rem;
  text-align: center;
  background: #eee;
  border-radius: 8px;
}

.next-update p {
  font-size: 1.15rem;
  font-weight: 600;
  color: #3730A3;
}

.hidden {
  display: none;
}

/* ---- Council bill status badge ---- */

.bill-status {
  display: inline-flex;
  align-items: center;
  gap: 0.35em;
  margin-left: 0.6em;
  padding: 0.15em 0.55em;
  border-radius: 4px;
  background-color: #EEF2FF;
  color: #4338CA;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  vertical-align: middle;
  white-space: nowrap;
}

/* Color variants by status text */
.bill-status:has(.bill-status-info[data-status="passed"]) {
  background-color: #DCFCE7;
  color: #166534;
}
.bill-status:has(.bill-status-info[data-status="signed"]) {
  background-color: #CCFBF1;
  color: #115E59;
}
.bill-status:has(.bill-status-info[data-status="vetoed"]),
.bill-status:has(.bill-status-info[data-status="failed"]) {
  background-color: #FEE2E2;
  color: #991B1B;
}

/* The ⓘ icon */
.bill-status-info {
  position: relative;
  display: inline-flex;
  align-items: center;
  cursor: help;
  flex-shrink: 0;
}

.bill-status-icon {
  width: 1.1em;
  height: 1.1em;
  display: block;
}

/* Pure-CSS tooltip */
.bill-status-tooltip {
  visibility: hidden;
  opacity: 0;
  position: absolute;
  bottom: calc(100% + 0.5rem);
  left: 50%;
  transform: translateX(-50%);
  background-color: #1E1B4B;
  color: #fff;
  font-size: 0.8rem;
  font-weight: 400;
  line-height: 1.45;
  text-transform: none;
  letter-spacing: 0;
  padding: 0.5rem 0.75rem;
  border-radius: 6px;
  width: max-content;
  max-width: 240px;
  white-space: normal;
  text-align: left;
  pointer-events: none;
  transition: opacity 0.15s ease;
  z-index: 100;
}

/* Small arrow pointing down from tooltip */
.bill-status-tooltip::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 5px solid transparent;
  border-top-color: #1E1B4B;
}

.bill-status-info:hover .bill-status-tooltip {
  visibility: visible;
  opacity: 1;
}


/* ---- Council vote map ---- */

.vote-map-title {
  font-size: 1.25rem;
  line-height: 1.5rem;
  font-weight: 700;
  color: #121212;
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
  margin: 0;
}

.bill-vote-map {
  margin-top: 1rem;
  margin-bottom: 0.5rem;
}

.bill-map-canvas {
  width: 100%;
  height: 340px;
  border-radius: 6px;
  overflow: hidden;
  background: #f3f4f6;
  position: relative;
}

.bill-map-pending-overlay {
  position: absolute;
  bottom: 0.75rem;
  left: 0;
  right: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.bill-map-pending-text {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid #d1d5db;
  border-radius: 6px;
  padding: 0.4rem 0.9rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: #6b7280;
  text-align: center;
  letter-spacing: 0.02em;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}

/* At-large member vote row (displayed above the map) */
.bill-vote-at-large {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 0.5rem;
}

.at-large-label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #888;
  margin-right: 0.25rem;
}

.at-large-vote {
  font-size: 0.78rem;
  font-weight: 500;
  padding: 0.2em 0.6em;
  border-radius: 4px;
  white-space: nowrap;
}

.at-large-vote.vote-yes {
  background-color: #dcfce7;
  color: #166534;
}

.at-large-vote.vote-no {
  background-color: #fee2e2;
  color: #991b1b;
}

.at-large-vote.vote-absent {
  background-color: #f3f4f6;
  color: #4b5563;
}

.at-large-pos {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  opacity: 0.65;
  margin-right: 0.2em;
}

/* ---- Vote map hover popup ---- */

.vote-popup .maplibregl-popup-content {
  padding: 0.5rem 0.75rem;
  border-radius: 6px;
  font-family: inherit;
  font-size: 0.82rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  line-height: 1.4;
}

.vp-district {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #6b7280;
  margin-bottom: 0.15rem;
}

.vp-name {
  font-weight: 600;
  color: #111827;
  margin-bottom: 0.15rem;
}

.vp-vote {
  font-weight: 500;
  padding: 0.1em 0.4em;
  border-radius: 3px;
  display: inline-block;
}

.vp-yes  { background: #dcfce7; color: #166534; }
.vp-no   { background: #fee2e2; color: #991b1b; }
.vp-absent { background: #f3f4f6; color: #4b5563; }
.vp-upcoming { background: #eff6ff; color: #1d4ed8; }
.vp-vote-unknown { background: #1f2937; color: #f9fafb; }

.vp-amendment {
  margin-top: 0.35rem;
  font-size: 0.75rem;
  color: #374151;
  font-style: italic;
  max-width: 200px;
}

.vp-amendment-vote {
  margin-top: 0.2rem;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.1rem 0.35rem;
  border-radius: 3px;
  display: inline-block;
}


/* ---- Vote status labels (below map) ---- */

/* ---- Amendment table ---- */

.amendment-section-title {
  font-size: 0.9rem;
  font-weight: 400;
  color: #6b7280;
  margin: 1.25rem 0 0.5rem;
}

.vote-member-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.82rem;
  margin-bottom: 1rem;
}

.vote-member-table th {
  text-align: left;
  font-weight: 600;
  padding: 0.35rem 0.6rem 0.35rem 0;
  border-bottom: 2px solid #e5e7eb;
  color: #374151;
}

.vote-member-table td {
  padding: 0.4rem 0.6rem 0.4rem 0;
  border-bottom: 1px solid #f3f4f6;
  color: #374151;
  vertical-align: middle;
}

.vote-member-table tr:last-child td {
  border-bottom: none;
}

.vote-seat {
  color: #6b7280;
  white-space: nowrap;
}

.vote-amendment {
  text-align: center;
  color: #6b7280;
}

.vote-result {
  font-weight: 500;
  white-space: nowrap;
}

.vote-yes  { color: #15803d; }
.vote-no   { color: #b91c1c; }
.vote-absent { color: #9ca3af; }
.vote-unknown { color: #9ca3af; }
.vote-non-committee { color: #9ca3af; font-weight: 300; }

.vote-row-non-committee td {
  color: #9ca3af;
  font-weight: 300;
}

.amendment-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
  border-top: 1px solid #e5e7eb;
  background: transparent;
  border-radius: 0;
}

.amendment-table thead {
  background: transparent;
  font-weight: inherit;
}

.amendment-table th {
  text-align: left;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #9ca3af;
  background: transparent;
  border-bottom: 1px solid #e5e7eb;
  padding: 0.3rem 0.6rem 0.3rem 0;
}

.amendment-table td {
  vertical-align: top;
  padding: 0.45rem 0.6rem 0.45rem 0;
  border-bottom: 1px solid #e5e7eb;
  background: transparent;
  color: #374151;
}

.amendment-table tr:last-child td {
  border-bottom: none;
}

.amendment-table .amendment-text {
  font-style: italic;
  font-weight: 300;
}

.amendment-table .amendment-date {
  white-space: nowrap;
  color: #9ca3af;
  font-size: 0.8rem;
}

.no-amendments {
  margin-top: 0.75rem;
}

/* ---- Pagination ---- */

.pagination-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 2.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid #e5e7eb;
  gap: 1rem;
}

.pagination-link {
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  color: #1d4ed8;
}

.pagination-link:hover {
  text-decoration: underline;
}

.pagination-disabled {
  color: #d1d5db;
  cursor: default;
}

.pagination-info {
  font-size: 0.85rem;
  color: #6b7280;
  white-space: nowrap;
}


.vote-status-result {
  margin-top: 0.75rem;
  padding: 0.4rem 0.75rem;
  display: inline-block;
  background: #f3f4f6;
  border-radius: 4px;
  font-size: 0.85rem;
  font-weight: 500;
  color: #374151;
}

/* ---- Action date label ---- */

.bill-action-date-label {
  font-weight: 600;
  color: #555;
}


/* ---- Full-viewport intro panel ---- */

.intro-panel {
  position: relative;
  height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background-color: #b8c9d4; /* fallback if image doesn't load */
  padding: 2rem 1.5rem 5rem;
  box-sizing: border-box;
}

.intro-page {
  font-family: 'Cormorant Garamond', Georgia, serif;
  color: #0f0e0c;
  max-width: 1100px;
  width: 100%;
  background: #f7f3ec;
  border: 1px solid #c8bfaa;
  padding: 2rem 2.5rem;
  position: relative;
  overflow-y: auto;
  max-height: calc(100vh - 8rem);
  box-shadow: 0 2px 40px rgba(15,14,12,0.08), 0 0 0 5px #f7f3ec, 0 0 0 6px #c8bfaa;
  box-sizing: border-box;
}

/* Corner marks */
.intro-page::before,
.intro-page::after {
  content: '';
  position: absolute;
  width: 16px;
  height: 16px;
  border-color: #8b1a1a;
  border-style: solid;
  pointer-events: none;
}
.intro-page::before {
  top: -1px;
  left: -1px;
  border-width: 2px 0 0 2px;
}
.intro-page::after {
  bottom: -1px;
  right: -1px;
  border-width: 0 2px 2px 0;
}

/* Label row */
.intro-label-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.intro-label-tag {
  font-family: 'Inconsolata', monospace;
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #8b1a1a;
  border: 1px solid #8b1a1a;
  padding: 0.2rem 0.5rem;
  flex-shrink: 0;
}

.intro-label-line {
  flex: 1;
  height: 1px;
  background: #c8bfaa;
}

.intro-label-date {
  font-family: 'Inconsolata', monospace;
  font-size: 0.6rem;
  letter-spacing: 0.12em;
  color: #6b6355;
  flex-shrink: 0;
}

/* Two-column layout */
.intro-columns {
  display: grid;
  grid-template-columns: 1fr 1px 1fr;
  column-gap: 2rem;
  align-items: start;
}

.intro-col-divider {
  background: #e6e0d4;
  align-self: stretch;
}

/* Section marker */
.intro-section-marker {
  font-family: 'Inconsolata', monospace;
  font-size: 0.55rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #6b6355;
  margin-bottom: 0.5rem;
  display: block;
}

/* Headings */
.intro-head {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.55rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: #0f0e0c;
  margin-bottom: 0.75rem;
}

.intro-head em {
  font-style: italic;
  font-weight: 300;
  color: #8b1a1a;
}

/* Body text */
.intro-body {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 0.95rem;
  font-weight: 300;
  line-height: 1.65;
  color: #0f0e0c;
  margin-bottom: 0.6rem;
}

.intro-body strong {
  font-weight: 600;
}

/* Evidence blockquote */
.intro-evidence-block {
  border-left: 2px solid #8b1a1a;
  padding: 0.5rem 0 0.5rem 1rem;
  margin-top: 0.75rem;
}

.intro-evidence-block p {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 0.88rem;
  font-style: italic;
  font-weight: 300;
  line-height: 1.6;
  color: #0f0e0c;
  padding-bottom: 0;
}

.intro-evidence-block cite {
  display: block;
  font-family: 'Inconsolata', monospace;
  font-size: 0.58rem;
  font-style: normal;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #6b6355;
  margin-top: 0.4rem;
}

/* Arendt dark quote block */
.intro-arendt-block {
  background: #0f0e0c;
  color: #f7f3ec;
  padding: 1.1rem 1.4rem;
  margin-top: 0.75rem;
  position: relative;
}

.intro-arendt-block::before {
  content: '\201C';
  font-family: 'Cormorant Garamond', serif;
  font-size: 3.5rem;
  font-weight: 300;
  line-height: 1;
  color: #8b1a1a;
  position: absolute;
  top: 0.1rem;
  left: 1rem;
  opacity: 0.6;
  pointer-events: none;
}

.intro-arendt-quote {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 0.93rem;
  font-weight: 300;
  font-style: italic;
  line-height: 1.6;
  padding-left: 1rem;
  padding-top: 0.75rem;
  color: #f7f3ec;
}

.intro-arendt-attr {
  font-family: 'Inconsolata', monospace;
  font-size: 0.58rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #9a9080;
  margin-top: 0.6rem;
  padding-left: 1rem;
  display: block;
}

/* Footer row */
.intro-footer-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 1.25rem;
  padding-top: 0.9rem;
  border-top: 1px solid #e6e0d4;
}

.intro-footer-line {
  flex: 1;
}

.intro-footer-text {
  font-family: 'Inconsolata', monospace;
  font-size: 0.55rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #c8bfaa;
}

/* Chevron scroll button */
@keyframes intro-chevron-bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(7px); }
}

.intro-chevron {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  background: none;
  border: none;
  cursor: pointer;
  color: #ffffff;
  padding: 0.4rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  animation: intro-chevron-bounce 2.2s ease-in-out infinite;
  transition: color 0.2s ease, opacity 0.2s ease;
  opacity: 0.85;
}

.intro-chevron:hover {
  color: #ffffff;
  opacity: 1;
}

.intro-chevron-label {
  font-family: 'Inconsolata', monospace;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  white-space: nowrap;
}

/* Mobile: single column */
@media (max-width: 768px) {
  .intro-page {
    padding: 1.5rem 1.25rem;
  }

  .intro-columns {
    grid-template-columns: 1fr;
  }

  .intro-col-divider {
    display: none;
  }

  .intro-head {
    font-size: 1.35rem;
  }
}


/* ============================================================
   Summary Evaluations page
   ============================================================ */

/* Link in calendar title section */
.title-eval-link {
  margin-top: 0.75rem;
  font-size: 0.9rem;
}

.title-eval-link a {
  color: #4f46e5;
  text-decoration: none;
  font-weight: 500;
  letter-spacing: 0.01em;
}

.title-eval-link a:hover {
  text-decoration: underline;
}

/* Legend block */
.eval-legend {
  margin: 2rem 0 2.5rem;
  padding: 1.25rem 1.5rem;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
}

.eval-legend-title {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #6b7280;
  margin-bottom: 0.75rem;
}

.eval-legend-grid {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 0.3rem 1.25rem;
  font-size: 0.85rem;
  margin: 0 0 0.75rem;
}

.eval-legend-grid dt {
  font-weight: 600;
  color: #1f2937;
  white-space: nowrap;
}

.eval-legend-grid dd {
  color: #4b5563;
  margin: 0;
}

.eval-legend-note {
  font-size: 0.8rem;
  color: #6b7280;
  margin: 0;
  line-height: 1.5;
}

/* Table layout */
.eval-table {
  width: 100%;
  margin-top: 1rem;
}

.eval-table-header,
.eval-row-summary {
  display: grid;
  grid-template-columns: 7rem 1fr 8rem 8rem 2rem;
  align-items: center;
  gap: 0 1rem;
  padding: 0.55rem 0.75rem;
}

.eval-table-header {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #6b7280;
  border-bottom: 2px solid #e5e7eb;
}

/* Expandable row */
.eval-row {
  border-bottom: 1px solid #f3f4f6;
}

.eval-row-summary {
  cursor: pointer;
  list-style: none;
  font-size: 0.9rem;
  color: #111827;
  transition: background 0.1s;
}

.eval-row-summary::-webkit-details-marker {
  display: none;
}

.eval-row-summary:hover {
  background: #f9fafb;
}

.eval-col-cb {
  font-weight: 600;
  font-size: 0.85rem;
  color: #374151;
  white-space: nowrap;
}

.eval-col-headline {
  line-height: 1.35;
}

.eval-col-score {
  text-align: center;
}

.eval-col-chevron {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #9ca3af;
}

.eval-chevron-icon {
  transition: transform 0.2s ease;
}

.eval-row[open] .eval-chevron-icon {
  transform: rotate(180deg);
}

/* Score badges */
.eval-score-badge {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
}

.eval-score-high {
  background: #dcfce7;
  color: #15803d;
}

.eval-score-mid {
  background: #fef9c3;
  color: #854d0e;
}

.eval-score-low {
  background: #fee2e2;
  color: #b91c1c;
}

.eval-score-pending {
  color: #9ca3af;
  font-size: 0.85rem;
}

/* Expanded body */
.eval-row-body {
  padding: 0.75rem 0.75rem 1.25rem 0.75rem;
  background: #fafafa;
}

/* Per-dimension bar graph blocks */
.eval-dim-block {
  padding: 0.65rem 0;
  border-bottom: 1px solid #f3f4f6;
}

.eval-dim-block:last-child {
  border-bottom: none;
}

.eval-dim-name {
  font-size: 0.8rem;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 0.45rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.eval-bars {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.eval-bar-row {
  display: grid;
  grid-template-columns: 7rem 1fr 2.5rem;
  align-items: center;
  gap: 0.6rem;
}

.eval-bar-axis {
  font-size: 0.72rem;
  color: #6b7280;
  text-align: right;
}

.eval-bar-track {
  height: 10px;
  background: #e5e7eb;
  border-radius: 999px;
  overflow: hidden;
}

.eval-bar-fill {
  height: 100%;
  border-radius: 999px;
  transition: width 0.4s ease;
}

.eval-bar-high { background: #16a34a; }
.eval-bar-mid  { background: #d97706; }
.eval-bar-low  { background: #dc2626; }

.eval-bar-value {
  font-size: 0.72rem;
  font-weight: 700;
  color: #374151;
  text-align: right;
}

.eval-dim-reasoning {
  margin-top: 0.45rem;
  font-size: 0.78rem;
  color: #4b5563;
  font-style: italic;
  font-weight: 300;
  line-height: 1.5;
}

/* Empty state */
.eval-empty {
  margin: 3rem 0;
  text-align: center;
  color: #6b7280;
}

.eval-empty p {
  margin: 0.5rem 0;
}

.eval-empty-hint {
  font-size: 0.85rem;
}

.eval-empty code {
  background: #f3f4f6;
  padding: 0.1rem 0.4rem;
  border-radius: 3px;
  font-size: 0.8rem;
  color: #374151;
}
