body#body {
    /* One green under the ornament (2026-12). Before, the picture top-green1F.png ran from
       #005600 at the top to #009600 at 3000 px, so every page grew lighter towards its end. */
    background-color: #005f00;
    background-image: url('../images/ornament_eckig3.png');
    background-repeat: repeat;
    height: 100%;
    width: 100%;
    margin:0;
    padding:0;
    /*background-color: transparent;
    opacity:0.5;*/
}
html {
    margin:0;
    padding:0;
}
/*
.my-top-image {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: auto;
    z-index:7;
}

.on-top-of-image {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: url(../images/ornament_bg.png) repeat;
    z-index: 0;
}*/

img {border:0;}

a {
    text-decoration: none;
    color: #333333;
}

table#voorbeeld { border-collapse: collapse; }

table#maintable {
    position: relative;
    top: 2px;
    height:100%;
    width:966px;
    margin: 0 auto 0 auto;
}
div#menubar {
    height:30px;
    position:relative;
}

/* The footer: two rows on a dark panel - the pages and the languages, then the channels
   elsewhere and the copyright line. */
table#maintable td#footer-cell {
    background-color:#003200;
    padding: 0;
}
div#footer {
    padding: 0 22px;
    font: 14px "Trebuchet MS";
    color: #D2B644;
}
div#footer div.footer-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 4px 24px;
    padding: 7px 0;
}
div#footer div.footer-row + div.footer-row {
    border-top: 1px solid rgba(210, 182, 68, 0.35);
}
div#footer a {
    display: inline-block;
    padding: 2px 0;
    color: #D2B644;
    white-space: nowrap;
}
div#footer a:hover,
div#footer a:focus {
    color: #ffffff;
}
div#footer div.footer-menu a,
div#footer div.footer-social a {
    margin-inline-end: 20px;
}
div#footer div.footer-languages a {
    margin-inline-start: 16px;
}
div#footer div.footer-languages a.footer-current {
    color: #ffffff;
}
div#footer div.footer-social svg {
    vertical-align: -5px;
    margin-inline-end: 6px;
}
/* X: its icon is its name, so no text follows it */
div#footer div.footer-social a.footer-icon-only svg {
    margin-inline-end: 0;
}
div#footer div.footer-copyright {
    font-size: 13px;
    color: #b9a23f;
}

td#banner-cell {
    height:155px; 
    background:url(../images/golden-lineF.png) repeat-x;
    position: relative;
    top: -8px;
}
table#banner-table {
    width: 100%;
    padding: 0px 5px 0px 5px;
}
table#inner-banner-table {
    width: 100%;
    padding: 0px 5px 0px 5px;
}
td#left-logo {
    /* twice the size it is shown in, sharp on high-resolution screens (2026-12): the same
       part of the painting as the former 186x145 picture fatih-saltanat-eckig.jpg, cut from
       a 500x635 copy */
    background: url(../images/fatih-saltanat-2x.jpg) no-repeat;
    background-size: 170px 145px;
    margin: 0px auto 0px auto;
    width: 170px;
    
}
td#middle-logo {
    position: relative;
    top: 0px;
    height:115px; 
    margin: 0px 0px 0px 0px;
    background:url(../images/blue-line1.png) repeat-x;
}

td#right-logo {
    /* twice the size it is shown in, sharp on high-resolution screens (2026-12): the same
       part of the engraving as the former 186x145 picture friedrich3.jpg, cut from a
       1408x1408 copy */
    background: url(../images/friedrich-2x.jpg) no-repeat;
    background-size: 170px 145px;
    margin: 0px 0px 0px 0px;
    width:170px;
}

td#content-cell div#content-column-panel {
    width: 100%;
    height: 100%;
}
div.no-columns-content {
    background-color:red;
    width: 88.3%;
    margin: 0 0 0 0;
}


/* END OFF LAYOUT STYLES */

#sessionMessages {
    position: absolute;
    top:190px;
    left:25%;
    z-index: 11;
    background-color: #5C5EF0;
    color: #000000;
    border: 1px solid #2F2F68;
    width:400px;
    padding: 5px;
    font-size: 14px;
    font-weight: 600;
}

span#record-count{
    font: 12px "Trebuchet MS"; 
    color:#D2B644;
    font-weight: bold;
    margin: 0px 0px 0px 50px;
}

h1#page-title{
    margin: 0px 0px 0px 0px;
    color: #D2B644;
    font: 13px "Trebuchet MS";
    font-weight: bold;
}
tr#page-title {
    height: 32px;
}
/* The trap of the contact form (ContactSpam): out of sight for people, not hidden from programs. */
form#contact-form .contact-trap {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}
div.media-search-form {
    margin: 0px 0px 18px 13px; 
}

div.media-search-form input[type=text]{
    width:175px;
}

div#media-result {
    font: 11px "Trebuchet MS"; 
    color:darkslategray;
    margin: 0px 0px 30px 0px;
    width: auto;
    text-align: center;
}

div#media-result table.media-result-table {
    width: 100%;
}

div#media-calendar{
    margin: 10px auto 0 auto;
}

table.video-doclet{
    padding: 0px 0px 0px 0px;
    border: 0px solid #F36;
    width:100%;
    height: 60px;
    color: whitesmoke;
    background-color: #003200;
}

/* The whole box is the link to the video page (2026-12): the title is a real link whose
   ::after covers the box ("stretched link"), so opening it in a new tab works too. */
table.video-doclet {
    position: relative;
    cursor: pointer;
}
a.video-doclet-link {
    color: inherit;
    text-decoration: none;
}
a.video-doclet-link::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 1;
}
a.video-doclet-link:focus {
    outline: none;
}
table.video-doclet:focus-within {
    outline: 2px solid #D2B644;
}


table.video-doclet span.video-doclet-title {
    color: whitesmoke;
    float: left;
    text-align:left;
    width: 190px;
    font-weight: bold;
    font-size: 1.2em;
    white-space: nowrap;
    overflow:hidden;
    padding: 0px 0px 0px 2px;
}

table.video-doclet span.video-doclet-text{
    color: whitesmoke;
    float: right;
    text-align: right;
    width: 100%;
    font-size: 1.1em;
    white-space: nowrap;
    overflow:hidden;
}
span.video-doclet-description-text {
   font-size:1.1em;
   overflow:hidden;
   display:block;
   color: whitesmoke;
   float:left;
   line-height:1.1;
   margin-bottom:5px;
   height:40px; 
   padding: 0px 0px 0px 2px;
}

/* Thumbnails of videos: always 16:9 (a picture of another shape is cropped, not distorted),
   the same rounding everywhere, a little brighter under the pointer, and the length of the
   video in a small field at the lower edge. */
img.video-doclet-thumb {
    display: block;
    cursor: pointer;
    float: left;
    border: 0px solid  #111;
    width:110px;
}
img.video-doclet-latest-thumb {
    display: block;
    margin: 3px 5px 3px 0px;
    cursor: pointer;
    border: 0px solid  #111;
    width: 200px;
}
img.video-doclet-thumb,
img.video-doclet-latest-thumb {
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: 4px;
    background-color: #002400;
    transition: filter 0.15s;
}
table.video-doclet:hover img.video-doclet-thumb,
tr.homepage-video-block:hover img.video-doclet-latest-thumb {
    filter: brightness(1.12);
}
td.latest-video-body {
    color: whitesmoke;
    width: 376px;
    height: 112px;
    border: 0px solid #003200;
    background-color: #003200;
}

span.homepage-latest-video-title {
    cursor: pointer;
    padding: 0px 10px 10px 10px;
    position: relative;
    top: -5px;
    font: 16px "Trebuchet MS";
    font-weight: bold;
    white-space: nowrap;
}
span.homepage-latest-video-text {
    cursor: pointer;
    padding: 0px 10px 0px 10px;
    font: 11px "Trebuchet MS";
    width: 94%;
    height: 50px;
    display: block;
    overflow:hidden;
}
tr.homepage-video-block {
    margin: 0px 0px 0px 0px;
    padding: 0px 0px 0px 0px;
    border: 0px solid #090;
}
span.homepage-latest-video-infotext {
    cursor: pointer;
    padding: 0px 10px 0px 10px;
    font: 13px "Trebuchet MS";
}
table#homepage-latest-video {
    padding: 3px 0px 3px 0px;
}
tr#latest-video-row {
    border: 0px solid  #646464;
    cursor: pointer;
    background-color: #f5f3e5;
}
img#latest-magazine-thumb {
    cursor: pointer;
    border: 0px solid  #646464;
    width:120px;
    padding: 5px 10px 0px 10px;
}
table.homepage-latest-magazine {
    font: 17px "Trebuchet MS"; 
    color: #000000;
    font-weight: bold;
}
table.homepage-latest-magazin:hover {
    background-color:#090;
    color:white;
} 

