/*
 * app/assets/stylesheets/bilaterals.css
 *
 * Complete stylesheet for bilaterals.org Rails conversion.
 * Faithfully ported from SPIP style.css + custom.css overrides.
 *
 * Load order: bootstrap.min.css → font-awesome.min.css → this file
 *
 * Table of Contents:
 *   1. Global / Base
 *   2. Wrappers & Containers
 *   3. Article Elements
 *   4. Header Mobile
 *   5. Header Desktop
 *   6. Navigation Dropdowns
 *   7. Slider (Hero)
 *   8. Content Area
 *   9. News Layouts
 *  10. Sidebar
 *  11. Footer
 *  12. Banners & Boxes
 *  13. Responsive Breakpoints
 */


/* ==========================================================================
   1. GLOBAL / BASE
   ========================================================================== */

body {
    font-family: 'Roboto', sans-serif;
    color: #5c5c5c;
    background: #fff;
    padding: 0 0 20px 0;
}

/* Default links: dark, NOT orange */
a {
    text-decoration: none;
    color: #222;
    transition: color 200ms ease, background-color 200ms ease,
    text-shadow 200ms ease, box-shadow 200ms ease, border 200ms ease;
}

/* Hover: orange (custom.css override) */
a:hover {
    color: #d76c16 !important;
    text-decoration: underline;
}

/* Links inside paragraphs: always orange */
p > a {
    color: #d76c16 !important;
}

/* SPIP content links */
.spip a {
    color: #d76c16 !important;
}

li {
    line-height: 24px;
    font-size: 16px;
}


/* ==========================================================================
   2. WRAPPERS & CONTAINERS
   ========================================================================== */

#page-outer-wrap {
    position: relative;
    overflow: hidden;
    width: 100%;
}

#page-inner-wrap {
    position: relative;
    width: 100%;
}

.relative {
    position: relative;
}

.container {
    padding: 0;
}

.container .img-responsive {
    display: block;
    width: 100%;
    max-height: none !important;
}

/* Main content wrapper (custom.css override: margin 20px) */
#page-content {
    position: relative;
    overflow: hidden;
    margin: 20px 0 0 0;
    padding: 0;
    box-shadow: 0 0 12px 0 #ccc;
}

#main {
    padding: 10px;
}

#main.wide {
    float: none;
    width: 100%;
}

#main .col-md-8 {
    padding-top: 20px;
    padding-right: 20px;
}

#main .col-md-4 {
    padding-top: 20px;
    padding-left: 20px;
}

/* Sidebar: WHITE background (custom.css overrides original dark #444) */
#sidebar {
    padding-top: 0px;
    background-color: #fff;
}

#sidebar .row {
    margin: 0;
}

/* Equal-height columns trick */
.row-height {
    margin-bottom: -99999px;
    padding-bottom: 99999px;
}

