/* =========================
   TYPOGRAPHY / GLOBAL
   ========================= */
/* Hero Banner */
#hero-banner {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto 24px;
    border-radius: 12px 12px 0 0;
    overflow: hidden;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15);
}

#hero-banner img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

/* Adjust wrapper to account for banner */
#wrapper {
    margin-top: 0; /* Remove top margin since banner handles spacing */
    border-radius: 0 0 12px 12px; /* Rounded bottom only */
}

/* World Athletics Bold */
@font-face {
    font-family: 'World Athletics';
    src: url('../font/WorldAthletics-Bold.eot');
    src: local('World Athletics Bold'), local('WorldAthletics-Bold'),
        url('../font/WorldAthletics-Bold.eot?#iefix') format('embedded-opentype'),
        url('../font/WorldAthletics-Bold.woff2') format('woff2'),
        url('../font/WorldAthletics-Bold.woff') format('woff'),
        url('../font/WorldAthletics-Bold.ttf') format('truetype');
    font-weight: bold;
    font-style: normal;
    font-display: swap;
}

/* World Athletics Regular */
@font-face {
    font-family: 'World Athletics';
    src: url('../font/WorldAthletics.eot');
    src: local('World Athletics'), local('WorldAthletics'),
        url('../font/WorldAthletics.eot?#iefix') format('embedded-opentype'),
        url('../font/WorldAthletics.woff2') format('woff2'),
        url('../font/WorldAthletics.woff') format('woff'),
        url('../font/WorldAthletics.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

/* World Athletics Headline */
@font-face {
    font-family: 'World Athletics Headline';
    src: url('../font/WorldAthleticsHeadline.eot');
    src: local('World Athletics Headline'), local('WorldAthleticsHeadline'),
        url('../font/WorldAthleticsHeadline.eot?#iefix') format('embedded-opentype'),
        url('../font/WorldAthleticsHeadline.woff2') format('woff2'),
        url('../font/WorldAthleticsHeadline.woff') format('woff'),
        url('../font/WorldAthleticsHeadline.ttf') format('truetype');
    font-weight: 900;
    font-style: normal;
    font-display: swap;
}

html {
    text-rendering: optimizeLegibility !important;
    color: #1D1D1D;
    font-size: 14px;
    font-family: "WorldAthletics";
    line-height: 1.5;
}

body {
    font-family: 'World Athletics';
    font-size: 14px;
    margin: 0;
    color: #333333;
    background: #F8FAFC; /* Updated: Light background */
}

/* Headings */
h1 {
    font-size: 24px;
    color: #2E005D;
    margin: 0 0 16px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

h2 {
    font-size: 18px;
    color: #4B0089;
    margin: 24px 0 12px;
}

h3 {
    font-size: 14px;
    color: #4B4B4B;
    margin: 16px 0 8px;
}

h4 {
    font-family: "WorldAthletics";
    font-size: 12px;
    color: #FFFFFF;
}

/* Links */
a {
    color: #000080;
    text-decoration: none;
    font-weight: 600;
}

a:hover {
    text-decoration: none;
}

/* =========================
   LAYOUT
   ========================= */
#wrapper {
    width: 100%;
    max-width: 1200px;
    margin: -21px auto 40px;
    padding: 24px;
    background: #FFFFFF;
    border-radius: 12px;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.18);
    box-sizing: border-box;
}

#container {
    width: 100%;
    height: auto;
    margin: 0;
}

/* Optional logo (hidden in original) */
#container #logo {
    float: left;
    height: 120px;
    width: 178px;
    display: none;
}

/* Header / top menu */
#container #menu {
    float: none;
    width: 100%;
    height: auto;
    padding: 16px 24px;
    background: linear-gradient(135deg, 
    #75aadb 0%,      /* Light blue */
    #75aadb 40%,     /* Sharp line */
    #ffffff 40%,     /* White */
    #ffffff 60%,     /* Sharp line */
    #000000 60%,     /* Black */
    #000000 100%
  );
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-sizing: border-box;
    background-repeat: no-repeat;
    background-position: left top;
}

#container #menu #topmenu {
    text-align: right;
    padding: 0;
}

#container #menu #topmenu a {
    font-family: "World Athletics";
    font-size: 15px;
    color: #F5F7FA;
    font-weight: 700;
    text-decoration: none;
    margin-left: 24px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: bold;
}