table.audio-doclet img.audio-doclet-icons {
    margin: 0 7px 0 0;
    float:right;
}

table.audio-doclet {
    margin: 3px 2px 4px 2px;
    border: 0px solid #333333;
    width: 97%;
    height: 20px;
    cursor: default;
}
table.audio-doclet span.audio-doclet-title {
    float: left;
    width: 99%;
    margin: 2px 0 0 0;
    color:#333333;
    font-weight: 700;
    font-size: 0.79em;
}
table.audio-doclet span.audio-doclet-text {
    float: left;
    width: 95%;
    font-size: 0.75em;
    white-space: nowrap;
}
div.media-info {
    font: 12px "Trebuchet MS"; color:black;
    font-weight: bolder;
}
table.magazine-doclet{
    margin: 2px 2px 2px 2px;
    padding: 0 0 0 0;
    border: 0px solid #333333;
    width:99%;
}
table.magazine-doclet span.magazine-doclet-title {
    color: darkgreen;
    width: 95%;
    margin: 0px 0px 0px 0px;
    font-weight: 700;
    font-size: 1.2em;
}
table.magazine-doclet span.magazine-doclet-text{
    overflow:hidden;
    display:block;
    color: #001100;
    float: left;
    width: 95%;
    font: 12px "Trebuchet MS";
    height: 57px;
    margin: 0 5px 0 0px;
}

/* The whole box of a magazine is the link to its PDF (2026-12), as the video boxes: the
   title is a real link whose ::after covers the box. The links of a transcript lie above it. */
table.magazine-doclet {
    position: relative;
    cursor: pointer;
}
a.magazine-doclet-link {
    text-decoration: none;
}
a.magazine-doclet-link::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 1;
}
a.magazine-doclet-link:focus {
    outline: none;
}
table.magazine-doclet:focus-within {
    outline: 2px solid #D2B644;
}
span.magazine-transcripts {
    position: relative;
    z-index: 2;
    display: block;
    clear: both;
    padding-top: 2px;
    font: 12px "Trebuchet MS", sans-serif;
    color: #333;
}
span.magazine-transcripts a {
    color: darkgreen;
    font-weight: bold;
}

table.magazine-doclet img.magazine-doclet-thumb{
    width:70px;
    margin: 0px 0px 0px 0px;
}

table.articles-list {
    margin-bottom: 20px;
    font: 14px "Trebuchet MS"; 
    color: #444;
    background-color: #EDEEDE;
    padding: 5px 10px 5px 15px;
    width: 100%;
}
div.articles-list-title {
    font-size: 19px;
    /* the dark green of the titles of the site (2026-12; dark red before, the one red of the site) */
    color: #0b4d0b;
    font-weight:bold;
    padding: 10px 5px 20px 5px;
    cursor:pointer;
}
div.articles-list-date {
    float: right;
    font-size: 14px;
    /* the muted grey green of the small headings of the boxes (2026-12; bright #090 before,
       the one light green of the site) */
    color: #5b6b5b;
}
div.articles-list-summary {
    padding: 0 0 0 15px;
    font: 14px; 
    color: #000;
    font-weight:bold;
}
div.articles-list-content {
    padding: 10px 0 0 15px;
    font-size: 13px;
}
div.articles-list-image {
    cursor:pointer;
}


div.homepage-broadcast {
    position: relative;
    top: -1px;
    margin-bottom: 20px;
    font: 14px "Trebuchet MS"; 
    color: whitesmoke;
    background-color: #003200;
    padding: 0px 0px 0px 0px;
}
div.homepage-broadcast-title {
    margin: 0px 15px 0px 15px;
    padding: 10px 0px 10px 0px;
    font-size: 19px;
    color: whitesmoke;
    font-weight:bold;
}
div.homepage-broadcast-summary {
    margin: 0px 15px 0px 15px;
    padding: 0px 0px 5px 0px;
    font-size: 15px; 
    color: whitesmoke;
    font-weight:bold;
}
div.homepage-broadcast-content {
    margin: 0px 15px 0px 15px;
    padding: 0px 0px 10px 0px;
    font-size: 13px;
}
div.homepage-list {
    width:100%;
    font: 14px "Trebuchet MS"; 
    color: #002200;
    padding: 0px 0px 0px 0px;
}
div.homepage-list-title {
    /* 15 px (17 before 2026-12): the column of the boxes is a quarter of the frame since
       then. Still larger than the text of the boxes (14 px); a long title breaks onto a
       second line, with room between the lines */
    font-size: 15px;
    line-height: 1.3;
    color: whitesmoke;
    font-weight:bold;
    background-color: #003200;
    padding: 3px 10px 2px 10px;
}
div.latest-title {
    background-color:#003200;
    color:whitesmoke;
    padding: 3px 10px 2px 10px;
    font-size: 18px;
}
div.homepage-list-summary {
    padding: 15px 20px 0px 20px;
    font: 14px; 
    color: #002200;
    font-weight:bold;
}
div.homepage-list-summary a{ 
    color: #090;
    font-weight:bold;
}
div.homepage-list-summary a:hover{ 
    color: yellowgreen;
    font-weight:bold;
}
div.homepage-list-content {
    padding: 10px 20px 10px 20px;
    font-size: 13px;
    color: #2A2A2A;
    margin-bottom: 10px;
    
}
img.float-left {
    float: left; 
    margin: 0px 10px 10px 0px;
    width: 120px;
    position: relative;
    top: 5px;
}
div.homepage-list-magazine-content{
    padding: 3px 15px 10px 0px;
    font-size: 13px;
    color: #2A2A2A;
    height: 172px;
    display: block;
    overflow:hidden;
    float:left;
}
div.homepage-list-content a{ 
    color: #090;
    font-weight:bold;
}
div.homepage-list-content a:hover{ 
    color: yellowgreen;
    font-weight:bold;
}
h3.latest-title {
    margin: 4px 0px 3px 0px;
    background-color:#003200;
    color:whitesmoke;
    padding-left: 15px;
    font-size: 19px;
}
table#homepage-container {
    font: 14px "Trebuchet MS"; color: #444;
    padding: 0px 0px 0px 0px; 
    /* without the heading "Home" (2026-12) as far from the banner as the card of a post */
    margin-top: 8px;
}
td#homepage-news-left-column {
    padding: 0px 0px 0px 0px;
    /*background: url(../images/altes-papier4.png) repeat;*/
    vertical-align: top;
}
tr.homepage-row {
    background-color: #002200;
}
/* The column of the boxes is as wide as the right column of the other pages (a quarter of
   the frame, includes/footer.php), so it does not change its width from page to page
   (2026-12; before, the left column had 60 % and this one the rest, about 38 %). */
td#homepage-news-right-column {
    width: 25%;
    padding: 0px 0px 0px 0px;
    vertical-align: top;
}
div.homepage-news {
    font: 14px "Trebuchet MS"; color: #444;
}
div.homepage-news-title {
    font-size: 17px; 
    color: #000;
    font-weight:bold;
}
div.homepage-news-summary {
    font: 14px; 
    color: #000;
    font-weight:bold;
}
div.homepage-news-content {
}
/* The picture of the two boxes at the bottom of the home page (the declaration, the
   signature) stands in a column as wide as the column of boxes above, in its middle - under
   that column, not at a fixed 100 px from the text (2026-12). */
table.homepage-declaration > tbody > tr > td:last-child,
table.homepage-sign > tbody > tr > td:last-child {
    width: 25%;
    text-align: center;
    vertical-align: middle;
}
img#homepage-foto-mawlana {
    margin: 10px 0;
    vertical-align: middle;
}
img#homepage-foto-declaration {
    margin: 0 30px 0 30px;	
}
img#homepage-foto-sign {
    max-width: 100%;
    height: auto;
    margin: 0;
}
/* The two boxes at the end of the home page (2026-12): the beige, the fine border and the
   corners of the boxes of the right column (div.homepage-list) instead of old paper; the
   text larger with room between the lines, and room before each heading (they stuck to the
   paragraph above, the text was 14 px set close). */