/* Separators */
.separator-left  { border-left: 1px solid #e3e3e3; }
.separator-right { border-right: 1px solid #e3e3e3; }
.separator-bottom { border-bottom: 1px solid #e3e3e3; }

/* Utility classes */
.top-margin     { margin-top: 20px; }
.top-padding    { padding-top: 15px; }
.bottom-padding { padding-bottom: 15px; }
.no-padding     { padding: 0; }
.capitalize     { text-transform: capitalize; }

#page-content .bottom-margin {
    margin-bottom: 15px;
}

.form-control {
    padding: 10px 12px;
    height: 42px;
}


/* ==========================================================================
   3. ARTICLE ELEMENTS
   ========================================================================== */

article {
    position: relative;
    margin-bottom: 25px;
}

.theme {
    position: absolute;
    top: 10px;
    left: 0;
    font: 700 13px/25px 'Roboto Condensed', sans-serif;
    color: #fff;
    text-transform: uppercase;
    background: #444;
    padding: 0 12px;
}

/* Overlay on images */
.overlay {
    position: absolute;
    color: #eee;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 12px 15px;
    background: rgba(0, 0, 0, .4);
}

.large .overlay {
    padding: 15px 20px;
}

.overlay h1,
.overlay h2,
.overlay h3 {
    margin: 0;
}

.overlay h1 { font-size: 24px; padding: 5px; }
.overlay p   { margin: 6px 0 0 0; opacity: 0.8; }
.overlay a   { color: #fff; }

/* Orange overlay on hover (custom.css) */
.overlay:hover {
    background: #d76c16 !important;
}

.overlay .sharing {
    position: absolute;
    font-size: 14px;
    right: 25px;
    bottom: 25px;
}

.overlay .sharing a {
    display: inline-block;
    margin-left: 12px;
    opacity: 0.6;
}

.overlay .sharing a:hover { opacity: 1.0; }

/* Article typography */
article.linkbox h2 {
    font: 400 24px/30px 'Roboto Condensed', sans-serif;
}

article.linkbox h3 {
    font: 700 15px/18px 'Roboto Condensed', sans-serif;
}

article.thumb h3 {
    font: 700 16px/20px 'Roboto Condensed', sans-serif;
    margin: 0 0 10px 0;
}

article span.text {
    font-size: 12px;
}

article span.published {
    display: block;
    margin-top: 10px;
    font-size: 10px;
    color: #777;
    text-transform: uppercase;
}

article.thumb span.published {
    margin-bottom: 10px;
}

/* Linkbox postmeta (positioned absolute on overlay) */
article.linkbox .postmeta {
    position: absolute;
    font-size: 12px;
    color: #fff;
    bottom: 10px;
    left: 10px;
    opacity: 0.7;
    cursor: pointer;
}

article.linkbox .postmeta a { color: #fff; text-decoration: none; }
article.linkbox .postmeta span { display: inline-block; margin: 0 6px; }
article.linkbox .postmeta span:before { font-family: 'FontAwesome'; margin-right: 8px; }
article.linkbox.large .postmeta { left: 15px; bottom: 15px; }

article.has-meta .overlay { padding-bottom: 35px; }
article.large.has-meta .overlay { padding-bottom: 40px; }

/* Linkbox2 postmeta (NOT positioned absolute — used in article lists) */
article.linkbox2 .postmeta {
    font-size: 12px;
    opacity: 0.7;
    cursor: pointer;
    margin-bottom: 2px;
    margin-left: -5px;
}

article.linkbox2 .postmeta a { color: #fff; text-decoration: none; }
article.linkbox2 .postmeta span { display: inline-block; margin: 0 6px; }
article.linkbox2 .postmeta span:before { font-family: 'FontAwesome'; margin-right: 8px; }

/* FontAwesome calendar icon */
.fa-calendar:before { content: "\f133"; }

/* Article title class (used in list views) */
.article-title {
    font: 700 16px/20px 'Roboto Condensed', sans-serif;
    font-weight: bold;
    font-size: 120%;
    margin-bottom: 5px;
}

/* Article images */
.article-image img {
    width: 100% !important;
    max-width: 750px;
    height: auto;
    margin-bottom: 10px;
}

/* Article keywords tags */
.article-keywords { font-weight: bold; margin-top: 10px; }
.article-keywords a {
    padding: 3px 5px;
    border-radius: 3px;
    margin-right: 5px;
    background-color: #eee;
}
.article-keywords a:hover { background-color: #ccc; }


/* ==========================================================================
   4. HEADER MOBILE
   ========================================================================== */

/* Custom.css override: white background, auto height */
#page-header-mobile {
    position: relative;
    border-top: 5px solid #fff;
    border-bottom: 2px solid #3a3a3a;
    background: #fff !important;
    height: auto;
    overflow: hidden;
    padding: 0 10px;
}

#page-header-mobile h1 { margin: 0; padding: 1px 0; }
#page-header-mobile h1 img { vertical-align: inherit; }

#page-header-mobile a { color: #333; }
#page-header-mobile a:hover { color: #d76c16 !important; }
#page-header-mobile span.glyphicon { font-size: 24px; margin-top: 5px; }

/* Mobile sidr slide-out menu */
#sidr {
    background: #2d2f33;
    display: none;
    font-size: 15px;
    padding: 15px;
}

#sidr ul { list-style: none; padding: 0; margin: 0; }
#sidr ul li { border-bottom: 1px solid #555; }
#sidr ul li a {
    color: #ccc;
    display: block;
    padding: 8px 0;
    font-size: 14px;
    text-transform: uppercase;
}
#sidr ul li a:hover { color: #fff; text-decoration: none; }
#sidr ul li ul { padding-left: 15px; }
#sidr ul li ul li { border-bottom: 1px solid #444; }
#sidr ul li ul li a { text-transform: none; font-size: 13px; }

#sidr .more { float: right; }

/* Mobile search form */
#search-form-mobile {
    padding: 10px 0;
    border-bottom: 1px solid #555;
}

#search-form-mobile input[type="text"] {
    width: 100%;
    padding: 6px 10px;
    border: 1px solid #555;
    background: #444;
    color: #fff;
    border-radius: 3px;
    margin: 5px 0;
}

/* Nav expander hamburger */
#nav-expander {
    font-size: 28px;
    color: #333;
    display: inline-block;
    margin-top: 15px;
}

/* Language selector mobile */
.lang-select-mobile {
    border-top: 1px dotted #eee;
    text-align: center;
}


/* ==========================================================================
   5. HEADER DESKTOP
   ========================================================================== */

#page-header h1 { color: #fff; margin: 0; }

/* Header branding bar (custom.css: no border-top, 110px height) */
#header-branding {
    position: relative;
    height: 110px !important;
    border-top: none;
    border-bottom: 1px solid #4d4d4d;
    overflow: hidden;
}

#header-branding h1 { padding: 20px 0 0 6px; }

/* Search form (in header branding) */
#header-branding #search-form {
    width: 360px;
    height: 45px;
    border: 3px solid #4a4a4a;
    text-align: left;
    margin-top: 22px;
    margin-bottom: 0px !important;
    padding: 0 10px;
    border-radius: 10px;
    overflow: hidden;
}

#header-branding #search-form input {
    line-height: 36px;
    height: 36px;
    color: #999;
    background: #fff;
    border: none;
    width: 300px;
    padding: 0 5px;
}

#header-branding #search-form button {
    line-height: 36px;
    height: 36px;
    color: #a1a1a1;
    background-color: #fff;
    border: none;
    width: 30px;
}

/* Advanced search keywords button */
.search-keywords {
    font: 700 13px/25px 'Roboto Condensed', sans-serif;
    border: 1px solid #ccc;
    width: 200px;
    text-align: center;
    margin: 0px auto;
    padding: 2px 6px;
    background: #ccc;
    margin-top: 4px;
    margin-bottom: 4px;
}

.search-keywords:hover { background: #eee; }
.search-keywords a { color: #333; }

/* Navigation bar */
#header-navigation {
    position: relative;
    height: 50px;
    background: #3f3f3f;
}

#header-navigation .container { position: relative; }

#header-navigation ul {
    padding: 0;
    margin-top: 0px;
    border-left: 1px solid #4d4d4d;
}

#header-navigation ul ul { margin-top: 0; }

#header-navigation ul li {
    position: static;
    list-style: none;
    float: left;
    border-right: 1px solid #4d4d4d;
}

#header-navigation ul li a {
    display: block;
    font-size: 12px;
    font-weight: 700;
    line-height: 50px;
    color: #fff;
    text-transform: uppercase;
    padding: 0 10px;
    border-top: 1px solid #222;
}

