/* SQ9NFI 8.5.14 — public system Logbook */
.page-logbook{background:var(--bg)}
.logbook-public-hero{padding-block:62px 54px}
.logbook-hero-shell{display:flex;align-items:flex-end;justify-content:space-between;gap:42px}
.logbook-public-hero h1{margin-bottom:14px}
.logbook-public-hero p{margin:0;max-width:800px}
.logbook-hero-stats{flex:0 0 auto;display:grid;grid-template-columns:repeat(4,minmax(105px,1fr));border:1px solid var(--line);border-radius:12px;overflow:hidden;background:var(--panel)}
.logbook-hero-stats>div{min-width:112px;padding:15px 17px;border-left:1px solid var(--line-soft)}
.logbook-hero-stats>div:first-child{border-left:0}
.logbook-hero-stats span{display:block;color:var(--muted);font-size:9px;font-weight:700;letter-spacing:.11em;text-transform:uppercase;white-space:nowrap}
.logbook-hero-stats strong{display:block;margin-top:5px;color:var(--text);font-size:18px;font-variant-numeric:tabular-nums}
.logbook-public-section{padding:38px 0 82px}
.logbook-public-shell{width:min(var(--max),calc(100% - 48px));margin-inline:auto}
.logbook-toolbar{display:grid;grid-template-columns:minmax(0,1fr) clamp(300px,34vw,460px);align-items:center;gap:14px clamp(18px,2vw,28px);margin-bottom:14px}
.logbook-toolbar-controls{min-width:0}
.logbook-list-controls{display:flex;align-items:center;gap:18px;min-width:0}
.logbook-order,.logbook-band-filter,.logbook-per{display:flex;align-items:center;gap:9px;min-width:0}
.logbook-order>span,.logbook-band-filter>span,.logbook-per>span{flex:0 0 auto;color:var(--gold);font-size:10px;font-weight:800;letter-spacing:.11em;text-transform:uppercase;white-space:nowrap}
.logbook-order select,.logbook-band-filter select,.logbook-per select{height:42px;padding:0 38px 0 13px;border:1px solid #2b2b2b;border-radius:8px;background:#0f0f0f;color:#d8d8d8;font-size:13px;font-weight:400;outline:0;transition:border-color .18s ease,background .18s ease,box-shadow .18s ease}
.logbook-order select{width:min(220px,100%)}
.logbook-band-filter select{width:108px}
.logbook-per select{width:82px}
.logbook-order select:hover,.logbook-band-filter select:hover,.logbook-per select:hover{border-color:#38383b;background:#111113}
.logbook-order select:focus,.logbook-band-filter select:focus,.logbook-per select:focus{border-color:var(--gold);box-shadow:0 0 0 2px rgba(144,119,49,.12)}
.logbook-filter-apply{height:42px;padding:0 17px;border:1px solid var(--gold);border-radius:8px;background:var(--gold);color:#080809;font-size:11px;font-weight:800;letter-spacing:.07em;text-transform:uppercase;cursor:pointer}
.logbook-toolbar-search{display:flex;justify-content:flex-end;min-width:0}
.logbook-search{display:flex;align-items:center;justify-content:flex-end;gap:10px;width:100%;max-width:460px;min-width:0;margin:0;padding:0;border:0;background:transparent}
.logbook-search-field{position:relative;display:block;flex:1 1 0;min-width:0}
.logbook-search-field input{width:100%;height:42px;padding:0 14px 0 40px;border:1px solid #2b2b2b;border-radius:8px;background:#0f0f0f;color:#d8d8d8;font-size:13px;font-weight:400;outline:0;box-shadow:none;appearance:none;-webkit-appearance:none;transition:border-color .18s ease,background .18s ease,box-shadow .18s ease}
.logbook-search-field input::placeholder{color:#66676b}
.logbook-search-field input:hover{border-color:#38383b;background:#111113}
.logbook-search-field input:focus{border-color:var(--gold);box-shadow:0 0 0 2px rgba(144,119,49,.12)}
.logbook-search-field i{position:absolute;left:14px;top:50%;transform:translateY(-50%);color:var(--gold);font-size:12px;pointer-events:none}
.logbook-search-button,.logbook-search-clear{display:inline-flex;align-items:center;justify-content:center;height:42px;min-height:42px;padding:0 19px;border-radius:8px;font-size:11px;font-weight:800;line-height:1;letter-spacing:.07em;text-transform:uppercase;white-space:nowrap;text-decoration:none}
.logbook-search-button{border:1px solid var(--gold);background:var(--gold);color:#080809;cursor:pointer}
.logbook-search-button:hover,.logbook-search-button:focus-visible{filter:brightness(1.08);outline:none}
.logbook-search-clear{border:1px solid #2b2b2b;background:#0f0f0f;color:#aaa}
.logbook-search-clear:hover,.logbook-search-clear:focus-visible{border-color:#4a4229;color:#c9b15f;outline:none}
.logbook-results-meta{grid-column:1/-1;display:flex;justify-content:space-between;gap:20px;padding:0 3px;color:var(--muted);font-size:12px}
.logbook-results-meta strong{color:var(--muted-2)}
.logbook-table-wrap{overflow:visible;border:1px solid var(--line);border-radius:12px;background:var(--panel);box-shadow:0 18px 50px rgba(0,0,0,.12);scrollbar-width:thin;scrollbar-color:#4a4127 #111}
.logbook-table-wrap:focus-visible{outline:2px solid var(--gold);outline-offset:2px}
.logbook-public-table{width:100%;min-width:0;table-layout:fixed;border-collapse:collapse;font-size:12px}
.logbook-public-table th{position:sticky;top:80px;z-index:20;padding:0;background:#101012;border-bottom:1px solid var(--line);text-align:left;white-space:nowrap}
.logbook-public-table th:first-child{border-radius:11px 0 0 0}
.logbook-public-table th:last-child{border-radius:0 11px 0 0}
.logbook-public-table th:nth-child(1){width:8%}
.logbook-public-table th:nth-child(2){width:7.5%}
.logbook-public-table th:nth-child(3){width:6.5%}
.logbook-public-table th:nth-child(4){width:10%}
.logbook-public-table th:nth-child(5){width:9%}
.logbook-public-table th:nth-child(6){width:5.5%}
.logbook-public-table th:nth-child(7){width:6.5%}
.logbook-public-table th:nth-child(8){width:6.5%}
.logbook-public-table th:nth-child(9){width:10%}
.logbook-public-table th:nth-child(10){width:14%}
.logbook-public-table th:nth-child(11){width:5%}
.logbook-public-table th:nth-child(12),.logbook-public-table th:nth-child(13){width:5.75%}
.logbook-sort{min-height:45px;display:flex;align-items:center;gap:5px;padding:0 9px;color:#85868b;font-size:9px;font-weight:800;letter-spacing:.1em;text-transform:uppercase;transition:.15s ease}
.logbook-sort:hover,.logbook-sort.active{color:var(--gold-2);background:#15140f}
.logbook-sort span{font-size:12px;line-height:1}
.logbook-public-table td{height:57px;padding:9px 10px;overflow:hidden;text-overflow:ellipsis;border-bottom:1px solid var(--line-soft);color:var(--muted-2);vertical-align:middle;white-space:nowrap}
html:not([data-theme="light"]) .logbook-public-table td{color:#b3b3b3}
html:not([data-theme="light"]) .logbook-locator,html:not([data-theme="light"]) .logbook-band,html:not([data-theme="light"]) .logbook-dxcc{color:#b3b3b3}
.logbook-public-table tbody tr:last-child td{border-bottom:0}
.logbook-public-table tbody tr{transition:background .12s ease}
.logbook-public-table tbody tr:hover{background:#141416}
.logbook-own-call,.logbook-call{color:var(--gold-2);font-size:13px;letter-spacing:.02em}
.logbook-call{color:var(--text);font-size:14px;font-weight:700;text-decoration:none;transition:color .24s ease,text-shadow .24s ease}
.logbook-call:hover,.logbook-call:focus-visible{color:var(--gold-2);text-decoration:none;text-shadow:0 0 10px rgba(201,177,95,.18);outline:none}
.logbook-numeric,.logbook-frequency,.logbook-locator,.logbook-band,.logbook-dxcc{font-variant-numeric:tabular-nums;font-feature-settings:'tnum' 1}
.logbook-frequency small{color:var(--muted);font-size:9px;text-transform:uppercase}
.logbook-cell-sub{display:block;margin-top:2px;color:#707176;font-size:9px;line-height:1.2}
.logbook-locator,.logbook-band,.logbook-dxcc{font-weight:700;color:#d3d3d6}
.logbook-name{display:block;overflow:hidden;text-overflow:ellipsis;color:var(--text);font-weight:600}
.logbook-empty-value{color:#66676b!important;font-weight:400!important;opacity:.48}
.logbook-country{display:inline-flex;align-items:center;gap:7px;max-width:100%;min-width:0}
.logbook-country>span:last-child{overflow:hidden;text-overflow:ellipsis}
.logbook-country-flag,.logbook-country-fallback{width:21px;flex:0 0 21px;display:inline-flex;justify-content:center;font-size:16px;line-height:1}
.logbook-country-flag-img{width:21px;height:14px;flex:0 0 21px;display:block;object-fit:contain;object-position:center;border-radius:2px;box-shadow:0 0 0 1px rgba(255,255,255,.14)}
.logbook-country-fallback{color:var(--gold-2);font-size:13px}
.logbook-qsl-head{text-align:center!important;padding:0!important;color:#85868b;font-size:9px;font-weight:800;letter-spacing:.06em;text-transform:uppercase}
.logbook-qsl-head .logbook-sort{justify-content:center;padding:0 4px;letter-spacing:.06em;font-size:8px}
.logbook-qsl-cell{text-align:center}
.logbook-qsl-yes{display:inline-flex;align-items:center;justify-content:center;width:22px;height:22px;color:#35b96d;font-size:18px;font-weight:900;line-height:1}
.logbook-empty{display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:190px;padding:28px;border:1px dashed var(--line);border-radius:12px;background:var(--panel);text-align:center}
.logbook-empty strong{font-size:19px;color:var(--text)}
.logbook-empty span{margin-top:5px;color:var(--muted);font-size:13px}
.logbook-error{border-style:solid;border-color:#633838}
.logbook-pagination{display:grid;grid-template-columns:1fr auto 1fr;align-items:center;gap:16px;margin-top:20px}
.logbook-page-numbers{display:flex;align-items:center;justify-content:center;gap:5px}
.logbook-page-number,.logbook-page-arrow{min-width:36px;height:36px;display:inline-flex;align-items:center;justify-content:center;border:1px solid var(--line);border-radius:7px;background:#111113;color:#a9aaae;font-size:12px;font-weight:700;transition:.15s ease}
.logbook-page-arrow{width:max-content;gap:6px;padding:0 13px}.logbook-page-arrow:last-child{justify-self:end}.logbook-page-arrow:first-child{justify-self:start}
.logbook-page-number:hover,.logbook-page-arrow:hover{border-color:var(--gold);color:var(--text)}
.logbook-page-number.active{border-color:var(--gold);background:var(--gold);color:#fff}
.logbook-page-arrow.disabled{pointer-events:none;opacity:.35}
.logbook-page-ellipsis{min-width:24px;text-align:center;color:var(--muted)}
.sr-only{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}

html[data-theme="light"] .page-logbook{background:#fff}
html[data-theme="light"] .logbook-hero-stats,html[data-theme="light"] .logbook-table-wrap,html[data-theme="light"] .logbook-empty{background:#fff;border-color:#deded9}
html[data-theme="light"] .logbook-hero-stats>div{border-color:#e7e7e2}
html[data-theme="light"] .logbook-order select,html[data-theme="light"] .logbook-band-filter select,html[data-theme="light"] .logbook-per select,html[data-theme="light"] .logbook-search-field input{background:#fff;border-color:#d9d9d4;color:#202124}
html[data-theme="light"] .logbook-order select:hover,html[data-theme="light"] .logbook-band-filter select:hover,html[data-theme="light"] .logbook-per select:hover,html[data-theme="light"] .logbook-search-field input:hover{background:#fafaf8;border-color:#c9c9c3}
html[data-theme="light"] .logbook-search-field input::placeholder{color:#8a8b8e}
html[data-theme="light"] .logbook-search-clear,html[data-theme="light"] .logbook-page-number,html[data-theme="light"] .logbook-page-arrow{background:#fff;border-color:#d9d9d4;color:#55565a}
html[data-theme="light"] .logbook-public-table th{background:#f2f2ef;border-color:#deded9}
html[data-theme="light"] .logbook-sort{color:#6c6d70}
html[data-theme="light"] .logbook-qsl-head{color:#6c6d70}
html[data-theme="light"] .logbook-sort:hover,html[data-theme="light"] .logbook-sort.active{background:#f7f4ea;color:#806929}
html[data-theme="light"] .logbook-public-table td{border-color:#ecece7;color:#4f5054}
html[data-theme="light"] .logbook-public-table tbody tr:hover{background:#fafaf7}
html[data-theme="light"] .logbook-call,html[data-theme="light"] .logbook-locator,html[data-theme="light"] .logbook-band,html[data-theme="light"] .logbook-dxcc,html[data-theme="light"] .logbook-name,html[data-theme="light"] .logbook-empty strong,html[data-theme="light"] .logbook-hero-stats strong{color:#252629}
html[data-theme="light"] .logbook-own-call{color:#806929}
html[data-theme="light"] .logbook-call:hover,html[data-theme="light"] .logbook-call:focus-visible{color:#806929;text-shadow:0 0 9px rgba(128,105,41,.12)}
html[data-theme="light"] .logbook-empty-value{color:#9a9a96!important;opacity:.58}
html[data-theme="light"] .logbook-results-meta strong{color:#4d4e51}
html[data-theme="light"] .logbook-table-wrap{box-shadow:0 16px 42px rgba(30,30,28,.06);scrollbar-color:#b5aa83 #f0f0ec}

@media(max-width:1180px){
 .logbook-toolbar{grid-template-columns:1fr;align-items:stretch;gap:12px}
 .logbook-toolbar-search{justify-content:flex-start}.logbook-search{width:100%;max-width:560px;justify-content:flex-start}.logbook-results-meta{grid-column:1}
}
@media(max-width:1120px){
 .logbook-hero-shell{align-items:flex-start;flex-direction:column}.logbook-hero-stats{width:min(100%,680px)}
 .logbook-list-controls{gap:10px}.logbook-order{flex:1 1 auto}.logbook-order select{width:100%}
}
@media(max-width:1180px){
 .logbook-table-wrap{overflow-x:auto;overflow-y:hidden}.logbook-public-table{min-width:1280px;table-layout:auto}.logbook-public-table th{top:80px}
}
@media(max-width:820px){
 .logbook-public-hero{padding-block:48px 42px}.logbook-public-shell{width:calc(100% - 30px)}
 .logbook-results-meta{align-items:flex-start;flex-direction:column;gap:3px}.logbook-page-arrow span{display:none}
}
@media(max-width:620px){
 .logbook-list-controls{display:grid;grid-template-columns:minmax(0,1fr) 108px 96px;gap:9px}.logbook-order,.logbook-band-filter,.logbook-per{display:grid;gap:6px}.logbook-order select,.logbook-band-filter select,.logbook-per select{width:100%}
 .logbook-search{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px}.logbook-search-field{min-width:0}.logbook-search-clear{grid-column:1/-1;width:100%}
}
@media(max-width:680px){.logbook-public-table th{top:70px}}
@media(max-width:560px){
 .logbook-hero-stats{grid-template-columns:repeat(2,minmax(0,1fr))}.logbook-hero-stats>div{min-width:0;border-left:1px solid var(--line-soft);border-top:1px solid var(--line-soft)}.logbook-hero-stats>div:nth-child(odd){border-left:0}.logbook-hero-stats>div:nth-child(-n+2){border-top:0}
 .logbook-public-section{padding-top:24px}.logbook-pagination{grid-template-columns:auto 1fr auto;gap:8px}.logbook-page-numbers{gap:3px}.logbook-page-number{min-width:32px;height:34px}.logbook-page-ellipsis{min-width:14px}
}

/* SQ9NFI 8.5.05 — Logbook as Drag & Drop system page */
.pb-type-logbook_summary{display:flex;align-items:center;height:100%}
.pb-type-logbook_summary .logbook-hero-stats{width:100%}
.pb-type-logbook_table .logbook-public-shell{width:100%;margin:0}
.page-logbook .builder-logbook-table-section{overflow:visible}
.pb-type-logbook_table .logbook-public-module{max-width:none}
.logbook-builder-missing{padding:18px;border:1px dashed var(--line);border-radius:10px;color:var(--muted);font-size:13px}
@media(max-width:900px){.pb-type-logbook_summary{align-items:flex-start}}

/* SQ9NFI 8.5.11 — QSL headings + sticky filters/search and table header */
.logbook-qsl-head .logbook-sort{min-height:45px;justify-content:center;gap:4px;padding:3px 4px;white-space:normal;text-align:center;line-height:1}
.logbook-qsl-label{display:inline-flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;min-width:0;line-height:1}
.logbook-qsl-head .logbook-qsl-label .logbook-qsl-main{display:block;font-size:9px;font-weight:800;line-height:1;letter-spacing:.08em}
.logbook-qsl-head .logbook-qsl-label small{display:block;margin:0;font-size:7px;font-weight:700;line-height:1.05;letter-spacing:.055em;text-transform:uppercase;color:inherit}
.logbook-qsl-head .logbook-sort-arrow{flex:0 0 auto;font-size:11px;line-height:1}

/* JS mirrors the whole filter/search block and the table heading into one fixed
   panel. Keeping it under <body> avoids Builder overflow/transform contexts. */
.logbook-table-wrap.logbook-sticky-managed>.logbook-public-table>thead>tr>th{position:static;top:auto}
.logbook-sticky-panel{position:fixed;z-index:999;display:none;background:var(--bg);box-shadow:0 10px 24px rgba(0,0,0,.22);pointer-events:auto}
.logbook-sticky-panel.is-visible{display:block}
.logbook-sticky-panel .logbook-toolbar{width:100%;margin:0;padding:10px 0 11px;background:var(--bg)}
.logbook-sticky-panel .logbook-results-meta{padding-inline:3px}
.logbook-sticky-head{position:relative;display:block;overflow:hidden;width:100%;background:#101012;border:1px solid var(--line);border-bottom:0;border-radius:12px 12px 0 0}
.logbook-sticky-head .logbook-public-table{margin:0;table-layout:fixed;border-collapse:collapse;background:#101012}
.logbook-sticky-head .logbook-public-table th{position:static!important;top:auto!important;border-radius:0!important}
html[data-theme="light"] .logbook-sticky-panel,html[data-theme="light"] .logbook-sticky-panel .logbook-toolbar{background:#fff}
html[data-theme="light"] .logbook-sticky-head,html[data-theme="light"] .logbook-sticky-head .logbook-public-table{background:#f2f2ef;border-color:#deded9}

@media(max-width:900px){
 .logbook-sticky-panel .logbook-toolbar{padding-top:8px;padding-bottom:9px}
}

/* SQ9NFI 8.5.13 — pagination returns directly to the QSO list */
#logbook-list{scroll-margin-top:92px}
@media(max-width:680px){#logbook-list{scroll-margin-top:80px}}

/* SQ9NFI 8.5.14 — consistent 3:2 flags + translation-safe responsive toolbar */

/* SQ9NFI 8.5.21 — NAME + DXCC columns and DXCC hero counter */
@media(max-width:360px){.logbook-hero-stats{grid-template-columns:1fr}.logbook-hero-stats>div{border-left:0;border-top:1px solid var(--line-soft)}.logbook-hero-stats>div:first-child{border-top:0}}

/* SQ9NFI 8.5.22 — compact 12-column table + centered 2x2 Hero statistics */
.logbook-hero-stats{
  width:min(100%,380px);
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:10px;
  border:0;
  border-radius:0;
  overflow:visible;
  background:transparent;
}
.logbook-hero-stats>div,
.logbook-hero-stats>div:first-child{
  min-width:0;
  padding:14px 15px;
  border:1px solid var(--line);
  border-radius:11px;
  background:linear-gradient(145deg,rgba(255,255,255,.026),rgba(255,255,255,.008));
}
.logbook-stat-card{display:flex;align-items:center;gap:12px;min-height:72px}
.logbook-stat-icon{width:34px;height:34px;flex:0 0 34px;display:inline-flex;align-items:center;justify-content:center;border:1px solid rgba(169,144,62,.34);border-radius:9px;background:rgba(169,144,62,.08);color:var(--gold-2);font-size:13px}
.logbook-stat-copy{min-width:0;display:block}
.logbook-stat-copy>span{font-size:8.5px;letter-spacing:.105em;line-height:1.15;white-space:normal}
.logbook-stat-copy>strong{margin-top:4px;font-size:20px;line-height:1.05;white-space:nowrap}
.pb-type-logbook_summary{justify-content:center;align-items:center}
.pb-type-logbook_summary .logbook-hero-stats{width:min(100%,380px);margin-inline:auto}

.logbook-public-table{font-size:11.5px}
.logbook-public-table th:nth-child(1){width:8%}
.logbook-public-table th:nth-child(2){width:8%}
.logbook-public-table th:nth-child(3){width:6.5%}
.logbook-public-table th:nth-child(4){width:10.5%}
.logbook-public-table th:nth-child(5){width:9%}
.logbook-public-table th:nth-child(6){width:6%}
.logbook-public-table th:nth-child(7){width:6.5%}
.logbook-public-table th:nth-child(8){width:11%}
.logbook-public-table th:nth-child(9){width:14%}
.logbook-public-table th:nth-child(10){width:5%}
.logbook-public-table th:nth-child(11),
.logbook-public-table th:nth-child(12){width:7.75%}
.logbook-sort{padding:0 7px;font-size:8.5px;letter-spacing:.075em;overflow:hidden}
.logbook-public-table td{padding:9px 8px;font-weight:400}
.logbook-own-call{font-weight:700}
.logbook-call{font-size:13px;font-weight:400}
.logbook-band,.logbook-dxcc,.logbook-name,.logbook-mode{font-weight:400!important}
.logbook-name{color:var(--muted-2)}
html:not([data-theme="light"]) .logbook-name{color:#b3b3b3}
html[data-theme="light"] .logbook-name{color:#4f5054}

html[data-theme="light"] .logbook-hero-stats{background:transparent;border:0}
html[data-theme="light"] .logbook-hero-stats>div,
html[data-theme="light"] .logbook-hero-stats>div:first-child{border-color:#deded9;background:linear-gradient(145deg,#fff,#f8f8f5)}
html[data-theme="light"] .logbook-stat-icon{border-color:rgba(128,105,41,.28);background:rgba(128,105,41,.07);color:#806929}

@media(max-width:560px){
  .logbook-hero-stats{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
  .logbook-hero-stats>div,.logbook-hero-stats>div:first-child{padding:12px 11px;border:1px solid var(--line)}
  .logbook-stat-card{gap:9px;min-height:66px}
  .logbook-stat-icon{width:30px;height:30px;flex-basis:30px;font-size:12px}
  .logbook-stat-copy>strong{font-size:18px}
}
@media(max-width:360px){
  .logbook-hero-stats{grid-template-columns:repeat(2,minmax(0,1fr))}
  .logbook-hero-stats>div,.logbook-hero-stats>div:first-child{border:1px solid var(--line)}
}


/* SQ9NFI 8.5.23 — compact DXCC badge styled like the INFO label */
.logbook-dxcc-badge{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:36px;
  height:20px;
  padding:0 7px;
  border:1px solid rgba(169,144,62,.34);
  border-radius:4px;
  background:rgba(169,144,62,.045);
  color:var(--gold-2)!important;
  font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace;
  font-size:10px;
  font-weight:700!important;
  line-height:1;
  letter-spacing:.055em;
  font-variant-numeric:tabular-nums;
  font-feature-settings:'tnum' 1;
  white-space:nowrap;
}
html[data-theme="light"] .logbook-dxcc-badge{
  border-color:rgba(128,105,41,.30);
  background:rgba(128,105,41,.055);
  color:#806929!important;
}


/* SQ9NFI 8.5.26 — Hero stats remain in the right column and are centered vertically */
.page-logbook .builder-hero-section .builder-cell:has(.pb-type-logbook_summary){
  display:flex;
  align-items:center;
  justify-content:flex-end;
}
.pb-type-logbook_summary{
  width:100%;
  display:flex;
  justify-content:flex-end;
  align-items:center;
}
.pb-type-logbook_summary .logbook-hero-stats{
  width:min(100%,380px);
  margin:0;
}
.logbook-stat-card{
  justify-content:flex-start;
  gap:10px;
}
.logbook-stat-icon{
  width:26px;
  height:26px;
  flex:0 0 26px;
  border-radius:6px;
  font-size:16px;
}
.logbook-stat-icon i{
  display:block;
  width:16px;
  height:16px;
  flex:0 0 16px;
}
.logbook-stat-copy>strong{
  font-weight:400!important;
}
@media(max-width:560px){
  .logbook-stat-card{gap:8px}
  .logbook-stat-icon{width:24px;height:24px;flex-basis:24px;font-size:15px;border-radius:6px}
  .logbook-stat-icon i{width:15px;height:15px;flex-basis:15px}
}


/* SQ9NFI 8.5.27 — tighter Hero statistic icons + slightly higher vertical position */
.logbook-stat-icon{
  width:24px;
  height:24px;
  flex:0 0 24px;
  border-radius:5px;
  font-size:17px;
  line-height:1;
}
.logbook-stat-icon i{
  display:flex;
  align-items:center;
  justify-content:center;
  width:100%;
  height:100%;
  flex:0 0 100%;
  font-size:17px;
  line-height:1;
  margin:0;
}
@media(min-width:961px){
  .page-logbook .pb-type-logbook_summary .logbook-hero-stats{
    transform:translateY(-10px);
  }
}
@media(max-width:560px){
  .logbook-stat-icon{
    width:22px;
    height:22px;
    flex-basis:22px;
    border-radius:5px;
    font-size:16px;
  }
  .logbook-stat-icon i{
    width:100%;
    height:100%;
    flex-basis:100%;
    font-size:16px;
  }
}

/* SQ9NFI 8.5.28 — subtle Hero icon size refinement */
.logbook-stat-icon,
.logbook-stat-icon i{
  font-size:16px;
}
@media(max-width:560px){
  .logbook-stat-icon,
  .logbook-stat-icon i{
    font-size:15px;
  }
}

/* SQ9NFI 8.5.29 — mobile-only Logbook layout; desktop remains unchanged */
.logbook-pagination-mobile{display:none}

@media(max-width:680px){
  /* On phones the navigation and table headings scroll with the page. */
  .logbook-sticky-panel{display:none!important}
  .logbook-table-wrap.logbook-sticky-managed>.logbook-public-table>thead>tr>th,
  .logbook-public-table th{position:static!important;top:auto!important}

  /* Mobile table: only date, time, correspondent, band and mode. */
  .logbook-table-wrap{overflow:hidden}
  .logbook-public-table{width:100%;min-width:0!important;table-layout:fixed;font-size:10.5px}
  .logbook-public-table th:nth-child(1),.logbook-public-table td:nth-child(1),
  .logbook-public-table th:nth-child(5),.logbook-public-table td:nth-child(5),
  .logbook-public-table th:nth-child(8),.logbook-public-table td:nth-child(8),
  .logbook-public-table th:nth-child(9),.logbook-public-table td:nth-child(9),
  .logbook-public-table th:nth-child(10),.logbook-public-table td:nth-child(10),
  .logbook-public-table th:nth-child(11),.logbook-public-table td:nth-child(11),
  .logbook-public-table th:nth-child(12),.logbook-public-table td:nth-child(12){display:none!important}
  .logbook-public-table th:nth-child(2){width:24%}
  .logbook-public-table th:nth-child(3){width:15%}
  .logbook-public-table th:nth-child(4){width:29%}
  .logbook-public-table th:nth-child(6){width:14%}
  .logbook-public-table th:nth-child(7){width:18%}
  .logbook-sort{min-height:40px;padding:0 5px;gap:3px;font-size:7.3px;letter-spacing:.055em;white-space:normal;line-height:1.1}
  .logbook-sort span{font-size:9px}
  .logbook-public-table td{height:52px;padding:8px 5px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:10.5px}
  .logbook-call{font-size:11.5px;font-weight:400}
  .logbook-band,.logbook-mode{font-size:10.5px;font-weight:400!important}
  .logbook-cell-sub{font-size:8px}

  /* Mobile pagination is intentionally the same composition as News. */
  .logbook-pagination-desktop{display:none}
  .logbook-pagination-mobile{display:block;margin-top:24px;padding-top:18px;border-top:1px solid var(--line-soft)}
  .logbook-pagination-summary{display:block;margin-bottom:12px;color:#777;font-size:10px;font-weight:700;line-height:1.2;text-transform:uppercase;letter-spacing:.12em;text-align:center}
  .logbook-pagination-controls{display:grid;grid-template-columns:1fr 1fr;align-items:center;gap:9px}
  .logbook-pagination-mobile .logbook-page-numbers{grid-column:1/-1;grid-row:1;gap:5px;flex-wrap:wrap}
  .logbook-pagination-mobile .logbook-page-arrow.prev{grid-column:1;grid-row:2;justify-self:stretch}
  .logbook-pagination-mobile .logbook-page-arrow.next{grid-column:2;grid-row:2;justify-self:stretch}
  .logbook-pagination-mobile .logbook-page-number{min-width:34px;height:34px}
  .logbook-pagination-mobile .logbook-page-ellipsis{min-width:24px;height:34px;display:grid;place-items:center}
  .logbook-pagination-mobile .logbook-page-arrow{min-height:40px;height:40px;padding:0 14px;gap:9px}
  .logbook-pagination-mobile .logbook-page-arrow span{display:inline!important}
  .logbook-pagination-mobile .logbook-page-arrow i{color:var(--gold);font-size:10px}
}


/* SQ9NFI 8.5.30 — mobile table edge spacing + News-identical pagination */
@media(max-width:680px){
  .logbook-public-table th:nth-child(2),
  .logbook-public-table td:nth-child(2){padding-left:10px}
  .logbook-public-table th:nth-child(7),
  .logbook-public-table td:nth-child(7){padding-right:10px;text-align:right}
  .logbook-public-table th:nth-child(7) .logbook-sort{justify-content:flex-end;text-align:right;padding-right:0}
  .logbook-public-table th:nth-child(2) .logbook-sort{padding-left:0}
  .logbook-pagination-mobile{display:block}
}
