/* DCA write-ins uses the same page structure as the main nomination grid.
   Keep the sitewide navigation, themes, cards and sidebar; avoid the generic
   main > header navy hero and main > section framing. */
html.lfv-sitewide main.lfv-writeins {
  box-sizing: border-box;
  width: calc(100% - 2 * var(--lfv-gutter, 24px)) !important;
  max-width: 1440px !important;
  margin: 0 auto 56px !important;
  padding: clamp(24px, 3.2vw, 42px) clamp(16px, 2.1vw, 28px) 70px !important;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  color: var(--lfv-ink, #0c1d38) !important;
  letter-spacing: normal;
}
html.lfv-sitewide .lfv-writeins-eyebrow {
  margin: 0 0 26px !important;
  color: var(--lfv-gold, #caa326) !important;
  font-size: .82rem !important;
  font-weight: 800;
  letter-spacing: .07em;
  line-height: 1.4;
}
html.lfv-sitewide .lfv-writeins-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 270px);
  align-items: start;
  gap: clamp(20px, 3vw, 42px);
  width: 100%;
}
html.lfv-sitewide .lfv-writeins-main { min-width: 0; }
html.lfv-sitewide .lfv-writeins-main > h1 {
  margin: 0 0 12px !important;
  font-size: clamp(1.7rem, 3.5vw, 2.5rem) !important;
  font-weight: 850 !important;
  line-height: 1.16 !important;
  letter-spacing: -.03em !important;
  text-transform: none !important;
  color: var(--lfv-ink, #0c1d38) !important;
}
html.lfv-sitewide .lfv-writeins-lead {
  max-width: 64ch;
  margin: 0 0 18px !important;
  font-size: .96rem !important;
  line-height: 1.58 !important;
  color: var(--lfv-muted, #566477) !important;
  text-transform: none !important;
}
html.lfv-sitewide .lfv-writeins-directory {
  box-sizing: border-box;
  padding: clamp(18px, 2.8vw, 34px);
  background: var(--lfv-surface, #fff) !important;
  color: var(--lfv-ink, #0c1d38) !important;
  border: 1px solid var(--lfv-line, #cad4e0) !important;
  border-top: 3px solid var(--lfv-gold, #caa326) !important;
  border-radius: 3px !important;
  box-shadow: none !important;
  min-width: 0;
}
html.lfv-sitewide .lfv-writeins-heading {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
  margin: 0 0 16px;
}
html.lfv-sitewide .lfv-writeins-heading h2 {
  margin: 0 !important;
  font-size: clamp(1rem, 1.7vw, 1.18rem) !important;
  font-weight: 850 !important;
  line-height: 1.25 !important;
  letter-spacing: 0 !important;
  text-transform: uppercase !important;
  color: var(--lfv-ink, #0c1d38) !important;
}
html.lfv-sitewide .lfv-writeins-heading > span {
  font-size: .79rem; color: var(--lfv-muted, #566477);
  font-variant-numeric: tabular-nums;
}
html.lfv-sitewide .lfv-writeins-search { margin: 0 0 10px; }
html.lfv-sitewide .lfv-writeins-search label {
  display: block; font-size: .77rem; font-weight: 750; margin: 0 0 7px;
  color: var(--lfv-ink, #0c1d38);
}
html.lfv-sitewide .lfv-writeins-search-row { display: flex; align-items: stretch; gap: 10px; }
html.lfv-sitewide .lfv-writeins-search input {
  box-sizing: border-box; flex: 1; min-width: 0;
  border: 1px solid var(--lfv-line, #cad4e0); border-radius: 7px;
  background: var(--lfv-surface, #fff); color: var(--lfv-ink, #0c1d38);
  padding: 10px 13px; font: inherit; font-size: .84rem;
}
html.lfv-sitewide .lfv-writeins-search .lfv-writeins-button {
  padding: 10px 16px; min-height: 42px;
  background: var(--lfv-gold, #caa326);
  color: var(--lfv-navy, #0b1c36) !important;
  border: none; border-radius: 7px;
  font: inherit; font-size: .78rem; font-weight: 850; cursor: pointer;
}
html.lfv-sitewide .lfv-writeins-clear {
  display: inline-block; margin: 7px 0 0; font-size: .78rem;
  color: var(--lfv-ink, #0c1d38); text-underline-offset: 3px;
}
html.lfv-sitewide .lfv-writeins-note {
  margin: 8px 0 15px;
  font-size: .75rem;
  color: var(--lfv-muted, #566477);
  line-height: 1.4;
}
html.lfv-sitewide .lfv-writeins-grid {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  align-items: start;
  gap: 13px !important;
  max-width: 100%;
}
html.lfv-sitewide .lfv-writeins-card {
  box-sizing: border-box; min-width: 0;
  display: flex; flex-direction: column; gap: 9px;
  padding: 16px;
  background: var(--lfv-surface, #fff) !important;
  color: var(--lfv-ink, #0c1d38) !important;
  border: 1px solid var(--lfv-line, #cad4e0) !important;
  border-radius: 9px; box-shadow: none !important;
  overflow-wrap: anywhere;
}
html.lfv-sitewide .lfv-writeins-card-title {
  margin: 0 !important;
  font-size: .98rem !important;
  line-height: 1.35 !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
  font-weight: 850 !important;
  color: var(--lfv-ink, #0c1d38) !important;
}
html.lfv-sitewide .lfv-writeins-card-status {
  margin: 0 !important;
  color: var(--lfv-muted, #566477) !important;
  font-size: .7rem;
  font-weight: 700; line-height: 1.36;
}
html.lfv-sitewide .lfv-writeins-action { min-width: 0; margin: 0; padding: 0; }
html.lfv-sitewide .lfv-writeins-action form { margin: 0; }
html.lfv-sitewide .lfv-writeins-action-link {
  box-sizing: border-box;
  display: inline-flex; align-items: center; flex-wrap: wrap; gap: 5px;
  padding: 2px 0; margin: 0;
  border: 0 !important; border-radius: 0 !important;
  background: transparent !important;
  color: var(--lfv-ink, #0c1d38) !important;
  text-align: left; font: inherit; font-size: .77rem !important;
  font-weight: 800 !important; line-height: 1.35 !important;
  text-decoration: none; cursor: pointer;
  box-shadow: none !important;
}
html.lfv-sitewide .lfv-writeins-action-link:hover {
  text-decoration: underline; text-underline-offset: 3px;
}
html.lfv-sitewide .lfv-writeins-action-link:focus-visible {
  outline: 3px solid var(--lfv-gold, #caa326); outline-offset: 3px;
}
html.lfv-sitewide .lfv-writeins-preview {
  display: grid; gap: 7px; list-style: none;
  padding: 10px 0 0; margin: 0;
  border-top: 1px solid var(--lfv-line, #cad4e0);
}
html.lfv-sitewide .lfv-writeins-preview li {
  display: flex; justify-content: space-between; align-items: start;
  gap: 8px; line-height: 1.38; font-size: .78rem;
  min-width: 0;
}
html.lfv-sitewide .lfv-writeins-preview-name {
  min-width: 0; overflow-wrap: anywhere;
}
html.lfv-sitewide .lfv-writeins-preview-total {
  flex-shrink: 0; color: var(--lfv-muted, #566477);
  font-size: .73rem; font-variant-numeric: tabular-nums;
}
html.lfv-sitewide .lfv-writeins-no-nominees,
html.lfv-sitewide .lfv-writeins-more,
html.lfv-sitewide .lfv-writeins-support-count,
html.lfv-sitewide .lfv-writeins-closed {
  margin: 0; font-size: .73rem; line-height: 1.4;
  color: var(--lfv-muted, #566477);
}
html.lfv-sitewide .lfv-writeins-about {
  border-top: 1px solid var(--lfv-line, #cad4e0);
  margin-top: 3px; padding: 8px 0 0;
}
html.lfv-sitewide .lfv-writeins-about > summary {
  cursor: pointer; color: var(--lfv-ink, #0c1d38); font-size: .74rem; font-weight: 750;
}
html.lfv-sitewide .lfv-writeins-about p {
  font-size: .76rem; line-height: 1.48; margin: 8px 0 2px;
  color: var(--lfv-muted, #566477);
}
html.lfv-sitewide .lfv-writeins-empty { grid-column: 1/-1; font-size: .85rem; }
html.lfv-sitewide .lfv-writeins-back { margin: 20px 0; }
html.lfv-sitewide .lfv-writeins-back a {
  color: var(--lfv-ink, #0c1d38); text-underline-offset: 3px; font-size: .83rem;
}
html.lfv-sitewide .lfv-writeins-rules-aside {
  box-sizing: border-box;
  padding: 17px;
  background: var(--lfv-surface, #fff) !important;
  border: 1px solid var(--lfv-line, #cad4e0);
  border-radius: 9px;
  color: var(--lfv-ink, #0c1d38);
}
html.lfv-sitewide .lfv-writeins-rules-aside h2 {
  margin: 0 0 10px !important;
  font-size: .94rem !important; font-weight: 850 !important;
  line-height: 1.25 !important; letter-spacing: 0 !important;
  text-transform: uppercase !important;
  color: var(--lfv-ink, #0c1d38) !important;
}
html.lfv-sitewide .lfv-writeins-rules-aside p {
  margin: 0 0 11px;
  color: var(--lfv-muted, #566477);
  font-size: .8rem; line-height: 1.56;
  text-transform: none;
}
html.lfv-sitewide .lfv-writeins-rules-aside strong { color: var(--lfv-ink, #0c1d38); }
html.lfv-sitewide .lfv-writeins-rule-details {
  border-top: 1px solid var(--lfv-line, #cad4e0); padding-top: 10px;
  font-size: .78rem; line-height: 1.48;
}
html.lfv-sitewide .lfv-writeins-rule-details summary {
  display: flex; justify-content: space-between; align-items: center;
  cursor: pointer; font-weight: 750; list-style: none;
}
html.lfv-sitewide .lfv-writeins-rule-details summary::-webkit-details-marker { display: none; }
html.lfv-sitewide .lfv-writeins-rule-details[open] summary span { transform: rotate(45deg); }
html.lfv-sitewide .lfv-writeins-rule-details ol {
  margin: 11px 0 0; padding-left: 18px;
}
html.lfv-sitewide .lfv-writeins-rule-details li { padding: 2px 0; }
/* Keep the same three-across grid as Official Top 25 even with the sidebar.
   Break to two only once the sidebar moves below the categories. */
@media (max-width: 1110px) and (min-width: 781px) {
  html.lfv-sitewide .lfv-writeins-layout {
    grid-template-columns: minmax(0,1fr) 220px;
    gap: 20px;
  }
}
@media (max-width: 780px) {
  html.lfv-sitewide .lfv-writeins-layout { grid-template-columns: 1fr; }
  html.lfv-sitewide .lfv-writeins-rules-aside { order: 2; }
  html.lfv-sitewide .lfv-writeins-main { order: 1; }
}
@media (max-width: 700px) {
  html.lfv-sitewide .lfv-writeins-grid {
    grid-template-columns: repeat(2, minmax(0,1fr)) !important;
  }
}
@media (max-width: 560px) {
  html.lfv-sitewide main.lfv-writeins { padding: 20px 10px 44px !important; }
  html.lfv-sitewide .lfv-writeins-grid { grid-template-columns: 1fr !important; }
  html.lfv-sitewide .lfv-writeins-search-row { gap: 7px; }
  html.lfv-sitewide .lfv-writeins-search .lfv-writeins-button { padding: 9px 12px; }
  html.lfv-sitewide .lfv-writeins-directory { padding: 17px 14px; }
}

/* Write-in activation is a POST for unactivated categories. Generic sitewide
   button[type="submit"] styling must not turn this inline navigation into a
   large gold CTA. Anchor and submit variants should look identical. */
html.lfv-sitewide main.lfv-writeins .lfv-writeins-grid .lfv-writeins-card .lfv-writeins-action :is(
  a.lfv-writeins-action-link,
  button[type="submit"].lfv-writeins-action-link
) {
  box-sizing: border-box !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 5px !important;
  width: auto !important;
  max-width: 100% !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 2px 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: var(--lfv-ink, #0c1d38) !important;
  box-shadow: none !important;
  font-family: inherit !important;
  font-size: .77rem !important;
  font-weight: 800 !important;
  line-height: 1.35 !important;
  letter-spacing: normal !important;
  text-transform: none !important;
  text-align: left !important;
  text-decoration: none !important;
  white-space: normal !important;
  cursor: pointer;
}
html.lfv-sitewide main.lfv-writeins .lfv-writeins-grid .lfv-writeins-card .lfv-writeins-action :is(
  a.lfv-writeins-action-link,
  button[type="submit"].lfv-writeins-action-link
):hover {
  background: transparent !important;
  color: var(--lfv-ink, #0c1d38) !important;
  text-decoration: underline !important;
  text-underline-offset: 3px;
}
html.lfv-sitewide main.lfv-writeins .lfv-writeins-grid .lfv-writeins-card .lfv-writeins-action :is(
  a.lfv-writeins-action-link,
  button[type="submit"].lfv-writeins-action-link
):focus-visible {
  background: transparent !important;
  outline: 3px solid var(--lfv-gold, #caa326) !important;
  outline-offset: 3px !important;
}


/* Keep both awards directories on the *same actual card component*.
   Main nominations uses this partial as well: dca_nomination_grid_card.html. */
html.lfv-sitewide main.lfv-writeins .lfv-writeins-grid .lfv-dca-grid-card {
  min-width:0;
  display:flex;
  flex-direction:column;
  gap:10px;
  padding:17px;
  border:1px solid var(--lfv-line,#cad4e0);
  border-radius:9px;
  background:var(--lfv-surface,#fff);
  color:var(--lfv-ink,#0c1d38);
  box-shadow:none;
  overflow-wrap:anywhere;
}
html.lfv-sitewide main.lfv-writeins .lfv-writeins-grid .lfv-dca-grid-open {
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  gap:9px;
  width:100%;
  margin:0;
  padding:0;
  border:0;
  border-radius:0;
  background:transparent;
  color:inherit;
  font:inherit;
  text-align:left;
  cursor:pointer;
}
html.lfv-sitewide main.lfv-writeins .lfv-writeins-grid .lfv-dca-grid-open:hover .lfv-dca-grid-title {
  text-decoration:underline;
  text-underline-offset:3px;
}
html.lfv-sitewide main.lfv-writeins .lfv-writeins-grid .lfv-dca-grid-open:focus-visible {
  outline:3px solid var(--lfv-gold,#caa326);
  outline-offset:5px;
}
html.lfv-sitewide main.lfv-writeins .lfv-writeins-grid .lfv-dca-grid-title {
  font-size:.98rem;
  line-height:1.35;
  font-weight:850;
  overflow-wrap:anywhere;
}
html.lfv-sitewide main.lfv-writeins .lfv-writeins-grid .lfv-dca-grid-status {
  font-size:.7rem;
  line-height:1.35;
  font-weight:650;
  color:var(--lfv-muted,#566477);
}
html.lfv-sitewide main.lfv-writeins .lfv-writeins-grid .lfv-dca-grid-cta {
  display:inline-block;
  margin-top:auto;
  padding-top:2px;
  font-size:.77rem;
  font-weight:800;
  line-height:1.35;
  color:var(--lfv-ink,#0c1d38);
}
html.lfv-sitewide main.lfv-writeins .lfv-writeins-grid .lfv-dca-grid-preview {
  display:grid;
  gap:7px;
  margin:0;
  padding:10px 0 0;
  border-top:1px solid var(--lfv-line,#cad4e0);
  list-style:none;
}
html.lfv-sitewide main.lfv-writeins .lfv-writeins-grid .lfv-dca-grid-preview li {
  display:flex;
  justify-content:space-between;
  align-items:start;
  gap:8px;
  font-size:.78rem;
  line-height:1.35;
  overflow-wrap:anywhere;
}
html.lfv-sitewide main.lfv-writeins .lfv-writeins-grid .lfv-dca-grid-preview li span:last-child {
  flex-shrink:0;
  font-size:.73rem;
  color:var(--lfv-muted,#566477);
  font-variant-numeric:tabular-nums;
}
html.lfv-sitewide main.lfv-writeins .lfv-writeins-grid .lfv-dca-grid-empty {
  margin:0;
  font-size:.77rem;
  color:var(--lfv-muted,#566477);
}
html.lfv-sitewide dialog.lfv-dca-category-dialog .lfv-dca-verify-link {
  display:inline-block;
  margin-top:8px;
  color:var(--lfv-ink,#0c1d38);
  font-size:.9rem;
  font-weight:750;
  text-underline-offset:4px;
}
