
/* Reset */
*,
*::before,
*::after {
  box-sizing: border-box;
}
* {
  margin: 0;
  padding: 0;
}

/* Base typography */
body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  font-size: 10pt;
}

/* Layout */
.layout {
  height: 100vh;
  width: 100vw;
  display: flex;
  flex-wrap: wrap;
}

/* Header */
.header {
  padding: 5px;
  position: fixed;
  left:20%;
  display: flex;
  flex-wrap: wrap;
  width: 100%;
  height: 120px;
  background-color: #fff;
  z-index: 10;
}

.content .header {
  z-index: 1;
  position: relative;
  top: auto;
  left: auto;
}

div:has(> .head-logout) {
  width:20%;
  justify-content: flex-end;
  height: 45px;
}

.head-logout {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;

}

.g4admin-link {
    z-index: 11;
    top: 45px !important;
    left: 94% !important;
    width: 6%;
}

.g4admin-link a,
.head-logout a {
  display: block;
  padding: 0.5em;
  background-color: #efefef;
  border-radius: 5px;
  color: #333;
  font-weight: bold;
  text-decoration: none;
  font-size: 0.9rem;
  margin-left: 5px;

}

.smaller {
  font-size: 0.7rem;
  vertical-align: top;
}

.g4admin-link a:hover,
.head-logout a:hover {
  background-color: #cfcfcf;
  color: #333;
}

/* Logo */
.logo {
  background-color: #fff;
  position: fixed;
  width: 20%;
  height: 120px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  z-index: 11;
}
.logo img {
  width: 200px;
}



/* Quick search */
.quick-search {
  width: 60%;
  position: relative;
  height: 35px;
  display: flex;
  justify-content:end;
  background-color: #fff;
}


.quick-search input {
  width: 20vw;
  height: 34px;
  padding: 14px 10px;
  border-radius: 0.25rem;
  font-size: 1.1rem;
  border: 1px solid #ccc;
  margin-right: 0 !important;

}

.quick-search input:focus:not(:focus-visible) {
  outline: none;
  box-shadow: none;
}

.quick-search input:focus-visible {
  outline: none;
  outline-offset: 2px;
}

/* remove yellow autofill background in WebKit for this input */
.quick-search input:-webkit-autofill {
  -webkit-box-shadow: 0 0 0px 1000px #fff inset;
  box-shadow: 0 0 0px 1000px #fff inset;
  -webkit-text-fill-color: inherit;
}

/* overlay placeholder 
.quick-search::before {
  content: "Search all collections...";
  position: absolute;
  left: 14px;
  top: 45%;
  transform: translateY(-50%);
  color: #9aa7b2;
  pointer-events: none;
  transition: opacity .12s ease;
  font-size: 1.1rem;
}


.quick-search:focus-within::before {
  opacity: 0;
}
*/

.quick-search button {
  height: 33px;
  border-radius: 0.25rem;
  padding: 0 20px;
  background: #1d548c;
  color: #fff;
  font-weight: bold;
  font-size: 1.1rem;
  border: 1px solid #0b3864;
  margin-left: 10px;
}

.quick-search button:disabled {
  background: #ccc;
  border: 1px solid #bbb;
}

/* Sidebar / Content */
.sidebar {
  overflow: hidden;
  margin-left: 1mm;
  user-select: none;
}

.content {
  width: 98%;
  margin: 0 auto 0 auto;
  padding-top: 130px;
}

/* Footer */
.footer {
  background-color: blue;
  color: white;
  overflow: hidden;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  padding: 2mm 4mm 0 4mm;
  font-size: 8pt;
}

/* Nav flex items */
nav {
  width:80%;
  display: flex;
  flex-direction: row;
  list-style: none;
  align-items: flex-end;
  gap: 0.5rem;
}

