/* Spotterguide Plane1 – ORD test v0.6. All styling scoped to the plugin. */
.sgp1-widget{
 --sgp1-font-size:14px;
 --sgp1-heading-size:14px;
 --sgp1-label-size:13px;
 --sgp1-tab-font-size:13px;
 --sgp1-text-color:inherit;
 --sgp1-muted-color:inherit;
 --sgp1-tab-bg:#393939;
 --sgp1-tab-text:#fff;
 --sgp1-border-color:rgba(128,128,128,.2);
 --sgp1-accent-color:#ffcc00;
 --sgp1-security-bg:rgba(255,196,0,.10);
 --sgp1-security-border:#e7b900;
 --sgp1-row-spacing:13px;
 --sgp1-icon-size:20px;
 margin:16px 0 24px;font-family:inherit;color:var(--sgp1-text-color);
}
/* Compact four-column rating; two columns on smaller screens. */
.sgp1-rating{display:block;padding:0 0 14px;border:0;background:none;box-shadow:none}
.sgp1-rating-label{display:flex;align-items:center;justify-content:center;gap:9px;background:var(--sgp1-tab-bg);color:var(--sgp1-tab-text);min-height:44px;padding:11px 10px;margin:0 0 16px;font-size:var(--sgp1-tab-font-size);font-weight:700;letter-spacing:.02em;box-sizing:border-box}.sgp1-rating-heading-icon{font-size:19px;line-height:1}
.sgp1-rating-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px 14px}
.sgp1-rating-item{min-width:0}
.sgp1-rating-item-label{font-size:13px;line-height:1.4;opacity:.78;margin-bottom:6px}
.sgp1-rating-item-score{display:flex;align-items:center;gap:0;flex-wrap:wrap;min-height:23px}
.sgp1-rating-score-part{display:inline-block;line-height:1.2}
.sgp1-rating-item-score img{vertical-align:middle;max-width:100%;height:auto;max-height:25px;width:auto}.sgp1-rating-score-part{flex:0 0 auto}
.sgp1-rating-content table{margin:0!important}
.sgp1-tabs{display:grid;grid-template-columns:1fr 1fr;margin-top:10px;gap:5px}
.sgp1-tab{display:flex!important;align-items:center;justify-content:center;gap:9px;background:var(--sgp1-tab-bg)!important;color:var(--sgp1-tab-text)!important;border:0!important;border-radius:0!important;min-height:44px;padding:11px 10px!important;font-size:var(--sgp1-tab-font-size)!important;font-weight:700!important;cursor:pointer;letter-spacing:.02em;opacity:.67;box-shadow:none!important}
.sgp1-tab svg{display:block;flex:none;width:var(--sgp1-icon-size);height:var(--sgp1-icon-size);stroke:currentColor}
.sgp1-tab[aria-selected="true"]{opacity:1;border-bottom:3px solid var(--sgp1-accent-color)!important}
.sgp1-panel{border:1px solid var(--sgp1-border-color);border-top:0;padding:12px 16px;font-size:var(--sgp1-font-size);line-height:1.6}
.sgp1-panel[hidden]{display:none!important}
.sgp1-info-row{display:grid;grid-template-columns:26px minmax(0,1fr);gap:12px;padding:var(--sgp1-row-spacing) 0;border-bottom:1px solid var(--sgp1-border-color)}
.sgp1-info-row:last-child{border-bottom:0}
.sgp1-info-icon{display:flex;align-items:flex-start;justify-content:center;padding-top:1px;color:inherit;opacity:.75}
.sgp1-info-icon svg{display:block;width:var(--sgp1-icon-size);height:var(--sgp1-icon-size);stroke:currentColor}
.sgp1-info-title{font-size:var(--sgp1-heading-size);font-weight:700;margin-bottom:5px;line-height:1.5}
.sgp1-info-body{font-size:var(--sgp1-font-size);line-height:1.6;overflow-wrap:anywhere}
.sgp1-info-body p:last-child{margin-bottom:0}
.sgp1-security{background:var(--sgp1-security-bg);border-left:4px solid var(--sgp1-security-border);padding:13px 12px;margin-top:12px;border-bottom:0}
.sgp1-usage-intro{padding:6px 0 14px;font-size:var(--sgp1-font-size);line-height:1.6}
.sgp1-usage-row{display:grid;grid-template-columns:minmax(0,105px) minmax(0,1fr);gap:12px;border-top:1px solid var(--sgp1-border-color);padding:12px 0;font-size:var(--sgp1-font-size);line-height:1.6}
.sgp1-runway-name{font-weight:700;overflow-wrap:anywhere}
.sgp1-runway-size{font-size:11px;opacity:.68;margin-top:4px}
.sgp1-usage-text{overflow-wrap:anywhere}
.sgp1-usage-text p:last-child{margin-bottom:0}
@media(max-width:700px){.sgp1-rating-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px 12px}.sgp1-rating{padding:4px 0 12px}.sgp1-rating-item-label{font-size:12px}.sgp1-panel{padding:10px}.sgp1-usage-row{grid-template-columns:minmax(0,78px) minmax(0,1fr);gap:10px}.sgp1-tab{font-size:11px!important;gap:6px}}

