/* Psychology for Everyone – reading website */
:root {
	--bg: #fbf3ea; --surface: #fff; --surface2: #f6e6d6; --text: #2b2523; --muted: #6b5a52;
	--primary: #1c2546; --primary-ink: #fff; --accent: #b0702f; --border: #ead6c2;
	--header: linear-gradient(90deg, #1c2546, #2c3a68); --header-ink: #fdf3e7; --nav: #f3dcc4; --nav-ink: #1c2546;
	--font-head: 'Lora', Georgia, serif; --font-body: 'Lora', Georgia, serif; --font-ui: 'Poppins', system-ui, sans-serif;
	--font-sa: 'Tiro Devanagari Sanskrit', 'Noto Serif Devanagari', serif;
	--radius: 14px; --shadow: 0 1px 2px rgba(0,0,0,.05), 0 8px 24px rgba(0,0,0,.06);
	--pattern: none; --hero-img: none; --reader-size: 18px;
}
html { scroll-behavior: smooth; }
body.pfe-body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--font-body); -webkit-font-smoothing: antialiased; }
#pfe-app, #pfe-app * { box-sizing: border-box; }
#pfe-app { min-height: 100vh; background: var(--bg); background-image: var(--pattern); background-attachment: fixed; color: var(--text); font-family: var(--font-body); font-size: 16px; line-height: 1.6; }
#pfe-app a { color: var(--primary); }
#pfe-app[data-dark="1"] a { color: var(--primary); }
#pfe-app button { font-family: var(--font-ui); }
#pfe-app img { max-width: 100%; height: auto; }
.pfe-sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* boot */
.pfe-boot { position: fixed; inset: 0; z-index: 99; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; background: #fbf3ea; color: #1c2546; font-family: 'Poppins', sans-serif; letter-spacing: .2em; text-transform: uppercase; font-size: 12px; animation: pfe-boot-hide 0s 8s forwards; }
.pfe-boot-mark { width: 54px; height: 54px; border-radius: 50%; border: 3px solid #e7cfb5; border-top-color: #b0702f; animation: pfe-spin 1s linear infinite; }
@keyframes pfe-spin { to { transform: rotate(360deg); } }
@keyframes pfe-boot-hide { to { opacity: 0; visibility: hidden; } }
.pfe-seo-wrap { max-width: 860px; margin: 40px auto; padding: 0 20px; }

/* ---------- header ---------- */
.pfe-header { background: var(--header); color: var(--header-ink); position: relative; z-index: 30; }
.pfe-header-in { display: flex; align-items: center; gap: 18px; padding: 10px clamp(12px, 2.4vw, 28px); max-width: 1680px; margin: 0 auto; }
.pfe-brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: inherit !important; min-width: 0; }
.pfe-logo { width: 54px; height: 54px; flex: 0 0 auto; border-radius: 50%; background: rgba(255,255,255,.12); display: grid; place-items: center; box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.35); overflow: hidden; }
.pfe-logo img { width: 100%; height: 100%; object-fit: cover; }
.pfe-logo svg { width: 38px; height: 38px; }
.pfe-brand-lines { display: flex; flex-direction: column; line-height: 1.15; min-width: 0; }
.pfe-brand-lines b { font-family: var(--font-head); font-size: clamp(17px, 2vw, 23px); font-weight: 700; letter-spacing: .01em; white-space: nowrap; }
.pfe-brand-lines span { font-family: var(--font-ui); font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; opacity: .9; white-space: nowrap; }
.pfe-brand-lines i { font-family: var(--font-head); font-size: 13.5px; opacity: .9; white-space: nowrap; }
.pfe-header-tools { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.pfe-iconbtn { appearance: none; border: 0; background: rgba(255,255,255,.12); color: inherit; width: 40px; height: 40px; border-radius: 50%; display: inline-grid; place-items: center; cursor: pointer; transition: background .2s, transform .2s; }
.pfe-iconbtn:hover { background: rgba(255,255,255,.22); transform: translateY(-1px); }
.pfe-iconbtn svg { width: 20px; height: 20px; }
.pfe-account-btn { appearance: none; border: 1.5px solid rgba(255,255,255,.45); background: rgba(255,255,255,.08); color: inherit; border-radius: 999px; padding: 6px 14px 6px 6px; display: inline-flex; align-items: center; gap: 8px; cursor: pointer; font-family: var(--font-ui); font-size: 13.5px; font-weight: 600; }
.pfe-account-btn img, .pfe-account-btn .pfe-av { width: 30px; height: 30px; border-radius: 50%; background: rgba(255,255,255,.25); display: grid; place-items: center; }
.pfe-account-btn:hover { background: rgba(255,255,255,.18); }
.pfe-burger { display: none; }

/* ---------- menu bar ---------- */
.pfe-menubar { background: var(--nav); color: var(--nav-ink); position: sticky; top: 0; z-index: 25; box-shadow: 0 2px 10px rgba(0,0,0,.06); }
.pfe-menubar-in { max-width: 1680px; margin: 0 auto; padding: 0 clamp(8px, 2vw, 24px); display: flex; align-items: stretch; gap: 2px; }
.pfe-menu { display: flex; flex-wrap: wrap; list-style: none; margin: 0; padding: 0; gap: 2px; }
.pfe-menu > li { position: relative; }
.pfe-menu > li > a, .pfe-menu > li > button { display: flex; align-items: center; gap: 5px; height: 46px; padding: 0 12px; color: var(--nav-ink) !important; text-decoration: none; font-family: var(--font-ui); font-size: 14px; font-weight: 600; background: none; border: 0; cursor: pointer; border-bottom: 3px solid transparent; white-space: nowrap; }
.pfe-menu > li > a:hover, .pfe-menu > li > button:hover, .pfe-menu > li.open > button { background: rgba(0,0,0,.05); }
.pfe-menu > li.active > a, .pfe-menu > li.active > button { border-bottom-color: var(--accent); }
.pfe-menu .pfe-caret { width: 10px; height: 10px; opacity: .7; transition: transform .2s; }
.pfe-menu > li.open .pfe-caret { transform: rotate(180deg); }
.pfe-drop { position: absolute; top: 100%; left: 0; min-width: 250px; background: var(--surface); color: var(--text); border: 1px solid var(--border); border-radius: 0 0 var(--radius) var(--radius); box-shadow: 0 18px 40px rgba(0,0,0,.14); padding: 8px; display: none; z-index: 40; max-height: 72vh; overflow: auto; }
.pfe-menu > li.open > .pfe-drop { display: block; animation: pfe-drop .18s ease-out; }
@keyframes pfe-drop { from { opacity: 0; transform: translateY(-6px); } }
.pfe-drop a { display: block; padding: 8px 12px; border-radius: 8px; color: var(--text) !important; text-decoration: none; font-family: var(--font-ui); font-size: 13.5px; }
.pfe-drop a:hover { background: var(--surface2); }
.pfe-drop a small { display: block; color: var(--muted); font-size: 12px; }
.pfe-drop h6 { margin: 8px 12px 4px; font-family: var(--font-ui); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
.pfe-drop.mega { width: min(940px, 92vw); display: none; grid-template-columns: repeat(3, 1fr); gap: 4px 10px; }
.pfe-menu > li.open > .pfe-drop.mega { display: grid; }
.pfe-menu > li.right-drop > .pfe-drop { left: auto; right: 0; }

/* social bar */
.pfe-socialbar { max-width: 1680px; margin: 0 auto; padding: 8px clamp(12px, 2.4vw, 28px); display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.pfe-social { display: flex; gap: 8px; flex-wrap: wrap; }
.pfe-social a { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--surface); border: 1px solid var(--border); color: var(--primary) !important; transition: transform .2s, background .2s; }
.pfe-social a:hover { transform: translateY(-2px) scale(1.06); background: var(--primary); color: var(--primary-ink) !important; }
.pfe-social svg { width: 16px; height: 16px; }
.pfe-crumbs { margin-left: auto; font-family: var(--font-ui); font-size: 12.5px; color: var(--muted); display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.pfe-crumbs a { color: var(--muted) !important; text-decoration: none; }
.pfe-crumbs a:hover { color: var(--primary) !important; }
.pfe-tagline-chip { font-family: var(--font-head); font-style: italic; font-size: 13.5px; color: var(--accent); }

/* ---------- layout ---------- */
.pfe-shell { max-width: 1680px; margin: 0 auto; padding: 0 clamp(10px, 2vw, 24px) 30px; display: grid; grid-template-columns: 270px minmax(0, 1fr) 270px; gap: 22px; align-items: start; }
.pfe-nav { position: sticky; top: 58px; max-height: calc(100vh - 70px); overflow: auto; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); padding: 12px 10px; scrollbar-width: thin; }
.pfe-main { min-width: 0; }
.pfe-aside { display: flex; flex-direction: column; gap: 16px; position: sticky; top: 58px; max-height: calc(100vh - 70px); overflow: auto; scrollbar-width: thin; padding-bottom: 6px; }
.pfe-nav h4 { margin: 10px 8px 6px; font-family: var(--font-ui); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
.pfe-nav ul { list-style: none; margin: 0; padding: 0; }
.pfe-nav li a { display: flex; gap: 8px; align-items: flex-start; padding: 7px 10px; border-radius: 9px; text-decoration: none; color: var(--text) !important; font-family: var(--font-ui); font-size: 13.4px; line-height: 1.35; }
.pfe-nav li a:hover { background: var(--surface2); }
.pfe-nav li a.on { background: var(--primary); color: var(--primary-ink) !important; }
.pfe-nav li a .n { flex: 0 0 auto; min-width: 22px; height: 22px; border-radius: 6px; background: var(--surface2); color: var(--primary); display: grid; place-items: center; font-size: 11px; font-weight: 700; }
.pfe-nav li a.on .n { background: rgba(255,255,255,.2); color: inherit; }
.pfe-nav li a .done { margin-left: auto; color: #2f9e57; font-size: 13px; }
.pfe-nav li a.on .done { color: inherit; }
.pfe-nav li.sub a { padding-left: 34px; font-size: 12.8px; color: var(--muted) !important; }
.pfe-nav li.sub a.spy { color: var(--primary) !important; font-weight: 600; }
.pfe-nav .pfe-nav-sep { height: 1px; background: var(--border); margin: 10px 6px; }
.pfe-nav .pfe-nav-close { display: none; }

/* cards */
.pfe-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px; }
.pfe-card h3 { margin: 0 0 8px; font-family: var(--font-head); font-size: 19px; color: var(--primary); }
.pfe-card p { margin: 0 0 10px; }
.pfe-page { background: var(--surface); border: 1px solid var(--border); border-radius: calc(var(--radius) + 4px); box-shadow: var(--shadow); padding: clamp(18px, 3.4vw, 46px); animation: pfe-in .35s ease-out; }
@keyframes pfe-in { from { opacity: 0; transform: translateY(8px); } }
.pfe-page h1 { font-family: var(--font-head); color: var(--primary); font-size: clamp(28px, 3.6vw, 42px); line-height: 1.15; margin: 0 0 10px; }
.pfe-kicker { font-family: var(--font-ui); font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--accent); font-weight: 600; margin-bottom: 6px; }
.pfe-lead { font-size: 18px; color: var(--muted); font-style: italic; margin: 0 0 18px; }
.pfe-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.pfe-grid.wide { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.pfe-tile { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; text-decoration: none; color: var(--text) !important; transition: transform .25s, box-shadow .25s; box-shadow: var(--shadow); }
.pfe-tile:hover { transform: translateY(-4px); box-shadow: 0 16px 34px rgba(0,0,0,.12); }
.pfe-tile .pfe-tile-img { aspect-ratio: 2/3; background-size: cover; background-position: center; }
.pfe-tile .pfe-tile-img.wide { aspect-ratio: 16/9; }
.pfe-tile .pfe-tile-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.pfe-tile .pfe-tile-body b { font-family: var(--font-head); font-size: 17px; color: var(--primary); line-height: 1.3; }
.pfe-tile .pfe-tile-body span { font-size: 14px; color: var(--muted); }
.pfe-tile .pfe-tile-meta { margin-top: auto; display: flex; gap: 8px; flex-wrap: wrap; font-family: var(--font-ui); font-size: 12px; color: var(--muted); }
.pfe-pill { display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px; border-radius: 999px; background: var(--surface2); color: var(--primary); font-family: var(--font-ui); font-size: 12px; font-weight: 600; text-decoration: none; border: 0; }
.pfe-pill.ok { background: #e3f5e9; color: #1d7a43; }
.pfe-btn { appearance: none; display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 999px; padding: 11px 20px; background: var(--primary); color: var(--primary-ink) !important; font-family: var(--font-ui); font-weight: 600; font-size: 14.5px; text-decoration: none; cursor: pointer; transition: transform .15s, box-shadow .2s, filter .2s; box-shadow: 0 6px 16px rgba(0,0,0,.12); }
.pfe-btn:hover { transform: translateY(-1px); filter: brightness(1.06); }
.pfe-btn:disabled { opacity: .55; cursor: not-allowed; transform: none; }
.pfe-btn.ghost { background: transparent; color: var(--primary) !important; box-shadow: inset 0 0 0 1.5px var(--primary); }
.pfe-btn.accent { background: var(--accent); color: #fff !important; }
.pfe-btn.sm { padding: 7px 14px; font-size: 13px; }
.pfe-btn.block { width: 100%; }
.pfe-btn svg { width: 18px; height: 18px; }
.pfe-row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.pfe-muted { color: var(--muted); }
.pfe-empty { text-align: center; padding: 34px 16px; color: var(--muted); border: 2px dashed var(--border); border-radius: var(--radius); }
.pfe-empty b { display: block; font-family: var(--font-head); font-size: 20px; color: var(--primary); margin-bottom: 6px; }

/* hero */
.pfe-hero { position: relative; border-radius: calc(var(--radius) + 6px); overflow: hidden; min-height: 360px; display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, .7fr); align-items: center; gap: 24px; padding: clamp(22px, 4vw, 48px); color: #fff; background: #1c2546; isolation: isolate; box-shadow: var(--shadow); }
.pfe-hero::before { content: ""; position: absolute; inset: 0; z-index: -2; background-image: var(--cover-img, var(--hero-img)); background-size: cover; background-position: center; transform: scale(1.04); animation: pfe-kenburns 26s ease-in-out infinite alternate; }
.pfe-hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(100deg, rgba(10,12,24,.82) 0%, rgba(10,12,24,.55) 52%, rgba(10,12,24,.15) 100%); }
@keyframes pfe-kenburns { to { transform: scale(1.12) translate(-1.5%, -1%); } }
.pfe-hero h1 { font-family: var(--font-head); font-size: clamp(30px, 4.4vw, 54px); line-height: 1.07; margin: 6px 0 12px; color: #fff; }
.pfe-hero p { font-size: 18px; max-width: 560px; opacity: .95; }
.pfe-hero .pfe-kicker { color: #ffd9a8; }
.pfe-hero .pfe-btn { box-shadow: 0 10px 24px rgba(0,0,0,.25); }
.pfe-hero .pfe-btn.ghost { color: #fff !important; box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.8); }
.pfe-hero-cover { justify-self: center; width: min(250px, 100%); border-radius: 6px 12px 12px 6px; box-shadow: -10px 18px 40px rgba(0,0,0,.45), inset 4px 0 8px rgba(0,0,0,.2); transform: perspective(900px) rotateY(-14deg); transition: transform .6s; }
.pfe-hero-cover:hover { transform: perspective(900px) rotateY(-2deg) translateY(-4px); }
.pfe-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(96px, 1fr)); gap: 12px; margin: 18px 0; }
.pfe-stat { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px; text-align: center; box-shadow: var(--shadow); text-decoration: none; color: var(--text) !important; transition: transform .2s; }
.pfe-stat:hover { transform: translateY(-3px); }
.pfe-stat b { display: block; font-family: var(--font-head); font-size: 30px; color: var(--primary); line-height: 1.1; }
.pfe-stat span { font-family: var(--font-ui); font-size: 12.5px; color: var(--muted); }
.pfe-section-title { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin: 28px 2px 12px; }
.pfe-section-title h2 { font-family: var(--font-head); color: var(--primary); font-size: 24px; margin: 0; }
.pfe-section-title a { font-family: var(--font-ui); font-size: 13px; font-weight: 600; text-decoration: none; }
.pfe-two { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.pfe-quote { font-family: var(--font-head); font-size: 19px; font-style: italic; color: var(--primary); }

/* ---------- reader ---------- */
.pfe-progress-top { position: fixed; left: 0; top: 0; height: 4px; width: 0; background: var(--accent); z-index: 60; transition: width .1s; }
.pfe-reader-tools { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin: 4px 0 22px; padding: 10px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); font-family: var(--font-ui); font-size: 13px; color: var(--muted); }
.pfe-reader-tools .sp { flex: 1; }
.pfe-tool { appearance: none; border: 1px solid var(--border); background: var(--surface); color: var(--text); border-radius: 999px; padding: 6px 12px; font-family: var(--font-ui); font-size: 13px; cursor: pointer; display: inline-flex; gap: 6px; align-items: center; }
.pfe-tool:hover { border-color: var(--primary); color: var(--primary); }
.pfe-tool.on { background: var(--primary); color: var(--primary-ink); border-color: var(--primary); }
.pfe-tool svg { width: 15px; height: 15px; }
.pfe-content { font-size: var(--reader-size); line-height: 1.75; }
.pfe-content h2 { font-family: var(--font-head); color: var(--primary); font-size: 1.45em; line-height: 1.25; margin: 1.8em 0 .6em; scroll-margin-top: 70px; }
.pfe-content h3 { font-family: var(--font-head); color: var(--primary); font-size: 1.18em; margin: 1.5em 0 .5em; }
.pfe-content h4 { font-family: var(--font-ui); font-size: .82em; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); margin: 1.4em 0 .4em; }
.pfe-content p { margin: 0 0 1em; }
.pfe-content ul, .pfe-content ol { padding-left: 1.3em; margin: 0 0 1em; }
.pfe-content li { margin: .25em 0; }
.pfe-content li p { margin: 0; }
.pfe-content figure.pfe-figure { margin: 1.4em 0; text-align: center; }
.pfe-content figure.pfe-figure img { border-radius: 12px; box-shadow: 0 12px 30px rgba(0,0,0,.12); cursor: zoom-in; max-height: 640px; width: auto; }
.pfe-content blockquote { margin: 1.2em 0; padding: 14px 18px; background: var(--surface2); border-left: 4px solid var(--accent); border-radius: 0 12px 12px 0; }
.pfe-table-wrap { overflow-x: auto; margin: 1.2em 0; border-radius: 12px; border: 1px solid var(--border); }
.pfe-table { width: 100%; border-collapse: collapse; font-size: .9em; line-height: 1.5; }
.pfe-table th, .pfe-table td { padding: 10px 12px; border-bottom: 1px solid var(--border); text-align: left; vertical-align: top; }
.pfe-table th, .pfe-table thead td { background: var(--primary); color: var(--primary-ink); font-family: var(--font-ui); font-size: .86em; font-weight: 600; }
.pfe-table tr:nth-child(even) td { background: color-mix(in srgb, var(--surface2) 45%, transparent); }
.pfe-table p { margin: 0; }
.pfe-shloka { margin: 1.6em 0; padding: 22px 24px; border-radius: 16px; background: linear-gradient(160deg, color-mix(in srgb, var(--surface2) 80%, transparent), var(--surface)); border: 1px solid var(--border); position: relative; overflow: hidden; }
.pfe-shloka::after { content: "ॐ"; position: absolute; right: 16px; top: 4px; font-size: 64px; opacity: .07; font-family: var(--font-sa); color: var(--accent); }
.pfe-shloka-label { font-family: var(--font-ui); font-size: 11.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--accent); font-weight: 700; margin-bottom: 8px; }
.pfe-shloka p { margin: 0 0 .55em; }
.pfe-sa, .pfe-shloka p:has(+ p strong) { font-family: var(--font-sa); }
.pfe-story-box { margin: 1.6em 0; padding: 20px 22px; border-radius: 16px; background: var(--surface); border: 1px solid var(--border); border-left: 5px solid var(--accent); box-shadow: var(--shadow); }
.pfe-story-label { font-family: var(--font-ui); font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); font-weight: 700; margin-bottom: 8px; }
.pfe-pager { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 34px; }
.pfe-pager a { display: block; padding: 14px 16px; border: 1px solid var(--border); border-radius: var(--radius); text-decoration: none; color: var(--text) !important; background: var(--surface); transition: border-color .2s, transform .2s; }
.pfe-pager a:hover { border-color: var(--primary); transform: translateY(-2px); }
.pfe-pager small { display: block; font-family: var(--font-ui); font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); }
.pfe-pager b { font-family: var(--font-head); color: var(--primary); }
.pfe-pager .next { text-align: right; grid-column: 2; }
.pfe-complete { margin: 30px 0 0; padding: 18px; border-radius: var(--radius); background: var(--surface2); display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.pfe-complete b { font-family: var(--font-head); color: var(--primary); font-size: 18px; }

/* shloka cards */
.pfe-sh-card { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 20px 22px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 8px; position: relative; overflow: hidden; }
.pfe-sh-card .sa { font-family: var(--font-sa); font-size: 21px; line-height: 1.55; color: var(--primary); }
.pfe-sh-card .tr { font-style: italic; color: var(--muted); font-size: 15px; }
.pfe-sh-card .en { font-size: 15.5px; }
.pfe-sh-card .ref { font-family: var(--font-ui); font-size: 12px; color: var(--accent); font-weight: 600; }
.pfe-sh-card a.more { font-family: var(--font-ui); font-size: 13px; font-weight: 600; text-decoration: none; margin-top: auto; }
.pfe-tabs { display: flex; gap: 6px; flex-wrap: wrap; margin: 6px 0 18px; }
.pfe-tab { appearance: none; border: 1px solid var(--border); background: var(--surface); color: var(--text); border-radius: 999px; padding: 7px 14px; font-family: var(--font-ui); font-size: 13px; cursor: pointer; text-decoration: none; }
.pfe-tab.on { background: var(--primary); color: var(--primary-ink) !important; border-color: var(--primary); }
.pfe-tab .c { opacity: .7; margin-left: 4px; font-size: 11.5px; }

/* myths */
.pfe-myths { display: grid; gap: 10px; }
.pfe-myth-row { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--border); border-radius: 14px; overflow: hidden; background: var(--surface); box-shadow: var(--shadow); }
.pfe-myth-row > div { padding: 14px 16px; position: relative; }
.pfe-myth-row .m { background: #fdecec; color: #5d1f1f; }
.pfe-myth-row .f { background: #e8f6ee; color: #163d27; }
#pfe-app[data-dark="1"] .pfe-myth-row .m { background: #3a1d22; color: #ffd9d9; }
#pfe-app[data-dark="1"] .pfe-myth-row .f { background: #17352a; color: #d4f5e2; }
.pfe-myth-row .tag { display: inline-block; font-family: var(--font-ui); font-size: 10.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 4px; opacity: .8; }
.pfe-myth-head { display: grid; grid-template-columns: 1fr 1fr; gap: 0; font-family: var(--font-ui); font-weight: 700; font-size: 13px; letter-spacing: .1em; text-transform: uppercase; }
.pfe-myth-head div { padding: 8px 16px; }
.pfe-myth-head .m { color: #b23a3a; }
.pfe-myth-head .f { color: #1d7a43; }
.pfe-flip { perspective: 1000px; cursor: pointer; min-height: 170px; }
.pfe-flip-in { position: relative; width: 100%; height: 100%; min-height: 170px; transition: transform .6s; transform-style: preserve-3d; }
.pfe-flip.on .pfe-flip-in { transform: rotateY(180deg); }
.pfe-flip-face { position: absolute; inset: 0; backface-visibility: hidden; border-radius: 14px; padding: 18px; display: flex; flex-direction: column; justify-content: center; gap: 6px; box-shadow: var(--shadow); }
.pfe-flip-face.m { background: #fdecec; color: #5d1f1f; }
.pfe-flip-face.f { background: #e8f6ee; color: #163d27; transform: rotateY(180deg); }

/* quiz */
.pfe-quiz-q { font-family: var(--font-head); font-size: 22px; color: var(--primary); margin: 6px 0 16px; line-height: 1.35; }
.pfe-opts { display: grid; gap: 10px; }
.pfe-opt { appearance: none; text-align: left; border: 1.5px solid var(--border); background: var(--surface); color: var(--text); border-radius: 12px; padding: 13px 16px; font-family: var(--font-body); font-size: 16px; cursor: pointer; display: flex; gap: 12px; align-items: center; transition: border-color .15s, background .15s, transform .15s; }
.pfe-opt:hover:not(:disabled) { border-color: var(--primary); transform: translateX(3px); }
.pfe-opt .k { flex: 0 0 auto; width: 30px; height: 30px; border-radius: 50%; background: var(--surface2); color: var(--primary); display: grid; place-items: center; font-family: var(--font-ui); font-weight: 700; font-size: 13px; }
.pfe-opt.right { border-color: #2f9e57; background: #e8f6ee; color: #163d27; }
.pfe-opt.right .k { background: #2f9e57; color: #fff; }
.pfe-opt.wrong { border-color: #d14b4b; background: #fdecec; color: #5d1f1f; }
.pfe-opt.wrong .k { background: #d14b4b; color: #fff; }
.pfe-qbar { height: 8px; background: var(--surface2); border-radius: 99px; overflow: hidden; margin: 8px 0 18px; }
.pfe-qbar i { display: block; height: 100%; background: var(--accent); border-radius: 99px; transition: width .3s; }
.pfe-ring { --p: 0; width: 150px; height: 150px; border-radius: 50%; background: conic-gradient(var(--accent) calc(var(--p) * 1%), var(--surface2) 0); display: grid; place-items: center; margin: 10px auto; }
.pfe-ring::before { content: attr(data-label); width: 118px; height: 118px; border-radius: 50%; background: var(--surface); display: grid; place-items: center; font-family: var(--font-head); font-size: 30px; color: var(--primary); }
.pfe-think { background: var(--surface2); border-radius: 14px; padding: 16px 18px; margin-top: 18px; }
.pfe-think textarea { width: 100%; min-height: 70px; margin: 6px 0 12px; }
.pfe-bars { display: grid; gap: 8px; }
.pfe-bar { display: grid; grid-template-columns: 160px 1fr 54px; gap: 10px; align-items: center; font-family: var(--font-ui); font-size: 13px; }
.pfe-bar .t { height: 10px; background: var(--surface2); border-radius: 99px; overflow: hidden; }
.pfe-bar .t i { display: block; height: 100%; background: var(--primary); border-radius: 99px; }

/* challenge */
.pfe-days { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.pfe-day { appearance: none; text-align: left; border: 1.5px solid var(--border); background: var(--surface); border-radius: 14px; padding: 12px; cursor: pointer; font-family: var(--font-body); font-size: 13.5px; color: var(--text); display: flex; flex-direction: column; gap: 6px; transition: transform .15s, border-color .15s; min-height: 132px; }
.pfe-day:hover { transform: translateY(-2px); border-color: var(--primary); }
.pfe-day b { font-family: var(--font-ui); font-size: 12px; letter-spacing: .1em; color: var(--accent); text-transform: uppercase; }
.pfe-day.done { background: var(--primary); color: var(--primary-ink); border-color: var(--primary); }
.pfe-day.done b { color: inherit; }

/* media */
.pfe-media-thumb { position: relative; aspect-ratio: 16/9; background: var(--surface2) center/cover; display: grid; place-items: center; }
.pfe-media-thumb .play { width: 58px; height: 58px; border-radius: 50%; background: rgba(0,0,0,.55); display: grid; place-items: center; color: #fff; transition: transform .2s; }
.pfe-tile:hover .play { transform: scale(1.1); }
.pfe-embed { position: relative; aspect-ratio: 16/9; border-radius: 14px; overflow: hidden; background: #000; }
.pfe-embed iframe, .pfe-embed video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.pfe-audio-list { display: grid; gap: 10px; }
.pfe-audio { display: grid; grid-template-columns: 48px 1fr auto; gap: 12px; align-items: center; background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 12px 14px; }
.pfe-audio audio { width: 100%; margin-top: 6px; }
.pfe-audio .ic { width: 48px; height: 48px; border-radius: 12px; background: var(--primary); color: var(--primary-ink); display: grid; place-items: center; }

/* ---------- right column ---------- */
.pfe-pay h3 { display: flex; align-items: center; gap: 8px; }
.pfe-pay-tabs { display: grid; grid-template-columns: 1fr 1fr; background: var(--surface2); border-radius: 12px; padding: 4px; gap: 4px; margin: 10px 0 12px; }
.pfe-pay-tabs button { appearance: none; border: 0; background: transparent; border-radius: 9px; padding: 8px 6px; font-size: 12.5px; font-weight: 600; color: var(--muted); cursor: pointer; line-height: 1.2; }
.pfe-pay-tabs button.on { background: var(--surface); color: var(--primary); box-shadow: 0 2px 8px rgba(0,0,0,.08); }
.pfe-chips { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-bottom: 8px; }
.pfe-chip { appearance: none; border: 1.5px solid var(--border); background: var(--surface); border-radius: 10px; padding: 8px 4px; font-weight: 700; font-size: 14px; color: var(--text); cursor: pointer; }
.pfe-chip.on { border-color: var(--primary); background: var(--primary); color: var(--primary-ink); }
.pfe-amount { display: flex; align-items: center; border: 1.5px solid var(--border); border-radius: 10px; overflow: hidden; margin-bottom: 10px; background: var(--surface); }
.pfe-amount span { padding: 0 10px; font-weight: 700; color: var(--muted); font-family: var(--font-ui); }
.pfe-amount input { border: 0 !important; outline: 0; flex: 1; padding: 9px 10px 9px 0; font-size: 17px; font-weight: 700; background: transparent; color: var(--text); width: 100%; box-shadow: none !important; }
.pfe-small { font-size: 12.5px; color: var(--muted); line-height: 1.5; }
.pfe-linkbtn { appearance: none; border: 0; background: none; padding: 0; color: var(--primary); font-family: var(--font-ui); font-weight: 600; font-size: 13px; cursor: pointer; text-align: left; text-decoration: underline; text-underline-offset: 3px; }
.pfe-note { background: var(--surface2); border-radius: 10px; padding: 10px 12px; font-size: 12.5px; line-height: 1.5; color: var(--text); margin-top: 10px; }
.pfe-search { position: relative; }
.pfe-search input { width: 100%; border: 1.5px solid var(--border); border-radius: 999px; padding: 11px 16px 11px 40px; font-size: 15px; background: var(--surface); color: var(--text); font-family: var(--font-ui); }
.pfe-search svg.ic { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: var(--muted); }
.pfe-search-results { position: absolute; left: 0; right: 0; top: calc(100% + 6px); background: var(--surface); border: 1px solid var(--border); border-radius: 14px; box-shadow: 0 18px 40px rgba(0,0,0,.16); z-index: 20; max-height: 380px; overflow: auto; padding: 6px; display: none; }
.pfe-search-results.show { display: block; }
.pfe-search-results a { display: block; padding: 8px 10px; border-radius: 9px; text-decoration: none; color: var(--text) !important; font-size: 13.5px; }
.pfe-search-results a:hover { background: var(--surface2); }
.pfe-search-results a small { display: block; color: var(--accent); font-family: var(--font-ui); font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
#pfe-app select, #pfe-app input[type=text], #pfe-app input[type=email], #pfe-app input[type=password], #pfe-app input[type=number], #pfe-app textarea { border: 1.5px solid var(--border); border-radius: 10px; padding: 9px 12px; font-size: 15px; background: var(--surface); color: var(--text); font-family: var(--font-ui); width: 100%; }
#pfe-app select:focus, #pfe-app input:focus, #pfe-app textarea:focus { outline: 2px solid color-mix(in srgb, var(--primary) 45%, transparent); outline-offset: 1px; border-color: var(--primary); }
.pfe-buy-btns { display: grid; gap: 8px; margin-top: 10px; }
.pfe-contact a { display: flex; gap: 10px; align-items: center; padding: 8px 0; text-decoration: none; font-family: var(--font-ui); font-size: 14px; font-weight: 600; word-break: break-word; }
.pfe-contact svg { width: 20px; height: 20px; flex: 0 0 auto; }
.pfe-contact small { display: block; color: var(--muted); font-weight: 400; font-size: 12px; }

/* ---------- modal / overlay ---------- */
.pfe-modal { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; padding: 16px; background: rgba(8,10,20,.6); backdrop-filter: blur(4px); animation: pfe-fade .2s; }
@keyframes pfe-fade { from { opacity: 0; } }
.pfe-modal-box { width: min(620px, 100%); max-height: calc(100vh - 32px); overflow: auto; background: var(--surface); color: var(--text); border-radius: 20px; box-shadow: 0 30px 80px rgba(0,0,0,.35); padding: 24px; position: relative; animation: pfe-pop .25s ease-out; font-family: var(--font-body); }
.pfe-modal-box.wide { width: min(980px, 100%); }
@keyframes pfe-pop { from { transform: translateY(12px) scale(.98); opacity: 0; } }
.pfe-modal-x { position: absolute; right: 12px; top: 12px; width: 36px; height: 36px; border-radius: 50%; border: 0; background: var(--surface2); color: var(--text); cursor: pointer; font-size: 20px; line-height: 1; }
.pfe-form { display: grid; gap: 12px; }
.pfe-form .two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.pfe-form label { display: grid; gap: 4px; font-family: var(--font-ui); font-size: 13px; font-weight: 600; color: var(--text); }
.pfe-form label em { font-weight: 400; color: var(--muted); font-style: normal; }
.pfe-hp { position: absolute; left: -9999px; }
.pfe-msg { padding: 10px 12px; border-radius: 10px; font-family: var(--font-ui); font-size: 13.5px; }
.pfe-msg.err { background: #fdecec; color: #8a1f1f; }
.pfe-msg.ok { background: #e8f6ee; color: #145c33; }
.pfe-lightbox img { max-height: 86vh; border-radius: 12px; }
.pfe-toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 90; background: var(--primary); color: var(--primary-ink); padding: 12px 18px; border-radius: 999px; font-family: var(--font-ui); font-size: 14px; box-shadow: 0 14px 30px rgba(0,0,0,.25); animation: pfe-toast 3.2s forwards; }
@keyframes pfe-toast { 0% { opacity: 0; transform: translate(-50%, 10px); } 10%, 85% { opacity: 1; transform: translate(-50%, 0); } 100% { opacity: 0; } }

/* welcome flash */
.pfe-welcome { position: fixed; inset: 0; z-index: 95; display: grid; place-items: center; padding: 12px; color: #fff; isolation: isolate; overflow: hidden; }
.pfe-welcome-fit { transform-origin: center center; }
.pfe-welcome::before { content: ""; position: fixed; inset: 0; z-index: -2; background-image: var(--cover-img, var(--hero-img)); background-size: cover; background-position: center; animation: pfe-kenburns 30s ease-in-out infinite alternate; }
.pfe-welcome::after { content: ""; position: fixed; inset: 0; z-index: -1; background: radial-gradient(ellipse at center, rgba(12,14,30,.55), rgba(12,14,30,.88)); }
.pfe-welcome-box { max-width: 760px; text-align: center; animation: pfe-rise 1s ease-out both; }
@keyframes pfe-rise { from { opacity: 0; transform: translateY(24px); } }
.pfe-welcome .lotus { width: clamp(54px, 10vh, 92px); height: clamp(54px, 10vh, 92px); margin: 0 auto 8px; color: #ffd9a8; animation: pfe-bloom 2.4s ease-out both; }
@keyframes pfe-bloom { from { transform: scale(.4) rotate(-20deg); opacity: 0; } }
.pfe-welcome h1 { font-family: var(--font-head); font-size: clamp(26px, min(4.6vw, 6vh), 50px); line-height: 1.1; margin: 0 0 6px; color: #fff; }
.pfe-welcome .series { font-family: var(--font-ui); letter-spacing: .26em; text-transform: uppercase; font-size: 12px; color: #ffd9a8; margin-bottom: 18px; }
.pfe-welcome .msg p { font-size: clamp(15px, min(1.7vw, 2.3vh), 19px); line-height: 1.6; margin: 0 0 1.2vh; opacity: .96; }
.pfe-welcome .tag { font-family: var(--font-head); font-style: italic; font-size: clamp(19px, 2.2vw, 25px); color: #ffe2b8; margin: 1.8vh 0 2.4vh; animation: pfe-rise 1s .8s ease-out both; }
.pfe-welcome .pfe-btn { font-size: 17px; padding: 15px 30px; background: #ffd9a8; color: #2a1b0a !important; animation: pfe-rise 1s 1.2s ease-out both, pfe-pulse 2.4s 2.4s ease-in-out infinite; }
@keyframes pfe-pulse { 50% { box-shadow: 0 0 0 12px rgba(255,217,168,.15), 0 10px 24px rgba(0,0,0,.3); } }
.pfe-welcome .thanks { margin-top: 16px; font-family: var(--font-ui); font-size: 13px; opacity: .8; }

/* theme picker */
.pfe-theme-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }
.pfe-theme-card { appearance: none; border: 2px solid var(--border); border-radius: 14px; overflow: hidden; cursor: pointer; background: var(--surface); padding: 0; text-align: left; transition: transform .2s; color: var(--text); }
.pfe-theme-card:hover { transform: translateY(-3px); }
.pfe-theme-card.on { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 30%, transparent); }
.pfe-theme-card .sw { height: 70px; background-size: cover; background-position: center; position: relative; }
.pfe-theme-card .sw i { position: absolute; bottom: 6px; display: block; width: 18px; height: 18px; border-radius: 50%; border: 2px solid #fff; }
.pfe-theme-card .nm { padding: 8px 10px; font-family: var(--font-ui); font-size: 12.5px; font-weight: 600; }
.pfe-theme-card .nm small { display: block; font-weight: 400; color: var(--muted); }

/* account */
.pfe-auth { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.pfe-social-login { display: grid; gap: 10px; }
.pfe-fb-btn { background: #1877f2 !important; color: #fff !important; }
.pfe-or { display: flex; align-items: center; gap: 10px; color: var(--muted); font-family: var(--font-ui); font-size: 12px; text-transform: uppercase; letter-spacing: .1em; margin: 8px 0; }
.pfe-or::before, .pfe-or::after { content: ""; flex: 1; height: 1px; background: var(--border); }
.pfe-dash-head { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.pfe-dash-head img { width: 72px; height: 72px; border-radius: 50%; }
.pfe-rings { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; margin: 18px 0; }
.pfe-rings .pfe-card { text-align: center; padding: 14px; }
.pfe-rings .pfe-ring { width: 110px; height: 110px; }
.pfe-rings .pfe-ring::before { width: 86px; height: 86px; font-size: 22px; }
.pfe-pending { display: grid; gap: 8px; }
.pfe-pending a { display: flex; gap: 10px; align-items: center; padding: 9px 12px; border: 1px solid var(--border); border-radius: 10px; text-decoration: none; color: var(--text) !important; background: var(--surface); font-size: 14.5px; }
.pfe-pending a:hover { border-color: var(--primary); }
.pfe-pending a .pfe-pill { margin-left: auto; }

/* reviews */
.pfe-review { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 18px; box-shadow: var(--shadow); }
.pfe-review p { font-style: italic; margin: 0 0 10px; }
.pfe-review b { font-family: var(--font-ui); font-size: 13.5px; }
.pfe-review small { display: block; color: var(--muted); font-family: var(--font-ui); }

/* footer */
.pfe-footer { background: var(--header); color: var(--header-ink); margin-top: 18px; }
.pfe-footer-in { max-width: 1680px; margin: 0 auto; padding: 34px clamp(14px, 3vw, 34px) 18px; display: grid; grid-template-columns: 1.5fr repeat(4, 1fr); gap: 26px; }
.pfe-footer h5 { margin: 0 0 10px; font-family: var(--font-ui); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; opacity: .85; }
.pfe-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.pfe-footer a { color: inherit !important; text-decoration: none; opacity: .9; font-family: var(--font-ui); font-size: 14px; }
.pfe-footer a:hover { opacity: 1; text-decoration: underline; }
.pfe-footer p { font-size: 14px; opacity: .9; margin: 0 0 10px; }
.pfe-footer-bottom { max-width: 1680px; margin: 0 auto; padding: 14px clamp(14px, 3vw, 34px) 22px; border-top: 1px solid rgba(255,255,255,.18); font-family: var(--font-ui); font-size: 12.5px; opacity: .85; display: flex; gap: 10px; flex-wrap: wrap; justify-content: space-between; }
.pfe-totop { position: fixed; right: 18px; bottom: 18px; z-index: 50; width: 46px; height: 46px; border-radius: 50%; border: 0; background: var(--accent); color: #fff; cursor: pointer; box-shadow: 0 10px 24px rgba(0,0,0,.25); display: none; place-items: center; }
.pfe-totop.show { display: grid; }
.pfe-mobile-bar { display: none; }

/* ---------- responsive ---------- */
@media (max-width: 1320px) {
	.pfe-shell { grid-template-columns: 240px minmax(0, 1fr) 240px; gap: 16px; }
	.pfe-menu > li > a, .pfe-menu > li > button { padding: 0 9px; font-size: 13.4px; }
}
@media (max-width: 1100px) {
	.pfe-shell { grid-template-columns: minmax(0, 1fr) 260px; }
	.pfe-nav { position: fixed; left: 0; top: 0; bottom: 0; width: min(320px, 86vw); max-height: none; z-index: 70; border-radius: 0 18px 18px 0; transform: translateX(-105%); transition: transform .25s; }
	.pfe-nav.open { transform: none; box-shadow: 20px 0 60px rgba(0,0,0,.3); }
	.pfe-nav .pfe-nav-close { display: flex; margin-left: auto; }
	.pfe-mobile-bar { display: flex; gap: 8px; margin-bottom: 12px; }
	.pfe-footer-in { grid-template-columns: 1fr 1fr 1fr; }
}
@media (max-width: 880px) {
	.pfe-shell { grid-template-columns: minmax(0, 1fr); }
	.pfe-aside { position: static; max-height: none; overflow: visible; }
	.pfe-burger { display: inline-grid; }
	.pfe-menubar { position: sticky; }
	.pfe-menubar-in { display: none; padding: 6px 10px 10px; }
	.pfe-menubar.open .pfe-menubar-in { display: block; max-height: 78vh; overflow: auto; }
	.pfe-menu { flex-direction: column; }
	.pfe-menu > li > a, .pfe-menu > li > button { height: 44px; width: 100%; }
	.pfe-drop, .pfe-drop.mega { position: static; box-shadow: none; border-radius: 10px; width: auto; max-height: none; }
	.pfe-menu > li.open > .pfe-drop.mega { grid-template-columns: 1fr; }
	.pfe-hero { grid-template-columns: 1fr; }
	.pfe-hero-cover { width: 170px; }
	.pfe-two, .pfe-auth { grid-template-columns: 1fr; }
	.pfe-brand-lines span, .pfe-brand-lines i { font-size: 10.5px; }
	.pfe-crumbs { display: none; }
	.pfe-footer-in { grid-template-columns: 1fr 1fr; }
	.pfe-bar { grid-template-columns: 110px 1fr 44px; }
}
@media (max-width: 560px) {
	.pfe-logo { width: 44px; height: 44px; }
	.pfe-brand-lines b { font-size: 16px; }
	.pfe-brand-lines i { display: none; }
	.pfe-account-btn span.lbl { display: none; }
	.pfe-account-btn { padding: 4px; }
	.pfe-myth-row, .pfe-myth-head { grid-template-columns: 1fr; }
	.pfe-myth-head { display: none; }
	.pfe-form .two { grid-template-columns: 1fr; }
	.pfe-pager { grid-template-columns: 1fr; }
	.pfe-pager .next { grid-column: 1; }
	.pfe-footer-in { grid-template-columns: 1fr; }
	.pfe-chips { grid-template-columns: repeat(2, 1fr); }
}
@media print {
	.pfe-header, .pfe-menubar, .pfe-socialbar, .pfe-nav, .pfe-aside, .pfe-footer, .pfe-reader-tools, .pfe-totop, .pfe-progress-top { display: none !important; }
	.pfe-shell { display: block; }
	.pfe-page { box-shadow: none; border: 0; }
}
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation: none !important; transition: none !important; }
}

.pfe-footer .pfe-social a { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.28); color: inherit !important; }
.pfe-footer .pfe-social a:hover { background: rgba(255,255,255,.25); }
.pfe-bar a { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pfe-av[data-big] { background: var(--primary) !important; color: var(--primary-ink); border-radius: 50%; display: grid; place-items: center; font-family: var(--font-ui); flex: 0 0 auto; }

.pfe-brand { flex: 1 1 auto; overflow: hidden; }
@media (max-width: 560px) {
	.pfe-header-in { gap: 10px; padding: 8px 10px; }
	.pfe-header-tools { gap: 6px; flex: 0 0 auto; }
	.pfe-header-tools [data-go="search"] { display: none; }
	.pfe-iconbtn { width: 36px; height: 36px; }
	.pfe-brand-lines b { white-space: normal; font-size: 15px; line-height: 1.15; }
	.pfe-brand-lines span { white-space: normal; font-size: 9px; letter-spacing: .1em; }
	.pfe-tagline-chip { font-size: 12.5px; }
}

body.admin-bar .pfe-menubar { top: 32px; }
body.admin-bar .pfe-nav, body.admin-bar .pfe-aside { top: 90px; max-height: calc(100vh - 102px); }
@media (max-width: 782px) { body.admin-bar .pfe-menubar { top: 0; } }

/* ---------- two-line menu ---------- */
.pfe-menubar { background: var(--nav); color: var(--nav-ink); position: sticky; top: 0; z-index: 25; box-shadow: 0 4px 14px rgba(0,0,0,.07); }
.pfe-menu-in { max-width: 1680px; margin: 0 auto; padding: 0 clamp(8px, 2vw, 24px); display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; }
.pfe-menu-in::-webkit-scrollbar { display: none; }
.pfe-menu1 .pfe-menu-in { padding-top: 6px; }
.pfe-m1 { flex: 0 0 auto; display: flex; align-items: center; height: 42px; padding: 0 15px; border-radius: 12px 12px 0 0; color: var(--nav-ink) !important; text-decoration: none; font-family: var(--font-ui); font-size: 14px; font-weight: 600; white-space: nowrap; transition: background .18s, color .18s; position: relative; }
.pfe-m1:hover { background: color-mix(in srgb, var(--surface) 45%, transparent); }
.pfe-m1.peek { background: color-mix(in srgb, var(--surface) 70%, transparent); color: var(--primary) !important; }
.pfe-m1.on { background: var(--surface); color: var(--primary) !important; box-shadow: 0 -2px 0 var(--accent) inset; }
.pfe-m1.on::after { content: ""; position: absolute; left: 14px; right: 14px; top: 0; height: 3px; border-radius: 0 0 3px 3px; background: var(--accent); }
.pfe-m1.on { box-shadow: none; }
.pfe-menu2 { background: var(--surface); border-bottom: 1px solid var(--border); }
.pfe-menu2 .pfe-menu-in { min-height: 46px; align-items: center; gap: 4px; padding-top: 6px; padding-bottom: 6px; }
.pfe-sub-in { animation: pfe-subin .22s ease-out; }
@keyframes pfe-subin { from { opacity: 0; transform: translateY(-3px); } }
.pfe-m2 { flex: 0 0 auto; padding: 6px 13px; border-radius: 999px; font-family: var(--font-ui); font-size: 13px; color: var(--text) !important; text-decoration: none; white-space: nowrap; transition: background .15s; }
.pfe-m2:hover { background: var(--surface2); }
.pfe-m2.on { background: var(--primary); color: var(--primary-ink) !important; font-weight: 600; }
.pfe-m2.num { min-width: 30px; padding: 5px 0; text-align: center; font-weight: 600; font-size: 12.5px; }
.pfe-m2tag { flex: 0 0 auto; margin: 0 2px 0 10px; font-family: var(--font-ui); font-size: 10.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); }
.pfe-nav, .pfe-aside { top: calc(var(--menu-h, 100px) + 12px); max-height: calc(100vh - var(--menu-h, 100px) - 24px); }
body.admin-bar .pfe-nav, body.admin-bar .pfe-aside { top: calc(var(--menu-h, 100px) + 44px); max-height: calc(100vh - var(--menu-h, 100px) - 56px); }
@media (max-width: 1100px) { .pfe-nav { top: 0; max-height: none; } }
@media (max-width: 880px) { .pfe-m1 { padding: 0 12px; font-size: 13.5px; height: 40px; } }

/* logo */
.pfe-logo { width: 62px; height: 62px; background: #fbf6ee; box-shadow: 0 0 0 2px rgba(255,255,255,.35), 0 4px 12px rgba(0,0,0,.18); }
.pfe-logo img { border-radius: 50%; }
@media (max-width: 560px) { .pfe-logo { width: 48px; height: 48px; } }
.pfe-presented { display: flex; width: max-content; max-width: 100%; margin: 20px auto 0; align-items: center; gap: 10px; font-family: var(--font-ui); font-size: 12px; text-align: left; opacity: .92; animation: pfe-rise 1s 1.4s ease-out both; }
.pfe-presented img { width: 56px; height: 56px; border-radius: 50%; box-shadow: 0 4px 14px rgba(0,0,0,.35); }
.pfe-presented b { font-size: 14px; letter-spacing: .04em; }
.pfe-fb-org { display: inline-flex; align-items: center; gap: 8px; }
.pfe-fb-org img { width: 26px; height: 26px; border-radius: 50%; }

/* second menu line wraps onto a third line when needed (all chapters always visible) */
.pfe-menu2 .pfe-menu-in { flex-wrap: wrap; overflow: visible; row-gap: 4px; }
.pfe-menu2 .pfe-m2tag { margin-left: 8px; }

/* dropdown menu mode */
#pfe-app[data-menu="dropdown"] .pfe-nav, #pfe-app[data-menu="dropdown"] .pfe-aside { top: 58px; max-height: calc(100vh - 70px); }
body.admin-bar #pfe-app[data-menu="dropdown"] .pfe-nav, body.admin-bar #pfe-app[data-menu="dropdown"] .pfe-aside { top: 90px; max-height: calc(100vh - 102px); }
@media (max-width: 1100px) { #pfe-app[data-menu="dropdown"] .pfe-nav { top: 0; max-height: none; } }
.pfe-dropmode .pfe-drop.mega > div { min-width: 0; }

/* ---------- rich visuals ---------- */
#pfe-app { background-image: radial-gradient(ellipse 70% 40% at 15% 0%, color-mix(in srgb, var(--accent) 14%, transparent), transparent 70%), radial-gradient(ellipse 60% 35% at 90% 10%, color-mix(in srgb, var(--primary) 10%, transparent), transparent 70%), var(--pattern); }
.pfe-banner { --pad: clamp(18px, 3.4vw, 46px); margin: calc(-1 * var(--pad)) calc(-1 * var(--pad)) 26px; border-radius: calc(var(--radius) + 4px) calc(var(--radius) + 4px) 0 0; position: relative; overflow: hidden; isolation: isolate; min-height: 260px; display: flex; align-items: flex-end; color: #fff; }
.pfe-banner::before { content: ""; position: absolute; inset: 0; z-index: -2; background: var(--b) center 35% / cover no-repeat; transform: scale(1.05); animation: pfe-kenburns 24s ease-in-out infinite alternate; }
.pfe-banner::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(12,14,30,.05) 0%, rgba(12,14,30,.45) 45%, rgba(12,14,30,.86) 100%); }
.pfe-banner-in { padding: 70px var(--pad) 26px; width: 100%; }
.pfe-banner h1 { color: #fff !important; text-shadow: 0 2px 18px rgba(0,0,0,.35); margin-bottom: 4px; }
.pfe-banner .pfe-kicker { color: #ffd9a8; }
.pfe-banner .pfe-kicker a { color: inherit !important; }
.pfe-banner .pfe-lead { color: rgba(255,255,255,.92); margin: 8px 0 0; max-width: 780px; }
.pfe-orn { display: flex; align-items: center; gap: 10px; color: #ffd9a8; margin: 6px 0 2px; }
.pfe-orn i { display: block; width: 70px; height: 1px; background: currentColor; opacity: .8; }
.pfe-orn b { font-size: 12px; font-weight: 400; }
.pfe-reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.pfe-reveal.in { opacity: 1; transform: none; }
.pfe-tile .pfe-tile-img { transition: transform .6s ease; }
.pfe-tile:hover .pfe-tile-img { transform: scale(1.06); }
.pfe-tile .pfe-tile-img.strip { aspect-ratio: 3 / 1; }
.pfe-tile { position: relative; }
.pfe-tile::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: linear-gradient(90deg, var(--accent), var(--primary)); opacity: 0; transition: opacity .25s; }
.pfe-tile:hover::after { opacity: 1; }
.pfe-card { background-image: linear-gradient(180deg, color-mix(in srgb, var(--surface2) 35%, transparent), transparent 60px); }
.pfe-section-title h2::after { content: ""; display: block; width: 46px; height: 3px; border-radius: 3px; background: var(--accent); margin-top: 6px; }
.pfe-stat { background-image: linear-gradient(160deg, var(--surface), color-mix(in srgb, var(--surface2) 60%, var(--surface))); }
.pfe-stat b { background: linear-gradient(90deg, var(--primary), var(--accent)); -webkit-background-clip: text; background-clip: text; color: transparent; }
/* shelf of volume covers */
.pfe-shelf { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(170px, 200px); gap: 22px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 10px 16px 26px; scroll-padding-left: 16px; scrollbar-width: thin; perspective: 1400px; }
.pfe-book { scroll-snap-align: start; text-decoration: none; color: var(--text) !important; display: flex; flex-direction: column; gap: 10px; }
.pfe-book-cover { display: block; aspect-ratio: 2 / 3; border-radius: 4px 10px 10px 4px; background-size: cover; background-position: center; box-shadow: -6px 10px 24px rgba(0,0,0,.22), inset 6px 0 10px rgba(0,0,0,.12); transform: rotateY(-9deg); transform-origin: center center; transition: transform .45s ease, box-shadow .45s; }
.pfe-book:hover .pfe-book-cover { transform: rotateY(0) translateY(-6px); box-shadow: 0 18px 34px rgba(0,0,0,.28); }
.pfe-book-meta small { display: block; font-family: var(--font-ui); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); font-weight: 700; }
.pfe-book-meta b { font-family: var(--font-head); color: var(--primary); font-size: 16px; line-height: 1.25; }
.pfe-book-meta .pfe-qbar { margin: 8px 0 0; height: 5px; }
.pfe-shelf-btn { appearance: none; width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--border); background: var(--surface); color: var(--primary); font-size: 22px; line-height: 1; cursor: pointer; margin-left: 6px; box-shadow: var(--shadow); }
.pfe-shelf-btn:hover { background: var(--primary); color: var(--primary-ink); }
/* explore by topic */
.pfe-topics { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 150px; gap: 12px; }
.pfe-topic { position: relative; border-radius: var(--radius); overflow: hidden; background-size: cover; background-position: center; display: flex; align-items: flex-end; text-decoration: none; color: #fff !important; box-shadow: var(--shadow); isolation: isolate; transition: transform .3s; }
.pfe-topic.big { grid-column: span 2; grid-row: span 2; }
.pfe-topic::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, transparent 35%, rgba(10,12,24,.82)); transition: opacity .3s; }
.pfe-topic:hover { transform: translateY(-4px) scale(1.01); }
.pfe-topic span { padding: 14px 16px; }
.pfe-topic small { display: block; font-family: var(--font-ui); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: #ffd9a8; }
.pfe-topic b { font-family: var(--font-head); font-size: 20px; line-height: 1.2; }
.pfe-topic.big b { font-size: 30px; }
@media (max-width: 880px) { .pfe-topics { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 130px; } .pfe-banner { min-height: 200px; } .pfe-banner-in { padding-top: 50px; } }
/* shloka cards: manuscript feel */
.pfe-sh-card { background: linear-gradient(170deg, color-mix(in srgb, var(--surface2) 55%, var(--surface)), var(--surface) 55%); border-top: 3px solid var(--accent); }
.pfe-sh-card::after { content: "ॐ"; position: absolute; right: 14px; bottom: -6px; font-size: 70px; opacity: .06; color: var(--accent); font-family: var(--font-sa); }
@media (prefers-reduced-motion: reduce) { .pfe-reveal { opacity: 1; transform: none; } }

.pfe-banner a { color: #ffd9a8 !important; }

/* =====================================================================
   Theme look-and-feel variants (set per theme in includes/themes.php → 's')
   ===================================================================== */
/* shape */
#pfe-app[data-shape="sharp"] { --radius: 3px; }
#pfe-app[data-shape="round"] { --radius: 24px; }
#pfe-app[data-shape="sharp"] .pfe-nav li a, #pfe-app[data-shape="sharp"] .pfe-drop a { border-radius: 2px; }

/* header */
#pfe-app[data-header="image"] .pfe-header { background: linear-gradient(90deg, rgba(8,10,22,.82), rgba(8,10,22,.45) 60%, rgba(8,10,22,.25)), var(--hero-img) center 40% / cover; color: #fff; }
#pfe-app[data-header="image"] .pfe-header-in { padding-top: 22px; padding-bottom: 22px; }
#pfe-app[data-header="image"] .pfe-brand-lines b { font-size: clamp(20px, 2.4vw, 28px); text-shadow: 0 2px 10px rgba(0,0,0,.4); }
#pfe-app[data-header="light"] .pfe-header { background: var(--surface); color: var(--primary); border-bottom: 3px solid var(--accent); }
#pfe-app[data-header="light"] .pfe-iconbtn { background: var(--surface2); }
#pfe-app[data-header="light"] .pfe-account-btn { border-color: var(--border); background: var(--surface2); }
#pfe-app[data-header="light"] .pfe-logo { background: var(--surface2); box-shadow: inset 0 0 0 1.5px var(--border); }
@media (min-width: 900px) {
	#pfe-app[data-header="centered"] .pfe-header-in { position: relative; justify-content: center; padding-top: 18px; padding-bottom: 16px; }
	#pfe-app[data-header="centered"] .pfe-brand { flex-direction: column; text-align: center; gap: 6px; }
	#pfe-app[data-header="centered"] .pfe-brand-lines { align-items: center; }
	#pfe-app[data-header="centered"] .pfe-logo { width: 64px; height: 64px; }
	#pfe-app[data-header="centered"] .pfe-header-tools { position: absolute; right: clamp(12px, 2.4vw, 28px); top: 50%; transform: translateY(-50%); }
}

/* menu bar */
#pfe-app[data-nav="pills"] .pfe-menubar-in { padding-top: 6px; padding-bottom: 6px; }
#pfe-app[data-nav="pills"] .pfe-menu > li > a, #pfe-app[data-nav="pills"] .pfe-menu > li > button { height: 36px; border-radius: 999px; border-bottom: 0; padding: 0 14px; }
#pfe-app[data-nav="pills"] .pfe-menu > li.active > a, #pfe-app[data-nav="pills"] .pfe-menu > li.active > button { background: var(--primary); color: var(--primary-ink) !important; }
#pfe-app[data-nav="pills"] .pfe-drop { top: calc(100% + 6px); border-radius: var(--radius); }
#pfe-app[data-nav="centered"] .pfe-menubar-in, #pfe-app[data-nav="centered"] .pfe-menu { justify-content: center; }
#pfe-app[data-nav="centered"] .pfe-menu > li > a, #pfe-app[data-nav="centered"] .pfe-menu > li > button { text-transform: uppercase; letter-spacing: .1em; font-size: 12.3px; }
#pfe-app[data-nav="centered"] .pfe-menubar { border-top: 1px solid color-mix(in srgb, var(--accent) 55%, transparent); border-bottom: 1px solid color-mix(in srgb, var(--accent) 55%, transparent); }
#pfe-app[data-nav="dark"] .pfe-menubar { background: var(--primary); }
#pfe-app[data-nav="dark"] .pfe-menu > li > a, #pfe-app[data-nav="dark"] .pfe-menu > li > button { color: var(--primary-ink) !important; }
#pfe-app[data-nav="dark"] .pfe-menu > li > a:hover, #pfe-app[data-nav="dark"] .pfe-menu > li > button:hover, #pfe-app[data-nav="dark"] .pfe-menu > li.open > button { background: rgba(255,255,255,.12); }
#pfe-app[data-nav="underline"] .pfe-menubar { background: var(--surface); box-shadow: none; border-bottom: 1px solid var(--border); }
#pfe-app[data-nav="underline"] .pfe-menu > li > a, #pfe-app[data-nav="underline"] .pfe-menu > li > button { color: var(--text) !important; position: relative; border-bottom: 0; }
#pfe-app[data-nav="underline"] .pfe-menu > li > a::after, #pfe-app[data-nav="underline"] .pfe-menu > li > button::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 6px; height: 2px; background: var(--accent); transform: scaleX(0); transition: transform .25s; }
#pfe-app[data-nav="underline"] .pfe-menu > li:hover > a::after, #pfe-app[data-nav="underline"] .pfe-menu > li:hover > button::after, #pfe-app[data-nav="underline"] .pfe-menu > li.active > a::after, #pfe-app[data-nav="underline"] .pfe-menu > li.active > button::after { transform: scaleX(1); }
#pfe-app[data-nav="underline"] .pfe-menu > li > a:hover, #pfe-app[data-nav="underline"] .pfe-menu > li > button:hover { background: none; }

/* cards, pages, tiles, side panels */
#pfe-app[data-card="outline"] :is(.pfe-card, .pfe-page, .pfe-tile, .pfe-nav, .pfe-stat) { box-shadow: none; border: 1.5px solid color-mix(in srgb, var(--primary) 22%, var(--border)); }
#pfe-app[data-card="outline"] .pfe-tile:hover { box-shadow: 0 0 0 2px var(--primary); }
#pfe-app[data-card="flat"] :is(.pfe-card, .pfe-tile, .pfe-nav, .pfe-stat) { box-shadow: none; border-color: transparent; background: var(--surface2); }
#pfe-app[data-card="flat"] .pfe-page { box-shadow: none; border-color: transparent; }
#pfe-app[data-card="flat"] .pfe-tile:hover { box-shadow: 0 12px 26px rgba(0,0,0,.08); }
#pfe-app[data-card="lift"] :is(.pfe-card, .pfe-page) { border: 0; border-top: 4px solid var(--accent); box-shadow: 0 2px 4px rgba(0,0,0,.04), 0 20px 44px rgba(0,0,0,.10); }
#pfe-app[data-card="lift"] :is(.pfe-tile, .pfe-stat, .pfe-nav) { border: 0; box-shadow: 0 2px 4px rgba(0,0,0,.04), 0 14px 32px rgba(0,0,0,.09); }
#pfe-app[data-card="lift"] .pfe-tile:hover { transform: translateY(-7px) rotate(-.4deg); }
#pfe-app[data-card="glass"] :is(.pfe-card, .pfe-page, .pfe-tile, .pfe-nav, .pfe-stat) { background: color-mix(in srgb, var(--surface) 74%, transparent); -webkit-backdrop-filter: blur(14px) saturate(1.2); backdrop-filter: blur(14px) saturate(1.2); border: 1px solid color-mix(in srgb, var(--text) 12%, transparent); box-shadow: 0 10px 34px rgba(0,0,0,.14); }
#pfe-app[data-card="framed"] :is(.pfe-card, .pfe-page) { border: 1px solid var(--accent); box-shadow: inset 0 0 0 4px var(--surface), inset 0 0 0 5px color-mix(in srgb, var(--accent) 60%, transparent); }
#pfe-app[data-card="framed"] :is(.pfe-tile, .pfe-stat, .pfe-nav) { border: 1px solid color-mix(in srgb, var(--accent) 70%, transparent); box-shadow: none; }
#pfe-app[data-card="framed"] .pfe-page h1::after { content: "❖"; display: block; font-size: 14px; color: var(--accent); margin-top: 6px; letter-spacing: .4em; }

/* buttons */
#pfe-app[data-btn="square"] :is(.pfe-btn, .pfe-tool, .pfe-pill) { border-radius: 4px; }
#pfe-app[data-btn="square"] .pfe-btn { text-transform: uppercase; letter-spacing: .08em; font-size: 13px; }
#pfe-app[data-btn="outline"] .pfe-btn:not(.ghost):not(.accent) { background: transparent; color: var(--primary) !important; box-shadow: inset 0 0 0 2px var(--primary); }
#pfe-app[data-btn="outline"] .pfe-btn:not(.ghost):not(.accent):hover { background: var(--primary); color: var(--primary-ink) !important; }

/* headings */
#pfe-app[data-head="caps"] :is(.pfe-page h1, .pfe-hero h1, .pfe-section-title h2, .pfe-content h2, .pfe-card h3) { text-transform: uppercase; letter-spacing: .05em; }
#pfe-app[data-head="italic"] :is(.pfe-page h1, .pfe-hero h1, .pfe-section-title h2, .pfe-content h2) { font-style: italic; font-weight: 600; }

/* hero */
#pfe-app[data-hero="split"] .pfe-hero { background: var(--primary); color: var(--primary-ink); }
#pfe-app[data-hero="split"] .pfe-hero::before { left: 42%; -webkit-mask-image: linear-gradient(90deg, transparent, #000 35%); mask-image: linear-gradient(90deg, transparent, #000 35%); }
#pfe-app[data-hero="split"] .pfe-hero::after { background: linear-gradient(90deg, var(--primary) 38%, transparent 75%); opacity: .9; }
#pfe-app[data-hero="split"] .pfe-hero h1 { color: inherit; }
#pfe-app[data-hero="split"] .pfe-hero .pfe-kicker { color: inherit; opacity: .8; }
#pfe-app[data-hero="split"] .pfe-hero .pfe-btn.ghost { color: inherit !important; box-shadow: inset 0 0 0 1.5px currentColor; }
#pfe-app[data-hero="centered"] .pfe-hero { grid-template-columns: 1fr; text-align: center; min-height: 420px; }
#pfe-app[data-hero="centered"] .pfe-hero p { margin-left: auto; margin-right: auto; }
#pfe-app[data-hero="centered"] .pfe-hero .pfe-row { justify-content: center; }
#pfe-app[data-hero="centered"] .pfe-hero .pfe-qbar { margin-left: auto; margin-right: auto; }
#pfe-app[data-hero="centered"] .pfe-hero::after { background: radial-gradient(ellipse at center, rgba(8,10,22,.72) 0%, rgba(8,10,22,.5) 55%, rgba(8,10,22,.3) 100%); }
#pfe-app[data-hero="centered"] .pfe-hero-cover { display: none; }
#pfe-app[data-hero="framed"] .pfe-hero { outline: 1px solid rgba(255,255,255,.55); outline-offset: -14px; }
#pfe-app[data-hero="framed"] .pfe-hero .pfe-kicker::before, #pfe-app[data-hero="framed"] .pfe-hero .pfe-kicker::after { content: " ❖ "; color: var(--accent); }
#pfe-app[data-hero="minimal"] .pfe-hero { background: var(--surface2); color: var(--text); }
#pfe-app[data-hero="minimal"] .pfe-hero::before { background-image: radial-gradient(circle at 85% 20%, color-mix(in srgb, var(--accent) 55%, transparent) 0, transparent 42%), radial-gradient(circle at 5% 100%, color-mix(in srgb, var(--primary) 35%, transparent) 0, transparent 50%); animation: none; transform: none; }
#pfe-app[data-hero="minimal"] .pfe-hero::after { display: none; }
#pfe-app[data-hero="minimal"] .pfe-hero h1 { color: var(--primary); font-size: clamp(34px, 5vw, 62px); }
#pfe-app[data-hero="minimal"] .pfe-hero .pfe-kicker { color: var(--accent); }
#pfe-app[data-hero="minimal"] .pfe-hero .pfe-btn.ghost { color: var(--primary) !important; box-shadow: inset 0 0 0 1.5px var(--primary); }
#pfe-app[data-hero="minimal"] .pfe-hero .pfe-qbar { background: var(--border) !important; }

/* two-line menu variants */
#pfe-app[data-nav="pills"] .pfe-menu1 .pfe-menu-in { padding-bottom: 6px; }
#pfe-app[data-nav="pills"] .pfe-m1 { border-radius: 999px; height: 36px; }
#pfe-app[data-nav="pills"] .pfe-m1.on { background: var(--primary); color: var(--primary-ink) !important; }
#pfe-app[data-nav="pills"] .pfe-m1.on::after { display: none; }
#pfe-app[data-nav="centered"] .pfe-menu-in { justify-content: safe center; }
#pfe-app[data-nav="centered"] .pfe-m1 { text-transform: uppercase; letter-spacing: .1em; font-size: 12.5px; }
#pfe-app[data-nav="centered"] .pfe-menu1 { border-top: 1px solid color-mix(in srgb, var(--accent) 60%, transparent); }
#pfe-app[data-nav="dark"] .pfe-menubar { background: var(--primary); }
#pfe-app[data-nav="dark"] .pfe-m1 { color: var(--primary-ink) !important; }
#pfe-app[data-nav="dark"] .pfe-m1:hover { background: rgba(255,255,255,.12); }
#pfe-app[data-nav="dark"] .pfe-m1.on { background: var(--surface); color: var(--primary) !important; }
#pfe-app[data-nav="underline"] .pfe-menubar { background: var(--surface); }
#pfe-app[data-nav="underline"] .pfe-menu1 { border-bottom: 1px solid var(--border); }
#pfe-app[data-nav="underline"] .pfe-menu1 .pfe-menu-in { padding-top: 0; }
#pfe-app[data-nav="underline"] .pfe-m1 { color: var(--text) !important; border-radius: 0; height: 48px; }
#pfe-app[data-nav="underline"] .pfe-m1:hover { background: none; color: var(--primary) !important; }
#pfe-app[data-nav="underline"] .pfe-m1.on { background: none; color: var(--primary) !important; }
#pfe-app[data-nav="underline"] .pfe-m1.on::after { top: auto; bottom: 0; height: 3px; border-radius: 3px 3px 0 0; }
#pfe-app[data-nav="underline"] .pfe-menu2 { background: var(--surface2); }
@media (max-width: 880px) {
	.pfe-menu2 .pfe-menu-in { flex-wrap: nowrap; overflow-x: auto; }
}

/* sign-in buttons */
.pfe-sbtn { appearance: none; width: 100%; display: flex; align-items: center; justify-content: center; gap: 10px; padding: 11px 16px; border-radius: 999px; border: 1.5px solid #dadce0; background: #fff; color: #1f1f1f !important; font: 600 14.5px var(--font-ui); cursor: pointer; transition: box-shadow .2s, transform .15s; }
.pfe-sbtn:hover { box-shadow: 0 4px 14px rgba(0,0,0,.12); transform: translateY(-1px); }
.pfe-sbtn.facebook { background: #1877f2; border-color: #1877f2; color: #fff !important; }
.pfe-sbtn.facebook svg { fill: #fff; }
.pfe-sbtn.microsoft { background: #2f2f2f; border-color: #2f2f2f; color: #fff !important; }
.pfe-g-real { display: flex; justify-content: center; min-height: 44px; }
#pfe-app[data-btn="square"] .pfe-sbtn { border-radius: 4px; }

/* header: big search box and labelled theme button */
.pfe-header-tools { flex: 1 1 auto; justify-content: flex-end; min-width: 0; }
.pfe-hsearch { flex: 0 1 460px; min-width: 200px; margin-right: 6px; }
.pfe-hsearch input { padding-top: 12px; padding-bottom: 12px; font-size: 15px; background: rgba(255,255,255,.96); color: #222; border-color: transparent; box-shadow: 0 4px 14px rgba(0,0,0,.12); }
.pfe-hsearch svg.ic { color: #666; }
#pfe-app[data-header="light"] .pfe-hsearch input { background: var(--surface2); border-color: var(--border); box-shadow: none; color: var(--text); }
.pfe-hsearch .pfe-search-results { z-index: 60; }
.pfe-labelbtn { appearance: none; display: inline-flex; align-items: center; gap: 7px; height: 42px; padding: 0 14px 0 11px; border-radius: 999px; border: 1.5px solid rgba(255,255,255,.45); background: rgba(255,255,255,.1); color: inherit; font: 600 13.5px var(--font-ui); cursor: pointer; }
.pfe-labelbtn:hover { background: rgba(255,255,255,.2); }
.pfe-labelbtn svg { width: 19px; height: 19px; }
#pfe-app[data-header="light"] .pfe-labelbtn { border-color: var(--border); background: var(--surface2); }
#pfe-app[data-shape="sharp"] :is(.pfe-labelbtn, .pfe-hsearch input) { border-radius: 4px; }
@media (max-width: 1100px) { .pfe-brand-lines span, .pfe-brand-lines i { display: none; } }
@media (max-width: 880px) {
	.pfe-header-in { flex-wrap: wrap; }
	.pfe-hsearch { order: 5; flex: 1 1 100%; margin: 4px 0 0; }
	.pfe-labelbtn span { display: none; }
}

/* slim footer */
.pfe-footer { margin-top: 18px; }
.pfe-footer .pfe-footer-bottom { border-top: 0; padding-top: 10px; padding-bottom: 10px; font-size: 12px; align-items: center; }
.pfe-foot-links { display: inline-flex; gap: 16px; flex-wrap: wrap; }
.pfe-foot-links a { font-size: 12px !important; }
.pfe-fb-org img { width: 22px; height: 22px; }

/* welcome page: plain colour, fits the window, theme chooser */
.pfe-welcome { background: #1f2a48; }
.pfe-welcome::before { background-image: none !important; background: radial-gradient(ellipse at 50% 30%, #2c3a63 0%, #1f2a48 55%, #19223b 100%); animation: none; }
.pfe-welcome::after { display: none; }
html.pfe-noscroll, html.pfe-noscroll body { overflow: hidden !important; height: 100%; }
.pfe-welcome-box.with-themes { max-width: 1240px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 40px; align-items: center; text-align: center; }
.pfe-wtheme { background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.16); border-radius: 20px; padding: 18px 18px 14px; text-align: left; animation: pfe-rise 1s .5s ease-out both; }
.pfe-wtheme-h { font-family: var(--font-ui); font-size: 12px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: #ffd9a8; margin-bottom: 12px; text-align: center; }
.pfe-wtheme-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; }
.pfe-wchip { appearance: none; display: flex; align-items: center; gap: 8px; padding: 5px 8px 5px 5px; border-radius: 10px; border: 1.5px solid transparent; background: rgba(255,255,255,.06); color: #fff; cursor: pointer; text-align: left; font: 500 12.5px var(--font-ui); transition: background .15s, border-color .15s, transform .15s; }
.pfe-wchip:hover { background: rgba(255,255,255,.14); transform: translateY(-1px); }
.pfe-wchip.on { border-color: #ffd9a8; background: rgba(255,217,168,.16); }
.pfe-wchip .sw { position: relative; flex: 0 0 auto; width: 34px; height: 24px; border-radius: 6px; box-shadow: inset 0 0 0 1px rgba(255,255,255,.25); }
.pfe-wchip .sw i { position: absolute; bottom: 3px; width: 8px; height: 8px; border-radius: 50%; box-shadow: 0 0 0 1px rgba(0,0,0,.2); }
.pfe-wchip .sw i:first-child { right: 13px; } .pfe-wchip .sw i:last-child { right: 3px; }
.pfe-wchip .nm { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pfe-wtheme-acts { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; margin-top: 12px; font: 13px var(--font-ui); color: rgba(255,255,255,.85); }
.pfe-wlink { appearance: none; border: 1px solid rgba(255,255,255,.35); background: none; color: #fff; border-radius: 999px; padding: 6px 12px; font: 600 12.5px var(--font-ui); cursor: pointer; }
.pfe-wlink:hover { background: rgba(255,255,255,.12); }
#pfe-wtheme-now { margin-left: auto; }
@media (max-width: 900px) {
	.pfe-welcome-box.with-themes { grid-template-columns: 1fr; gap: 18px; max-width: 640px; }
	.pfe-wtheme-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.pfe-welcome { display: block; }
.pfe-welcome-fit { position: absolute; left: 50%; top: 50%; width: min(1240px, calc(100vw - 24px)); transform: translate(-50%, -50%); transform-origin: center center; }
.pfe-welcome-box, .pfe-welcome-box.with-themes { margin: 0 auto; }
@media (max-width: 700px) {
	.pfe-wtheme { padding: 12px; }
	.pfe-wtheme-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
	.pfe-wchip { justify-content: center; padding: 4px; }
	.pfe-wchip .nm { display: none; }
	.pfe-wchip .sw { width: 100%; height: 30px; }
	.pfe-wtheme-acts { justify-content: center; }
	#pfe-wtheme-now { margin: 0; width: 100%; text-align: center; }
	.pfe-welcome .msg p { font-size: 14.5px; }
}
#pfe-app .pfe-welcome #pfe-enter { background: #ffd9a8 !important; color: #2a1b0a !important; box-shadow: 0 10px 26px rgba(0,0,0,.25) !important; border-radius: 999px; text-transform: none; letter-spacing: .01em; font-size: 17px; }
.pfe-account-btn { white-space: nowrap; }
@media (min-width: 900px) {
	#pfe-app[data-header="centered"] .pfe-header-in { flex-direction: column; gap: 12px; }
	#pfe-app[data-header="centered"] .pfe-header-tools { position: static; transform: none; width: 100%; justify-content: center; }
}