/* distribute nav children evenly */
nav > div {
  margin: 0;
  flex: 1 1 0;
  min-width: 0;
  text-transform: uppercase;
  font-size: 14px;
  font-family: 'Kanit', sans-serif;
  letter-spacing: 1px;
  padding: 15px 0;
  text-decoration: none;
  font-weight: bold;
  text-align: center;
  border-bottom: 5px solid #00316A;
}

nav > div:hover {
  border-bottom: 5px solid #006699;
}

nav > div a {
  width: 100%;
  display: block;
  text-align: center;
  color: #00316A;
}

.active-nav-link {
  text-decoration: none;
}

nav > div.inactive-nav {
  border-bottom: 5px solid #006699;
  color: #006699;
}

/* Picker */
.picker {
  scrollbar-width: none;
  font-size: 9pt;
  width: 100%;
  border: 0;
  margin: 0;
}

.picker option {
  padding-left: 1em;
}

.picker-title {
  font-weight: bold;
  margin-top: 1em;
  margin-bottom: 0.5mm;
}

/* Tags */
.archived-tag {
  margin-right: 0.5rem;
  padding: 0 0.25rem;
  font-weight: bold;
  font-size: 0.6rem;
  line-height: 1rem;
  color: rgb(127 29 29);
  background-color: rgb(229 231 235);
  border-radius: 0.25rem;
  border: 1px solid rgb(127 29 29);
}

/* Toaster / Toasts */
.toaster-layer {
  z-index: 20;
  position: fixed;
  top: 130px;
  bottom: 0;
  right: 0;
  pointer-events: none;
}

.toasts {
  display: flex;
  flex-direction: column;
  margin: 1mm;
}

.toast {
  display: flex;
  flex-direction: column;
  padding: 0.75rem;
  margin-bottom: 1mm;
  text-align: right;
  font-size: 10pt;
  border-radius: 0.25rem;
  width: 20rem;
}

.toast-info {
  color: #fff;
  background-color: blue;
}

.toast-warning {
  color: #000;
  background-color: yellow;
}

.toast-error {
  color: #fff;
  background-color: red;
}

/* Animations */
.fade-in {
  animation: fadeIn linear .5s;
}

.fade-out {
  animation: fadeOut linear .5s;
}

@keyframes fadeIn {
  0% {
    opacity: 0;
    max-height: 0;
  }
  100% {
    opacity: 1;
    max-height: 100px;
  }
}

@keyframes fadeOut {
  0% {
    opacity: 1;
    max-height: 100px;
  }
  100% {
    opacity: 0;
    max-height: 0;
  }
}
/* Document Collection Styles */
.g4-hot_topics {
  background-color: #005662;
}

.g4-cta_central {
  background-color: #7b2e00;
}

.g4-contracts {
  background-color: #616600;
}

.g4-esp_crm {
  background-color: #4a3b6a;
}

.g4-certificated_crm {
  background-color: #8a4600;
}

.g4-advisories {
  background-color: #206030;
}

.g4-arbitrations {
  background-color: #2c3e75;
}

.g4-covid {
  background-color: #7b2940;
}

.g4-edcodes {
  background-color: #5c4d44;
}

.g4-ff_reports {
  background-color: #00767f;
}

.g4-independent_study {
  background-color: #a84300;
}

.g4-accountability_plans {
  background-color: #486734;
}

.g4-staff_advisories {
  background-color: #6b3f6b;
}

.g4-charter {
  background-color: #445f6c;
}

