/* Requested by Mediavine: the "On this page" contents box was sticky in the sidebar and would overlap sidebar ads. */
.lhq-toc { position: static !important; }

/* Footer: center both lines, and give the About/Privacy/Contact links the site's gold accent color */
.lhq-footer .lhq-foot{justify-content:center;text-align:center}
.lhq-footer .lhq-foot a{color:var(--wp--preset--color--gold)}
.lhq-footer .lhq-foot a:hover{color:var(--wp--preset--color--gold-hi)}
/* Header search button: drop the icon and Ctrl K badge, show plain "Search" text, fade the background out and give it a gold border like the Discord button -- but keep the text the normal menu white, not gold */
.lhq-search-btn{background:none;border-color:var(--wp--preset--color--gold);color:var(--wp--preset--color--text)}
.lhq-search-btn span[aria-hidden]{display:none}
.lhq-search-btn kbd{display:none}
.lhq-search-btn::after{content:"Search"}

/* Build pages: Tracery tables (type name in the header, aligned Rarity column, tight spacing) */
.wp-block-table.lhq-tracery{margin:0 0 10px !important}
.wp-block-table.lhq-tracery table{table-layout:fixed;width:100%}
.wp-block-table.lhq-tracery th:last-child,.wp-block-table.lhq-tracery td:last-child{width:130px}
.wp-block-table.lhq-tracery thead th:first-child{color:var(--wp--preset--color--gold)}
.wp-block-table.lhq-tracery thead{border-bottom:0}
.wp-block-table.lhq-tracery thead th{border:1px solid var(--wp--preset--color--gold)}
@media (max-width:600px){.wp-block-table.lhq-tracery th:last-child,.wp-block-table.lhq-tracery td:last-child{width:100px}}

