/* Stylesheet for the beta site.
   Caddy tries beta/{path} before {path} on beta.pskreporter.info, so this file is what /pskcss.css
   returns there. It therefore has to carry the production rules as well (see the end of the file). */

/* ---- Site accent colour: the one place it is set ----
   Used for the menu highlight, tabs, focus rings, the Donate button and the home page charts
   (betamain.html reads it for Google Charts, and donate.js draws the PayPal button in it).
   A slightly deeper shade of the logo's orange (#F27A00) so white text and orange text on white stay readable. */
:root { --accent:#d86500; }

/* ---- Site header: shared by every page with the new top bar ---- */
/* (.brand's line-height/colour and the hover text-decoration are there to beat Bootstrap on the map page) */
.site-header { display:flex; align-items:center; flex-wrap:wrap; gap:8px 32px; margin:0 0 8px;
               padding:18px 24px; background:#ffffff; border-bottom:1px solid #dde1e6; box-sizing:border-box;
               color:#1d2330; font:14px/1.45 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
.site-header .brand { font-size:28px; font-weight:400; letter-spacing:.2px; margin:0; line-height:1.45;
                      color:#1d2330; display:flex; align-items:center; gap:10px; }
.site-header .brand a, .site-header .brand a:hover { color:inherit; text-decoration:none; display:flex; align-items:center; gap:10px; }
.site-header .brand img { display:block; height:40px; width:auto; }
.site-header nav { display:flex; gap:4px 28px; flex-wrap:wrap; }
.site-header nav a { color:#1d2330; font-weight:600; font-size:15px; letter-spacing:.3px; text-decoration:none;
                     padding:6px 0; border-bottom:3px solid transparent; }
.site-header nav a:hover { color:var(--accent); text-decoration:none; }
.site-header nav a.active { color:var(--accent); border-bottom-color:var(--accent); }
/* Phones (and landscape phones, which are short rather than narrow): smaller brand, and the nav stays on
   one row that scrolls sideways instead of wrapping onto two or three. The fade on the right hints at more. */
@media (max-width:760px), (max-height:500px) {
  .site-header { padding:6px 12px; gap:2px 16px; }
  .site-header .brand { font-size:20px; }
  .site-header .brand img { height:28px; }
  .site-header nav { flex:1 1 100%; min-width:0; flex-wrap:nowrap; gap:18px; overflow-x:auto;
                     padding-right:24px; scrollbar-width:none;
                     -webkit-mask-image:linear-gradient(to right, #000 calc(100% - 24px), transparent);
                     mask-image:linear-gradient(to right, #000 calc(100% - 24px), transparent); }
  .site-header nav::-webkit-scrollbar { display:none; }
  .site-header nav a { flex:none; font-size:13px; padding:4px 0; white-space:nowrap; }
  /* Map page: every pixel of height is map, and the map carries its own name, so logo icon + nav on one row */
  .site-header.map-header { flex-wrap:nowrap; }
  .site-header.map-header .brand a { font-size:0; gap:0; }
  .site-header.map-header nav { flex:1 1 auto; }
}

/* ---- Site footer: shared by the pages with the new top bar ---- */
.site-footer { margin:8px 0 0; padding:18px 24px; background:#ffffff; border-top:1px solid #dde1e6; box-sizing:border-box;
               color:#667085; font:13px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; text-align:center; }
.site-footer p { max-width:860px; margin:0 auto 6px; }
.site-footer p:last-child { margin-bottom:0; }
.site-footer a { color:#1a6fd6; text-decoration:none; }
.site-footer a:hover { text-decoration:underline; }

/* ---- Ordinary scrolling pages (<html class="site-page">: betamain, pskdev, pskstats, aboutus, faq) ---- */
/* These undo the map page's html/body rules at the end of this file */
html.site-page { overflow:visible; }
.site-page body { font-size:1em; }
.site-content { margin:8px; }

/* ---- Home page (<html class="site-page home-page">: betamain.html) ---- */
/* Everything is scoped to .home-page: it restyles body, links and box-sizing, and uses short names like #map and .key */
.home-page, .faq-page, .about-page, .dev-page, .stats-side {
  --bg:#f4f5f7; --panel:#ffffff; --fg:#1d2330; --muted:#667085;
  --border:#dde1e6; --link:#1a6fd6;
  --ph-bg:#f8f9fb; --ph-border:#c9ced6;
}
.home-page * { box-sizing:border-box; }
.home-page body { margin:0; background:var(--bg); color:var(--fg);
       font:14px/1.45 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
.home-page a { color:var(--link); text-decoration:none; }
.home-page a:hover { text-decoration:underline; }

/* Layout */
.home-page main { max-width:1280px; margin:0 auto; padding:24px;
       display:grid; grid-template-columns:repeat(3, minmax(0,1fr)); gap:20px; }
.home-page .span-2 { grid-column:span 2; }
.home-page .span-3 { grid-column:1 / -1; }
@media (max-width:960px) {
  .home-page main { grid-template-columns:minmax(0,1fr); padding:16px; }
  .home-page .span-2, .home-page .span-3 { grid-column:auto; }
}

/* Cards */
.home-page .card { background:var(--panel); border:1px solid var(--border); border-radius:8px;
        padding:20px 22px; display:flex; flex-direction:column; min-width:0; }
.home-page .card-head { display:flex; align-items:center; gap:12px; margin-bottom:16px; }
.home-page .card-head h2 { font-size:16px; font-weight:500; margin:0; flex:1; }
.home-page .range { font-size:13px; color:var(--muted); }
.home-page .card-foot { margin-top:16px; font-size:14px; }
.home-page .card-note { margin-top:10px; font-size:12px; color:var(--muted); min-height:1.2em; }
/* The View details link sits at the bottom of the card, so the links line up across a row of cards */
.home-page .card-foot:last-child { margin-top:auto; padding-top:16px; }

/* By Spots | By Country switch */
.home-page .seg { display:flex; align-items:center; gap:10px; margin:-4px 0 12px; font-size:14px; }
.home-page .seg button { border:0; background:none; padding:2px 0; font:inherit; color:var(--fg); cursor:pointer;
              border-bottom:2px solid transparent; }
.home-page .seg button:hover { color:var(--accent); }
.home-page .seg button[aria-selected="true"] { color:var(--accent); border-bottom-color:var(--accent); }
.home-page .seg button:focus-visible { outline:2px solid var(--accent); outline-offset:2px; }
.home-page .seg-sep { color:var(--border); }

/* Scrollable ranked table */
.home-page .scroll-table { position:relative; height:264px; overflow-y:auto; border-top:1px solid var(--border);
                transition:opacity .15s; }
.home-page .scroll-table.loading { opacity:.45; }
.home-page #top-modes-body { height:303px; }   /* header + 8 rows */
.home-page .rank-table { width:100%; border-collapse:collapse; font-size:14px; font-variant-numeric:tabular-nums; }
.home-page .rank-table th { position:sticky; top:0; background:var(--panel); text-align:left; font-weight:500;
                 font-size:13px; padding:8px 8px; border-bottom:1px solid var(--border); z-index:1; }
.home-page .rank-table td { padding:6px 8px; border-bottom:1px solid #eef0f3; }
.home-page .rank-table tr:last-child td { border-bottom:0; }
.home-page .rank-table .num { text-align:right; }
.home-page .rank-table td.rank { color:var(--muted); width:2.5em; }
.home-page .rank-table td.call { font-weight:500; letter-spacing:.2px; }
.home-page .rank-table td.unknown { font-weight:400; font-style:italic; color:var(--muted); }
.home-page .rank-table td.share { color:var(--muted); width:4.5em; }
.home-page .rank-table.fixed { table-layout:fixed; }
.home-page .rank-table td.clip { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.home-page .table-msg { position:absolute; inset:40px 0 0; display:flex; align-items:center; justify-content:center;
             color:var(--muted); font-size:13px; }
.home-page .table-msg:empty { display:none; }

.home-page .placeholder { flex:1; min-height:180px; display:flex; align-items:center; justify-content:center;
               text-align:center; padding:16px; color:var(--muted); font-size:13px;
               background:var(--ph-bg); border:1.5px dashed var(--ph-border); border-radius:6px; }
/* Support card: QR code and Donate button (the PayPal SDK swaps its own button in for .btn-donate) */
.home-page .donate-lead { margin:0 0 16px; font-size:15px; }
.home-page .donate-body { flex:1; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:20px; }
/* (#qr, .btn-donate and #paypal-sdk-container are also used by the Donate page) */
.home-page #qr, .about-page #qr { background:#fff; padding:10px; border:1px solid var(--border); border-radius:4px; line-height:0; }
.home-page .btn-donate, .about-page .btn-donate { display:inline-block; width:190px; padding:9px 0; border-radius:4px; background:var(--accent);
              color:#fff; font-weight:600; font-size:14px; text-align:center; }
.home-page a.btn-donate:hover, .about-page a.btn-donate:hover { filter:brightness(1.08); text-decoration:none; }
.home-page #paypal-sdk-container, .about-page #paypal-sdk-container { display:none; text-align:center; }
.home-page #paypal-sdk-container img, .home-page #paypal-sdk-container input[type=image],
.about-page #paypal-sdk-container img, .about-page #paypal-sdk-container input[type=image] { width:190px; height:auto; cursor:pointer; }

.home-page .chart-box { position:relative; height:240px; transition:opacity .15s; }
.home-page .chart-box.loading { opacity:.45; }
.home-page .range-select { appearance:none; -webkit-appearance:none; border:1px solid transparent; border-radius:6px;
                background:transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%23667085' stroke-width='1.5'/%3E%3C/svg%3E") no-repeat right 8px center;
                color:var(--muted); font:inherit; font-size:13px; padding:4px 24px 4px 8px; cursor:pointer; }
.home-page .range-select:hover { border-color:var(--border); color:var(--fg); }
.home-page .range-select:focus-visible { outline:2px solid var(--accent); outline-offset:1px; }
.home-page .chart-msg { position:absolute; inset:0; display:flex; align-items:center; justify-content:center;
             color:var(--muted); font-size:13px; }

/* Map tile */
.home-page .map-card { align-items:center; justify-content:center; }
.home-page .map-card .map-row { margin:auto 0; }   /* keeps the map centred above the pinned footer */
.home-page .map-card .card-foot { align-self:stretch; }
/* Map shrinks to fit narrow screens, never grows past the basemap's natural size
   (set from basemap.json at load time; 453 x 300 is just the initial placeholder) */
.home-page .map-wrap { flex:0 0 auto; width:453px; max-width:100%; }
.home-page #map { position:relative; display:block; width:100%; aspect-ratio:453 / 300; background:#fff; overflow:hidden;
       transition:opacity .15s; }   /* the map is the link to /pskmap */
.home-page #map:focus-visible { outline:2px solid var(--accent); outline-offset:2px; }
.home-page #map.loading { opacity:.6; }
/* The world and region layers are positioned by transforms from betamain.html's zoom animation */
.home-page .map-layer { position:absolute; inset:0; transform-origin:0 0; }
.home-page .map-layer img, .home-page .map-layer canvas { position:absolute; top:0; left:0; width:100%; height:100%; display:block; }
.home-page .world-tiles { position:absolute; top:0; left:-100%; width:300%; height:100%;   /* the world map and copies */
       background-repeat:repeat-x; background-size:33.3333% 100%; background-position:50% 0; } /* west and east of it */
.home-page .world-tiles.no-wrap { left:0; width:100%; background-size:100% 100%; background-repeat:no-repeat; }
.home-page #world-layer canvas { left:-100%; width:300%; }   /* spans the main map and both copies */
.home-page .map-row { max-width:100%; display:flex; align-items:center; justify-content:center; gap:16px 28px; flex-wrap:wrap; }
/* Transmitters | Receivers toggle above the map */
.home-page .map-wrap .card-head { margin-bottom:8px; }
.home-page .map-side-tabs { justify-content:flex-start; margin:0 0 8px; gap:6px; font-size:12px; }
/* Beside the map: the band key, then the play/pause button and the status text */
.home-page .map-key { display:flex; flex-direction:column; gap:10px; }
.home-page .map-status { display:flex; align-items:center; gap:6px; font-size:12px; color:var(--muted); }
.home-page #status { min-height:1.4em; }
.home-page #zoom-toggle { display:inline-flex; align-items:center; justify-content:center; width:20px; height:20px;
       padding:0; border:1px solid var(--border); border-radius:50%; background:var(--panel); color:var(--muted); cursor:pointer; }
.home-page #zoom-toggle[hidden] { display:none; }
.home-page #zoom-toggle:hover { color:var(--accent); border-color:var(--accent); }
.home-page #zoom-toggle:focus-visible { outline:2px solid var(--accent); outline-offset:1px; }
.home-page #zoom-toggle svg { width:10px; height:10px; fill:currentColor; }
.home-page #zoom-toggle .icon-play, .home-page #zoom-toggle.paused .icon-pause { display:none; }
.home-page #zoom-toggle.paused .icon-play { display:block; }
/* Band key: two columns beside the map, filled top-to-bottom */
.home-page #legend { columns:2; column-gap:18px; }
.home-page .key { display:flex; align-items:center; gap:6px; font-size:12px; line-height:1.2;
       padding:3px 0; break-inside:avoid; white-space:nowrap; }
.home-page .sw { width:11px; height:11px; border-radius:2px; border:1px solid rgba(0,0,0,.2); }
.home-page .count { color:var(--muted); }
/* Legend items are buttons: clicking one hides or shows that band on the map */
.home-page button.key { width:100%; border:0; background:none; margin:0; padding:3px 0; font:inherit; font-size:12px;
       color:var(--fg); text-align:left; cursor:pointer; }
.home-page button.key:hover { color:var(--accent); }
.home-page button.key:focus-visible { outline:2px solid var(--accent); outline-offset:1px; }
.home-page .key.off { color:var(--muted); text-decoration:line-through; }
.home-page .key.off .sw { opacity:.25; }
.home-page #tip .off { opacity:.5; text-decoration:line-through; }   /* hidden bands in the tooltip */
.home-page #tip { position:fixed; pointer-events:none; background:var(--panel); color:var(--fg);
       border:1px solid var(--border); border-radius:6px; padding:6px 8px; font-size:12px;
       box-shadow:0 2px 8px rgba(0,0,0,.15); display:none; white-space:nowrap; z-index:10; }
.home-page .site-header { margin:0; }

/* ---- FAQ and About Us pages (<html class="site-page faq-page"> / "site-page about-page") ---- */
/* Same colours and cards as the home page (the variables are set alongside .home-page above), in a single column */
.faq-page *, .about-page * { box-sizing:border-box; }
.faq-page body, .about-page body { margin:0; background:var(--bg); color:var(--fg);
       font:14px/1.45 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
.faq-page .site-header, .about-page .site-header { margin:0; }
.faq-page a, .about-page a { color:var(--link); text-decoration:none; }
.faq-page a:hover, .about-page a:hover { text-decoration:underline; }
.faq-page main, .about-page main { max-width:860px; margin:0 auto; padding:24px; }
@media (max-width:960px) { .faq-page main, .about-page main { padding:16px; } }
.faq-page .page-title, .about-page .page-title { font-size:22px; font-weight:400; margin:0 0 16px; }
.faq-page .card, .about-page .card { background:var(--panel); border:1px solid var(--border); border-radius:8px;
        padding:20px 22px; margin-bottom:20px; }
.faq-page .card-head { margin-bottom:4px; }
.faq-page .card-head h2 { font-size:16px; font-weight:500; margin:0; }
.about-page .card-head { margin-bottom:10px; }
.about-page .card-head h2 { font-size:16px; font-weight:500; margin:0; }
.about-page .page-intro { margin:0 0 16px; }
.about-page .contact-list { margin:0; padding-left:20px; }
.about-page .card h3 { font-size:15px; font-weight:600; margin:16px 0 6px; }
.about-page .card-head + h3 { margin-top:0; }
.about-page .donate-online { display:flex; align-items:center; gap:16px 24px; flex-wrap:wrap; margin:4px 0 12px; }
.about-page address { font-style:normal; margin:0 0 12px 20px; }

/* About Us: paragraphs in one card, with the NCDXF logo beside its paragraph */
.about-page .card p { margin:0 0 12px; }
.about-page .card > :last-child, .about-page .card > :last-child p { margin-bottom:0; }
.about-page .about-sponsor { display:flex; align-items:center; gap:16px; margin-bottom:12px; }
.about-page .about-sponsor img { display:block; flex:none; }

.faq-page .faq-item { padding:14px 0; border-top:1px solid #eef0f3; scroll-margin-top:12px; }
.faq-page .card-head + .faq-item { border-top:0; }
.faq-page .faq-item:last-child { padding-bottom:0; }
.faq-page .faq-item h3 { font-size:15px; font-weight:600; margin:0 0 6px; }
.faq-page .faq-anchor { margin-left:8px; color:var(--muted); font-weight:400; visibility:hidden; }
.faq-page .faq-item:hover .faq-anchor, .faq-page .faq-anchor:focus { visibility:visible; }
.faq-page .faq-item:target h3 { color:var(--accent); }
.faq-page .faq-answer > :first-child { margin-top:0; }
.faq-page .faq-answer > :last-child { margin-bottom:0; }
.faq-page .faq-answer p, .faq-page .faq-answer ul, .faq-page .faq-answer ol { margin:0 0 10px; }
.faq-page .faq-answer img { display:block; max-width:100%; height:auto; margin:10px 0;
        border:1px solid var(--border); border-radius:6px; }
.faq-page .faq-answer code { background:var(--ph-bg); border:1px solid var(--border); border-radius:4px; padding:0 4px; font-size:13px; }
.faq-page .faq-answer pre { background:var(--ph-bg); border:1px solid var(--border); border-radius:6px; padding:10px 12px; overflow-x:auto; }
.faq-page .faq-answer pre code { background:none; border:0; padding:0; }
.faq-page .faq-msg { color:var(--muted); font-size:13px; }

/* ---- Developer page (<html class="site-page dev-page">: pskdev.html) ---- */
/* Section list on the left (stays in view while scrolling), the text on the right */
.dev-page *, .dev-page *::before, .dev-page *::after { box-sizing:border-box; }
.dev-page body { margin:0; background:var(--panel); color:var(--fg);
       font:14px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
.dev-page .site-header { margin:0; }
.dev-page a { color:var(--link); text-decoration:none; }
.dev-page a:hover { text-decoration:underline; }
.dev-page .dev-layout { max-width:1280px; margin:0 auto; padding:24px; display:grid;
       grid-template-columns:180px minmax(0,1fr); gap:32px; align-items:start; }
.dev-page .dev-nav { position:sticky; top:16px; display:flex; flex-direction:column; padding:4px 0;
       background:var(--bg); border-radius:4px; max-height:calc(100vh - 32px); overflow-y:auto; }
.dev-page .dev-nav a { padding:10px 12px; font-size:13px; color:var(--fg); border-left:3px solid transparent; }
.dev-page .dev-nav a:hover { color:var(--accent); text-decoration:none; }
.dev-page .dev-nav a.active { color:var(--fg); border-left-color:var(--accent);
       background:color-mix(in srgb, var(--accent) 14%, var(--panel)); }
.dev-page .dev-nav a:focus-visible { outline:2px solid var(--accent); outline-offset:-2px; }
.dev-page .dev-content { max-width:1000px; }
.dev-page .dev-overview { display:flex; align-items:center; gap:24px 48px; flex-wrap:wrap; margin-bottom:8px; }
.dev-page .dev-overview > div { flex:1 1 420px; max-width:560px; }
.dev-page .dev-diagram { flex:0 1 auto; max-width:100%; height:auto; }
.dev-page h2 { font-size:20px; font-weight:600; margin:32px 0 10px; }
.dev-page h3 { font-size:16px; font-weight:600; margin:24px 0 8px; }
.dev-page h4 { font-size:14px; font-weight:600; margin:20px 0 6px; }
.dev-page .dev-overview h2 { margin-top:0; }
.dev-page h2, .dev-page h3, .dev-page h4 { scroll-margin-top:16px; }
.dev-page table { border-collapse:collapse; margin:8px 0; font-size:13px; }
.dev-page th, .dev-page td { text-align:left; vertical-align:top; padding:6px 10px; border-bottom:1px solid var(--border); }
.dev-page th { font-weight:600; }
.dev-page pre { background:var(--ph-bg); border:1px solid var(--border); border-radius:6px; padding:10px 12px;
       overflow-x:auto; font-size:13px; }
.dev-page hr { border:0; border-top:1px solid var(--border); margin:32px 0 16px; }
.dev-page address { font-style:normal; }
@media (max-width:760px) {
  .dev-page .dev-layout { grid-template-columns:minmax(0,1fr); padding:16px; gap:16px; }
  .dev-page .dev-nav { position:static; flex-direction:row; flex-wrap:wrap; max-height:none; }
  .dev-page .dev-nav a { padding:6px 10px; border-left:0; border-bottom:2px solid transparent; }
  .dev-page .dev-nav a.active { border-bottom-color:var(--accent); }
}

/* ---- Map page ---- */
/* Site name overlaid on the top right of the map (clear of the close button used in "hide max" mode) */
#mapconreportmap { position:relative; }
/* setMapSize() leaves 2px for the map's top/bottom borders; Bootstrap's border-box would leave that as a gap */
#mapreportmap { box-sizing:content-box; }
#mapbrand { position:absolute; top:6px; right:40px; z-index:5; font:italic bold 24px sans-serif;
            color:lightblue; text-decoration:none; text-shadow:0 1px 3px rgba(0,0,0,.6); }
#mapbrand:hover { color:#ffffff; text-decoration:none; }
/* Phones: the query-form arrows (#mobilecontainer) sit centred on the top edge of the map, so drop the name
   below them and make it smaller */
@media (max-width:760px) {
  #mapbrand { top:40px; right:8px; font-size:15px; }
}
/* "Hide menu bar" display option (setMenuBarAutoHide): the header floats over the page with only its bottom
   2px showing, and slides down while hovered. The body keeps 2px for the strip so the map doesn't cover it.
   Above the map and its controls, below jQuery UI dialogs (.ui-front, 1000). */
body.menubar-autohide { padding-top:2px; }
body.menubar-autohide header.site-header { position:fixed; top:0; left:0; right:0; z-index:950;
    transform:translateY(calc(2px - 100%)); transition:transform .2s ease; }
body.menubar-autohide header.site-header.menubar-shown { transform:none; box-shadow:0 2px 8px rgba(0,0,0,.3); }
/* Callsign box: Bootstrap gives it the body's 1.5 line-height, making it taller than the selects beside it */
#topform #callsignfield { line-height:normal; padding:1px 4px; width:12ch; }  /* about half the default 20-character box; still fits W1ABC/VE3/P-length calls */

/* ---- Statistics page (<html class="site-page stats-page">) ---- */
/* Scoped because td.element / td.elementright are styled differently on the map page */
.stats-page table.shame {
    border: 1px #000000 solid;
    font-family: Verdana;
    border-collapse: collapse;
}

.stats-page table.shame th {
background-color: #99CCCC;
border: 1px #000000 solid;
font-family: Verdana;
font-weight: bold;
padding-left: 4px;
padding-right: 8px;
font-size: 12px;
color: #404040;
}

.stats-page table.shame td {
vertical-align: top;
border: 1px #000000 solid;
font-family: Verdana, sans-serif, Arial;
font-weight: normal;
font-size: .7em;
color: #404040;
background-color: #fafafa;
padding-top: 4px;
padding-bottom: 4px;
padding-left: 8px;
padding-right: 10px; }

.stats-page td.elementexpand
{ border-bottom: 1px #6699CC dotted;
text-align: left;
font-family: Verdana, sans-serif, Arial;
font-weight: normal;
font-size: .7em;
color: #404040;
background-color: #fafafa;
padding-top: 4px;
padding-bottom: 4px;
padding-left: 8px;
padding-right: -3px; }

.stats-page td.stationinfo
{
text-align: left;
font-family: Verdana, sans-serif, Arial;
font-weight: normal;
font-size: .7em;
color: #404040;
background-color: #fafafa;
padding-top: 4px;
padding-bottom: 4px;
padding-left: 8px;
padding-right: 10px; }

.stats-page td.element
{ border-top: 1px #6699CC dotted;
border-bottom: none;
text-align: left;
font-family: Verdana, sans-serif, Arial;
font-weight: normal;
font-size: .7em;
color: #404040;
background-color: #fafafa;
padding-top: 4px;
padding-bottom: 4px;
padding-left: 8px;
padding-right: 10px; }

.stats-page td.elementright
{ border-top: 1px #6699CC dotted;
border-bottom: none;
vertical-align: top;
text-align: right;
font-family: Verdana, sans-serif, Arial;
font-weight: normal;
font-size: .7em;
color: #404040;
background-color: #fafafa;
padding-top: 4px;
padding-bottom: 4px;
padding-left: 8px;
padding-right: 10px; }

/* ---- Statistics page, side-index layout (<html class="site-page stats-page stats-side">: teststats.pl) ---- */
/* Same layout as the developer page: sticky section list on the left, scrolling content on the right.
   Only the layout and headings are set here; the stats tables keep the .stats-page rules above. */
.stats-side *, .stats-side *::before, .stats-side *::after { box-sizing:border-box; }
.stats-side body { margin:0; background:var(--panel); color:var(--fg);
       font:14px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
.stats-side .site-header { margin:0; }
.stats-side a { color:var(--link); text-decoration:none; }
.stats-side a:hover { text-decoration:underline; }
.stats-side .dev-layout { max-width:1280px; margin:0 auto; padding:24px; display:grid;
       grid-template-columns:200px minmax(0,1fr); gap:32px; align-items:start; }
.stats-side .dev-nav { position:sticky; top:16px; display:flex; flex-direction:column; padding:4px 0;
       background:var(--bg); border-radius:4px; max-height:calc(100vh - 32px); overflow-y:auto; }
.stats-side .dev-nav a { padding:10px 12px; font-size:13px; color:var(--fg); border-left:3px solid transparent; }
.stats-side .dev-nav a:hover { color:var(--accent); text-decoration:none; }
.stats-side .dev-nav a.active { color:var(--fg); border-left-color:var(--accent);
       background:color-mix(in srgb, var(--accent) 14%, var(--panel)); }
.stats-side .dev-nav a:focus-visible { outline:2px solid var(--accent); outline-offset:-2px; }
.stats-side .dev-content { min-width:0; }
.stats-side h1 { font-size:24px; font-weight:600; margin:0 0 10px; }
.stats-side h2 { font-size:20px; font-weight:600; margin:32px 0 10px; scroll-margin-top:16px; }
.stats-side h3 { font-size:16px; font-weight:600; margin:24px 0 8px; }
.stats-side .dev-content > div[id$="_div"] { max-width:100%; }
/* Google's annotation chart sizes itself assuming content-box; border-box clips its bottom border */
.stats-side .dev-content > div[id$="_div"], .stats-side .dev-content > div[id$="_div"] * { box-sizing:content-box; }
.stats-side .dev-content table { max-width:100%; }
.stats-side .gen-time { color:var(--muted); font-size:13px; margin-top:32px; }
@media (max-width:760px) {
  .stats-side .dev-layout { grid-template-columns:minmax(0,1fr); padding:16px; gap:16px; }
  .stats-side .dev-nav { position:static; flex-direction:row; flex-wrap:wrap; max-height:none; }
  .stats-side .dev-nav a { padding:6px 10px; border-left:0; border-bottom:2px solid transparent; }
  .stats-side .dev-nav a.active { border-bottom-color:var(--accent); }
}

/* ---- Production rules: a copy of html/pskcss.css (table.itself and td.title are also used by pskstats) ---- */

 .MyMarker {background-color:#ffffff;font-weight:bold;border:2px #006699 solid;}
 A.sitelink:link { color:black; text-decoration:none; }
 A.sitelink:visited { color:black; text-decoration:none; }
 A.sitelink:active { color:black; text-decoration:none; }
 A.sitelink:hover { color:blue; text-decoration:none; }

html {
  overflow: hidden;
}

table.itself
{
background-color: #fafafa;
border: 1px #000000 solid;
border-collapse: collapse;
border-spacing: 0px; }


td.title
{ background-color: #99CCCC;
border: 1px #000000 solid;
font-family: Verdana;
font-weight: bold;
padding-left: 4px;
padding-right: 8px;
font-size: 12px;
color: #404040; }

td.vtop {
    vertical-align:top;
}

.pickableicon { cursor: default; }

.center { margin-left: auto; margin-right: auto; }

#mobilecontainer { display: none; position: absolute; z-index: 900; width: 100%; }
/* jQuery UI dialogs (Display options etc.) default to z-index 100, which put them under the phone query panel */
.ui-front { z-index: 1000; }
#mobilecontainerinner { margin-left: auto; margin-right: auto; display: none; }
#mobilecontainerinnerinner { margin-left: auto; margin-right: auto; display: table-cell; background-color: white;
    width: auto;
    border: 2px #808080 solid;
    border-radius: 10px;
    -moz-border-radius: 10px;
    padding: 5px;
}

div.dragbutton {  margin-left: auto; margin-right: auto; zdisplay: block; }

img.dragbutton { border: 0; }


img.closebutton { cursor: default; position: absolute; right: 5px; top: 5px; }

td.element
{ border-bottom: 1px #6699CC dotted;
text-align: left;
font-family: Verdana, sans-serif, Arial;
font-weight: normal;
font-size: .9em;
color: #404040;
background-color: #fafafa;
padding-top: 4px;
padding-bottom: 4px;
padding-left: 8px;
padding-right: 10px; }

td.elementright
{ border-bottom: 1px #6699CC dotted;
text-align: right;
font-family: Verdana, sans-serif, Arial;
font-weight: normal;
font-size: .9em;
color: #404040;
background-color: #fafafa;
padding-top: 4px;
padding-bottom: 4px;
padding-left: 8px;
padding-right: 10px; }

.ui-widget {
    font-size: .9em;
}

#dddd {
    display: table-cell;
}

#dcharth {
    width: 600px;
}

div.popup {
    border: 2px #808080 solid;
    border-radius: 10px;
    -moz-border-radius: 10px;
    padding: 5px;
    background-color: #fff;
}

canvas.chart {
    border: 2px #808080 solid;
    border-radius: 10px;
    -moz-border-radius: 10px;
    padding: 5px;
    background-color: #fff;
}

body {
    margin: 0px 0px 0px 0px;
    font-family: Arial, Verdana, sans-serif;
    font-size: 0.8em;
}

div.withpadding {
    padding: 8px 8px 8px 8px;
}

div.withbottompadding {
    padding: 8px 8px 8px 8px;
}


.dark
{
    background-color: black;
    filter:alpha(opacity=50); /* IE */
    opacity: 0.5; /* Safari, Opera */
    -moz-opacity:0.50; /* FireFox */
    z-index: 20;
    background-repeat:no-repeat;
    background-position:center;
}

.darkClass
{
    background-color: black;
    filter:alpha(opacity=50); /* IE */
    opacity: 0.5; /* Safari, Opera */
    -moz-opacity:0.50; /* FireFox */
    z-index: 20;
    height: 100%;
    width: 100%;
    background-repeat:no-repeat;
    background-position:center;
    position:absolute;
    top: 0px;
    left: 0px;
}

.pskmap-label-icon {
    background: none;
    border: none;
}

      .ol-popup {
        position: absolute;
        background-color: white;
        -webkit-filter: drop-shadow(0 1px 4px rgba(0,0,0,0.2));
        filter: drop-shadow(0 1px 4px rgba(0,0,0,0.2));
        padding: 15px;
        border-radius: 10px;
        border: 1px solid #cccccc;
        bottom: 12px;
        left: -50px;
        min-width: 280px;
      }
      .ol-popup:after, .ol-popup:before {
        top: 100%;
        border: solid transparent;
        content: " ";
        height: 0;
        width: 0;
        position: absolute;
        pointer-events: none;
      }
      .ol-popup:after {
        border-top-color: white;
        border-width: 10px;
        left: 48px;
        margin-left: -10px;
      }
      .ol-popup:before {
        border-top-color: #cccccc;
        border-width: 11px;
        left: 48px;
        margin-left: -11px;
      }
      .ol-popup-closer {
        text-decoration: none;
        position: absolute;
        top: 2px;
        right: 8px;
      }
      .ol-popup-closer:after {
        content: "✖";
      }

.qcontainer {
    display: grid;
    /* 1fr = take all remaining space, auto = shrink-wrap to content */
    grid-template-columns: 1fr auto; 
    gap: 1rem; /* Optional: adds space between columns */
  }

  .qright-col {
    /* Optional: prevents text inside right col from wrapping onto multiple lines */
    white-space: nowrap; 
  }