/* Rating: five SVG aircraft fit on one line in each of four desktop columns. */
.sgp1-rating-item-score{flex-wrap:nowrap;gap:3px;min-width:0}
.sgp1-rating-plane{display:inline-flex;flex:0 1 21px;min-width:0;max-width:21px;aspect-ratio:1;color:#b5b5b5}
.sgp1-rating-plane.is-filled{color:#303030}
.sgp1-rating-plane svg{display:block;width:100%;height:100%;fill:currentColor}
@media(max-width:700px){.sgp1-rating-plane{flex-basis:21px}}

/* v0.6: heading matches the tab label size, with dark text like the field headings. */
.sgp1-rating-label{background:transparent;color:#393939;font-size:var(--sgp1-tab-font-size);justify-content:flex-start;min-height:0;padding:0;margin:0 0 16px}
.sgp1-rating-heading-icon{font-size:var(--sgp1-tab-font-size)}
/* Filled aircraft are yellow; unrated aircraft are gray outlines. */
.sgp1-rating-plane{color:#999}
.sgp1-rating-plane svg{fill:none;stroke:currentColor;stroke-width:1.6;stroke-linejoin:round}
.sgp1-rating-plane.is-filled{color:var(--sgp1-accent-color)}
.sgp1-rating-plane.is-filled svg{fill:currentColor;stroke:currentColor}

/* v1.0 – outlined rectangular rating panel with divider and field-matched typography. */
.sgp1-widget .sgp1-rating{border:1px solid var(--sgp1-border-color);border-radius:0;padding:15px 16px 17px;margin:0 0 16px;background:transparent;box-shadow:none}
.sgp1-widget .sgp1-rating-label{font-size:var(--sgp1-heading-size);font-weight:700;color:inherit;min-height:0;line-height:1.5;gap:9px;padding:0 0 11px;margin:0 0 15px;border-bottom:1px solid var(--sgp1-border-color);background:none;justify-content:flex-start}
.sgp1-widget .sgp1-rating-heading-icon{font-size:var(--sgp1-heading-size);color:inherit}
.sgp1-widget .sgp1-rating-grid{grid-template-columns:repeat(var(--sgp1-rating-columns,4),minmax(0,1fr));gap:14px}
.sgp1-widget .sgp1-rating-item-label{font-size:var(--sgp1-heading-size);font-weight:700;line-height:1.5;opacity:1;color:inherit;margin-bottom:7px}
.sgp1-widget .sgp1-rating-item-score{gap:3px;flex-wrap:nowrap}
.sgp1-widget .sgp1-rating-plane{flex:0 1 23px;max-width:23px;min-width:0;aspect-ratio:1;color:#999}
.sgp1-widget .sgp1-rating-plane.is-filled{color:var(--sgp1-accent-color)}
@media(max-width:700px){.sgp1-widget .sgp1-rating{padding:12px}.sgp1-widget .sgp1-rating-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px 10px}.sgp1-widget .sgp1-rating-plane{flex-basis:21px;max-width:21px}}

/* v1.0.2: Rating and tabs form one contiguous rectangular component. */
.sgp1-widget .sgp1-rating{margin-bottom:0;border-bottom:0;padding-bottom:17px}
.sgp1-widget .sgp1-tabs{margin-top:0}
/* Remove only the first Runway Usage divider; retain separators between rows. */
.sgp1-widget .sgp1-usage-row.sgp1-usage-first{border-top:0}

/* Airport Links v1.1.3 adds its own third tab. Only adapt the Plane layout. */
.sgp1-widget .sgp1-tabs.sgal-three-tabs{grid-template-columns:repeat(3,minmax(0,1fr))}
@media(max-width:700px){
 .sgp1-widget .sgp1-tabs.sgal-three-tabs .sgp1-tab{gap:4px;padding:9px 4px!important;font-size:10px!important}
 .sgp1-widget .sgp1-tabs.sgal-three-tabs .sgp1-tab svg{width:15px;height:15px}
}

/* Useful Links presentation: Airport Links 1.1.3 supplies the data and tab. */
.sgp1-widget .sgal-link-icon svg{width:20px;height:20px;display:block}
.sgp1-widget .sgp1-external-icon{display:inline-flex;vertical-align:middle;margin-left:9px;color:#888}
.sgp1-widget .sgp1-external-icon svg{width:16px;height:16px}
.sgp1-widget .sgal-link-title a:hover .sgp1-external-icon{color:inherit}

/* v1.0.5: unified icons and full-row Useful Links interactions */
.sgp1-widget .sgal-link{position:relative;align-items:center;gap:14px;padding:14px 42px 14px 12px;transition:background-color .16s ease}
.sgp1-widget .sgal-link:hover,.sgp1-widget .sgal-link:focus-within{background:rgba(229,185,0,.19)}
.sgp1-widget .sgal-link:focus-within{outline:2px solid #e5b900;outline-offset:-2px}
.sgp1-widget .sgal-link-title a{border-bottom:0!important;text-decoration:none!important}
.sgp1-widget .sgal-link-title a::after{content:"";position:absolute;inset:0;z-index:1}
.sgp1-widget .sgal-link-title a:focus{outline:none}
.sgp1-widget .sgal-link-icon{display:flex;align-items:center;justify-content:center;flex:0 0 24px;width:24px}
.sgp1-widget .sgal-link-icon svg{width:20px;height:20px}
.sgp1-widget .sgp1-external-icon{position:absolute;right:14px;top:50%;transform:translateY(-50%);margin:0;color:#888;pointer-events:none}
.sgp1-widget .sgp1-external-icon svg{width:18px;height:18px}
.sgp1-widget .sgal-link:hover .sgp1-external-icon{color:#8c7300}

.sgp1-widget .sgp1-runway-no-usage{color:#888;font-style:italic}

/* v1.0.9: official Lucide SVG icons; keep tabs compact on every screen */
.sgp1-widget .sgp1-lucide-icon{display:block;width:20px;height:20px;flex:none;object-fit:contain;filter:grayscale(1) brightness(.56)}
.sgp1-widget .sgp1-tab .sgp1-lucide-icon{width:16px;height:16px;filter:brightness(0) invert(1)}
.sgp1-widget .sgp1-tabs{grid-template-columns:repeat(2,minmax(0,1fr))}
.sgp1-widget .sgp1-tabs.sgal-three-tabs{grid-template-columns:repeat(3,minmax(0,1fr))}
.sgp1-widget .sgp1-tab{min-width:0;white-space:nowrap;flex-wrap:nowrap}
.sgp1-widget .sgp1-tab span{white-space:nowrap}
@media(max-width:700px){
 .sgp1-widget .sgp1-tabs.sgal-three-tabs{grid-template-columns:repeat(3,minmax(0,1fr));gap:4px}
 .sgp1-widget .sgp1-tabs.sgal-three-tabs .sgp1-tab{gap:4px;padding:8px 2px!important;font-size:clamp(8px,2.45vw,10px)!important;letter-spacing:0;min-height:42px}
 .sgp1-widget .sgp1-tab .sgp1-lucide-icon{width:14px;height:14px}
 .sgp1-widget .sgp1-info-icon .sgp1-lucide-icon{width:20px;height:20px}
}
