/* ════════════════════════════════════════════════
 FUNEBRA / PLABS STYLE SUITE — GLOBAL CSS
 For: _st/my.css
 Last update Nov 2025
 ════════════════════════════════════════════════ */

/* === GENERAL FIXES === */
body {scroll-behavior:smooth;}
img{max-width:100%;height:auto;border:none;}
a{transition:color .2s ease, border-color .2s ease;}
hr{border:none;height:1px;background:#222;margin:12px 0;}

/* === HEADER === */
.funebra-header{position:relative;}
.funebra-header .brand-left{width:380px;}
.funebra-header .padR{padding-right:50px!important;}
.funebra-header .title{font:20pt/1.1 bold Verdana,Tahoma;color:#FBEAB2;}
.funebra-header .sub{font:12pt/1.3 Verdana,Tahoma;color:#9aa3b2;margin-left:6px;}
.funebra-header a{color:rgb(78, 164, 186);text-decoration:none;}
.funebra-header a:hover{color:rgb(78, 164, 186);}

@media(max-width:900px){
 .funebra-header .brand-left{display:none;}
 .funebra-header .padR{padding-right:16px!important;}
 .funebra-header .title{font-size:18pt!important;}
 .funebra-header .sub{display:block;font-size:11pt!important;margin-left:0;}
}
@media(max-width:520px){
 .funebra-header .meta,
 .funebra-header .nav{text-align:left!important;padding-right:16px!important;}
}

/* === NEWS LIST (Appearance of entries) === */
.funebra-list .eBlock{border:0;background:#1f1f1f;color:#eee;margin-bottom:8px;border-radius:6px;overflow:hidden;}
.funebra-list .eTitle a{color:#FBEAB2;text-decoration:none;font-weight:bold;}
.funebra-list .eTitle a:hover{color:#F17C1C;}
.funebra-list .eMessage{
 margin:4px 0 6px;
 color:#d0d0d0;
 display:-webkit-box;
 -webkit-line-clamp:3;
 -webkit-box-orient:vertical;
 overflow:hidden;
}
.funebra-list .read-more{
 display:inline-block;
 padding:3px 8px;
 border:1px solid #444;
 border-radius:6px;
 text-decoration:none;
 color:#FBEAB2;
 font-size:12px;
}
.funebra-list .read-more:hover{border-color:#666;}
.funebra-list .eDetails{font-size:12px;color:#9aa3b2;}

/* === SINGLE POST (Funebra plotter scope) === */
.funebra-scope table{background:#000;color:#fff;border-collapse:collapse;width:100%;}
.funebra-scope input,
.funebra-scope select,
.funebra-scope button{
 font:12px/1.4 system-ui,Segoe UI,Roboto,sans-serif;
 background:#222;
 color:#eee;
 border:1px solid #333;
 border-radius:4px;
 padding:2px 4px;
}
.funebra-scope button:hover{background:#333;}
.funebra-scope canvas{display:block;margin:auto;max-width:100%;}
.funebra-scope #status{
 position:absolute;
 left:8px;bottom:8px;
 font:12px/1.2 system-ui;
 color:#9aa3b2;
}

/* === UTILITIES === */
.text-center{text-align:center;}
.text-right{text-align:right;}
.rounded{border-radius:8px;}
.shadow{box-shadow:0 0 8px rgba(0,0,0,.4);}
/* === FUNEBRA™ HALF-LIFE — SITEWIDE PALETTE === */
:root{
 --fn-hl-bg:#101419;
 --fn-hl-panel:#171e24;
 --fn-hl-panel-deep:#0b1014;
 --fn-hl-line:#35464d;
 --fn-hl-text:#e8edf3;
 --fn-hl-muted:#9aabb5;
 --fn-hl-cyan:#8bd9e8;
 --fn-hl-amber:#f2c06c;
 --fn-hl-orange:#cf772f;
 color-scheme:dark;
}
html{background:var(--fn-hl-bg);scroll-behavior:smooth}
body{background-color:var(--fn-hl-bg)!important;color:var(--fn-hl-text)!important;font-family:Arial,Helvetica,sans-serif}
a{color:var(--fn-hl-cyan)!important;text-decoration-color:#578f9a!important;text-underline-offset:2px}
a:visited{color:#a8b7c9!important}
a:hover,a:focus{color:#ffbd63!important;text-decoration-color:var(--fn-hl-orange)!important}
::selection{background:#bd702e;color:#fff8e8}
h1,h2,h3,h4,h5,h6{color:#f2d28d}
hr{height:1px;border:0;background:linear-gradient(90deg,transparent,#7c572e 18%,#49606a 50%,#7c572e 82%,transparent);margin:18px 0}
input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=file]),select,textarea{
 background:#10171c;color:var(--fn-hl-text);border:1px solid #465a61;border-radius:5px;padding:7px 9px
}
input::placeholder,textarea::placeholder{color:#8c9da5}
input:focus,select:focus,textarea:focus{outline:2px solid #68b7c877;border-color:var(--fn-hl-cyan)}
button,input[type=button],input[type=submit],input[type=reset]{
 background:linear-gradient(180deg,#31383a,#191f22);color:#f3dba4;border:1px solid #80613e;border-radius:5px;padding:6px 11px;cursor:pointer
}
button:hover,input[type=button]:hover,input[type=submit]:hover,input[type=reset]:hover{
 background:linear-gradient(180deg,#453626,#20272a);border-color:#d38a3b;color:#fff0ca
}
:focus-visible{outline:2px solid #8bd9e8;outline-offset:2px}
.funebra-header a{color:var(--fn-hl-cyan)!important}
.funebra-header a:hover{color:#ffbd63!important}
.funebra-list .eBlock{border:1px solid var(--fn-hl-line);background:linear-gradient(145deg,#1c252b,#10161b);color:var(--fn-hl-text)}
.funebra-list .eTitle a{color:#f2d28d!important}
.funebra-list .eTitle a:hover{color:#ffbd63!important}
.funebra-list .eMessage{color:#d1dbe0}
.funebra-list .read-more{border-color:#586a70;background:#121b20;color:var(--fn-hl-cyan)!important}
.funebra-list .read-more:hover{border-color:var(--fn-hl-orange)}
/* === HALF-LIFE PALETTE BRIDGE: CUSTOM FUNEBRA PAGES === */
:root{
 --fe-bg:var(--fn-hl-bg)!important;
 --fe-bg-soft:var(--fn-hl-panel)!important;
 --fe-bg-softer:#20282c!important;
 --fe-accent:var(--fn-hl-cyan)!important;
 --fe-accent-2:var(--fn-hl-amber)!important;
 --fe-text:var(--fn-hl-text)!important;
 --fe-muted:var(--fn-hl-muted)!important;
 --fe-border:var(--fn-hl-line)!important;
 --bg-color:var(--fn-hl-bg)!important;
 --text-color:var(--fn-hl-text)!important;
 --accent-color:var(--fn-hl-amber)!important;
 --secondary-color:var(--fn-hl-panel)!important;
}
html body.fe-body{background:#101419!important;color:#e8edf3!important}
.fe-body #wrapper,.fe-body #container,.fe-body #content,.fe-body #page,.fe-body #middle,.fe-body .cblock-body,.fe-body .content,.fe-body .bodycontent,.fe-body .all,.fe-body .allContent{background:#171e24!important;color:#e8edf3!important}
.fe-body a,.fe-body nav a{color:#8bd9e8!important}
.fe-body a:hover,.fe-body nav a:hover{color:#f2c06c!important;text-shadow:0 0 8px #cf772f66}
.fe-body h1,.fe-body h2,.fe-body h3,.fe-body article h2,.fe-body aside h3{color:#f2c06c!important}
.fe-body strong,.fe-body .fe-logo span{color:#8bd9e8!important}
.fe-body .fe-chip{border-color:#59686c!important;color:#b8c5c9!important;background:#151c20}
.fe-body nav{display:flex;flex-wrap:wrap;gap:8px;padding:12px;border:1px solid #5f503a;border-radius:8px;background:linear-gradient(180deg,#272a29,#15191b);box-shadow:inset 0 1px #ffffff18}
.fe-body nav a{display:inline-block;margin:0!important;padding:7px 11px;border:1px solid #3d4d52;border-radius:4px;background:linear-gradient(180deg,#202a2e,#12181b);font-weight:700!important;text-decoration:none!important}
.fe-body nav a:hover{border-color:#cf772f;background:linear-gradient(180deg,#3a3024,#1b2225)}
.fe-body .fe-card,.fe-body .fe-panel,.fe-body aside,.fe-body .widget{background:linear-gradient(150deg,#1c252a,#11171b)!important;border-color:#35464d!important;color:#e8edf3!important}
.fe-body footer{border-color:#80613e!important;background:#11171b!important;color:#9aabb5!important}

/* === FUNEBRA™ MOBILE LAYOUT PASS === */
@media (max-width:760px){
 html,body{max-width:100%;overflow-x:hidden!important}
 body{font-size:16px;line-height:1.5}
 img,svg,video,iframe,canvas{max-width:100%;height:auto}
 table{max-width:100%}
 .funebra-header{background-size:auto 100%!important}
 .funebra-header .row{height:auto!important;min-height:142px!important}
 .funebra-header .brand-left{display:none!important}
 .funebra-header td{padding:8px 12px!important}
 .funebra-header .brand-title{font-size:clamp(24px,7vw,34px)!important}
 .funebra-header .brand-subtitle{font-size:14px!important}
 .funebra-header .brand-right{font-size:13px!important;text-align:center!important}
 body>table[width="98%"]{width:100%!important;margin:0!important}
 body>table[width="98%"] td{box-sizing:border-box}
 tr:has(.fn-hl-menu)>td:first-child,tr:has(.fn-hl-menu)>td:last-child{display:none!important}
 tr:has(.fn-hl-menu)>td:nth-child(2){display:table-cell!important;width:100%!important;max-width:100vw!important;padding:8px!important}
 .fn-hl-menu{display:none!important}
 .fn-hl-right-sidebar{display:none!important}
 .funebra-list .eBlock{margin:10px 0!important;padding:14px!important;border-radius:12px}
 .funebra-list .eTitle{font-size:20px!important;line-height:1.25}
 .funebra-list .eMessage{font-size:15px!important;line-height:1.6}
 pre,code{white-space:pre-wrap;overflow-wrap:anywhere}
 input,select,textarea{max-width:100%;box-sizing:border-box}
 .fe-body main{grid-template-columns:minmax(0,1fr)!important;padding:14px!important}
 .fe-body nav{gap:6px;padding:8px!important}
 .fe-body nav a{padding:7px 9px!important}
 .fn-search-columns{grid-template-columns:minmax(0,1fr)!important}
}
@media (max-width:420px){
 .funebra-header .row{min-height:124px!important}
 .funebra-header .brand-title{font-size:24px!important}
 .funebra-header .brand-right{font-size:12px!important}
 .funebra-list .eTitle{font-size:18px!important}
}
@media(max-width:600px){body:has(#fnGeometryThemePanel){zoom:.45}}
@media(max-width:480px){body:has(#fnGeometryThemePanel){zoom:.32}}
@media(max-width:390px){body:has(#fnGeometryThemePanel){zoom:.28}}
@media(max-width:760px){.funebra-header .title{font-size:24px!important}.funebra-header .sub{font-size:14px!important}.funebra-header .meta,.funebra-header .nav{padding:8px 10px!important;text-align:center!important}.funebra-header .row>tbody>tr>td{height:auto!important;vertical-align:middle!important}}
@media(max-width:420px){.funebra-header .title{font-size:21px!important}.funebra-header .sub{font-size:12px!important}}
@media(max-width:760px){
tr:has(.fn-hl-menu){display:block!important;width:100%!important}
tr:has(.fn-hl-menu)>td{display:block!important;width:100%!important;max-width:100%!important}
tr:has(.fn-hl-menu)>td:first-child,tr:has(.fn-hl-menu)>td:nth-child(2),tr:has(.fn-hl-menu)>td:last-child{display:block!important;width:100%!important}
.fn-hl-menu{display:block!important;width:100%!important;max-width:100%!important;padding:12px!important;box-sizing:border-box}
.fn-hl-menu ul{display:flex!important;flex-wrap:wrap!important;gap:7px!important;margin:0!important;padding:0!important;list-style:none!important}
.fn-hl-menu li{display:block!important;margin:0!important}
.fn-hl-menu a{display:inline-block!important;padding:8px 10px!important;border:1px solid #526870!important;border-radius:7px!important;background:#121a20!important;color:#69e4f5!important}
}

/* MOBILE REPAIR — compact legacy site banner and keep article content inside the screen */
@media (max-width:760px){
 html,body{width:100%;max-width:100%;overflow-x:hidden!important}
 .funebra-header,.funebra-header table,.funebra-header tbody,.funebra-header tr,.funebra-header td{display:block!important;width:100%!important;max-width:100%!important;height:auto!important;min-height:0!important;box-sizing:border-box!important}
 .funebra-header{background:#101419!important;background-image:none!important}
 .funebra-header .row{height:auto!important;min-height:0!important;background:none!important}
 .funebra-header .brand-left{display:none!important}
 .funebra-header td{padding:6px 14px!important;text-align:left!important;vertical-align:middle!important;background-image:none!important}
 .funebra-header .meta{height:auto!important;padding:5px 14px!important;color:#aeb8c4!important;font-size:12px!important;line-height:1.35!important}
 .funebra-header .title{display:block!important;font-size:clamp(24px,7vw,32px)!important;line-height:1.1!important}
 .funebra-header .sub{display:block!important;margin:3px 0 0!important;font-size:14px!important;line-height:1.3!important}
 .funebra-header .nav{display:flex!important;flex-wrap:wrap!important;justify-content:flex-start!important;gap:8px!important;height:auto!important;padding:8px 14px!important}
 .funebra-header .nav a{display:inline-block!important;padding:6px 9px!important;border:1px solid #35464d!important;border-radius:6px!important;background:#151c20!important;text-decoration:none!important}
 .eMessage{max-width:100%!important;overflow-wrap:anywhere}
 .eMessage .wrap{width:100%!important;max-width:100%!important;padding-left:16px!important;padding-right:16px!important;margin-left:auto!important;margin-right:auto!important}
 .eMessage .hero{padding:40px 0 48px!important}
 .eMessage .hero h1{font-size:clamp(30px,8vw,48px)!important;line-height:1.08!important;overflow-wrap:anywhere}
 .eMessage img,.eMessage video,.eMessage iframe,.eMessage canvas,.eMessage svg{max-width:100%!important;height:auto!important}
 .eMessage pre,.eMessage code{white-space:pre-wrap!important;overflow-wrap:anywhere!important}
 .eMessage table{width:100%!important;max-width:100%!important;table-layout:fixed!important}
 .eMessage th,.eMessage td{overflow-wrap:anywhere!important}
}

@media (max-width:760px){
 .eMessage a.cta,.eMessage a.cta:link,.eMessage a.cta:visited{color:#09231e!important;background:#94e8d0!important;border:1px solid #64d4b9!important;text-decoration:none!important}
 .eMessage a.cta:hover,.eMessage a.cta:focus{color:#071a17!important;background:#b8f2e4!important}
}

/* NEWS SEARCH — centered responsive card */
#news-archive-tools{box-sizing:border-box}
#news-archive-tools table:has(.searchForm){width:min(100%,560px)!important;margin:22px auto!important;box-sizing:border-box!important;border:1px solid var(--fn-hl-line,#35464d)!important;border-radius:16px!important;overflow:hidden!important;background:linear-gradient(145deg,#1c252b,#10161b)!important;box-shadow:0 10px 26px rgba(0,0,0,.24)}
#news-archive-tools table:has(.searchForm)>tbody>tr:first-child>td{height:auto!important;padding:15px 20px!important;background:none!important;border-bottom:1px solid #35464d;color:#f2d28d!important;text-align:center!important;font-size:18px!important;line-height:1.3!important;letter-spacing:.06em}
#news-archive-tools table:has(.searchForm)>tbody>tr:nth-child(2)>td{padding:20px!important}
#news-archive-tools table:has(.searchForm)>tbody>tr:last-child{display:none!important}
#news-archive-tools .searchForm{width:100%!important;max-width:520px!important;margin:0 auto!important;box-sizing:border-box!important}
#news-archive-tools .searchForm form{display:grid!important;grid-template-columns:minmax(0,1fr)!important;gap:12px!important;width:100%!important;margin:0!important}
#news-archive-tools .searchForm .schQuery,#news-archive-tools .searchForm .schBtn{display:block!important;width:100%!important;margin:0!important;text-align:center!important}
#news-archive-tools .searchForm .queryField{display:block!important;width:100%!important;max-width:100%!important;min-width:0!important;min-height:50px!important;box-sizing:border-box!important;border:1px solid #526870!important;border-radius:11px!important;background:#0e161c!important;color:#e8edf3!important;padding:12px 14px!important;font-size:16px!important}
#news-archive-tools .searchForm .searchSbmFl{min-width:128px!important;min-height:46px!important;border:1px solid #647d82!important;border-radius:11px!important;background:#152129!important;color:#8bd9e8!important;padding:9px 22px!important;font-size:16px!important;font-weight:700!important}
#news-archive-tools .searchForm .searchSbmFl:hover,#news-archive-tools .searchForm .searchSbmFl:focus{background:#203239!important;border-color:#8bd9e8!important;color:#f2d28d!important}
@media(max-width:760px){#news-archive-tools{width:100%!important;max-width:100%!important}#news-archive-tools table:has(.searchForm){width:min(100%,560px)!important;margin:18px auto!important}}


/* NEWS ARTICLE — tighter mobile masthead and typography */
@media(max-width:760px){
 .eMessage .topbar{display:flex!important;flex-direction:column!important;align-items:flex-start!important;gap:12px!important;max-width:100%!important}
 .eMessage .topbar .tag{max-width:100%!important;box-sizing:border-box!important;white-space:normal!important}
 .eMessage .hero{padding-top:30px!important;padding-bottom:36px!important}
 .eMessage .hero h1{max-width:100%!important;font-size:clamp(27px,6.5vw,36px)!important;line-height:1.08!important;overflow-wrap:anywhere!important}
 .eMessage .hero .lede{max-width:100%!important;font-size:clamp(16px,3.8vw,18px)!important;line-height:1.5!important;overflow-wrap:anywhere!important}
 .eMessage .facts{display:flex!important;flex-wrap:wrap!important;gap:8px!important;justify-content:flex-start!important;max-width:100%!important}
 .eMessage .facts .fact{max-width:100%!important;white-space:normal!important;box-sizing:border-box!important}
 .eMessage .toc{display:flex!important;flex-wrap:wrap!important;gap:8px!important;max-width:100%!important}
}


/* NEWS ARTICLE — prevent overflow in mobile browsers using desktop-width viewports */
@media(max-width:1100px){
 table.eBlock{width:100%!important;max-width:100%!important;table-layout:fixed!important;box-sizing:border-box!important}
 table.eBlock>tbody>tr>td{max-width:100%!important;box-sizing:border-box!important;overflow-wrap:anywhere!important;word-break:normal!important}
 .eMessage{width:100%!important;max-width:100%!important;min-width:0!important;box-sizing:border-box!important;overflow-wrap:anywhere!important}
 .eMessage *{box-sizing:border-box!important;max-width:100%!important}
 .eMessage .wrap{width:100%!important;max-width:100%!important;min-width:0!important;margin-left:auto!important;margin-right:auto!important;padding-left:clamp(12px,3.5vw,20px)!important;padding-right:clamp(12px,3.5vw,20px)!important}
 .eMessage .topbar{display:flex!important;flex-direction:column!important;align-items:flex-start!important;gap:12px!important;max-width:100%!important;flex-wrap:wrap!important}
 .eMessage .topbar .tag{max-width:100%!important;white-space:normal!important;overflow-wrap:anywhere!important}
 .eMessage .hero{padding-top:30px!important;padding-bottom:36px!important}
 .eMessage .hero h1{max-width:100%!important;font-size:clamp(27px,6.5vw,36px)!important;line-height:1.08!important;overflow-wrap:anywhere!important}
 .eMessage .hero .lede{max-width:100%!important;font-size:clamp(16px,3.8vw,18px)!important;line-height:1.5!important;overflow-wrap:anywhere!important}
 .eMessage .facts,.eMessage .toc{display:flex!important;flex-wrap:wrap!important;gap:8px!important;max-width:100%!important}
 .eMessage .facts .fact{max-width:100%!important;white-space:normal!important;overflow-wrap:anywhere!important}
 .eMessage p,.eMessage li,.eMessage a{overflow-wrap:anywhere!important}
}