/* Barrett Telemetry editorial magazine layout */
:root{
	--bt-base:#0E1217;
	--bt-surface:#181F2A;
	--bt-elevated:#222B3A;
	--bt-line:#2A3447;
	--bt-ink:#F0F3F8;
	--bt-muted:#94A3B8;
	--bt-brand:#FF5722;
	--bt-eft:#4E6548;
	--bt-destiny:#3B82F6;
	--bt-wow:#D97706;
	--bt-warzone:#DC2626;
}
body{background:var(--bt-base);}
.ed-wrap{max-width:1320px;margin:0 auto;padding-left:20px;padding-right:20px;box-sizing:border-box;}
.ed-hero{padding:32px 0;gap:24px;}
.ed-hero.wp-block-columns{flex-wrap:wrap !important;}
.ed-hero-main,.ed-hero-side{min-width:0;min-height:0;}
@media(max-width:959px){
	.ed-hero.wp-block-columns{flex-direction:column !important;}
	.ed-hero-main,.ed-hero-side{flex-basis:100% !important;}
}
@media(min-width:960px){
	.ed-hero{flex-wrap:nowrap !important;align-items:start;}
}
.ed-badge{
	display:inline-block;
	font-size:.75rem;font-weight:700;letter-spacing:.1em;text-transform:uppercase;
	color:var(--bt-brand);
	background:rgba(255,87,34,.1);
	border:1px solid rgba(255,87,34,.35);
	border-radius:999px;
	padding:.35rem .8rem;
}
.ed-hero h1,.ed-h1{
	font-weight:800;letter-spacing:-.02em;line-height:1.08;
	font-size:clamp(2rem,1.2rem + 3vw,3rem);
	color:var(--bt-ink);margin:.8rem 0;max-width:100%;
	overflow-wrap:break-word;word-break:normal;
}
.ed-lede{font-size:1.05rem;line-height:1.6;color:var(--bt-muted);max-width:62ch;}
.ed-author{display:flex;align-items:center;gap:.7rem;margin-top:1rem;}
.ed-avatar{
	width:40px;height:40px;border-radius:50%;
	background:linear-gradient(135deg,var(--bt-brand),var(--bt-wow));
	display:flex;align-items:center;justify-content:center;
	font-weight:800;color:#fff;flex:none;
}
.ed-author small{color:var(--bt-muted);font-size:.85rem;}
.ed-author strong{color:var(--bt-ink);}
/* Tool card */
.ed-tool{
	background:var(--bt-surface);
	border:1px solid var(--bt-line);
	border-radius:12px;
	padding:20px;
	box-shadow:0 12px 32px rgba(0,0,0,.35);
	min-width:0;width:100%;box-sizing:border-box;
}
@media(min-width:960px){
	.ed-tool{position:sticky;top:76px;}
}
.ed-tool h2{font-size:1.15rem;margin:0 0 .25rem;}
.ed-tool p.ed-sub{font-size:.88rem;color:var(--bt-muted);margin:0 0 1rem;}
.bt-sens-grid{display:grid;gap:.7rem;grid-template-columns:1fr;}
.bt-field{display:grid;gap:.3rem;font-size:.72rem;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:var(--bt-muted);}
.bt-field-full{grid-column:1/-1;}
.bt-sens select,.bt-sens input[type=number],.bt-uplink select,.bt-uplink input,.bt-uplink textarea{
	font-size:.92rem;color:var(--bt-ink);
	background:var(--bt-base);
	border:1px solid var(--bt-line);
	border-radius:8px;
	padding:.6rem .7rem;width:100%;box-sizing:border-box;
}
.bt-sens input[type=range]{width:100%;accent-color:var(--bt-brand);}
.bt-sens select:focus,.bt-sens input:focus,.bt-uplink input:focus,.bt-uplink select:focus,.bt-uplink textarea:focus{
	outline:2px solid var(--bt-brand);outline-offset:1px;border-color:var(--bt-brand);
}
.bt-num{font-family:"JetBrains Mono",ui-monospace,Consolas,monospace;}
.bt-seg-row{display:flex;align-items:center;gap:.5rem;margin-top:.7rem;flex-wrap:wrap;}
.bt-seg-label{font-size:.72rem;font-weight:700;color:var(--bt-muted);}
.bt-seg{
	font-size:.78rem;font-weight:700;
	background:transparent;border:1px solid var(--bt-line);color:var(--bt-ink);
	border-radius:999px;padding:.3rem .75rem;cursor:pointer;
}
.bt-seg:hover,.bt-seg.is-live{background:var(--bt-elevated);border-color:var(--bt-brand);color:#fff;}
.bt-sens-out{margin-top:1rem;display:grid;gap:.55rem;border-top:1px solid var(--bt-line);padding-top:1rem;}
.bt-out-main{display:flex;align-items:baseline;justify-content:space-between;gap:1rem;}
.bt-out-main span{font-size:.72rem;font-weight:700;letter-spacing:.06em;color:var(--bt-muted);}
.bt-out-main strong{font-family:"JetBrains Mono",ui-monospace,monospace;font-size:1.5rem;color:var(--bt-ink);}
.bt-out-sub{display:flex;align-items:center;justify-content:space-between;font-size:.88rem;}
.bt-out-sub span{color:var(--bt-muted);font-size:.75rem;font-weight:700;}
.bt-out-sub code{font-family:"JetBrains Mono",ui-monospace,monospace;color:var(--bt-ink);background:transparent;border:0;}
.bt-out-actions{display:flex;align-items:center;gap:.7rem;flex-wrap:wrap;}
.bt-btn{
	font-size:.85rem;font-weight:700;
	background:var(--bt-brand);color:#fff;border:0;border-radius:8px;
	padding:.6rem 1rem;cursor:pointer;
}
.bt-btn:hover{background:var(--bt-elevated);}
.bt-btn-ghost{background:transparent;border:1px solid var(--bt-line);color:var(--bt-ink);}
.bt-copied{font-size:.78rem;color:var(--bt-muted);}
.bt-sens-note,.bt-note-inline{font-size:.75rem;color:var(--bt-muted);}
/* Filter pills */
.ed-pills{display:flex;gap:.5rem;flex-wrap:wrap;padding:.6rem 0;}
.ed-pill{
	font-size:.8rem;font-weight:700;
	border:1px solid var(--bt-line);border-radius:999px;
	padding:.35rem .8rem;color:var(--bt-muted);background:var(--bt-surface);
	text-decoration:none;
}
.ed-pill:hover{color:#fff;border-color:var(--bt-brand);}
/* Magazine grid */
.ed-section-head{display:flex;align-items:baseline;justify-content:space-between;gap:1rem;margin:8px 0 16px;}
.ed-section-head h2{margin:0;}
.ed-grid{display:grid;gap:18px;align-items:stretch;}
.ed-grid > *{min-width:0;}
@media(min-width:760px){.ed-grid{grid-template-columns:repeat(2,1fr);}}
@media(min-width:1080px){.ed-grid{grid-template-columns:repeat(3,1fr);}}
.ed-card{
	background:var(--bt-surface);
	border:1px solid var(--bt-line);
	border-radius:12px;overflow:hidden;
	transition:transform .15s ease,border-color .15s ease,background .15s ease;
	display:flex;flex-direction:column;
	height:100%;box-sizing:border-box;
}
.ed-card:hover{background:var(--bt-elevated);border-color:#3A4763;transform:translateY(-2px);}
.ed-thumb{aspect-ratio:16/9;background:linear-gradient(135deg,#232E42,#141B27);overflow:hidden;}
.ed-thumb img{width:100%;height:100%;object-fit:cover;display:block;}
.ed-body{padding:16px;display:flex;flex-direction:column;gap:.55rem;flex:1;text-align:left;}
.ed-body .wp-block-post-terms{text-align:left;margin:0;}
.ed-body .wp-block-post-terms a{
	display:inline-block;text-decoration:none;
	font-size:.7rem;font-weight:800;letter-spacing:.06em;text-transform:uppercase;
	color:#fff;background:#33415C;border-radius:999px;padding:.25rem .6rem;
}
.ed-tag{
	align-self:flex-start;
	font-size:.7rem;font-weight:800;letter-spacing:.06em;text-transform:uppercase;
	color:#fff;border-radius:999px;padding:.25rem .6rem;
}
.ed-tag-eft{background:var(--bt-eft);}
.ed-tag-destiny{background:var(--bt-destiny);}
.ed-tag-wow{background:var(--bt-wow);}
.ed-tag-warzone{background:var(--bt-warzone);}
.ed-tag-default{background:#33415C;}
.ed-card h3{margin:0;font-size:1.05rem;line-height:1.35;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden;min-height:calc(1.05rem * 1.35 * 3);}
.ed-card h3 a{color:var(--bt-ink);text-decoration:none;}
.ed-card h3 a:hover{color:var(--bt-brand);}
.ed-excerpt{font-size:.9rem;line-height:1.5;color:var(--bt-muted);display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;margin:0;min-height:calc(.9rem * 1.5 * 2);}
.ed-meta{display:flex;align-items:center;gap:.6rem;flex-wrap:wrap;font-size:.78rem;color:var(--bt-muted);margin-top:auto;padding-top:.5rem;border-top:1px solid var(--bt-line);}
.ed-meta a{color:var(--bt-brand);font-weight:700;}
.ed-meta .wp-block-read-more{color:var(--bt-brand);font-weight:700;font-size:.78rem;}
/* Stat + banner */
.ed-stats{display:grid;gap:14px;margin:18px 0;}
@media(min-width:760px){.ed-stats{grid-template-columns:repeat(3,1fr);}}
.ed-stat{background:var(--bt-surface);border:1px solid var(--bt-line);border-radius:12px;padding:18px;}
.ed-stat strong{font-family:"JetBrains Mono",ui-monospace,monospace;font-size:1.6rem;color:var(--bt-ink);display:block;}
.ed-stat span{font-size:.75rem;font-weight:700;letter-spacing:.06em;color:var(--bt-muted);}
.ed-banner{
	background:linear-gradient(180deg,var(--bt-surface),#151C28);
	border:1px solid var(--bt-line);border-radius:14px;
	padding:24px;display:grid;gap:16px;margin:24px 0;
}
@media(min-width:960px){.ed-banner{grid-template-columns:1.4fr 1fr;align-items:center;}}
.ed-badge-row{display:flex;gap:.5rem;flex-wrap:wrap;}
.ed-mini-badge{font-size:.72rem;font-weight:700;border:1px solid var(--bt-line);border-radius:999px;padding:.3rem .7rem;color:var(--bt-muted);}
/* Header */
.ed-topbar{position:sticky;top:0;z-index:50;background:rgba(14,18,23,.92);backdrop-filter:blur(10px);border-bottom:1px solid var(--bt-line);}
.ed-nav{max-width:1320px;margin:0 auto;padding:.7rem 20px;display:flex;align-items:center;gap:1rem;}
.ed-brand{display:flex;align-items:center;gap:.6rem;font-weight:800;color:var(--bt-ink);text-decoration:none;margin-right:auto;}
.ed-mark{width:30px;height:30px;border-radius:8px;background:var(--bt-brand);display:flex;align-items:center;justify-content:center;color:#fff;font-weight:800;}
/* Forms */
.bt-uplink{display:grid;gap:.8rem;margin:1rem 0 2rem;background:var(--bt-surface);border:1px solid var(--bt-line);border-radius:12px;padding:18px;}
/* Legacy compat: map old bt classes to new surfaces */
.bt-hero,.bt-hub,.bt-feed,.bt-callout,.bt-sens-wrap,.bt-card,.bt-stat,.bt-post-card{
	background:transparent;
}
@media(prefers-reduced-motion:reduce){*{transition:none !important;animation:none !important;}}