#header-navigation ul li li a { border-top: none; }

#header-navigation ul li.current a,
#header-navigation ul li a:hover,
#header-navigation ul li a:focus {
    background: #222;
    color: #fff !important;
    text-decoration: none;
}

/* Right-side options (Publish, language) */
#header-navigation ul li.options {
    float: right;
    padding-right: 10px;
}

#header-navigation ul li.options a {
    display: inline-block;
    font-size: 12px;
    color: #999;
    padding: 0 10px;
    border: none;
}

#header-navigation ul li.options a span.glyphicon { padding-right: 8px; color: #999; }
#header-navigation ul li.options a:hover,
#header-navigation ul li.options a:hover span { background: none; color: #fff !important; }


/* ==========================================================================
   6. NAVIGATION DROPDOWNS
   ========================================================================== */

#header-navigation .dropnav-container {
    display: none;
    position: absolute;
    top: 50px;
    z-index: 10;
    background: #3f3f3f;
    margin: 0;
}

#header-navigation .dropnav-container ul {
    background: #3f3f3f;
    border-bottom: 1px solid #4D4D4D;
}

#header-navigation .dropnav-container ul.dropnav-menu li {
    position: relative;
    float: none;
    min-width: 200px;
    border-top: 1px solid #4D4D4D;
}

#header-navigation .dropnav-container ul.dropnav-menu li a {
    color: #fff;
    line-height: 18px;
    padding-top: 10px;
    padding-bottom: 10px;
}

#header-navigation .dropnav-container ul.dropnav-menu li a i.fa {
    float: right;
    line-height: 18px;
}

#header-navigation .dropnav-container ul.dropnav-menu ul {
    display: none;
    position: absolute;
    top: -1px;
    left: 200px;
    z-index: 100;
}

#header-navigation ul li:hover .dropnav-container,
#header-navigation .dropnav-container ul.dropnav-menu li:hover ul {
    display: block;
}


/* ==========================================================================
   7. SLIDER (Hero area)
   ========================================================================== */

#page-slider {
    position: relative;
    margin-top: 1px;
}

#page-slider .row { float: left; }
#page-slider .row .row { float: none; }

#page-slider .col-sm-8 { padding-right: 1px; }
#page-slider .col-sm-8 article { margin: 0 0 1px 0; }
#page-slider .col-sm-4 article { margin: 1px 0 0 0; }
#page-slider .col-sm-4 article:first-child { margin-top: 0; }

#page-slider .col-sm-8 article .overlay p { display: none; }


/* ==========================================================================
   8. CONTENT AREA
   ========================================================================== */

#page-content header {
    position: relative;
}

#page-content header h2 {
    font: 400 17px/17px 'Roboto Condensed', sans-serif;
    color: #444;
    text-transform: uppercase;
    margin: 0 0 15px 0;
    padding-bottom: 10px;
    border-bottom: 1px solid #f5f5f5;
}

/* Orange borderline (custom.css override from #222) */
#page-content header span.borderline {
    position: absolute;
    left: 0;
    bottom: 0;
    width: 30px;
    height: 1px;
    background-color: #d76c16 !important;
}

/* header-orange class (custom.css) */
.header-orange {
    color: #d76c16 !important;
    font-weight: bold !important;
    text-transform: none !important;
}

/* "More" links */
.more {
    color: #0000;
    float: right;
    font-weight: bold;
    margin-bottom: 10px;
}

.more a {
    color: #d76c16;
}

.more span:before {
    font-family: 'FontAwesome';
}

/* News from movements right column background */
.news-movements-container {
    background-color: #f3f3f3;
}


/* ==========================================================================
   9. NEWS LAYOUTS
   ========================================================================== */

.news-layout article {
    padding-bottom: 5px;
    margin-bottom: 10px;
    line-height: 18px;
    border-bottom: 1px solid #e3e3e3;
}

.news-layout article:last-child { border-bottom: none; }

.news-layout article h3 {
    font: 700 16px/20px 'Roboto Condensed', sans-serif;
    margin: 0px 0px 5px 0px;
}

.news-layout article h3 a { color: #222; }
.news-layout article h3 a:hover { text-decoration: none; }
.news-layout article img { float: left; margin: 3px 12px 3px 0; }


/* ==========================================================================
   10. SIDEBAR
   ========================================================================== */

/* Sidebar h3 links: dark, orange on hover (custom.css) */
#sidebar h3 a { color: #1B1818 !important; font-size: 13px; }
#sidebar h3 a:hover { color: #d76c16 !important; }

/* Sidebar article borders: light grey (custom.css override from dark) */
#sidebar .module-news article {
    border-top: 1px solid #DDD;
}

#sidebar .module-news { margin-bottom: 5px; }

#sidebar .module-news article {
    padding: 15px 0;
    margin: 0;
    min-height: 80px;
}

#sidebar .module-news article:first-child { padding-top: 0; border: none; }

#sidebar .module-news article h3 {
    font: 700 15px/18px 'Roboto Condensed', sans-serif;
    margin: 0;
    max-height: 54px;
    overflow: hidden;
}

#sidebar .module-news article h3 a { color: #1B1818; }
#sidebar .module-news article h3 a:hover { color: #d76c16 !important; }

#sidebar .module-news article span.published {
    display: block;
    font-size: 11px;
    line-height: 11px;
    color: #999;
    margin: 3px 0 6px 0;
}

#sidebar .module-news article img {
    display: block;
    float: left;
    margin-right: 12px;
}

/* Sidebar article rows (table-based layout from SPIP) */
.sidebar-articles {
    color: black;
    text-align: left;
    padding: 10px;
}

