/* fiatcoupe.net phone layout (2026-10-31). Loaded only for screens narrower than 980px (media attribute in
   inc_heading_1.php); kayjey.css (the desktop layout) is loaded only from 980px, so the two never mix and the desktop
   stays exactly as it was. Colours from the header tiles: blue #0066CC, bar/left column #FFD4A7, red #AB0030,
   pink #BC3359, titles #FFC58B / #FDB46A, page #FDE9D6. */

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  padding: 0;
  background: #FDE9D6;
  font-family: Verdana, Arial, Helvetica, sans-serif;
  font-size: 14px;
  line-height: 1.45;
  color: #222;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}
a, a:visited { color: #AB0030; text-decoration: none; }
a:hover, a:focus-visible { text-decoration: underline; }
img { max-width: 100%; height: auto; }
img[src$="bar.gif"] { height: 10px; }   /* poll result bars: stretched on purpose */

/* ---------- order on the phone: header, content, right column, left column ---------- */
/* min-width 0: a flex item is otherwise at least as wide as its widest content (a wide picture or table) */
body > * { min-width: 0; max-width: 100%; box-sizing: border-box; }
.phonehead { order: 0; }
.content   { order: 1; }
.fastlane  { order: 2; }
.head_r4c1 { order: 3; }
.banner    { order: 4; }

/* the desktop header rows and the desktop menus are replaced by .phonehead */
.head_r1c1, .head_r1c2, .head_r2c1, .head_r2c2, .head_r3c1, .head_r3c2,
.head_r4c1 > .subnavtitle, .head_r4c1 > .subnav, .head_r4c1 > br:first-of-type,
.banner:empty { display: none; }

/* ---------- phone header ---------- */
.phonehead[hidden] { display: block; }
.phonehead { position: relative; background: #FDB46A; }
.ph-top, .ph-photo { display: flex; overflow: hidden; white-space: nowrap; }
.ph-top { height: 26px; background: url("layout/back_r1c2.gif") repeat-x; }
.ph-photo { height: 75px; background: url("layout/back_r2c2.gif") repeat-x; }
.ph-top img, .ph-photo img { max-width: none; flex: none; display: block; }
/* very narrow screens: drop the decorative corner of the title row, keep the title */
@media (max-width: 380px) { .ph-top img:first-child { width: calc(100vw - 235px); object-fit: cover; object-position: right; } }

.ph-menu > summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  height: 36px;
  box-sizing: border-box;
  padding: 0 14px;
  background: linear-gradient(to right, #0066CC 0, #0066CC 141px, #FFD4A7 141px);
  border-bottom: 1px solid #000;
  color: #fff;
  font: bold 14px/1 Verdana, Arial, Helvetica, sans-serif;
  letter-spacing: 1px;
}
.ph-menu > summary::-webkit-details-marker { display: none; }
.ph-burger, .ph-burger::before, .ph-burger::after {
  display: block; width: 18px; height: 2px; background: #fff; border-radius: 1px; content: ""; position: relative;
}
.ph-burger::before { position: absolute; top: -6px; }
.ph-burger::after { position: absolute; top: 6px; }
.ph-menu[open] .ph-burger { background: transparent; }
.ph-menu[open] .ph-burger::before { top: 0; transform: rotate(45deg); }
.ph-menu[open] .ph-burger::after { top: 0; transform: rotate(-45deg); }

.ph-klaas {
  position: absolute;
  top: 101px;
  right: 0;
  height: 35px;
  display: flex;
  align-items: center;
  padding: 0 24px 0 26px;
  background: linear-gradient(to right, #BC3359, #BC3359) right / 12px 100% no-repeat, #AB0030;
  clip-path: polygon(18px 0, 100% 0, 100% 100%, 0 100%);
  color: #FFF6ED !important;
  font: bold 12px/1 Verdana, Arial, Helvetica, sans-serif;
  letter-spacing: 2px;
}

/* menu panel */
.ph-panel { background: #FFD4A7; border-bottom: 1px solid #000; padding: 6px 0 10px; }
.ph-home {
  display: block;
  margin: 4px 12px 8px;
  padding: 9px 14px;
  background: #0066CC;
  color: #fff !important;
  font-weight: bold;
  border-radius: 4px;
}
.ph-home.ph-current { box-shadow: inset 0 0 0 2px #fff; }
.ph-section > summary {
  list-style: none;
  cursor: pointer;
  padding: 9px 14px;
  font: bold 16px Verdana, Arial, Helvetica, sans-serif;
  color: #000;
  border-top: 1px solid rgba(0, 0, 0, .12);
}
.ph-section > summary::-webkit-details-marker { display: none; }
.ph-section > summary::after { content: "+"; float: right; font-weight: normal; color: #AB0030; }
.ph-section[open] > summary::after { content: "\2212"; }
.ph-section ul { list-style: none; margin: 0 0 6px; padding: 0 14px 0 22px; }
.ph-section li a {
  display: block;
  padding: 8px 10px 8px 22px;
  background: url("layout/bullet.gif") no-repeat 4px center;
  color: #414141 !important;
  font-weight: bold;
  font-style: italic;
}
.ph-section li a.ph-current { background-color: #FDE9D6; color: #AB0030 !important; border-radius: 3px; }

/* ---------- content ---------- */
.content { position: static; padding-bottom: 14px; }
.contenttitle1, .contenttitle2, .contenttitle1_wide, .contenttitle2_wide {
  margin: 14px 10px 0;
  padding: 5px 10px;
  font: bold 13px/1.35 Tahoma, Verdana, Arial, sans-serif;
  color: #414141;
}
.contenttitle1, .contenttitle1_wide { background: #FFC58B; }
.contenttitle2, .contenttitle2_wide { background: #FDB46A; }
.contentparagraph, .contentparagraph_wide, .contentparagraphnoright {
  margin: 6px 10px 0;
  padding: 2px 8px;
  font-size: 14px;
  overflow-wrap: anywhere;
}
.regtext { font-size: inherit; }
/* wide tables scroll inside their own box instead of widening the page */
.contentparagraph table, .contentparagraphnoright table, .contentparagraph_wide table {
  display: block;
  max-width: 100%;
  overflow-x: auto;
  font-size: 13px;
}
.content img[align="right"] { max-width: 40%; margin: 0 0 6px 8px; }
.centerdiv { text-align: center; }

/* ---------- right column (related pictures, shortcuts) and left column (site news, special pictures) ---------- */
.fastlane { position: static; width: auto; margin: 6px 10px 0; background: #FFF6ED; }
.fastlaneimg { margin: 0; }
.fastlaneimg img { display: block; }
.fastlanepane { padding: 6px 12px 10px; font-size: 13px; color: #414141; background: #FFF6ED; }
.fastlanecaption { padding: 0 4px; font-size: 12px; color: #414141; text-align: center; }
.head_r4c1 { position: static; width: auto; margin: 14px 10px 0; padding-bottom: 8px; background: #FFD4A7; border-bottom: 1px solid #000; }
.head_r4c1 > img:first-child { display: none; }
.lt_more { padding: 6px 12px; font-size: 13px; }
.lt_pics { padding: 6px 12px; text-align: center; }
.lt_red { color: #AB0030; }
.head_r4c1 > img, .lt_pics img { display: inline-block; }

/* videos (video.php): never wider than the screen */
video.videoplayer { display: block; max-width: 100%; height: auto; background: #000; }

/* ---------- the page's own navigation (inc_seo.php phone_pagenav): collapsed lists, previous/next ---------- */
.pagelist, .rangepager { display: none; }
.ph-pagenav[hidden], .ph-prevnext[hidden] { display: block; }
.ph-pagenav { margin: 8px 10px 0; background: #FFF6ED; border: 1px solid #FDB46A; border-radius: 4px; }
.ph-pagenav > summary {
  list-style: none;
  cursor: pointer;
  padding: 10px 34px 10px 12px;
  position: relative;
  font-size: 13px;
  color: #414141;
}
.ph-pagenav > summary::-webkit-details-marker { display: none; }
.ph-pagenav > summary::after { content: "\25BE"; position: absolute; right: 12px; top: 9px; color: #AB0030; font-size: 15px; }
.ph-pagenav[open] > summary::after { content: "\25B4"; }
.ph-pagenav ul { list-style: none; margin: 0; padding: 0 0 6px; border-top: 1px solid #FDB46A; }
.ph-pagenav li a { display: block; padding: 8px 12px; font-size: 14px; }
.ph-pagenav li a.ph-current { background: #FFC58B; color: #000 !important; font-weight: bold; }
.ph-prevnext[hidden] { display: flex; }
.ph-prevnext { gap: 8px; margin: 16px 10px 4px; }
.ph-prevnext > * { flex: 1 1 0; min-width: 0; }
.ph-prevnext a {
  display: block;
  padding: 8px 10px;
  background: #FFC58B;
  border-radius: 4px;
  color: #414141 !important;
  font-size: 13px;
  font-weight: bold;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ph-prevnext a span { display: block; font-weight: normal; font-size: 12px; color: #AB0030; }
.ph-prevnext .ph-next { text-align: right; }
/* a subheading right above a collapsed list says the same as the list's line: hide it (main headings <h1> stay) */
h2.contenttitle1:has(+ .ph-pagenav), h2.contenttitle2:has(+ .ph-pagenav) { display: none; }

/* ---------- side-column headings over the full width (the tiles' own colours continue) ---------- */
.lt_head { height: 19px; }
.lt_head img { display: block; }
.lt_sitenews { background: linear-gradient(#CD4B48 0 1px, #FDB46A 1px 18px, #CD4B48 18px); }
.lt_specialpictures { background: linear-gradient(#AB0030 0 1px, #FDB46A 1px 18px, #AB0030 18px); }
.fastlaneimg:has(img[src$="relpics_1.gif"]) { background: #C83F56; }
.fastlaneimg:has(img[src$="fastlane_pic_1.gif"]) { background: #ADABA8; }

/* ---------- related and special pictures: a grid, each picture with its caption ----------
   The old HTML puts the pictures (div.relpicitem) inside a <p>, which the browser closes before the first <div>:
   the pictures are children of the column itself. So the column is the grid; everything else spans the full row. */
.fastlane:has(> .relpicitem), .head_r4c1:has(> .relpicitem) {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 14px 12px;
  align-items: start;
}
.fastlane:has(> .relpicitem) > :not(.relpicitem), .head_r4c1:has(> .relpicitem) > :not(.relpicitem) { grid-column: 1 / -1; }
.fastlane:has(> .relpicitem) > p.fastlanepane, .head_r4c1:has(> .relpicitem) > p.lt_pics, .fastlane > p:empty { display: none; }
.fastlane:has(> .relpicitem) { padding-bottom: 14px; }
.fastlane > .relpicitem:nth-child(1 of .relpicitem), .head_r4c1 > .relpicitem { margin-top: 0; }
.relpicitem { padding: 0 6px; }
.relpicitem .fastlanecaption br { display: none; }
.relpicitem .centerdiv a { display: inline-block; }
.relpicitem img { display: block; margin: 0 auto; }
.relpicitem .fastlanecaption { margin-top: 4px; padding: 0; font-size: 12px; line-height: 1.3; text-align: center; }
/* the old <br> spacers and paragraph margins only add empty rows on the phone */
.head_r4c1 > br, .fastlane > br, .fastlanepane > br:first-child { display: none; }
.head_r4c1 > p, .fastlane > p { margin: 0; }
.fastlanepane { padding-top: 10px; }
