/*
Theme Name: Họ Trần Chi 5 — Giao diện Gia phả Truyền thống
Author: Họ Trần Chi 5 (giao diện chuyển đổi từ mã nguồn người dùng cung cấp)
Description: Giao diện HTC5 R34, render theo từng tuyến, tích hợp shortcode Gia Phả Chi 5.
Version: 2.0.56
Requires at least: 6.2
Tested up to: 6.8
Requires PHP: 8.0
License: GPL-2.0-or-later
Text Domain: ho-tran-chi-5
*/
:root{--paper:#fffaf0;--cream:#f6eacb;--deep-cream:#f4e7c8;--green:#163e2b;--green-soft:#315f43;--red:#961f1d;--red-bright:#b63124;--gold:#c79545;--ink:#2d3026;--muted:#746f60;--line:#e8d9b8;--shadow:0 16px 50px rgba(62,46,22,.1);--header-height:78px}
*{box-sizing:border-box}html{scroll-behavior:smooth;scroll-padding-top:var(--header-height)}body{margin:0;padding-top:var(--header-height);background:var(--paper);color:var(--ink);font-family:'Segoe UI',Tahoma,Arial,sans-serif;font-size:15px;line-height:1.6}a{color:inherit;text-decoration:none}a:hover{color:var(--red)}a:focus-visible,button:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible{outline:3px solid var(--gold);outline-offset:2px}button,input,select,textarea{font:inherit}button{cursor:pointer}img{max-width:100%;height:auto}svg{flex-shrink:0}h1,h2,h3,h4,p{margin-top:0}h1,h2{font-family:Charm,Georgia,serif;line-height:1.25}h2{font-size:clamp(30px,3.7vw,43px);font-weight:700;color:var(--green);margin-bottom:12px}h3{color:var(--green);line-height:1.3}.container{width:min(1240px,calc(100% - 56px));margin-inline:auto}.screen-reader-text{position:absolute;left:-9999px;top:auto;height:1px;width:1px;overflow:hidden}.skip-link:focus{z-index:9999;top:8px;left:8px;width:auto;height:auto;padding:12px;background:white;color:black}.htc5-js .htc5-view:not(.is-active){display:none}.htc5-view{min-height:360px}.htc5-view:focus{outline:none}.admin-bar .site-header{top:32px}.admin-bar{--header-height:78px}
/* Header: chuyển phong cách thật của source components/FamilyApp.tsx và app/globals.css */
.site-header{position:fixed;z-index:1000;top:0;left:0;right:0;height:var(--header-height);background:#f7eacb;border-bottom:1px solid #e8dbb9}.header-inner{display:flex;align-items:center;gap:11px;height:100%;width:calc(100% - 36px);max-width:1600px}.brand{border:0;background:none;display:flex;align-items:center;gap:12px;flex-shrink:0;min-width:215px}.brand:hover{text-decoration:none}.brand-seal{height:47px;width:40px;border-radius:7px;background:#9c191b;color:#f7cf87;display:grid;place-items:center;font:700 29px Charm,cursive;transform:rotate(-2deg);box-shadow:inset 0 0 0 2px rgba(255,215,142,.17)}.brand-copy{display:flex;flex-direction:column;line-height:1.15}.brand-copy strong{font:700 25px Charm,serif;color:#173b29;white-space:nowrap}.brand-copy small{font-size:11px;color:#6e614f;font-weight:700;margin-top:3px}.nav{margin-left:auto;display:flex;align-items:center;gap:11px}.nav-link{white-space:nowrap;font-size:var(--htc5-menu-font-size,16px);font-weight:800;padding:28px 0 23px;position:relative;color:#514c42}.nav-link:hover,.nav-link.active{color:var(--green)}.nav-link.active:after{content:'';position:absolute;bottom:15px;height:2px;left:0;right:0;background:var(--red)}.header-action{display:flex;align-items:center;gap:6px;justify-content:center;flex-shrink:0;border-radius:7px;padding:10px 12px;background:#9a2520;color:#fff5da;font-weight:800;font-size:12px;white-space:nowrap}.header-action:hover{color:#fff;background:#701c1b}.menu-toggle{display:none;border:0;padding:7px;background:transparent;color:var(--green)}.menu-close-icon{display:none}
/* Homepage hero from user-supplied public/images/hero-gia-pha.png (not the branded asset). */
.hero{min-height:590px;height:min(670px,51vw);position:relative;background:#f5dba5 var(--hero-img) center 47%/cover no-repeat;overflow:hidden}.hero-overlay{position:absolute;inset:0;background:linear-gradient(90deg,rgba(255,243,216,.46),rgba(255,243,216,.25) 41%,transparent 62%);pointer-events:none}.hero-content{position:relative;display:flex;align-items:flex-start;justify-content:center;flex-direction:column;min-height:100%;padding:35px 0 35px 42px}.eyebrow,.section-kicker{font-size:11px;letter-spacing:2px;color:#ad752b;font-weight:900}.hero .eyebrow{background:rgba(255,247,226,.87);border-radius:24px;color:#8e5d1f;padding:6px 15px}.hero h1{font:700 clamp(58px,6.25vw,85px)/1.04 Charm,Georgia,serif;letter-spacing:-1.6px;color:#164b32;text-shadow:0 2px 0 rgba(255,245,221,.65);margin:18px 0 22px;max-width:670px}.hero h1 em{font-style:normal}.hero p{font-size:19px;font-weight:800;line-height:1.52;color:#174b35;margin-bottom:24px;text-shadow:0 1px 4px rgba(255,244,218,.96)}.primary-btn,.outline-btn{border:0;border-radius:9px;display:inline-flex;align-items:center;justify-content:center;gap:9px;padding:12px 18px;min-height:44px;font-size:14px;font-weight:800;text-decoration:none;transition:background .18s,transform .18s}.primary-btn{color:#fff8eb;background:#a62d24}.primary-btn:hover{color:#fff;background:#78241d;transform:translateY(-1px)}.brush-btn{font-size:18px;padding:15px 32px;background:#a92520;border-radius:30px;box-shadow:0 8px 16px rgba(115,28,20,.2)}.outline-btn{background:transparent;border:1px solid #b99a63;color:#6f4729}.outline-btn:hover{background:#f3e5c8;color:var(--green)}
.quick-links{background:#f5e7c4;border-top:1px solid rgba(132,89,34,.16);border-bottom:1px solid rgba(132,89,34,.12)}.quick-grid{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));padding:24px 0 21px}.quick-item{min-height:116px;padding:2px 11px;display:flex;align-items:center;flex-direction:column;justify-content:flex-start;text-align:center;gap:2px;color:#613b25;position:relative}.quick-item:not(:last-child):after{content:'';height:58px;width:1px;position:absolute;right:0;top:28px;background:#bd935b}.quick-icon{height:45px;display:grid;place-items:center;color:#16805e;transition:transform .2s}.quick-item:nth-child(2) .quick-icon{color:#c07629}.quick-item:nth-child(3) .quick-icon{color:#ad492c}.quick-item:nth-child(4) .quick-icon{color:#c47d21}.quick-item:nth-child(5) .quick-icon{color:#9b462c}.quick-item:nth-child(6) .quick-icon{color:#2e8555}.quick-item:hover .quick-icon{transform:translateY(-4px)}.quick-item strong{font-size:13px;color:#194432;font-weight:850;line-height:1.4}.quick-item span:last-child{font-size:12px;line-height:1.42;max-width:150px}
.intro-section{display:grid;grid-template-columns:1fr 1fr;gap:8%;align-items:center;padding-block:90px}.intro-art{min-height:415px;display:grid;place-items:center;position:relative;background:#efe0b9;border-radius:47% 53% 49% 51%}.round-art{width:76%;aspect-ratio:1;border:2px solid #d7bd7d;border-radius:50%;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;background:radial-gradient(circle at 50% 40%,#fff8e5,#e7d8a9);box-shadow:0 0 0 16px rgba(255,249,231,.65),0 25px 30px rgba(75,56,22,.08);color:#265f3d}.round-art span{font:700 clamp(25px,3vw,36px)/1.24 Charm,cursive;color:#9a4b24}.flower{position:absolute;color:#dfa635;font-size:83px}.flower-one{left:-16px;bottom:10px}.flower-two{font-size:55px;right:-13px;top:12px}.intro-copy p{line-height:1.85;font-size:16px;color:#615f55}.ornament{display:flex;align-items:center;gap:9px;color:#bd8e3a;margin:8px 0 22px}.ornament span{width:45px;height:1px;background:#caa45e}.intro-links{display:flex;flex-wrap:wrap;gap:18px}.text-link{display:inline-flex;align-items:center;gap:7px;font-weight:800;color:#925427;font-size:13px}.text-link:hover{text-decoration:underline;color:var(--red)}
.home-news-section{padding:74px 0 80px;background:#fff7e7}.home-news-header{display:flex;justify-content:space-between;align-items:end;gap:25px;margin-bottom:24px}.home-news-header h2{margin:7px 0}.home-news-header p{color:#746f60;max-width:650px;margin:0}.news-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:22px}.news-card{background:#fffdf8;border:1px solid #e8d9ba;border-radius:16px;overflow:hidden;box-shadow:0 8px 25px rgba(53,48,27,.06)}.news-media{height:196px;display:grid;place-items:center;background:#eae1c6;overflow:hidden;color:#7d9667}.news-media img{width:100%;height:100%;object-fit:cover;transition:transform .3s}.news-card:hover .news-media img{transform:scale(1.04)}.news-media .media-placeholder{height:100%;display:grid;place-items:center}.news-body{padding:18px 21px 23px}.news-meta{color:#a3753c;font-size:12px;display:flex;align-items:center;gap:6px;font-weight:800}.news-card h3{font-size:21px;line-height:1.35;margin:8px 0}.news-card p{font-size:13px;color:#716c60;line-height:1.65;min-height:46px}.empty-news-state,.empty-panel{padding:45px 28px;text-align:center;max-width:980px;margin:auto;border:1px dashed #dbc698;border-radius:18px;background:#fffbf1;color:#6e6b5b}.empty-news-state h3,.empty-panel h3{font:700 28px Charm,serif;margin:12px 0 5px;color:#245136}.empty-news-state p,.empty-panel p{max-width:640px;margin:0 auto 18px;color:#706e63}.empty-icon-circle{width:77px;height:77px;background:#f4e6cc;border-radius:50%;display:grid;place-items:center;margin:auto;color:#9c7653}.empty-panel>svg{color:#b18850}.home-numbers{background:#f3e8cb;padding:70px 0}.section-center{text-align:center;max-width:650px;margin:0 auto 36px}.section-center .ornament{justify-content:center}.section-center h2{margin-top:8px}.number-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));max-width:780px;margin:auto}.number-grid>div{text-align:center;border-right:1px solid #d5b979}.number-grid>div:last-child{border:0}.number-grid strong{display:block;font:bold 64px/1.1 Georgia,serif;color:#9e2720}.number-grid span{display:block;font-size:13px;font-weight:800;color:#315b41}.demo-note{text-align:center;font-size:12px;color:#87765d;margin:25px 0 0}
/* Sub-pages, same hash-switched navigation as original React app. */
.page-banner{background:radial-gradient(circle at 75% 30%,#f5d98e,transparent 22%),linear-gradient(135deg,#faf0d7,#f4e4be);padding:38px 0 39px;position:relative;overflow:hidden}.page-banner:after{content:'✿';font-size:215px;position:absolute;right:7%;top:-75px;color:rgba(186,133,54,.11);pointer-events:none}.page-banner .container{position:relative;z-index:1}.page-banner h1{font:700 48px/1.15 Charm,serif;color:var(--green);margin:13px 0 6px}.page-banner .ornament{margin:3px 0 8px}.page-banner p{color:#74674f;margin:0}.breadcrumb{display:flex;align-items:center;gap:5px;font-size:12px;color:#8c765a;font-weight:700}.feature-section{padding-top:56px;padding-bottom:86px}.section-toolbar{display:flex;justify-content:space-between;align-items:center;gap:25px;margin-bottom:28px}.section-toolbar h2{margin:5px 0}.section-toolbar p{margin:0;color:#706b5d}.section-deco{color:#b69c66}.plugin-surface{overflow-x:auto;max-width:100%;padding:18px;border:1px solid #ead9af;border-radius:14px;background:white;min-height:250px}.plugin-surface img{max-width:100%}.access-card{background:#fff8e8;border:1px solid #e9d4a8;border-radius:18px;display:flex;align-items:flex-start;gap:22px;max-width:830px;margin:45px auto;padding:37px 42px;box-shadow:var(--shadow)}.access-card>svg{color:#aa7c36}.access-card h3{font:700 28px Charm,serif;margin:0 0 8px}.access-card p{color:#726b5a;line-height:1.7}.entry-content{line-height:1.9;font-size:16px}.entry-content img{border-radius:12px}.entry-content h2,.entry-content h3{margin-top:20px}.story-paper{max-width:960px;margin:auto;padding:36px 48px;background:#fffdf5;border:1px solid #e8d8b6;border-radius:12px;box-shadow:var(--shadow)}
.origin-band{background:radial-gradient(ellipse at 70% 25%,#fbefcb,transparent 35%),linear-gradient(130deg,#fff4d5,#f0dbad);padding:68px 0;overflow:hidden}.origin-grid{display:grid;grid-template-columns:1.15fr .85fr;gap:60px;align-items:center}.origin-grid h1{font:700 clamp(48px,5.6vw,72px)/1.08 Charm,serif;color:var(--green);margin:22px 0}.origin-grid p{color:#53634e;line-height:1.8;font-size:17px;max-width:640px}.origin-actions{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin-top:24px}.origin-panel{padding:43px 30px;text-align:center;border:1px solid #dfba74;border-radius:18px;box-shadow:0 16px 40px rgba(111,76,21,.1);background:linear-gradient(145deg,#fff9e8,#f2dfb6)}.origin-big{display:grid;place-items:center;width:125px;height:125px;font-size:80px;color:#a82720;border:4px double #b89a5b;border-radius:50%;margin:20px auto}.origin-panel h3{font:700 31px Charm,serif;color:var(--green);margin:9px 0}.origin-panel p{font-size:14px;margin:0 auto;max-width:335px}.origin-story{padding-top:70px;padding-bottom:80px}.origin-story .section-center{margin-bottom:28px}
.shrine-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:23px}.shrine-card{border:1px solid #e5d7b7;border-radius:17px;background:#fffdf8;overflow:hidden;box-shadow:var(--shadow)}.shrine-visual{display:grid;place-items:center;height:234px;background:linear-gradient(145deg,#e5edd6,#c9dfce);color:#658468}.shrine-visual img{width:100%;height:100%;object-fit:cover}.shrine-body{padding:25px}.shrine-body h3{font-size:25px;margin:5px 0}.shrine-body>p{color:#716c60;font-size:14px;line-height:1.75}.shrine-address{display:flex;gap:9px;align-items:flex-start;color:#886e4e!important;font-weight:700}
.memorial-tools{background:#f6eddb;border:1px solid #e7d9b7;border-radius:12px;display:flex;align-items:center;gap:18px;padding:16px 20px;margin-bottom:23px;flex-wrap:wrap}.memorial-tools label{font-weight:800;color:#395941}.memorial-tools select{padding:10px 14px;border-radius:8px;border:1px solid #d8c79e;background:#fffef9;min-width:200px}.memorial-list{display:flex;flex-direction:column;gap:14px}.memorial-card{background:#fffdf7;border:1px solid #e7d8ba;border-radius:15px;padding:22px;display:flex;gap:18px;align-items:center;box-shadow:0 4px 16px rgba(62,45,20,.035)}.memorial-icon{height:56px;width:56px;border-radius:50%;background:#f8e5d7;color:#af452e;display:grid;place-items:center}.memorial-info{flex:1;min-width:0}.memorial-info h3{font-size:22px;margin:5px 0}.memorial-info p{font-size:13px;color:#756c5e;margin:0}.memorial-info small{color:#93743c}.memorial-date{text-align:center;min-width:120px;padding-left:17px;border-left:1px solid #e5d7ba}.memorial-date strong{display:block;font:700 30px Georgia,serif;color:#9d312b}.memorial-date span{font-size:12px;color:#6e704e;font-weight:800}.filter-empty{text-align:center;color:#7a725e;font-style:italic}.all-news-note{text-align:center;margin-top:30px;color:#6e6859}.all-news-note a{text-decoration:underline;color:#9b402d}
.contact-section{display:grid;grid-template-columns:1fr 1fr;gap:8%;align-items:start;padding-block:78px}.contact-copy h2{font-size:43px;margin:10px 0}.contact-copy>p{color:#706d60;line-height:1.8;font-size:16px}.contact-points{display:flex;flex-direction:column;gap:21px;margin:32px 0}.contact-points>div{display:flex;gap:15px;align-items:center;color:#ac7e43}.contact-points>div span{display:flex;flex-direction:column;color:#254934}.contact-points small{font-size:12px;color:#878173}.contact-form{background:#fffdf5;border:1px solid #dfc994;border-radius:18px;padding:37px 40px;box-shadow:var(--shadow)}.contact-form h3{font:700 32px Charm,serif;margin:7px 0 20px}.contact-form>label{display:block;margin-top:13px;margin-bottom:5px;font-size:13px;font-weight:800;color:#35543e}.contact-form label span{color:#ac3224}.contact-form input:not([type=hidden]),.contact-form textarea{display:block;width:100%;padding:12px 13px;color:#25392e;background:#fff;border:1px solid #dcca9d;border-radius:9px;resize:vertical}.contact-form textarea{min-height:120px}.contact-form .primary-btn{margin-top:10px}.privacy-note{font-size:12px;color:#81775f;margin:12px 0}.contact-hp{position:absolute;left:-10000px;top:auto}.contact-feedback{color:#175934;background:#e7f4e9;border-radius:8px;padding:9px 12px}.contact-feedback.error{color:#982b25;background:#fff0e9}
.footer{background:#173b2a;color:#e8e1c9;padding:46px 0 0}.footer-grid{display:grid;grid-template-columns:2fr 1fr 1.1fr .55fr;gap:42px}.footer-brand{display:flex;align-items:center;gap:12px}.footer-brand strong{font:700 23px Charm,serif;color:#f5e6bb}.footer p{font-size:13px;line-height:1.7;color:#c6cfbc;margin:15px 0}.footer h3{color:#f4e3b7;font-size:17px;margin:0 0 8px}.footer-grid>div>a:not(.footer-brand){display:block;color:#c6cfbc;font-size:13px;padding:4px 0}.footer-grid>div>a:hover{color:#fff}.footer-mark{font-size:82px;color:rgba(244,220,157,.25);text-align:right}.footer-bottom{border-top:1px solid rgba(241,222,165,.18);margin-top:35px;padding:16px 0;color:#b4c1ae;font-size:12px}
/* WordPress post templates */
.wp-page{min-height:60vh;padding:70px 0}.wp-page .entry-head{max-width:800px;margin:0 auto 30px}.wp-page h1{font-size:48px;color:var(--green)}.wp-page .entry-content{max-width:870px;margin:auto}.wp-page .entry-content a{color:var(--red);text-decoration:underline}.archive-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}.archive-grid .news-card{height:100%}.archive-head{margin-bottom:32px}.archive-head h1{margin-bottom:10px}.pager{margin-top:30px}.pager a{color:var(--red);text-decoration:underline}.wp-page .single-thumbnail{width:100%;max-height:450px;object-fit:cover;border-radius:15px;margin-bottom:25px}
@media(max-width:1430px){.container{width:min(1160px,calc(100% - 44px))}.nav{gap:12px}.nav-link{font-size:var(--htc5-menu-font-size,16px)}.brand{min-width:250px}.brand-copy strong{font-size:22px}.header-inner{gap:14px}}
@media(max-width:1320px){.nav{display:none;position:absolute;top:var(--header-height);left:0;right:0;max-height:calc(100dvh - var(--header-height));overflow:auto;background:#f7eacb;padding:12px 26px 20px;flex-direction:column;align-items:stretch;box-shadow:0 15px 23px rgba(50,36,15,.13);gap:0}.nav.nav-open{display:flex}.nav-link{font-size:var(--htc5-menu-font-size,16px);padding:12px}.nav-link.active:after{bottom:7px;left:11px;width:60px;right:auto}.menu-toggle{display:grid;place-items:center}.menu-toggle[aria-expanded=true] .menu-open-icon{display:none}.menu-toggle[aria-expanded=true] .menu-close-icon{display:block}.header-action{margin-left:auto}}
@media(max-width:900px){.hero{min-height:530px;height:580px;background-position:61% center}.hero-content{padding-left:5px}.hero h1{font-size:68px}.quick-grid{grid-template-columns:repeat(3,minmax(0,1fr));row-gap:15px}.quick-item:nth-child(3):after{display:none}.intro-section{gap:36px}.intro-art{min-height:330px}.round-art span{font-size:26px}.origin-grid{gap:25px}.contact-section{gap:30px}.news-grid,.archive-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:670px){:root{--header-height:70px}.container{width:calc(100% - 30px)}.header-inner{gap:8px}.brand{min-width:0;gap:9px}.brand-seal{width:33px;height:40px;font-size:24px}.brand-copy strong{font-size:19px}.brand-copy small{font-size:9px}.header-action{width:39px;height:39px;padding:0}.header-action span{display:none}.hero{height:505px;min-height:0;background-size:auto 100%;background-position:67% center}.hero-overlay{background:linear-gradient(90deg,rgba(255,244,217,.70) 0%,rgba(255,244,217,.43) 65%,rgba(255,244,217,.13))}.hero-content{padding:43px 0 25px;justify-content:center}.hero h1{font-size:clamp(47px,11.2vw,66px);line-height:1.05;margin:15px 0}.hero p{font-size:15px;margin-bottom:18px}.hero .eyebrow{font-size:9px;letter-spacing:1.4px}.brush-btn{font-size:15px;padding:12px 21px}.quick-grid{grid-template-columns:repeat(2,minmax(0,1fr));padding:16px 0;row-gap:12px}.quick-item{min-height:108px;padding:4px 8px}.quick-item:after{display:none}.quick-item:nth-child(odd):after{display:block;content:'';height:62px;right:0;top:22px;width:1px;background:#bf9b62}.quick-item strong{font-size:12px}.quick-item span:last-child{font-size:11px}.intro-section{display:block;padding-block:60px}.intro-art{min-height:280px;width:85%;margin:0 auto 50px}.round-art{width:78%}.round-art svg{height:90px;width:90px}.round-art span{font-size:25px}.flower{font-size:50px}.flower-two{font-size:38px}.intro-copy h2{font-size:35px}.intro-copy p{font-size:15px}.home-news-section{padding:52px 0}.home-news-header{align-items:flex-start;flex-direction:column;gap:12px}.home-numbers{padding:49px 0}.number-grid strong{font-size:42px}.number-grid span{font-size:11px}.section-center h2{font-size:34px}.page-banner{padding:31px 0}.page-banner h1{font-size:43px}.feature-section{padding-block:42px 58px}.section-toolbar{align-items:start;flex-direction:column;gap:12px}.section-toolbar h2{font-size:34px}.section-deco{display:none}.origin-band{padding:48px 0}.origin-grid{grid-template-columns:1fr}.origin-grid h1{font-size:52px}.origin-panel{padding:25px}.origin-big{height:88px;width:88px;font-size:55px;margin:10px auto}.origin-story{padding:50px 0}.story-paper{padding:22px 18px}.shrine-grid,.news-grid,.archive-grid{grid-template-columns:1fr}.news-media{height:215px}.memorial-card{align-items:flex-start;flex-wrap:wrap;padding:15px}.memorial-icon{width:42px;height:42px}.memorial-date{margin-left:60px;border-left:none;border-top:1px solid #e5d7ba;text-align:left;padding:8px 0 0;min-width:calc(100% - 60px)}.memorial-date strong{display:inline;margin-right:7px;font-size:25px}.contact-section{grid-template-columns:1fr;padding-block:50px}.contact-form{padding:25px 19px}.contact-copy h2{font-size:36px}.access-card{flex-direction:column;padding:25px}.footer-grid{grid-template-columns:1fr 1fr;gap:22px}.footer-grid>div:first-child{grid-column:1 / -1}.footer-mark{font-size:53px}.footer-bottom{margin-top:25px}.wp-page{padding:40px 0}.wp-page h1{font-size:38px}}
@media(max-width:380px){.brand-copy strong{font-size:16px}.brand-copy small{font-size:8px}.hero h1{font-size:44px}.hero p{font-size:14px}.quick-item span:last-child{font-size:10px}.number-grid span{font-size:10px}}
@media(max-width:782px){.admin-bar .site-header{top:46px}}
@media(max-width:600px){.admin-bar .site-header{top:0}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*,*:before,*:after{transition:none!important;animation:none!important}}

/* Login / registration from site navigation. All classnames are theme-specific. */
.htc5-auth-backdrop[hidden], .htc5-auth-form[hidden], .htc5-auth-feedback[hidden] { display:none!important; }
body.htc5-auth-open{overflow:hidden}
.htc5-auth-backdrop{position:fixed;inset:0;z-index:4000;display:flex;align-items:center;justify-content:center;background:rgba(19,35,24,.72);padding:20px;overscroll-behavior:contain}
.htc5-auth-dialog{position:relative;width:min(440px,100%);max-height:min(90dvh,850px);overflow:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;background:#fffdf7;border:1px solid #e7d7b7;border-radius:19px;box-shadow:0 26px 80px rgba(0,0,0,.32);padding:31px 32px 27px;text-align:center}
.htc5-auth-close{position:absolute;top:12px;right:13px;width:36px;height:36px;border:0;background:#f7efd9;border-radius:50%;font-size:27px;color:#455b43;cursor:pointer;line-height:1}
.htc5-auth-seal{display:grid;place-items:center;width:54px;height:62px;border-radius:8px;background:#9c191b;color:#f7cf87;font:700 35px Charm,serif;transform:rotate(-3deg);margin:0 auto 14px}
.htc5-auth-dialog h2{font:700 37px Charm,serif;color:var(--green);margin:6px 0 3px}
.htc5-auth-description{font-size:13px;color:#777061;line-height:1.55;margin:4px auto 14px;max-width:325px}
.htc5-auth-tabs{display:grid;grid-template-columns:1fr 1fr;background:#f3e8cf;padding:4px;border-radius:10px;gap:4px;margin:15px 0 17px}
.htc5-auth-tabs button{border:0;border-radius:8px;background:transparent;font-weight:800;color:#746a54;padding:10px;cursor:pointer}
.htc5-auth-tabs button[aria-selected="true"]{background:#fffdf7;color:#9a2925;box-shadow:0 2px 9px rgba(45,39,24,.1)}
.htc5-auth-form{text-align:left;display:flex;flex-direction:column;gap:12px}
.htc5-auth-form>label:not(.htc5-auth-check):not(.htc5-auth-hp){display:flex;flex-direction:column;font-size:13px;font-weight:800;color:#41513f;gap:5px}
.htc5-auth-form>label input:not([type=checkbox]){width:100%;background:#fffefa;color:#28372b;border:1px solid #dacdae;border-radius:9px;padding:12px 13px;min-height:43px;font-size:14px;outline-offset:3px}
.htc5-auth-form input:focus{border-color:#64926e;box-shadow:0 0 0 2px rgba(100,146,110,.15)}
.htc5-auth-check{display:flex;align-items:center;gap:9px;font-size:13px;color:#696451}
.htc5-auth-submit{width:100%;margin:6px 0 0;padding:13px 18px;cursor:pointer}
.htc5-auth-submit:disabled{opacity:.55;cursor:not-allowed}
.htc5-auth-secondary{color:#8e302b;font-size:12px;font-weight:700;text-align:center}
.htc5-auth-secondary:hover{text-decoration:underline}
.htc5-auth-hint,.htc5-auth-warning{margin:0;font-size:12px;line-height:1.55;color:#726a59}
.htc5-auth-warning{padding:10px;background:#fff2d8;border-radius:8px;color:#9d512d}
.htc5-auth-feedback{padding:11px 12px;background:#e8f5e8;border-radius:9px;border:1px solid #bed7b7;color:#245b36;font-size:13px;text-align:left;margin-bottom:12px;line-height:1.55}
.htc5-auth-feedback.is-error{background:#fff0ec;border-color:#e5c3ba;color:#9a2f27}
.htc5-auth-hp{position:absolute;left:-10000px;height:1px;overflow:hidden}
@media(max-width:480px){.htc5-auth-backdrop{padding:12px}.htc5-auth-dialog{max-height:calc(100dvh - 24px);padding:23px 19px 22px;border-radius:15px}.htc5-auth-seal{margin-bottom:8px}.htc5-auth-form{gap:10px}}

@media(max-width:480px){
 .htc5-auth-backdrop[data-mode="register"] .htc5-auth-dialog{padding-top:14px;padding-bottom:14px}
 .htc5-auth-backdrop[data-mode="register"] .htc5-auth-seal{width:41px;height:43px;font-size:26px;margin-bottom:3px}
 .htc5-auth-backdrop[data-mode="register"] .htc5-auth-dialog h2{font-size:30px;margin:0}
 .htc5-auth-backdrop[data-mode="register"] .htc5-auth-description{margin:2px auto 8px;font-size:12px}
 .htc5-auth-backdrop[data-mode="register"] .htc5-auth-tabs{margin:8px 0 10px}
 .htc5-auth-backdrop[data-mode="register"] .htc5-auth-form{gap:7px}
 .htc5-auth-backdrop[data-mode="register"] .htc5-auth-form>label input:not([type=checkbox]){min-height:41px;padding:9px 12px}
 .htc5-auth-backdrop[data-mode="register"] .htc5-auth-hint{font-size:11px}
}


/* v2.0.3: full member profile (owned by GPC5 plugin) and native password reset popup */
.htc5-auth-tabs[hidden]{display:none!important}
.htc5-auth-form .htc5-reset-intro{font-size:13px;line-height:1.65;color:#5e6354;margin:2px 0 5px}
.htc5-auth-back{display:flex;justify-content:center;align-items:center;min-height:32px;margin:3px auto 0}
.htc5-profile-mode .page-banner,.htc5-profile-mode .section-toolbar{display:none}
.htc5-member-profile-hero{padding:33px 0 27px;background:linear-gradient(125deg,#f7e7bf,#fff9ed);border-bottom:1px solid #e3d5b5}
.htc5-member-profile-hero h1{font:700 clamp(30px,4vw,45px)/1.24 Charm,Georgia,serif;color:#17412d;margin:8px 0}
.htc5-member-profile-hero p{font-size:14px;max-width:840px;margin:0;color:#64634f}
.htc5-profile-nav{display:flex;flex-wrap:wrap;gap:10px;margin-top:18px}
.htc5-profile-nav a{display:inline-flex;align-items:center;gap:8px;font-size:13px;font-weight:750;color:#184b33;background:#fffdf6;border:1px solid #d9c49a;border-radius:10px;padding:9px 13px}
.htc5-profile-nav a:hover{border-color:#b98b41;color:#8b211f;background:#fff9e8}
.htc5-profile-mode .feature-section{padding-top:24px;padding-bottom:50px}
.htc5-profile-mode #htc5-tree-mount{padding:0;background:transparent;border:0;overflow:visible;max-width:100%}
.htc5-profile-mode .gpc5-tree.gpc5-is-profile-page{max-width:100%;width:100%!important;margin:0 auto!important;min-height:0!important}
.htc5-profile-mode .gpc5-profile-overlay.gpc5-profile-page{min-width:0!important;max-width:100%!important}
.htc5-profile-mode .gpc5-profile-overlay.gpc5-profile-page .gpc5-profile-window{max-width:100%!important}
@media(max-width:600px){.htc5-member-profile-hero{padding:23px 0 19px}.htc5-profile-mode .feature-section{padding-top:13px}.htc5-profile-nav{display:grid;grid-template-columns:1fr 1fr;gap:7px}.htc5-profile-nav a{padding:9px;font-size:12px;justify-content:center}.htc5-profile-mode .gpc5-profile-overlay.gpc5-profile-page .gpc5-profile-window{border-radius:11px!important}}

.htc5-profile-unavailable[hidden]{display:none!important}.htc5-profile-unavailable{background:#fff3dd;border:1px solid #e5cfa9;border-radius:10px;padding:15px;color:#563f28;margin:20px auto;max-width:950px}.htc5-profile-unavailable a{font-weight:750;text-decoration:underline}

/* v2.0.4: account page, shortcode surfaces, configurable navigation type. */
.htc5-account-layout{display:grid;grid-template-columns:minmax(260px,.8fr) minmax(0,1.5fr);gap:25px;align-items:start;padding-block:45px 75px}
.htc5-account-overview{position:sticky;top:calc(var(--header-height) + 20px);text-align:center}
.htc5-account-card{background:#fffdf8;border:1px solid #e4d2ac;border-radius:18px;padding:27px;box-shadow:0 8px 30px rgba(42,32,20,.05)}
.htc5-account-card h2{font:700 30px/1.2 Charm,Georgia,serif;margin:12px 0;color:var(--green)}
.htc5-account-avatar img{width:96px;height:96px;object-fit:cover;border-radius:50%;border:4px solid #e5c990;box-shadow:0 5px 15px #72604530}
.htc5-account-username{color:#827456;font-weight:650}
.htc5-account-permission{background:#fff1da;color:#795d2d;border-radius:7px;padding:10px 14px;font-size:13px;font-weight:700}
.htc5-account-permission.is-approved{color:#265d37;background:#e0f1dc}
.htc5-account-hint{font-size:13px;color:#6f6b61;line-height:1.7}
.htc5-account-links{display:flex;flex-direction:column;gap:9px;margin-top:20px;text-align:left}
.htc5-account-links a{display:flex;align-items:center;gap:9px;padding:10px 12px;border:1px solid #e3d3b7;border-radius:9px;font-weight:700}
.htc5-account-edit{display:grid;gap:18px}
.htc5-account-form{display:grid;gap:13px}
.htc5-account-form p{margin:0 0 3px;color:#766c5d}
.htc5-account-form label{display:flex;flex-direction:column;gap:5px;font-weight:700;font-size:13px;color:#554d3f}
.htc5-account-form input{display:block;width:100%;border:1px solid #cfbea2;background:white;border-radius:8px;padding:12px;font-size:15px;color:#2c3029}
.htc5-account-form input:read-only{background:#f3ede0;color:#6b6255}
.htc5-account-form button{justify-self:start;margin-top:9px}
.htc5-account-message{padding:15px;border:1px solid #a8cda3;background:#e9f7e6;border-radius:8px;color:#2a5930;font-weight:700}
.htc5-account-message.is-error{background:#fff0ed;border-color:#e9b5ad;color:#8e3028}
.htc5-origin-plugin,.htc5-news-content,.htc5-shrines-content,.htc5-members-content{overflow:visible;min-height:0}
.htc5-origin-plugin{padding:0;background:transparent;border:0}
.htc5-home-plugin-news .gpc5-news-controls,.htc5-home-plugin-news .gpc5-news-count{display:none}
.htc5-home-plugin-news .gpc5-news-card:nth-child(n+4){display:none}
.htc5-kinship-panel{margin-top:24px;padding:17px;background:#fff9e8;border:1px solid #e4cc9b;border-radius:13px}
.htc5-kinship-panel summary{font-size:17px;color:#204c35;cursor:pointer;font-weight:800;padding:4px 6px}
.htc5-kinship-panel .plugin-surface{margin-top:16px}
@media(max-width:960px){.htc5-account-layout{grid-template-columns:1fr}.htc5-account-overview{position:static}}
@media(max-width:600px){.htc5-account-layout{padding-block:25px 50px;gap:16px}.htc5-account-card{padding:18px}.htc5-account-card h2{font-size:27px}}
/* When larger menu font is selected, collapse earlier to prevent overlap. */
@media(max-width:1570px){body.htc5-menu-very-large .nav{display:none;position:absolute;top:var(--header-height);left:0;right:0;max-height:calc(100dvh - var(--header-height));overflow:auto;background:#f7eacb;padding:12px 26px 20px;flex-direction:column;align-items:stretch;box-shadow:0 15px 23px rgba(50,36,15,.13);gap:0}body.htc5-menu-very-large .nav.nav-open{display:flex}body.htc5-menu-very-large .nav-link{padding:12px}body.htc5-menu-very-large .nav-link.active:after{bottom:7px;left:11px;width:60px;right:auto}body.htc5-menu-very-large .menu-toggle{display:grid;place-items:center}body.htc5-menu-very-large .header-action{margin-left:auto}}

/* v2.0.5: frontend creation dialogs for plugin shrines and news. */
.htc5-create-backdrop[hidden],.htc5-create-feedback[hidden],.htc5-keeper-results[hidden]{display:none!important}
body.htc5-create-open{overflow:hidden}
.htc5-create-backdrop{position:fixed;inset:0;z-index:4100;display:grid;place-items:center;background:rgba(16,32,21,.76);padding:20px;overscroll-behavior:contain}
.htc5-create-dialog{width:min(830px,100%);max-height:calc(100dvh - 40px);overflow-y:auto;overscroll-behavior:contain;border:1px solid #e2c78f;border-radius:20px;background:#fffaf0;box-shadow:0 30px 90px rgba(0,0,0,.34);color:#34382e}
.htc5-create-head{position:sticky;top:0;z-index:2;background:#fff6e4;display:flex;align-items:flex-start;justify-content:space-between;gap:22px;border-bottom:1px solid #e8d7b5;padding:25px 30px 18px}
.htc5-create-head h2{font:700 clamp(29px,3vw,38px)/1.25 Charm,Georgia,serif;margin:6px 0 4px;color:#184732}
.htc5-create-head p{font-size:13px;color:#7b6c52;margin:0}
.htc5-create-close{font-size:27px;line-height:1;width:38px;height:38px;flex:none;color:#6a382d;background:#f3e3c8;border:1px solid #dac29a;border-radius:50%;display:grid;place-items:center}
.htc5-create-form{padding:22px 30px 28px}
.htc5-create-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px 18px}
.htc5-create-fields>label,.htc5-keeper>label{display:flex;flex-direction:column;gap:6px;font-size:13px;font-weight:800;color:#3e5942}
.htc5-create-fields .wide{grid-column:1/-1}
.htc5-create-fields b{color:#9a2923}
.htc5-create-fields small,.htc5-create-help{font-size:12px;font-weight:500;color:#85765f}
.htc5-create-fields input:not([type=file]),.htc5-create-fields textarea,.htc5-create-fields select{width:100%;border:1px solid #d4be95;background:#fff;color:#2c392d;border-radius:9px;padding:11px 13px;min-height:43px;font:500 14px/1.5 'Segoe UI',Tahoma,Arial,sans-serif}
.htc5-create-fields textarea{resize:vertical;min-height:112px}
.htc5-create-fields input:read-only{background:#f3ece0}
.htc5-create-fields input[type=file]{font-size:12px;border:1px dashed #caaa79;background:#fffdf5;border-radius:8px;padding:10px;width:100%;min-width:0}
.htc5-keeper{position:relative}.htc5-keeper .htc5-create-help{margin:5px 0 0}
.htc5-keeper-results{position:absolute;z-index:3;top:calc(100% - 26px);left:0;right:0;max-height:240px;overflow:auto;background:#fff;border:1px solid #c9ac76;border-radius:9px;box-shadow:0 12px 24px #2f2c2240;padding:5px}
.htc5-keeper-results button{display:block;width:100%;text-align:left;padding:10px 11px;border:0;border-radius:6px;background:#fff;color:#283e2e;font-size:13px}
.htc5-keeper-results button:hover,.htc5-keeper-results button:focus{background:#e9f2e6}
.htc5-create-actions{display:flex;justify-content:flex-end;flex-wrap:wrap;gap:10px;margin-top:22px;padding-top:19px;border-top:1px solid #e8d5b3}
.htc5-create-feedback,.htc5-create-notice{border:1px solid #91b598;border-radius:9px;background:#ecf8ed;color:#245735;font-weight:700;font-size:13px;padding:12px 15px;margin:17px 0 0}
.htc5-create-feedback.is-error,.htc5-create-notice.is-error{background:#fff1ec;color:#8d2625;border-color:#e6aea0}
.htc5-create-notice{margin:0 0 17px}
@media(max-width:620px){.htc5-create-backdrop{padding:8px}.htc5-create-dialog{max-height:calc(100dvh - 16px);border-radius:14px}.htc5-create-head{padding:16px 17px 12px;gap:10px}.htc5-create-head h2{font-size:29px}.htc5-create-form{padding:15px 17px 21px}.htc5-create-fields{grid-template-columns:1fr;gap:12px}.htc5-create-fields .wide{grid-column:1}.htc5-create-actions{justify-content:stretch;gap:8px}.htc5-create-actions .primary-btn,.htc5-create-actions .outline-btn{flex:1;min-width:94px;padding:10px;font-size:12px}.htc5-keeper-results{top:calc(100% - 20px)}}

/* v2.0.6 — fidelity pass against giaphahuynhtan-main source components + app/globals.css.
   React screen semantics are retained; GPC5 shortcodes own all underlying data/actions. */
:root{--htc5-source-cream:#f6eacb;--htc5-source-green:#163e2b;--htc5-source-red:#961f1d;--htc5-source-line:#e8d9b8}
body{font-family:'Nunito Sans','Segoe UI',Arial,sans-serif;font-size:15px;line-height:1.65;background:#fffaf0;color:#2d3026}
h2,h3,.page-banner h1,.section-toolbar h2,.site-header .brand-copy strong,.quick-item strong,.footer h3{font-family:'Baloo 2','Nunito Sans',sans-serif}
h2{font-weight:700;line-height:1.18;letter-spacing:0;font-size:clamp(30px,3.1vw,38px)}
.site-header{background:#f7eacb;border-bottom:1px solid #e8dbb9}
.site-header .header-inner{width:min(1560px,calc(100% - 42px));gap:14px}
.site-header .brand{gap:12px;min-width:255px}
.site-header .brand-copy strong{font-weight:700;letter-spacing:-.5px;color:#173b29;font-size:clamp(19px,1.58vw,24px);line-height:1.05}
.site-header .brand-copy small{font-size:11px}
.nav{gap:clamp(10px,1.35vw,24px)}.nav-link{font-weight:800;color:#514c42;line-height:1.2}
.nav-link.active:after{background:#961f1d}.nav-link:hover{color:#163e2b}
.header-action{background:#961f1d;border-radius:28px;padding:9px 14px;box-shadow:0 5px 12px rgba(116,27,23,.13);gap:8px}
.header-action:hover{background:#791815;color:#fff}.htc5-header-avatar{display:grid;place-items:center;overflow:hidden;width:27px;height:27px;border-radius:50%;border:1px solid #f7e5b9}
.htc5-header-avatar img{display:block;width:100%;height:100%;border-radius:50%;object-fit:cover}
.hero-content{padding-left:clamp(7px,4vw,50px);height:84%;justify-content:center}
.hero h1{font-family:Charm,cursive;font-size:clamp(59px,5.9vw,91px);line-height:.97;max-width:650px;color:#164b32}
.hero .eyebrow{letter-spacing:2px}.hero p{font-size:clamp(15px,1.55vw,20px);font-weight:800;line-height:1.48}
.hero .brush-btn{border-radius:33px;font-size:clamp(15px,1.3vw,18px);padding:14px 29px;background:#ad2622}
.quick-grid{grid-template-columns:repeat(6,minmax(0,1fr));gap:0}
.quick-item{padding-inline:10px;min-height:112px}.quick-item strong{font-weight:700;font-size:14px;line-height:1.1}
.quick-item .quick-icon{color:#16805e;height:47px}.quick-icon svg{stroke-width:2.05;transition:transform .2s}.quick-item:hover .quick-icon svg{transform:translateY(-3px)}
.intro-section{grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:clamp(35px,7vw,95px)}
.intro-copy h2,.section-center h2{font-family:'Baloo 2','Nunito Sans',sans-serif;font-size:clamp(32px,3.2vw,39px)}
.intro-copy p{font-size:16px;line-height:1.85}.round-art span{font-family:Charm,serif}
.page-banner{background:radial-gradient(circle at 75% 30%,#f5d98e,transparent 22%),linear-gradient(135deg,#faf0d7,#f4e4be);padding:39px 0 42px}
.page-banner h1{font-size:clamp(39px,4vw,49px);font-weight:700;line-height:1.08;letter-spacing:-.02em;margin:14px 0 0}
.page-banner .ornament{margin:4px 0 9px}.page-banner p{color:#74674f}
.feature-section{padding-top:58px;padding-bottom:82px}.section-toolbar h2{margin:4px 0 2px;font-size:36px;line-height:1.2}
.section-toolbar p{color:#797365;font-size:15px}.section-kicker{font-family:'Nunito Sans',sans-serif;font-size:11px;font-weight:900;letter-spacing:2.1px}
.section-deco{opacity:.45}.primary-btn,.header-action,.outline-btn{font-family:'Nunito Sans',sans-serif;font-weight:800}
.primary-btn{border-radius:28px;background:#961f1d}.primary-btn:hover{background:#791815}
.outline-btn{border-color:#d9cba7;border-radius:25px;background:#fffdf7;color:#163e2b}
.plugin-surface{background:transparent;border:0;border-radius:0;box-shadow:none;padding:0;min-height:0;overflow:visible}
.plugin-surface>.gpc5-content{margin:0 auto;padding:0;max-width:100%}
.plugin-surface .gpc5-content{font-family:'Nunito Sans',sans-serif;color:#31312e}
.plugin-surface .gpc5-content h2,.plugin-surface .gpc5-content h3{font-family:'Baloo 2',sans-serif}
.plugin-surface .gpc5-content .gpc5-action{background:#961f1d;border-radius:24px;padding:11px 18px}
/* Source page banners and toolbar already supply these headings; do not repeat the plugin headings. */
.htc5-members-content>.gpc5-member-list>header,.htc5-shrines-content>.gpc5-shrines>header,.htc5-news-content>.gpc5-news>header,.htc5-home-plugin-news>.gpc5-news>header{display:none}
.htc5-members-content .gpc5-member-grid{gap:16px;grid-template-columns:repeat(auto-fill,minmax(min(100%,300px),1fr))}
.htc5-members-content .gpc5-member-card{border-radius:17px;padding:16px 17px;box-shadow:0 8px 26px rgba(62,46,22,.05);border-color:#e5d8bc;background:#fffdf7;transition:transform .18s,box-shadow .18s}
.htc5-members-content .gpc5-member-card:hover{transform:translateY(-2px);box-shadow:0 12px 24px rgba(62,46,22,.12)}
.htc5-members-content .gpc5-member-card strong{color:#163e2b;font-size:16px}.htc5-members-content .gpc5-member-card small{font-size:12px}
.htc5-members-content .gpc5-search-member input{min-height:47px;border:1px solid #dfd0ae;border-radius:9px;background:#fffdf8}
.htc5-shrines-content .gpc5-shrine-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:23px}
.htc5-shrines-content .gpc5-shrine-card{border-radius:18px;border-color:#e6d9b8;box-shadow:0 15px 34px rgba(66,49,17,.07)}
.htc5-shrines-content .gpc5-shrine-map{height:250px}.htc5-shrines-content .gpc5-shrine-body{padding:23px}
.htc5-shrines-content .gpc5-shrine-body h3{font-size:26px;font-weight:700;color:#173b29}
.htc5-shrines-content .gpc5-shrine-facts{border-top-color:#e8d9b8;margin-top:17px}
.htc5-shrines-content .gpc5-shrine-facts p{display:flex;align-items:flex-start;gap:6px;color:#5d594f;margin:8px 0}
.htc5-shrines-content .gpc5-shrine-facts p svg{margin-top:4px;color:#ad6c30}
/* News source has filter controls and a wide, stacked feed, not a three-column archive. */
.htc5-news-content .gpc5-news-controls{background:#fcf6e8;border-color:#e7d8bb;border-radius:13px;padding:14px;margin-bottom:15px}
.htc5-news-content .gpc5-news-tabs button{border:1px solid #decda9;background:#fffdf8;border-radius:23px;padding:9px 12px;color:#5c604d;font-weight:700}
.htc5-news-content .gpc5-news-tabs button.is-active{background:#961f1d;color:#fff;border-color:#961f1d}
.htc5-news-content .gpc5-news-feed{display:grid;grid-template-columns:1fr;gap:21px;max-width:1000px;margin:auto}
.htc5-news-content .gpc5-news-card{border-color:#e4d5b3;border-radius:19px;box-shadow:0 8px 30px rgba(57,43,20,.065);padding:26px 29px;background:#fffdf7}
.htc5-news-content .gpc5-news-card h3{font-size:27px;color:#1b452f;margin:8px 0 10px}
.htc5-news-content .gpc5-news-gallery{grid-template-columns:repeat(auto-fit,minmax(145px,1fr));gap:10px}
.htc5-news-content .gpc5-news-gallery img{height:190px;border-radius:12px}
.htc5-news-content .gpc5-category-tag{background:#fbf0de;color:#915225;border-radius:17px;padding:5px 10px;font-weight:800}
.htc5-news-content .gpc5-news-info,.htc5-news-content .gpc5-news-meta span{font-size:13px}
.htc5-source-inline-icon{vertical-align:middle;flex-shrink:0;stroke-width:2;color:#9b632e}
.htc5-news-content .gpc5-news-info{display:inline-flex;align-items:center;gap:5px;margin-right:12px}
.htc5-home-plugin-news>.gpc5-news{padding:0;max-width:100%}
.htc5-home-plugin-news .gpc5-news-feed{grid-template-columns:repeat(3,minmax(0,1fr));gap:22px}
.htc5-home-plugin-news .gpc5-news-card{border-radius:15px;border:1px solid #e7d9b8;background:#fffdf7;padding:18px;min-width:0}
.htc5-home-plugin-news .gpc5-news-card h3{font-size:21px;line-height:1.3;margin:8px 0}
.htc5-home-plugin-news .gpc5-news-body{display:block;font-size:14px;line-height:1.65;color:#6f6a5d;overflow-wrap:anywhere}
.htc5-home-plugin-news .gpc5-news-gallery{display:grid;grid-template-columns:1fr;margin:13px 0 0}
.htc5-home-plugin-news .gpc5-news-image:not(:first-child){display:none}.htc5-home-plugin-news .gpc5-news-image img{width:100%;height:155px;object-fit:cover;border-radius:11px}
.htc5-origin-has-plugin .origin-band,.htc5-origin-has-plugin .origin-story>.section-center{display:none}
.htc5-origin-has-plugin .origin-story{padding:0;margin:0 auto;max-width:100%;width:100%}
.htc5-origin-has-plugin .htc5-origin-plugin{width:min(1180px,calc(100% - 44px));margin:0 auto;padding:0}
.htc5-origin-has-plugin .gpc5-origin{max-width:100%;margin:0 auto}
.htc5-origin-has-plugin .htc5-origin-plugin .gpc5-origin-hero{background:linear-gradient(145deg,#f8ebd2,#fffbef);border:1px solid #eadaba;border-radius:16px;margin:20px auto 28px}
.htc5-origin-has-plugin .htc5-origin-plugin .gpc5-origin-hero h2{font-family:Charm,'Baloo 2',serif;font-weight:700;color:#17452f;font-size:clamp(33px,4.4vw,58px)}
/* Account image control: user's public WP avatar is distinct from private genealogical portraits. */
.htc5-account-overview .htc5-account-avatar{display:grid;place-items:center;margin:0 auto 10px;width:120px;height:120px}
.htc5-account-avatar img.htc5-account-avatar-image{width:112px;height:112px;display:block;object-fit:cover;border-radius:50%;border:4px solid #e5c990;box-shadow:0 5px 15px #72604530}
.htc5-account-avatar-form{display:flex;flex-direction:column;align-items:center;gap:8px;margin:2px 0 16px}
.htc5-avatar-chooser,.htc5-avatar-save{display:inline-flex;gap:7px;align-items:center;justify-content:center;color:#761e1b;border:1px solid #d6b87d;border-radius:8px;background:#fff8e9;min-height:39px;padding:8px 13px;font-size:13px;font-weight:800;cursor:pointer}
.htc5-avatar-chooser:hover,.htc5-avatar-save:hover{background:#f8e9ca}
.htc5-account-avatar-form input[type=file]{position:absolute;width:1px;height:1px;opacity:0;overflow:hidden}
.htc5-account-avatar-form input[type=file]:focus-visible + .htc5-avatar-filename{outline:2px solid #b77f2a}
.htc5-avatar-save{color:#fff;background:#961f1d;border-color:#961f1d;cursor:pointer}
.htc5-avatar-save[hidden]{display:none!important}.htc5-avatar-filename{font-size:12px;max-width:220px;overflow-wrap:anywhere;color:#4c5d4a}
.htc5-avatar-help{max-width:280px;margin:0;font-size:11px;color:#756956;line-height:1.5;text-align:center}
@media(min-width:1450px){.site-header .header-inner{gap:20px}.nav{gap:18px}}
@media(max-width:1160px){.site-header .brand-copy strong{font-size:21px}}
@media(max-width:960px){.htc5-shrines-content .gpc5-shrine-grid{grid-template-columns:1fr}.htc5-home-plugin-news .gpc5-news-feed{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:700px){
 body{font-size:14px}.site-header .brand{min-width:0}.site-header .brand-copy strong{font-size:19px}
 .hero-content{height:100%;padding-left:0}.hero h1{font-size:clamp(48px,11vw,67px);line-height:1.03}
 .page-banner h1{font-size:clamp(35px,9vw,46px)}.section-toolbar h2{font-size:clamp(30px,8vw,36px)}
 .quick-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.quick-item strong{font-size:12px}
 .htc5-origin-has-plugin .htc5-origin-plugin{width:calc(100% - 24px)}
 .htc5-news-content .gpc5-news-card{padding:17px 15px;border-radius:14px}
 .htc5-news-content .gpc5-news-card h3{font-size:22px}
 .htc5-news-content .gpc5-news-gallery img{height:145px}
 .htc5-shrines-content .gpc5-shrine-body{padding:17px}
 .htc5-home-plugin-news .gpc5-news-feed{grid-template-columns:1fr}
 .htc5-account-avatar-form{gap:7px}
}
@media(prefers-reduced-motion:reduce){.quick-icon svg{transition:none}}
@media(max-width:670px){.header-action .htc5-header-avatar{display:grid!important;width:27px;height:27px}.header-action .htc5-header-avatar img{display:block!important}}

/* v2.0.7 — Inline, permanently expanded kinship lookup above members. */
.htc5-kinship-panel{margin:0 0 33px;padding:22px 24px 25px;background:#fff9e8;border:1px solid #e4cc9b;border-radius:15px;box-shadow:0 10px 24px rgba(72,55,25,.05)}
.htc5-kinship-head{display:flex;align-items:flex-start;gap:16px;margin-bottom:18px}
.htc5-kinship-icon{flex:none;display:grid;place-items:center;background:#f4e7c9;color:var(--green);width:54px;height:54px;border-radius:13px}
.htc5-kinship-head h2{font-size:clamp(24px,2.5vw,33px);margin:4px 0}
.htc5-kinship-head p{margin:0;font-size:14px;color:#756d5d}
.htc5-kinship-panel>.plugin-surface{margin:0;min-height:0;background:#fffef9}
@media(max-width:600px){.htc5-kinship-panel{padding:14px 12px;margin-bottom:22px}.htc5-kinship-head{gap:10px}.htc5-kinship-icon{height:42px;width:42px}}

/* v2.0.8 — Plugin v0.50+ owns its native content cards, icons and controls. */
.htc5-native-surface{min-width:0;max-width:100%;overflow:visible;margin:0;background:transparent;border:0;padding:0;box-shadow:none}
.htc5-native-surface>.gpc5-content,.htc5-native-surface>.gpc5-community{max-width:100%;margin-inline:auto}
.htc5-view[data-view="news"] .feature-section:has(>.htc5-native-surface>.gpc5-news)>.section-toolbar,
.htc5-view[data-view="shrines"] .feature-section:has(>.htc5-native-surface>.gpc5-shrines)>.section-toolbar,
.htc5-view[data-view="members"] .feature-section:has(>.htc5-native-surface>.gpc5-directory-shell)>.section-toolbar,
.htc5-view[data-view="tree"] .feature-section:has(>.htc5-native-surface>.gpc5-tree)>.section-toolbar{display:none}
.htc5-kinship-panel:has(>.htc5-native-surface)>.htc5-kinship-head{display:none}
.htc5-kinship-panel:has(>.htc5-native-surface){background:transparent;border:0;padding:0;box-shadow:none}
.htc5-account-requests{margin-bottom:18px;min-width:0}.htc5-account-role{font-weight:800;color:#24523b}.htc5-own-profile-link{margin:8px 0 12px;justify-content:center;max-width:100%}
.htc5-home-plugin-news .gpc5-news-feed{display:grid;grid-template-columns:repeat(3,minmax(0,1fr))}
.htc5-home-plugin-news .gpc5-news-card-header,.htc5-home-plugin-news .gpc5-news-body,.htc5-home-plugin-news .gpc5-news-card-footer{padding-inline:14px}
.htc5-home-plugin-news .gpc5-news-gallery{padding-inline:14px}
@media(max-width:960px){.htc5-home-plugin-news .gpc5-news-feed{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:600px){.htc5-home-plugin-news .gpc5-news-feed{grid-template-columns:1fr}}

/* v2.0.9 – Theme owns the page banner; plugin owns component controls and content.
   Only native mounts are targeted. Standalone shortcodes and legacy fallbacks retain headings. */
.htc5-view[data-view="tree"] .feature-section:has(>.htc5-native-surface>.gpc5-tree)>.section-toolbar,
.htc5-view[data-view="members"] .feature-section:has(>.htc5-native-surface>.gpc5-directory-shell)>.section-toolbar,
.htc5-view[data-view="shrines"] .feature-section:has(>.htc5-native-surface>.gpc5-shrines)>.section-toolbar,
.htc5-view[data-view="news"] .feature-section:has(>.htc5-native-surface>.gpc5-news)>.section-toolbar{display:none}
.htc5-view[data-view="tree"] #htc5-tree-mount.htc5-native-surface>.gpc5-tree>.gpc5-workspace-head>div{display:none}
.htc5-view[data-view="tree"] #htc5-tree-mount.htc5-native-surface>.gpc5-tree>.gpc5-workspace-head{justify-content:flex-end;margin-bottom:10px}
.htc5-view[data-view="tree"].htc5-profile-mode #htc5-tree-mount>.gpc5-tree>.gpc5-workspace-head{display:none!important}
.htc5-view[data-view="shrines"] .htc5-native-surface>.gpc5-shrines>header{display:none}
.htc5-view[data-view="news"] .htc5-native-surface>.gpc5-news>.gpc5-news-toolbar>div:first-child{display:none}
.htc5-view[data-view="news"] .htc5-native-surface>.gpc5-news>.gpc5-news-toolbar{justify-content:flex-end;gap:0;margin:0 0 14px}
.htc5-view[data-view="news"] .htc5-native-surface>.gpc5-news>.gpc5-news-toolbar:not(:has(.gpc5-news-create)){display:none}
.htc5-home-plugin-news>.gpc5-news>.gpc5-news-toolbar{display:none}
.htc5-community-mount>.gpc5-community>.gpc5-community-header{display:none}
/* The origin shortcode owns its complete hero. Keep the established origin rule. */
.htc5-origin-has-plugin .origin-band,.htc5-origin-has-plugin .origin-story>.section-center{display:none}
/* Keep the component heading for kinship, and the Theme's main heading for Members. */
.htc5-kinship-panel:has(>.htc5-native-surface>.gpc5-kinship-standalone)>.htc5-kinship-head{display:none}

/* v2.0.10: menu icons and a single profile surface */
.nav-link{display:inline-flex;align-items:center;gap:5px;white-space:nowrap}.nav-link svg{flex:none;width:17px;height:17px}.htc5-profile-mode .feature-section{width:min(1180px,calc(100% - 32px));max-width:none}.htc5-profile-mode #htc5-tree-mount,.htc5-profile-mode .gpc5-tree.gpc5-is-profile-page,.htc5-profile-mode .gpc5-profile-overlay.gpc5-profile-page,.htc5-profile-mode .gpc5-profile-page .gpc5-profile-window{padding:0!important;border:0!important;background:transparent!important;box-shadow:none!important;margin:0 auto!important;width:100%!important;max-width:none!important}.htc5-profile-mode .gpc5-permalink-heading{display:none!important}.htc5-profile-mode .gpc5-profile-page .gpc5-profile-sheet{border:1px solid #e6d6b9!important;border-radius:20px!important;box-shadow:0 8px 30px #3a2d1620!important;max-width:none!important;width:100%!important}.htc5-profile-mode .gpc5-profile-main-left{background:transparent!important}.htc5-profile-mode .gpc5-profile-main-grid{background:transparent!important}

.htc5-origin-has-plugin:has(.gpc5-origin)>.origin-band,.htc5-origin-has-plugin:has(.gpc5-origin)>.origin-story>.section-center{display:none!important}.htc5-origin-has-plugin:has(.gpc5-origin)>.origin-story{padding-top:30px}.htc5-profile-mode .gpc5-profile-page .gpc5-profile-window{position:relative!important;inset:auto!important;height:auto!important;min-height:0!important}.htc5-profile-mode .gpc5-profile-page .gpc5-profile-sheet{height:auto!important;max-height:none!important;overflow:visible!important}

/* v2.0.11 — consistent page typography and one primary title at every width */
.htc5-view .page-banner h1,.htc5-member-profile-hero h1,.htc5-origin-root .origin-band h1{font-family:Charm,Georgia,serif!important;font-weight:700!important;line-height:1.2!important;letter-spacing:0!important;color:#17452f!important}
.htc5-view .htc5-native-surface .gpc5-origin-hero h2{font-family:Charm,Georgia,serif!important}
.htc5-view[data-view="members"] .feature-section:has(.gpc5-directory-shell)>.section-toolbar,.htc5-view[data-view="members"] .feature-section:has(.gpc5-directory-shell) .gpc5-directory-heading>div:first-child,.htc5-view[data-view="tree"] #htc5-tree-mount>.gpc5-tree>.gpc5-workspace-head>div:first-child,.htc5-view[data-view="news"] .htc5-native-surface>.gpc5-news>.gpc5-news-toolbar>div:first-child,.htc5-view[data-view="shrines"] .htc5-native-surface>.gpc5-shrines>header,.htc5-community-mount>.gpc5-community>.gpc5-community-header,.htc5-profile-mode .gpc5-permalink-heading,.htc5-kinship-panel:has(.gpc5-kinship-standalone)>.htc5-kinship-head{display:none!important}
.htc5-view[data-view="members"] .gpc5-directory-heading:not(:has(.gpc5-directory-actions>*)){display:none!important}
.htc5-view[data-view="members"] .gpc5-directory-heading{justify-content:flex-end!important;gap:0!important}
@media(max-width:700px){.htc5-view .page-banner h1,.htc5-member-profile-hero h1{font-size:clamp(30px,8vw,42px)!important}.htc5-view .page-banner{padding:24px 0 26px}.htc5-profile-mode .feature-section{width:calc(100% - 20px)!important;padding-inline:0!important}}

.htc5-view[data-view="shrines"] .feature-section:has(>.htc5-native-surface>.gpc5-shrines)>.section-toolbar:has([data-htc5-create-open="shrine"]){display:flex!important;justify-content:flex-end!important;margin-bottom:12px!important}.htc5-view[data-view="shrines"] .feature-section:has(>.htc5-native-surface>.gpc5-shrines)>.section-toolbar>div{display:none!important}.htc5-view[data-view="shrines"] .feature-section:has([data-htc5-create-open="shrine"]) .gpc5-content-admin-link{display:none!important}

/* v2.0.13: canonical account image, compact feed and contact layout */
.site-header .header-action{flex-shrink:0;display:inline-flex;align-items:center;justify-content:center}
.site-header .header-action .htc5-header-avatar{display:block!important;flex:0 0 30px;width:30px;height:30px;aspect-ratio:1;border-radius:50%;overflow:hidden;padding:0;line-height:0}
.site-header .header-action .htc5-header-avatar img{display:block!important;width:100%!important;height:100%!important;max-width:none!important;max-height:none!important;aspect-ratio:1;object-fit:cover;object-position:center;margin:0!important;padding:0!important;border-radius:50%}
@media(max-width:670px){.site-header .header-action:has(.htc5-header-avatar){width:40px;height:40px;min-width:40px;padding:3px!important;gap:0;background:#961f1d}.site-header .header-action .htc5-header-avatar{width:32px;height:32px;flex-basis:32px}.site-header .header-action>span:not(.htc5-header-avatar){display:none!important}.site-header .brand{flex-shrink:1;min-width:0}.site-header .brand-copy{min-width:0}.site-header .brand-copy strong,.site-header .brand-copy small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}}
.htc5-home-plugin-news .gpc5-news-toolbar,.htc5-home-plugin-news .gpc5-news-controls,.htc5-home-plugin-news .gpc5-news-count{display:none!important}
.htc5-home-plugin-news .gpc5-news-feed{grid-template-columns:repeat(auto-fit,minmax(min(100%,300px),1fr))!important}
.htc5-contact-redesign{grid-template-columns:minmax(0,.9fr) minmax(0,1.1fr);gap:clamp(24px,5vw,76px);padding-block:clamp(30px,5vw,70px);align-items:start}
.htc5-contact-redesign .contact-copy{padding:clamp(22px,3vw,36px);border:1px solid #e6d7b3;background:linear-gradient(145deg,#fffdf8,#f7efdb);border-radius:20px;min-width:0}
.htc5-contact-redesign .contact-copy h2{font-family:Charm,Georgia,serif;font-size:clamp(30px,3.5vw,43px);line-height:1.25}
.htc5-contact-redesign .contact-points{margin:24px 0 0;gap:12px}
.htc5-contact-redesign .contact-points>div{padding:16px 14px;background:#fffdf8;border:1px solid #e5d9be;border-radius:13px;align-items:flex-start;gap:12px}
.htc5-contact-redesign .contact-points>div>svg{flex:0 0 24px;color:#216146;margin-top:2px}
.htc5-contact-redesign .contact-points>div span{min-width:0;gap:4px}.htc5-contact-redesign .contact-points small{font-size:14px;line-height:1.55;overflow-wrap:anywhere}.htc5-contact-redesign .contact-points a{color:#1d563c;text-decoration:underline}
.htc5-contact-redesign .contact-form{padding:clamp(22px,3vw,40px);border:1px solid #e1d2ad;border-top:4px solid #20533d;border-radius:20px;background:#fffefd;min-width:0}
.htc5-contact-redesign .contact-form h3{font-family:'Baloo 2',sans-serif;color:#204f37;font-size:30px;line-height:1.2;margin:8px 0}.htc5-contact-lead{color:#6e695e;font-size:14px;margin:0 0 22px}
.htc5-contact-redesign .contact-form>label{font-size:14px;margin-top:18px}.htc5-contact-redesign .contact-form input:not([type=hidden]),.htc5-contact-redesign .contact-form textarea{font:inherit;min-height:46px;background:#fffdf8;border:1px solid #d9c8a4;border-radius:10px}.htc5-contact-redesign .contact-form textarea{min-height:170px}.htc5-contact-redesign .contact-form .primary-btn{background:#204f37;justify-content:center;width:100%;min-height:47px}.htc5-contact-redesign .privacy-note{padding:12px;background:#eff4eb;border-radius:9px;line-height:1.55;color:#526952}
@media(max-width:800px){.htc5-contact-redesign{grid-template-columns:1fr;gap:20px}.htc5-contact-redesign .contact-copy,.htc5-contact-redesign .contact-form{padding:20px}}
.htc5-create-actions button[hidden]{display:none!important}

.htc5-keeper-results button{display:flex;align-items:center;gap:12px;text-align:left}.htc5-keeper-meta{display:grid;gap:2px}.htc5-keeper-meta small{color:#756b59;font-size:12px}.htc5-keeper-avatar{display:grid;place-items:center;flex:0 0 38px;width:38px;height:38px;border-radius:50%;background:#789787;color:#fff;position:relative;font-size:23px}.htc5-keeper-avatar.male{background:#028bc6}.htc5-keeper-avatar.female{background:#eb315e}.htc5-keeper-avatar img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;border-radius:50%}

/* v2.0.15 — full news text on narrow screens; no footer overlap. */
.htc5-home-plugin-news .gpc5-news-card:not([hidden]){height:auto!important;max-height:none!important;min-height:0!important}
.htc5-home-plugin-news .gpc5-news-body{display:block!important;-webkit-line-clamp:unset!important;line-clamp:none!important;height:auto!important;max-height:none!important;overflow:visible!important;white-space:normal!important}
.htc5-home-plugin-news .gpc5-news-card-footer{position:static!important;flex-shrink:0}
.htc5-home-plugin-news .gpc5-news-body img{max-width:100%;height:auto}
.htc5-account-inbox{grid-column:1/-1;min-width:0}.htc5-account-inbox>.gpc5-inbox{max-width:none;margin:0;width:100%}
@media(max-width:700px){.htc5-home-plugin-news .gpc5-news-feed{grid-template-columns:minmax(0,1fr)!important}.htc5-home-plugin-news .gpc5-news-body{font-size:14px;line-height:1.65}.htc5-home-plugin-news .gpc5-news-meta{gap:8px}}

/* v2.0.16: compact inbox sits in the account edit column, never underneath the sticky overview. */
.htc5-account-edit{min-width:0;grid-template-columns:minmax(0,1fr)}
.htc5-account-edit>.htc5-account-inbox{grid-column:auto;min-width:0;max-width:100%;width:100%;align-self:start}
.htc5-account-inbox>.gpc5-inbox{width:100%;max-width:100%;margin:0;padding:18px 20px;border-radius:16px;font-size:13px;line-height:1.5}
.htc5-account-inbox .gpc5-inbox-head{align-items:flex-start;gap:6px 12px}
.htc5-account-inbox .gpc5-inbox-head h2{font-size:24px;margin:2px 0 4px}
.htc5-account-inbox .gpc5-inbox-head p{font-size:13px;margin:0 0 5px}
.htc5-account-inbox .gpc5-inbox-kicker{font-size:10px;letter-spacing:.08em}
.htc5-account-inbox .gpc5-inbox-count,.htc5-account-inbox .gpc5-inbox-state{font-size:11px;padding:3px 9px;white-space:nowrap}
.htc5-account-inbox .gpc5-inbox-tabs{gap:5px;margin:10px 0 8px}
.htc5-account-inbox .gpc5-inbox-tabs a{font-size:12px;padding:5px 10px}
.htc5-account-inbox .gpc5-inbox-letter{margin:8px 0;border-radius:10px}
.htc5-account-inbox .gpc5-inbox-letter>details>summary{padding:9px 12px;gap:8px;grid-template-columns:9px minmax(0,1fr) auto auto}
.htc5-account-inbox .gpc5-inbox-letter time{font-size:11px;white-space:nowrap}
.htc5-account-inbox .gpc5-inbox-body{padding:12px}
.htc5-account-inbox .gpc5-inbox-actions{padding:7px 10px;gap:5px}
.htc5-account-inbox .gpc5-inbox-actions button,.htc5-account-inbox .gpc5-inbox-delete-toggle{padding:5px 9px;font-size:11px}
.htc5-account-inbox .gpc5-inbox-pagination{margin:8px 0 0}
.htc5-account-inbox .gpc5-inbox-pagination:empty{display:none}
.htc5-account-inbox .gpc5-inbox-empty{padding:16px;margin:8px 0 0}
@media(max-width:600px){.htc5-account-inbox>.gpc5-inbox{padding:13px}.htc5-account-inbox .gpc5-inbox-head h2{font-size:22px}.htc5-account-inbox .gpc5-inbox-letter>details>summary{grid-template-columns:9px minmax(0,1fr);gap:4px 8px}.htc5-account-inbox .gpc5-inbox-letter time,.htc5-account-inbox .gpc5-inbox-state{grid-column:2;justify-self:start}.htc5-account-inbox .gpc5-inbox-actions .gpc5-inbox-delete-form{margin-left:0}}


/* v2.0.17 — refined member kinship, compact tree workspace, ornament divider, balanced contact layout */

.htc5-kinship-panel{background:linear-gradient(180deg,#fffefb,#fbf5e8);border-color:#ead8b5;box-shadow:0 10px 24px rgba(72,55,25,.04)}
.htc5-kinship-head{margin-bottom:16px}.htc5-kinship-head h2{font-size:clamp(28px,3vw,38px);line-height:1.15}.htc5-kinship-head p{font-size:15px;color:#6e685b}
.htc5-kinship-panel .plugin-surface{padding:20px;border-radius:18px;background:#fffefb;border-color:#ead8b5}

.htc5-contact-redesign{grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:clamp(22px,4vw,54px);align-items:stretch}
.htc5-contact-redesign .contact-copy,.htc5-contact-redesign .contact-form{height:100%}
.htc5-contact-redesign .contact-copy{display:flex;flex-direction:column;justify-content:space-between;padding:clamp(24px,3vw,38px);border:1px solid #e6d7b3;background:linear-gradient(145deg,#fffdf8,#f7efdb);border-radius:22px}
.htc5-contact-redesign .contact-copy>p{max-width:560px;font-size:17px;line-height:1.75;margin-bottom:26px}
.htc5-contact-redesign .contact-points{margin:0;gap:14px}.htc5-contact-redesign .contact-points>div{min-height:0;padding:18px 16px;border-radius:15px;align-items:flex-start}
.htc5-contact-redesign .contact-form{display:flex;flex-direction:column;justify-content:flex-start;padding:clamp(24px,3vw,40px);border:1px solid #e1d2ad;border-top:4px solid #20533d;border-radius:22px;background:#fffefd}
.htc5-contact-redesign .contact-form h3{font-family:'Baloo 2',sans-serif;font-size:clamp(30px,3vw,40px);line-height:1.15;margin:8px 0 12px;color:#204f37}
.htc5-contact-redesign .contact-form .primary-btn{margin-top:16px;min-height:52px;border-radius:9px}
.htc5-contact-lead{font-size:15px;line-height:1.7;color:#6e695e;margin:0 0 18px}
@media(max-width:900px){.htc5-contact-redesign{grid-template-columns:1fr;gap:22px}.htc5-contact-redesign .contact-copy,.htc5-contact-redesign .contact-form{padding:20px}}


/* v2.0.18 — restore classic divider, cleaner contact, and hide home stats note */
.demo-note{display:none!important}

.htc5-contact-redesign{grid-template-columns:minmax(0,.98fr) minmax(0,1.02fr);gap:clamp(24px,4vw,44px);align-items:stretch}
.htc5-contact-redesign .contact-copy{display:grid;grid-template-rows:auto auto 1fr;gap:18px;padding:clamp(26px,3vw,40px);border:1px solid #e5d6b7;background:linear-gradient(180deg,#fffefb,#fbf5e7 85%);border-radius:26px;box-shadow:0 14px 34px rgba(74,53,20,.05)}
.htc5-contact-redesign .contact-copy h2{font-family:Charm,Georgia,serif;font-size:clamp(34px,4vw,52px);line-height:1.08;margin:8px 0 4px;color:#174534}
.htc5-contact-redesign .contact-copy>p{max-width:620px;font-size:18px;line-height:1.78;color:#6d6658;margin:0}
.htc5-contact-redesign .contact-points{display:grid;grid-template-columns:1fr;gap:14px;margin-top:8px}
.htc5-contact-redesign .contact-points>div{display:grid;grid-template-columns:auto minmax(0,1fr);align-items:start;gap:14px;padding:18px 18px;border:1px solid #e4d6b9;border-radius:18px;background:#fffdfa;box-shadow:0 6px 18px rgba(84,60,23,.04)}
.htc5-contact-redesign .contact-points>div>svg{width:24px;height:24px;color:#1f6a4b;margin-top:2px}.htc5-contact-redesign .contact-points strong{display:block;font-size:17px;color:#1f4634;line-height:1.35}.htc5-contact-redesign .contact-points small{display:block;font-size:14px;line-height:1.65;color:#736d60}.htc5-contact-redesign .contact-points a{color:#1d5e42;text-decoration:underline;text-underline-offset:3px}
.htc5-contact-redesign .contact-form{display:flex;flex-direction:column;justify-content:flex-start;padding:clamp(26px,3vw,40px);border:1px solid #ddd0af;border-top:4px solid #20533d;border-radius:26px;background:#fffefd;box-shadow:0 14px 34px rgba(74,53,20,.06)}
.htc5-contact-redesign .contact-form h3{font-family:'Baloo 2',sans-serif;font-size:clamp(34px,4vw,52px);line-height:1.08;margin:8px 0 14px;color:#204f37}.htc5-contact-lead{font-size:15px;line-height:1.75;color:#6f695e;margin:0 0 20px}.htc5-contact-redesign .contact-form>label{font-size:14px;margin-top:16px;color:#2d513e}.htc5-contact-redesign .contact-form input:not([type=hidden]),.htc5-contact-redesign .contact-form textarea{font:inherit;min-height:50px;padding:13px 14px;background:#fffdf8;border:1px solid #d8c7a3;border-radius:12px}.htc5-contact-redesign .contact-form textarea{min-height:178px}.htc5-contact-redesign .privacy-note{padding:12px 14px;background:#eef4ea;border-radius:12px;line-height:1.6;color:#586b56}.htc5-contact-redesign .contact-form .primary-btn{margin-top:18px;min-height:54px;width:100%;border-radius:999px}
@media(max-width:920px){.htc5-contact-redesign{grid-template-columns:1fr;gap:22px}.htc5-contact-redesign .contact-copy,.htc5-contact-redesign .contact-form{padding:22px}.htc5-contact-redesign .contact-copy h2,.htc5-contact-redesign .contact-form h3{font-size:clamp(30px,6.5vw,42px)}}


/* v2.0.19 — long line-star-line dividers, account inbox on top, screenshot-based contact layout */
.htc5-account-edit{display:grid!important;gap:18px!important}.htc5-account-edit>.htc5-account-inbox{order:-5!important}
.htc5-contact-showcase{display:grid;grid-template-columns:minmax(0,1.05fr) minmax(320px,.85fr);gap:clamp(24px,4vw,54px);align-items:start;padding-block:56px 80px}.htc5-contact-story{display:grid;gap:18px;align-content:start}.htc5-contact-story h2{font-family:Charm,Georgia,serif;font-size:clamp(40px,4.5vw,60px);line-height:1.06;margin:0;color:#133f32}.htc5-contact-story .ornament{margin:0 0 6px}.htc5-contact-story>p{font-size:18px;line-height:1.82;color:#6f685b;max-width:760px;margin:0}.htc5-contact-inline{display:grid;grid-template-columns:auto minmax(0,1fr);gap:15px;align-items:start;padding:15px 18px;border:1px solid #dec899;border-radius:16px;background:#fff9ec;max-width:610px}.htc5-contact-inline>svg{width:24px;height:24px;color:#1f6b4b;margin-top:3px}.htc5-contact-inline strong{display:block;font-size:17px;line-height:1.38;color:#234633}.htc5-contact-inline small{display:block;font-size:15px;line-height:1.7;color:#6e685c}.htc5-contact-inline a{color:#1c5d41;text-decoration:underline;text-underline-offset:3px}
.htc5-contact-values{list-style:none;margin:0;padding:0;display:grid;gap:14px;max-width:620px}.htc5-contact-values li{display:grid;grid-template-columns:auto minmax(0,1fr);gap:13px;align-items:start}.htc5-contact-values svg{width:22px;height:22px;color:#b37725;margin-top:2px}.htc5-contact-values strong{display:block;font-size:16px;color:#214434;line-height:1.35}.htc5-contact-values span{display:block;font-size:15px;line-height:1.62;color:#79725f}

.htc5-contact-message{grid-column:2;min-width:0;max-width:100%;width:100%;margin:0;justify-self:stretch}.htc5-contact-message.contact-form{display:block;padding:clamp(24px,3vw,34px);border:1px solid #e2d2b2;border-top:3px solid #20533d;border-radius:22px;background:#fffdfa;box-shadow:0 12px 28px rgba(74,53,20,.05)}.htc5-contact-message h3{font-family:'Baloo 2',sans-serif;font-size:clamp(28px,4vw,40px);line-height:1.1;margin:10px 0 12px;color:#20533d}.htc5-contact-message .primary-btn{width:100%;max-width:300px}
@media(max-width:960px){.htc5-contact-showcase{grid-template-columns:1fr}.htc5-contact-message{grid-column:1;order:2}.htc5-contact-story h2{font-size:clamp(32px,8vw,46px)}}
@media(max-width:600px){.htc5-contact-story>p{font-size:16px}.htc5-contact-inline,.htc5-contact-values li{gap:12px}.htc5-contact-message .primary-btn{max-width:none;width:100%}}

/* v2.0.20 — classic divider and contact form in the former contribution column. */
.htc5-contact-message .primary-btn{max-width:none;width:100%;justify-content:center}
.htc5-contact-message.contact-form{min-width:0}
.htc5-contact-message .privacy-note{overflow-wrap:anywhere}


/* v2.0.21 — contact emphasis + compact form */
.htc5-contact-inline strong{font-size:20px;line-height:1.3;font-weight:800}
.htc5-contact-person{display:block;margin-top:4px;font-style:normal;font-size:16px;font-weight:700;line-height:1.55;color:#204f37}
.htc5-contact-phone-label{font-weight:800;color:#234633}
.htc5-contact-inline small{font-size:16px;line-height:1.72}
.htc5-contact-message{justify-self:end}
.htc5-contact-message.contact-form{max-width:580px}
.htc5-contact-message h3{font-size:clamp(26px,3.4vw,36px)}
.htc5-contact-message textarea,.htc5-contact-showcase .contact-form textarea{min-height:132px}
.htc5-contact-lead{margin:0 0 14px}
@media(max-width:960px){.htc5-contact-message{justify-self:stretch}.htc5-contact-message.contact-form{max-width:none}}

/* v2.0.22 — shorter message card; legible contact details */
.htc5-contact-showcase .htc5-contact-inline strong{font-size:20px;font-weight:800;line-height:1.35}
.htc5-contact-showcase .htc5-contact-phone-label,.htc5-contact-showcase .htc5-contact-inline small a{font-size:18px;font-weight:800;color:#204f37;overflow-wrap:anywhere}
.htc5-contact-showcase .htc5-contact-message.contact-form{padding:clamp(16px,2vw,24px);align-self:start;height:auto;max-width:520px}
.htc5-contact-showcase .htc5-contact-message h3{margin:4px 0 6px;line-height:1.15}
.htc5-contact-showcase .htc5-contact-message .htc5-contact-lead{margin:0 0 8px;font-size:13px;line-height:1.5}
.htc5-contact-showcase .htc5-contact-message>label{margin:8px 0 3px;line-height:1.4}
.htc5-contact-showcase .htc5-contact-message input:not([type=hidden]){padding:8px 11px;min-height:40px;line-height:1.3}
.htc5-contact-showcase .htc5-contact-message textarea{min-height:88px;height:88px;padding:8px 11px;line-height:1.4;resize:vertical}
.htc5-contact-showcase .htc5-contact-message .privacy-note{margin:8px 0;font-size:12px;line-height:1.45}
.htc5-contact-showcase .htc5-contact-message .primary-btn{margin-top:2px;min-height:44px}
@media(max-width:960px){.htc5-contact-showcase .htc5-contact-message.contact-form{max-width:none}}

/* v2.0.23 — match reference contact layout, equal-height desktop columns. */
.htc5-contact-showcase{align-items:stretch;grid-template-columns:minmax(0,1.05fr) minmax(0,.85fr)}
.htc5-contact-showcase .htc5-contact-story{min-width:0;align-self:stretch}
.htc5-contact-showcase .htc5-contact-inline strong{font-size:clamp(17px,1.5vw,20px);font-weight:800}
.htc5-contact-showcase .htc5-contact-inline small{font-size:15px;line-height:1.55}
.htc5-contact-showcase .htc5-contact-phone-label{font-size:inherit;font-weight:400;color:inherit}
.htc5-contact-showcase .htc5-contact-inline small a{font-size:19px;font-weight:900;color:#204f37;text-decoration:underline;text-underline-offset:3px}
.htc5-contact-showcase .htc5-contact-message.contact-form{display:flex;flex-direction:column;align-self:stretch;justify-self:stretch;width:100%;max-width:none;height:auto;min-height:0;padding:clamp(18px,2vw,26px);gap:0}
.htc5-contact-showcase .htc5-contact-message h3{font-size:clamp(26px,2.6vw,35px);margin:5px 0 7px;line-height:1.15}
.htc5-contact-showcase .htc5-contact-message .htc5-contact-lead{font-size:14px;line-height:1.5;margin:0 0 6px}
.htc5-contact-showcase .htc5-contact-message>label{font-size:13px;line-height:1.4;margin:9px 0 4px}
.htc5-contact-showcase .htc5-contact-message>input:not([type=hidden]){flex:0 0 auto;min-height:42px;padding:8px 12px;line-height:1.4}
.htc5-contact-showcase .htc5-contact-message>textarea{flex:1 0 82px;min-height:82px;height:82px;padding:9px 12px;line-height:1.45;resize:vertical}
.htc5-contact-showcase .htc5-contact-message .privacy-note{margin:9px 0 12px;font-size:12px;line-height:1.5}
.htc5-contact-showcase .htc5-contact-message .primary-btn{flex:0 0 auto;min-height:44px;margin:0;border-radius:9px}
@media(max-width:960px){.htc5-contact-showcase{grid-template-columns:1fr;align-items:start}.htc5-contact-showcase .htc5-contact-message.contact-form{align-self:start;padding:20px}.htc5-contact-showcase .htc5-contact-message>textarea{flex:0 0 auto;min-height:100px;height:100px}}

/* v2.0.24 — origin shortcode owns full-width shell and bounded inner content. */
.htc5-origin-has-plugin:has(.gpc5-origin-story-v72)>.origin-story{padding:0!important;width:100%!important;max-width:none!important;margin:0!important}.htc5-origin-has-plugin:has(.gpc5-origin-story-v72) .htc5-native-surface,.htc5-origin-has-plugin:has(.gpc5-origin-story-v72) .htc5-origin-plugin{width:100%!important;max-width:none!important;margin:0!important;padding:0!important;background:transparent!important}.htc5-origin-has-plugin .gpc5-origin-story-v72 .gpc5-origin-hero{margin:0!important;border:0!important;border-bottom:4px solid #b68a45!important;border-radius:0!important;background:linear-gradient(125deg,#10291e,#183c2c 53%,#10291e)!important}.htc5-origin-has-plugin .gpc5-origin-story-v72 .gpc5-origin-hero h2{color:#fff7df!important;font-family:Charm,Georgia,serif!important}.htc5-origin-has-plugin .gpc5-origin-story-v72 .gpc5-origin-inner{width:min(1240px,calc(100% - 48px))!important;margin-inline:auto!important}@media(max-width:670px){.htc5-origin-has-plugin .gpc5-origin-story-v72 .gpc5-origin-inner{width:calc(100% - 30px)!important}}
/* v2.0.25 — origin module uses its own full-bleed hero and bounded reader, as in source. */
.htc5-origin-has-plugin .gpc5-origin-story-v72 .gpc5-origin-hero{background:radial-gradient(circle at 77% 25%,rgba(213,169,82,.16),transparent 34%),radial-gradient(circle at 0% 95%,rgba(94,137,93,.16),transparent 35%),linear-gradient(125deg,#10291e,#183c2c 53%,#10291e)!important}
.htc5-origin-has-plugin .gpc5-origin-story-v72 .gpc5-origin-inner{max-width:1240px}.htc5-origin-has-plugin .gpc5-origin-story-v72 .gpc5-origin-layout{isolation:isolate}@media(max-width:960px){.htc5-origin-has-plugin .gpc5-origin-story-v72 .gpc5-origin-layout{max-width:740px}}


/* v2.0.27: keep legacy Cội nguồn styling away from the new reader. */
.htc5-origin-has-plugin:has(.gpc5-origin-story-v72)>.origin-story{width:100%!important;max-width:none!important;margin:0!important;padding:0!important;overflow:visible!important}
.htc5-origin-has-plugin:has(.gpc5-origin-story-v72) .htc5-origin-plugin,
.htc5-origin-has-plugin:has(.gpc5-origin-story-v72) .htc5-native-surface{width:100%!important;max-width:none!important;margin:0!important;padding:0!important;border:0!important;overflow:visible!important;background:transparent!important;box-shadow:none!important}
.htc5-origin-has-plugin .gpc5-origin-story-v72{max-width:none!important;width:100%!important;padding:0 0 64px!important}
.htc5-origin-has-plugin .gpc5-origin-story-v72 .gpc5-origin-hero{margin:0!important;padding-bottom:0!important;border-radius:0!important;max-width:none!important}
.htc5-origin-has-plugin .gpc5-origin-story-v72 .gpc5-origin-chapter-surface{margin:0!important;max-width:100%!important}
@media(max-width:620px){.htc5-origin-has-plugin .gpc5-origin-story-v72 .gpc5-origin-inner{width:calc(100% - 28px)!important}}

/* The origin reader supplies its own responsive grid and main heading. */
.htc5-origin-has-plugin:has([data-origin-reader]) > .origin-story,
.htc5-origin-has-plugin:has([data-origin-reader]) .htc5-origin-plugin {
    width:100%; max-width:none; padding:0 !important; margin:0; border:0; box-shadow:none; background:transparent; overflow:visible;
}
.htc5-origin-has-plugin .g5o-origin-shell {width:100%;max-width:none;margin:0}


/* v2.0.30 — isolate legacy origin wrappers from the source-guided reader. */
.htc5-origin-has-plugin:has(.g5o-origin-shell)>.origin-story{width:100%!important;max-width:none!important;margin:0!important;padding:0!important;overflow:visible!important}
.htc5-origin-has-plugin:has(.g5o-origin-shell) .htc5-origin-plugin,.htc5-origin-has-plugin:has(.g5o-origin-shell) .htc5-native-surface{width:100%!important;max-width:none!important;min-width:0!important;margin:0!important;padding:0!important;border:0!important;box-shadow:none!important;background:transparent!important;overflow:visible!important}
.htc5-origin-has-plugin .g5o-origin-shell{width:100%!important;max-width:none!important;margin:0!important;min-width:0!important}
.htc5-origin-has-plugin .g5o-origin-shell .g5o-wrap{max-width:1240px;margin-inline:auto}
@media(max-width:960px){.htc5-origin-has-plugin .g5o-origin-shell .g5o-story-layout{grid-template-columns:minmax(0,1fr)!important}.htc5-origin-has-plugin .g5o-origin-shell .g5o-chapters-column{min-width:0}}

/* v2.0.31: Phần Mộ shortcut under Ngày giỗ, aligned with the site header. */
.htc5-memorial-grave-cta{display:inline-flex;gap:9px;align-items:center;margin-top:17px;padding:11px 19px;background:#fff8e7;color:#27543d!important;border:1px solid #d9b777;border-radius:999px;font-size:14px;font-weight:800;text-decoration:none!important;box-shadow:0 3px 9px #1d382014;transition:background .18s}
.htc5-memorial-grave-cta:hover{background:#f5ead0}.htc5-memorial-grave-cta svg{width:18px;height:18px}

/* v2.0.32 — HeritageArchive uses one compact source-style heading, not the double page banner. */
.htc5-view[data-view="documents"]{background:#faf6ec;min-height:60vh;padding:0 0 30px}
.htc5-view[data-view="documents"]>.htc5-documents-accessible-title{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}
.htc5-view[data-view="documents"] .g5h-reference-layout{max-width:1100px;margin-inline:auto}


/* v2.0.33: Four-point original ornamental star at a fixed aspect ratio.
   Only the two lines may expand; never stretch the SVG star. */
.ornament .htc5-ornament-star {
  display:block!important;
  width:24px!important;
  height:24px!important;
  min-width:24px!important;
  max-width:24px!important;
  flex:0 0 24px!important;
  object-fit:contain!important;
  aspect-ratio:1/1!important;
  background:none!important;
}
.ornament > span:not(.htc5-ornament-star) {
  flex:0 0 45px;
  width:45px;
  height:1px;
  background:#caa45e;
}
/* Ready-to-use long separator in the Theme; center symbol remains fixed. */
.htc5-ornamental-divider {
  display:block;
  height:24px;
  width:100%;
  border:0!important;
  background-image:url("assets/images/ornamental-star.svg"),linear-gradient(#caa45e,#caa45e),linear-gradient(#caa45e,#caa45e);
  background-repeat:no-repeat;
  background-size:24px 24px,calc(50% - 24px) 1px,calc(50% - 24px) 1px;
  background-position:center,left center,right center;
}


/* v2.0.34 — footer's long horizontal separator uses the original four-point star.
   The STAR is a fixed 24 x 24 image; only the two 1 px lines expand. */
.footer .footer-bottom {
  position:relative;
  border-top:0!important;
  padding-top:44px;
}
.footer .footer-bottom::before {
  content:"";
  position:absolute;
  inset-inline:0;
  top:3px;
  height:24px;
  pointer-events:none;
  background-image:url("assets/images/ornamental-star.svg"),linear-gradient(#caa45e,#caa45e),linear-gradient(#caa45e,#caa45e);
  background-repeat:no-repeat;
  background-position:center center,left center,right center;
  background-size:24px 24px,calc(50% - 24px) 1px,calc(50% - 24px) 1px;
}
@media(max-width:670px){
  .footer .footer-bottom{padding-top:42px}
}

/* v2.0.37 — keep member chat launcher above page/footer without restyling other components. */
body .gpc5-chat-dock{isolation:isolate}
body .gpc5-chat-dock button{font-family:inherit}


/* v2.0.38 — Consistent rectangular action buttons; keep avatars and card containers unchanged. */
:root{--htc5-action-radius:9px}
:where(.htc5-view,.site-header,.footer,.htc5-content-popup,.htc5-auth-modal,.htc5-auth-backdrop,.htc5-create-backdrop)
:is(button,input[type="submit"],input[type="button"],a.primary-btn,a.outline-btn,a.brush-btn,a.header-action,a.htc5-memorial-grave-cta):not(:where(.gpc5-list-person,.gpc5-profile-person-item,.gpc5-directory-card,.gpc5-root-option,.gpc5-member-card,.gpc5-community-event-card)){border-radius:var(--htc5-action-radius)!important}
/* Explicit CTA overrides inherited brush/pill styles. */
.hero a.primary-btn.brush-btn,.htc5-contact-showcase .htc5-contact-message .primary-btn,
.htc5-contact-redesign .contact-form .primary-btn,.htc5-memorial-grave-cta,
.site-header .header-action{border-radius:var(--htc5-action-radius)!important}
/* The avatar remains round, even though the action container is a rounded square. */
.site-header .htc5-header-avatar,.site-header .htc5-header-avatar img{border-radius:50%!important}

/* Mobile header: WordPress toolbar is 46px high, not 32px. The old offset
   left a visible cream strip between the fixed header and the hero. */
@media(max-width:782px){
 body.admin-bar .site-header{top:46px!important}
}
@media(max-width:670px){
 /* No decorative fourth grid slot: the giant 福 mark created an empty footer row. */
 .footer{padding-top:30px}
 .footer-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:20px 16px;align-items:start}
 .footer-grid>div:first-child{grid-column:1/-1}
 .footer-grid>.footer-mark{display:none!important}
 .footer-grid>div>a:not(.footer-brand){padding:3px 0}
 .footer .footer-bottom{margin-top:20px;padding-top:36px;padding-bottom:16px;line-height:1.55}
 .footer .footer-bottom::before{top:2px}
 /* Keep hero flush against the header with no synthetic spacer. */
 main#main-content{padding-top:0!important;margin-top:0!important}
 .htc5-view[data-view="home"]{padding-top:0!important;margin-top:0!important}
 .htc5-view[data-view="home"]>.hero{margin-top:0!important}
}




/* v2.0.40 — Fix the root cause of all three highlighted gaps.
   The header remains in normal page flow and STICKS on scroll; no artificial
   body spacer or JS admin offset is needed. WP's toolbar is fixed on desktop,
   but scrolls away below 600px, so sticky top follows that distinction. */
body { padding-top:0 !important; }
body .site-header { position:sticky !important; top:0 !important; }
body.admin-bar .site-header { top:32px !important; }
@media (max-width:782px) {
  body.admin-bar .site-header { top:46px !important; }
}
@media (max-width:600px) {
  body.admin-bar .site-header { top:0 !important; }
}

/* Footer: preserve 福 as a small top-right watermark; never reserve a
   separate grid row or blank section below the links on phones. */
@media (max-width:670px) {
  .footer { padding-top:30px; }
  .footer-grid { position:relative; grid-template-columns:repeat(2,minmax(0,1fr));
                 gap:20px 16px; align-items:start; padding-bottom:5px; }
  .footer-grid>div:first-child { grid-column:1 / -1; }
  .footer-grid>.footer-mark { display:block!important; position:absolute; right:4px;
                 top:87px; left:auto; bottom:auto; transform:none; grid-column:auto;
                 color:rgba(244,220,157,.44); font-size:46px; line-height:1;
                 width:56px; height:50px; text-align:center; pointer-events:none; }
  .footer .footer-bottom { margin-top:0; padding-top:35px; padding-bottom:16px; }
  .footer .footer-bottom::before { top:2px; }
}


/* v2.0.41 — Center the large 福 watermark between the two footer link columns.
   Absolute positioning means it adds no blank height at the bottom. */
@media(max-width:670px){
 .footer-grid{position:relative!important}
 .footer-grid>div:not(.footer-mark){position:relative;z-index:1}
 .footer-grid>.footer-mark{
   display:block!important;position:absolute!important;left:50%!important;top:63%!important;
   right:auto!important;bottom:auto!important;transform:translate(-50%,-50%)!important;
   width:auto!important;height:auto!important;margin:0!important;padding:0!important;
   line-height:1!important;font-size:clamp(76px,21vw,98px)!important;
   font-family:serif!important;font-weight:500;color:rgba(244,220,157,.20)!important;
   text-align:center!important;pointer-events:none!important;z-index:0!important;
 }
}

/* v2.0.42 | The avatar shape and search fields follow Plugin v1.1.3.
   Header profile images, account avatars and keeper picker are rounded squares.
   The Bubble diagram's circular SVG portraits are intentionally excluded. */
:root{--htc5-avatar-corner:13px;--htc5-search-corner:11px}
.site-header .header-action .htc5-header-avatar,
.site-header .header-action .htc5-header-avatar img,
.site-header .htc5-header-avatar,
.site-header .htc5-header-avatar img,
.htc5-account-avatar img,
.htc5-account-avatar img.htc5-account-avatar-image,
.htc5-keeper-avatar,
.htc5-keeper-avatar img{
  border-radius:var(--htc5-avatar-corner)!important;
}
:where(.htc5-view,.htc5-auth-dialog,.htc5-content-popup,.htc5-create-dialog,.htc5-account-settings)
input[type="search"],
.htc5-members-content .gpc5-search-member input,
.htc5-keeper-search input,
.htc5-keeper-results input[type="search"]{
  border-radius:var(--htc5-search-corner)!important;
}
/* Reusable line–four-point-star–line (never scale the star itself). */
.htc5-ui-line-star-line{display:block;width:100%;height:24px;
  background-image:url("assets/images/ornamental-star.svg"),linear-gradient(#caa45e,#caa45e),linear-gradient(#caa45e,#caa45e);
  background-repeat:no-repeat;background-position:center center,left center,right center;
  background-size:24px 24px,calc(50% - 24px) 1px,calc(50% - 24px) 1px;}
/* Section transitions that were still simple long rules. Do not restyle the
   header bottom border, form fieldsets, cards, or small toolbar separators. */
.htc5-member-profile-hero{position:relative;border-bottom:0!important;padding-bottom:43px!important}
.htc5-member-profile-hero::after{
  content:"";position:absolute;bottom:5px;left:0;right:0;height:24px;pointer-events:none;
  background-image:url("assets/images/ornamental-star.svg"),linear-gradient(#caa45e,#caa45e),linear-gradient(#caa45e,#caa45e);
  background-repeat:no-repeat;background-position:center center,left center,right center;
  background-size:24px 24px,calc(50% - 24px) 1px,calc(50% - 24px) 1px;
}


/* v2.0.43 — last-mile rounded-square avatar and news category corrections.
 * The placeholder artwork itself was also fixed in inc/account.php. */
.site-header .header-action .htc5-header-avatar,
.site-header .header-action .htc5-header-avatar > img,
.site-header .header-action .htc5-header-avatar img.htc5-account-avatar-image,
.site-header .header-action .htc5-header-avatar img.avatar,
.site-header .htc5-header-avatar img,
.htc5-account-avatar .htc5-account-avatar-image {
  border-radius:7px!important;
  object-fit:cover!important;
  overflow:hidden;
}
.htc5-account-avatar .htc5-account-avatar-image {border-radius:13px!important;}
.htc5-news-content .gpc5-category-tag,
.htc5-home-plugin-news .gpc5-category-tag {border-radius:11px!important;}


/* v2.0.44 — responsive corner sizes by visual HEIGHT, not one radius for all.
   Small 20–26px labels get 4px corners and read as rounded rectangles. */
:root{
  --htc5-corner-xs:4px;
  --htc5-corner-sm:6px;
  --htc5-corner-md:8px;
  --htc5-action-radius:9px;
}
/* Article metadata, small category and chapter badges. */
.htc5-news-content .gpc5-category-tag,
.htc5-home-plugin-news .gpc5-category-tag,
.htc5-view .gpc5-category-tag,
.htc5-view .gpc5-directory-gen{
  border-radius:var(--htc5-corner-xs)!important;
}
/* Medium header/actions remain rounded rectangles on all screen widths. */
.site-header .header-action,
.htc5-view .htc5-profile-nav a,
.htc5-view .htc5-memorial-grave-cta{
  border-radius:var(--htc5-corner-md)!important;
}
/* The small profile portrait square needs less rounding than a full card. */
.site-header .htc5-header-avatar,
.site-header .htc5-header-avatar img,
.site-header .header-action .htc5-header-avatar,
.site-header .header-action .htc5-header-avatar img{
  border-radius:var(--htc5-corner-sm)!important;
}


/* v2.0.45 — Account UI compact rectangles. Labels, badges and role strips are
 * not buttons, so earlier button-shape normalizers missed them. */
.htc5-account-overview .htc5-avatar-chooser,
.htc5-account-overview .htc5-avatar-save{border-radius:8px!important}
.htc5-account-overview .htc5-account-permission{border-radius:7px!important}
/* Preserve previous header-avatar square style and Bubble-view exception. */


/* v2.0.46 — compact account settings: closed by default, semantic details, no sprawling forms. */
.htc5-account-settings{display:grid;gap:12px;min-width:0}
.htc5-account-settings-heading{padding:11px 3px 6px}
.htc5-account-settings-heading h2{font-family:'Baloo 2','Nunito Sans',sans-serif;font-weight:800;font-size:clamp(24px,3vw,31px);line-height:1.25;margin:5px 0;color:#183e2e}
.htc5-account-settings-heading p{margin:0;color:#746d5e;font-size:14px;line-height:1.6}
.htc5-account-setting{min-width:0;border:1px solid #e1d0ae;border-radius:12px;background:#fffdf8;box-shadow:0 6px 18px rgba(54,42,24,.045);overflow:hidden}
.htc5-account-setting>summary{display:flex;align-items:center;gap:14px;padding:18px 19px;min-height:78px;cursor:pointer;list-style:none;outline-offset:-3px}
.htc5-account-setting>summary::-webkit-details-marker{display:none}
.htc5-account-setting-icon{width:42px;height:42px;flex:0 0 42px;border:1px solid #cae1d0;border-radius:9px;display:grid;place-items:center;color:#276147;background:#ecf5ed}
.htc5-account-setting-icon.is-security{border-color:#e9d5b2;background:#f9f0df;color:#94571c}
.htc5-account-setting-label{flex:1;min-width:0;display:grid;gap:3px;text-align:left}
.htc5-account-setting-label strong{font-size:16px;line-height:1.35;font-weight:800;color:#214634}
.htc5-account-setting-label small{font-size:13px;line-height:1.45;color:#786f5e}
.htc5-account-setting-chevron{display:grid;place-items:center;width:30px;height:30px;border:1px solid #e6d6b9;border-radius:7px;color:#836947;background:#fffaf0;flex:0 0 30px;transition:transform .18s ease}
.htc5-account-setting>summary:hover{background:#fbf5e8}
.htc5-account-setting[open]>summary{background:#f6f1e5;border-bottom:1px solid #e8d8ba}
.htc5-account-setting[open] .htc5-account-setting-chevron{transform:rotate(90deg)}
.htc5-account-setting-form{padding:20px 22px 23px;display:grid;gap:13px}
.htc5-account-setting-form label{font-size:13px}
.htc5-account-setting-form input{border-radius:8px}
.htc5-account-setting-help{font-size:13px;line-height:1.55;color:#746a5d;margin:0 0 2px!important}
.htc5-account-setting-actions{display:flex;align-items:center;gap:10px;margin-top:6px}
.htc5-account-setting-actions button{margin:0!important;border-radius:8px!important;min-height:44px}
@media(max-width:600px){.htc5-account-settings-heading{padding:4px 2px}.htc5-account-setting>summary{padding:13px 12px;gap:10px;min-height:70px}.htc5-account-setting-label strong{font-size:15px}.htc5-account-setting-label small{font-size:12px}.htc5-account-setting-icon{height:38px;width:38px;flex-basis:38px}.htc5-account-setting-form{padding:15px 13px 18px}.htc5-account-setting-actions button{width:100%;justify-content:center}}
@media(prefers-reduced-motion:reduce){.htc5-account-setting-chevron{transition:none}}

/* v2.0.47 — Giving and notices integrations; all buttons remain rectangular with subtle corners. */
.htc5-home-giving{background:#f5edd9;padding:38px 0;border-block:1px solid #e5d4b2}
.htc5-home-giving-inner{display:flex;align-items:center;justify-content:space-between;gap:26px}
.htc5-home-giving h2{margin:5px 0 10px;color:#194330;font:800 clamp(25px,3vw,36px)/1.3 'Nunito Sans',sans-serif}
.htc5-home-giving p{max-width:680px;margin:0;line-height:1.7;color:#6b5d45;font-size:14px}
.htc5-home-giving a{flex-shrink:0;border-radius:9px!important;white-space:nowrap}
.htc5-giving-nav{color:#8c3022}
.htc5-account-notices{margin:20px 0}.htc5-account-notices>details{border:1px solid #dfcead;border-radius:12px;background:#fffdf9;overflow:hidden}
.htc5-account-notices>details>summary{cursor:pointer;padding:17px 20px;font-weight:800;color:#204b38;display:flex;gap:10px;align-items:center;justify-content:flex-start;list-style:none}
.htc5-account-notices>details>summary::-webkit-details-marker{display:none}.htc5-account-notices>details>summary>span{margin-left:auto}
.htc5-account-notices>details[open]>summary{border-bottom:1px solid #e6d9be}
.htc5-account-notices>details>div{padding:20px}.htc5-account-notices .gpc5-giving-intro{margin:0 0 15px}
@media(max-width:960px){.htc5-home-giving-inner{align-items:flex-start;flex-direction:column;gap:18px}}
@media(max-width:670px){.htc5-home-giving{padding:28px 0}.htc5-home-giving a{white-space:normal}.htc5-account-notices>details>div{padding:12px}}