/* remaining collection colors */
.g4-state_budget { background-color: #0b6b35; }   /* deep green */
.g4-perbs        { background-color: #8b1e3f; }   /* maroon */
.g4-sig_plas     { background-color: #1f618d; }   /* strong blue */
.g4-trama        { background-color: #7f3f00; }   /* warm brown/orange */


/* Document Collection Label Colors */
.collection-hot_topics {
  color: #005662;
}

.collection-cta_central {
  color: #7b2e00;
}

.collection-contracts {
  color: #616600;
}

.collection-esp_crm {
  color: #4a3b6a;
}

.collection-certificated_crm {
  color: #8a4600;
}

.collection-advisories {
  color: #206030;
}

.collection-arbitrations {
  color: #2c3e75;
}

.collection-covid {
  color: #7b2940;
}

.collection-edcodes {
  color: #5c4d44;
}

.collection-ff_reports {
  color: #00767f;
}

.collection-independent_study {
  color: #a84300;
}

.collection-accountability_plans {
  color: #486734;
}

.collection-staff_advisories {
  color: #6b3f6b;
}

.collection-charter {
  color: #445f6c;
}

/* remaining collection colors */
.collection-state_budget { color: #0b6b35; }   /* deep green */
.collection-perbs        { color: #8b1e3f; }   /* maroon */
.collection-sig_plas     { color: #1f618d; }   /* strong blue */
.collection-trama        { color: #7f3f00; }   /* warm brown/orange */


/* Hot Topics custom styles */
#hot-topics-root {
    margin: 0 auto;
    padding: 2em 1em;
    display: flex;
    flex-wrap: wrap;
}
.hot-topic-post {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin: 1.5em;
    padding: 1.2em 1.5em;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    transition: box-shadow 0.2s;
    width: calc(25% - 3em);
}
.hot-topic-post a {
    color: #006699;
    text-align: center;
    text-decoration: none;
}
.hot-topic-post:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.10);
}
.hot-topic-post h2 {
    margin: 0 0 0.3em 0;
    font-size: 1.3em;
}
.hot-topic-post .meta {
    color: #888;
    font-size: 0.95em;
    margin-bottom: 0.7em;
}

.hot-topic-post .excerpt {
    color: #222;
    font-size: 1.08em;
}

/* Contracts Submission Page */
#contract-submissions-page {
  max-width: 1080px;
  margin: 0 auto;
  padding: 1.5rem 0 3rem;
  color: #17324d;
}

.contracts-submissions-hero {
  margin-bottom: 1.5rem;
  padding: 1.75rem 2rem;
  border-left: 8px solid #616600;
  border-radius: 0.5rem;
  background: linear-gradient(135deg, #f5f7ea 0%, #ffffff 72%);
  box-shadow: 0 10px 28px rgba(23, 50, 77, 0.08);
}

.contracts-submissions-eyebrow {
  margin-bottom: 0.5rem;
  color: #616600;
  font-family: 'Kanit', sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.contracts-submissions-hero h1 {
  margin-bottom: 0.5rem;
  color: #00316A;
  font-family: 'Kanit', sans-serif;
  font-size: 2rem;
  line-height: 1.1;
}

.contracts-submissions-intro {
  max-width: 52rem;
  color: #425466;
  font-size: 1rem;
  line-height: 1.6;
}

.contracts-submissions-panel {
  padding: 1.75rem 2rem 2rem;
  border: 1px solid #d9dee4;
  border-radius: 0.75rem;
  background-color: #fff;
  box-shadow: 0 16px 40px rgba(23, 50, 77, 0.08);
}

.contracts-submissions-panel-header {
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #e5e9ef;
}

.contracts-submissions-panel-header h2 {
  margin-bottom: 0.35rem;
  color: #00316A;
  font-family: 'Kanit', sans-serif;
  font-size: 1.25rem;
}

.contracts-submissions-panel-header p {
  color: #5f6f7f;
  line-height: 1.5;
}

.contracts-submissions-form {
  width: 100%;
}

#contract-submissions-page g4-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem 2.5rem;
  align-items: start;
  padding: 0;
}

#contract-submissions-page g4-input,
#contract-submissions-page g4-select {
  display: block;
}

#contract-submissions-page g4-file,
#contract-submissions-page g4-update,
#contract-submissions-page .g4-form-controls {
  grid-column: 1 / -1;
}

#contract-submissions-page input,
#contract-submissions-page textarea,
#contract-submissions-page select {
  width: 100%;
  margin: 0;
  padding: 0.72rem 0.9rem;
  border: 1px solid #c8d1dc;
  border-radius: 0.55rem;
  background-color: #fff;
  font-size: 0.98rem;
  color: #17324d;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

#contract-submissions-page input:focus,
#contract-submissions-page textarea:focus,
#contract-submissions-page select:focus {
  outline: none;
  border-color: #00316A;
  box-shadow: 0 0 0 3px rgba(0, 49, 106, 0.12);
}

#contract-submissions-page .g4-form-controls {
  justify-content: flex-start;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

#contract-submissions-page button {
  min-width: 10rem;
  padding: 0.8rem 1.2rem;
  border: 1px solid #00316A;
  border-radius: 0.5rem;
  background: #00316A;
  color: #fff;
  font-size: 0.98rem;
  font-weight: 700;
  cursor: pointer;
}

#contract-submissions-page button:hover {
  background: #005b8f;
  border-color: #005b8f;
}

