/*
 * ODSAS home and public browsing pages: desktop visual refresh.
 * Keep the existing styles and behaviour below 1000px for the mobile phase.
 * All rules are scoped to selected public routes; document viewers and admin keep
 * their existing presentation. No external fonts or framework are required.
 */
@media screen and (min-width: 1000px) {
  body.odsas-desktop {
    color: #334155;
    background: #eef2f6;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
    font-size: 15px;
    line-height: 1.6;
    padding-top: 24px;
  }

  .odsas-desktop #centralWrapper {
    position: relative;
    box-sizing: border-box;
    width: calc(100% - 64px);
    max-width: 1440px;
    padding: 0;
    background-color: #f7f9fb;
    border: 1px solid #dce3eb;
    border-radius: 10px;
    box-shadow: 0 8px 32px rgba(28, 46, 68, 0.05);
  }

  .odsas-desktop header {
    box-sizing: border-box;
    height: 160px;
    padding-top: 108px;
    background-color: #182435;
    background-size: 100% auto;
    background-position: left top;
    background-repeat: no-repeat;
    border: 0;
    border-radius: 9px 9px 0 0;
  }

  .odsas-desktop header nav {
    position: relative;
    z-index: 5;
    display: block;
    box-sizing: border-box;
    height: 52px;
    background: #fff;
    border-bottom: 1px solid #dce3eb;
  }

  .odsas-desktop nav > ul {
    display: flex;
    align-items: center;
    gap: 4px;
    box-sizing: border-box;
    width: 100%;
    height: 52px;
    margin: 0;
    padding: 0 20px;
    left: 0;
    font-size: 14px;
  }

  .odsas-desktop nav > ul > li {
    float: none;
    margin: 0;
  }

  .odsas-desktop nav > ul > li > a {
    height: 51px;
    line-height: 51px;
    padding: 0 19px;
    color: #334155;
    background: transparent;
    border: 0;
    border-radius: 0;
    font-weight: 600;
  }

  .odsas-desktop nav > ul > li.dropdown:hover > a,
  .odsas-desktop nav > ul > li.dropdown:focus-within > a {
    color: #174f7c;
    background: #eef4fa;
  }

  .odsas-desktop nav a.icon {
    width: 42px;
    padding: 0;
  }

  .odsas-desktop nav a.icon span {
    top: 17px;
    left: 13px;
  }

  .odsas-desktop .dropdown ul {
    top: 51px;
    left: 0;
    padding: 6px 0;
    border: 1px solid #dce3eb;
    border-radius: 0 0 7px 7px;
  }

  .odsas-desktop .dropdown:hover ul,
  .odsas-desktop .dropdown:focus-within ul {
    box-shadow: 0 12px 28px rgba(28, 46, 68, 0.14);
  }

  .odsas-desktop nav .dropdown:focus-within > ul {
    display: block;
  }

  .odsas-desktop nav a:focus-visible {
    outline: 2px solid #3976ab;
    outline-offset: -4px;
  }

  .odsas-desktop .dropdown li a {
    padding-top: 9px;
    padding-bottom: 9px;
    line-height: 1.5;
  }

  .odsas-desktop .dropdown li a:hover {
    color: #174f7c;
    background: #eef4fa;
  }

  .odsas-desktop .language_selection {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-left: auto;
  }

  .odsas-desktop .language_selection a {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    height: 32px;
    margin: 0;
    padding: 0 3px;
    background: transparent;
    border: 1px solid transparent;
    border-radius: 5px;
  }

  .odsas-desktop .language_selection a:hover {
    background: #eef4fa;
    border-color: #dce3eb;
    box-shadow: none;
  }

  /* Keep account controls in the banner, clear of menu and language links. */
  .odsas-desktop header + div {
    position: absolute;
    top: 66px;
    right: 104px;
    width: auto !important;
    height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
  }

  .odsas-desktop header + div > span {
    padding-right: 0 !important;
  }

  .odsas-desktop #bookmarks {
    position: absolute;
    top: 63px;
    right: 56px;
    margin: 0 !important;
  }

  .odsas-desktop .sidemenulink {
    position: absolute;
    top: 59px;
    right: 24px;
    margin: 0;
  }

  .odsas-desktop #generalContent {
    padding: 0 28px 28px;
  }

  .odsas-desktop #generalContent > br:first-child {
    display: none;
  }

  .odsas-desktop .home-intro {
    padding: 25px 0 28px;
  }

  .odsas-desktop .home-intro h1 {
    padding: 0 0 14px !important;
    color: #23374d;
    font-size: 30px;
    font-weight: 650;
    letter-spacing: -0.7px;
    line-height: 1.25;
    text-shadow: none;
  }

  .odsas-desktop .home-intro > p {
    padding: 0 !important;
    color: #5b6c7e !important;
    font-size: 14px !important;
    line-height: 1.75;
  }

  .odsas-desktop .home-intro > p > br {
    display: none;
  }

  .odsas-desktop .home-statistics {
    display: block;
    margin-top: 18px;
    padding-top: 14px;
    border-top: 1px solid #dce3eb;
    color: #52677c;
    font-size: 13px;
  }

  .odsas-desktop .home-statistics strong {
    font-weight: 500;
  }

  /* Preserve the existing table markup and Ajax targets for this first pass. */
  .odsas-desktop .home-layout,
  .odsas-desktop .home-layout > tbody {
    display: block;
    width: 100%;
    padding: 0;
  }

  .odsas-desktop .home-layout > tbody > tr {
    display: grid;
    grid-template-columns: 185px minmax(0, 1fr) 260px;
    gap: 22px;
    align-items: start;
  }

  .odsas-desktop .home-layout > tbody > tr > td {
    display: block;
    width: auto;
    min-width: 0;
    padding: 0;
  }

  .odsas-desktop .home-layout a,
  .odsas-desktop .home-layout .linkType {
    color: #245e91;
  }

  .odsas-desktop .home-layout a:hover,
  .odsas-desktop .home-layout .linkType:hover {
    color: #143e63;
    text-decoration: underline;
  }

  .odsas-desktop .home-sidebar fieldset {
    min-width: 0;
    margin: 0 0 18px;
    padding: 14px 16px 16px;
    background: #fff;
    border: 1px solid #dce3eb;
    border-radius: 7px;
    box-shadow: none;
    font-size: 13px;
    line-height: 1.9;
    overflow-wrap: anywhere;
  }

  .odsas-desktop .home-sidebar legend,
  .odsas-desktop .home-news-panel > legend {
    padding: 0 5px;
    color: #52677c;
    background: #f7f9fb;
    border-radius: 0;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.5px;
    line-height: 1.5;
    text-transform: uppercase;
  }

  .odsas-desktop .home-search-panel {
    min-width: 0;
    margin: 0;
    padding: 0;
    background: #fff;
    border: 1px solid #dce3eb;
    border-radius: 8px;
    box-shadow: 0 3px 12px rgba(28, 46, 68, 0.03);
  }

  .odsas-desktop .home-search-form {
    padding: 22px 24px 18px;
    background: #edf3f9;
    border-bottom: 1px solid #dce3eb;
    border-radius: 7px 7px 0 0;
  }

  .odsas-desktop .home-search-form > div:first-child {
    padding: 0 0 12px !important;
    color: #23374d;
    text-align: left !important;
    font-size: 19px !important;
    font-weight: 600;
    line-height: 1.4;
  }

  .odsas-desktop .home-search-form > div:nth-child(2) {
    padding: 0 !important;
    text-align: left !important;
  }

  .odsas-desktop .search_input {
    box-sizing: border-box;
    width: 100%;
    height: 47px;
    padding: 10px 14px;
    color: #23374d;
    background: #fff;
    border: 1px solid #a9bacb;
    border-radius: 6px;
    box-shadow: 0 2px 3px rgba(28, 46, 68, 0.04);
    font: inherit;
    font-size: 16px;
  }

  .odsas-desktop .search_input:focus {
    border-color: #3976ab;
    outline: 3px solid rgba(57, 118, 171, 0.15);
    outline-offset: 1px;
  }

  .odsas-desktop .home-search-form p {
    padding: 10px 0 0;
    line-height: 1.55;
  }

  .odsas-desktop .home-search-form p span {
    color: #5b6c7e !important;
    font-size: 12px !important;
  }

  .odsas-desktop .home-about {
    font-size: 14px !important;
  }

  .odsas-desktop #search_result {
    padding: 24px;
    overflow-wrap: anywhere;
  }

  .odsas-desktop #search_result fieldset {
    min-width: 0;
    margin: 0 0 18px;
    padding: 14px;
    border: 1px solid #dce3eb;
    border-radius: 6px;
    background: #fff;
    box-shadow: none;
    font-size: 13px;
    line-height: 1.7;
  }

  .odsas-desktop #search_result legend {
    color: #23374d;
    background: #edf3f9 !important;
    font-size: 13px !important;
    font-weight: 600;
  }

  .odsas-desktop #search_result > legend {
    display: block;
    margin: 18px 0 10px;
    padding: 6px 10px;
  }

  .odsas-desktop .home-about .free_text_full_page {
    margin: 0;
    padding: 0;
    background: transparent;
    line-height: 1.75;
  }

  .odsas-desktop .home-about table,
  .odsas-desktop .home-about td {
    padding: 0;
  }

  .odsas-desktop .home-about h2,
  .odsas-desktop .home-about h3 {
    color: #23374d;
    font-size: 18px;
    line-height: 1.5;
    text-shadow: none;
  }

  .odsas-desktop .home-about img {
    max-width: 100%;
    height: auto;
  }

  .odsas-desktop .home-news-panel {
    box-sizing: border-box;
    width: 100% !important;
    min-width: 0;
    margin: 0;
    padding: 12px 0 0;
    background: transparent !important;
    box-shadow: none;
    font-size: 13px !important;
    line-height: 1.65;
    overflow-wrap: anywhere;
  }

  .odsas-desktop .home-news-panel > legend {
    padding-left: 0;
  }

  .odsas-desktop .home-news-panel > fieldset {
    min-width: 0;
    margin: 0 0 16px;
    padding: 16px;
    background: #fff;
    border: 1px solid #dce3eb;
    border-radius: 7px;
    box-shadow: none;
  }

  .odsas-desktop .home-news h3 {
    padding-bottom: 10px;
    color: #23374d;
    font-size: 14px;
    line-height: 1.45;
    text-shadow: none;
  }

  .odsas-desktop .home-news .metaTitle {
    color: #64748b;
  }

  .odsas-desktop .home-news .metaTitle,
  .odsas-desktop .home-news .metaContent {
    font-size: 12px;
    line-height: 1.6;
  }

  .odsas-desktop footer {
    display: block;
    box-sizing: border-box;
    width: 100%;
    margin: 12px 0 0;
    padding: 22px 28px;
    color: #63758a;
    background: #edf1f5;
    border-top: 1px solid #dce3eb;
    border-radius: 0 0 9px 9px;
    font-size: 11px;
    line-height: 1.8;
  }

  .odsas-desktop footer a {
    color: #245e91;
  }

  .odsas-desktop footer a:hover {
    color: #143e63;
    text-decoration: underline;
  }

  /* Public menu pages, including content loaded into them with Ajax. */
  .odsas-public #generalContent {
    padding-top: 28px;
  }

  .odsas-public #generalContent > br {
    display: none;
  }

  .odsas-public #generalContent h1 {
    margin: 0 0 22px;
    padding: 0;
    color: #23374d;
    font-size: 28px;
    font-weight: 650;
    letter-spacing: -0.5px;
    line-height: 1.3;
    text-align: left;
    text-shadow: none;
  }

  .odsas-public #generalContent h2,
  .odsas-public #generalContent h3 {
    color: #23374d;
    line-height: 1.5;
    text-shadow: none;
  }

  .odsas-public #generalContent h2 {
    font-size: 21px;
  }

  .odsas-public #generalContent h3 {
    font-size: 18px;
  }

  .odsas-public #generalContent p {
    line-height: 1.8;
  }

  .odsas-public #generalContent a,
  .odsas-public #generalContent .linkType {
    color: #245e91;
  }

  .odsas-public #generalContent a:hover,
  .odsas-public #generalContent .linkType:hover {
    color: #143e63;
    text-decoration: underline;
  }

  .odsas-public .free_text,
  .odsas-desktop #generalContent > .free_text_full_page,
  .odsas-public #generalContent > div > .free_text_full_page {
    box-sizing: border-box;
    min-width: 0;
    margin: 0 0 22px;
    padding: 24px;
    color: #334155;
    background: #fff;
    border: 1px solid #dce3eb;
    border-radius: 8px;
    box-shadow: 0 3px 12px rgba(28, 46, 68, 0.03);
    font-size: 14px;
    line-height: 1.8;
    overflow-wrap: anywhere;
  }

  .odsas-public #generalContent fieldset {
    box-sizing: border-box;
    min-width: 0;
    margin: 0 0 20px;
    padding: 20px;
    background: #fff;
    border: 1px solid #dce3eb;
    border-radius: 7px;
    box-shadow: none;
    font-size: 14px;
    line-height: 1.8;
    overflow-wrap: anywhere;
  }

  .odsas-public #generalContent .free_text_full_page > fieldset:only-child {
    margin: 0;
    padding: 0;
    background: transparent;
    border: 0;
  }

  .odsas-public #generalContent legend {
    padding: 3px 10px;
    color: #23374d;
    background: #edf3f9;
    font-size: 13px;
    font-weight: 600;
  }

  .odsas-public .fieldname {
    color: #52677c;
    font-size: 13px;
    font-weight: 600;
  }

  .odsas-public .metaTitle {
    color: #64748b;
  }

  .odsas-public .metaTitle,
  .odsas-public .metaContent {
    font-size: 13px;
    line-height: 1.7;
  }

  .odsas-collections .free_text_full_page > fieldset:only-child > h3 {
    padding-bottom: 14px;
    font-size: 21px !important;
  }

  .odsas-collections .free_text_full_page > fieldset:only-child > br + br,
  .odsas-collections .free_text_full_page > fieldset:only-child > br:last-child {
    display: none;
  }

  .odsas-desktop #generalContent .buttonType,
  .odsas-public #generalContent button,
  .odsas-desktop #generalContent input[type="submit"] {
    box-sizing: border-box;
    display: inline-block;
    min-width: 100px;
    height: auto;
    margin: 12px 8px 6px 0;
    padding: 8px 14px;
    color: #245e91;
    background: #edf3f9;
    border: 1px solid #cbd9e7;
    border-radius: 5px;
    box-shadow: none;
    font: inherit;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.5;
    text-align: center;
    text-shadow: none;
    cursor: pointer;
  }

  .odsas-desktop #generalContent .buttonType:hover,
  .odsas-public #generalContent button:hover,
  .odsas-desktop #generalContent input[type="submit"]:hover {
    color: #143e63;
    background: #e0ebf6;
    border-color: #8eaac4;
    box-shadow: none;
    text-decoration: none;
  }

  .odsas-public .catLink {
    display: inline-block;
    margin: 4px 6px 4px 0;
    padding: 5px 11px;
    color: #245e91;
    background: #f7f9fb;
    border: 1px solid #dce3eb;
    border-radius: 5px;
    box-shadow: none;
    font-size: 13px;
    line-height: 1.7;
  }

  .odsas-public .catLink:hover {
    background: #edf3f9;
    border-color: #8eaac4;
    box-shadow: none;
  }

  .odsas-desktop #generalContent input:not([type="hidden"]):not([type="submit"]):not([type="checkbox"]):not([type="radio"]):not(.search_input),
  .odsas-desktop #generalContent select,
  .odsas-desktop #generalContent textarea {
    box-sizing: border-box;
    max-width: 100%;
    height: auto;
    padding: 8px 10px;
    color: #23374d;
    background: #fff;
    border: 1px solid #a9bacb;
    border-radius: 5px;
    box-shadow: none;
    font: inherit;
    font-style: normal;
    line-height: 1.5;
  }

  .odsas-desktop #generalContent input:focus-visible,
  .odsas-desktop #generalContent select:focus-visible,
  .odsas-desktop #generalContent textarea:focus-visible,
  .odsas-desktop #generalContent button:focus-visible,
  .odsas-desktop #generalContent a:focus-visible {
    outline: 3px solid rgba(57, 118, 171, 0.2);
    outline-offset: 2px;
  }

  .odsas-about #generalContent > .free_text_full_page {
    max-width: 1000px;
    margin-right: auto;
    margin-left: auto;
  }

  .odsas-about .free_text_full_page > table,
  .odsas-about .free_text_full_page > table > tbody > tr > td {
    padding: 0;
  }

  .odsas-reference .free_text_full_page > table {
    width: 100% !important;
  }

  .odsas-reference table {
    border: 0;
    border-collapse: collapse;
  }

  .odsas-reference td,
  .odsas-reference th {
    padding: 12px 16px;
    border: 0;
    border-bottom: 1px solid #dce3eb;
    vertical-align: top;
    font-size: 14px;
    line-height: 1.7;
  }

  .odsas-reference th {
    color: #23374d;
    background: #edf3f9;
    font-weight: 600;
  }

  .odsas-reference .free_text_full_page > table > tbody > tr > td:only-child {
    padding: 0;
    border: 0;
  }

  .odsas-public .frisebox {
    padding: 8px;
    background: #fff;
    border: 1px solid #dce3eb;
    border-radius: 5px;
    box-shadow: none;
  }

  .odsas-public .friseYear {
    padding: 12px;
    color: #52677c;
    font-size: 14px;
  }
}