table.homepage-declaration,
table.homepage-sign {
    margin: 20px 0px 20px 0px;
    border: 1px solid #030;
    border-radius: 6px;
    border-collapse: separate;
    background-color: #f5f3e5;
}
div.homepage-declaration,
div.homepage-sign {
    margin: 22px 26px 22px 26px;
    font: 15px/1.6 "Trebuchet MS", sans-serif;
    color: #2a2a2a;
}
div.homepage-declaration > div + div {
    margin-top: 18px;
}
div.homepage-declaration span.title {
    display: block;
    margin-bottom: 4px;
    font-size: 18px;
    line-height: 1.3;
    font-weight: bold;
    color: #0b4d0b;
}
/* the line break after a heading, from the time it was inline */
div.homepage-declaration span.title + br {
    display: none;
}


div#jwPlayerDialog {
    margin: 15px 5px 15px 5px;
    background-color: #000000;
}
a.datapage-button-enabled {
    width:40px;
    font-size: 80%;
    margin: 2px 2px 2px 2px;
}


div.panel-button {
    margin: 20px 0 0 0;
}

a.ui-panel-button {
    font-size: 1.3em;
    margin: 0px 5px 0px 5px;
    padding: 5px 12px 5px 10px;
    color: whitesmoke;
    font-weight: bold;
    background-color: #003200;
}

a.datapage-button-disabled {
    font-size: 1.1em;
    margin: 0px 5px 0px 5px;
    padding: 5px 12px 5px 10px;
    color: gray;
    font-weight: bold;
    background-color: #006600;
} 
a.ui-panel-button:hover {
    background-position: right;
    color: #00FF00;
}

/* The pages of a list (DataPagerRenderer, 2026-12), in the colours of the site: the current
   page gold with dark green text (it was grey on a lighter green and looked switched off),
   a page under the pointer with gold text and a gold edge (it was bright green), the arrows
   that lead nowhere (first page, last page: class is-unavailable, set by the list pages)
   faded. Some arrows carry an inline grey from DataPagerRenderer, hence !important. */
div.panel-button a.ui-panel-button {
    display: inline-block;
    border: 1px solid transparent;
    transition: color 0.15s, border-color 0.15s;
}
div.panel-button a.ui-panel-button:hover {
    border-color: #D2B644;
    color: #D2B644;
}
div.panel-button a.ui-panel-button.datapage-button-disabled,
div.panel-button a.ui-panel-button.datapage-button-disabled:hover {
    font-size: 1.3em;
    border-color: #D2B644;
    background-color: #D2B644;
    color: #0b3d0b;
    cursor: default;
}
div.panel-button a.ui-panel-button.is-unavailable,
div.panel-button a.ui-panel-button.is-unavailable:hover,
div.panel-button a.ui-panel-button[href="#"]:not(.datapage-button-disabled),
div.panel-button a.ui-panel-button[href="#"]:not(.datapage-button-disabled):hover {
    cursor: default;
    border-color: transparent;
    color: whitesmoke !important;
    opacity: 0.35;
}
/*
form#tellFriendForm {
    font-size: 1.1em;
    height:220px;
}*/

div#emailreport {
    position: absolute;
    z-index: 12;
    top:160px;
    left:30%;
    font-size: 16px;
    font-weight: 600;
    height: 40px;
    width: 300px;
    text-align: center;
    padding: 10px 5px 2px 5px;
    display: none;
}

/*td#livetv-banner {
    background:url(../images/broadcast-button-eckig.png) no-repeat;
    display: none; 
    cursor:pointer;
}

div#livetv-banner span#text {
    position: relative;
    top:20px;
    filter:alpha(opacity=9); 
    -moz-opacity: 0.9; 
    opacity: 0.9;
    color:#000000;
    white-space: nowrap;
}
*/
span#livetv-banner {
    background:url(../images/broadcast-button-eckigF.png) no-repeat;
    width:126px;
    height:28px;
    display:none;
    cursor:pointer;
    border: 0px solid #990000;
}
div#broadcast-playerXXXXXXXXX{
    background:url(../images/green-lineF.png) repeat-x; 
    z-index: 199;
    height: 400px;
    width: 966px;
    background-color: #002200;
}

.salt-ui-smaller-font {
    background-color: #444;
    font-size: 0.75em;
}
.salt-ui-bigger-font {
    font-size: 1.6em;
}

.ui-widget {
    font-size: 80%;
} 
.ui-dialog-title {
    font-size: 0.8em;
}
.ui-button-text {
    font-size: 0.8em;
    color: #EEE;
    background-color:#030;
}
.ui-dialog-buttonpane {
    height:20px;
}
.ui-dialog-content {
    /*background-color:yellow;
    height:300px;*/
}
.ui-widget-content {
}

div#jwplayer_wrapper {
    position: relative; 
    top: -5px;
    left: -10px; 
}
#jwplayer { 
    margin-top: 4px;
    margin-left: 9px;
    border:0px solid #99FF99;
}
#broadcast-player {
    margin: 8px 0px 0px 0px;
}
span#video-title {
    color: #f6f6f6;
    font-size: 17pt;
    font-weight: bold;
    position: relative;
    top: 20px;
    text-align: center;
}
a.transcription-language-list {
    margin: 0 3px 0 3px;
}
span.make-cursor {
    cursor: pointer;
    text-align: right;
}
div#volume-menu {
    text-align: center;
    background-color: white;
    position: relative;
    top: 0px;
    margin: 20px 0px 20px 20px;
    width: 92%;
}
td.volume-menu-title {
    font: 14px "Trebuchet MS";
    color: #020;
    font-weight: bold;
}
td.volume-menu-item {
    text-align: center;
    font: 14px "Trebuchet MS"; 
    background-color: #090; 
    margin: 0px 0px 0px 0px;
    padding: 0px 0px 0px 0px;
    font-weight: bold;
    cursor: pointer;
}
td.volume-menu-item a{
    padding: 0px 12px 0px 12px;
    color: whitesmoke;
}
.input-area {
    background-color: white;
}
table.search-selector {
    text-align: center;
    font: 14px "Trebuchet MS"; 
    background-color: #f5f3e5; 
    margin: 10px 0px 10px 20px;
    padding: 7px 5px 7px 5px;
    font-weight: bold;
    border: 1px solid #030;
    color: #020;
    width: 92%;
}
a.search-selector {
    color: darkslategrey;
    margin: 5px 5px 5px 5px;
    padding: 2px 2px 2px 2px;
    
}
a.search-selector:hover {
    background-color:#090;
    color:white;
} 

/* A video or post that does not exist (includes/not_found.php): since 2026-12 a card like
   that of the contact form (div.contact-card), the sentence as its heading, the list as the
   main button, the home page as a plain link */
div#not-found {
    margin-top: 40px;
    margin-bottom: 60px;
    text-align: center;
}
h1.not-found-title {
    margin: 0 0 22px 0;
    color: #0b4d0b;
    font: bold 22px/1.3 "Trebuchet MS", sans-serif;
}
p.not-found-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 12px 24px;
    margin: 0;
}
a.not-found-home {
    color: #0b4d0b;
    font-weight: bold;
}

/* The page of one video (videopage.php) and of one post (postpage.php) inside the page frame */
div#video-page,
div#post-page {
    text-align: center;
    padding: 10px 0 40px 0;
}
/* The video page has the proportions of "Saltanat TV" (broadcast.php): the player 656 px
   wide and 400 px high, the list of videos beside it. Between the two 12 px of the background
   of the page (2026-12; the list stood against the player), taken from the list. */
div#video-page {
    display: flex;
    align-items: flex-start;
    column-gap: 12px;
    padding-top: 8px;
}
div#video-main {
    flex: none;
    width: 656px;
}
div#video-page video {
    display: block;
    width: 656px;
    height: 400px;
    background-color: #000;
}
/* the title used to be positioned for the popup window */
div#video-page span#video-title {
    display: block;
    position: static;
    margin: 18px 0 0 0;
}
/* Under the player (2026-12): download, transcripts, copy the link. */
div#video-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 8px 10px;
    margin: 12px 0 0 0;
    font: 14px "Trebuchet MS", sans-serif;
    color: whitesmoke;
}
/* the transcripts on a line of their own under download and copy, their languages smaller */
span.video-action-group {
    display: flex;
    flex-basis: 100%;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 6px;
}
span.video-action-group a.video-action {
    padding: 2px 10px;
    font-size: 13px;
}
a.video-action,
button.video-action {
    display: inline-block;
    padding: 4px 12px;
    border: 1px solid #D2B644;
    border-radius: 14px;
    background: transparent;
    color: #D2B644;
    font: inherit;
    text-decoration: none;
    cursor: pointer;
}
a.video-action:hover,
button.video-action:hover {
    background: #D2B644;
    color: #002200;
}
/* The list of videos beside the player (includes/video_list.php). It scrolls inside the
   height of the player. Logical properties (inline-start) because the Arabic view runs
   from right to left. Since 2026-12 in the dark green of the boxes of the video library
   (light grey with a gradient and Arial before, the last part of the old design); the video
   playing marked in gold, like the current page of the list. */