@media (max-width: 800px) {
  #contract-submissions-page {
    padding-top: 1rem;
  }

  .contracts-submissions-hero,
  .contracts-submissions-panel {
    padding: 1.25rem;
  }

  #contract-submissions-page g4-form {
    grid-template-columns: 1fr;
  }

  #contract-submissions-page button {
    width: 100%;
    min-width: 0;
  }
}
.hot-topics-img-wrap {
    display: block;
    width: 80%;
    height: auto;
    margin: 0 auto 0.8em auto;
}

.hot-topic-thumb {
    max-width: 100%;
    width: 120px;
    height: auto;
    display: block;
    margin: 0 auto 0.6em auto;
}
/* WordPress menu styles to match https://hottopics.ctasearch.org */
#wp-menu {
  /* Sticks below header (120px) and logo */
  width: 100%;
  background: linear-gradient(160.71deg,#1743a6 33.35%,#008ad8 95.9%);
  box-shadow: 0 2px 8px rgba(0,0,0,0.07);
  margin: 0;
  padding: 0 1.5em;
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1em;
  position: sticky;
  top: 130px;
  z-index: 50;
}
.wp-menu-list {
  display: flex;
  flex-direction: row;
  gap: 0.5em;
  list-style: none;
  margin: 0;
  padding: 0;
}

#hot-topics-search-wrap {
  display: flex;
  align-items: center;
  margin: 0;
}

