/**
Use a better box model (opinionated).
*/
*,
::before,
::after {
	box-sizing: border-box;
}

html {
	/* Improve consistency of default fonts in all browsers. (https://github.com/sindresorhus/modern-normalize/issues/3) */
	font-family:
		system-ui,
		'Segoe UI',
		Roboto,
		Helvetica,
		Arial,
		sans-serif,
		'Apple Color Emoji',
		'Segoe UI Emoji';
	line-height: 1.15; /* 1. Correct the line height in all browsers. */
	-webkit-text-size-adjust: 100%; /* 2. Prevent adjustments of font size after orientation changes in iOS. */
	tab-size: 4; /* 3. Use a more readable tab size (opinionated). */
}

/*
Sections
========
*/

body {
	margin: 0; /* Remove the margin in all browsers. */
}

/*
Text-level semantics
====================
*/

/**
Add the correct font weight in Chrome and Safari.
*/

b,
strong {
	font-weight: bold;
}

/**
1. Improve consistency of default fonts in all browsers. (https://github.com/sindresorhus/modern-normalize/issues/3)
2. Correct the odd 'em' font sizing in all browsers.
*/

code,
kbd,
samp,
pre {
	font-family:
		ui-monospace,
		SFMono-Regular,
		Consolas,
		'Liberation Mono',
		Menlo,
		monospace; /* 1 */
	font-size: 1em; /* 2 */
	max-width: 100%; /* 3. Prevent overflow in all browsers. */
	overflow: auto; /* 3. Prevent overflow in all browsers. */	
	white-space: inherit;
}

/**
Add the correct font size in all browsers.
*/

small {
	font-size: 80%;
}

/**
Prevent 'sub' and 'sup' elements from affecting the line height in all browsers.
*/

sub,
sup {
	font-size: 75%;
	line-height: 0;
	position: relative;
	vertical-align: baseline;
}

sub {
	bottom: -0.25em;
}

sup {
	top: -0.5em;
}

/*
Tabular data
============
*/

/**
Correct table border color inheritance in Chrome and Safari. (https://issues.chromium.org/issues/40615503, https://bugs.webkit.org/show_bug.cgi?id=195016)
*/

table {
	border-color: currentcolor;
}

/*
Forms
=====
*/

/**
1. Change the font styles in all browsers.
2. Remove the margin in Firefox and Safari.
*/

button,
input,
optgroup,
select,
textarea {
	font-family: inherit; /* 1 */
	font-size: 100%; /* 1 */
	line-height: 1.15; /* 1 */
	margin: 0; /* 2 */
}

/**
Correct the inability to style clickable types in iOS and Safari.
*/

button,
[type='button'],
[type='reset'],
[type='submit'] {
	-webkit-appearance: button;
}

/**
Remove the padding so developers are not caught out when they zero out 'fieldset' elements in all browsers.
*/

legend {
	padding: 0;
}

/**
Add the correct vertical alignment in Chrome and Firefox.
*/

progress {
	vertical-align: baseline;
}

/**
Correct the cursor style of increment and decrement buttons in Safari.
*/

::-webkit-inner-spin-button,
::-webkit-outer-spin-button {
	height: auto;
}

/**
1. Correct the odd appearance in Chrome and Safari.
2. Correct the outline style in Safari.
*/

[type='search'] {
	-webkit-appearance: textfield; /* 1 */
	outline-offset: -2px; /* 2 */
}

/**
Remove the inner padding in Chrome and Safari on macOS.
*/

::-webkit-search-decoration {
	-webkit-appearance: none;
}

/**
1. Correct the inability to style clickable types in iOS and Safari.
2. Change font properties to 'inherit' in Safari.
*/

::-webkit-file-upload-button {
	-webkit-appearance: button; /* 1 */
	font: inherit; /* 2 */
}

/*
Interactive
===========
*/

/*
Add the correct display in Chrome and Safari.
*/

summary {
	display: list-item;
}


body {
  font-family: "Montserrat", sans-serif;
  font-optical-sizing: auto;
  font-weight: 300;
  font-style: normal;
  font-size: 16px;
  line-height: 1.65;
  color: #444;
}

h1 { font-size: 2.441em; line-height: 1.2; }
h2 { font-size: 1.953em;  line-height: 1.2; }
h3 { font-size: 1.563em;  line-height: 1.2; }
h4 { font-size: 1.25em;  line-height: 1.2; }

