/*
Theme Name: Cholfirst ASTRA
Theme URI: https://www.cholfirsttunnel.ch/
Author: Generis AG
Author URI: https://www.generis.ch/
Description: WordPress theme replicating the Swiss Federal Administration (admin.ch) Corporate Design for the Cholfirst Tunnel safety project. Uses the official swiss-styleguide CSS.
Version: 2.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: cholfirst-astra
*/

/* WordPress-specific overrides for swiss-styleguide */

/* === NAV-MAIN: wider tabs, proper gradient === */
.nav-main {
    background: linear-gradient(to bottom, #e4e4e4 0%, #e2e2e2 39%, #ddd 79%, #d5d5d5 91%, #cfcfcf 95%, #bebebe 99%) !important;
    min-height: 65px;
    border-top: 5px solid #DC0018;
}
.nav-main.yamm .nav > li > a {
    max-width: 200px;
    min-width: 120px;
    padding: 10px 14px;
    white-space: normal;
    word-wrap: break-word;
    height: 60px;
    display: flex;
    align-items: center;
}
.nav-main.yamm .nav > li > a:after {
    bottom: 4px;
    position: absolute;
    left: 0;
    width: 100%;
    text-align: center;
}
@media only screen and (min-width: 992px) {
    .nav-main.yamm .nav > li > a {
        min-width: 150px;
    }
}

.site-content { padding-bottom: 40px; min-height: 50vh; }
.site-content .row { margin-top: 20px; }
.news-item { padding: 16px 0; border-bottom: 1px solid #d5d5d5; }
.news-item:first-child { padding-top: 0; }
.news-item .news-date { font-weight: 700; margin-bottom: 6px; }
.news-item .news-body { margin-top: 6px; }
.news-item .news-body img { max-width: 400px; margin: 10px 0; }
.news-item .news-body p { margin-bottom: 0.5em; }

/* Gallery */
.gallery-section { margin-bottom: 24px; }
.gallery-grid { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; }
.gallery-grid a { display: block; width: 180px; height: 130px; overflow: hidden; border: 1px solid #d5d5d5; }
.gallery-grid a:hover { border-color: #069; }
.gallery-grid img { width: 100%; height: 100%; object-fit: cover; }

/* Fix WP admin bar overlap */
body.admin-bar .nav-mobile.fixed { top: 32px; }
@media screen and (max-width: 782px) {
    body.admin-bar .nav-mobile.fixed { top: 46px; }
}

/* Hide WP-generated stuff we don't need */
.wp-block-separator { border: none; height: 1px; background: #d5d5d5; margin: 0; }
