/*
 * Executive_Orders_Layout.css
 * Executive Orders page (html/Executive_Orders.html): page title, filter
 * buttons, the Local Orders and Federal Orders sections and the document cards
 * that link to the PDFs in static/Executive Orders/.
 *
 * Visual style follows the home page: its white welcome section with the faded coat
 * of arms in the corner, the navy Montserrat title and the white cards of the
 * "Generation KPIs" band (css/Home_Layout.css). Navy carries the structure
 * (title, section titles, card edge, main button); yellow is the accent (title
 * and section rules, selected filter count).
 *
 * Layered over the Webflow stylesheet and css/Home_Layout.css like the other
 * content pages. All classes are namespaced eo-* so the Webflow stylesheet
 * does not restyle them. Filter behaviour: js/executiveOrders.js.
 */

/* ================= PAGE SHELL ================= */

.eo-page {
  --eo-navy: #001f3f;
  --eo-navy-light: #1f4e82;   /* View button, hover state */
  --eo-yellow: #fec629;
  --eo-text: #333;
  --eo-muted: #5a6678;
  --eo-line: #e6e9ee;
  --eo-tint: #f5f8fc;
  --eo-pdf-red: #c41230;

  width: 100%;
  /* Faded coat of arms pinned to the window's bottom-right corner: the same
     image and placement as the home page's welcome section (.section-59 in
     the Webflow stylesheet). */
  background-color: #fff;
  background-image: url("https://cdn.prod.website-files.com/69333daafe9f9dce3b5f291d/6949a7c29255305cfa220901_image%20310%20(2).png");
  background-position: 100% 100%;
  background-repeat: no-repeat;
  background-size: 25%;
  background-attachment: fixed;
  font-family: Montserrat, sans-serif;
  color: var(--eo-text);
}
.eo-page *,
.eo-page *::before,
.eo-page *::after {
  box-sizing: border-box;
}
.eo-inner {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 44px 24px 64px;
}

/* ================= TITLE ================= */

.eo-title {
  margin: 0;
  color: var(--eo-navy);
  font-family: inherit;
  font-size: 48px;
  font-weight: 700;
  line-height: 1.15;
  text-align: center;
}
/* Short yellow rule under the title */
.eo-title::after {
  content: "";
  display: block;
  width: 72px;
  height: 4px;
  margin: 16px auto 0;
  background: var(--eo-yellow);
}

/* ================= FILTER BUTTONS ================= */

.eo-filter {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin: 24px 0 0;
}
.eo-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  margin: 0;
  padding: 8px 18px;
  background: #fff;
  border: 1.5px solid var(--eo-navy);
  border-radius: 999px;
  color: var(--eo-navy);
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
}
.eo-chip:hover {
  background: #e8eef6;
}
.eo-chip:focus-visible,
.eo-btn:focus-visible {
  outline: 3px solid var(--eo-yellow);
  outline-offset: 2px;
}
.eo-chip[aria-pressed="true"] {
  background: var(--eo-navy);
  color: #fff;
}
/* Count: navy on the white (unselected) buttons, yellow on the navy (selected) one */
.eo-chip-count {
  min-width: 26px;
  padding: 3px 8px;
  background: var(--eo-navy);
  border-radius: 999px;
  color: #fff;
  font-size: 12.5px;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
}
.eo-chip[aria-pressed="true"] .eo-chip-count {
  background: var(--eo-yellow);
  color: var(--eo-navy);
}

/* ================= SECTION ================= */

.eo-series {
  margin-top: 36px;
}
.eo-series[hidden] {
  display: none;
}
/* Section title: flag of the issuing government, navy title, full-width yellow rule */
.eo-series-title {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0;
  padding-bottom: 12px;
  border-bottom: 3px solid var(--eo-yellow);
  color: var(--eo-navy);
  font-family: inherit;
  font-size: 30px;
  font-weight: 700;
  line-height: 1.2;
}
.eo-series-flag {
  flex: none;
  width: auto;
  height: 28px;
  border: 1px solid #c9d1dc;
  border-radius: 3px;
}

/* ================= DOCUMENT CARDS ================= */

/* As many columns as fit, none narrower than 340px (one column on phones), so
   the layout follows any window width. */
.eo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr));
  gap: 20px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}
/* Each card is a size container: the rules under "CARD WIDTH" below adapt its
   contents to the card's own width, whatever the window size. */
.eo-card {
  container-type: inline-size;
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 20px 20px 18px;
  background: #fff;
  border: 1px solid #dfe5ee;
  border-top: 3px solid var(--eo-navy);
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(15, 23, 42, .08);
}