/* Table Styles */
.table-container {
    max-width: 800px;
    margin: 0 auto;
    overflow-x: auto; /* Adds a scrollbar on small screens */
    -webkit-overflow-scrolling: touch; /* Smooth scrolling for iOS */
}

table {
    border-collapse: collapse;
    width: 100%;
    margin-bottom: 1.5em;
	max-width: 100%;
	overflow:scroll;;
}

th, td {
    text-align: left;
    padding: 0.75em;
    border: 1px solid #ddd;
}

th {
    background-color: #f9f9f9;
    font-weight: bold;
}

h1,h2,h3,h4 {
    //margin-top:0;
}

h1 {
    font-size:50px;
}

/* 1. Global Link Defaults */
a {
    color: #556B30;
    text-decoration: underline;
    text-underline-offset: 2px;
    text-decoration-thickness: 1px;
    transition: all 0.2s ease-in-out;
}

/* 2. Hover State (Using the 1-shade-lighter green) */
a:hover,
a:focus {
    color: #647E38;
    text-decoration-thickness: 2px;
    outline: none; /* We rely on the color/thickness shift for focus */
}

/* 3. Active/Click State (Using the 3-shades-darker green) */
a:active {
    color: #2B3618;
}

.button {
    display: inline-block;
    padding: 10px 20px;
    background-color: #fff;
    color: #556b2f;
    border-color: solid 3px #556b2f;
    text-decoration: none;
    border-radius: 15px;
    transition: background-color 0.3s ease;
}

.button:hover {
    background-color: #556b2f;
    color: #fff;
}

/* Alignments */
.alignleft { float: left; margin: 0 1.5em 1.5em 0; }
.alignright { float: right; margin: 0 0 1.5em 1.5em; }
.aligncenter { display: block; margin: 0 auto 1.5em; }

/* Captions */
figcaption, .wp-caption-text {
    font-size: 0.8em;
    color: #777;
    text-align: center;
    margin-top: 0.5em;
}

/* Screen Reader Text (Accessibility requirement) */
.screen-reader-text {
    clip: rect(1px, 1px, 1px, 1px);
    position: absolute !important;
    height: 1px; width: 1px;
    overflow: hidden;
}

/* Universal Form reset */
input,
textarea,
select,
button {
    font-family: inherit;
    font-size: 1rem;
    line-height: 1.5;
    margin-bottom: 5px;
    color: inherit;
}

/* Make sure all inputs take up space and look consistent */
input[type="text"],
input[type="email"],
input[type="url"],
input[type="password"],
input[type="search"],
input[type="number"],
input[type="tel"],
textarea,
select {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #ccc;
    border-radius: 4px;
    background-color: #fff;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    -webkit-appearance: none; /* Removes iOS inner shadows */
	margin-bottom: 5px;
}

/* Focus State - Very important for Accessibility */
input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 115, 170, 0.1); /* Subtle glow */
}

label {
    display: block;
    font-weight: 600;
    margin-bottom: 0;
    font-size: 0.9rem;
}

/* The wrapper often used by WordPress forms */
.form-group, 
.comment-form p {
    margin-bottom: 1.5rem;
}

textarea {
    resize: vertical; /* Only allow resizing up/down, not left/right */
    min-height: 120px;
}

button,
input[type="submit"],
.wp-block-button__link {
    display: inline-block;
    padding: 12px 24px;
    background-color: #556b2f;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    text-align: center;
    transition: background-color 0.2s ease;
}

button:hover,
input[type="submit"]:hover {
    background-color: #4a5d2a; /* Slightly darker than primary */
}

button:active {
    transform: translateY(1px); /* Tactile click feel */
}
.search-form {
    display: flex;
    gap: 10px;
    max-width: 400px;
}

.search-form label {
    flex-grow: 1;
    margin-bottom: 0;
}

/* Styling for the search input specifically */
.search-field {
    height: 100%;
}

input[type="checkbox"],
input[type="radio"] {
    margin-right: 0.5rem;
    width: auto; /* Prevent them from stretching to 100% */
    cursor: pointer;
}

/* Fix vertical alignment with text */
.comment-form-cookies-consent {
    display: flex;
    align-items: flex-start;
}

.comment-form-cookies-consent input {
    margin-top: 5px;
}

::placeholder {
    color: #999;
    opacity: 1; /* Firefox fix */
}