#container #menu #topmenu a:hover {
    color: BLACK; /* Gold/yellow accent - kept as requested */
    transform: translateY(-2px); /* Slight lift */
    letter-spacing: 0.12em; /* Slightly more spacing */
    text-decoration: none; /* Keep no underline */
    background-color: #FFFFFF;
    padding: 8px 8px !important; /* New: Increases height (adjust top/bottom px for taller/shorter) */
    border-radius: 8px; /* Optional: Rounded corners for polish */
    display: inline-block; /* Ensures padding applies fully */
    transition: all 0.3s ease; /* Smooth animation for all changes */
}

/* Body sections */
#container #body {
    float: left;
    width: 100%;
    height: auto;
    margin-top: 24px;
    position: relative;
}

#container #body #logobody {
    float: left;
    height: 350px;
    width: 250px;
    background-image: url(../Graphics/logobody.png);
    background-repeat: no-repeat;
    position: absolute;
    z-index: 1;
    padding-left: 15px;
    margin-top: 0;
    padding-top: 10px;
}

#container #body #loop {
    float: left;
    height: 350px;
    width: 100%;
    position: absolute;
    z-index: 0;
}

#container #body #txtarea {
    float: left;
    height: auto;
    width: calc(100% - 250px);
    position: relative;
    z-index: 1;
    left: 178px;
    box-sizing: border-box;
}

/* Alternate body background section */
#container #bodya {
    float: left;
    height: auto;
    width: 100%;
    position: relative;
    z-index: 0;
    background-image: url(../Graphics/coverbox-bg.png);
    background-repeat: no-repeat;
    background-position: center top;
    padding-top: 24px;
    box-sizing: border-box;
}

#container #bodya #logobodya {
    float: left;
    height: 600px;
    width: 350px;
    position: relative;
    z-index: 1;
    margin-top: 0;
    background-image: url(../Graphics/logobody.png);
    background-repeat: no-repeat;
}

/* Navigation strip */
#container #nav {
    float: left;
    height: 135px;
    width: 100%;
    position: relative;
    left: 3px;
    top: -30px;
    z-index: 2;
}

/* Header title (hidden by default) */
#headertitle {
    margin-top: 35px;
    display: none;
}

#headertitle h1 {
    font-size: 18px;
    color: #00AEEF;
    text-decoration: none;
}

/* =========================
   LEFT MENU
   ========================= */
#mainmenu {
    float: left;
    width: 180px;
    position: relative;
    left: 25px;
    top: 25px;
    z-index: 2;
    color: #000000;
    margin-top: 0;
    padding-bottom: 0;
    padding-top: 125px;
    background-image: url(../Graphics/logoheader.png);
    background-position: top center;
    background-repeat: no-repeat;
    height: 22px;
}

#mainmenu #menucontents {
    margin: 0;
    padding: 0;
    background-color: #EDEDED;
    color: #000000;
    border-bottom: 1px solid #CCCCCC;
}

#mainmenu ul {
    padding-left: 0;
    list-style-type: none;
    margin: 0;
}

#mainmenu a {
    display: inline-block;
    cursor: pointer;
    text-decoration: none;
    background-color: #75aadb;      /* base purple */
    color: #000000;                 /* white text */
    padding: 10px 18px;
    border-radius: 6px;
    font-weight: 600;
    letter-spacing: 0.03em;
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.35);
    transition: background-color 0.2s ease,
        transform 0.15s ease,
        box-shadow 0.2s ease,
        border-color 0.2s ease;
}

#mainmenu a:hover,
#mainmenu a:focus {
    background-color: Black;      /* lighter purple on hover */
    border-color: rgba(255, 255, 255, 0.35);
    transform: translateY(-2px);
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.4);
}

#mainmenu a:active {
    transform: translateY(0);
    background-color: #220042;      /* slightly darker when pressed */
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
}

#mainmenu a:focus-visible {
    outline: 3px solid #ffd54a;     /* visible keyboard focus */
    outline-offset: 3px;
}

#mainmenu .days li a {
    color: #FFFFFF;
    font-size: 12px;
    text-decoration: none;
    font-weight: bold;
    padding-left: 2px;
    display: block;
    padding: 6px 8px;
}

#mainmenu .groups li a {
    color: #FFFFFF;
    font-size: 11px;
    text-decoration: none;
    font-weight: bold;
    padding-left: 4px;
    display: block;
    padding: 4px 8px;
}

