body {
    font-family: 'Segoe UI', sans-serif;
    margin: 0;
    background: #ccd4d6;
}

.site-container {
    max-width: 1200px;
    margin: 50px auto;
    padding: 0;
    background: white;
    border: 12px solid white;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

.hero-container {
    display: flex;
    height: 140px;
    background-color: #002b36;
    color: white;
}

.hero-photo {
    width: 140px;
    background: url('/images/jgsfebb.jpg') center center/cover no-repeat;
}

.hero-textbox {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 14px 24px;
}

.hero-textbox h1 {
    font-size: 2em;
    margin: 0;
}

.hero-textbox p {
    font-size: 0.9em;
    margin: 0;
    color: #ccc;
}

.nav-link {
    font-weight: bold;
    color: #dddcdc;
    margin: 0 10px;
}

.site-nav {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    color: #ffffff;
    background-color: #00222b;
}

.site-nav .w3-bar-item {
    float: none;
}

.section {
    padding: 16px 25px;
}

.footer {
    background-color: #002b36;
    color: #ccc;
    text-align: center;
    padding: 16px;
}

.nolink {
    text-decoration: none;
    color: inherit;
}

.nolink:visited,
.nolink:hover,
.nolink:active {
    text-decoration: none;
    color: inherit;
}

.nolink:hover {
    color: red;
}

a {
    color: #0000ee;
    font-weight: 500;
}

a:link {
    text-decoration: none;
}

a:visited {
    text-decoration: none;
}

a:hover {
    text-decoration: none;
    color: #ff0000;
}

.page-intro {
    margin: -4px 0 16px 0;
    color: #444;
    line-height: 1.45;
}

.catalog-tools {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: center;
    margin: 14px 0 22px 0;
    padding: 12px;
    background: #f7f7f7;
    border: 1px solid #d9e0e2;
}

.catalog-tools input,
.catalog-tools select {
    padding: 8px 10px;
    border: 1px solid #b8c2c5;
    border-radius: 3px;
    font-family: 'Segoe UI', sans-serif;
    font-size: 14px;
}

.catalog-tools input {
    flex: 1;
    min-width: 240px;
}

.catalog-tools select {
    min-width: 210px;
    background: white;
}

.catalog-summary {
    margin: -8px 0 14px 0;
    color: #666;
    font-size: 0.9em;
}

.catalog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, 136px);
    gap: 14px;
    align-items: start;
    justify-content: center;
}

.guide-tile {
    width: 136px;
    height: 132px;
    box-sizing: border-box;
    overflow: hidden;
    padding: 12px 10px;
    border: 1px solid #d9e0e2;
    border-radius: 6px;
    background: #ccd4d6;
    color: #222;
    text-align: center;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
    transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease, background-color 0.15s ease;
}

.guide-tile:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 12px rgba(0,0,0,0.12);
    border-color: #7ea2ad;
    background-color: #f8fbfc;
    color: #002b36;
}

.tile-logo-box {
    width: 54px;
    height: 54px;
    margin: 0 auto 9px auto;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.tile-logo {
    max-width: 48px;
    max-height: 48px;
    object-fit: contain;
    position: relative;
    z-index: 2;
}

.tile-logo-fallback {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    background: #002b36;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 0.95em;
    position: absolute;
    z-index: 1;
}

.tile-title {
    font-size: 0.92em;
    font-weight: 700;
    color: #002b36;
    line-height: 1.15;
    margin-bottom: 4px;
}

.tile-subtitle {
    font-size: 0.76em;
    color: #666;
    line-height: 1.2;
}

.tile-level {
    display: none;
}

.empty-message {
    display: none;
    padding: 14px;
    margin: 16px 0;
    background: #fff8e6;
    border: 1px solid #e6cf91;
    color: #333;
}

@media(max-width: 768px) {
    .site-container {
    margin: 20px auto;
    }

    .hero-container {
    flex-direction: column;
    height: auto;
    }

    .hero-photo {
    width: 100%;
    height: 170px;
    }

    .hero-textbox {
    padding: 12px 16px;
    text-align: center;
    }

    .hero-textbox h1 {
    font-size: 1.7em;
    }

    .hero-textbox p {
    font-size: 0.85em;
    }

    .site-nav {
    justify-content: center;
    flex-wrap: wrap;
    }

    .catalog-tools {
    display: block;
    }

    .catalog-tools input,
    .catalog-tools select {
    width: 100%;
    margin-bottom: 10px;
    }

    .catalog-grid {
    grid-template-columns: repeat(auto-fill, 136px);
    gap: 12px;
    justify-content: center;
    }

    .guide-tile {
    width: 136px;
    height: 132px;
    }
}


.guide-tile-disabled {
opacity: 0.45;
filter: grayscale(85%);
cursor: not-allowed;
background: #e6eaeb;
box-shadow: none;
}

.guide-tile-disabled:hover {
transform: none;
box-shadow: none;
border-color: #d9e0e2;
background: #e6eaeb;
color: #222;
}

.guide-tile-disabled .tile-title {
color: #555;
}

.guide-tile-disabled .tile-subtitle {
color: #777;
}

.tile-disabled-label {
margin-top: 5px;
font-size: 0.68em;
font-weight: 700;
color: #666;
text-transform: uppercase;
letter-spacing: 0.04em;
}