.sidebar-heading {
    padding: 0px !important;
    min-height: 0px !important;
}

.sidebar-row {
    border-top: 1px solid #EEE;
}

/* "Latest" heading in sidebar */
.latest {
    color: black;
    font-size: 17px;
}

/* Article container separator */
.article-container hr {
    border: 1px solid;
}

/* Font-awesome bullet in sidebar */
.font-awesome {
    font-family: 'FontAwesome';
    margin-right: 12px;
}


/* ==========================================================================
   11. FOOTER
   ========================================================================== */

#page-footer {
    position: relative;
}

#foot-menu {
    height: 70px;
    border-bottom: 1px solid #e4e4e4;
    overflow: hidden;
}

#foot-menu ul { padding: 0; }
#foot-menu ul li { list-style: none; float: left; margin-right: 1px; }

/* Custom.css: no border, no text-transform */
#foot-menu ul li a {
    display: block;
    font-size: 14px;
    font-weight: 700;
    line-height: 68px;
    color: #222;
    border: none;
    text-transform: none;
    padding: 0 22px;
}

#foot-menu ul li.current a,
#foot-menu ul li a:hover { color: #999; }

#foot-menu ul li.options { float: right; padding-right: 10px; }
#foot-menu ul li.options a {
    display: inline-block;
    font-size: 12px;
    color: #999;
    padding: 0 10px;
    border: none;
}

#foot-menu ul li.options a span.glyphicon { padding-left: 10px; color: #999; }
#foot-menu ul li.options a:hover,
#foot-menu ul li.options a:hover span { color: #222; }

/* Footer about section */
#page-footer .about {
    font-size: 13px;
    color: #888;
    padding: 0 0 25px 0;
}

#page-footer .row { margin: 0; }

#page-footer .about div { font-size: 13px; color: #888; margin-top: 30px; }
#page-footer .about h3 { text-align: center; }
#page-footer .about h4 { font-size: 15px; color: #444; }
#page-footer .about a { color: #828282; }
#page-footer .about a i.fa { margin-right: 10px; }
#page-footer .about a:hover { color: #222; }
#page-footer .about ul { list-style: none; padding: 0; }
#page-footer .about ul li { float: left; width: 50%; }

/* Copyright */
#page-footer .copyright {
    font-size: 13px;
    color: #888;
    padding: 10px 0;
    border-top: 1px solid #e4e4e4;
}

#page-footer .copyright div { text-align: center; }
#page-footer .copyright a { font-weight: 700; color: #444; }


/* ==========================================================================
   12. BANNERS & BOXES
   ========================================================================== */

/* Banner base */
.banner {
    text-align: center;
    margin: 0 0 20px 0;
    overflow: hidden;
}

.banner span:before { font-family: 'FontAwesome'; }

.banner-separator {
    background: #383838;
    padding: 20px;
    margin: 0 -20px 20px -20px;
}

.banner-separator a { color: white; }

