/* Prompt Hubs — front end. Colours follow the theme's global palette (Kadence --global-palette*). */
.ph-card, .ph-feed, .ph-search {
	--ph-accent: var(--global-palette1, #6d28d9);
	--ph-accent-2: var(--global-palette2, #4c1d95);
	--ph-text: var(--global-palette3, #111827);
	--ph-text-2: var(--global-palette5, #4b5563);
	--ph-line: var(--global-palette7, #e5e7eb);
	--ph-soft: var(--global-palette8, #f6f5fb);
	--ph-bg: var(--global-palette9, #ffffff);
	--ph-radius: 16px;
}

/* Prompt card ------------------------------------------------------------ */
.ph-card { margin: 44px 0; padding: 40px 0 0; border-top: 1px solid #eceef3; scroll-margin-top: 90px; }
.ph-card__title { margin: 0 0 16px; font-size: 1.35em; font-weight: 700; line-height: 1.3; letter-spacing: -.01em; }
.ph-card__num { color: var(--ph-accent); margin-right: 2px; }
.ph-card__media { max-width: 520px; margin: 0 auto 16px; }
.ph-card__img { display: block; width: 100%; height: auto; border-radius: 18px; }
.ph-card__noimg { display: flex; align-items: center; justify-content: center; aspect-ratio: 3 / 4; border-radius: 18px; background: #f6f7f9; color: var(--ph-text-2); font-size: .9em; }
.ph-card__meta { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin: 0 0 16px; }
.ph-card__tip { margin: 14px 0 0; font-size: .9em; color: var(--ph-text-2); }

/* Prompt box: text preview, View / Copy, then Open-in-app buttons. */
.ph-card__prompt { container-type: inline-size; background: #fff; border: 1px solid #e7e7ec; border-radius: 20px; padding: 22px; margin: 0; box-shadow: 0 1px 2px rgba(16,24,40,.04), 0 8px 24px rgba(16,24,40,.05); }
.ph-card__text { margin: 0 0 18px; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace; font-size: 15px; line-height: 1.7; letter-spacing: .01em; white-space: pre-line; overflow-wrap: anywhere; color: #6b7280; max-height: 3.4em; overflow: hidden; -webkit-mask-image: linear-gradient(#000 45%, transparent); mask-image: linear-gradient(#000 45%, transparent); }
.ph-card__prompt.is-open .ph-card__text, .ph-card__prompt.is-short .ph-card__text { max-height: none; -webkit-mask-image: none; mask-image: none; color: #374151; }
.ph-card__prompt.is-short .ph-card__more { display: none; }
.ph-card__row { display: flex; gap: 12px; }
.ph-card__row + .ph-card__row { margin-top: 12px; }
.ph-card__row > .ph-btn { flex: 1 1 0; min-width: 0; }

.ph-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: .62em 1.05em; border-radius: 12px; border: 0; font-family: inherit; font-weight: 700; font-size: .9em; line-height: 1.2; text-decoration: none; white-space: nowrap; cursor: pointer; transition: transform .15s ease, box-shadow .15s ease, filter .15s ease, background-color .15s ease; }
.ph-btn:hover { transform: translateY(-1px); }
.ph-btn:active { transform: translateY(0); }
.ph-btn:focus-visible { outline: 3px solid rgba(59,130,246,.45); outline-offset: 2px; }
.ph-ico { flex: none; width: 20px; height: 20px; }
.ph-logo { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.18); }
.ph-logo img { display: block; width: 18px; height: 18px; margin: 0; border-radius: 4px; }
.ph-logo.is-broken { display: none; }
.ph-card__row .ph-btn { min-height: 52px; padding: 0 14px; font-size: 17px; border-radius: 14px; }
.ph-card__row .ph-btn span { overflow: hidden; text-overflow: ellipsis; }
.ph-btn--main, .ph-btn--main:visited { background: #f9650b; color: #fff; box-shadow: 0 6px 16px rgba(249,101,11,.28); }
.ph-btn--main:hover, .ph-btn--main:focus { background: #ea580c; color: #fff; box-shadow: 0 10px 22px rgba(249,101,11,.34); }
.ph-btn--copy.is-done, .ph-btn--copy.is-done:hover { background: #16a34a; box-shadow: 0 6px 16px rgba(22,163,74,.3); }
.ph-btn--app, .ph-btn--app:visited, .ph-btn--app:hover, .ph-btn--app:focus { color: #fff; }
.ph-app-chatgpt { background: #1a9a6c; box-shadow: 0 6px 16px rgba(26,154,108,.26); }
.ph-app-gemini { background: #1a5fe0; box-shadow: 0 6px 16px rgba(26,95,224,.26); }
.ph-app-grok { background: #0f1520; box-shadow: 0 6px 16px rgba(15,21,32,.24); }
.ph-btn--app:hover { filter: brightness(1.08); }
.ph-btn--ghost { background: transparent; color: var(--ph-accent); border: 1.5px solid var(--ph-accent); }

/* Narrow boxes (phones, or a narrow column): tighter spacing, smaller labels. */
@container (max-width: 440px) {
	.ph-card__text { font-size: 14px; margin-bottom: 14px; }
	.ph-card__row { gap: 8px; }
	.ph-card__row + .ph-card__row { margin-top: 8px; }
	.ph-card__row .ph-btn { min-height: 48px; padding: 0 8px; gap: 6px; font-size: 15px; border-radius: 12px; }
	.ph-card__row .ph-ico { width: 18px; height: 18px; }
}
@container (max-width: 380px) {
	.ph-card__row--apps .ph-btn { flex-direction: column; gap: 5px; min-height: 64px; padding: 8px 4px; font-size: 13.5px; }
	.ph-card__row--apps .ph-logo { width: 24px; height: 24px; }
	.ph-card__row--apps .ph-logo img { width: 16px; height: 16px; }
}
@container (max-width: 300px) {
	.ph-card__row .ph-btn { padding: 0 6px; gap: 5px; font-size: 14px; }
	.ph-card__row .ph-ico { width: 16px; height: 16px; }
}
@container (max-width: 240px) {
	.ph-card__row .ph-ico { display: none; }
	.ph-card__row--apps .ph-btn { padding: 8px 2px; font-size: 12.5px; }
}
@media (max-width: 600px) {
	.ph-card { margin: 32px 0; padding-top: 28px; }
	.ph-card__title { font-size: 1.2em; }
	.ph-card__prompt { padding: 16px; border-radius: 18px; }
}
@media (prefers-reduced-motion: reduce) {
	.ph-btn, .ph-btn:hover { transition: none; transform: none; }
}

/* Chips ------------------------------------------------------------------ */
.ph-chip { display: inline-flex; align-items: center; gap: 6px; padding: .35em .8em; border-radius: 999px; background: var(--ph-soft); border: 1px solid var(--ph-line); color: var(--ph-text); font-size: .82em; font-weight: 500; line-height: 1.3; text-decoration: none; cursor: pointer; }
a.ph-chip:hover, button.ph-chip:hover { border-color: var(--ph-accent); color: var(--ph-accent); }
.ph-chip--tool.ph-tool-gemini { background: #e8f0fe; border-color: #c6dafc; color: #174ea6; }
.ph-chip--tool.ph-tool-chatgpt { background: #e6f6f1; border-color: #bfe6da; color: #0b7a5f; }
.ph-chip--tool.ph-tool-grok { background: #f1f1f1; border-color: #d6d6d6; color: #111; }
.ph-chip__count { font-size: .85em; color: var(--ph-text-2); }
.ph-filter[aria-pressed="true"] { background: var(--ph-accent); border-color: var(--ph-accent); color: #fff; }

/* Feeds ------------------------------------------------------------------ */
.ph-feed { margin: 40px 0; }
.ph-feed__title { margin: 0 0 16px; }
.ph-grid--posts { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 18px; }
.ph-tile { display: flex; flex-direction: column; gap: 8px; color: var(--ph-text); text-decoration: none; }
.ph-tile__img { display: block; aspect-ratio: 3 / 4; overflow: hidden; border-radius: 14px; background: var(--ph-soft); }
.ph-tile__img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s ease; }
.ph-tile:hover .ph-tile__img img { transform: scale(1.03); }
.ph-tile__hub { font-size: .75em; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; color: var(--ph-accent); }
.ph-tile__title { font-weight: 600; line-height: 1.35; }
.ph-tile:hover .ph-tile__title { color: var(--ph-accent); }

.ph-filters { display: flex; flex-direction: column; gap: 8px; margin: 0 0 16px; }
.ph-filters__row { display: flex; flex-wrap: wrap; gap: 6px; }
.ph-gallery { columns: 2 160px; column-gap: 14px; }
@media (min-width: 900px) { .ph-gallery { columns: 4 180px; } }
.ph-shot { display: block; break-inside: avoid; margin: 0 0 14px; position: relative; border-radius: 14px; overflow: hidden; color: #fff; text-decoration: none; background: var(--ph-soft); }
.ph-shot[hidden] { display: none; }
.ph-shot img { display: block; width: 100%; height: auto; }
.ph-shot__title { position: absolute; left: 0; right: 0; bottom: 0; padding: 28px 10px 9px; font-size: .8em; font-weight: 600; line-height: 1.3; background: linear-gradient(transparent, rgba(0,0,0,.72)); }
.ph-more-wrap { text-align: center; margin: 18px 0 0; }

.ph-pages { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin: 24px 0 0; }
.ph-pages__item { min-width: 40px; padding: .45em .7em; border-radius: 10px; border: 1px solid var(--ph-line); text-align: center; text-decoration: none; color: var(--ph-text); }
.ph-pages__item.is-current { background: var(--ph-accent); border-color: var(--ph-accent); color: #fff; }
.ph-pages__gap { padding: .45em .3em; }

/* Hub links: one card per group. */
.ph-hubs > .ph-feed__title { text-align: center; margin-bottom: 22px; }
.ph-hubs__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; }
@media (min-width: 760px) {
	.ph-hubs__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.ph-hubs__group--festivals { grid-column: 1 / -1; }
}
.ph-hubs__group { margin: 0; padding: 22px; background: #fff; border: 1px solid #ebe9f5; border-radius: 22px; box-shadow: 0 1px 2px rgba(16,24,40,.04), 0 10px 28px rgba(76,29,149,.06); transition: box-shadow .2s ease, transform .2s ease; }
.ph-hubs__group:hover { box-shadow: 0 1px 2px rgba(16,24,40,.04), 0 16px 36px rgba(76,29,149,.1); }
.ph-hubs .ph-hubs__name { display: flex; align-items: center; gap: 10px; margin: 0 0 16px; font-size: 13px; font-weight: 700; line-height: 1.3; letter-spacing: .1em; text-transform: uppercase; color: #374151; }
.ph-hubs__icon { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 11px; color: #fff; background: linear-gradient(135deg, #7c3aed, #db2777); box-shadow: 0 6px 14px rgba(124,58,237,.25); }
.ph-hubs__group--people .ph-hubs__icon { background: linear-gradient(135deg, #2563eb, #06b6d4); box-shadow: 0 6px 14px rgba(37,99,235,.25); }
.ph-hubs__group--ai-tools .ph-hubs__icon { background: linear-gradient(135deg, #f97316, #db2777); box-shadow: 0 6px 14px rgba(249,115,22,.25); }
.ph-hubs__links { display: flex; flex-wrap: wrap; gap: 10px; }
.ph-hubs .ph-chip--hub { padding: .55em 1.05em; font-size: 15px; font-weight: 600; background: #f7f6fc; border-color: #ece9f7; color: #1f2937; transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease, color .15s ease, background .15s ease; }
.ph-hubs .ph-chip--hub:hover, .ph-hubs .ph-chip--hub:focus-visible { transform: translateY(-2px); background: #fff; border-color: #c4b5fd; color: #6d28d9; box-shadow: 0 8px 18px rgba(124,58,237,.14); }
@media (max-width: 600px) {
	.ph-hubs__group { padding: 18px; border-radius: 18px; }
	.ph-hubs__links { gap: 8px; }
	.ph-hubs .ph-chip--hub { font-size: 14px; }
}

/* Full-width pages (home, hubs): keep the sections inside the site's content width. */
.content-width-fullwidth .entry-content > .ph-feed { box-sizing: border-box; width: 100%; max-width: var(--global-content-width, 1290px); margin-left: auto; margin-right: auto; padding-left: var(--global-content-edge-padding, 1.5rem); padding-right: var(--global-content-edge-padding, 1.5rem); }
@media (prefers-reduced-motion: reduce) {
	.ph-hubs__group, .ph-hubs .ph-chip--hub { transition: none; }
	.ph-hubs .ph-chip--hub:hover { transform: none; }
}
.ph-chip--hub { font-size: .9em; padding: .45em .95em; }

/* Chat search (Gemini-style) ------------------------------------------- */
@property --ph-angle { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
.ph-search {
	--ph-g1: #4f7cff; --ph-g2: #9b6bff; --ph-g3: #ff5fa2; --ph-g4: #ffb347;
	position: relative; isolation: isolate; max-width: 820px; margin: 0 auto; padding: 9vh 0 40px;
}
.ph-search::before, .ph-search::after {
	content: ""; position: absolute; z-index: -1; pointer-events: none; border-radius: 50%; filter: blur(60px); opacity: .55;
}
.ph-search::before {
	width: 420px; height: 420px; left: -8%; top: 2%;
	background: radial-gradient(circle at 30% 30%, rgba(79,124,255,.55), rgba(155,107,255,.25) 55%, transparent 70%);
	animation: ph-drift-a 16s ease-in-out infinite alternate;
}
.ph-search::after {
	width: 380px; height: 380px; right: -6%; top: 12%;
	background: radial-gradient(circle at 60% 40%, rgba(255,95,162,.45), rgba(255,179,71,.22) 55%, transparent 70%);
	animation: ph-drift-b 19s ease-in-out infinite alternate;
}
@keyframes ph-drift-a { 0% { transform: translate(0, 0) scale(1); } 50% { transform: translate(18%, 12%) scale(1.12); } 100% { transform: translate(6%, -8%) scale(.95); } }
@keyframes ph-drift-b { 0% { transform: translate(0, 0) scale(1); } 50% { transform: translate(-16%, 10%) scale(1.1); } 100% { transform: translate(-4%, -10%) scale(.92); } }
/* Full-width pages: give the hero the same side space as the rest of the site. */
.content-width-fullwidth .entry-content > .ph-search { box-sizing: border-box; max-width: calc(820px + 2 * var(--global-content-edge-padding, 1.5rem)); padding-left: var(--global-content-edge-padding, 1.5rem); padding-right: var(--global-content-edge-padding, 1.5rem); }
@media (max-width: 860px) {
	.ph-search { overflow-x: clip; padding-top: 6vh; }
	.ph-search::before, .ph-search::after { width: 70vw; height: 70vw; }
}

.ph-search__hello { text-align: center; margin: 0 0 30px; }
.ph-search__greeting {
	margin: 0 0 10px; font-size: clamp(2rem, 5.6vw, 3.5rem); font-weight: 600; line-height: 1.12; letter-spacing: -.02em;
	background: linear-gradient(90deg, var(--ph-g1), var(--ph-g2) 25%, var(--ph-g3) 50%, var(--ph-g2) 75%, var(--ph-g1));
	background-size: 250% 100%; -webkit-background-clip: text; background-clip: text; color: transparent;
	animation: ph-shine 9s linear infinite;
}
@keyframes ph-shine { to { background-position: 250% 0; } }
.ph-search__sub { margin: 0; color: var(--ph-text-2); font-size: clamp(1rem, 2.2vw, 1.2rem); }

.ph-search__form {
	position: relative; display: flex; align-items: center; gap: 8px;
	background: var(--ph-bg); border-radius: 30px; padding: 10px 10px 10px 26px;
	box-shadow: 0 12px 40px rgba(31, 41, 55, .10);
}
.ph-search__form::before {
	content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 2px; pointer-events: none;
	background: conic-gradient(from var(--ph-angle), var(--ph-g1), var(--ph-g2), var(--ph-g3), var(--ph-g4), var(--ph-g1));
	-webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
	mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
	animation: ph-spin 5s linear infinite;
}
.ph-search__form::after {
	content: ""; position: absolute; inset: 8px; z-index: -1; border-radius: inherit; pointer-events: none;
	background: conic-gradient(from var(--ph-angle), var(--ph-g1), var(--ph-g2), var(--ph-g3), var(--ph-g4), var(--ph-g1));
	filter: blur(24px); opacity: .45; animation: ph-spin 5s linear infinite;
}
.ph-search__form:focus-within::after { opacity: .7; }
@keyframes ph-spin { to { --ph-angle: 360deg; } }
.ph-search__input {
	position: relative; flex: 1; min-width: 0; border: 0 !important; outline: 0; box-shadow: none !important;
	background: transparent !important; color: var(--ph-text); font-size: 1.12em; padding: 14px 6px 14px 0 !important;
}
.ph-search__input::placeholder { color: var(--ph-text-2); opacity: .8; }
.ph-search__send {
	position: relative; flex: none; width: 50px; height: 50px; border: 0; border-radius: 50%; padding: 0; cursor: pointer;
	display: inline-flex; align-items: center; justify-content: center; color: #fff;
	background: linear-gradient(135deg, var(--ph-g1), var(--ph-g2) 50%, var(--ph-g3));
	box-shadow: 0 6px 18px rgba(155, 107, 255, .35); transition: transform .15s ease;
}
.ph-search__send:hover { transform: scale(1.06); }

.ph-search__chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 22px 0 0; }
.ph-search .ph-suggest {
	background: rgba(255, 255, 255, .75); backdrop-filter: blur(6px); border: 1px solid var(--ph-line);
	border-radius: 14px; padding: .6em 1em; font-size: .9em; transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.ph-search .ph-suggest:hover { transform: translateY(-2px); box-shadow: 0 6px 16px rgba(31, 41, 55, .08); border-color: var(--ph-g2); color: var(--ph-text); }

/* Conversation */
.ph-search__log { display: flex; flex-direction: column; gap: 18px; margin: 0 0 22px; }
.ph-search__log:empty { display: none; }
.ph-search.has-chat { padding-top: 3vh; }
.ph-search.has-chat .ph-search__hello { margin-bottom: 18px; }
.ph-search.has-chat .ph-search__greeting { font-size: clamp(1.5rem, 3.6vw, 2.1rem); }
.ph-search.has-chat .ph-search__sub, .ph-search.has-chat .ph-search__chips { display: none; }
.ph-search.has-chat .ph-search__form { position: sticky; bottom: 16px; z-index: 5; box-shadow: 0 10px 36px rgba(155, 107, 255, .28); }
.ph-search.has-chat .ph-search__form::after { display: none; }
.ph-msg { max-width: 100%; animation: ph-rise .35s ease both; }
@keyframes ph-rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.ph-msg--user { align-self: flex-end; max-width: 80%; background: #eef2fb; border-radius: 22px 22px 6px 22px; padding: 12px 18px; font-weight: 500; color: var(--ph-text); }
.ph-msg--bot { align-self: stretch; position: relative; padding-left: 46px; }
.ph-msg--bot::before {
	content: ""; position: absolute; left: 0; top: 2px; width: 30px; height: 30px;
	background: conic-gradient(from var(--ph-angle), var(--ph-g1), var(--ph-g2), var(--ph-g3), var(--ph-g4), var(--ph-g1));
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 0c.6 6.4 5.6 11.4 12 12-6.4.6-11.4 5.6-12 12-.6-6.4-5.6-11.4-12-12C6.4 11.4 11.4 6.4 12 0z'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 0c.6 6.4 5.6 11.4 12 12-6.4.6-11.4 5.6-12 12-.6-6.4-5.6-11.4-12-12C6.4 11.4 11.4 6.4 12 0z'/%3E%3C/svg%3E") center / contain no-repeat;
	animation: ph-spin 4s linear infinite;
}
.ph-msg__text { margin: 4px 0 12px; font-size: 1.05em; }
.ph-msg__hubs { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 14px; }
.ph-msg__label { font-size: .75em; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--ph-text-2); margin: 14px 0 8px; }
.ph-msg__cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 12px; }
.ph-mini { display: flex; flex-direction: column; gap: 5px; color: var(--ph-text); text-decoration: none; font-size: .8em; line-height: 1.3; }
.ph-mini img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 14px; display: block; transition: transform .2s ease; }
.ph-mini:hover img { transform: scale(1.03); }
.ph-msg__posts { display: flex; flex-direction: column; gap: 8px; }
.ph-row { display: flex; gap: 12px; align-items: center; padding: 10px; border: 1px solid var(--ph-line); border-radius: 16px; color: var(--ph-text); text-decoration: none; background: var(--ph-bg); transition: border-color .15s ease; }
.ph-row:hover { border-color: var(--ph-g2); }
.ph-row img, .ph-row__ph { width: 56px; height: 56px; object-fit: cover; border-radius: 10px; flex: none; background: var(--ph-soft); }
.ph-row__text { display: flex; flex-direction: column; }
.ph-row__title { font-weight: 600; line-height: 1.3; }
.ph-row__hub { font-size: .78em; color: var(--ph-g2); font-weight: 600; }
.ph-typing { display: block; padding: 6px 0; }
.ph-typing i { display: block; height: 12px; border-radius: 6px; margin: 0 0 8px; background: linear-gradient(90deg, #e8ecf6, #d7defc, #f3dcec, #e8ecf6); background-size: 300% 100%; animation: ph-load 1.6s linear infinite; }
.ph-typing i:nth-child(1) { width: 92%; }
.ph-typing i:nth-child(2) { width: 78%; }
.ph-typing i:nth-child(3) { width: 55%; }
@keyframes ph-load { to { background-position: -300% 0; } }

/* Toast ------------------------------------------------------------------ */
.ph-toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); max-width: min(92vw, 520px); background: #111827; color: #fff; padding: 12px 18px; border-radius: 12px; font-size: .9em; box-shadow: 0 10px 30px rgba(0,0,0,.25); opacity: 0; pointer-events: none; transition: opacity .2s ease, transform .2s ease; z-index: 99999; }
.ph-toast.is-on { opacity: 1; transform: translate(-50%, 0); }

@media (prefers-reduced-motion: reduce) {
	.ph-btn, .ph-tile__img img, .ph-toast, .ph-search__send, .ph-search .ph-suggest { transition: none; }
	.ph-typing i, .ph-search::before, .ph-search::after, .ph-search__greeting, .ph-search__form::before, .ph-search__form::after, .ph-msg, .ph-msg--bot::before { animation: none; }
}

/* Author card (sidebar) ---------------------------------------------------- */
.ph-author { max-width: 560px; margin: 0 auto; padding: 28px 24px 24px; background: #fff; border: 1px solid #eceef3; border-radius: 20px; text-align: center; box-shadow: 0 1px 2px rgba(16,24,40,.03); }
.ph-author .ph-author__body { padding: 0; }
.ph-author .ph-author__ring { display: inline-block; padding: 3px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 1px #e5e7eb; text-decoration: none; }
.ph-author .ph-author__photo { display: block; width: 92px; height: 92px; margin: 0; border-radius: 50%; object-fit: cover; background: #f3f4f6; }
.ph-author .ph-author__eyebrow { margin: 16px 0 4px; font-size: 11px; font-weight: 600; letter-spacing: .14em; line-height: 1.4; text-transform: uppercase; color: #94a3b8; }
.ph-author .ph-author__name { margin: 0; font-size: 21px; font-weight: 700; line-height: 1.25; letter-spacing: -.01em; }
.ph-author .ph-author__name a { color: #0f172a; text-decoration: none; }
.ph-author .ph-author__name a:hover { color: var(--global-palette1, #6d28d9); }
.ph-author .ph-author__role { margin: 6px 0 0; font-size: 14px; font-weight: 500; line-height: 1.45; color: #334155; }
.ph-author .ph-author__loc { display: inline-flex; align-items: center; gap: 4px; margin: 4px 0 0; font-size: 13px; line-height: 1.4; color: #64748b; }
.ph-author .ph-author__stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); margin: 20px 0 0; padding: 14px 0; list-style: none; border-top: 1px solid #eceef3; border-bottom: 1px solid #eceef3; }
.ph-author .ph-author__stats li { display: flex; flex-direction: column; gap: 2px; margin: 0; padding: 0 4px; }
.ph-author .ph-author__stats li + li { border-left: 1px solid #eceef3; }
.ph-author .ph-author__stats strong { font-size: 18px; font-weight: 700; line-height: 1.15; color: #0f172a; }
.ph-author .ph-author__stats span { font-size: 11px; font-weight: 500; letter-spacing: .06em; line-height: 1.3; text-transform: uppercase; color: #64748b; }
.ph-author .ph-author__bio { margin: 16px 0 0; font-size: 14px; line-height: 1.65; color: #475569; }
.ph-author .ph-author__social { display: flex; justify-content: center; gap: 8px; margin: 18px 0 0; }
.ph-author .ph-author__soc { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 50%; border: 1px solid #e5e7eb; background: #fff; color: #334155; text-decoration: none; transition: background .15s ease, color .15s ease, border-color .15s ease; }
.ph-author .ph-author__soc svg { width: 16px; height: 16px; fill: currentColor; }
.ph-author .ph-author__soc:hover { background: #0f172a; border-color: #0f172a; color: #fff; }
.ph-author .ph-author__soctext { font-size: 12px; font-weight: 700; }
@media (prefers-reduced-motion: reduce) {
	.ph-author .ph-author__soc { transition: none; }
}


/* Sidebar list (Hub Posts, list layout) -------------------------------------- */
.ph-feed.ph-feed--list { margin: 0; }
.ph-feed--list .ph-feed__title { margin: 0 0 12px; font-size: 12px; font-weight: 600; letter-spacing: .14em; line-height: 1.4; text-transform: uppercase; color: #94a3b8; }
.ph-list { display: flex; flex-direction: column; gap: 2px; margin: 0; padding: 0; list-style: none; }
.ph-list li { margin: 0; padding: 0; }
.ph-list__item { display: flex; align-items: center; gap: 12px; margin: 0 -8px; padding: 8px; border-radius: 12px; color: inherit; text-decoration: none; transition: background .15s ease; }
.ph-list__item:hover { background: #f8fafc; }
.ph-list__img { flex: none; width: 60px; height: 60px; overflow: hidden; border-radius: 10px; background: #f1f5f9; }
.ph-list__img img { display: block; width: 100%; height: 100%; object-fit: cover; }
.ph-list__text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ph-list__hub { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--global-palette1, #6d28d9); }
.ph-list__title { display: -webkit-box; overflow: hidden; font-size: 14px; font-weight: 600; line-height: 1.35; color: #0f172a; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.ph-list__item:hover .ph-list__title { color: var(--global-palette1, #6d28d9); }
.widget-area .ph-feed--list { padding: 22px 22px 14px; background: #fff; border: 1px solid #eceef3; border-radius: 20px; }

/* Hub prompts and source line ------------------------------------------------ */
.ph-card__from { margin: 10px 0 0; font-size: 13.5px; color: #64748b; }
.ph-card__from a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.ph-card__from a:hover { color: var(--global-palette1, #6d28d9); }
.ph-feed.ph-feed--prompts { margin: 32px 0 40px; }
.ph-feed--prompts > .ph-feed__title { margin-bottom: 0; }

/* Compact search (hub pages that read like an article) ------------------------ */
.ph-search.ph-search--compact { max-width: none; padding: 4px 0 28px; }
.ph-search--compact::before, .ph-search--compact::after { width: 280px; height: 280px; opacity: .3; }
.ph-search--compact .ph-search__hello { margin: 0 0 22px; text-align: left; }
.ph-search--compact .ph-search__greeting { margin: 0 0 12px; font-size: clamp(1.9rem, 4.4vw, 2.8rem); font-weight: 800; line-height: 1.15; }
.ph-search--compact .ph-search__sub { max-width: 680px; font-size: 1.05rem; }
.ph-search--compact .ph-search__chips { justify-content: flex-start; }
.ph-search__byline { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 16px 0 0; font-size: 14px; color: #64748b; }
.ph-search__byline a { color: #0f172a; font-weight: 600; text-decoration: none; }
.ph-search__byline a:hover { color: var(--global-palette1, #6d28d9); }
.ph-search__byline .ph-search__avatar { width: 28px; height: 28px; margin: 0; border-radius: 50%; }
@media (max-width: 860px) {
	.ph-search.ph-search--compact { padding-top: 4px; }
}

/* FAQ accordion (Kadence Blocks) in the site style -------------------------- */
.entry-content .kt-accordion-wrap .kt-accordion-pane { margin-top: 10px; }
.entry-content .kt-accordion-wrap .kt-accordion-header-wrap { margin: 0; }
.entry-content .kt-accordion-wrap .kt-blocks-accordion-header { padding: 15px 18px; background: #fff; border: 1px solid #eceef3; border-radius: 14px; color: #0f172a; font-size: 16.5px; font-weight: 600; line-height: 1.4; transition: background .15s ease, border-color .15s ease, color .15s ease; }
.entry-content .kt-accordion-wrap .kt-blocks-accordion-header:hover { background: #f8fafc; color: #0f172a; }
.entry-content .kt-accordion-wrap .kt-blocks-accordion-header.kt-accordion-panel-active { background: #f5f3ff; border-color: #ddd6fe; border-radius: 14px 14px 0 0; color: #4c1d95; }
.entry-content .kt-accordion-wrap .kt-blocks-accordion-header .kt-blocks-accordion-icon-trigger::before,
.entry-content .kt-accordion-wrap .kt-blocks-accordion-header .kt-blocks-accordion-icon-trigger::after { background: currentColor; }
.entry-content .kt-accordion-wrap .kt-accordion-panel-inner { padding: 14px 18px 4px; border: 1px solid #ddd6fe; border-top: 0; border-radius: 0 0 14px 14px; }
.entry-content .kt-accordion-wrap .kt-accordion-panel-inner p { margin: 0 0 10px; color: #334155; font-size: 16px; line-height: 1.7; }

/* Hub gallery (subdomain pages): photos only, a tap opens the prompt ---------- */
.ph-feed--masonry > .ph-feed__title { margin-bottom: 18px; }
.ph-masonry { columns: 2; column-gap: 12px; }
@media (min-width: 640px) { .ph-masonry { columns: 3; column-gap: 14px; } }
@media (min-width: 980px) { .ph-masonry { columns: 4; column-gap: 16px; } }
.ph-pin { break-inside: avoid; margin: 0 0 12px; scroll-margin-top: 90px; }
@media (min-width: 640px) { .ph-pin { margin-bottom: 14px; } }
@media (min-width: 980px) { .ph-pin { margin-bottom: 16px; } }
.ph-pin > .ph-card { display: none; }
.ph-pin__open { position: relative; display: block; width: 100%; margin: 0; padding: 0; border: 0; border-radius: 16px; overflow: hidden; background: #f1f5f9; color: inherit; font: inherit; text-align: left; cursor: zoom-in; -webkit-tap-highlight-color: transparent; }
.ph-pin__open:focus-visible { outline: 3px solid rgba(109,40,217,.5); outline-offset: 3px; }
.ph-pin__img { display: block; width: 100%; height: auto; margin: 0; border-radius: 0; transition: transform .35s ease, filter .35s ease; }
.ph-pin__cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 36px 14px 12px; background: linear-gradient(transparent, rgba(0,0,0,.72)); color: #fff; font-size: 14px; font-weight: 600; line-height: 1.35; opacity: 0; transform: translateY(6px); transition: opacity .25s ease, transform .25s ease; }
.ph-pin__badge { position: absolute; top: 10px; left: 10px; padding: 4px 9px; border-radius: 999px; background: rgba(255,255,255,.92); color: #0f172a; font-size: 11.5px; font-weight: 700; line-height: 1.2; opacity: 0; transition: opacity .25s ease; }
@media (hover: hover) {
	.ph-pin__open:hover .ph-pin__img { transform: scale(1.04); filter: brightness(.92); }
	.ph-pin__open:hover .ph-pin__cap, .ph-pin__open:focus-visible .ph-pin__cap, .ph-pin__open:hover .ph-pin__badge { opacity: 1; transform: none; }
}
.ph-pin__text { display: flex; flex-direction: column; justify-content: space-between; gap: 14px; min-height: 220px; padding: 18px; color: #fff; background: linear-gradient(150deg, #7c3aed, #db2777); }
.ph-pin__text--1 { background: linear-gradient(150deg, #2563eb, #06b6d4); }
.ph-pin__text--2 { background: linear-gradient(150deg, #f97316, #db2777); }
.ph-pin__text--3 { background: linear-gradient(150deg, #0f172a, #4c1d95); }
.ph-pin__label { font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; opacity: .8; }
.ph-pin__ttl { font-size: 18px; font-weight: 700; line-height: 1.3; }
.ph-pin__hint { font-size: 13px; font-weight: 600; opacity: .85; }
.ph-feed--masonry .ph-pages { margin-top: 28px; }

/* Prompt popup ------------------------------------------------------------------ */
html.ph-lock, html.ph-lock body { overflow: hidden; }
.ph-modal { position: fixed; inset: 0; z-index: 100000; width: 100%; max-width: none; height: 100%; max-height: none; margin: 0; padding: 0; border: 0; background: transparent; color: #0f172a; overflow: hidden; }
.ph-modal:not([open]) { display: none; }
.ph-modal[open] { display: flex; align-items: center; justify-content: center; }
.ph-modal::backdrop { background: rgba(15,23,42,.78); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.ph-modal:not(:modal)[open] { background: rgba(15,23,42,.78); }
.ph-modal__box { position: relative; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(320px, 1fr); width: min(1120px, calc(100vw - 48px)); height: min(860px, calc(100vh - 48px)); height: min(860px, calc(100dvh - 48px)); background: #fff; border-radius: 24px; overflow: hidden; box-shadow: 0 30px 80px rgba(0,0,0,.35); animation: ph-pop .22s ease both; }
@keyframes ph-pop { from { opacity: 0; transform: translateY(10px) scale(.985); } to { opacity: 1; transform: none; } }
.ph-modal__media { display: flex; align-items: center; justify-content: center; min-height: 0; background: #f5f5f7; }
.ph-modal__media img { display: block; max-width: 100%; max-height: 100%; width: auto; height: auto; margin: 0; object-fit: contain; }
.ph-modal__panel { min-height: 0; overflow-y: auto; padding: 30px 28px 28px; overscroll-behavior: contain; }
.ph-modal__box.is-text { grid-template-columns: minmax(0, 1fr); width: min(640px, calc(100vw - 48px)); height: auto; max-height: calc(100vh - 48px); max-height: calc(100dvh - 48px); }
.ph-modal__box.is-text .ph-modal__media, .ph-modal__box.is-text .ph-modal__nav { display: none; }
.ph-modal__btn { position: absolute; z-index: 2; display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; margin: 0; padding: 0; border: 0; border-radius: 50%; background: rgba(255,255,255,.94); color: #0f172a; cursor: pointer; box-shadow: 0 2px 10px rgba(0,0,0,.15); transition: background .15s ease, transform .15s ease; }
.ph-modal__btn:hover { background: #fff; transform: scale(1.06); }
.ph-modal__btn:focus-visible { outline: 3px solid rgba(109,40,217,.55); outline-offset: 2px; }
.ph-modal__btn:disabled { opacity: 0; pointer-events: none; }
.ph-modal__close { top: 14px; right: 14px; }
.ph-modal__nav { top: 50%; transform: translateY(-50%); }
.ph-modal__nav:hover { transform: translateY(-50%) scale(1.06); }
.ph-modal__prev { left: 14px; }
.ph-modal__next { left: calc(54.5% - 56px); }
.ph-modal .ph-card { margin: 0; padding: 0; border: 0; }
.ph-modal .ph-card__title { margin: 0 48px 14px 0; font-size: 1.45em; font-weight: 800; line-height: 1.25; }
.ph-modal .ph-card__meta { justify-content: flex-start; }
.ph-modal .ph-card__prompt { padding: 18px; }
.ph-modal .ph-card__more { display: none; }
.ph-modal .ph-card__text { max-height: none; -webkit-mask-image: none; mask-image: none; color: #374151; }
@media (max-width: 860px) {
	.ph-modal[open] { align-items: stretch; }
	.ph-modal__box, .ph-modal__box.is-text { display: block; width: 100%; height: 100%; max-height: none; border-radius: 0; overflow-y: auto; overscroll-behavior: contain; animation-name: ph-up; }
	@keyframes ph-up { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
	.ph-modal__media { position: relative; height: auto; min-height: 0; background: #0f172a; }
	.ph-modal__media img { width: 100%; max-height: 62vh; max-height: 62dvh; }
	.ph-modal__panel { overflow: visible; padding: 22px 18px calc(28px + env(safe-area-inset-bottom)); }
	.ph-modal__box.is-text .ph-modal__panel { padding-top: 64px; }
	.ph-modal__close { position: fixed; top: calc(12px + env(safe-area-inset-top)); right: 12px; }
	.ph-modal__nav, .ph-modal__nav:hover { position: fixed; top: calc(12px + env(safe-area-inset-top)); transform: none; }
	.ph-modal__prev { left: 12px; }
	.ph-modal__next { left: 62px; right: auto; }
	.ph-modal__prev:disabled + .ph-modal__next { left: 12px; }
	.ph-modal .ph-card__title { margin-right: 0; font-size: 1.25em; }
	.ph-modal .ph-card__prompt { padding: 16px; }
}

/* YouTube tutorial ----------------------------------------------------------------- */
.ph-video { margin: 44px 0; }
.ph-video__title { margin: 0 0 16px; }
.ph-video__frame { position: relative; max-width: 860px; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 20px; background: #0f172a; box-shadow: 0 10px 30px rgba(15,23,42,.14); }
.ph-video--short .ph-video__frame { max-width: 360px; aspect-ratio: 9 / 16; }
.ph-video__play { position: absolute; inset: 0; display: block; width: 100%; height: 100%; margin: 0; padding: 0; border: 0; background: #0f172a; cursor: pointer; }
.ph-video__play img { display: block; width: 100%; height: 100%; margin: 0; object-fit: cover; opacity: .92; transition: opacity .2s ease, transform .3s ease; }
.ph-video__play:hover img { opacity: 1; transform: scale(1.02); }
.ph-video__icon { position: absolute; left: 50%; top: 50%; display: inline-flex; align-items: center; justify-content: center; width: 76px; height: 54px; border-radius: 16px; background: #ff0033; color: #fff; transform: translate(-50%, -50%); box-shadow: 0 8px 24px rgba(0,0,0,.35); transition: transform .15s ease; }
.ph-video__play:hover .ph-video__icon { transform: translate(-50%, -50%) scale(1.08); }
.ph-video__play:focus-visible { outline: 3px solid rgba(109,40,217,.6); outline-offset: -3px; }
.ph-video__iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.ph-video__link { margin: 10px 0 0; font-size: 14px; }
.ph-video__link a { color: #64748b; }
.ph-video__link a:hover { color: var(--global-palette1, #6d28d9); }

/* Hub pages: no sidebar; reading text keeps a comfortable width; sidebar widgets at the end. */
.ph-hub-page .entry-content > :is(p, h2, h3, h4, ul, ol, .wp-block-kadence-accordion) { max-width: 860px; }
.ph-hub-end { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); align-items: start; gap: 24px; margin: 56px 0 0; padding: 40px 0 0; border-top: 1px solid #eceef3; }
.ph-hub-end > * { margin: 0; min-width: 0; }
.ph-hub-end .ph-author { max-width: none; }
.ph-hub-end .ph-feed--list { padding: 22px 22px 14px; background: #fff; border: 1px solid #eceef3; border-radius: 20px; }

/* Search bar fixed to the bottom of every page ----------------------------------- */
.ph-dock-space { height: 96px; }
.ph-dock { position: fixed; left: 0; right: 0; bottom: 0; z-index: 9990; padding: 22px 16px calc(14px + env(safe-area-inset-bottom)); pointer-events: none; background: linear-gradient(to top, rgba(255,255,255,.96) 40%, rgba(255,255,255,0)); transition: transform .3s ease, opacity .3s ease; }
.ph-dock.is-away { transform: translateY(110%); opacity: 0; }
.ph-dock.is-away * { pointer-events: none !important; }
.ph-search.ph-search--dock { max-width: 760px; margin: 0 auto; padding: 0; pointer-events: auto; }
.ph-search--dock::before, .ph-search--dock::after { display: none; }
.ph-search--dock .ph-search__form, .ph-search--dock.has-chat .ph-search__form { position: relative; bottom: auto; padding: 6px 6px 6px 22px; border-radius: 28px; box-shadow: 0 10px 34px rgba(31,41,55,.16); }
.ph-search--dock .ph-search__form::after { inset: 10px; opacity: .3; filter: blur(18px); }
.ph-search--dock .ph-search__input { font-size: 1em; padding: 11px 6px 11px 0 !important; }
.ph-search--dock .ph-search__send { width: 44px; height: 44px; }
.ph-dock__panel { display: none; position: absolute; left: 0; right: 0; bottom: calc(100% + 10px); max-height: min(62vh, 560px); overflow-y: auto; padding: 18px 18px 6px; background: #fff; border: 1px solid #eceef3; border-radius: 22px; box-shadow: 0 20px 50px rgba(15,23,42,.18); overscroll-behavior: contain; }
.ph-search--dock.has-chat .ph-dock__panel { display: block; }
.ph-search--dock .ph-search__log { margin: 0 0 12px; }
.ph-dock__close { position: sticky; top: 0; float: right; z-index: 2; display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; margin: -6px -6px 6px 10px; padding: 0; border: 0; border-radius: 50%; background: #f1f5f9; color: #0f172a; cursor: pointer; }
.ph-dock__close:hover { background: #e2e8f0; }
body.ph-has-dock .ph-toast { bottom: 104px; }
@media (max-width: 600px) {
	.ph-dock { padding: 18px 10px calc(10px + env(safe-area-inset-bottom)); }
	.ph-dock-space { height: 84px; }
	.ph-search--dock .ph-search__form { padding-left: 18px; }
	.ph-dock__panel { max-height: 58vh; padding: 14px 14px 4px; }
	.ph-search--dock .ph-msg--bot { padding-left: 38px; }
}
@media (prefers-reduced-motion: reduce) {
	.ph-pin__img, .ph-pin__cap, .ph-pin__badge, .ph-modal__box, .ph-video__play img, .ph-dock { transition: none; animation: none; }
}

/* Home and hub pages: landing layout (centred sections, card rows) --------------- */
.ph-hub-page .entry-content > :is(p, h2, h3, h4, ul, ol, .wp-block-kadence-accordion) { margin-left: auto; margin-right: auto; }
.ph-hub-page .entry-content > :is(h2, h3, h4, p) { text-align: center; }
.ph-hub-page .entry-content > :is(ul, ol) { max-width: 620px; text-align: left; }
.ph-hub-page .entry-content > h2, .ph-hub-page .ph-feed__title, .ph-hub-page .ph-video__title { margin: 0 auto 12px; font-size: clamp(1.6rem, 3.2vw, 2.2rem); font-weight: 800; line-height: 1.2; letter-spacing: -.015em; text-align: center; }
.ph-hub-page .entry-content > h2 { margin-top: 80px; }
.ph-hub-page .entry-content > p { max-width: 680px; color: #475569; font-size: 1.08rem; line-height: 1.7; }
.ph-hub-page .ph-feed, .ph-hub-page .ph-video { margin: 80px 0; }
.ph-hub-page .ph-feed--prompts { margin-top: 24px; }
.ph-hub-page .ph-feed .ph-feed__title, .ph-hub-page .ph-feed--masonry > .ph-feed__title { margin-bottom: 26px; }
.ph-hub-page .ph-video__frame { margin: 0 auto; }
.ph-hub-page .ph-video__link { text-align: center; }
.ph-hub-page .ph-search { padding-bottom: 24px; }
.ph-hub-page .entry-content > .wp-block-kadence-accordion { margin-top: 28px; }
.ph-hub-page .ph-grid--posts { grid-template-columns: repeat(auto-fit, minmax(200px, 270px)); justify-content: center; }
.ph-search:not(.ph-search--compact) .ph-search__byline { justify-content: center; }
.ph-cards3 { gap: 20px; margin: 30px 0 0; }
.ph-grid3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
.ph-grid3 > * { margin: 0 !important; }
.ph-cards3 > :is(.wp-block-column, .wp-block-group) { position: relative; margin: 0; padding: 28px 26px 24px; background: #fff; border: 1px solid #eceef3; border-radius: 22px; box-shadow: 0 1px 2px rgba(16,24,40,.04), 0 10px 28px rgba(76,29,149,.06); }
.ph-cards3 h3 { margin: 0 0 12px; font-size: 1.15rem; font-weight: 700; line-height: 1.3; }
.ph-cards3 h4 { margin: 16px 0 6px; font-size: 1rem; font-weight: 700; line-height: 1.35; color: #0f172a; }
.ph-cards3 h3 + h4 { margin-top: 4px; }
.ph-cards3 p { margin: 0; color: #475569; line-height: 1.65; }
.ph-cards3 ol { margin: 0; padding-left: 1.2em; color: #334155; }
.ph-cards3 li { margin: 7px 0; line-height: 1.55; }
.ph-cards3 > :is(.wp-block-column, .wp-block-group) { border-top: 4px solid #7c3aed; }
.ph-steps > .wp-block-column { border-top-color: #1a5fe0; }
.ph-steps > .wp-block-column:nth-child(2) { border-top-color: #1a9a6c; }
.ph-steps > .wp-block-column:nth-child(3) { border-top-color: #0f1520; }
.ph-features > .wp-block-column { text-align: center; border-top: 1px solid #eceef3; }
.ph-features h3::before { content: ""; display: block; width: 46px; height: 46px; margin: 0 auto 16px; border-radius: 15px; background: linear-gradient(135deg, #7c3aed, #db2777); box-shadow: 0 8px 18px rgba(124,58,237,.25); }
.ph-features > .wp-block-column:nth-child(2) h3::before { background: linear-gradient(135deg, #2563eb, #06b6d4); box-shadow: 0 8px 18px rgba(37,99,235,.25); }
.ph-features > .wp-block-column:nth-child(3) h3::before { background: linear-gradient(135deg, #f97316, #db2777); box-shadow: 0 8px 18px rgba(249,115,22,.25); }
.ph-ideas > .wp-block-group:nth-child(4n+2) { border-top-color: #2563eb; }
.ph-ideas > .wp-block-group:nth-child(4n+3) { border-top-color: #f97316; }
.ph-ideas > .wp-block-group:nth-child(4n+4) { border-top-color: #db2777; }
.ph-tips > .wp-block-column:nth-child(2) { border-top-color: #2563eb; }
@media (max-width: 781px) {
	.ph-cards3 { gap: 14px; }
	.ph-hub-page .entry-content > h2 { margin-top: 56px; }
	.ph-hub-page .ph-feed, .ph-hub-page .ph-video { margin: 56px 0; }
}
/* Classic themes (Kadence) wrap group blocks in an inner container: grid and cards go on that. */
.ph-grid3 > .wp-block-group__inner-container { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 20px; }
.ph-grid3 > .wp-block-group__inner-container > * { margin: 0 !important; }
.ph-grid3 > .wp-block-group__inner-container > .wp-block-group { position: relative; padding: 28px 26px 24px; background: #fff; border: 1px solid #eceef3; border-top: 4px solid #7c3aed; border-radius: 22px; box-shadow: 0 1px 2px rgba(16,24,40,.04), 0 10px 28px rgba(76,29,149,.06); }
.ph-ideas > .wp-block-group__inner-container > .wp-block-group:nth-child(4n+2) { border-top-color: #2563eb; }
.ph-ideas > .wp-block-group__inner-container > .wp-block-group:nth-child(4n+3) { border-top-color: #f97316; }
.ph-ideas > .wp-block-group__inner-container > .wp-block-group:nth-child(4n+4) { border-top-color: #db2777; }
@media (max-width: 781px) { .ph-grid3 > .wp-block-group__inner-container { gap: 14px; } }
.ph-grid3 > .wp-block-group__inner-container { display: flex; flex-wrap: wrap; justify-content: center; }
.ph-grid3 > .wp-block-group__inner-container > .wp-block-group { flex: 0 1 280px; }
@media (max-width: 640px) { .ph-grid3 > .wp-block-group__inner-container > .wp-block-group { flex-basis: 100%; } }
.ph-hub-page .ph-hub-end .ph-feed--list { margin: 0; }
.ph-hub-page .ph-hub-end .ph-feed--list .ph-feed__title { margin: 0 0 12px; font-size: 12px; font-weight: 600; letter-spacing: .14em; line-height: 1.4; text-transform: uppercase; color: #94a3b8; text-align: left; }