div#video-list {
    flex: none;
    width: 298px;
    height: 400px;
    overflow-y: auto;
    border-radius: 6px;
    background-color: #003200;
    text-align: start;
    scrollbar-color: #2f5f2f #003200;
}
a.video-list-item {
    display: block;
    position: relative;
    box-sizing: border-box;
    height: 60px;
    padding: 6px 6px 0 0;
    padding-inline-start: 106px;
    padding-inline-end: 6px;
    overflow: hidden;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    border-inline-start: 3px solid transparent;
    background: transparent;
    color: whitesmoke;
    font-family: "Trebuchet MS", sans-serif;
    text-decoration: none;
}
/* 16:9 like every thumbnail; the attributes of the element name the size of the old player */
a.video-list-item img {
    position: absolute;
    top: 3px;
    inset-inline-start: 3px;
    width: 96px;
    height: 54px;
    object-fit: cover;
    border-radius: 3px;
}
a.video-list-item span.video-list-title {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    font-size: 13px;
    line-height: 16px;
    font-weight: bold;
}
a.video-list-item span.video-list-date {
    display: block;
    margin-top: 2px;
    font-size: 11px;
    line-height: 13px;
    color: #b9c9b9;
    /* date, language and length on one line, cut with "..." if the list is narrow */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
/* A date written in Latin letters keeps its order in the Arabic view ("25 November 2026"). */
a.video-list-item span.video-list-date,
div#video-page span#video-date {
    unicode-bidi: plaintext;
}
a.video-list-item:hover {
    background: #0b4d0b;
}
/* the video that is playing */
a.video-list-current,
a.video-list-current:hover {
    border-inline-start-color: #D2B644;
    background: #0b4d0b;
    color: #D2B644;
}
a.video-list-current span.video-list-date {
    color: #d6e6d6;
}
/* "Saltanat TV" (broadcast.php) has the same layout; its list is the whole playlist, and
   below the title stands the date as the playlist gives it. */
div#video-page span#video-date {
    display: block;
    margin-top: 6px;
    color: #d6e6d6;
    font-size: 14px;
}
p#broadcast-empty {
    flex: auto;
    color: #f6f6f6;
    font-size: 15px;
}
div#post-page object {
    width: 100%;
    height: 85vh;
}
div#post-page a.post-file {
    color: #D2B644;
    font-weight: bold;
}

/* The languages above the banner, as text in their own script (2026-12; flags before). As
   wide as the page frame, at its far end (the right-hand side, or the left-hand side when the
   page is in Arabic); as high as the row of flags was, which the height of the frame below
   counts on (51px). */
#language-bar {
    width: 966px;
    height: 31px;
    /* the space below: the banner reaches 8px above the top of its table */
    margin: 4px auto 8px auto;
    text-align: end;
    font: 14px/31px "Trebuchet MS";
}
#language-bar a {
    margin-inline-start: 18px;
    color: #D2B644;
    text-decoration: none;
}
#language-bar a:hover,
#language-bar a:focus {
    color: #ffffff;
}
#language-bar a.language-current {
    color: #ffffff;
}
/* the flags in the information about a video (ajax_videoinfo.php) */
img[src^="images/flags/"][src$=".svg"] {
    height: 18px;
    width: auto;
    /* css/mobile.css limits pictures to the width of their cell, which is narrow here */
    max-width: none;
}

/* The main menu: centred in its bar. The menu stylesheet floats the entries to the left;
   as inline blocks they follow the text alignment of the list instead. */
div#menu ul.menu {
    text-align: center;
}
div#menu ul.menu > li {
    float: none;
    display: inline-block;
    vertical-align: top;
}
/* The menu is set in Constantia, which only Windows has; elsewhere the browser fell back to
   Times. Georgia comes closest and is on every Apple device. */
div#menu li span {
    font-family: Constantia, Georgia, serif;
}

/* The subtitle of the header as text: shown under the title (2026-12, see the end of this
   file and css/mobile.css). */
tr#header-subtitle-row {
    display: none;
}

/* Readability on a large screen (2026-11). The texts were set in 11 to 13 px; these rules
   raise them a little. Blocks with a fixed height keep three lines of text. */
span.homepage-latest-video-text {
    font-size: 14px;
    line-height: 18px;
    height: 54px;
}
/* Title, the line with date, language and length, and the description: set apart from each
   other as in the mobile view - the line in between smaller and muted, the description
   closer to it than to the title. All three fit the height of the thumbnail. */
span.homepage-latest-video-title {
    display: block;
    top: 0;
    padding: 6px 10px 1px 10px;
    font-size: 17px;
    line-height: 22px;
    overflow: hidden;
    text-overflow: ellipsis;
}
span.homepage-latest-video-infotext {
    display: block;
    padding-bottom: 5px;
    font-size: 13px;
    line-height: 17px;
    opacity: 0.75;
}
td.latest-video-body {
    vertical-align: top;
}
tr.homepage-video-block br {
    display: none;
}
div.homepage-broadcast-content {
    font-size: 15px;
    line-height: 1.45;
}
/* Title, the line with time and topic, and the text set apart as in the latest videos: the
   line in between muted, close to the title, with more room before the text. */
div.homepage-broadcast-title {
    padding-bottom: 3px;
}
/* the picture of the box "Hijrī Date" (includes/announcement_list2.php): a strip as wide as
   the box, like the pictures of the videos in the same column, but low - it only adorns a
   single line of text */
div.homepage-list-content img[src^="images/hijri-date.jpg"] {
    display: block;
    width: 100%;
    height: auto;
}
div.homepage-broadcast-summary {
    padding-bottom: 10px;
    font-weight: normal;
    opacity: 0.75;
}
div.homepage-list-content {
    font-size: 14px;
    line-height: 1.45;
}
/* the pictures of the videos in the right-hand column of the home page fill it, also in the
   narrow frame (their attribute says 320 px, which kept the column from its quarter) */
div.homepage-list-summary a > img {
    width: 100%;
    height: auto;
}
/* and the picture of the broadcast and the latest videos fill the left column, which is wider
   since that column has a quarter of the frame (2026-12; before, on wide screens only) */
div.homepage-broadcast img {
    width: 100%;
    height: auto;
}
table[id^="homepage-latest-video"],
tr.homepage-video-block > td + td > table {
    width: 100%;
}
td.latest-video-body {
    width: auto;
}
div.articles-list-content {
    font-size: 15px;
    line-height: 1.5;
}
span.video-doclet-description-text {
    font-size: 13px;
    line-height: 16px;
    height: 48px;
}
span.video-doclet-text,
span.magazine-doclet-text {
    font-size: 13px;
}
span.video-doclet-title,
span.magazine-doclet-title {
    /* not larger: long titles share their line with the date */
    font-size: 14px;
}
h1#page-title {
    font-size: 15px;
}
div#menu {
    font-size: 14px;
}

/* The entry of the main menu that belongs to the current page (the class is set by
   js/saltanat.js): white text. */
div#menu ul.menu > li.current > a span {
    color: #ffffff;
}

/* The picture of the broadcast on the home page. (Until 2026-12 it blended into the panel
   with mix-blend-mode: lighten, for a portrait photo on a black canvas; the painting that
   replaced it fills the picture and would have turned green.) */
div.homepage-broadcast img {
    display: block;
}

/* The title in the banner. The English and the Turkish picture are stored at twice the size
   they are shown in, so that they stay sharp on high-resolution screens. They were redrawn
   from the original 590x98 pictures in 2026-11; the Arabic one is still the original. */
td#middle-logo img[src*="golden-text-en.png"],
td#middle-logo img[src*="golden-text-tr.png"] {
    width: 590px;
    height: 98px;
}