#hot-topics-search {
  padding: 0.5em 1.1em;
  border-radius: 6px;
  border: none;
  font-size: 1.08em;
  background: #fff;
  color: #1743a6;
  margin-left: 0.5em;
  box-shadow: 0 1px 4px rgba(23,67,166,0.07);
  outline: none;
  min-width: 220px;
  transition: box-shadow 0.15s, border 0.15s;
}
#hot-topics-search:focus {
  box-shadow: 0 0 0 2px #2a5db033;
  border: 1.5px solid #2a5db0;
}
.wp-menu-list li {
  margin: 0 0.5em;
  padding: 0;
  display: flex;
  align-items: center;
}
.wp-menu-list a {
  display: block;
  color: #fff;
  font-weight: 500;
  font-size: 1.08em;
  text-decoration: none;
  padding: 0.7em 1.2em;
  border-radius: 6px;
  transition: background 0.15s, color 0.15s;
}
.wp-menu-list a:hover, .wp-menu-list a:focus {
  background: #2a5db0;
  color: #fff;
  text-decoration: none;
}
/* Post detail page styles */
.hot-topic-single {
  width: 100%;
  margin: 0;
  background: #fff;
  border-radius: 0;
  box-shadow: none;
  padding: 0;
  font-size: 1.15em;
  line-height: 1.7;
}
/* Breadcrumb styles for post page */
.hot-topic-single .breadcrumb {
  font-size: 1em;
  margin-bottom: 1.2em;
  color: #888;
}
.hot-topic-single .breadcrumb a {
  color: #2a5db0;
  text-decoration: none;
}
.hot-topic-single .breadcrumb a:hover {
  text-decoration: underline;
}
.hot-topic-single h1 {
  font-size: 2.1em;
  margin-bottom: 0.3em;
  color: #1a2340;
}
.hot-topic-single .meta {
  color: #888;
  font-size: 1em;
  margin-bottom: 1.5em;
}
.hot-topic-single .hot-topic-content {
  margin-top: 1.5em;
}
.hot-topic-single img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 1.5em auto;
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.hot-topic-single p {
  margin: 1.1em 0;
}
.hot-topic-single a {
  color: #2a5db0;
  text-decoration: underline;
  word-break: break-word;
}
.hot-topic-single blockquote {
  border-left: 4px solid #e0e0e0;
  margin: 1.5em 0;
  padding: 0.7em 1.2em;
  color: #555;
  background: #fafbfc;
  font-style: italic;
}
/* Hot Topics pagination styles */
.hot-topics-pagination {
  display: flex;
  justify-content: center;
  gap: 0.5em;
  margin: 2em 0 1em 0;
  font-size: 1.1em;
  width: 100%;
}
.hot-topics-page {
  display: inline-block;
  padding: 0.4em 1em;
  border-radius: 5px;
  background: #eaf1fb;
  color: #1a2340;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid #d6e6fa;
  transition: background 0.15s, color 0.15s;
}
.hot-topics-page.current, .hot-topics-page:disabled {
  background: #2a5db0;
  color: #fff;
  font-weight: bold;
  cursor: default;
  border: 1px solid #2a5db0;
}
.hot-topics-page:hover:not(.current) {
  background: #d6e6fa;
  color: #1743a6;
}
/* WordPress columns block styles */
.wp-block-columns {
  display: flex;
  flex-wrap: wrap;
  margin: 2em 0;

}
.wp-block-column {
  min-width: 220px;
  flex-basis: 50%;
  box-sizing: border-box;
}
@media (max-width: 800px) {
  .wp-block-columns {
    flex-direction: column;
    gap: 1.2em;
  }
  .wp-block-column {
    min-width: 0;
    width: 100%;
  }
}
/* WordPress accordion styles */
.wp-block-pb-accordion-item {
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  margin: 1.5em 0;
  background: #f9fafd;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  overflow: hidden;
}
.wp-block-pb-accordion-item .c-accordion__title,
.wp-block-pb-accordion-item .js-accordion-controller {
  cursor: pointer;
  font-size: 1.15em;
  font-weight: 600;
  padding: 1em 1.2em;
  background: #eaf1fb;
  color: #1a2340;
  border: none;
  outline: none;
  transition: background 0.15s;
}
.wp-block-pb-accordion-item .c-accordion__title:hover,
.wp-block-pb-accordion-item .js-accordion-controller:hover,
.wp-block-pb-accordion-item .c-accordion__title:focus,
.wp-block-pb-accordion-item .js-accordion-controller:focus {
  background: #d6e6fa;
}
.wp-block-pb-accordion-item .c-accordion__content {
  padding: 1.1em 1.5em 1.2em 1.5em;
  background: #fff;
  border-top: 1px solid #e0e0e0;
  transition: display 0.2s;
}
.wp-block-pb-accordion-item.is-open .c-accordion__title,
.wp-block-pb-accordion-item.is-open .js-accordion-controller {
  background: #2a5db0;
  color: #fff;
}
/* Embedded PDF viewer styles */
.pdf-embed-wrap {
  margin: 2em 0;
  text-align: center;
}
.pdf-embed-frame {
  width: 100%;
  max-width: 800px;
  height: 600px;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
  background: #fafbfc;
}
.pdf-embed-wrap a {
  display: inline-block;
  margin-top: 0.5em;
  color: #2a5db0;
  font-weight: 500;
}