/* Visual blocks (block-editor test): icon rows, tracery rows, built-in Tabs / Accordion / Star rating */
.lhq-iconrow.wp-block-group{gap:14px;margin:0 0 .6rem}
.lhq-icon.wp-block-group{gap:14px}
.lhq-icon .wp-block-image{margin:0}
.lhq-content .lhq-icon .wp-block-image{flex:0 0 64px;width:64px;height:64px}
.lhq-content .lhq-icon .wp-block-image img{box-sizing:border-box;width:64px!important;height:64px!important;max-width:none!important}
.lhq-icon.wp-block-group{flex-shrink:0}
.lhq-icon .lhq-icon-label{margin:0;font-family:var(--wp--preset--font-family--serif);font-size:1.15rem;font-weight:700;color:var(--wp--preset--color--gold-hi)}
.lhq-content .wp-block-tab-list{display:flex;flex-wrap:wrap;gap:6px;border:0;border-bottom:1px solid var(--wp--preset--color--line);padding:0 0 10px;margin:0 0 14px}
.lhq-content .wp-block-tab-list [role=tab]{background:var(--wp--preset--color--surface);border:1px solid var(--wp--preset--color--line);color:var(--wp--preset--color--muted);border-radius:8px;padding:7px 14px;margin:0;cursor:pointer;font:inherit;font-size:.9rem;box-shadow:none;text-decoration:none}
.lhq-content .wp-block-tab-list [role=tab]:hover{border-color:var(--wp--preset--color--gold);color:var(--wp--preset--color--text)}
.lhq-content .wp-block-tab-list [role=tab][aria-selected=true]{background:linear-gradient(#e2b558,#c4922f);border-color:#e2b558;color:#1a1409;font-weight:700}
.lhq-content .wp-block-tab-list [role=tab]::after,.lhq-content .wp-block-tab-list [role=tab]::before{display:none}
.lhq-trac.wp-block-group{border:1px solid var(--wp--preset--color--line);margin:0 0 10px!important;font-size:13px;font-weight:700;text-transform:uppercase;letter-spacing:.05em;line-height:1.65}
.lhq-trac>*{margin:0!important}
.lhq-trac-row.wp-block-group,.lhq-trac-head.wp-block-group{gap:0;align-items:stretch;border:1px solid var(--wp--preset--color--text);border-top-width:0}
.lhq-trac-head.wp-block-group{background:#182329;border:1px solid var(--wp--preset--color--gold);color:var(--wp--preset--color--gold)}
.lhq-trac p{margin:0;padding:6.5px}
.lhq-trac .lhq-trac-name{flex:1 1 auto;display:flex;align-items:center}
.lhq-trac .lhq-trac-rarity{flex:0 0 130px;border-left:1px solid var(--wp--preset--color--text);display:flex;align-items:center}
.lhq-trac-head .lhq-trac-rarity{border-left-color:var(--wp--preset--color--gold);color:var(--wp--preset--color--text)}
.lhq-trac .lhq-trac-icon{margin:0;padding:6.5px 0 6.5px 6.5px;flex:0 0 auto;display:flex;align-items:center}
.lhq-trac .lhq-trac-icon img{width:28px;height:28px;border-radius:5px}
.lhq-content .lhq-trac .lhq-trac-icon{flex:0 0 auto;width:auto}
.lhq-content .lhq-trac .lhq-trac-icon img{box-sizing:border-box;width:28px!important;height:28px!important;max-width:none!important;border-radius:5px}
.lhq-content .wp-block-accordion-item{border:1px solid var(--wp--preset--color--line);border-radius:10px;background:var(--wp--preset--color--surface);padding:0 16px;margin:10px 0}
.lhq-content .wp-block-accordion-item.is-open{border-color:#3a4a52}
.lhq-content .wp-block-accordion-heading{margin:0;font-size:inherit;font-family:inherit;line-height:inherit}
.lhq-content .wp-block-accordion-heading__toggle{font-family:inherit;font-size:1rem;font-weight:600;color:var(--wp--preset--color--gold-hi);padding:14px 0;background:none;border:0}
.lhq-content .wp-block-accordion-heading__toggle-icon{color:var(--wp--preset--color--gold)}
.lhq-content .wp-block-accordion-panel{padding:0 0 14px}
.lhq-content .wp-block-jetpack-rating-star{margin:.2rem 0 .8rem}
@media (max-width:600px){.lhq-trac .lhq-trac-rarity{flex-basis:100px}}

/* Last updated: sits on the class icon row, right-aligned */
.lhq-iconrow > .lhq-updated{margin:0 0 0 auto !important;align-self:center;white-space:nowrap}
@media (max-width:600px){.lhq-iconrow > .lhq-updated{margin-left:0 !important;flex-basis:100%}}
/* LotroHQ Rating block label */
.lhq-rating-label{min-width:70px;color:var(--wp--preset--color--muted);font-size:.92rem}
/* Homepage: tighter spacing */
.home .lhq-hero{padding-top:112px !important;padding-bottom:40px !important;min-height:0 !important}
.home .lhq-hero-inner{padding-top:0 !important}
.home .lhq-hero-inner > * + *{margin-top:16px !important}
.home main > .lhq-sec{margin-top:8px !important;padding-top:20px !important;padding-bottom:20px !important}
.home .lhq-sec > * + *{margin-top:14px !important}

/* Long icon labels (e.g. racial skills) wrap instead of overflowing */
.lhq-content .lhq-icon.wp-block-group{min-width:0;max-width:100%}
.lhq-content .lhq-icon .lhq-icon-label{min-width:0;flex:0 1 auto;overflow-wrap:anywhere}

/* Official news archive switched off (Oct 3): hide the link to it on LHQ News */
.lhq-official-more{display:none}

/* Homepage: Featured Guides as editable blocks (Oct 3) */
.lhq-gcards.wp-block-group > *{margin:0 !important}
.lhq-gcard.wp-block-group{position:relative}
.lhq-gcard.wp-block-group > *{margin:0 !important}
.lhq-gcard.wp-block-group:hover{border-color:var(--wp--preset--color--gold)}
.lhq-gcard figure.th{margin:0;height:130px;overflow:hidden;position:relative;background:linear-gradient(135deg,#27414a,#111b20)}
.lhq-gcard figure.th a{display:block;height:100%}
.lhq-gcard figure.th img{width:100%;height:100%;object-fit:cover;display:block}
.lhq-gcard figure.th::after{content:"";position:absolute;inset:0;background:linear-gradient(180deg,rgba(10,16,19,0) 45%,rgba(10,16,19,.55));pointer-events:none}
.lhq-gcard .b.wp-block-group > *{margin:0}
.lhq-gcard .b h3{margin:2px 0 4px}
.lhq-gcard .b h3 a{color:inherit;text-decoration:none}
.lhq-gcard .b h3 a::after{content:"";position:absolute;inset:0;z-index:1}
/* Homepage: Featured Videos = pinned video + automatic ones */
.lhq-vrow{display:grid;grid-template-columns:1fr 3fr;gap:16px}
.lhq-vrow > *{margin:0 !important}
.lhq-vrow .lhq-videos{grid-template-columns:repeat(3,1fr)}
.lhq-pinned-video > *{margin:0 !important}
.lhq-pinned-video .lhq-badge{pointer-events:none;left:auto;right:10px}
.lhq-pinned-video .wp-block-embed iframe{display:block;width:100%;border:0}
.lhq-pinned-cap{padding:12px 14px 0;font-size:.95rem;line-height:1.35}
.lhq-pinned-meta{padding:4px 14px 14px;font-size:12.5px;opacity:.7}
@media(max-width:1000px){.lhq-vrow{grid-template-columns:1fr}.lhq-vrow .lhq-videos{grid-template-columns:repeat(2,1fr)}}
@media(max-width:560px){.lhq-vrow .lhq-videos{grid-template-columns:1fr}}



/* Menu panel headings in title case: Choose Your Class, Leveling Guides */
.lhq-mega-in h4{text-transform:capitalize}
/* Build pages: no big colour title (Red/Blue/Yellow) above the class bar; kept for search engines and screen readers */
body.sec-classes:has(.lhq-switch .lhq-tab.act) h1.wp-block-post-title{position:absolute !important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}

/* Fonts the theme does not print by itself (Oct 3): Cinzel Decorative for the homepage title lines; menu weight and size */
@font-face{font-family:"Cinzel Decorative";font-style:normal;font-weight:700;font-display:swap;src:url(/wp-content/uploads/fonts/cinzel-decorative-700-latin.woff2) format("woff2");unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD}
@font-face{font-family:"Cinzel Decorative";font-style:normal;font-weight:700;font-display:swap;src:url(/wp-content/uploads/fonts/cinzel-decorative-700-latin-ext.woff2) format("woff2");unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF}
.lhq-nav > a,.lhq-nav .lhq-nav-btn{font-weight:700 !important;letter-spacing:1px !important;font-size:15px !important}
#lhq-sheetbody .lhq-plain,#lhq-sheetbody .lhq-acc > button,.lhq-quick{font-weight:700 !important;letter-spacing:1px !important}