.eo-card-head {
  display: flex;
  align-items: center;
  gap: 14px;
}
.eo-card-icon {
  flex: none;
  width: 38px;
  height: 46px;
  color: var(--eo-pdf-red);
}
.eo-card-icon svg {
  display: block;
  width: 100%;
  height: 100%;
}
.eo-card-heading {
  flex: 1 1 auto;
  min-width: 0;
}
.eo-card-title {
  margin: 0;
  color: var(--eo-navy);
  font-family: inherit;
  font-size: 19px;
  font-weight: 700;
  line-height: 1.25;
}
/* A document titled with a sentence instead of an order number: set smaller,
   and it may run to several lines. */
.eo-card-title.eo-card-title--long {
  font-size: 15px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}
.eo-card-number {
  white-space: nowrap;
}

.eo-card-meta {
  margin: 16px 0 0;
  padding: 12px 0 0;
  border-top: 1px solid var(--eo-line);
}
.eo-card-meta > div {
  display: flex;
  gap: 10px;
  margin: 0 0 6px;
  font-size: 13.5px;
  line-height: 20px;
}
.eo-card-meta dt {
  flex: none;
  width: 70px;
  margin: 0;
  color: var(--eo-muted);
  font-weight: 600;
}
.eo-card-meta dd {
  flex: 1 1 auto;
  min-width: 0;
  margin: 0;
  color: var(--eo-text);
  font-weight: 500;
  white-space: nowrap;   /* keeps a start - end range on one line */
}

/* Buttons sit on the card's bottom edge so a row of cards lines them up. */
.eo-card-actions {
  display: flex;
  gap: 10px;
  margin-top: auto;
  padding-top: 12px;
}
.eo-btn {
  display: inline-flex;
  flex: 1 1 0;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 0;
  min-height: 42px;
  padding: 9px 8px;
  border: 1.5px solid var(--eo-navy);
  border-radius: 5px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
}
.eo-btn svg {
  flex: none;
  width: 16px;
  height: 16px;
}
.eo-btn--primary {
  background: var(--eo-navy);
  color: #fff;
}
.eo-btn--primary:hover {
  background: var(--eo-navy-light);
  border-color: var(--eo-navy-light);
  color: #fff;
}
.eo-btn--ghost {
  background: #fff;
  color: var(--eo-navy);
}
.eo-btn--ghost:hover {
  background: #e8eef6;
  color: var(--eo-navy);
}

/* ================= NARROWER WINDOWS ================= */

@media screen and (max-width: 991px) {
  .eo-page { background-size: 350px; }
  .eo-inner { padding: 36px 20px 56px; }
  .eo-title { font-size: 40px; }
  .eo-grid { gap: 16px; }
  .eo-series-title { font-size: 26px; }
  .eo-series-flag { height: 25px; }
}

@media screen and (max-width: 640px) {
  .eo-page { background-size: 300px; }
  .eo-inner { padding: 28px 14px 44px; }
  .eo-title { font-size: 32px; }
  .eo-title::after { width: 56px; margin-top: 12px; }
  .eo-filter { gap: 8px; margin-top: 22px; }
  .eo-chip { padding: 7px 13px; font-size: 13px; }
  .eo-series { margin-top: 28px; }
  .eo-series-title { gap: 11px; padding-bottom: 10px; font-size: 22px; }
  .eo-series-flag { height: 21px; }
  .eo-grid { gap: 14px; margin-top: 16px; }
  .eo-card { padding: 18px 16px 16px; }
}

/* Phones: no emblem, as on the home page */
@media screen and (max-width: 479px) {
  .eo-page { background-image: none; }
}

/* ================= CARD WIDTH =================
   The longest value, "November 12, 2025 - February 10, 2026", must stay on one
   line. Beside its label it needs about 345px inside the card; in a narrower
   card the label moves above the value, and in the narrowest cards (small
   phones) the text is set slightly smaller. Widths below are the space inside
   the card (its width minus padding and border). */

@container (max-width: 344px) {
  .eo-card-meta > div {
    display: block;
    margin-bottom: 8px;
  }
  .eo-card-meta dt {
    width: auto;
    font-size: 12px;
    line-height: 17px;
  }
}
@container (max-width: 267px) {
  .eo-card-title { font-size: 17px; }
  .eo-card-meta dd { font-size: 12.5px; }
}
@container (max-width: 247px) {
  .eo-card-head { gap: 10px; }
  .eo-card-icon { width: 30px; height: 36px; }
  .eo-card-title { font-size: 16px; }
  .eo-card-meta dd { font-size: 11.5px; }
  .eo-btn { font-size: 13px; padding-left: 4px; padding-right: 4px; gap: 6px; }
}
/* Narrower than any current phone (under about 290px of window) */
@container (max-width: 227px) {
  .eo-card-title { font-size: 15px; }
  .eo-card-meta dd { font-size: 10px; }
}
@container (max-width: 199px) {
  .eo-card-meta dd { white-space: normal; }
}