/* Ad blocks */
.ad { text-align: center; margin: 0 0 20px 0; overflow: hidden; }
.ad span:before { font-family: 'FontAwesome'; }
.ad a { color: #fff; font-weight: bold; }
.ad a:hover { color: #fff; }

.ad-separator {
    background: #383838;
    padding: 20px;
    margin: 0 -20px 20px -20px;
}

/* Orange backgrounds */
.orange-bg1 { background-color: #d76c16 !important; }
.orange-bg2 { background-color: #d76c16 !important; }
.orange-bg3 { background-color: #d76c16 !important; }

/* Subscribe box */
.subscribe-box {
    border-top: 1px solid #FFF;
    font-size: 170%;
    text-align: left;
}

.subscribe-box a:hover { color: orange !important; }
.subscribe-box td a { color: #fff !important; }

/* Other languages box */
.other-languages-box {
    border-top: 1px solid #FFF;
    font-size: 130% !important;
    text-align: left;
    position: relative;
    top: -25px;
    left: 15px;
}

.other-languages-box a:hover { color: orange !important; }

/* FTA FAQ box — uses background image */
.fta-faq-box {
    background-color: red;
    text-align: left;
    background: url("/assets/fta-faq-92889445.png") no-repeat;
    background-size: 360px;
    padding: 20px 120px 100px 30px;
    font-size: 22px;
    margin-left: -10px;
    margin-top: -10px;
}

/* Sticky notice box (yellow) */
.sticky {
    background-color: #FFEA92;
    padding: 10px;
    color: black;
    margin: 0px 10px 10px 0px;
}

/* Sticky Note post-it (from Sticky model, public sidebar) */
.sticky-note {
    background-color: #FFEA92;
    padding: 12px 20px 10px 20px;
    color: #333;
    margin: 0 -20px 14px -20px;
    box-shadow: 2px 3px 8px rgba(0,0,0,0.15);
    /* border-left: 4px solid #F5C800; */
    font-size: 13px;
    line-height: 1.5;
    font-family: 'Roboto', sans-serif;
}
.sticky-note .sticky-note-title {
    font-weight: 700;
    font-size: 14px;
    margin-bottom: 6px;
    color: #222;
    padding-left: 5px;
    padding-right: 15px;
}
.sticky-note .sticky-note-title .fa-thumb-tack {
    color: darkgreen;
    margin-right: 6px;
    font-size: 22px;
}
.sticky-note .sticky-note-body {
    padding-left: 5px;
    padding-right: 15px;
}
.sticky-note .sticky-note-body p:last-child {
    margin-bottom: 0;
}
.sticky-note a {
    color: #6b5a00;
    text-decoration: underline;
}
.sticky-note a:hover {
    color: #3d3300;
}

/* Podcast embed (responsive 16:9) */
.podcast {
    background-color: white;
    margin-top: 10px;
    color: black;
    text-align: center;
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    margin-left: -5px;
    overflow: hidden;
}

.podcast iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.podcast-logo {
    width: 90%;
    margin-top: 10px;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.podcast-logo:hover {
    transform: scale(1.05);
    border-color: #0056b3;
}

/* Image button hover effect */
.image-button img { transition: all .2s ease-in-out; }
.image-button img:hover { transform: scale(1.1); }

/* Selected state (e.g. language) */
.selected { background-color: #d76c16; text-align: center; }
.selected a { color: white !important; }

/* Language menu */
.languages-menu div {
    padding: 4px 6px;
    border: 1px solid;
    margin-right: 10px;
    margin-top: 10px;
    float: left;
    text-align: center;
}

.languages-menu { margin-top: 20px; margin-bottom: 10px; }
.languages-menu .select-lang { background-color: darkorange; color: white; }

/* Translation switcher */
.traductions {
  margin: 1rem 0 1.25rem;
}

.traductions-label {
  font-size: 0.85rem;
  color: #777;
  margin: 0 0 0.5rem;
  font-weight: normal;
}

.traductions-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.traductions-btn {
  display: inline-block;
  padding: 0.5rem 1.1rem;
  border: 1px solid #ccc;
  border-radius: 3px;
  font-size: 1rem;
  font-weight: bold;
  color: #444;
  text-decoration: none;
  background: #f5f5f5;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.traductions-btn:hover {
  background: #e8e8e8;
  border-color: #aaa;
  color: #222;
  text-decoration: none;
}

.traductions-btn--active {
  background: #d76c16;
  border-color: #d76c16;
  color: #fff;
  cursor: default;
}

/* Footnotes */
.footnotes {
    background-color: #F9F9F9;
    padding: 10px 15px;
    margin-bottom: 15px;
    border-radius: 10px;
}
.footnotes h6 { font-size: 120%; }
.footnotes div { font-size: 90%; }


/* ==========================================================================
   13. RESPONSIVE BREAKPOINTS
   ========================================================================== */

/* ---- Mobile (max 720px) ---- */
@media (max-width: 720px) {

    article.linkbox h2 {
        font-size: 20px;
        line-height: 1.2em;
    }

    article.linkbox h3 {
        font: 400 24px/30px 'Roboto Condensed', sans-serif;
        font-size: 20px;
        line-height: 1.2em;
    }

    article.thumb h3 { margin-top: 10px; }
    .article-title { margin-top: 7px; }

    article {
        padding-bottom: 10px;
        border-bottom: none;
    }

    #page-content { margin: 0px 0 0 0; }
    #page-content .bottom-margin { margin-bottom: 0px; }

    #page-slider .col-sm-4 article { padding-bottom: 0px; }
    #page-slider .col-sm-8 article { padding-bottom: 0px; }

    .row-height {
        margin-bottom: 0px;
        padding-bottom: 0px;
    }

    .separator-right {
        border-right: none;
    }
}


/* ---- Tablet (768px+) ---- */
@media (min-width: 768px) {

    #main { padding: 15px; }

    .overlay h1 { padding: 10px; }

    #page-slider .col-sm-8 article,
    #page-slider .col-sm-3 article {
        height: 452px;
        margin: 0;
    }

    #page-slider .col-sm-8 article img,
    #page-slider .col-sm-3 article img {
        height: 452px;
        width: 100%;
        object-fit: cover;
    }

    #page-slider .col-sm-8 article .overlay p { display: block; }

    #page-slider .col-sm-4 { padding-left: 0px; }
    #page-slider .col-sm-4 article { height: 150px; }
    #page-slider .col-sm-4 article img { height: 150px; width: 100%; object-fit: cover; }

    #page-footer .about div { margin-top: 15px; }
    #page-footer .about div:first-child { margin-top: 0; }
    #page-footer .copyright div { text-align: left; }
    #page-footer .copyright div.text-right { text-align: right; }
}


/* ---- Desktop (992px+) ---- */
@media (min-width: 992px) {

    #main {
        float: left;
        width: 670px;
        padding: 0 20px;
        min-height: 1300px;
    }

    #main.article { padding: 20px; }

    #main .col-md-9 { padding-top: 20px; padding-right: 20px; }
    #main .col-md-3 { padding-top: 20px; padding-left: 20px; }

    #sidebar {
        padding: 15px;
        float: right;
        width: 300px;
    }

    #sidebar .module-news article { padding: 12px; }

    .row-height {
        margin-bottom: -99999px;
        padding-bottom: 99999px;
    }

    .overlay h1 {
        font-size: 36px;
        padding: 15px 350px 15px 15px;
    }

    article.linkbox h2 {
        font: 400 30px/36px 'Roboto Condensed', sans-serif;
    }

    #header-navigation ul li a {
        font-size: 13px;
        padding: 0 18px;
    }

    #header-navigation .dropnav-container ul.dropnav-menu li { min-width: 200px; }

    #page-slider .col-sm-8 { width: 635px; }
    #page-slider .col-sm-4 { width: 365px; }

    #page-footer .about h3 { text-align: left; padding-top: 30px; }
    #page-footer .about div { padding: 0 20px; }
    #page-footer .about div:first-child { padding-left: 5px; }

    .ad-separator { padding: 15px; margin: 0 -15px 20px -15px; }
}


/* ---- Large desktop (1170px+) ---- */
@media (min-width: 1170px) {

    #header-navigation ul li a {
        font-size: 14px;
        padding: 0 20px;
    }

    #header-navigation .dropnav-container ul.dropnav-menu li { min-width: 240px; }
    #header-navigation .dropnav-container ul.dropnav-menu ul { left: 240px; }
}


/* ---- XL desktop (1200px+) ---- */
@media (min-width: 1200px) {

    #main {
        width: 825px;
        padding: 0 25px;
        min-height: 1470px;
    }

    #main.article { padding: 25px 40px 25px 25px; min-height: 1650px; }

    #main .col-md-9 { padding-top: 25px; padding-right: 25px; }
    #main .col-md-3 { padding-top: 25px; padding-left: 25px; }

    #sidebar {
        width: 345px;
        padding: 0px;
        padding-bottom: 0px;
    }

    #sidebar .module-news article { padding: 15px; }

    /* Slider: custom widths at 1200px */
    #page-slider .col-sm-8 {
        width: 850px;
        margin: 5px 5px 0px 0px;
    }

    #page-slider .col-sm-8 article img { height: 460px; object-fit: cover; }

    #page-slider .col-sm-4 { width: 345px; }
    #page-slider .col-sm-4 article:first-child { margin-top: 5px; }
    #page-slider .col-sm-4 article { margin: 5px 0 0px 0px; }

    .ad-separator { padding: 20px 25px; margin: 0 -25px 20px -25px; }
}


