
/* ===========================
   Global Reset & Base Styles
   =========================== */
*,
*::before,
*::after {
  box-sizing: border-box; /* Predictable sizing */
}

html {
  font-size: 100%; /* Base for rem units */
}

body {
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 18px;
  line-height: 1.5;
  font-weight: 400;
  background-color: #f4f4f4;
  margin: 0;
  color: #333;
  overflow-wrap: break-word; /* Prevent overflow from long text */
}

/* ===========================
   Brand & misc.
   =========================== */
.app-title { font-weight: 700; letter-spacing: 0.2px; }
.img-50 { width: 50px; height: 50px; }


/* ===========================
   Headings and links
   =========================== */
h1 {
  font-size: 28px;
  line-height: 1.285;
  font-weight: 700;
  text-align: center;
  margin: 0.8em 0;
}
@media (min-width: 992px) {
  h1 { font-size: 30px; line-height: 1.3; }
}

h2 {
  font-size: 24px;
  line-height: 1.333;
  font-weight: 400;
  margin: 0.6em 0;
}
@media (min-width: 992px) {
  h2 { font-size: 25px; line-height: 1.32; }
}

h3 {
  font-size: 21px;
  line-height: 1.143;
  font-weight: 400;
  margin: 0.6em 0;
}
@media (min-width: 992px) {
  h3 { font-size: 24px; line-height: 1.25; }
}

h4 {
  font-size: 1.25rem;
  margin-top: 0;
  line-height: 1.2;
  font-weight: 500;
}

a {
  color: #2574a9;
  text-underline-offset: 3px;
  text-decoration-thickness: 2px;
}
a:hover{
  color: #9900cc;
}

/* @media (min-width: 992px) {
  h4 { font-size: 21px; line-height: 1.286; }
} */

/* ===========================
   Layout Containers
   =========================== */
main {
  background-color: #f2f5f8;
  min-height: 100vh;
}

.fma-container {
  max-width: 1200px;
  margin: 20px auto;
  background-color: #fff;
  padding: 16px;
}

.table-container {
  max-width: 1100px;
  margin: 20px auto;
  padding: 20px;
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* ===========================
   Flex Layout for Rows & Columns
   =========================== */
    /* Use gap instead of margins */
.app-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1em;
}

.column {
  flex: 1 1 auto;
  min-width: 0; 
  padding: 4px;
}

.left {
  flex: 1 1 40%;
  max-width: 40%;
}

.right {
  flex: 1 1 60%;
  max-width: 60%;
}

@media (max-width: 768px) {
  .left, .right {
    flex: 1 1 100%;
    max-width: 100%;
  }
}

/* ===========================
   Header & Logo
   =========================== */
header {
  color: #fff;
  background-color: #00205b;
}

header img {
  max-height: 50px;
  width: auto;
  display: block;
}

@media (max-width: 768px) {
  header img {
    max-height: 40px;
  }
}

/* ===========================
   Inputs & Buttons
   =========================== */
input[type="text"] {
  width: 100%;
  padding: 10px;
  margin-bottom: 10px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 18px;
}

button {
  padding: 10px 20px;
  /* background-color: #68a41e; */
  background-color: #732777;
  color: #fff;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}
button:hover {
  background-color: #3878c5;
}

/* ===========================
   Suggestions
   =========================== */
#suggestions div {
  padding: 5px;
  background-color: #eee;
  cursor: pointer;
}
#suggestions div:hover {
  background-color: #ddd;
}

/* ===========================
   Notes & Lists
   =========================== */


.notes-image {
  max-width: 200px; /* for the boundary map image */
  height: auto;
  display: block;
  margin-top: 10px; /* optional for spacing */
}

ol, ul, p, li, a {
  overflow-wrap: break-word;
  word-break: break-word;
}
ol {
  padding-left: 1.2em;
  margin: 0.6em 0;
}
li {
  margin-bottom: 0.6em;
}

/* ===========================
   Tables
   =========================== */
table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
  border: 1px solid #ddd;
}
th, td {
  padding: 8px;
  text-align: left;
  border: 1px solid #ddd;
  width: 22%; /* Expand columns equally */
}
th {
  font-weight: normal;
}

/* ===========================
   Images & Media
   =========================== */
img, iframe {
  max-width: 100%;
  height: auto;
  display: block;
  border: none;
}

/* ===========================
   Grey Box
   =========================== */
.div-grey-box {
  line-height: 1.78;
  background-color: #f5f5f6;
  padding: 16px;
  box-shadow: 2px 2px 4px #4140424d;
  overflow-wrap: break-word;
}

/* ===========================
   Footer
   =========================== */
.footer {
  background-color: #00205b;
  color: #fff;
  margin-top: 30px;
  border-top: 4px solid #3878c5;
  padding: 16px;
}
.footer a {
  color: #fff;
  text-underline-offset: 3px;
}
.footer a:hover,
.footer a:focus {
  color: #fff;
  text-decoration-thickness: 2px;
}
.footer-links {
  list-style: none;
  padding-left: 0;
}
.footer-links .list-inline-item {
  margin: 0 .5rem;
}

/* ===========================
   Misc
   =========================== */
.warning {
  color: white;
  background-color: #3878c5;
  margin-bottom: 0;
  padding: 10px 0;
  font-size: 1em;
}

/* .grid {
  display: grid;
  width: 100%;
  grid-gap: 10px;
  grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
} */

.mb {
  margin-bottom: 20px;
}

/* =========================
Cookie banner
========================== */
iframe {
    border: none;
}

#cookie-banner {
	top: 0;
	left: 0;
	width: 100%;
	background-color:#142062;
	color:#FFF;
	padding: 10px;
	text-align: left;
    display: none;
}

.cookies-infobar {
    color: #fff;
    width: 100%;
    left: 0;
    right: 0;
    top: 0;
    padding: 10px;
    text-align: left;
}

.cookies-infobar.cookies-infobar_accepted {
    display: none;
}

.cookies-infobar_wrapper {
    margin: 10px;
}

.cookies-infobar a:hover {
    color: #4E94FD;
}

.cookies-infobar_btn {
  display: inline-block;
  padding: 5px 10px;
  background: #0f8243;
  text-decoration: none;
  color: #fff;
  text-transform: none;
  font-size: 1.2em;
}

a.cookies-infobar_btn, a.cookies-infobar_btn_reject {
	color: #fff !important;
}

a.cookiesbarlink {
    color: #fff;
}

.cookies-infobar_btn_reject {
  display: inline-block;
  padding: 5px 10px;
  background: #6d6e72;
  text-decoration: none;
  border-radius: 3px;
  color: #fff;
  text-transform: none;
  font-size: 1.2em;
}