#mainmenu .events li a {
    color: #FFFFFF;
    font-size: 10px;
    text-decoration: none;
    font-weight: bold;
    padding-left: 6px;
    display: block;
    padding: 3px 8px;
}

/* =========================
   MAIN CONTENT AREA
   ========================= */
#maincontent {
    float: left;
    width: 800px;
    position: relative;
    left: 28px;
    top: 28px;
    z-index: 2;
    box-sizing: border-box;
}

#daystart a {
    margin-right: 20px;
}

/* Top navigation links over tables */
#toplinks {
    position: relative;
    margin: 0;
    padding: 0;
    display: block;
    margin-bottom: 10px;
    padding-left: 5px;
    padding-right: 5px;
    height: 16px;
    width: 750px;
    box-sizing: border-box;
}

#toplinks a.previous {
    position: absolute;
    left: 72px;
    width: 33%;
    text-align: right;
}

#toplinks a.next {
    position: absolute;
    right: 0;
    width: 33%;
    text-align: right;
}

/* Photo Finish button - compact base */
#toplinks a.photofinish {
    position: absolute;
    left: 0%;
    width: auto;
    max-width: 37%;
    display: flex; /* Flexbox for perfect inline alignment */
    align-items: center; /* Vertical center image+text */
    justify-content: center; /* Horizontal center */
    background: linear-gradient(145deg, #001489 0%, #009A44 100%);
    color: #FFFFFF !important;
    font-family: 'World Athletics';
    font-size: 12px;
    font-weight: 700;
    padding: 8px 25px;

    /*border: 2px solid #FFFFFF;*/
    border-radius: 5px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    text-decoration: none;
    box-shadow: 0 6px 20px rgba(0, 20, 137, 0.3);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    top: -14px;
    gap: 6px; /* Perfect space between image+text */
    line-height: 1.2;
}

#toplinks a.photofinish::before {
    content: url('../graphics/photofinish.png');
    width: 8px;
    height: 8px;
    flex-shrink: 0;
    display: block;
    transform: translateY(-12px) translateX(-20px);
}

#toplinks a.photofinish:hover {
    background: linear-gradient(145deg, #009A44 0%, #001489 100%);
    transform: translateY(-3px) scale(1.01);
    box-shadow: 0 12px 28px rgba(0, 154, 68, 0.4);
    border-color: #001489;
    color: #FFFFFF !important;
}

/* =========================
   SUBMENU (DROPDOWN STYLE)
   ========================= */
.submenustyle {
    width: auto;
    display: none;
    filter: alpha(opacity=0);
    -moz-opacity: 0;
    text-align: center;
    padding-top: 2px;
    padding-right: 1px;
    padding-bottom: 2px;
    padding-left: 1px;
    margin-top: 0;
    position: relative;
    top: 5px;
}

* html .submenustyle { /* IE only width definition */
    width: 100%;
}

.submenustyle a {
    text-decoration: none;
    color: #333333;
    border-top-style: none;
    border-bottom-style: none;
    border-left-style: none;
    border-right-style: none;
    font-family: "WorldAthletics";
    font-size: 11px;
    padding: 1px;
}

.submenustyle a:hover {
    color: #333333;
    text-decoration: underline;
}

/* =========================
   TABLES – GENERAL LOOK
   ========================= */
table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
    text-align: left;
    line-height: 1.6;
    font-size: 13px;
}

