/* ==========================================================================
   Member community pages - testimonials, prayer request, matrimonial.

   Everything here is scoped to .tgc-page. The rest of the site is matched
   pixel for pixel against the legacy build, so a shared restyle would show up
   on pages nobody asked to change; the wrapper class keeps it contained.
   ========================================================================== */
.tgc-page{
	--tgc-ink:#1f0b02;
	--tgc-blue:#0088cc;
	--tgc-blue-dark:#0670a5;
	--tgc-flame:#ff5218;
	--tgc-paper:#ffffff;
	--tgc-muted:#8b7a70;
	--tgc-line:rgba(255,255,255,.10);
	padding-bottom:34px;
}

/* --- Shell ---------------------------------------------------------------- */
.tgc-shell{width:min(100%,1080px);margin:0 auto;padding:0 20px;}

.tgc-page .blockright1{
	background:linear-gradient(180deg,#2b1108 0%,#1c0803 100%);
	border:1px solid rgba(255,255,255,.07);
	border-radius:16px;
	box-shadow:0 18px 44px rgba(0,0,0,.30);
	padding:28px 30px;
	margin:22px 0;
}

/* --- Page header ---------------------------------------------------------- */
.tgc-head{
	display:flex;
	align-items:flex-start;
	justify-content:space-between;
	gap:18px;
	margin:0 0 24px;
	padding-bottom:20px;
	border-bottom:1px solid var(--tgc-line);
}
.tgc-head-text{flex:1 1 auto;min-width:0;}
.tgc-head-text .tgc-title{
	margin:0;
	color:#fff;
	font-size:var(--type-2xl, 23px);
	font-weight:700;
	line-height:1.3;
	letter-spacing:.01em;
}
.tgc-head-text .tgc-title-hi{
	display:block;
	margin-top:6px;
	font-size:var(--type-xl, 19px);
	font-weight:600;
	color:#fff;
}
.tgc-head-text .tgc-sub{
	margin:10px 0 0;
	color:#cbb3a5;
	font-size:var(--type-base, 14.5px);
	line-height:1.6;
}
.tgc-head .btn{flex:0 0 auto;white-space:nowrap;margin:0;}

/* --- Buttons -------------------------------------------------------------- */
.tgc-page .btn{
	border-radius:9px;
	padding:11px 20px;
	font-weight:700;
	line-height:1.25;
	border-width:1px;
	transition:transform .15s ease,box-shadow .15s ease,filter .15s ease;
}
.tgc-page .btn-sm{padding:9px 15px;font-size:var(--type-sm, 13px);}
.tgc-page .btn:hover{transform:translateY(-1px);box-shadow:0 8px 18px rgba(0,0,0,.24);}
.tgc-page .btn:active{transform:translateY(0);box-shadow:none;}
.tgc-page .btn:focus-visible{outline:3px solid rgba(0,136,204,.55);outline-offset:2px;}
.tgc-page .btn[disabled]{opacity:.55;transform:none;box-shadow:none;cursor:not-allowed;}

/* --- White form panel ----------------------------------------------------- */
.tgc-panel{
	background:var(--tgc-paper);
	border-radius:14px;
	padding:24px;
	box-shadow:0 12px 30px rgba(0,0,0,.22);
}
.tgc-panel-title{
	margin:0 0 6px;
	color:#2a160e;
	font-size:var(--type-lg, 18px);
	font-weight:700;
}
.tgc-panel-note{
	margin:0 0 16px;
	color:#6d5b51;
	font-size:var(--type-sm, 14px);
	line-height:1.6;
}
.tgc-page .contact-form.tgc-panel{padding:24px;}
.tgc-page label{color:#3c2a20;font-weight:700;font-size:var(--type-sm, 13.5px);letter-spacing:.02em;}
.tgc-page .form-control{
	border:1px solid #ddd5cf;
	border-radius:9px;
	padding:12px 14px;
	box-shadow:none;
	color:#2a160e;
	transition:border-color .15s ease,box-shadow .15s ease;
}
.tgc-page textarea.form-control{min-height:132px;resize:vertical;line-height:1.6;}
.tgc-page .form-control:focus{
	border-color:var(--tgc-blue);
	box-shadow:0 0 0 3px rgba(0,136,204,.16);
}
.tgc-page .form-control[disabled]{background:#f3efec;}

.tgc-form-actions{
	display:flex;
	flex-wrap:wrap;
	align-items:center;
	gap:12px;
	margin-top:18px;
}
/* Single-button forms: the action sits in the middle of the panel and the
   character counter is pinned to the right edge, so centring the button is not
   thrown off by the counter's width. */
.tgc-form-actions--center{position:relative;justify-content:center;}
.tgc-form-actions--center .tgc-count{
	position:absolute;
	right:0;
	top:50%;
	transform:translateY(-50%);
	margin:0;
}
.tgc-count{
	margin-left:auto;
	padding:6px 13px;
	border-radius:999px;
	background:#f2ece8;
	color:#7a6a60;
	font-size:var(--type-sm, 13px);
	font-weight:700;
	white-space:nowrap;
}
.tgc-notice{
	margin:0;
	padding:12px 14px;
	border-radius:9px;
	border-left:4px solid var(--tgc-blue);
	background:#eef7fc;
	color:#22384a;
	font-weight:600;
	line-height:1.6;
}
.tgc-notice-blocked{border-left-color:#b00020;background:#fdeced;color:#7a1220;}
/* The message a page flashes after a post, an edit or a removal. */
.tgc-flash-shell{padding-top:18px;}
.tgc-flash{box-shadow:0 10px 24px rgba(0,0,0,.18);}

/* --- Comment / entry cards ------------------------------------------------ */
.tgc-page .post-comments{margin-top:30px;}
.tgc-page ul.comments{display:grid;gap:18px;margin:0;padding:0;}
.tgc-page ul.comments>li{padding:0;border:0;clear:none;}
.tgc-page ul.comments>li .comment{
	display:flex;
	align-items:flex-start;
	gap:16px;
	float:none;
	width:100%;
	margin:0;
}
.tgc-page ul.comments>li .img-thumbnail{
	position:static;
	flex:0 0 auto;
	margin:2px 0 0;
	padding:0;
	border:0;
	background:none;
	box-shadow:none;
	border-radius:50%;
}
.tgc-page .legacy-testimonial-avatar{
	width:52px;height:52px;
	font-size:20px;font-weight:700;
	background:linear-gradient(145deg,#1eadf4,#0670a5);
	box-shadow:0 5px 14px rgba(0,0,0,.32);
}
.tgc-page ul.comments .comment-block{
	flex:1 1 auto;
	min-width:0;
	background:var(--tgc-paper);
	border-radius:13px;
	padding:18px 20px;
	box-shadow:0 8px 22px rgba(0,0,0,.20);
}
.tgc-page ul.comments .comment-arrow{
	left:-9px;
	top:20px;
	border-width:9px 9px 9px 0;
	border-style:solid;
	border-color:transparent #fff transparent transparent;
	border-right-width:9px;
}
.tgc-page ul.comments .comment-block .comment-by{
	padding:0;
	color:#20303c;
	font-size:var(--type-base, 15.5px);
	font-weight:700;
}
.tgc-page ul.comments .comment-block .comment-by strong{font-weight:700;}
.tgc-page ul.comments .comment-block p{
	margin:8px 0 0;
	font-size:var(--type-base, 14.5px);
	line-height:1.7;
	color:#4a3b33;
}
.tgc-page ul.comments .comment-block .date{
	float:none!important;
	display:block;
	margin-top:14px;
	padding-top:10px;
	border-top:1px solid #efe9e5;
	text-align:right;
	font-size:var(--type-sm, 12.5px);
	color:#9c8c82;
}
.tgc-page .badge-warning{
	vertical-align:2px;
	border-radius:999px;
	padding:4px 10px;
	font-size:var(--type-xs, 11px);
	letter-spacing:.03em;
}

/* A member's own photo, where they have one. */
.tgc-page .tgc-avatar-img{
	display:block;
	border-radius:50%;
	object-fit:cover;
	border:2px solid rgba(255,255,255,.85);
	background:#0670a5;
}

/* Threads: replies sit under their request, behind a toggle. */
.tgc-reply-toggle{
	display:flex;
	align-items:center;
	justify-content:center;
	gap:8px;
	margin:14px auto 0;
	padding:8px 18px;
	border:1px solid rgba(255,255,255,.18);
	border-radius:999px;
	background:rgba(255,255,255,.07);
	color:#f0ddd1;
	font-size:var(--type-sm, 13px);
	font-weight:700;
	cursor:pointer;
	transition:background .2s ease,border-color .2s ease,color .2s ease,transform .2s ease,box-shadow .2s ease;
}
.tgc-reply-toggle:hover{
	background:rgba(255,255,255,.16);
	border-color:rgba(255,255,255,.34);
	color:#fff;
	transform:translateY(-1px);
	box-shadow:0 7px 18px rgba(0,0,0,.28);
}
.tgc-reply-toggle:active{transform:translateY(0);box-shadow:none;}
.tgc-reply-toggle:focus-visible{outline:3px solid rgba(0,136,204,.55);outline-offset:2px;}
/* One chevron that turns over, rather than two glyphs swapping - the turn is
   what says the thread is about to move. */
.tgc-reply-toggle::after{
	content:"\25be";
	font-size:var(--type-xs, 11px);
	line-height:1;
	transition:transform .25s ease;
}
.tgc-reply-toggle[aria-expanded="true"]::after{transform:rotate(180deg);}
.tgc-reply-toggle[aria-expanded="true"]{
	background:rgba(30,173,244,.18);
	border-color:rgba(30,173,244,.45);
	color:#fff;
}

/* The thread drops in rather than appearing, so the button reads as the thing
   that opened it. */
@keyframes tgc-thread-in{
	from{opacity:0;transform:translateY(-8px);}
	to{opacity:1;transform:none;}
}
.tgc-page ul.comments .tgc-replies.is-open{animation:tgc-thread-in .28s ease both;}
.tgc-page ul.comments .tgc-replies.is-open>li{animation:tgc-thread-in .3s ease both;}
.tgc-page ul.comments .tgc-replies.is-open>li:nth-child(2){animation-delay:.05s;}
.tgc-page ul.comments .tgc-replies.is-open>li:nth-child(3){animation-delay:.1s;}
.tgc-page ul.comments .tgc-replies.is-open>li:nth-child(n+4){animation-delay:.15s;}

@media (prefers-reduced-motion:reduce){
	.tgc-reply-toggle,
	.tgc-reply-toggle::after{transition:none;}
	.tgc-reply-toggle:hover{transform:none;}
	.tgc-page ul.comments .tgc-replies.is-open,
	.tgc-page ul.comments .tgc-replies.is-open>li{animation:none;}
}
.tgc-page ul.comments .tgc-replies{
	gap:14px;
	margin:14px 0 0 68px;
	padding:0;
}
.tgc-page ul.comments .tgc-replies .comment-block{
	background:#f4f1ee;
	box-shadow:0 5px 14px rgba(0,0,0,.16);
}
.tgc-page ul.comments .tgc-replies .comment-arrow{border-right-color:#f4f1ee;}
.tgc-page ul.comments .tgc-replies .legacy-testimonial-avatar{width:42px;height:42px;font-size:17px;}
.tgc-page ul.comments .tgc-replies .comment-block p{font-size:var(--type-sm, 14px);}

/* Replies */
.tgc-page .legacy-testimonial-reply{
	margin-top:14px;
	padding:12px 14px;
	border-left:3px solid var(--tgc-blue);
	border-radius:0 9px 9px 0;
	background:#f5f7f9;
	font-size:var(--type-sm, 14px);
}
.tgc-page .legacy-testimonial-reply strong{color:#20303c;}
.tgc-page .legacy-testimonial-reply p{margin:4px 0 0;font-size:var(--type-sm, 14px);}
.tgc-page .legacy-testimonial-reply-form{
	display:flex;
	gap:10px;
	margin-top:16px;
	padding-top:14px;
	border-top:1px solid #efe9e5;
}
.tgc-page .legacy-testimonial-reply-form .form-control{padding:9px 13px;}
.tgc-page .legacy-testimonial-reply-form .btn{flex:0 0 auto;margin:0;}

/* Your own reply: edit in place, or take it down.

   The actions sit behind an options button in the corner of the card. The
   script puts them there (.has-menu); the plain row below is what renders
   without it. */
.tgc-editable{position:relative;}
.tgc-own-toggle{
	position:absolute;
	top:10px;
	right:10px;
	z-index:6;
	display:grid;
	place-items:center;
	width:32px;
	height:32px;
	padding:0;
	border:1px solid transparent;
	border-radius:9px;
	background:none;
	color:#a2928a;
	font-size:var(--type-sm, 14px);
	line-height:1;
	cursor:pointer;
	transition:background .15s ease,color .15s ease,border-color .15s ease;
}
.tgc-own-toggle:hover{background:#ebe4df;border-color:#ddd4ce;color:#3c2a20;}
.tgc-own-toggle[aria-expanded="true"]{background:#0088cc;border-color:#0088cc;color:#fff;}
.tgc-own-toggle:focus-visible{outline:3px solid rgba(0,136,204,.45);outline-offset:2px;}
.tgc-editable.has-menu>.comment-by,
.tgc-editable.has-menu>strong{padding-right:38px;display:block;}

.tgc-editable.has-menu .tgc-own-actions{
	position:absolute;
	top:48px;
	right:10px;
	z-index:5;
	display:none;
	flex-direction:column;
	align-items:stretch;
	gap:4px;
	min-width:158px;
	margin:0;
	padding:6px;
	border:1px solid #e2dad4;
	border-radius:11px;
	background:#fff;
	box-shadow:0 14px 34px rgba(0,0,0,.22);
}
.tgc-editable.has-menu.is-menu-open .tgc-own-actions{display:flex;}
.tgc-editable.has-menu .tgc-own-actions form{display:block;}
.tgc-editable.has-menu .tgc-inline-action{
	width:100%;
	justify-content:flex-start;
	border-color:transparent;
	border-radius:7px;
	background:none;
}
.tgc-editable.has-menu .tgc-inline-action:hover{transform:none;}
.tgc-editable.has-menu .tgc-inline-action i{width:14px;text-align:center;}

.tgc-own-actions{
	display:flex;
	align-items:center;
	gap:14px;
	margin-top:12px;
	padding-top:10px;
	border-top:1px solid #e7e0db;
}
.tgc-own-actions form{margin:0;}
.tgc-inline-action{
	display:inline-flex;
	align-items:center;
	gap:7px;
	padding:7px 14px;
	border:1px solid #cfe3ef;
	border-radius:8px;
	background:#eff7fb;
	color:#0670a5;
	font-size:var(--type-sm, 12.5px);
	font-weight:700;
	line-height:1;
	white-space:nowrap;
	cursor:pointer;
	transition:background .15s ease,border-color .15s ease,color .15s ease,transform .15s ease;
}
.tgc-inline-action i{font-size:11.5px;}
.tgc-inline-action:hover{background:#0088cc;border-color:#0088cc;color:#fff;transform:translateY(-1px);}
.tgc-inline-danger{border-color:#f2cdd4;background:#fdeef0;color:#b00020;}
.tgc-inline-danger:hover{background:#b00020;border-color:#b00020;color:#fff;}
.tgc-inline-action:focus-visible{outline:3px solid rgba(0,136,204,.45);outline-offset:2px;}

.tgc-edit-form{display:none;margin-top:12px;}
.tgc-edit-actions{display:flex;flex-direction:column;align-items:flex-start;gap:8px;margin-top:10px;}
.tgc-edit-actions .btn{display:inline-flex;align-items:center;gap:7px;margin:0;}
.tgc-edit-actions .btn i{font-size:11.5px;}
.tgc-page .tgc-edit-form textarea.form-control{min-height:92px;font-size:var(--type-sm, 14px);}

/* While editing, the reply is the form - the text, its date and the button
   that opened it would only be in the way. */
.tgc-editable.is-editing>.tgc-own>.tgc-own-toggle{display:none;}
.tgc-editable.is-editing>p,
.tgc-editable.is-editing>[data-clamp],
.tgc-page ul.comments .comment-block.tgc-editable.is-editing>.date,
.tgc-editable.is-editing>.date,
.tgc-editable.is-editing.has-menu.is-menu-open .tgc-own-actions,
.tgc-editable.is-editing .tgc-own-actions{display:none;}
.tgc-editable.is-editing>.tgc-edit-form{display:block;}

/* The member's own matrimonial post: the one the "View your post" button
   lands on, so it has to be obvious on arrival. */
.tgc-own-post{scroll-margin-top:96px;}
.tgc-own-post .comment-block{
	border:2px solid rgba(30,173,244,.55);
	box-shadow:0 10px 26px rgba(0,0,0,.24);
}
.tgc-own-post .comment-arrow{border-right-color:rgba(30,173,244,.55);}
.tgc-mine-tag{
	display:inline-block;
	margin-left:8px;
	padding:3px 9px;
	border-radius:999px;
	background:#e8f5fd;
	color:#0670a5;
	font-size:var(--type-xs, 11px);
	font-weight:700;
	letter-spacing:.03em;
	text-transform:uppercase;
	vertical-align:2px;
}
@keyframes tgc-found{
	0%{box-shadow:0 0 0 0 rgba(30,173,244,.55);}
	100%{box-shadow:0 0 0 14px rgba(30,173,244,0);}
}
.tgc-own-post.is-found .comment-block{animation:tgc-found 1s ease-out 2;}

/* The compose panel, closed because a post already exists. */
.tgc-locked{border-left:4px solid #0088cc;}
.tgc-locked .tgc-panel-title i{margin-right:7px;color:#0670a5;}
.tgc-locked .btn{display:inline-flex;align-items:center;gap:8px;}

/* The women's free matrimonial year, offered under the paid route. */
.tgc-free-card{margin-top:16px;border-left:4px solid #a13212;}
.tgc-free-card .tgc-panel-title i{margin-right:7px;color:#a13212;}
.tgc-free-card .btn{display:inline-flex;align-items:center;gap:8px;}
.tgc-free-consent{display:flex;align-items:flex-start;gap:9px;margin:0 0 16px;color:#3c2a20;font-weight:400;font-size:var(--type-sm, 14px);line-height:1.6;}
.tgc-free-consent input{flex:0 0 auto;margin-top:4px;}
.tgc-free-consent .tgc-note-hi{margin-top:3px;}

@media (prefers-reduced-motion:reduce){
	.tgc-own-post.is-found .comment-block{animation:none;}
}

/* The subscribe prompt: a panel where the box would be, and one modal on
   arrival for a member whose package has run out. */
.tgc-subscribe-card .tgc-access-actions{margin-top:4px;}
.tgc-subscribe-card .btn{display:inline-flex;align-items:center;gap:8px;}

.tgc-modal{
	position:fixed;
	inset:0;
	z-index:100050;
	display:flex;
	align-items:center;
	justify-content:center;
	padding:20px;
	background:rgba(0,0,0,.72);
}
.tgc-modal[hidden]{display:none;}
.tgc-modal-box{
	width:min(460px,100%);
	padding:28px 26px;
	border-radius:14px;
	background:#fff;
	text-align:center;
	box-shadow:0 24px 70px rgba(0,0,0,.38);
}
.tgc-modal-box h3{
	margin:0 0 12px;
	color:#2a160e;
	font-size:var(--type-xl, 21px);
	line-height:1.25;
}
.tgc-modal-box h3 span{display:block;margin-top:5px;font-size:.78em;color:#2a160e;}
.tgc-modal-box p{margin:0 0 20px;color:#6d5b51;line-height:1.65;font-size:var(--type-base, 14.5px);}
.tgc-modal-actions{display:flex;flex-direction:column;align-items:stretch;justify-content:center;flex-wrap:wrap;gap:10px;}
.tgc-modal-actions .btn{margin:0;}
#testimony_subscribe .tgc-modal-box{position:relative;width:min(560px,100%);max-height:calc(100dvh - 40px);overflow-y:auto;padding:0;text-align:left;}
#testimony_subscribe .testimony-subscribe-header{padding:26px 42px 22px;border-bottom:1px solid #e5e7eb;text-align:center;}
#testimony_subscribe .testimony-subscribe-close{position:absolute;top:12px;right:12px;width:32px;height:32px;padding:0;border:0;border-radius:50%;background:transparent!important;color:#6b7280;font-size:22px;cursor:pointer;}
#testimony_subscribe .testimony-subscribe-icon{display:grid;place-items:center;width:44px;height:44px;margin:0 auto 12px;border-radius:50%;background:#fff0e8;color:#ed4c16;font-size:22px;}
#testimony_subscribe h3{margin:0;font-size:var(--type-xl,21px);font-weight:600;line-height:1.4;text-transform:none;}
#testimony_subscribe h3 span{font-weight:500;line-height:1.5;}
#testimony_subscribe .testimony-subscribe-body{padding:22px 24px;}
#testimony_subscribe p{margin:0;color:#374151;font-size:var(--type-sm,14px);line-height:1.65;}
#testimony_subscribe p + p{margin-top:10px;color:#6b7280;}
#testimony_subscribe .testimony-subscribe-note{display:flex;align-items:flex-start;gap:10px;margin-top:18px;padding:12px 14px;border-radius:8px;background:#edf8ef;color:#246c37;font-size:var(--type-sm,14px);line-height:1.6;}
#testimony_subscribe .testimony-subscribe-note i{flex:0 0 auto;margin-top:4px;}
#testimony_subscribe .testimony-subscribe-note span{display:block;}
#testimony_subscribe .testimony-subscribe-note span + span{margin-top:4px;}
#testimony_subscribe .tgc-modal-actions{justify-content:flex-end;padding:18px 24px;border-top:1px solid #e5e7eb;}
#testimony_subscribe .tgc-modal-actions .btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:44px;padding:10px 14px;border-radius:8px;}
#testimony_subscribe .testimony-subscribe-cancel{background:#fff!important;border:1px solid #d1d5db!important;color:#495057!important;box-shadow:none;}
#testimony_subscribe .testimony-subscribe-cancel::before,
#testimony_subscribe .testimony-subscribe-close::before{display:none!important;animation:none!important;}
@media (max-width:767px){
	.tgc-modal-box{padding:22px 18px;}
	.tgc-modal-actions{display:grid;grid-template-columns:1fr;}
	.tgc-modal-actions .btn{width:100%;}
}

/* Empty state */
.tgc-empty{
	margin:0;
	padding:34px 20px;
	border:1px dashed rgba(255,255,255,.18);
	border-radius:13px;
	text-align:center;
	color:#cbb3a5;
	font-size:var(--type-base, 15px);
	line-height:1.6;
}

/* Pagination.

   .blockright1 styles every descendant list item and breaks long words, which
   between them squeezed the page links into narrow boxes - "68" came out
   stacked as "6" over "8". Each link is sized by its own content again here. */
.tgc-page .post-comments nav{display:flex;justify-content:center;}
.tgc-page .pagination{
	display:flex;
	flex-wrap:wrap;
	justify-content:center;
	gap:7px;
	margin:28px 0 4px;
	padding:0;
}
.tgc-page .pagination .page-item{
	flex:0 0 auto;
	padding:0;
	margin:0;
	list-style:none;
}
.tgc-page .pagination .page-link{
	display:flex;
	align-items:center;
	justify-content:center;
	min-width:40px;
	height:40px;
	padding:0 12px;
	border:1px solid rgba(255,255,255,.14);
	border-radius:9px;
	background:rgba(255,255,255,.06);
	color:#f0ddd1;
	font-size:var(--type-sm, 14px);
	font-weight:600;
	line-height:1;
	white-space:nowrap;
	overflow-wrap:normal;
	word-break:normal;
	transition:background .15s ease,border-color .15s ease,transform .15s ease;
}
.tgc-page .pagination .page-link:hover{
	background:rgba(255,255,255,.14);
	border-color:rgba(255,255,255,.28);
	color:#fff;
	text-decoration:none;
	transform:translateY(-1px);
}
.tgc-page .pagination .page-link:focus{box-shadow:0 0 0 3px rgba(0,136,204,.35);outline:0;}
.tgc-page .pagination .page-item.active .page-link{
	background:linear-gradient(#1eadf4,#0670a5);
	border-color:#1eadf4;
	color:#fff;
	cursor:default;
}
.tgc-page .pagination .page-item.disabled .page-link{
	background:rgba(255,255,255,.03);
	border-color:rgba(255,255,255,.08);
	color:#8a7267;
	pointer-events:none;
}
/* Laravel's Bootstrap-4 pager also emits a "showing x to y" line. */
.tgc-page .post-comments nav p,
.tgc-page .post-comments nav .text-sm{color:#cbb3a5;font-size:var(--type-sm, 13px);}

/* Long entries: clamped to a few lines with a Read more / Read less toggle.
   Without JS the text simply shows in full, so nothing is ever unreachable. */
.tgc-clamp-body{position:relative;}
.tgc-clamp .tgc-clamp-body{
	display:-webkit-box;
	-webkit-line-clamp:4;
	-webkit-box-orient:vertical;
	overflow:hidden;
}
/* The matrimonial sample is the page's worked example, so it opens with more
   of itself showing than a comment does. */
.tgc-sample .tgc-clamp .tgc-clamp-body{-webkit-line-clamp:6;}
.tgc-clamp.is-open .tgc-clamp-body{display:block;overflow:visible;}
.tgc-clamp-toggle{
	display:inline-flex;
	align-items:center;
	gap:6px;
	margin-top:10px;
	padding:0;
	border:0;
	background:none;
	color:#0670a5;
	font-size:var(--type-sm, 13.5px);
	font-weight:700;
	text-decoration:underline;
	cursor:pointer;
}
.tgc-clamp-toggle:hover{color:#0088cc;}
.tgc-clamp-toggle::after{content:"\25be";text-decoration:none;font-size:var(--type-xs, 11px);}
.tgc-clamp.is-open .tgc-clamp-toggle::after{content:"\25b4";}

/* Pager */
.tgc-pager{
	display:flex;
	flex-wrap:wrap;
	justify-content:center;
	gap:10px;
	margin:26px 0 4px;
}
.tgc-pager .btn{margin:0;}
.tgc-page .post-comments .pagination{flex-wrap:wrap;justify-content:center;margin:26px 0 0;}

/* --- Matrimonial: form beside the explainer video ------------------------- */
.tgc-matrimonial-grid{
	display:grid;
	grid-template-columns:minmax(0,1fr) 340px;
	gap:24px;
	align-items:start;
}
.tgc-video-panel{align-self:start;}
.tgc-video-label{
	margin:0 0 10px;
	color:#f4d9c8;
	font-size:var(--type-base, 14.5px);
	font-weight:600;
	text-align:center;
}
.tgc-page .matrimonial-video{
	display:block;
	width:100%;
	height:auto;
	aspect-ratio:16/9;
	border-radius:10px;
	background:#1f0b02;
}
.tgc-sample{
	margin-top:22px;
	padding:20px 22px;
	border-radius:13px;
	background:var(--tgc-paper);
	color:#4a3b33;
	box-shadow:0 8px 22px rgba(0,0,0,.20);
	max-height:none;
	overflow:visible;
}
.tgc-sample-tag{
	display:inline-block;
	margin:0 0 12px;
	padding:5px 12px;
	border-radius:999px;
	background:linear-gradient(#ff6a35,#e8390b);
	color:#fff;
	font-size:var(--type-sm, 12.5px);
	font-weight:700;
	letter-spacing:.03em;
	text-transform:uppercase;
}
.tgc-sample p{margin:0;font-size:var(--type-base, 14.5px);line-height:1.75;}
.tgc-access-card{margin-top:0;}
.tgc-access-card h4{margin:0 0 8px;color:#2a160e;font-size:var(--type-lg, 18px);font-weight:700;}
.tgc-access-card p{margin:0 0 16px;color:#6d5b51;line-height:1.65;}
/* The Hindi half of a bilingual note, a shade quieter than the English. */
.tgc-note-hi{display:inline-block;margin-top:7px;color:#7d6b61;font-size:.95em;}
.tgc-access-actions{display:flex;flex-direction:column;align-items:flex-start;flex-wrap:wrap;gap:10px;}
.tgc-access-actions .btn{margin:0;}

/* --- Responsive ----------------------------------------------------------- */
@media (max-width:991px){
	.tgc-matrimonial-grid{grid-template-columns:1fr;}
	.tgc-video-panel{max-width:520px;margin:0 auto;width:100%;}
}
@media (max-width:767px){
	.tgc-shell{padding:0 12px;}
	.tgc-page .blockright1{padding:20px 16px;border-radius:13px;}
	.tgc-head{flex-direction:column;align-items:stretch;gap:14px;}
	.tgc-head-text .tgc-title{font-size:var(--type-xl, 19px);}
	.tgc-head-text .tgc-title-hi{font-size:var(--type-lg, 17px);}
	.tgc-head .btn{align-self:flex-start;}
	.tgc-panel,.tgc-page .contact-form.tgc-panel{padding:18px 15px;}
	.tgc-sample{padding:16px 15px;}
	.tgc-form-actions{align-items:stretch;}
	.tgc-form-actions .btn{flex:1 1 auto;}
	.tgc-count{margin-left:0;align-self:center;}
	.tgc-form-actions--center{flex-direction:column;}
	.tgc-form-actions--center .tgc-count{position:static;transform:none;}
	/* The card stays beside its avatar on a phone rather than under it. The
	   stacked version overlapped the two with a negative margin, which left a
	   deep dead band above every name and cost more width than the small
	   avatar it saved. */
	.tgc-page ul.comments{gap:14px;}
	/* custom.css carries `ul.comments li .comment{width:91% !important}` for
	   320-600px, from the legacy blog skin. It took 9% off the right of every
	   card - a band of dead background down that side only, because the row it
	   sizes is floated right. Nothing here wants it, and !important is the
	   only thing that answers !important. */
	.tgc-page ul.comments>li .comment{flex-direction:row;gap:9px;width:100%!important;}
	.tgc-page ul.comments>li .img-thumbnail{margin:1px 0 0;}
	.tgc-page .legacy-testimonial-avatar{width:34px;height:34px;font-size:14px;border-width:2px;}
	.tgc-page ul.comments .comment-block{padding:13px 13px 12px;border-radius:11px;}
	.tgc-page ul.comments .comment-arrow{display:none;}
	.tgc-page ul.comments .comment-block .comment-by{font-size:var(--type-base, 14.5px);}
	.tgc-page ul.comments .comment-block p{font-size:var(--type-sm, 14px);line-height:1.65;}
	.tgc-page ul.comments .comment-block .date{margin-top:10px;padding-top:8px;font-size:var(--type-xs, 11.5px);}

	/* "Read more" was a 24px-tall line of text to hit with a thumb. The text
	   stays where it is; the button around it grows to a real target. */
	.tgc-clamp-toggle{padding:8px 4px;margin-top:6px;}
	.tgc-reply-toggle{width:100%;}
	/* Replies line up under the request, not off the side of a 344px screen. */
	.tgc-page ul.comments .tgc-replies{margin:12px 0 0 16px;gap:12px;}
	.tgc-page ul.comments .tgc-replies .legacy-testimonial-avatar{width:30px;height:30px;font-size:13px;}
	.tgc-page ul.comments .tgc-replies .comment-block p{font-size:var(--type-sm, 13.5px);}

	/* Reply box: field and button share one row, so the box costs a line
	   rather than three. The old rule in custom.css stretches the button to the
	   full width on a phone, which is where the third line came from. */
	/* One rule of thumb per card on a phone: the date already draws a line
	   above itself, and a second one right under it was two dividers and a
	   band of white for no gain. */
	.tgc-page .legacy-testimonial-reply-form{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin-top:10px;padding-top:0;border-top:0;}
	.tgc-page .legacy-testimonial-reply-form .form-control{flex:1 1 120px;min-width:0;padding:9px 11px;}
	.tgc-page .legacy-testimonial-reply-form .btn{width:auto;margin:0;padding:9px 16px;}

	/* The options menu cannot hang off the right edge on a narrow card. */
	.tgc-own-toggle{top:7px;right:7px;width:29px;height:29px;}
	.tgc-editable.has-menu .tgc-own-actions{top:42px;right:7px;min-width:146px;}
	.tgc-editable.has-menu>.comment-by,
	.tgc-editable.has-menu>strong{padding-right:34px;}
	.tgc-edit-actions .btn{flex:1 1 auto;justify-content:center;}
	.tgc-access-actions{display:grid;grid-template-columns:1fr;}
	.tgc-access-actions .btn{width:100%;}
}

/* Phones proper. The avatar stood in a column of its own, which on a 375px
   screen spent 43px before the card even started - so every testimony sat in
   the middle of the screen with a band of dead background down each side. It
   moves into the card's own top-left corner, beside the name it belongs to,
   and the card takes the width back. */
@media (max-width:575px){
	.tgc-shell{padding:0 8px;}
	.tgc-page .blockright1{padding:16px 11px;}
	.tgc-panel,.tgc-page .contact-form.tgc-panel{padding:15px 13px;}
	.tgc-page ul.comments>li .comment{display:block;position:relative;}
	.tgc-page ul.comments>li .img-thumbnail{position:absolute;left:11px;top:11px;z-index:2;margin:0;}
	.tgc-page .legacy-testimonial-avatar{width:30px;height:30px;font-size:13px;}
	.tgc-page ul.comments .comment-block{padding:11px 12px 12px;}
	.tgc-page ul.comments .comment-block>.comment-by,
	.tgc-page ul.comments .comment-block>strong{
		display:flex;
		flex-wrap:wrap;
		align-items:center;
		gap:6px;
		min-height:30px;
		padding-left:38px;
	}
	.tgc-page ul.comments .comment-block>.comment-by .badge{margin-left:0!important;}
	/* A reply keeps the same shape one step in, on a smaller avatar. */
	.tgc-page ul.comments .tgc-replies{margin-left:10px;}
	.tgc-page ul.comments .tgc-replies .legacy-testimonial-avatar{width:26px;height:26px;font-size:11px;}
	.tgc-page ul.comments .tgc-replies .comment-block>.comment-by{min-height:26px;padding-left:33px;}
	/* Left of the name is the avatar's, so the options menu keeps to the right. */
	.tgc-editable.has-menu>.comment-by,
	.tgc-editable.has-menu>strong{padding-right:36px;}
}

.prayer-account-actions{display:flex;justify-content:flex-end;margin:0 0 18px}
.prayer-account-actions .btn{margin:0;display:inline-flex;align-items:center;gap:8px}

.prayer-wall-page .comment-block>.tgc-reply-toggle{width:fit-content;max-width:100%;margin:12px auto 0;padding:6px 12px;font-size:var(--type-xs, 12px)}
.prayer-wall-page .comment-block>.tgc-replies{margin:12px 0 0!important;padding:0!important}
.prayer-wall-page .comment-block>.tgc-replies .comment-block{background:#f5f8fa!important;border:1px solid #dfebef;border-radius:8px}
.prayer-wall-page button:not([hidden]){position:relative}
.prayer-wall-page button:not([hidden])::before{
 content:"";position:absolute;inset:0;border-radius:inherit;padding:2px;pointer-events:none;
 background:conic-gradient(from var(--account-border-angle),#66cfff 0deg,#66cfff 235deg,#fff 275deg,#ffd05b 310deg,#66cfff 360deg);
 mask:linear-gradient(#fff 0 0) content-box,linear-gradient(#fff 0 0);
 mask-composite:exclude;
 animation:account-button-border-turn 2.6s linear infinite;
}
@media(prefers-reduced-motion:reduce){.prayer-wall-page button::before{animation:none!important}}

.prayer-wall-page .comment-block>.tgc-reply-toggle,
.prayer-wall-page .comment-block>.tgc-reply-toggle:hover,
.prayer-wall-page .comment-block>.tgc-reply-toggle[aria-expanded=true]{
 background:#514039!important;color:#fff!important;font-weight:700;
}

.prayer-wall-page .tgc-own-toggle{border:1px solid #5bc6f5!important;border-radius:6px;animation:none!important}
.prayer-wall-page .tgc-editable .tgc-own-toggle{position:absolute;top:10px;right:10px}
.prayer-wall-page .tgc-own-toggle::before{display:none!important;animation:none!important}

.prayer-wall-page>.tgc-shell{width:100%;max-width:640px;margin-inline:auto;box-sizing:border-box}
.prayer-wall-page .tgc-head-text{text-align:center}
.prayer-wall-page .tgc-head-text .tgc-title,
.prayer-wall-page .tgc-head-text .tgc-sub{
 display:flex;flex-wrap:wrap;justify-content:center;align-items:baseline;gap:6px 12px;
}
.prayer-wall-page .tgc-head-text .tgc-title-hi{
 margin:0;font-size:1em;font-weight:700;line-height:inherit;
}
.prayer-wall-page .tgc-head-text .tgc-title>span{font-size:inherit;font-weight:inherit;line-height:inherit}
.prayer-wall-page .tgc-head-text .tgc-title>span[lang="hi"]{font-weight:800;color:inherit}
.prayer-wall-page .tgc-title-hi .hindi-headline{font-weight:inherit!important}
.prayer-wall-page .tgc-head-text .tgc-sub>span{font-size:inherit;line-height:inherit;color:inherit}
.prayer-wall-page .tgc-head-text .tgc-sub{font-size:var(--type-xs, 12px)}
.prayer-wall-page .tgc-head-text .tgc-sub>span[lang="hi"]{font-weight:700}
@media(min-width:992px){
 .prayer-wall-page>.tgc-shell{max-width:1080px}
}

/* Keep testimony replies within the story they belong to. */
.testimonies-page .comment-block>.tgc-reply-toggle{
 width:fit-content;max-width:100%;margin:14px auto 0;padding:8px 18px;background:#514039;color:#fff;
}
.testimonies-page .comment-block>.tgc-reply-toggle:hover,
.testimonies-page .comment-block>.tgc-reply-toggle[aria-expanded=true]{background:#3e302a;color:#fff;}
.testimonies-page ul.comments .comment-block>.tgc-replies{margin:14px 0 0;padding:0;}
.testimonies-page ul.comments .tgc-replies .comment-block{box-shadow:none;border:1px solid #e5ddd7;}

/* A highlight travels around button edges without moving their labels. */
.testimonies-page .btn,
.testimonies-page button:not([hidden]){position:relative;}
.testimonies-page .tgc-editable .tgc-own-toggle{position:absolute;}
.testimonies-page .btn::before,
.testimonies-page button:not([hidden])::before{
 content:"";position:absolute;inset:0;border-radius:inherit;padding:2px;pointer-events:none;
 background:conic-gradient(from var(--account-border-angle),#66cfff 0deg,#66cfff 235deg,#fff 275deg,#ffd05b 310deg,#66cfff 360deg);
 mask:linear-gradient(#fff 0 0) content-box,linear-gradient(#fff 0 0);
 mask-composite:exclude;
 animation:account-button-border-turn 2.6s linear infinite;
}
.testimonies-page .tgc-clamp-toggle{border-radius:5px;padding:5px 9px;}
.testimonies-page .tgc-clamp-toggle::before{display:none!important;animation:none!important;}
.testimonies-page .tgc-head-text .tgc-title-hi{
 font-size:1em;
 font-weight:700;
 line-height:inherit;
 color:#fff;
}
.testimonies-page .tgc-head{
 display:grid;
 grid-template-columns:minmax(0,1fr) auto;
 align-items:center;
 gap:24px 18px;
}
.testimonies-page .tgc-head-text{display:contents}
.testimonies-page .tgc-head-text .tgc-title{
 grid-column:1 / -1;
 text-align:center;
 color:#fff;
}
.testimonies-page .tgc-head-text .tgc-sub{margin:0;color:#fff}
.testimonies-page .tgc-head>.btn{justify-self:end}
@media(max-width:575px){
 .testimonies-page .tgc-head{grid-template-columns:minmax(0,1fr);gap:16px}
 .testimonies-page .tgc-head-text .tgc-sub{text-align:center}
}
@media(prefers-reduced-motion:reduce){
 .testimonies-page .btn::before,
 .testimonies-page button::before{animation:none!important;}
}