/* A page with little on it (the contact form, a search without results, "not found"): the
   footer stands at the lower edge of the window instead of directly under the content,
   with the empty part of the window below it. The frame is at least as high as the window,
   and the row with the content takes what is left over. A table treats "height" as a
   minimum, so a long page is not affected. Not below 800px, where css/mobile.css turns the
   frame into blocks. 51px: the row of the languages above the frame (31px), the
   hidden line under it (18px) and the 2px the frame is moved down. */
@supports selector(:has(*)) {
    @media (min-width: 801px) {
        table#maintable { height: calc(100vh - 51px); }
        /* the rows with a height of their own are the spacers above and below the footer */
        table#maintable > tbody > tr:not([height]) { height: 1px; }
        table#maintable > tbody > tr:has(> td#content-cell) { height: auto; }
        td#content-cell { vertical-align: top; }
        /* its attribute height="100%" would stretch it and centre the content in the cell */
        table#content-column-panel { height: auto; }
    }
}

/* A wider page frame on large screens (2026-11): 1200 px instead of 966 px where the window
   has room for it. The banner, the columns and the footer follow by themselves; the rules
   below adapt what has a fixed size. Narrower windows keep the frame of 966 px, and below
   800 px css/mobile.css applies. */
@media (min-width: 1280px) {
    table#maintable,
    #language-bar {
        width: 1200px;
    }

    /* The title stands in the middle of the banner; in the narrow frame it fills it. */
    td#middle-logo {
        text-align: center;
    }

    /* Lists of videos: larger thumbnails, room for longer titles and a fourth line of text. */
    img.video-doclet-thumb {
        width: 150px;
    }
    table.video-doclet span.video-doclet-title {
        width: 280px;
    }
    span.video-doclet-description-text {
        height: 64px;
    }

    /* Home page: the larger picture of the latest videos (they fill their column at every
       width, see "the pictures of the videos in the right-hand column"). */
    tr.homepage-video-block > td:first-child {
        width: 205px;
    }

    /* The player with the list beside it: 16:9 in the width that is left. */
    div#video-main {
        width: 880px;
    }
    div#video-page video {
        width: 880px;
        height: 495px;
    }
    div#video-list {
        width: 308px;
        height: 495px;
    }
}

/* The box of a video in the video library and Daiman (includes/video_box.php), laid out like
   the latest videos on the home page since 2026-12: the picture on the left, beside it the
   title, the line with date, language and length (smaller, muted) and three lines of the
   description. The rules before this one, written for the old layout (title and date on one
   line above the picture), are overridden here. */
table.video-doclet {
    height: auto;
    /* fixed: a long title (one line, cut with "...") must not widen the box beyond its column */
    table-layout: fixed;
}
div.video-box {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 4px;
    text-align: start;
}
div.video-box img.video-doclet-thumb {
    flex: none;
    float: none;
    width: 160px;
    margin: 0;
}
div.video-box-body {
    flex: 1;
    min-width: 0;
}
div.video-box span.video-doclet-title,
div.video-box span.video-doclet-text,
div.video-box span.video-doclet-description-text {
    text-align: start;
}
div.video-box span.video-doclet-title {
    display: block;
    float: none;
    width: auto;
    padding: 2px 0 1px 0;
    font: bold 16px/21px "Trebuchet MS", sans-serif;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: whitesmoke;
}
div.video-box span.video-doclet-text {
    display: block;
    float: none;
    width: auto;
    padding-bottom: 4px;
    font: 13px/17px "Trebuchet MS", sans-serif;
    text-align: start;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    opacity: 0.75;
}
div.video-box span.video-doclet-description-text {
    display: block;
    float: none;
    height: 51px;
    margin: 0;
    padding: 0;
    font: 13px/17px "Trebuchet MS", sans-serif;
    overflow: hidden;
}
/* The place of a search hit in the subtitles (2026-12): one line of description less, the
   cue with its time below, a link above the link of the box that starts the video there. */
div.video-box.has-search-hit span.video-doclet-description-text {
    height: 17px;
    white-space: nowrap;
    text-overflow: ellipsis;
}
a.video-search-hit,
span.video-search-hit {
    position: relative;
    z-index: 2;
    display: block;
    max-height: 34px;
    overflow: hidden;
    margin-top: 2px;
    font: italic 13px/17px "Trebuchet MS", sans-serif;
    color: whitesmoke;
    text-decoration: none;
}
a.video-search-hit:hover {
    text-decoration: underline;
}
a.video-search-hit mark,
span.video-search-hit mark,
div.video-box span.video-doclet-title mark,
div.video-box span.video-doclet-description-text mark {
    background: none;
    color: #D2B644;
    font-weight: bold;
}
span.video-search-hit-time {
    font-style: normal;
    color: #D2B644;
    margin-inline-end: 4px;
}
@media (min-width: 1280px) {
    div.video-box.has-search-hit span.video-doclet-description-text {
        height: 18px;
    }
    a.video-search-hit {
        max-height: 54px;
        font-size: 14px;
        line-height: 18px;
    }
    div.video-box img.video-doclet-thumb {
        width: 200px;
    }
    div.video-box span.video-doclet-title {
        font-size: 17px;
        line-height: 22px;
    }
    div.video-box span.video-doclet-description-text {
        height: 72px;
        font-size: 14px;
        line-height: 18px;
    }
}
/* The Arabic view: an inline script of includes/header.php gives the titles of the video
   lists a style attribute with font-size 1.5em (and right alignment, which stays), meant for
   the old layout; the box keeps the size of its title. */
div.video-box span.video-doclet-title[style] {
    font-size: 16px !important;
}
@media (min-width: 1280px) {
    div.video-box span.video-doclet-title[style] {
        font-size: 17px !important;
    }
}
/* the two columns of video boxes equally wide, whatever the length of their texts */
div#media-result table.media-result-table:has(table.video-doclet) {
    table-layout: fixed;
    width: 100%;
}

/* The magazine boxes, more readable (2026-12): the title on a line of its own and larger,
   the text 13 px with more space between the lines (it was 12 px, set close), four lines. */
table.magazine-doclet span.magazine-doclet-title {
    display: block;
    margin-bottom: 3px;
    font: bold 15px/19px "Trebuchet MS", sans-serif;
    color: #0b4d0b;
}
table.magazine-doclet span.magazine-doclet-text {
    float: none;
    width: auto;
    height: 72px;
    margin: 0 8px 0 0;
    font: 13px/18px "Trebuchet MS", sans-serif;
    color: #1f2a1f;
}
table.magazine-doclet img.magazine-doclet-thumb {
    width: 76px;
    margin: 2px 4px 2px 2px;
    border-radius: 2px;
}
@media (min-width: 1280px) {
    table.magazine-doclet span.magazine-doclet-title {
        font-size: 16px;
        line-height: 21px;
    }
    table.magazine-doclet span.magazine-doclet-text {
        height: 76px;
        font-size: 14px;
        line-height: 19px;
    }
    table.magazine-doclet img.magazine-doclet-thumb {
        width: 84px;
    }
}

/* The post list: the title is a link since 2026-12, looking as the title did before. */
div.articles-list-title a {
    color: inherit;
    text-decoration: none;
}
div.articles-list-title a:hover {
    text-decoration: underline;
}
/* The post page: the languages of the PDF, the one shown filled. */
p.post-languages {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0;
    margin: 0 0 10px 0;
}
/* the languages of the PDF of a post: plain links as the transcripts of the video page, the
   one shown in gold and bold (2026-12) */
p.post-languages a.video-action {
    padding: 0;
    border: 0;
    border-radius: 0;
    background: none;
    color: #f0f0f0;
    font-size: 15px;
}
p.post-languages a.video-action + a.video-action::before {
    content: "\00B7";
    display: inline-block;
    margin: 0 8px;
    color: #8fa88f;
}
p.post-languages a.video-action:hover {
    background: none;
    color: #D2B644;
    text-decoration: underline;
}
p.post-languages a.video-action.current {
    background: none;
    color: #D2B644;
    font-weight: bold;
}

/* The post page of a post without PDF (2026-12): a card like those of the post list, as wide
   as is good for reading, the title large, the date under it, then picture, summary, text. */
