/* Public group directory and stable, shareable reading-circle pages. */
.circles-page {padding:42px 0 70px;min-height:70vh;}
.circles-directory-hero {display:flex;justify-content:space-between;align-items:center;gap:26px;padding:24px 28px;background:linear-gradient(110deg,#eaf1e5,#f5f5e9);border:1px solid #d5e0ce;border-radius:20px;margin-bottom:20px;}
.circles-directory-hero>div {max-width:670px;}
.circles-directory-hero h1 {font:600 clamp(31px,3.3vw,46px)/1.24 var(--serif);letter-spacing:-.035em;margin:0 0 8px;}
.circles-directory-hero p {font-size:15px;line-height:1.8;color:#536c5c;margin:0;}
.circle-profile-stats div {display:flex;flex-direction:column-reverse;gap:6px;}
.circle-profile-stats dt {font-size:11px;color:#536b50;line-height:1.5;}
.circle-profile-stats dd {font:600 30px/1.2 var(--serif);margin:0;color:#245941;}
.circles-directory-grid {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:22px;}
.reading-circle-card {padding:0;margin:0;min-width:0;display:flex;flex-direction:column;overflow:hidden;border:1px solid #dae2d5;border-radius:18px;background:var(--paper);box-shadow:0 6px 22px #204a3606;}
.reading-circle-card .circle-banner {position:relative;height:128px;min-height:128px;display:flex;align-items:center;justify-content:center;text-decoration:none;}
.reading-circle-card .circle-banner>.icon {width:42px;height:42px;stroke-width:1.3;}
.reading-circle-card-body {display:flex;flex-direction:column;flex:1;padding:21px 22px 20px;}
.circle-card-language {font-size:10px;font-weight:600;text-transform:uppercase;letter-spacing:.09em;color:#5c714f;}
.reading-circle-card h3 {font:600 23px/1.3 var(--serif);letter-spacing:-.025em;margin:9px 0 11px;overflow-wrap:anywhere;}
.circle-name-link {color:inherit;text-decoration:none;}
.circle-name-link:hover {text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:3px;}
.reading-circle-card-body>p {margin:0 0 20px;font-size:13px;line-height:1.75;color:#647662;flex:1;white-space:pre-wrap;overflow-wrap:anywhere;}
.circle-card-counts {display:flex;align-items:center;gap:13px;flex-wrap:wrap;color:#677b62;font-size:11px;line-height:1.5;margin-bottom:19px;}
.circle-card-counts>span {display:inline-flex;align-items:center;gap:5px;}
.circle-card-counts .icon {width:15px;height:15px;}
.circle-card-actions {display:flex;align-items:center;justify-content:space-between;gap:14px;border-top:1px solid #e1e7da;padding-top:16px;}
.circle-card-actions .btn {min-width:92px;min-height:40px;flex:none;}
.circles-directory-tools {display:flex;gap:18px;justify-content:space-between;align-items:center;margin:0 0 12px;}
.circles-search {display:flex;align-items:center;gap:10px;padding:11px 15px;border:1px solid #cbd8c4;border-radius:12px;background:var(--paper);flex:1;max-width:550px;}
.circles-search>.icon {width:19px;height:19px;color:#688262;}
.circles-search input {width:100%;min-width:0;border:0;outline:0;background:transparent;font:400 14px/1.6 var(--sans);color:var(--ink);padding:0;}
.circles-search:focus-within {outline:2px solid #49885d44;outline-offset:3px;border-color:#6a9a6b;}
.circles-filter-group {display:flex;align-items:center;padding:4px;gap:4px;background:#edf2e7;border:1px solid #dce4d4;border-radius:12px;}
.circles-filter-group button {padding:9px 15px;min-height:40px;border:0;border-radius:9px;background:transparent;color:#6a7d62;font:500 12px/1.5 var(--sans);}
.circles-filter-group button.active {background:var(--paper);color:#245b44;box-shadow:0 2px 7px #34573f0b;}
.circle-directory-empty {grid-column:1/-1;text-align:center;padding:45px 25px;border:1px dashed #cad8c0;border-radius:18px;background:#f4f7ef;}
.circle-directory-empty h3 {font-size:19px;margin:0 0 10px;}
.circle-directory-empty p {color:var(--muted);font-size:14px;line-height:1.8;margin:0 0 23px;}
.circle-breadcrumb {margin-bottom:22px;font-size:13px;}
.circle-breadcrumb a {display:inline-flex;align-items:center;color:#56744f;text-decoration:none;padding:7px 0;}
.circle-profile {border:1px solid #d6e1cc;border-radius:23px;background:var(--paper);overflow:hidden;margin-bottom:32px;}
.circle-profile-art {height:128px;position:relative;display:flex;justify-content:center;align-items:center;overflow:hidden;background:radial-gradient(ellipse at 70% 0,#d6e8bd 0,transparent 60%),linear-gradient(115deg,#e6eed9,#dce9dc);color:#57805a;}
.circle-profile-art::before,.circle-profile-art::after {content:'';position:absolute;border:1px solid #9db68f66;border-radius:50%;width:310px;height:310px;}
.circle-profile-art::before {left:7%;top:-210px;}
.circle-profile-art::after {right:7%;bottom:-210px;}
.circle-profile-art>.icon {width:55px;height:55px;stroke-width:1.25;position:relative;z-index:1;}
.circle-profile-main {padding:28px 32px 25px;}
.circle-profile-heading {display:flex;align-items:center;justify-content:space-between;gap:24px;}
.circle-profile-heading>div {min-width:0;}
.circle-profile-heading h1 {font:600 clamp(29px,3.2vw,42px)/1.3 var(--serif);letter-spacing:-.035em;overflow-wrap:anywhere;margin:7px 0 9px;outline:none;}
.circle-profile-heading>.btn {flex:none;}
.circle-profile-language {font-size:12px;color:#5e7452;}
.circle-profile-description {max-width:860px;white-space:pre-wrap;overflow-wrap:anywhere;margin:21px 0 25px;color:#5f7758;font-size:15px;line-height:1.85;}
.circle-profile-bottom {display:flex;justify-content:space-between;align-items:center;gap:22px;border-top:1px solid #e3e9db;padding-top:22px;}
.circle-profile-stats {display:flex;gap:36px;margin:0;}
.circle-profile-stats dd {font-size:28px;}
.circle-profile-stats dt {font-size:12px;}
.circle-share-url {display:block;margin-top:20px;}
.circle-share-url input {width:100%;min-width:0;border:1px solid #e0e7d8;border-radius:9px;background:#f7f9f2;color:#556d4b;padding:9px 12px;font-size:12px;line-height:1.6;}
.circle-content-layout {display:grid;grid-template-columns:minmax(0,1fr) 280px;align-items:start;gap:27px;}
.circle-timeline-section {min-width:0;}
.circle-timeline-heading {display:flex;align-items:center;justify-content:space-between;gap:19px;margin:0 0 21px;}
.circle-timeline-heading h2 {font:600 27px/1.3 var(--serif);letter-spacing:-.025em;margin:6px 0 0;}
.circle-timeline-heading .btn {flex:none;gap:8px;}
.circle-timeline {display:grid;gap:21px;}
.circle-timeline .post {margin:0;}
.circle-about {padding:24px;border:1px solid #dce5d3;border-radius:17px;background:#f0f5e9;}
.circle-about h2 {font-size:16px;margin:0 0 12px;}
.circle-about p {color:#516947;font-size:13px;line-height:1.85;margin:0 0 17px;}
.circle-membership-note {padding-top:15px;border-top:1px solid #dbe5d1;color:#5b7752;font-size:12px;line-height:1.8;margin:0 0 20px;}
.circle-about .text-link {display:inline-flex;align-items:center;gap:6px;font-size:12px;}
.circle-about .text-link .icon {width:14px;height:14px;}
.circle-empty-feed,.circle-page-message {padding:38px 27px;border:1px dashed #cfddc3;border-radius:18px;background:#f4f7ef;text-align:center;}
.circle-empty-feed h3,.circle-page-message h1 {font:600 24px/1.4 var(--serif);margin:0 0 12px;}
.circle-empty-feed p,.circle-page-message p {font-size:14px;line-height:1.85;color:#657b5b;margin:0 0 20px;overflow-wrap:anywhere;}
.circle-inline-error {padding:15px 18px;background:#fff3e8;color:#95613c;border:1px solid #ecd8c3;border-radius:12px;font-size:13px;line-height:1.7;margin:0 0 20px;}
.circle-load-more {display:flex;justify-content:center;padding:24px 0 0;}
.post-meta .circle-name-link {text-decoration:underline;text-underline-offset:2px;}
@media(max-width:1000px) {
 .circles-directory-hero {gap:16px;padding:24px;}
 .circles-directory-grid {grid-template-columns:repeat(2,minmax(0,1fr));}
 .circle-content-layout {grid-template-columns:minmax(0,1fr) 235px;gap:20px;}
 .circle-about {padding:20px;}
}
@media(max-width:740px) {
 .circles-page {padding-top:25px;}
 .circles-directory-hero {padding:22px;border-radius:17px;margin-bottom:16px;}
 .circles-directory-hero h1 {font-size:32px;}
 .circles-directory-tools {align-items:stretch;flex-direction:column;gap:13px;}
 .circles-search {max-width:none;}
 .circles-filter-group {align-self:flex-start;}
 .circle-content-layout {grid-template-columns:1fr;}
 .circle-about {order:-1;}
 .circle-about p {margin-bottom:12px;}
 .circle-about .circle-membership-note {padding-top:12px;margin-bottom:12px;}
 .circle-profile-main {padding:23px;}
 .circle-profile-heading {gap:17px;}
 .circle-profile-heading h1 {font-size:31px;}
}
@media(max-width:520px) {
 .circles-directory-grid {grid-template-columns:1fr;gap:17px;}
 .circles-directory-hero {padding:20px 17px;align-items:flex-start;flex-direction:column;}
 .circles-directory-hero h1 {font-size:29px;}
 .circles-directory-hero p {font-size:14px;}
 .circle-profile-art {height:100px;}
 .circle-profile-main {padding:20px;}
 .circle-profile-heading {align-items:flex-start;flex-direction:column;}
 .circle-profile-heading h1 {font-size:29px;}
 .circle-profile-heading>.btn {min-width:130px;}
 .circle-profile-description {font-size:14px;}
 .circle-profile-bottom {align-items:flex-start;flex-wrap:wrap;}
 .circle-profile-stats {gap:29px;}
 .circle-timeline-heading {align-items:flex-start;flex-direction:column;}
 .circle-timeline-heading h2 {font-size:25px;}
 .circle-timeline .post {padding:21px 17px;}
 .circle-page-message {padding:30px 20px;}
}

/* Compact group directory and membership actions. */
.circles-directory-hero>.btn {flex:none}
.circles-results-count {margin:0 0 14px;color:var(--muted);font-size:13px}
.reading-circle-card .circle-banner {overflow:hidden}
.reading-circle-card-body>p {display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;overflow:hidden}
.circle-card-actions .text-link {min-height:44px;max-width:100%;text-align:start}
.circle-card-actions .btn {white-space:normal;text-align:center}
.circle-card-actions .icon,.circle-member-badge .icon {width:15px;height:15px;flex:none}
.group-profile {overflow:visible;margin-bottom:23px}
.group-profile .circle-profile-art {border-radius:22px 22px 0 0}
.group-profile .circle-profile-main {padding:20px 25px}
.group-profile .circle-profile-heading {align-items:center}
.group-profile .circle-profile-heading h1 {margin:0 0 7px}
.group-profile-labels,.group-profile-facts {display:flex;align-items:center;flex-wrap:wrap;gap:8px 14px;min-width:0}
.circle-member-badge {display:inline-flex;align-items:center;gap:5px;color:#2c634e;font-size:12px;font-weight:700;white-space:normal}
.group-profile-labels .circle-profile-language {padding:4px 9px;background:#eef2e9;border-radius:50px;line-height:1.5}
.group-profile-facts {margin-top:13px;padding-top:9px;border-top:1px solid #e2e9de;color:var(--muted);font-size:13px}
.group-members-link {min-height:44px;display:inline-flex;align-items:center;gap:5px;font-size:13px}
.group-members-link .icon,.circle-actions-list .icon {width:17px;height:17px;flex:none}
.circle-profile-actions {display:flex;align-items:center;gap:8px;flex-wrap:wrap;min-width:0}
.circle-profile-actions .btn {max-width:100%;white-space:normal;text-align:center}
.circle-profile-actions .btn .icon {width:17px;height:17px;flex:none}
.circle-actions-menu {position:relative}
.circle-action-icon {display:grid;place-items:center;width:44px;height:44px;padding:0;border:1px solid var(--line);color:var(--forest);background:var(--paper);border-radius:10px;cursor:pointer;list-style:none}
.circle-action-icon::-webkit-details-marker {display:none}
.circle-action-icon .icon {width:18px;height:18px}
.circle-action-icon span {letter-spacing:1px;font-size:18px;font-weight:750;line-height:1}
.circle-action-icon:is(:hover,:focus-visible),.circle-actions-menu[open]>.circle-action-icon {background:#e7efe7;border-color:#c5d8cc}
.circle-actions-list {position:absolute;z-index:6;right:0;top:calc(100% + 6px);width:max-content;max-width:min(215px,calc(100vw - 36px));display:grid;gap:2px;padding:5px;border:1px solid var(--line);border-radius:12px;background:var(--paper);box-shadow:0 10px 24px #173d4222}
.circle-actions-list button {display:flex;align-items:center;gap:7px;min-height:43px;text-align:start;border:0;border-radius:8px;padding:8px 10px;background:transparent;color:var(--ink);font:inherit;font-size:13px;font-weight:650;cursor:pointer;white-space:normal}
.circle-actions-list button:is(:hover,:focus-visible) {background:#edf4ed}
.circle-actions-list .circle-leave-button {color:#934b39}
.circle-share-fallback {display:grid;gap:8px;min-width:0}
.circle-share-fallback input {width:100%;min-width:0}
.group-without-about {grid-template-columns:minmax(0,1fr)}
.group-timeline-title {font:600 clamp(22px,2.4vw,28px)/1.3 var(--serif);margin:0 0 15px}
.group-about {position:static;order:0}
.group-about p {white-space:pre-wrap;overflow-wrap:anywhere;margin:0}
@media(max-width:520px){
 .group-profile .circle-profile-main {padding:16px}
 .group-profile .circle-profile-heading {align-items:flex-start;gap:14px}
 .circle-profile-actions {width:100%}
 .circle-profile-actions .btn {flex:1 1 105px}
}