thead {
    line-height: 2.0em;
    background: linear-gradient(135deg, #75aadb 50%, #ffffff 0%, #000000 50%);
    color: #FFFFFF;
    font-weight: 700;
    font-size: 12px;
}

thead th {
    padding: 10px 12px;
    border-bottom: 2px solid #FFB300;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

tbody tr {
    transition: background 0.15s ease;
}

tbody tr:nth-child(odd) {
    background-color: #FAFAFC;
}

tbody tr:nth-child(even) {
    background-color: #F0F2F7;
    border-top: 1px solid #CCCCCC;
    border-bottom: 1px solid #CCCCCC;
}

tbody tr:hover {
    background-color: #E4ECFF;
}

tbody td {
    padding: 8px 12px;
    border-bottom: 1px solid #D6D9E0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

tbody th {
    height: 2000px;
}

/* Legacy odd/even classes (if used in markup) */
tr.odd {
    background-color: #FFFFFF;
}

tr.even {
    background-color: #EFEFEF;
    border-top: 1px solid #CCCCCC;
    border-bottom: 1px solid #CCCCCC;
}

/* =========================
   TABLE WIDTH HELPERS
   ========================= */
/* Day table widths */
table.daytable td.plannedtime {
    width: 70px;
    text-align: center;
}

table.daytable td.eventname {
    width: 300px;
    text-align: left;
}

table.daytable td.phase {
    width: 100px;
    text-align: left;
}

table.daytable td.cat {
    width: 60px;
    text-align: center;
}

table.daytable td.gender {
    width: 60px;
    text-align: center;
}

table.daytable td.participants {
    width: 70px;
    text-align: center;
}

table.daytable td.heats {
    width: 70px;
    text-align: center;
}

table.daytable td.status {
    width: 100px;
    text-align: center;
}

table.daytable td.time {
    width: 70px;
    height: 33px;
    text-align: center;
}

/* Race table widths */
table.racetable td.rank,
table.racetable td.lane,
table.racetable td.id,
table.racetable td.cat,
table.racetable td.team,
table.racetable td.pb,
table.racetable td.result,
table.racetable td.info {
    text-align: center;
}

table.racetable td.rank {
    width: 50px;
}

table.racetable td.lane {
    width: 50px;
}

table.racetable td.id {
    width: 70px;
}

table.racetable td.name {
    width: 280px;
}

table.racetable td.pb {
    width: 100px;
}

table.racetable td.team {
    width: 100px;
}

table.racetable td.cat {
    width: 50px;
}

table.racetable td.result {
    width: 100px;
}

table.racetable td.info {
    width: 140px;
}

table.racetable td.TFCameraicon {
    display: none;
}

/* Horizontal field events table */
table.horfetable td.pos {
    width: 40PX;
    text-align: center;
}

table.horfetable td.id {
    width: 50px;
    text-align: center;
}

table.horfetable td.name {
    width: 195px;
}

table.horfetable td.pb {
    width: 55px;
    text-align: center;
}

table.horfetable td.team {
    width: 80px;
    text-align: center;
}

table.horfetable td.cat {
    width: 50px;
    text-align: center;
}

table.horfetable td.result {
    width: 60px;
    text-align: center;
    font-weight: bold;
}

table.horfetable td.rank {
    width: 55px;
    text-align: center;
    font-weight: bold;
}

table.horfetable td.attempt1,
table.horfetable td.attempt2,
table.horfetable td.attempt3,
table.horfetable td.attempt4,
table.horfetable td.attempt5,
table.horfetable td.attempt6 {
    font-size: 13px;
    width: 60px;
    text-align: center;
}

table.horfetable td.info {
    width: 60px;
    text-align: center;
}

table.horfetable td.TFCameraicon {
    display: none;
}

table.horfetable td.points {
    width: 50px;
}

table.horfetable td.event {
    width: 50px;
}

/* Team table */
table.teamtable td.rank {
    width: 70px;
}

table.teamtable td.team {
    width: 100px;
}

table.teamtable td.name {
    width: 100px;
}

table.teamtable td.points {
    width: 70px;
}

/* Vertical field events wrapper */
#vertfetable {
    width: 950px;
    overflow-x: auto;
}

#vertfetable table {
    table-layout: fixed;
    width: 500px;
}

/* Vertical field events table */
table.vertfetable td.pos {
    width: 60PX;
    text-align: center;
    font-size: 12px;
}

table.vertfetable td.id {
    width: 56px;
    text-align: center;
    font-size: 12px;
}

table.vertfetable td.name {
    width: 200px;
}

table.vertfetable td.pb {
    width: 40px;
}

table.vertfetable td.team {
    width: 73px;
    text-align: center;
    font-size: 12px;
}

table.vertfetable td.cat {
    width: 50px;
    text-align: center;
}

table.vertfetable td.result {
    width: 55px;
    text-align: center;
    font-size: 12px;
    font-weight: bold;
}

table.vertfetable td.rank {
    width: 45px;
    text-align: center;
    font-size: 12px;
}

table.vertfetable td.vertheight {
    font-size: 10px;
    width: 50px;
    text-align: center;
    font-size: 12px;
}

table.vertfetable td.info {
    width: 70px;
    text-align: center;
    font-size: 12px;
}

table.vertfetable td.TFCameraicon {
    display: none;
}