div.post-card {
    box-sizing: border-box;
    max-width: 820px;
    margin: 0 auto;
    padding: 24px 32px 28px 32px;
    border-radius: 6px;
    background-color: #ecedde;
    color: #2a2a2a;
    text-align: start;
    font: 15px/1.6 "Trebuchet MS", sans-serif;
}
h1.post-card-title {
    margin: 0;
    font: bold 24px/1.3 "Trebuchet MS", sans-serif;
    color: #0b4d0b;
}
div.post-card-date {
    margin: 4px 0 18px 0;
    font-size: 14px;
    color: #5b6b5b;
}
img.post-card-image {
    display: block;
    max-width: 100%;
    max-height: 420px;
    width: auto;
    height: auto;
    margin: 0 0 18px 0;
    border-radius: 4px;
}
div.post-card-summary {
    margin-bottom: 12px;
    font-weight: bold;
}
div.post-card-content img {
    max-width: 100%;
    height: auto;
}
div.post-card-content p:first-child {
    margin-top: 0;
}
/* the title of a post with a PDF is a picture (its cover): not higher than 320 px */
div#post-page a.post-file img {
    max-height: 320px;
    width: auto;
}

/* The contact page (contact.php, 2026-12): a card like that of the post page, the fields in
   the colours of the site, the text of an error under its field. */
div.contact-card {
    box-sizing: border-box;
    max-width: 680px;
    margin: 10px auto 30px auto;
    padding: 26px 32px 30px 32px;
    border-radius: 6px;
    background-color: #ecedde;
    color: #2a2a2a;
    text-align: start;
    font: 15px/1.5 "Trebuchet MS", sans-serif;
}
/* the title of the page, in the card like the title of a post (h1.post-card-title), in the
   green of the form and of the thanks (div.contact-thanks h1) */
h1.contact-title {
    margin: 0 0 10px 0;
    font: bold 24px/1.3 "Trebuchet MS", sans-serif;
    color: #0b4d0b;
}
p.contact-intro {
    margin: 0 0 20px 0;
    color: #5a5a4a;
}
div.contact-alert {
    margin: 0 0 18px 0;
    padding: 10px 14px;
    border-radius: 6px;
    border: 1px solid #e3b4ad;
    background-color: #fbeceb;
    color: #8a1f15;
}
div.contact-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 18px;
}
div.contact-field {
    margin-bottom: 16px;
}
div.contact-field label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #1f3b1f;
}
span.contact-optional {
    font-weight: normal;
    color: #7a7a68;
}
div.contact-field input,
div.contact-field textarea {
    box-sizing: border-box;
    width: 100%;
    padding: 9px 11px;
    border: 1px solid #c3c1a8;
    border-radius: 6px;
    background: #fff;
    color: #1a1a1a;
    font: 16px/1.4 "Trebuchet MS", sans-serif;
}
div.contact-field textarea {
    min-height: 170px;
    resize: vertical;
}
div.contact-field input:focus,
div.contact-field textarea:focus {
    outline: none;
    border-color: #0b4d0b;
    box-shadow: 0 0 0 3px rgba(11, 77, 11, 0.18);
}
div.contact-field.has-error input,
div.contact-field.has-error textarea {
    border-color: #b3261e;
    box-shadow: 0 0 0 3px rgba(179, 38, 30, 0.12);
}
div.contact-hint {
    margin-top: 4px;
    font-size: 13px;
    color: #7a7a68;
}
div.contact-field.has-error div.contact-hint {
    display: none;
}
div.contact-error {
    margin-top: 4px;
    font-size: 13px;
    color: #b3261e;
}
div.contact-error:empty {
    display: none;
}
div.contact-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px 20px;
    margin-top: 6px;
}
.contact-button {
    display: inline-block;
    padding: 10px 28px;
    border: 0;
    border-radius: 6px;
    background-color: #0b4d0b;
    color: #fff;
    font: bold 15px "Trebuchet MS", sans-serif;
    text-decoration: none;
    cursor: pointer;
}
.contact-button:hover,
.contact-button:focus-visible {
    background-color: #0f650f;
}
.contact-button:disabled {
    opacity: 0.7;
    cursor: wait;
}
a.contact-link {
    color: #0b4d0b;
    font-weight: bold;
}
div.contact-thanks {
    text-align: center;
}
div.contact-thanks h1 {
    margin: 6px 0 10px 0;
    font: bold 22px/1.3 "Trebuchet MS", sans-serif;
    color: #0b4d0b;
}
div.contact-thanks-mark {
    width: 52px;
    height: 52px;
    margin: 0 auto;
    border-radius: 50%;
    background-color: #0b4d0b;
    color: #fff;
    font: bold 28px/52px sans-serif;
}
p.contact-thanks-address {
    color: #5a5a4a;
}
div.contact-thanks div.contact-actions {
    justify-content: center;
    margin-top: 18px;
}

/* A page without anything in the right column (search, calendar, filters) - the contact
   form, the post page, the video page - gives its width to the content, so that what stands
   in the middle of it stands in the middle of the page (2026-12). */
td#right-column:empty,
td#right-column:not(:has(*)) {
    display: none;
}

/* The search button of the right column (includes/footer.php). It has the id contact-button
   for historical reasons; its style went with the old contact form in 2026-12 and is back. */
div.media-search-form #contact-button {
    font: bold 14px "Trebuchet MS", sans-serif;
    color: #D2B644;
    padding: 3px 18px;
    border: 0;
    background-color: #030;
    cursor: pointer;
}
/* Field and button as one (2026-12): the field without the sunken frame of the browser, the
   button joined to its end, both as high; before, a field with a bevelled border and the
   button apart from it. */
div.media-search-form table {
    border-collapse: collapse;
}
div.media-search-form td {
    padding: 0;
}
div.media-search-form input#fldMediaSearch {
    box-sizing: border-box;
    width: 100%;
    height: 34px;
    margin: 0;
    padding: 0 10px;
    border: 1px solid #030;
    border-start-end-radius: 0 !important;
    border-end-end-radius: 0 !important;
    border-start-start-radius: 6px !important;
    border-end-start-radius: 6px !important;
    background-color: #fff;
    color: #1f2a1f;
    font: 14px "Trebuchet MS", sans-serif;
    outline: none;
}
div.media-search-form input#fldMediaSearch:focus {
    box-shadow: 0 0 0 2px #c9a227;
}
div.media-search-form #contact-button {
    height: 34px;
    border-start-start-radius: 0 !important;
    border-end-start-radius: 0 !important;
    border-start-end-radius: 6px !important;
    border-end-end-radius: 6px !important;
}
div.media-search-form #contact-button:hover {
    background-color: #0b4d0b;
}

/* The boxes of filters (includes/filter_box.php, 2026-12): a small heading, the filters as
   chips, the one the list shows filled - like the calendar above them. */
div.filter-box {
    box-sizing: border-box;
    margin: 10px 4px 10px 20px;
    margin-inline-start: 20px;
    margin-inline-end: 4px;
    padding: 10px 12px 12px 12px;
    border: 1px solid #030;
    border-radius: 6px;
    background-color: #f5f3e5;
    text-align: start;
}
div.filter-box-title {
    margin-bottom: 8px;
    color: #5b6b5b;
    font: bold 11px/1.2 "Trebuchet MS", sans-serif;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}
div.filter-box-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
a.filter-chip {
    display: inline-block;
    padding: 3px 10px;
    border: 1px solid #c3c1a8;
    border-radius: 999px;
    background-color: #fff;
    color: #1f3b1f;
    font: bold 13px/1.4 "Trebuchet MS", sans-serif;
    text-decoration: none;
}
a.filter-chip:hover {
    border-color: #0b4d0b;
    background-color: #e3e6d0;
}
a.filter-chip.is-active {
    border-color: #0b4d0b;
    background-color: #0b4d0b;
    color: #fff;
}

/* The boxes of the right column - search, calendar, the filters (language, topics, album) -
   equally wide (2026-12): the same 20 px on the left and 4 px on the right of the column.
   Before, the search was as wide as its field, the calendar 270 px and the filters 92 %.
   Wide screens only; the mobile view sets its own widths (css/mobile.css). */
@media (min-width: 801px) {
    #right-column div.media-search-form {
        margin: 0 4px 18px 20px;
    }
    #right-column div.media-search-form table {
        width: 100%;
        border-collapse: collapse;
    }
    #right-column div.media-search-form td {
        padding: 0;
    }
    #right-column div.media-search-form td:first-child {
        width: 100%;
        padding: 0;
    }
    #right-column div.media-search-form #contact-button {
        display: block;
        margin: 0;
    }
    #right-column div.media-search-form input[type=text] {
        box-sizing: border-box;
        width: 100%;
    }
    #right-column div#calendar-widget table#calendar-table,
    #right-column table.search-selector,
    #right-column div.filter-box {
        box-sizing: border-box;
        width: calc(100% - 24px);
        margin-inline-start: 20px;
        margin-inline-end: 4px;
    }
}