/* ==========================================================================
   ARTICLE PAGE (for future use)
   ========================================================================== */

#article-post header {
    padding: 15px 0;
    margin: 0 0 20px 0;
    border-bottom: 1px solid #dadada;
}

#article-post header h1 {
    font: 400 30px/36px 'Roboto Condensed', sans-serif;
    color: #222;
    margin: 0;
}

#article-post h2 {
    font: 400 24px/30px 'Roboto Condensed', sans-serif;
    color: #222;
    margin: 25px 0 15px 0;
}

#article-post p {
    line-height: 24px;
    margin-bottom: 15px;
    font-size: 16px;
}

/* Section content paragraph spacing — public + admin */
.section-content p {
    line-height: 1.6;
    margin-bottom: 1em;
}

#article-post p a { color: #d76c16 !important; }
#article-post li a { color: #d76c16 !important; }

#article-post p.lead {
    font: 400 16px/24px 'Roboto Slab', serif;
    color: #222;
    margin-bottom: 25px;
}

/* Blockquote */
#article-post blockquote {
    position: relative;
    background: #f5f5f7;
    padding: 35px 80px 35px 70px;
    margin: 25px 0;
    border: none;
    border-radius: 6px;
}

#article-post blockquote p {
    font-size: 20px;
    line-height: 30px;
    font-style: italic;
    color: #222;
}

#article-post blockquote:before {
    position: absolute;
    top: 20px;
    left: 25px;
    content: open-quote;
    font: 700 54px/54px Georgia, serif;
    color: #999;
}

#article-post blockquote:after {
    position: absolute;
    bottom: 10px;
    right: 25px;
    content: close-quote;
    font: 700 54px/54px Georgia, serif;
    color: #999;
}

