/* Scoped information views; header measurements also protect the existing map. */
:root { --affm-masthead-height: 65px; --affm-header-height: 130px; }
#top-bar { height: auto; min-height: 65px; flex-wrap: wrap; gap: 8px 20px; padding: 5px 20px; }
#top-bar > a { flex: 0 0 auto; }
#top-bar img { height: 55px; width: auto; max-width: 100%; margin: 0; }
#affm_notice_controls { margin-left: auto; display: flex; align-items: center; justify-content: flex-end; gap: 10px; flex-wrap: wrap; }
#affm_notice_controls a { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 9px 14px; border: 1px solid; border-radius: 4px; text-decoration: none; font-weight: 700; line-height: 1.25; text-align: center; }
.affm-info-permanent { background: white; color: #31553b; border-color: #476c50 !important; }
.affm-info-badges { display: flex; gap: 10px; }
.affm-info-badge { background: #fff1e6; color: #754313; border-color: #e4c8ad !important; }
.affm-info-badge-icon { display: block; flex: 0 0 34px; width: 34px; height: 28px; margin-right: 8px; overflow: hidden; mix-blend-mode: darken; }
.affm-info-count { display: inline-flex; align-items: center; justify-content: center; min-width: 24px; min-height: 24px; padding: 2px 6px; margin-left: 8px; background: #e8eee5; border-radius: 16px; }
.navbar { margin-top: var(--affm-masthead-height) !important; height: auto !important; min-height: 65px !important; }
div.outer { top: var(--affm-header-height); }
#controls { top: calc(var(--affm-header-height) + 14px); }
#colonyPanel { top: calc(var(--affm-header-height) + 5px); }
#affm-existing-pages[hidden], #affm_information[hidden], #affm-copy-address[hidden] { display: none !important; }
.affm-info-active .navbar-nav > li.active > a { box-shadow: none; }
#affm_information { font: 16px/1.55 Arial, sans-serif; background: #f7f9f6; color: #293e30; min-height: calc(100vh - var(--affm-header-height)); padding: 16px 24px 48px; }
#affm_information_content { max-width: 1160px; margin: 0 auto; }
#affm_information h1 { font-size: 36px; line-height: 1.2; margin: 18px 0 14px; font-weight: 700; }
#affm_information h2, .affm-info-entry h2 { font-size: 25px; line-height: 1.3; margin: 0 0 14px; font-weight: 700; }
#affm_information h3 { font-size: 21px; line-height: 1.35; margin: 0 0 12px; font-weight: 700; }
#affm_information p { margin: 0 0 14px; }
#affm_information a { color: #315f43; text-decoration: underline; text-underline-offset: 3px; overflow-wrap: anywhere; }
#affm_information section { margin-bottom: 26px; }
#affm_information li { margin-bottom: 10px; }
#affm_information h1 { scroll-margin-top: calc(var(--affm-masthead-height) + 16px); }
.affm-info-kicker { font-size: 12px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: #52624f; }
.affm-info-lead { max-width: 900px; font-size: 18px; }
.affm-info-main { min-width: 0; margin-top: 24px; }
.affm-info-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin: 18px 0 30px; }
.affm-info-threat-grid, .affm-info-further-grid { display: flex; flex-wrap: wrap; gap: 18px; }
.affm-info-threat-grid > .affm-info-card { flex: 1 1 calc((100% - 36px) / 3); min-width: 0; }
.affm-info-further-grid > * { flex: 1 1 calc((100% - 18px) / 2); min-width: 0; }
#affm_information .affm-info-further { margin-top: 36px; }
#affm_information .affm-info-further-grid > * { margin: 0; }
.affm-info-panel, .affm-info-card, .affm-info-entry { background: #fff; border: 1px solid #d6dfd7; border-left: 5px solid #6a785f; border-radius: 5px; padding: 22px; margin: 0 0 22px; overflow-wrap: anywhere; }
.affm-info-card { margin: 0; display: flex; flex-direction: column; align-items: flex-start; }
.affm-info-card .affm-info-action { margin-top: auto; }
.affm-info-card-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; width: 100%; margin-bottom: 12px; }
#affm_information .affm-info-card-heading h3 { flex: 1; min-width: 0; margin: 0; }
.affm-info-threat-icon { display: block; flex: 0 0 76px; width: 76px; height: 64px; overflow: hidden; mix-blend-mode: darken; }
.affm-info-incident-feature { display: grid; grid-template-columns: minmax(0, 1fr) 220px; gap: 28px; align-items: center; }
.affm-info-incident-copy { min-width: 0; }
.affm-info-report-figure { margin: 0; }
.affm-info-report-layout { display: grid; grid-template-columns: minmax(0, 2fr) minmax(240px, 1fr); gap: 28px; align-items: stretch; }
.affm-info-report-copy { min-width: 0; }
.affm-info-article { margin-top: 24px; }
.affm-info-report-media { position: relative; min-width: 0; min-height: 0; }
.affm-info-report-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; object-position: top right; border-radius: 3px; }
#affm_information .affm-info-report-figure figcaption { margin-top: 18px; font-size: 14px; line-height: 1.5; color: #526457; }
.affm-info-incident-portrait { display: block; width: auto; max-width: 100%; height: 300px; object-fit: contain; justify-self: center; }
.affm-info-observation-photo { display: block; width: 100%; height: auto; margin: 14px 0 18px; border-radius: 4px; }
.affm-info-blue { background: #edf5fc; border-color: #bdd2e4; border-left-color: #356a98; }
.affm-info-green { background: #f0f5ee; border-color: #c7d7c0; border-left-color: #55754b; }
.affm-info-orange { background: #fff1e6; border-color: #e4c8ad; border-left-color: #a65c20; }
.affm-info-red { background: #fdeeee; border-color: #e5bbbb; border-left-color: #b63d37; }
.affm-info-history { background: #eff2ef; border-left-color: #69776c; }
.affm-info-entry { margin-top: 28px; font: 16px/1.5 Arial, sans-serif; }
.affm-info-entry a { color: #244f76; }
.affm-info-action { display: inline-flex; align-items: center; min-height: 44px; padding: 10px 14px; border: 1px solid currentColor; border-radius: 4px; font-weight: 700; line-height: 1.4; background: #fff; text-decoration: none !important; max-width: 100%; }
.affm-info-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 16px; margin: 12px 0; }
.affm-info-small, .affm-info-sources { font-size: 14px; color: #526457; }
.affm-info-inat-widget { display: block; width: 100%; height: 430px; border: 0; }
#affm_information .affm-info-small { margin-top: 12px; }
#affm_information details { margin-top: 18px; }
#affm_information summary { cursor: pointer; min-height: 44px; padding: 10px 0; font-weight: 700; }
.affm-info-return { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-bottom: 16px; }
.affm-info-return a { padding: 10px 0; min-height: 44px; }
.affm-info-preview { border: 1px dashed #8b9caa; border-radius: 4px; padding: 4px 14px; color: #455965; margin: 12px 0 24px !important; background: #eef3f6; }
.affm-info-preview .form-group { max-width: 340px; }
.affm-info-status { font-weight: 700; font-size: 14px; }
.affm-info-share { border-top: 1px solid #d6dfd7; margin-top: 32px; padding-top: 18px; }
.affm-info-share button { min-height: 44px; padding: 8px 16px; color: #315f43; background: white; border: 1px solid #6a785f; border-radius: 4px; }
.affm-info-share input { width: 100%; padding: 10px; }
#affm_information :focus-visible, #affm_notice_controls a:focus-visible, .affm-info-entry a:focus-visible { outline: 3px solid #224f80; outline-offset: 3px; }
.affm-info-skip { position: fixed; left: 12px; top: -100px; z-index: 999999; padding: 12px; background: white; color: #224f80; }
.affm-info-skip:focus { top: 5px; }
@media (max-width: 1100px) {
  .navbar-header { float: none; }
  .navbar-toggle { display: block; float: left; margin-left: 15px; min-height: 44px; min-width: 70px; }
  .navbar-toggle .icon-bar { display: none; }
  .navbar-toggle:before, .navbar-toggle[aria-expanded='true']:before { content: 'Menu'; font: 700 16px Arial, sans-serif; color: #484848; }
  .navbar-collapse.collapse { display: none !important; }
  .navbar-collapse.collapse.in { display: block !important; margin: 0 15px 10px; border: 1px solid #d6dfd7; }
  .navbar-nav { display: block; float: none !important; margin: 0; }
  .navbar-nav > li { float: none; }
  .navbar-nav > li > a { height: auto !important; min-height: 44px; padding: 12px 16px !important; }
  .navbar-collapse .dropdown-menu { position: static; float: none; }
}
@media (max-width: 850px) {
  .affm-info-badges { display: none; }
  .affm-info-threat-grid > .affm-info-card { flex-basis: calc((100% - 18px) / 2); }
  .affm-info-further-grid > * { flex-basis: 100%; }
  .affm-info-incident-feature { grid-template-columns: minmax(0, 1fr) 160px; gap: 18px; }
  .affm-info-incident-portrait { height: 240px; }
  #affm_information { padding: 12px 18px 36px; }
}
@media (max-width: 700px) {
  .affm-info-report-layout { grid-template-columns: minmax(0, 1fr); gap: 22px; }
  .affm-info-report-media img { position: static; width: 100%; height: auto; max-height: 440px; object-position: center; }
}
@media (max-width: 540px) {
  #top-bar { padding: 5px 12px; gap: 6px; }
  #top-bar > a { max-width: 100%; }
  #affm_notice_controls { width: 100%; }
  #affm_notice_controls a { font-size: 14px; padding: 8px 12px; }
  #affm_information h1 { font-size: 29px; }
  #affm_information h2, .affm-info-entry h2 { font-size: 23px; }
  .affm-info-grid { grid-template-columns: minmax(0, 1fr); }
  .affm-info-threat-grid > .affm-info-card { flex-basis: 100%; }
  .affm-info-incident-feature { grid-template-columns: minmax(0, 1fr); }
  .affm-info-incident-portrait { height: 220px; }
  .affm-info-panel, .affm-info-card, .affm-info-entry { padding: 18px; }
  .affm-info-action { width: 100%; }
}
