/* Short section introduction; one name line and one coverage line per guide. */
.other-guides { margin: 14px 0 20px; scroll-margin-top: calc(var(--sticky-height, 0px) + 12px); }
.other-guides[hidden] { display: none; }
.other-guides:has(.other-guides__list), .other-guides:has(.other-guides__submit) { padding: 12px 16px; background: #fff; border: 1px solid #dedee5; border-radius: 12px; }
.other-guides__heading { display: flex; align-items: center; gap: 8px; margin: 0; color: var(--navy-blue, #0D1E40); font-size: 16px; line-height: 24px; font-weight: 700; }
.other-guides__heading::before { content: ""; flex: 0 0 20px; height: 20px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230D1E40' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 6v13M12 6C9 4 6 4 3 5v13c3-1 6-1 9 1 3-2 6-2 9-1V5c-3-1-6-1-9 1Z'/%3E%3C/svg%3E") center / 20px 20px no-repeat; }
.other-guides__header { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "intro submit"; align-items: center; gap: 16px; margin-bottom: 10px; }
.other-guides__header:not(:has(.other-guides__submit)) { grid-template-columns: minmax(0, 1fr); grid-template-areas: "intro"; }
.other-guides__introduction { grid-area: intro; min-width: 0; }
.other-guides__intro { margin: 3px 0 0; color: #58617b; font-size: 12px; line-height: 17px; }
.other-guides__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; border-top: 1px solid #e9e9ee; }
/* Publisher colors identify the resource with a small accent, not a filled bar. */
.other-guide { --guide-bg: #fff; --guide-ink: #0D1E40; --guide-fine: #58617b; --guide-accent: #7797c5; min-width: 0; position: relative; padding: 6px 10px 6px 12px; border-bottom: 1px solid #e9e9ee; background: var(--guide-bg); transition: background-color .15s ease; }
.other-guide:last-child { border-bottom: 0; }
.other-guide::before { content: ""; position: absolute; left: 0; top: 10px; bottom: 10px; width: 2px; border-radius: 2px; background: var(--guide-accent); }
.other-guide[data-guide-theme="thrive"] { --guide-accent: #629ea3; }
.other-guide[data-guide-theme="dfi"] { --guide-accent: #40b2cf; }
.other-guide[data-guide-theme="sway"] { --guide-accent: #8252a4; }
.other-guide:hover { background: #f7f8fb; }
.other-guide:focus-within { outline: 3px solid #234b8a; outline-offset: 2px; }
.other-guide__title { margin: 0; font-size: 15px; line-height: 21px; font-weight: 700; }
.other-guide__link { display: block; padding-right: 26px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--guide-ink); text-decoration: none; }
.other-guide__link::before { content: ""; position: absolute; inset: 0; }
.other-guide__link::after { content: "↗"; position: absolute; right: 8px; top: 50%; transform: translateY(-50%); color: #58617b; font-size: 18px; line-height: 24px; font-weight: 400; }
.other-guide__link:hover { text-decoration: underline; text-underline-offset: 3px; }
.other-guide__link:hover::after { color: var(--guide-ink); }
.other-guide__link:focus-visible { outline: 3px solid var(--ican-blue, #234b8a); outline-offset: 2px; }
.other-guide__coverage { margin: 1px 0 0; font-size: 12px; line-height: 17px; color: var(--guide-fine); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.other-guides__notice { margin: 0; color: #58617b; font-size: 12px; line-height: 17px; }
/* The ballot's outlined secondary action: no badge, gradient or shadow. */
.other-guides__submit { grid-area: submit; justify-self: end; display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 9px 15px; border: 1px solid #d2d2d7; border-radius: 20px; background: transparent; color: var(--navy-blue, #0D1E40); font: inherit; font-size: 12px; line-height: 20px; font-weight: 500; text-decoration: none; cursor: pointer; }
.other-guides__submit:hover { background: #eaeaec; }
.other-guides__submit:focus-visible { outline: 3px solid #234b8a; outline-offset: 2px; }
.guide-submit-dialog { width: min(440px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); box-sizing: border-box; margin: auto; padding: 24px; border: 1px solid #c8d8ef; border-radius: 16px; background: #fff; color: #0D1E40; box-shadow: 0 16px 60px #0d1e4033; }
.guide-submit-dialog::backdrop { background: #0d1e4070; }
.guide-submit-dialog h2 { margin: 0 35px 6px 0; font-size: 22px; line-height: 28px; }
.guide-submit-dialog p { margin: 0 0 18px; font-size: 13px; line-height: 20px; color: #58617b; }
.guide-submit-close { position: absolute; right: 10px; top: 10px; width: 40px; height: 40px; border: 0; background: none; color: #0D1E40; font-size: 26px; cursor: pointer; }
.guide-submit-form { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.guide-submit-form[hidden] { display: none; }
.guide-submit-form label { display: grid; gap: 5px; min-width: 0; font-size: 13px; font-weight: 600; }
.guide-submit-form input { width: 100%; min-width: 0; box-sizing: border-box; padding: 10px; font: inherit; font-size: 16px; border: 1px solid #ccd5e5; border-radius: 8px; color: #0D1E40; background: #fff; }
.guide-submit-source { margin: 0; padding: 0; border: 0; display: flex; gap: 20px; }
.guide-submit-source legend { margin-bottom: 6px; font-size: 13px; font-weight: 600; }
.guide-submit-source label { display: flex; align-items: center; gap: 6px; }
.guide-submit-source input { width: auto; min-height: auto; padding: 0; accent-color: #0D1E40; }
.guide-submit-form .guide-submit-consent { display: flex; align-items: flex-start; gap: 8px; font-weight: 400; line-height: 20px; }
.guide-submit-consent input { width: 18px; height: 18px; flex: none; margin: 1px 0 0; padding: 0; accent-color: #0D1E40; }
.guide-submit-form [hidden] { display: none; }
.guide-submit-form small { color: #58617b; font-weight: 400; }
.guide-submit-wide { grid-column: 1 / -1; }
.guide-submit-form button { min-height: 44px; margin-top: 4px; border: 0; border-radius: 9px; background: #173f7a; color: #fff; font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; }
.guide-submit-dialog input:focus-visible, .guide-submit-dialog button:focus-visible { outline: 3px solid #234b8a; outline-offset: 2px; }
.guide-submit-dialog #guide-submit-status { margin: 14px 0 0; }
@media (max-width: 380px) {
  .guide-submit-form { grid-template-columns: 1fr; }
  .guide-submit-dialog { padding: 20px; }
}
@media (max-width: 600px) {
  .other-guides__header { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "heading submit" "intro intro"; column-gap: 12px; row-gap: 2px; }
  .other-guides__header:not(:has(.other-guides__submit)) { grid-template-columns: minmax(0, 1fr); grid-template-areas: "heading" "intro"; }
  .other-guides__introduction { display: contents; }
  .other-guides__heading { grid-area: heading; display: block; position: relative; padding-left: 26px; font-size: 15px; line-height: 21px; }
  .other-guides__heading::before { position: absolute; left: 0; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; background-size: 18px 18px; }
  .other-guides__intro { grid-area: intro; }
  .other-guides__submit { padding-inline: 12px; }
}
@media (max-width: 340px) {
  .other-guides:has(.other-guides__list) { padding-inline: 12px; }
  .other-guides__heading { padding-left: 0; font-size: 15px; line-height: 22px; }
  .other-guides__heading::before { display: none; }
}
@media print {
  .other-guides__submit, .guide-submit-dialog { display: none !important; }
  .other-guides:not(:has(.other-guides__list)) { display: none !important; }
  .other-guides:has(.other-guides__list) { background: #fff; border-color: #aab6cc; box-shadow: none; }
  .other-guide { break-inside: avoid; background-image: none; box-shadow: none; }
  .other-guide { --guide-bg: #fff !important; --guide-ink: #0D1E40 !important; --guide-fine: #58617b !important; }
  .other-guides[hidden] { display: none !important; }
}
@media (prefers-reduced-motion: reduce) { .other-guide { transition: none; } }

/* Staff county-guide review. */
.guides-review { max-width: 1160px; }
.guides-review h1 { margin-bottom: 12px; }
.guides-review h2 { font-size: 21px; margin: 28px 0 14px; }
.guides-review .operations-links { display: flex; flex-wrap: wrap; gap: 20px; margin: 18px 0 26px; }
.guides-review .operations-links a { color: #0D1E40; text-underline-offset: 4px; }
.guides-explainer { max-width: 860px; font-size: 13px; line-height: 1.65; color: #58617b; }
.guides-status { min-height: 1.4em; font-size: 14px; color: #0D1E40; }
.guides-status[data-tone="error"] { color: #9b1c1c; }
.guides-filters { display: flex; align-items: end; flex-wrap: wrap; gap: 12px; margin-bottom: 14px; }
.guides-filters label, .guides-form label { display: grid; gap: 6px; color: #0D1E40; font-size: 13px; font-weight: 600; }
.guides-filters select, .guides-form input, .guides-form select, .guides-form textarea { padding: 10px 12px; font: inherit; font-size: 16px; border: 1px solid #d7d7de; border-radius: 8px; background: #fff; color: #0D1E40; min-width: 0; }
.guides-form textarea { min-height: 80px; }
.guides-form fieldset { border: 1px solid #e2e2e7; border-radius: 10px; padding: 12px; display: flex; flex-wrap: wrap; gap: 8px 16px; }
.guides-form fieldset label { display: inline-flex; align-items: center; gap: 6px; font-weight: 500; }
.guides-form { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.guides-form .guides-form__wide { grid-column: 1 / -1; }
.guides-form button, .guides-actions button, .guides-filters button, .guides-pager button { min-height: 44px; }
.guides-review button:not(.secondary-button):not(.text-button) { padding: 10px 18px; border: 1px solid var(--navy-blue, #0D1E40); border-radius: 22px; background: var(--navy-blue, #0D1E40); color: #fff; font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; }
.guides-review .secondary-button { min-height: 44px; font-size: 13px; }
.guides-review button:disabled { opacity: .45; cursor: not-allowed; }
.guides-review button:focus-visible, .guides-review select:focus-visible, .guides-review input:focus-visible, .guides-review textarea:focus-visible { outline: 3px solid var(--ican-blue, #234b8a); outline-offset: 2px; }
.guides-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.guides-case { display: grid; grid-template-columns: 1fr auto; gap: 8px 16px; align-items: center; padding: 14px 16px; border: 1px solid #dedee5; border-radius: 12px; background: #fff; overflow-wrap: anywhere; }
.guides-case__title { margin: 0; font-size: 15px; color: #0D1E40; }
.guides-case__meta { margin: 4px 0 0; font-size: 12px; color: #58617b; }
.guides-badge { display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: 11px; font-weight: 700; background: #eef1f6; color: #24324d; margin-right: 6px; }
.guides-badge[data-status="approved"] { background: #e3f4ec; color: #065f46; }
.guides-badge[data-status="rejected"], .guides-badge[data-status="suspended"], .guides-badge[data-status="expired"] { background: #fbe9e9; color: #8a1c1c; }
.guides-badge[data-publication="publish"] { background: #e6eefc; color: #173f7a; }
.guides-pager { display: flex; gap: 12px; margin-top: 12px; }
.guides-detail { margin-top: 24px; padding: 22px; border: 1px solid #dedee5; border-radius: 14px; background: #fff; overflow-wrap: anywhere; }
.guides-detail[hidden] { display: none; }
.guides-detail dl { display: grid; grid-template-columns: max-content 1fr; gap: 6px 14px; font-size: 13px; margin: 0; }
.guides-detail dt { color: #58617b; font-weight: 600; }
.guides-detail dd { margin: 0; color: #1c2740; }
.guides-panel { margin-top: 20px; padding: 16px; border: 1px solid #e2e2e7; border-radius: 12px; }
.guides-panel h3 { margin: 0 0 8px; font-size: 16px; color: #0D1E40; }
.guides-panel--publication { border-color: #b9c8e6; background: #f7f9fd; }
.guides-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 10px; }
.guides-history { margin: 0; padding-left: 20px; font-size: 13px; line-height: 1.6; }
.guides-receipt { font-size: 13px; color: #1c2740; }
@media (max-width: 480px) {
  .guides-case { grid-template-columns: 1fr; }
  .guides-detail { padding: 16px; }
  .guides-detail dl { grid-template-columns: 1fr; }
}

.guides-case__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.guides-review .guides-case__actions button.guides-deny { background: #fff; color: #8a1c1c; border-color: #d8b9bd; }
.guides-editing { margin: 16px 0 0; }
.guides-editing > summary { color: #173f7a; font-weight: 600; cursor: pointer; }
.guides-editing > dl, .guides-editing > .guides-history { margin-top: 12px; }