/* Article source link */
.article-source a { color: #d76c16; font-weight: bold; }

/* Article share buttons */
.article-share { margin-bottom: 10px; }
.article-share a { color: #828282; margin: 0 6px; }

/* Article row (list view) */
.article-row {
    border-bottom: 1px dotted #CCC;
    padding-bottom: 15px;
    padding-top: 10px;
}

/* Breadcrumbs */
.breadcrumb { padding: 0; margin: 0 0 8px 0; background: none; }
.breadcrumbs a { color: darkgrey; }


/* ==========================================================================
   SUB-SECTIONS & SEE-ALSO BOXES
   ========================================================================== */

/* --- Sub-sections: pill tag layout --- */

.subsections-box-outer {
    margin-bottom: 24px;
}

.subsections-label {
    display: block;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #aaa;
    margin-bottom: 10px;
}

.subsections-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.subsection-pill {
    display: inline-block;
    padding: 5px 14px;
    background: #f2f2f2;
    border: 1px solid #ddd;
    border-radius: 20px;
    font-size: 13px;
    color: #444;
    text-decoration: none !important;
    transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.subsection-pill:hover {
    background: #d76c16;
    color: #fff !important;
    border-color: #d76c16;
}

/* --- See-also: card with header bar --- */

.see-also-list {
    margin-top: 8px;
    border: 1px solid #e8ddd5;
    border-radius: 4px;
    overflow: hidden;
}

.see-also-label {
    display: block;
    padding: 8px 14px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #fff;
    background: #d76c16;
}

.see-also-links {
    list-style: none;
    margin: 0;
    padding: 0;
}

.see-also-item {
    border-bottom: 1px solid #f2ebe4;
}

.see-also-item:last-child { border-bottom: none; }

.see-also-item a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 9px 14px;
    color: #444;
    font-size: 13px;
    text-decoration: none !important;
    transition: background 0.12s ease, color 0.12s ease;
}

.see-also-item a::before {
    content: '›';
    font-size: 20px;
    line-height: 1;
    color: #d76c16;
    flex-shrink: 0;
}

.see-also-item a:hover {
    background: #fdf4ee;
    color: #d76c16;
}


/* ==========================================================================
   PAGINATION
   ========================================================================== */

.pagination {
    display: flex !important;
    justify-content: center;
    flex-wrap: wrap;
    gap: 4px;
    margin-top: 1.5rem;
    margin-bottom: 1rem;
    padding-left: 0;
    list-style: none;
}

.page-item .page-link {
    display: block;
    padding: 0.4rem 0.75rem;
    line-height: 1.4;
    color: #555;
    background-color: #fff;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    text-decoration: none;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.page-item .page-link:hover {
    color: #d76c16;
    background-color: #f5f5f5;
    border-color: #d76c16;
}

.page-item.active .page-link {
    color: #fff;
    font-weight: bold;
    background-color: #d76c16;
    border-color: #d76c16;
}

.page-item.disabled .page-link {
    color: #aaa;
    background-color: #fff;
    border-color: #dee2e6;
    pointer-events: none;
}

/* ==========================================================================
   SOCIAL SHARE BUTTONS
   ========================================================================== */

.social-share-buttons {
    display: block;
    width: 100%;
    text-align: right;
    margin-bottom: 12px;
}

.social-share-buttons .share-btn {
    display: inline-flex;
}

.share-btn svg,
.share-btn i {
    display: block;
    line-height: 1;
}

.share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    color: #fff !important;
    font-size: 15px;
    text-decoration: none !important;
    transition: opacity 0.2s ease, transform 0.15s ease;
}

.share-btn:hover {
    opacity: 0.85;
    transform: scale(1.1);
}

.share-print    { background-color: #6c757d; }
.share-facebook { background-color: #1877F2; }
.share-x        { background-color: #000;    }
.share-whatsapp { background-color: #25D366; }
.share-bluesky  { background-color: #0085ff; }
.share-instagram {
    background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%);
}


/* ==========================================================================
   SEARCH
   ========================================================================== */

/* Language tab pills */
.search-lang-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0; }
.search-lang-tab {
    display: inline-block; padding: 4px 12px; border-radius: 20px;
    background: #f0f0f0; color: #555; text-decoration: none; font-size: 13px;
}
.search-lang-tab:hover { background: #e0e0e0; text-decoration: none; color: #333 !important; }
.search-lang-tab.active { background: #d76c16; color: #fff !important; }
.search-lang-tab.active:hover { background: #c25e12; }

.search-result-count { color: #777; font-size: 14px; margin-bottom: 12px; }
.no-results { text-align: center; padding: 40px 0; color: #888; font-size: 16px; }

/* Advanced search filter panel */
.search-filter-panel {
    background: #f9f9f9; border: 1px solid #e5e5e5;
    border-radius: 4px; padding: 16px; margin-bottom: 24px;
}
.search-filter-row { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 14px; }
.search-filter-row:last-child { margin-bottom: 0; }
.search-filter-label {
    min-width: 110px; font-weight: 600; font-size: 13px;
    color: #555; padding-top: 6px; flex-shrink: 0;
}
.search-filter-options { flex: 1; }
.search-filter-scroll {
    max-height: 150px; overflow-y: auto;
    border: 1px solid #ddd; border-radius: 3px;
    padding: 8px; background: #fff;
}
.search-filter-options label {
    display: inline-block; margin-right: 14px; font-size: 13px;
    cursor: pointer; font-weight: normal;
}
.search-filter-scroll label {
    display: block; margin-right: 0; margin-bottom: 4px;
}

/* Keyword groups (collapsible <details>) */
.keyword-group-details { margin-bottom: 6px; }
.keyword-group-details summary {
    font-weight: 600; font-size: 12px; color: #888;
    text-transform: uppercase; letter-spacing: 0.5px;
    cursor: pointer; padding: 2px 0; list-style: none; user-select: none;
}
.keyword-group-details summary::-webkit-details-marker { display: none; }
.keyword-group-details summary::before { content: '\25B8  '; }
.keyword-group-details[open] summary::before { content: '\25BE  '; }

/* Active filter chips */
.active-filters { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.filter-chip {
    background: #fff3e6; border: 1px solid #d76c16; color: #d76c16 !important;
    border-radius: 20px; padding: 2px 10px; font-size: 12px;
    text-decoration: none !important; display: inline-flex; align-items: center; gap: 4px;
}
.filter-chip:hover {
    background: #ffe8cc; text-decoration: none !important; color: #b55a10 !important;
}

/* ============================================================
   ADVANCED SEARCH — redesigned sidebar layout
   ============================================================ */

/* Page header */
#advanced-search-page { padding-top: 24px; }
.adv-search-page-header { margin-bottom: 18px; }
.adv-page-title {
    font-size: 24px; font-weight: 700; color: #222;
    text-align: left; margin: 0 0 10px 0;
    padding-bottom: 10px; border-bottom: 2px solid #d76c16;
}

/* Full-width search bar */
.adv-search-bar { margin-bottom: 16px; }
.adv-search-input {
    border-color: #ccc; border-radius: 3px 0 0 3px !important;
    font-size: 15px; height: 40px;
}
.adv-search-input:focus { border-color: #d76c16; box-shadow: 0 0 0 2px rgba(215,108,22,0.15); }
.adv-search-btn {
    background: #d76c16; color: #fff; border: 1px solid #c06010;
    border-radius: 0 3px 3px 0; font-size: 14px; font-weight: 600;
    padding: 0 22px; height: 40px; white-space: nowrap;
}
.adv-search-btn:hover, .adv-search-btn:focus { background: #b85c10; color: #fff; border-color: #a05010; }

/* Active filters row */
.adv-active-filters {
    display: flex; flex-wrap: wrap; align-items: center; gap: 6px;
    margin-bottom: 16px; padding: 8px 12px;
    background: #fff9f4; border: 1px solid #f0d9c5; border-radius: 4px;
}
.active-filters-label { font-size: 11px; font-weight: 700; color: #999; text-transform: uppercase; letter-spacing: 0.6px; margin-right: 2px; }
.adv-clear-all { font-size: 12px; color: #aaa; text-decoration: underline; margin-left: auto; white-space: nowrap; }
.adv-clear-all:hover { color: #d76c16; text-decoration: none; }

/* Two-column layout */
.adv-search-layout { margin-top: 8px; }
.adv-filters-col { padding-right: 20px; border-right: 1px solid #e5e5e5; }
.adv-results-col { padding-left: 24px; }

/* Filter groups in sidebar */
.adv-filter-group {
    background: #fff; border: 1px solid #e5e5e5;
    border-radius: 4px; margin-bottom: 10px; overflow: hidden;
    box-shadow: 0 1px 2px rgba(0,0,0,0.04);
}
.adv-filter-group-title {
    background: #f5f5f5; border-bottom: 1px solid #e5e5e5;
    border-left: 3px solid #d76c16;
    padding: 7px 11px; font-size: 11px; font-weight: 700;
    color: #555; text-transform: uppercase; letter-spacing: 0.5px;
}
.adv-filter-group-body { padding: 10px 12px; }
.adv-filter-option {
    display: block; font-size: 13px; font-weight: normal;
    cursor: pointer; margin-bottom: 5px; color: #444; line-height: 1.4;
}
.adv-filter-option:last-child { margin-bottom: 0; }
.adv-filter-option input { margin-right: 5px; cursor: pointer; vertical-align: middle; }
.adv-filter-option-sub { padding-left: 4px; font-size: 12px; }

/* Scrollable keyword list */
.adv-filter-scroll { max-height: 220px; overflow-y: auto; }
.adv-filter-scroll::-webkit-scrollbar { width: 4px; }
.adv-filter-scroll::-webkit-scrollbar-thumb { background: #ddd; border-radius: 2px; }

/* Result count */
.search-result-count {
    font-size: 14px; color: #666; margin-bottom: 14px;
    padding-bottom: 10px; border-bottom: 1px solid #eee;
}

/* No-results and empty-state */
.adv-no-results { text-align: center; padding: 60px 20px; color: #aaa; }
.adv-no-results-icon { font-size: 44px; color: #e0e0e0; display: block; margin-bottom: 14px; }
.adv-no-results p { font-size: 15px; margin-bottom: 6px; color: #888; }
.adv-no-results-hint { font-size: 13px; color: #bbb; }
.adv-search-prompt { text-align: center; padding: 70px 20px; color: #bbb; }
.adv-search-prompt-icon { font-size: 52px; color: #e8e8e8; display: block; margin-bottom: 16px; }
.adv-search-prompt p { font-size: 15px; }

/* Search spinner overlay */
.adv-spinner-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(255,255,255,0.7);
    z-index: 10;
}
.adv-spinner-icon {
    position: absolute;
    top: 80px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 11;
    color: #d76c16;
}

/* Article result cards */
.adv-article-card {
    display: flex; gap: 16px; align-items: flex-start;
    padding: 16px 0; border-bottom: 1px solid #eee;
    transition: background 0.1s;
}
.adv-article-card:first-child { border-top: 1px solid #eee; }
.adv-article-thumb { flex-shrink: 0; width: 84px; }
.adv-article-thumb img { width: 84px; height: 84px; object-fit: cover; border-radius: 3px; display: block; }
.adv-article-body { flex: 1; min-width: 0; }
.adv-article-title { font-size: 14px; font-weight: 700; line-height: 1.45; margin-bottom: 5px; }
.adv-article-title a { color: #2a6496; text-decoration: none; }
.adv-article-title a:hover { color: #d76c16; text-decoration: underline; }
.adv-article-meta { font-size: 12px; color: #999; margin-bottom: 6px; display: flex; flex-wrap: wrap; gap: 14px; }
.adv-article-meta i { color: #ccc; margin-right: 3px; }
.adv-article-desc { font-size: 13px; color: #555; line-height: 1.55; }

/* Pagination */
.adv-pagination { margin-top: 24px; text-align: center; }

/* Responsive */
@media (max-width: 991px) {
    .adv-filters-col { border-right: none; border-bottom: 1px solid #e5e5e5; padding-right: 15px; margin-bottom: 24px; padding-bottom: 16px; }
    .adv-results-col { padding-left: 15px; }
}
@media (max-width: 767px) {
    #advanced-search-page { padding-top: 16px; }
    .adv-article-thumb { width: 64px; }
    .adv-article-thumb img { width: 64px; height: 64px; }
}

/* ==========================================================================
   PRINT
   ========================================================================== */
@media print {
  /* Hide site chrome — use IDs for headers so the article <header> (h1) is preserved */
  #page-header, #page-header-mobile, #sidr, .visible-xs,
  nav, #nav, .navbar,
  #sidebar, .sidebar, aside,
  #page-footer, .footer,
  #article-post footer,
  .social-share-buttons,
  .traductions,
  ol.breadcrumb,
  .article-keywords,
  .article-attachments,
  .article-source,
  hr,
  #back-to-top { display: none !important; }

  /* Hide images, captions, and their containers to leave no blank space */
  .fr-img-wrap,
  figcaption,
  .spip_documents,
  .spip_document,
  figure,
  #article-post img,
  .fr-view img { display: none !important; }

  /* Clean page layout */
  body { background: #fff; color: #000; font-size: 12pt; margin: 0; padding: 0; }
  #page-content { display: block; }
  #main { width: 100%; float: none; }
  .container { width: 100%; max-width: none; padding: 0; }

  /* Article typography */
  h1 { font-size: 20pt; margin-bottom: 8pt; }
  h2 { font-size: 16pt; }
  p  { font-size: 11pt; line-height: 1.5; orphans: 3; widows: 3; }

  /* Override Bootstrap 3's a[href]:after rule that prints all hrefs (including "/" and "#") */
  a[href]:after { content: none !important; }
  /* Re-enable URL display only for external links within article body */
  .fr-view a[href^="http"]:after,
  .footnotes a[href^="http"]:after { content: " (" attr(href) ")" !important; font-size: 9pt; color: #555; }
  a { color: #000 !important; text-decoration: underline; }

  /* Footnotes */
  .footnotes { border-top: 1pt solid #999; margin-top: 16pt; font-size: 9pt; }
  .footnotes h6 { font-size: 10pt; }
}