/* The list beside the player: the links to the newer and older pages of the list the video
   was opened from (includes/video_list.php, 2026-12). */
a.video-list-more {
    display: block;
    padding: 9px 10px;
    background-color: #0b3d0b;
    color: #D2B644;
    font: bold 13px "Trebuchet MS", sans-serif;
    text-align: center;
    text-decoration: none;
}
a.video-list-more:hover {
    background-color: #0b4d0b;
    color: #fff;
}

/* The video page (videopage.php, 2026-12), laid out as the boxes of the lists: the title
   above the player, under it date, language and length; under the player the links
   (download, copy, transcripts) and the description. */
div#video-heading {
    padding: 8px 0 10px 0;
    text-align: start;
}
h2#video-title {
    margin: 0;
    color: #f6f6f6;
    font: bold 24px/1.3 "Trebuchet MS", sans-serif;
}
div#video-facts {
    margin-top: 4px;
    color: #d6e6d6;
    font: 15px "Trebuchet MS", sans-serif;
    unicode-bidi: plaintext;
}
div#video-heading + div#video-page {
    padding-top: 0;
}
div#video-heading + div#video-page div#video-main {
    text-align: start;
}
div#video-heading + div#video-page div#video-actions {
    justify-content: flex-start;
}
div#video-heading + div#video-page span.video-action-group {
    justify-content: flex-start;
}
/* One box under the player: the description, a fine line, the links. Download is the main
   action (gold, filled), "Copy link" a quiet button, the transcripts plain links of their
   languages - fewer gold frames than one per link (2026-12). */
div#video-info {
    margin: 14px 0 0 0;
    padding: 14px 18px 14px 18px;
    border-radius: 6px;
    background-color: rgba(0, 34, 0, 0.55);
    text-align: start;
}
div#video-description {
    color: #f0f0f0;
    font: 15px/1.6 "Trebuchet MS", sans-serif;
}
div#video-info div#video-actions {
    margin: 0;
}
div#video-info div#video-description:not([hidden]) + div#video-actions {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
}
div#video-info a.video-action,
div#video-info button.video-action {
    padding: 6px 16px;
    border-radius: 6px;
    font-size: 14px;
}
div#video-info a.video-action,
div#video-info button.video-action {
    border-color: rgba(255, 255, 255, 0.35);
    color: #f0f0f0;
}
div#video-info a.video-action:hover,
div#video-info button.video-action:hover {
    border-color: #f0f0f0;
    background-color: rgba(255, 255, 255, 0.1);
    color: #fff;
}
div.video-transcripts {
    margin-top: 12px;
    color: #f0f0f0;
    font: 14px/1.7 "Trebuchet MS", sans-serif;
}
span.video-transcripts-label {
    margin-inline-end: 10px;
    color: #b9cbb9;
    font-size: 12px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}
div.video-transcripts a {
    color: #f0f0f0;
    text-decoration: none;
}
div.video-transcripts a + a::before {
    content: "\00B7";
    display: inline-block;
    margin: 0 8px;
    color: #8fa88f;
}
div.video-transcripts a:hover {
    color: #D2B644;
    text-decoration: underline;
}

/* The video page (2026-12): the list beside the player reaches down to the end of the box
   under the video (description and links), and scrolls within that height. "contain: size"
   keeps the length of the list out of the height of the row, so the row is as high as the
   player with its box, and the list stretches to it. Not "Saltanat TV", whose page has no
   heading of the video above the player; not on narrow screens, where the list stands below
   the player in full length (css/mobile.css). */
@media (min-width: 801px) {
    div#video-heading + div#video-page {
        align-items: stretch;
    }
    div#video-heading + div#video-page div#video-list {
        height: auto;
        min-height: 400px;
        contain: size;
    }
}
@media (min-width: 1280px) {
    div#video-heading + div#video-page div#video-list {
        min-height: 495px;
    }
}
/* while the next page of the list is loading into it */
a.video-list-more.video-list-loading {
    opacity: 0.6;
    cursor: progress;
}
/* the date of the video above the player of Saltanat TV, as date, language and length on the
   video page */
div#video-heading div#video-date {
    margin-top: 4px;
    color: #d6e6d6;
    font: 15px "Trebuchet MS", sans-serif;
    unicode-bidi: plaintext;
}
div#video-heading div#video-date:empty {
    display: none;
}

/* The number of entries ("2303 videos available") right after the heading of a list, smaller
   and quieter (2026-12); before, the heading had a cell of 200 px and the number 50 px more
   space, so it stood apart in the middle of nowhere. */
tr#page-title table td:first-child {
    width: 1%;
    white-space: nowrap;
}
tr#page-title span#record-count {
    margin: 0;
    margin-inline-start: 12px;
    font: 13px "Trebuchet MS", sans-serif;
    font-weight: normal;
    color: #D2B644;
    opacity: 0.8;
}

/* The title of the banner (2026-12): the word "Saltanat" as a drawing
   (images/saltanat-title.svg; Arabic: images/saltanat-title-ar.svg), and the two lines
   under it as text (tr#header-subtitle-row, which only the mobile view showed before). The
   blue of the banner is shared: the title takes the upper 67 px of its gradient, the text
   the next 43, and 5 px of the gold of the frame show under it - together 115 px, as high
   as the title cell was. Its picture blue-line1.png was 110 px high, so the gold of the frame
   showed in the last 5 px: the line between the title and the menu. With these heights the
   gold frame is 5 px on all sides again (155 px around 145). Wide screens only; the mobile
   view lays out the banner itself (css/mobile.css). */
/* the cell of the title has all four corners rounded (ui-corner-all), from the time it was
   the whole blue of the banner; the subtitle stands under it since 2026-12, so the lower
   corners are square, or the gold of the frame shows through between the two */
td#middle-logo {
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
}
@media (min-width: 801px) {
    td#middle-logo {
        height: 67px;
        text-align: center;
        vertical-align: bottom;
        background-position: 0 0;
    }
    td#middle-logo a {
        display: inline-block;
        line-height: 0;
    }
    td#middle-logo img[src*="saltanat-title"] {
        position: static !important;
        width: auto;
        height: 58px;
    }
    tr#header-subtitle-row {
        display: table-row;
    }
    td#header-subtitle {
        box-sizing: border-box;
        height: 48px;
        padding: 0 10px 6px 10px;
        vertical-align: top;
        /* the line above the menu: the gold of td#banner-cell through a clear border */
        border-bottom: 5px solid transparent;
        background: #1e1e5f url(../images/blue-line1.png) repeat-x 0 -67px;
        background-clip: padding-box;
        color: #DAC23D;
        font: 15px/1.22 Georgia, "Times New Roman", serif;
        letter-spacing: 0.02em;
        text-align: center;
    }
    td#header-subtitle span {
        display: block;
    }
}

/* The list starts at the top of its column (2026-12): the cell had no vertical alignment, so
   a short list - one video of a day of the calendar - stood in the middle of the height of the
   right column beside it. */
td#left-column {
    vertical-align: top;
}

/* The boxes of the right column of the home page (includes/announcement_list2.php, 2026-12)
   like the boxes of the filters on the list pages (div.filter-box): beige cards with a fine
   border and room between them, the title small in capitals instead of a dark bar. Before,
   one white column on old paper that ran on empty below the last box. */
div.homepage-list {
    box-sizing: border-box;
    margin-bottom: 10px;
    overflow: hidden;
    border: 1px solid #030;
    border-radius: 6px;
    background-color: #f5f3e5;
    text-align: start;
}
div.homepage-list-title {
    padding: 10px 12px 0 12px;
    background: none;
    color: #5b6b5b;
    font: bold 11px/1.3 "Trebuchet MS", sans-serif;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}
