/* PaulsQuiz additions on top of the original template styles */
.pq-sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.pq-trap { position: absolute; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.pq-inline { display: inline; margin: 0; padding: 0; }
.pq-linkbtn { background: none; border: 0; padding: 0; margin: 0; color: inherit; font: inherit; cursor: pointer; text-decoration: none; }
.pq-linkbtn:hover { text-decoration: underline; }

/* messages */
.pq-msg { margin: 10px 0; padding: 10px 14px; border-radius: 4px; border: 1px solid #b7d7ee; background: #eaf5fd; color: #1b4d73; }
.pq-msg.pq-ok { border-color: #b8dfc0; background: #edf8ef; color: #1e5a2b; }
.pq-msg.pq-error { border-color: #efb9b3; background: #fdeeec; color: #8a1f17; }
#system-message-container .pq-msg { margin: 0 0 12px; }
.pq-notice { margin: 12px 0; padding: 10px 14px; border: 1px solid #e6d68a; background: #fff8dd; color: #5c4a00; border-radius: 4px; }
.pq-notice.pq-draft { border-color: #f0b98a; background: #fff1e4; color: #7a3d00; }

/* forms */
.pq-form label { display: block; font-weight: bold; margin-bottom: 3px; }
.pq-form input[type=text], .pq-form input[type=email], .pq-form input[type=password], .pq-form input[type=number],
.pq-form input[type=datetime-local], .pq-form select, .pq-form textarea, .pq-searchform input[type=text] {
  width: 100%; max-width: 440px; padding: 8px 10px; border: 1px solid #b5bfc7; border-radius: 4px; font: inherit; box-sizing: border-box; height: auto;
}
.pq-form textarea { max-width: 640px; }
.pq-form input.pq-short { max-width: 140px; }
.pq-btn, a.pq-btn, button.pq-btn {
  display: inline-block; background: #2b8ad0; background-image: linear-gradient(#3b9be0, #1f78bd); color: #fff !important; border: 1px solid #1a6aa8;
  padding: 8px 18px; border-radius: 4px; font: 15px/20px Arial, Helvetica, sans-serif; cursor: pointer; text-decoration: none; text-shadow: 0 -1px 0 rgba(0,0,0,.25);
}
.pq-btn:hover { background-image: linear-gradient(#45a3e8, #2582c7); text-decoration: none; }
.pq-btn-grey, button.pq-btn-grey { background: #8a949c; background-image: linear-gradient(#9aa4ab, #7c868e); border-color: #6b747b; }
.pq-btn-red, button.pq-btn-red { background: #c0392b; background-image: linear-gradient(#d4493b, #ab2f22); border-color: #8f241a; }
.pq-btn-small { padding: 3px 10px; font-size: 13px; }
.pq-searchform { margin: 10px 0 20px; }
.pq-searchform input[type=text] { width: 60%; display: inline-block; vertical-align: middle; }
.pq-results { list-style: none; margin: 0; padding: 0; }
.pq-results li { margin: 0 0 14px; padding-bottom: 12px; border-bottom: 1px solid #e3e8ec; }
.pq-snippet { color: #666; font-size: 13px; line-height: 18px; margin-top: 3px; }
.pq-qr { margin: 12px 0; } .pq-qr canvas, .pq-qr img { image-rendering: pixelated; }

/* login module in the menu */
.module form.short .button { margin: 6px 0; }
.module form.short .username input, .module form.short .password input { width: 90%; }
.module form.short .greeting { margin-bottom: 6px; }

/* article page */
.pq-tools { float: right; list-style: none; margin: 4px 0 0 10px; padding: 0; }
.pq-tools a { font-size: 14px; }
.pq-ico { vertical-align: -1px; }
.pq-ico-img { vertical-align: middle; margin-right: 2px; }
.pq-edit { white-space: nowrap; font-size: 14px; }
p.edit { margin-top: 15px; }
.pq-quiz h1 { margin-top: 24px; }
.pq-adminbar { margin: 0 0 10px; } .pq-adminbar .pq-edit { margin-right: 16px; }
.pq-ad { margin: 14px 0; text-align: center; min-height: 0; }
.pq-badge { display: inline-block; margin-left: 6px; padding: 1px 7px; font-size: 11px; line-height: 16px; border-radius: 9px; background: #f4a259; color: #402100; text-transform: uppercase; letter-spacing: .03em; vertical-align: middle; }
.pq-badge.pq-b-published { background: #8fd19e; color: #0d3a1a; }
.pq-badge.pq-b-trashed { background: #e07a70; color: #fff; }
.pq-badge.pq-b-archived { background: #b6bec5; color: #2b3238; }

/* category list: like the old Joomla list */
.pq-filter { margin: 10px 0 16px; overflow: hidden; }
.pq-filter label { display: block; font-size: 16px; margin-bottom: 4px; }
.pq-filter .pq-filter-title { float: left; margin-right: 18px; }
.pq-filter .pq-filter-limit { float: left; }
.pq-filter input[type=text] { width: 300px; padding: 7px 9px; border: 1px solid #b5bfc7; border-radius: 4px; font: inherit; }
.pq-filter select { padding: 6px 8px; border: 1px solid #b5bfc7; border-radius: 4px; background: #fff; font: inherit; }
table.pq-list { width: 100%; border-collapse: collapse; margin: 14px 0 6px; }
table.pq-list th { text-align: left; font-size: 18px; font-weight: normal; padding: 8px 10px; border-bottom: 1px solid #2f7fc4; }
table.pq-list th a { color: #1f6db5; }
table.pq-list th.list-date, table.pq-list td.list-date { text-align: right; white-space: nowrap; width: 120px; }
table.pq-list td { padding: 11px 10px; border-bottom: 1px solid #2f7fc4; }
table.pq-list tbody tr:nth-child(odd) { background: #f3fcff; }
.pq-count { color: #777; font-size: 13px; margin: 6px 0 0; }

/* premium landing page lists */
.pq-latest-cols { display: flex; flex-wrap: wrap; gap: 24px; margin-top: 30px; }
.pq-latest { flex: 1 1 220px; min-width: 200px; }
.pq-latest h3 { font-size: 24px; margin-bottom: 10px; }
.pq-latest ul { list-style: none; margin: 0; padding: 0; }
.pq-latest li { border-bottom: 1px solid #d5dce1; padding: 8px 0; }

/* home banner */
.pq-banner { position: relative; height: 250px; max-width: 1080px; margin: 0 auto; overflow: hidden; }
.pq-slide { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; opacity: 0; transition: opacity .6s ease; pointer-events: none; }
.pq-slide.is-active { opacity: 1; pointer-events: auto; }
.pq-slide img { max-width: 100%; max-height: 250px; width: auto; height: auto; }

/* consent bar for adverts */
.pq-consent { position: fixed; left: 0; right: 0; bottom: 0; z-index: 9999; background: #1b2a36; color: #fff; padding: 14px 20px; font-size: 14px; line-height: 20px; box-shadow: 0 -2px 10px rgba(0,0,0,.3); }
.pq-consent[hidden] { display: none; }
.pq-consent p { margin: 0 0 8px; } .pq-consent a { color: #8fd0ff; }
.pq-consent button { background: #2b8ad0; color: #fff; border: 0; padding: 7px 16px; border-radius: 4px; cursor: pointer; font-size: 14px; margin-right: 8px; }
.pq-consent button#pq-consent-no { background: #566570; }

/* print view */
.pq-print-wrap { font: 13pt/1.5 Arial, Helvetica, sans-serif; color: #000; max-width: 800px; margin: 20px auto; padding: 0 20px; }
.pq-print-wrap h1.title { font-size: 26pt; text-transform: none; }
.pq-print-wrap .pq-quiz h1 { page-break-before: always; font-size: 22pt; }
.pq-print-foot { margin-top: 30px; color: #888; font-size: 10pt; }

/* ------------------------------------------------ admin */
.pq-admin h1.title { margin-bottom: 8px; }
.pq-admin-nav { margin: 0 0 18px; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.pq-admin-nav a { display: block; padding: 7px 14px; background: #eaf2f9; border: 1px solid #c6d8e8; border-radius: 4px; color: #17598f; text-decoration: none; }
.pq-admin-nav a.is-on, .pq-admin-nav a:hover { background: #2b8ad0; border-color: #1a6aa8; color: #fff; }
.pq-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; margin: 10px 0 24px; }
.pq-card { border: 1px solid #c6d8e8; border-radius: 6px; padding: 12px 14px; background: #f5fafe; }
.pq-card a.pq-card-title { font-size: 17px; font-weight: bold; display: block; margin-bottom: 4px; }
.pq-card small { color: #5a6b78; display: block; }
.pq-card.premium { background: #fff8e8; border-color: #ecd9a4; }
.pq-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 8px 0 18px; align-items: center; }
.pq-actions form { margin: 0; }
table.pq-table { width: 100%; border-collapse: collapse; margin: 10px 0; font-size: 14px; }
table.pq-table th { text-align: left; padding: 7px 8px; border-bottom: 2px solid #2f7fc4; font-weight: bold; white-space: nowrap; }
table.pq-table td { padding: 7px 8px; border-bottom: 1px solid #dbe4ea; vertical-align: top; }
table.pq-table tr:hover td { background: #f6fbff; }
.pq-row-actions { white-space: nowrap; }
.pq-row-actions form { display: inline; }
.pq-filterbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; margin: 10px 0; }
.pq-filterbar label { font-size: 13px; display: block; font-weight: bold; }
.pq-filterbar select, .pq-filterbar input[type=text] { padding: 6px 8px; border: 1px solid #b5bfc7; border-radius: 4px; font: inherit; }
.pq-editor-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 14px; max-width: 760px; }
.pq-editor-grid .full { grid-column: 1 / -1; }
.pq-hint { color: #5a6b78; font-size: 13px; margin: 3px 0 0; }
.pq-confirm { border: 2px solid #e0a39c; background: #fff6f5; padding: 16px 20px; border-radius: 6px; max-width: 640px; }
.pq-confirm.neutral { border-color: #b7d7ee; background: #f3f9fe; }
.pq-stat { display: inline-block; margin-right: 22px; }
.pq-stat b { font-size: 24px; display: block; line-height: 28px; }
code { background: #f1f3f5; padding: 1px 5px; border-radius: 3px; }
@media (max-width: 760px) {
  .pq-editor-grid { grid-template-columns: 1fr; }
  table.pq-table { font-size: 13px; }
  .pq-filter input[type=text] { width: 100%; }
  .pq-filter .pq-filter-title, .pq-filter .pq-filter-limit { float: none; margin: 0 0 10px; }
}

/* ------------------------------------------------ phones */
.pq-mobile-only { display: none; }
@media (max-width: 767px) {
  .pq-mobile-only { display: block; }
  #header { margin-bottom: 0; }
  .pq-mnav { margin: 6px 0 0; }
  .pq-mnav summary { display: inline-block; padding: 8px 18px; background: #2b8ad0; color: #fff; border-radius: 4px; cursor: pointer; font-size: 16px; list-style: none; }
  .pq-mnav summary::-webkit-details-marker { display: none; }
  .pq-mnav[open] summary { background: #1a6aa8; }
  .pq-mnav ul { list-style: none; margin: 8px 0 0; padding: 0; background: #fff; border: 1px solid #c6d8e8; border-radius: 4px; }
  .pq-mnav li a { display: block; padding: 11px 14px; border-bottom: 1px solid #e3ebf1; font-size: 16px; }
  .pq-mnav li.sub a { padding-left: 30px; font-size: 15px; color: #444; }
  #logo, a.logo-icon { display: block; }
  #logo { margin: 8px 0 0; }
  #logo img { max-height: 54px; width: auto; }
  .pq-mobile-only { position: absolute; right: 14px; top: 10px; }
  a.logo-icon { display: none; }
  #main, #main.grid-block { display: block !important; }
  #maininner, #sidebar-a { width: 100% !important; float: none !important; margin: 0 !important; padding-left: 0 !important; padding-right: 0 !important; box-sizing: border-box; }
  #sidebar-a { margin-top: 24px !important; }
  #sidebar-a .grid-box, #maininner .grid-box { width: 100% !important; float: none !important; }
  .block-main.wrapper, .block-header.wrapper, .block-footer.wrapper { padding-left: 14px; padding-right: 14px; box-sizing: border-box; }
  h1.title { font-size: 28px; line-height: 34px; }
  .pq-quiz { font-size: 17px; line-height: 26px; }
  table { max-width: 100%; }
  .pq-consent { padding: 12px 14px 20px; }
}

/* statistics and security pages */
.pq-range { display: flex; flex-wrap: wrap; gap: 8px; margin: 6px 0 14px; }
.pq-kpis { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; margin: 12px 0 18px; }
.pq-kpi { border: 1px solid var(--line, #d9d9d9); border-radius: 10px; padding: 12px 14px; background: var(--surface, #fff); }
.pq-kpi b { display: block; font-size: 26px; line-height: 1.15; font-weight: 700; }
.pq-kpi span { display: block; font-size: 13px; color: var(--muted, #666); margin-top: 2px; }
.pq-grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 28px; }
@media (max-width: 800px) { .pq-grid2 { grid-template-columns: minmax(0, 1fr); } }
svg.pq-ch { width: 100%; height: auto; display: block; overflow: visible; }
svg.pq-ch .grid { stroke: var(--line, #ddd); stroke-width: 1; }
svg.pq-ch .ax { fill: var(--muted, #666); font-size: 11px; }
svg.pq-ch .line { fill: none; stroke-width: 2.2; stroke-linejoin: round; }
svg.pq-ch .line.s1, svg.pq-ch .dot.s1 { stroke: var(--accent, #1a6fb5); }
svg.pq-ch .line.s2, svg.pq-ch .dot.s2 { stroke: #e58a1f; }
svg.pq-ch .dot { fill: var(--surface, #fff); stroke-width: 2; }
svg.pq-ch .area.s1 { fill: var(--accent, #1a6fb5); opacity: .12; stroke: none; }
svg.pq-ch .bar.s1 { fill: var(--accent, #1a6fb5); }
svg.pq-ch .bar:hover { opacity: .75; }
.pq-legend { font-size: 13px; color: var(--muted, #666); margin: 4px 0 10px; }
.pq-legend .sw { display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin: 0 4px 0 12px; vertical-align: -1px; }
.pq-legend .sw.s1 { background: var(--accent, #1a6fb5); margin-left: 0; }
.pq-legend .sw.s2 { background: #e58a1f; }
table.pq-table th.num, table.pq-table td.num { text-align: right; white-space: nowrap; }
.pq-inline { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 8px 0; }
.pq-inline input[type=text], .pq-inline select { padding: 5px 8px; border: 1px solid var(--line, #ccc); border-radius: 6px; background: var(--surface, #fff); color: inherit; font: inherit; font-size: 14px; }
details summary { cursor: pointer; margin: 6px 0; }
