/* Shared editor and frontend layout. No fixed card heights or scripted interaction. */
.ryn-contact-list, .ryn-office-details, .ryn-office-hours { box-sizing: border-box; min-width: 0; max-width: 100%; margin-block: 1.5rem; color: #24334a; font-size: 1rem; line-height: 1.7; overflow-wrap: anywhere; }
:is(.ryn-contact-list, .ryn-office-details, .ryn-office-hours) .ryn-block-heading { margin-block: 0 1rem; color: #24335e; line-height: 1.4; }
.ryn-contact-list ul.ryn-contact-grid { display: grid; grid-template-columns: repeat(var(--ryn-contact-columns, 2), minmax(0, 1fr)); gap: 1rem; padding: 0; margin: 0; list-style: none; }
.ryn-contact-list.ryn-contact-columns-1 { --ryn-contact-columns: 1; }
.ryn-contact-list.ryn-contact-columns-2 { --ryn-contact-columns: 2; }
.ryn-contact-list.ryn-contact-columns-3 { --ryn-contact-columns: 3; }
.ryn-contact-list li.ryn-contact-card, .ryn-office-details, .ryn-office-hours { box-sizing: border-box; min-width: 0; margin: 0; padding: clamp(1rem, 3vw, 1.5rem); border: 1px solid #718596; border-radius: 0.5rem; background: #fff; color: #24334a; }
.ryn-contact-list .ryn-contact-name, .ryn-office-details .ryn-contact-name { margin-block: 0 0.5rem; font-size: 1.1875rem; line-height: 1.5; }
.ryn-contact-card .ryn-contact-position { margin-block: 0 1rem; }
.ryn-contact-card .ryn-contact-details, .ryn-office-details .ryn-contact-details, .ryn-office-hours .ryn-hours-list { margin: 0; padding: 0; }
.ryn-contact-details .ryn-contact-detail { margin-block: 0.75rem; }
.ryn-contact-details dt, .ryn-office-hours .ryn-hours-list dt { margin: 0; font-weight: 700; }
.ryn-contact-details .ryn-contact-detail dd, .ryn-office-hours .ryn-hours-list dd { margin: 0; }
.ryn-contact-details a { display: inline-flex; align-items: center; box-sizing: border-box; min-height: 44px; max-width: 100%; padding-block: 0.4rem; color: #06688d; text-decoration: underline; text-underline-offset: 0.18em; white-space: normal; overflow-wrap: anywhere; }
.ryn-contact-details a:hover { color: #24335e; text-decoration-thickness: 3px; }
.ryn-contact-details a:focus-visible { outline: 3px solid #111 !important; outline-offset: 3px !important; box-shadow: 0 0 0 6px #fff !important; }
:is(.ryn-contact-card, .ryn-office-details, .ryn-office-hours) .ryn-contact-note { margin-block: 1rem 0; white-space: pre-line; }
.ryn-office-details .ryn-office-address { font-style: normal; }
.ryn-office-details .ryn-office-address > p { margin-block: 0 0.5rem; }
.ryn-office-hours .ryn-hours-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0.5rem 1.5rem; padding-block: 0.875rem; border-block-end: 1px solid #a6b5c2; }
.ryn-office-hours .ryn-hours-row:last-child { border-block-end: 0; }
.ryn-hours-edit-row { margin-block: 1rem; padding: 1rem; border: 1px solid #a6b5c2; }
.ryn-hours-edit-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.ryn-editor-help { font-size: 0.9375rem; }
@media (max-width: 800px) {
  .ryn-contact-list.ryn-contact-columns-3 ul.ryn-contact-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  .ryn-contact-list ul.ryn-contact-grid, .ryn-contact-list.ryn-contact-columns-3 ul.ryn-contact-grid { grid-template-columns: minmax(0, 1fr); }
  .ryn-office-hours .ryn-hours-row { grid-template-columns: minmax(0, 1fr); gap: 0.25rem; }
}
@media (forced-colors: active) {
  .ryn-contact-list li.ryn-contact-card, .ryn-office-details, .ryn-office-hours { border-color: CanvasText; }
  .ryn-contact-details a:focus-visible { outline-color: Highlight !important; }
}
@media print {
  .ryn-contact-list ul.ryn-contact-grid { display: block; }
  .ryn-contact-list li.ryn-contact-card { margin-block-end: 1rem; break-inside: avoid; }
}

/* Council, commissions and formatted text share the same responsive contact cards. */
.ryn-contact-list .ryn-list-term { margin-block: 0 1.25rem; font-size: 1rem; line-height: 1.7; }
.ryn-council-lines { margin-block: 1rem; }
.ryn-council-lines > p { margin-block: 0 0.5rem; }
.ryn-council-lines > ul { padding-inline-start: 1.5em; margin: 0; list-style: disc; }
.ryn-council-lines > ul > li { border: 0; padding: 0; margin-block: 0.35em; }
.ryn-contact-card .ryn-contact-formatted-note, .ryn-office-details .ryn-contact-formatted-note, .ryn-office-hours .ryn-contact-formatted-note { margin-block: 1rem 0; line-height: 1.7; overflow-wrap: anywhere; }
.ryn-contact-profile a, .ryn-contact-formatted-note a { color: #06688d; text-decoration: underline; text-underline-offset: 0.18em; overflow-wrap: anywhere; }
.ryn-contact-profile a { display: inline-flex; align-items: center; min-height: 44px; max-width: 100%; padding-block: 0.5rem; }
.ryn-contact-profile a:hover, .ryn-contact-formatted-note a:hover { text-decoration-thickness: 3px; }
.ryn-contact-profile a:focus-visible, .ryn-contact-formatted-note a:focus-visible { outline: 3px solid #111 !important; outline-offset: 3px !important; box-shadow: 0 0 0 6px #fff !important; }
.ryn-formatted-note-editor { margin-block: 1rem; padding: 0.75rem; border: 1px dashed #718596; }
.ryn-accessible-text { box-sizing: border-box; min-width: 0; max-width: 100%; margin-block: 1.5rem; padding: clamp(1rem, 3vw, 1.5rem); border: 1px solid #718596; border-radius: 0.5rem; background: #fff; color: #24334a; overflow-wrap: anywhere; }
.ryn-accessible-text.ryn-text-info { background: #edf2f6; border-inline-start: 4px solid #087ca7; }
.ryn-accessible-text.ryn-text-important { background: #fff6d8; border-inline-start: 4px solid #996800; }
.ryn-accessible-text.ryn-text-normal { font-size: 1.0625rem; }
.ryn-accessible-text.ryn-text-large { font-size: 1.25rem; }
.ryn-accessible-text .ryn-block-heading { margin-block: 0 1rem; color: #24335e; line-height: 1.4; }
.ryn-accessible-text .ryn-text-kind { margin-block: 0 0.5rem; font-weight: 700; }
.ryn-accessible-text .ryn-accessible-text-content { min-width: 0; max-width: 72ch; line-height: 1.8; }
.ryn-accessible-text-content > :first-child { margin-block-start: 0; }
.ryn-accessible-text-content > :last-child { margin-block-end: 0; }
.ryn-accessible-text-content a { color: #06688d; text-decoration: underline; text-underline-offset: 0.18em; }
.ryn-accessible-text-content a:hover { text-decoration-thickness: 3px; }
.ryn-accessible-text-content a:focus-visible { outline: 3px solid #111 !important; outline-offset: 3px !important; box-shadow: 0 0 0 6px #fff !important; }
@media (forced-colors: active) {
  .ryn-accessible-text { border-color: CanvasText; }
  .ryn-accessible-text a:focus-visible, .ryn-contact-profile a:focus-visible, .ryn-contact-formatted-note a:focus-visible { outline-color: Highlight !important; }
}