div.homepage-list-summary {
    padding: 6px 12px 0 12px;
    color: #1f3b1f;
    font: bold 15px/1.35 "Trebuchet MS", sans-serif;
}
div.homepage-list-summary a {
    color: #0b4d0b;
    text-decoration: none;
}
div.homepage-list-summary a:hover {
    color: #0b4d0b;
    text-decoration: underline;
}
div.homepage-list-summary a > img {
    display: block;
    margin-top: 8px !important;
    border-radius: 4px;
}
div.homepage-list-content {
    margin-bottom: 0;
    padding: 0 12px 12px 12px;
}
div.homepage-list-content:has(img, a, p) {
    padding-top: 8px;
}
div.homepage-list-content a,
div.homepage-list-content a:hover {
    color: #0b4d0b;
}
/* the summaries of several boxes end their link with a stray </p>, which the browser turns
   into an empty paragraph with margins between the title and the picture */
div.homepage-list-summary p:empty {
    display: none;
}

/* The magazine boxes in the dark green of the video boxes (2026-12; light beige before, the
   one list in another colour), with date and volume under the title; the pointer colours
   them as a video box (mediaDocletMouseOver() in js/saltanat.js). */
table.magazine-doclet {
    background-color: #003200;
    color: whitesmoke;
}
table.magazine-doclet span.magazine-doclet-title {
    color: whitesmoke;
}
span.magazine-doclet-facts {
    display: block;
    margin-bottom: 3px;
    font: 13px/17px "Trebuchet MS", sans-serif;
    opacity: 0.75;
}
table.magazine-doclet span.magazine-doclet-text {
    height: 54px;
    color: whitesmoke;
}
span.magazine-transcripts {
    color: #d6e6d6;
}
span.magazine-transcripts a {
    color: #D2B644;
}
@media (min-width: 1280px) {
    table.magazine-doclet span.magazine-doclet-text {
        height: 57px;
    }
}

/* Saltanat TV: the description is plain text (from the server and from js/broadcast.js),
   its line breaks kept (2026-12) */
div#video-page:has(div#video-list.video-list-playlist) div#video-description {
    white-space: pre-line;
}

/* "Copy link" in the card of a post (2026-12): under a fine line, at the start, in the dark
   green of the card instead of the gold meant for the dark background */
div.post-card div#video-actions.post-card-actions {
    justify-content: flex-start;
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid rgba(0, 50, 0, 0.15);
}
div.post-card-actions button.video-action {
    padding: 6px 16px;
    border-color: rgba(11, 77, 11, 0.45);
    border-radius: 6px;
    color: #0b4d0b;
}
div.post-card-actions button.video-action:hover {
    border-color: #0b4d0b;
    background: #0b4d0b;
    color: #fff;
}

/* The texts on the dark green boxes in a softened off-white instead of white (2026-12):
   whitesmoke on #003200 was very hard and cold beside the gold and beige of the site; a
   clear cream was too much. Three steps: titles #f3f1ea, text #e2e0d8, the line with date,
   language and length #b3bbab; the headings of
   the sections of the home page in the gold of the menu. Contrast on #003200 about 12:1 for
   the text, 7:1 for the dates. */
div.homepage-broadcast,
div.homepage-broadcast-content,
span.homepage-latest-video-text,
table.video-doclet,
div.video-box span.video-doclet-description-text,
table.magazine-doclet,
table.magazine-doclet span.magazine-doclet-text,
div#video-description {
    color: #e2e0d8;
}
div.homepage-broadcast-title,
span.homepage-latest-video-title,
div.video-box span.video-doclet-title,
table.magazine-doclet span.magazine-doclet-title,
a.video-list-item {
    color: #f3f1ea;
}
div.homepage-broadcast-summary,
span.homepage-latest-video-infotext,
div.video-box span.video-doclet-text,
span.magazine-doclet-facts,
a.video-list-item span.video-list-date,
a.video-list-current span.video-list-date,
span.magazine-transcripts {
    color: #b3bbab;
    opacity: 1;
}
div.latest-title,
h3.latest-title {
    color: #D2B644;
}
/* the video playing stays gold (the rule above has the same weight and comes later) */
a.video-list-current,
a.video-list-current:hover {
    color: #D2B644;
}

/* The same softened off-white where the frame and the navigation had pure white (2026-12):
   the title of the broadcast on the home page, the entry of the
   main menu of the current page and the one under the pointer (js/apycom.com-9-black/
   menu.css: #FFFFFF), the current language above the banner and in the footer, and the
   numbers and arrows of the pages of a list. */
/* the link of the title carries an inline whitesmoke (kept, the page is compared with the
   reference), hence !important */
div.homepage-broadcast-title a {
    color: inherit !important;
}
div#menu ul.menu > li.current > a span,
div#menu ul.menu a:hover,
div#menu ul.menu span:hover,
#language-bar a:hover,
#language-bar a:focus,
#language-bar a.language-current,
div#footer div.footer-languages a.footer-current {
    color: #f3f1ea;
}
a.ui-panel-button {
    color: #e2e0d8;
}
div.panel-button a.ui-panel-button.is-unavailable,
div.panel-button a.ui-panel-button.is-unavailable:hover,
div.panel-button a.ui-panel-button[href="#"]:not(.datapage-button-disabled),
div.panel-button a.ui-panel-button[href="#"]:not(.datapage-button-disabled):hover {
    color: #e2e0d8 !important;
}
/* the current language above the banner and in the footer a step quieter: it stands on the
   lighter pattern of the background, where #f3f1ea still looked white */
#language-bar a.language-current,
div#footer div.footer-languages a.footer-current {
    color: #e2e0d8;
}

/* Links in the text of a post (post list and post page, 2026-12): dark green and underlined.
   They had the colour of the text around them and were not recognisable - on "Important
   Instructions" the whole first sentence is the link to the printable PDF. */
div.post-card-summary a,
div.post-card-content a,
div.articles-list-summary a,
div.articles-list-content a {
    color: #0b4d0b;
    text-decoration: underline;
    text-decoration-color: rgba(11, 77, 11, 0.45);
    text-underline-offset: 2px;
}
div.post-card-summary a:hover,
div.post-card-content a:hover,
div.articles-list-summary a:hover,
div.articles-list-content a:hover {
    text-decoration-color: #0b4d0b;
}

/* The post list laid out as the card of the post page (2026-12): title, the date under it,
   then summary and text flush with the title, the text 15 px (13 px before); the pictures in
   the text in their own width (598 px) up to the width of the card - the stored HTML gives
   them width='320px', which left a large empty area beside them. The layout tables of a
   post become blocks. */
table.articles-list {
    padding: 22px 28px 24px 28px;
    border-collapse: separate;
}
table.articles-list table,
table.articles-list tbody,
table.articles-list tr,
table.articles-list td {
    display: block;
    width: auto;
    padding: 0;
    border-spacing: 0;
    text-align: start;
}
table.articles-list > tbody > tr > td > table:first-child > tbody > tr {
    display: flex;
    flex-direction: column;
}
div.articles-list-title {
    padding: 0;
    font: bold 22px/1.3 "Trebuchet MS", sans-serif;
}
div.articles-list-date {
    float: none;
    margin: 4px 0 16px 0;
    padding: 0;
    text-align: start;
}
div.articles-list-summary,
div.articles-list-content {
    padding: 0;
    font-size: 15px;
    line-height: 1.6;
}
div.articles-list-summary {
    margin-bottom: 10px;
}
div.articles-list-image img,
div.articles-list-summary img[width],
div.articles-list-content img[width],
div.post-card-summary img[width],
div.post-card-content img[width] {
    width: auto;
    max-width: 100%;
    height: auto;
    border-radius: 4px;
}

/* "Latest Videos" on the home page (2026-12): a heading in gold on the background, as the
   title above the player, instead of a thin dark bar over the boxes */
div.latest-title,
h3.latest-title {
    margin: 14px 0 6px 0;
    padding: 0 2px;
    background: none;
    color: #D2B644;
    font: bold 20px/1.3 "Trebuchet MS", sans-serif;
}

/* Under the latest videos of the home page: the link to the video library (2026-12), as the
   links to further pages of the list beside the player */
a.homepage-latest-more {
    display: block;
    margin: 8px 0 0 0;
    padding: 10px;
    border-radius: 6px;
    background-color: #003200;
    color: #D2B644;
    font: bold 15px "Trebuchet MS", sans-serif;
    text-align: center;
}
a.homepage-latest-more::after {
    content: " \203A";
}
a.homepage-latest-more:hover {
    background-color: #0b4d0b;
    color: #f3f1ea;
}

/* The button that shows all the chips of a long filter box: on a phone only (css/mobile.css) */
button.filter-box-more {
    display: none;
}
