/* Proposed tokens adapted from the UI Vault to the existing Amistades palette. */
:root{--surface:#fff;--canvas:#f6f8f5;--surface-selected:#e6efe6;--text-secondary:#536257;--space-small:.5rem;--space-group:1rem;--space-section:2rem;--card-radius:1.25rem;--control-radius:.75rem}
body.app-shell{background:var(--canvas);padding-bottom:calc(112px + env(safe-area-inset-bottom,0px));line-height:1.6}
.app-shell .wrap{width:min(1120px,calc(100% - 3rem));margin-inline:auto}
.app-shell main{width:100%;min-width:0}
.app-shell h1,.app-shell h2,.app-shell h3{overflow-wrap:break-word}
.app-header{background:var(--surface);border-color:#e1e8df}
.app-header-inner{min-height:76px}
.app-shell .button,.app-shell .action{min-height:48px;padding:.75rem 1.15rem;border-radius:var(--control-radius);font-size:1rem}
.app-shell :is(a,button,input,textarea,select,summary):focus-visible{outline:3px solid #3263a8;outline-offset:3px}
.app-shell .eyebrow{font-size:.75rem;line-height:1.5;font-weight:600;letter-spacing:.1em;margin-bottom:.75rem}
.app-shell .section{padding-block:2.5rem}
.app-shell .section-heading{font-size:1.8rem;letter-spacing:-.04em}
.app-shell .page-wrap,.app-shell .portal{padding-block:2rem}
.app-shell .page-heading{margin-bottom:2rem;max-width:48rem}
.app-shell .page-heading h1{font-size:clamp(2rem,4vw,3rem);line-height:1.12;letter-spacing:-.045em}
.app-shell .page-heading .lead{font-size:1.05rem;line-height:1.65;color:var(--text-secondary);max-width:58ch}
.app-shell .breadcrumbs{font-size:.875rem;margin-bottom:1.25rem}
.app-shell .page-body.wide{max-width:none}
/* A concise welcome with one primary action and direct routes into the app. */
.app-welcome{display:grid;grid-template-columns:1fr 1fr;gap:3rem;align-items:center;padding-block:2.5rem}
.welcome-copy h1{font-size:clamp(2.4rem,5vw,4rem);line-height:1.04;letter-spacing:-.055em;max-width:12ch;margin:0 0 1.25rem}
.welcome-copy h1 span{color:var(--forest)}
.welcome-copy>p:not(.eyebrow){max-width:38ch;color:var(--text-secondary);margin:0 0 1.5rem;font-size:1.05rem}
.welcome-copy .button{margin-right:1rem}
.welcome-about{display:inline-flex;align-items:center;min-height:44px;color:var(--forest);font-size:.875rem;font-weight:600}
.welcome-photo{margin:0;position:relative}
.welcome-photo>img{width:100%;height:330px;object-fit:cover;border-radius:1.5rem}
.welcome-photo figcaption{font-size:.75rem;color:var(--text-secondary);margin-top:.65rem}
.home-shortcuts{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1rem;margin-block:.5rem 1rem!important}
.home-shortcuts>a{display:grid;grid-template-columns:44px 1fr;gap:.15rem 1rem;padding:1.1rem;background:var(--surface);border:1px solid var(--line);border-radius:var(--card-radius);text-decoration:none;color:var(--ink)}
.shortcut-symbol{grid-row:span 2;display:grid;place-items:center;align-self:center;width:44px;height:44px;background:var(--mist);border-radius:14px;color:var(--forest)}
.shortcut-symbol svg{width:23px;height:23px}
.home-shortcuts strong{font-size:1rem;align-self:end}
.home-shortcuts a>span:last-child{font-size:.875rem;color:var(--text-secondary)}
.home-shortcuts a:hover,.workspace-links a:hover{border-color:var(--forest);background:#f0f5ee}
/* Shared searchable activity catalogue; card identity survives opening details. */
.app-shell .directory{display:block;padding-top:1.5rem}
.directory-heading{display:grid;grid-template-columns:1fr minmax(240px,24rem);column-gap:2rem;align-items:end;margin-bottom:1.25rem}
.directory-heading>h2{grid-column:1;font-size:1.6rem;letter-spacing:-.03em}
.directory-heading>p{grid-column:1;max-width:none;margin:.25rem 0 0;font-size:.95rem}
.app-shell .catalogue-search{grid-column:2;grid-row:1/3;margin:0;max-width:none}
.catalogue-search label{font-size:.875rem}
.search-field input{min-height:48px;border-radius:var(--control-radius);border-color:var(--line)}
.directory-heading .search-status{grid-column:1/-1;min-height:0;margin:.5rem 0 0}
.app-shell .activity-list{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1.25rem;padding:0;list-style:none}
.app-shell .activity-list>li{min-width:0;border:1px solid var(--line);border-radius:var(--card-radius);background:var(--surface);overflow:hidden}
.app-shell .activity-row{height:100%;display:flex;flex-direction:column;align-items:stretch;gap:0;padding:0;border:0;text-decoration:none}
.app-shell .activity-row>img{width:100%;height:180px;object-fit:cover;border-radius:0}
.app-shell .activity-row>div{padding:1.1rem 1.1rem .5rem}
.app-shell .activity-row h3{font-size:1.2rem;line-height:1.3;letter-spacing:-.025em}
.app-shell .activity-row p{font-size:.95rem;line-height:1.6;color:var(--text-secondary);margin:.5rem 0}
.app-shell .open-detail{display:flex;width:auto;height:auto;min-height:44px;border:0;border-radius:0;background:transparent;justify-content:start;padding:.25rem 1.1rem 1rem;margin-top:auto;font-size:.875rem;font-weight:600;color:var(--forest)}
.app-shell .activity-row:hover{background:#f7faf6}
.app-shell .activity-row:hover .open-detail{color:var(--forest);background:transparent;text-decoration:underline}
.dialog-content .story-body{max-width:60ch}
/* Feed and public agenda are distinct tasks rather than one long mixed stream. */
.news-layout{display:block;width:100%;max-width:52rem;margin-inline:auto}
.news-feed{min-width:0}
.feed-heading{display:flex;align-items:baseline;justify-content:space-between;gap:1rem;margin-bottom:1rem}
.feed-heading h2{font-size:1.25rem;letter-spacing:-.02em}
.feed-heading>span{font-size:.875rem;color:var(--text-secondary)}
.app-shell .news-list article{margin:0 0 1rem;padding:1.4rem;background:var(--surface);border:1px solid var(--line);border-radius:var(--card-radius)}
.app-shell .news-list h3{font-size:1.35rem;line-height:1.3;margin:.65rem 0;letter-spacing:-.025em}
.app-shell .news-list h3 a{text-decoration:none}
.news-list time{font-size:.875rem}
.news-list article>p{color:var(--text-secondary);font-size:1rem;margin-bottom:1rem}
.news-list .news-image{margin:0 0 1rem;max-width:none}
.news-agenda{border:1px solid var(--line);border-radius:var(--card-radius);background:var(--surface);overflow:hidden}
.news-agenda summary{padding:1.25rem;cursor:pointer;font-weight:600;color:var(--ink);min-height:48px}
.news-agenda summary>span{display:block;font-size:.875rem;color:var(--text-secondary);font-weight:400;margin-top:.35rem}
.news-agenda .aqs-calendar{margin:0;border:0;border-top:1px solid var(--line);border-radius:0;background:var(--mist);padding:1rem}
.news-agenda .aqs-calendar h2{font-size:1.15rem}
.news-agenda .aqs-calendar-grid{display:none}
.news-agenda .aqs-calendar input,.news-agenda .aqs-calendar button{min-height:44px}
.news-body{font-size:1.05rem;line-height:1.8;max-width:65ch}
.news-body p{margin-block:1rem}
.article-back{background:var(--surface)}
/* Quiet workspace grouping and explicit state labels. No navigation stripes. */
.app-shell .portal-heading h1{font-size:clamp(1.8rem,3vw,2.5rem);letter-spacing:-.04em}
.app-shell .portal-heading p{font-size:1rem}
.workspace-sections{background:var(--surface);border:1px solid var(--line);border-radius:1rem;margin-bottom:1.5rem;padding:0 1rem}
.workspace-sections>summary{display:list-item;padding:1rem 0!important;font-size:.95rem}
.workspace-sections>summary strong{font-weight:600}
.workspace-sections>summary span{font-weight:400;color:var(--text-secondary);margin-left:.5rem}
.app-shell .workspace-sections .portal-nav{display:grid;grid-template-columns:repeat(auto-fit,minmax(145px,1fr));border:0;margin:0;padding:0 0 1rem;overflow:visible}
.app-shell .portal-nav a{white-space:normal;border:0;background:transparent;border-radius:.65rem;font-size:.875rem;padding:.7rem}
.app-shell .portal-nav a[aria-current]{background:var(--surface-selected);font-weight:700}
.app-shell .workspace-links{gap:.75rem;margin-bottom:1.5rem}
.app-shell .workspace-links a{border-radius:1rem;padding:1rem;border-color:var(--line);background:var(--surface)}
.app-shell .workspace-links span{font-size:.875rem;line-height:1.5;margin-top:.4rem}
.app-shell .portal-panel{padding:1.5rem;border-radius:var(--card-radius);box-shadow:none;background:var(--surface)}
.app-shell .portal-panel.tint{background:#edf4e9}
.app-shell .portal-panel h2{font-size:1.25rem}
.app-shell .stat{background:var(--surface);padding:1.2rem;border-radius:1rem}
.app-shell .stat strong{font-size:1.75rem;line-height:1.3;font-variant-numeric:tabular-nums}
.app-shell .stat span{font-size:.875rem}
.app-shell .portal-form{gap:.6rem}
.portal-form input,.portal-form textarea,.portal-form select{min-height:48px;border-color:#a4b4a1!important;font-size:1rem!important}
.portal-form label{font-size:.95rem}
.portal-form .button{margin-top:1rem}
.portal .record{padding-block:1.25rem}
.record-head h3{line-height:1.4}
.app-shell .demo-banner{font-size:.875rem;border:1px dashed #b6c8a9;background:#f0f5e9;padding:.8rem 1rem}
.app-shell .status-tag{font-size:.8125rem;font-weight:600}
.app-shell .login-layout{margin-top:0;gap:3rem}
.login-intro h1{font-size:2.5rem;letter-spacing:-.045em}
/* Stable stations, legible labels, and room for the phone's safe area. */
.app-shell .app-dock{left:50%;right:auto;transform:translateX(-50%);bottom:calc(12px + env(safe-area-inset-bottom,0px));width:min(620px,calc(100% - 24px));padding:8px;gap:4px;background:var(--surface);border:1px solid var(--line);border-radius:1.5rem;box-shadow:0 6px 30px #20392b14;backdrop-filter:none}
.app-shell .app-dock a{max-width:none;gap:4px;border-radius:1rem;font-size:.875rem;min-height:64px;justify-content:center;padding:.3rem .1rem;line-height:1.2}
.app-shell .app-dock a[aria-current]{background:var(--surface-selected);font-weight:700}
.app-shell .dock-icon{background:transparent!important;height:26px;width:32px}
.app-shell .app-info{width:min(1120px,calc(100% - 3rem));margin:1rem auto 1.5rem}
.app-info summary{font-size:.875rem;text-align:center}
.app-shell .footer{background:transparent}
.app-secondary{justify-content:center}
@media(max-width:850px){.app-welcome{gap:1.5rem}.home-shortcuts>a{display:flex;flex-direction:column;align-items:start;gap:.5rem}.home-shortcuts a>span:last-child{line-height:1.4}.app-shell .activity-list{grid-template-columns:repeat(2,minmax(0,1fr))}.news-layout{grid-template-columns:1fr}.news-agenda{order:2}.welcome-photo>img{height:280px}}
@media(max-width:600px){.app-shell .wrap{width:calc(100% - 36px)}.app-shell .app-header-inner{min-height:68px}.app-welcome{grid-template-columns:1fr;gap:1.25rem;padding-block:1.6rem}.welcome-copy h1{font-size:2.7rem;max-width:13ch;margin-bottom:.85rem}.welcome-copy>p:not(.eyebrow){font-size:1rem;max-width:35ch;margin-bottom:1rem}.welcome-photo>img{height:190px;border-radius:1.15rem}.welcome-photo figcaption{font-size:.75rem}.home-shortcuts{gap:.5rem}.home-shortcuts>a{padding:.85rem .65rem;border-radius:1rem;gap:.5rem}.home-shortcuts strong{font-size:.875rem;align-self:start;line-height:1.35}.home-shortcuts a>span:last-child{display:none}.shortcut-symbol{width:36px;height:36px;border-radius:11px}.shortcut-symbol svg{width:21px;height:21px}.app-shell .page-wrap,.app-shell .portal{padding-top:1.5rem}.app-shell .page-heading h1{font-size:2.1rem}.directory-heading{grid-template-columns:1fr;gap:0}.directory-heading>h2{font-size:1.4rem}.app-shell .catalogue-search{grid-column:1;grid-row:auto;margin-top:1rem}.app-shell .activity-list{grid-template-columns:1fr;gap:1rem}.app-shell .activity-row{display:grid;grid-template-columns:96px minmax(0,1fr)}.app-shell .activity-row>img{height:100%;min-height:150px;grid-row:span 2}.app-shell .activity-row>div{padding:1rem 1rem .3rem}.app-shell .activity-row h3{font-size:1.125rem}.app-shell .activity-row p{font-size:.875rem}.app-shell .open-detail{grid-column:2;padding:0 1rem .75rem;min-height:36px}.app-shell .app-dock a{font-size:.8125rem}.app-shell .portal-panel{padding:1.15rem}.app-shell .stats{grid-template-columns:repeat(3,minmax(0,1fr));gap:.5rem}.app-shell .stat{display:block;padding:.85rem}.app-shell .stat strong{font-size:1.35rem;overflow-wrap:anywhere}.app-shell .stat span{font-size:.8125rem}.app-shell .page-heading .lead{font-size:1rem}.app-shell .app-info{width:calc(100% - 36px)}.app-shell .news-list article{padding:1.2rem}.app-shell .workspace-sections .portal-nav{grid-template-columns:repeat(2,minmax(0,1fr))}.app-shell .section{padding-block:1.75rem}}
@media(max-width:360px){.app-shell .app-dock{width:calc(100% - 12px);padding:5px;gap:0}.app-shell .app-dock a{font-size:.75rem}.home-shortcuts strong{font-size:.8125rem}.welcome-copy h1{font-size:2.4rem}.app-shell .activity-row{grid-template-columns:80px minmax(0,1fr)}.app-shell .stats{grid-template-columns:1fr}.app-shell .stat{display:flex;gap:1rem;align-items:center}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*,*::before,*::after{transition:none!important}}
@media print{body.app-shell{background:white;padding:0}.app-shell .app-dock,.workspace-sections{display:none!important}.app-shell .wrap{width:100%}.news-layout{display:block}.news-agenda{display:none}}
.help-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1.25rem}.help-grid>section{min-width:0}.help-grid .shortcut-symbol{margin-bottom:1rem}.help-grid h3{font-size:1rem;line-height:1.5}.help-grid .help-account{background:var(--mist)}.help-account .button{margin-bottom:1rem}.help-links{display:grid;margin-block:.5rem 1rem}.help-links a,.help-social a{display:flex;align-items:center;min-height:44px;padding:.5rem 0;color:var(--forest);overflow-wrap:anywhere}.help-social{display:flex;flex-wrap:wrap;gap:1rem}.help-grid address{font-style:normal;color:var(--quiet);margin:.5rem 0}.help-grid .text-link{display:inline-flex;align-items:center;min-height:44px}.directory-heading.browse-heading{grid-template-columns:1fr}@media(max-width:650px){.help-grid{grid-template-columns:1fr}}
/* Detail and form refinement: labelled groups, readable records and local feedback. */
.form-field{display:grid;gap:.35rem;min-width:0}.portal-form>.form-field+.form-field{margin-top:.65rem}.form-field>label{margin:0!important}.field-hint,.form-guidance{font-size:.875rem;line-height:1.55;color:var(--quiet);margin:.15rem 0}.form-guidance{order:-1;margin:0 0 .4rem}.required-mark{color:var(--forest)}.portal-form .form-group{display:grid;gap:1rem;margin:0 0 .5rem;padding:1.1rem;border:1px solid var(--line);border-radius:.9rem;max-height:none;overflow:visible}.form-group legend{font-weight:700;font-size:.95rem;padding:0 .4rem}.portal-form .form-disclosure{background:var(--mist);padding:.25rem 1rem;border-radius:.9rem}.form-disclosure[open]{padding-bottom:1rem}.form-disclosure .form-field+.form-field{margin-top:1rem}.form-field input:not([type=checkbox]),.form-field textarea,.form-field select{width:100%;min-width:0}.portal-form .check{min-height:44px}.portal-form .choice-row{padding:.75rem;border:1px solid var(--line);background:var(--surface);border-radius:.75rem;font-weight:400}.choice-row:has(:checked){background:var(--surface-selected);border-color:var(--forest)}.portal .choice-row input[type=checkbox]{width:20px;min-width:20px;height:20px;min-height:20px;accent-color:var(--forest)}.password-toggle{justify-self:end;min-height:44px;border:0;background:transparent;color:var(--forest);font:inherit;font-size:.875rem;font-weight:600;cursor:pointer;padding:.35rem .2rem}.password-toggle[aria-pressed=true]{text-decoration:underline}.portal-form button:disabled{opacity:.6;cursor:wait}.portal-form:has([data-empty-choice]) button:disabled{cursor:not-allowed}.form-result:empty{display:none}.form-result p{margin:.5rem 0 0}.portal .form-result{margin-block:.5rem}.detail-return{display:inline-flex;align-items:center;gap:.5rem;color:var(--forest);font-weight:600;text-decoration:none;min-height:44px;margin-bottom:1rem;font-size:.875rem}.detail-return:hover{text-decoration:underline}.detail-return img{width:20px;height:20px}.portal-panel details{border-top:1px solid var(--line);margin-top:1rem;padding-top:.4rem}.portal-panel details[open]>summary{margin-bottom:.75rem}.portal-panel details>summary{color:var(--forest)}.portal-panel .danger-zone{background:#fff8f5;border:1px solid #e6c6ba;border-radius:.8rem;padding:.25rem 1rem}.danger-zone>summary,.danger-zone button{color:#8a3528}.danger-zone .button{background:#8a3528!important;color:white;border-color:#8a3528!important}.record .portal-form{max-width:38rem}.portal .record-head{align-items:flex-start}.record-head .status-tag{flex:none}.status-tag{white-space:normal}.record .portal-actions{margin-top:1rem}.portal .record>p.small{line-height:1.6}.view-login .login-layout,.view-activate .login-layout{max-width:58rem;grid-template-columns:1fr minmax(0,27rem);align-items:center}.login-layout .portal-panel>.portal-form>.button{width:100%;justify-self:stretch}.login-intro h1{max-width:15ch;line-height:1.12}.login-layout .portal-actions{display:grid;grid-template-columns:1fr 1fr}.login-layout .portal-actions .button{width:100%;height:100%;font-size:.875rem}.view-profile .account-details{padding:1rem;background:var(--mist);border-radius:.8rem}.account-details{line-height:1.6}.account-details dt,.account-details dd{padding-bottom:.5rem}.view-profile .portal-grid{align-items:start}.view-invitation>.portal-panel{max-width:46rem}.invite-link{margin-block:.5rem 1rem;border:1px solid var(--line);border-radius:.6rem;min-height:48px;overflow-wrap:anywhere}.view-receipt .receipt-total{font-size:2.5rem;font-weight:700;letter-spacing:-.05em;line-height:1.2;color:var(--forest);margin-bottom:1rem;font-variant-numeric:tabular-nums}.receipt h2{padding-bottom:1rem;border-bottom:1px solid var(--line)}.receipt .account-details dd{font-weight:600}.receipt>.button{margin-top:1rem}.view-treasury .stat strong{font-variant-numeric:tabular-nums}.record.unread{border-left:0!important;padding:1rem!important;background:var(--mist);border-radius:.9rem}.view-notifications .record .quiet-button{margin-block:.75rem}.view-notifications .record .portal-form{display:inline-flex;margin-left:.5rem}.view-notifications .record .portal-form .button{background:var(--surface);color:var(--forest);border-color:var(--line);font-size:.875rem;margin:0}.view-chat .conversation-list a{background:var(--canvas);padding:1rem}.view-chat .conversation-list a[aria-current]{background:var(--surface-selected);border-color:var(--forest);font-weight:600}.view-chat .chat-messages{margin-top:1.25rem;border:1px solid var(--line);padding:1rem}.view-chat .chat-message{box-shadow:none}.view-chat .chat-message time{font-size:.8125rem}.view-chat .conversation-detail>h2{font-size:1.4rem}.conversation-return{display:none}.view-calendar .calendar-scroll{max-width:100%;overflow:auto}.view-calendar .calendar-day{min-height:100px}.view-calendar .record{scroll-margin-top:1rem}.view-rollcall .attendance-summary{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:.5rem}.attendance-summary span{font-size:.8125rem;line-height:1.5;border-radius:.7rem}.attendance-summary strong{display:block;font-size:1.3rem}.portal-empty{padding:1rem!important;background:var(--mist);border:1px dashed var(--line);border-radius:.8rem;line-height:1.6}.error-panel{max-width:42rem;margin:auto}.error-panel h1{font-size:2rem}
/* Content pages and article details use a readable main column plus named sections. */
.reading-page .page-body{max-width:68ch;background:var(--surface);border:1px solid var(--line);border-radius:1.2rem;padding:clamp(1.25rem,3vw,2.25rem);font-size:1.05rem;line-height:1.8}.reading-page .page-body>h2{font-size:1.35rem;margin-top:2rem;margin-bottom:.75rem;line-height:1.35}.reading-page .page-body>p{margin-block:.75rem 1.25rem}.reading-page .page-body>ul{padding-left:1.3rem}.reading-page .related{margin-top:2rem;padding-top:1.25rem;border-top:1px solid var(--line);gap:.5rem}.reading-page .related a{font-size:.875rem;line-height:1.5;min-height:44px;display:inline-flex;align-items:center}.activity-detail .story-image{max-width:68ch}.activity-detail .story-image img{max-height:24rem}.activity-detail .activity-cta{padding:1.25rem;background:var(--mist);margin-top:2rem}.activity-detail .activity-cta h2{font-size:1.35rem}.contact-form{background:var(--surface)}.contact-details>p{max-width:36ch}.contact-form input,.contact-form textarea{min-height:48px;font-size:1rem!important}.contact-form .button{margin-top:1rem}.story-contents{padding:1rem 1.25rem;background:var(--surface);border:1px solid var(--line);border-radius:1rem;max-width:68ch;margin-bottom:1.5rem}.story-contents summary{font-weight:600;min-height:44px;cursor:pointer;color:var(--forest);display:list-item;padding:.5rem 0}.story-contents nav{display:grid;gap:.5rem;margin:.5rem 0}.story-contents a{min-height:44px;display:flex;align-items:center;color:var(--forest);font-size:.95rem}.contact-grid{align-items:start}
@media(max-width:700px){.view-login .login-layout,.view-activate .login-layout{grid-template-columns:1fr;gap:1.5rem}.login-intro h1{font-size:2rem;max-width:18ch}.portal-form .form-group{padding:.85rem}.portal-heading>.portal-actions{width:100%;justify-content:space-between}.portal-heading>.portal-actions .portal-form .button{background:var(--surface);color:var(--forest);border-color:var(--line);margin:0;min-height:44px;padding:.5rem .85rem}.view-chat:has(.conversation-detail [data-chat-feed]) .chat-layout>aside{display:none}.conversation-return{display:inline-flex}.view-chat .chat-messages{max-height:45dvh;min-height:12rem}.view-chat .conversation-detail>p.small{font-size:.8125rem}.view-rollcall .attendance-summary{grid-template-columns:repeat(2,minmax(0,1fr))}.view-calendar .calendar-scroll{display:none}.view-calendar .portal-grid{margin-top:1.25rem}.view-treasury .stats{grid-template-columns:repeat(2,minmax(0,1fr))}.view-treasury .stat:first-child{grid-column:1/-1}.view-notifications .record .portal-form{display:flex;margin-left:0}.reading-page .page-body{font-size:1rem;padding:1.15rem}.reading-page .page-body>h2{font-size:1.25rem}.account-details{grid-template-columns:1fr;gap:.1rem}.account-details dt{padding-bottom:0;font-size:.875rem}.account-details dd{padding-bottom:.9rem}.receipt .account-details{grid-template-columns:1fr 1fr;gap:.5rem 1rem}.receipt .account-details dd{text-align:right}.receipt .receipt-total{font-size:2rem}.app-shell .portal-form .button{max-width:100%;white-space:normal;text-align:center}.record-head h3{max-width:100%}.view-people .record .portal-form button{background:var(--surface);color:var(--forest);border-color:var(--line);margin-top:.5rem}.form-field .select-wrap{min-width:0}.form-result{scroll-margin-bottom:120px}.view-receipt .receipt{padding:1.2rem}}
@media print{.detail-return,.story-contents{display:none}.receipt .receipt-total{color:#000}.reading-page .page-body{padding:0;border:0}}

.location-map{display:block;width:100%;max-width:100%;height:280px;border:0;border-radius:16px;margin:16px 0;background:var(--surface,#f2f5ef)}
/* Paper uses the WordPress ink and forest colours on a near-white canvas. */
:root {
  --paper: #fcfcfb;
  --canvas: var(--paper);
  --surface: #fff;
  --surface-selected: #e6efe6;
  --paper-muted: #f5f6f3;
  --paper-rule: #d9e0d8;
  --line: var(--paper-rule);
  --card-radius: .625rem;
  --control-radius: .5rem;
}

.app-shell .app-header {
  background: var(--paper);
  border-color: var(--paper-rule);
}

.app-header .language-switch { grid-column: 3; grid-row: 1; justify-self: end; position: relative; }
.app-header .aqs-language {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .3em;
  min-height: 44px;
  padding: .35rem .7rem;
  border: 1px solid #d6d6d6;
  border-radius: .6rem;
  background: #ededed;
  color: var(--ink);
  white-space: nowrap;
  font-weight: 650;
  text-decoration: none;
}
.app-header .aqs-language:hover { background: #dedede; }
.language-flag { display: block; width: 1.35rem; height: .9rem; flex: none; border-radius: 2px; }
.language-switch [role="tooltip"] {
  display: none;
  position: absolute;
  z-index: 4;
  inset-block-start: calc(100% + .35rem);
  inset-inline-end: 0;
  width: max-content;
  max-width: min(12rem, 55vw);
  padding: .4rem .65rem;
  background: #242424;
  color: #fff;
  border-radius: .45rem;
  font-size: .875rem;
  line-height: 1.35;
}
.language-switch [role="tooltip"]::before { content: ''; position: absolute; inset: -.35rem 0 100%; }
.language-switch:not([data-dismissed]) .aqs-language:focus-visible + [role="tooltip"] { display: block; }
@media (any-hover: hover) {
  .language-switch:not([data-dismissed]):hover [role="tooltip"] { display: block; }
}
@media (max-width: 56rem) {
  .app-header .aqs-language { background: transparent; border-color: transparent; border-radius: 0; font-size: .92rem; }
  .app-header .aqs-language:hover { background: transparent; text-decoration: underline; text-underline-offset: .2em; }
}

.app-shell .app-dock {
  background: var(--surface);
  border-radius: .75rem;
  box-shadow: 0 4px 16px #20392b0d;
}

.app-shell .app-dock a {
  border-radius: var(--control-radius);
}

.app-shell .page-heading h1,
.app-shell .portal-heading h1,
.login-intro h1 {
  line-height: 1.08;
  letter-spacing: -.045em;
}

.app-shell .page-heading h1 {
  font-size: clamp(2.2rem, 5vw, 4rem);
}

.app-shell .portal-heading h1 {
  font-size: clamp(2rem, 4vw, 3rem);
}

.app-shell .page-heading,
.app-shell .portal-heading {
  padding-bottom: 1.2rem;
  border-bottom: 1px solid var(--paper-rule);
}

.app-shell .page-heading {
  max-width: none;
}

.app-shell .section-heading,
.app-shell .portal-panel h2 {
  letter-spacing: -.025em;
}

.app-shell .portal-panel h2 {
  font-size: 1.4rem;
  line-height: 1.25;
}

.app-shell .button.secondary,
.app-shell .quiet-button {
  background: var(--surface);
  color: var(--forest);
  border-color: var(--paper-rule);
  border-radius: var(--control-radius);
}

.app-shell .button.secondary:hover,
.app-shell .quiet-button:hover {
  background: var(--mist);
}

.app-shell :is(.portal-panel, .stat, .workspace-sections, .workspace-links > a, .home-shortcuts > a,
  .activity-list > li, .location-grid article, .contact-form, .story-contents, .related a,
  .activity-cta, .aqs-calendar, .aqs-event, .chat-messages, .conversation-list a, .chat-message,
  .activity-dialog, .empty-state, .form-disclosure, .form-group, .choice-row) {
  border-radius: var(--card-radius);
}

.app-shell :is(.portal-panel.tint, .stat, .portal-empty, .activity-cta, .aqs-calendar) {
  background: var(--paper-muted);
}

.app-shell .portal-empty {
  border-radius: var(--control-radius);
  border-style: solid;
}

.app-shell :is(.portal-form input:not([type=checkbox]), .portal-form select, .portal-form textarea,
  .contact-form input, .contact-form textarea, .search-field input, .invite-link) {
  background: var(--surface);
  border-radius: var(--control-radius);
}

.app-shell .portal .choice-row:has(:checked) {
  background: var(--surface-selected);
}

.app-shell .reading-page .page-body {
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
}

.app-shell .reading-page .related,
.app-shell .directory-heading,
.app-shell .locations > div:first-child {
  border-top: 1px solid var(--paper-rule);
  padding-top: 1rem;
}

.app-shell :is(.welcome-photo > img, .story-image img, .social-section img, .login-intro img, .location-map) {
  border-radius: var(--card-radius);
}

/* The regular News tab uses the Paper archive's date column and ruled rows. */
.app-shell .paper-news,
.app-shell .paper-article {
  max-width: 880px;
}

.app-shell .paper-news .page-heading { border-bottom: 0; padding-bottom: 0; }

.app-shell .paper-news .news-layout {
  display: block;
}

.paper-news .feed-heading {
  flex-wrap: wrap;
  gap: .75rem 1rem;
}

.paper-news .news-agenda {
  margin-top: 2rem;
}

.paper-news .news-agenda .aqs-calendar {
  background: var(--paper-muted);
}

.paper-news-search {
  display: flex;
  gap: .4rem;
  max-width: 100%;
}

.paper-news-search input {
  width: min(230px, 100%);
  min-width: 0;
  padding: .5rem .75rem;
  border: 1px solid #819885;
  border-radius: var(--control-radius);
  background: var(--surface);
  color: var(--ink);
  font: inherit;
}

.paper-news-search button {
  flex: none;
}
.app-shell .icon-button { min-width: 48px; padding: 0; }
.icon-button svg, .icon-link svg, .search-clear svg, .search-field-icon svg {
  width: 1.25rem;
  height: 1.25rem;
  flex: none;
}
.icon-button:disabled { opacity: .65; }
.app-shell .icon-link { display: inline-flex; align-items: center; gap: .5rem; min-height: 44px; }
.app-shell .contact-details > .icon-link[href^="tel"],
.app-shell .contact-details > .icon-link[href^="mailto"] { display: flex; width: fit-content; max-width: 100%; }
.search-field { position: relative; }
.search-field-icon { position: absolute; inset-inline-start: .8rem; top: 50%; transform: translateY(-50%); display: grid; color: var(--forest); pointer-events: none; }
.search-field:has(.search-field-icon) input { padding-inline-start: 2.6rem; }
.search-clear svg { display: block; margin-inline: auto; }

.location-section { scroll-margin-top: 1rem; }
.location-section h2 { margin-bottom: .85rem; }
.location-picker { max-width: 44rem; }
.location-picker label { display: block; margin-bottom: .35rem; font-weight: 650; }
.location-controls { display: flex; flex-wrap: wrap; gap: .5rem; }
.location-controls select {
  min-width: 0;
  width: 100%;
  min-height: 48px;
  padding: .6rem .7rem;
  border: 1px solid #819885;
  border-radius: var(--control-radius);
  background: var(--surface);
  color: var(--ink);
  font: inherit;
}
.location-controls button[hidden] { display: none; }
.location-picker [data-location-details] { margin-top: 1.1rem; }
.location-picker address { font-style: normal; color: var(--quiet); margin-block: .4rem; }
.location-section .location-map { margin-block: .8rem; }

.paper-directory {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  margin-block: 1.35rem;
  border-top: 1px solid var(--paper-rule);
}
.paper-directory .directory-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: .875rem;
  min-height: 3.7rem;
  padding: .5rem .125rem;
  border-bottom: 1px solid var(--paper-rule);
  color: var(--ink);
  text-decoration: none;
}
.directory-row:hover, .directory-row[aria-current="page"] { background: var(--paper-muted); }
.directory-row:hover strong, .association-social a:hover { text-decoration: underline; text-underline-offset: .2em; }
.directory-symbol { display: grid; place-items: center; width: 2.125rem; height: 2.125rem; border-radius: .55rem; background: #edf2eb; color: var(--forest); }
.directory-symbol svg { width: 1.25rem; height: 1.25rem; }
.directory-row > svg { width: 1.05rem; height: 1.05rem; color: #526652; }
.directory-copy { overflow-wrap: anywhere; line-height: 1.35; }
.directory-copy strong { font-weight: 625; }
.directory-copy small { display: block; margin-top: .15rem; color: var(--text-secondary); font-size: .875rem; }
.app-shell .association-portrait {
  align-self: start;
  padding: 0;
  overflow: hidden;
  border: 1px solid #d3d8cf;
  border-radius: .5rem;
  background: var(--paper);
  scroll-margin-block: 1rem 7rem;
}
.association-photo { display: block; width: 100%; aspect-ratio: 414 / 228; object-fit: cover; object-position: 50% 41%; }
.association-copy { padding: 1.3rem clamp(1rem, 4vw, 1.5rem) .75rem; }
.app-shell .association-portrait h2 { margin: 0; font-size: 1.875rem; font-weight: 650; letter-spacing: -.055em; line-height: 1.04; text-wrap: balance; }
.association-copy > p { max-width: 34ch; margin: .5rem 0 0; color: var(--text-secondary); font-size: 1rem; line-height: 1.45; }
.association-actions { margin-top: .875rem; }
.association-actions .button { display: inline-flex; align-items: center; gap: .875rem; }
.association-actions svg { width: 1.05rem; height: 1.05rem; flex: none; }
.association-more { display: flex; flex-wrap: wrap; gap: 0 1.375rem; margin-top: .35rem; }
.association-more a { display: inline-flex; align-items: center; gap: .45rem; min-height: 44px; font-size: .9375rem; font-weight: 600; color: var(--forest); text-decoration: none; }
.association-more a:hover { text-decoration: underline; text-underline-offset: .2em; }
.association-copy h3 { border-top: 1px solid var(--paper-rule); padding-top: .75rem; margin: .25rem 0; font-size: .9375rem; }
.association-social { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0 .55rem; }
.association-social a { display: inline-flex; align-items: center; gap: .3rem; min-height: 44px; color: var(--forest); font-size: .875rem; font-weight: 550; text-decoration: none; }
.association-social svg { width: 1.05rem; height: 1.05rem; }
@media (min-width: 48rem) {
  .workspace-directory { grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 1.5rem; }
}

.paper-news-list {
  display: grid;
  gap: .65rem;
  container-type: inline-size;
}

.app-shell .paper-news-list article {
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
}
.app-shell .paper-news-row {
  display: grid;
  grid-template-columns: minmax(8rem, 1fr) minmax(0, 3fr);
  gap: .5rem 1.5rem;
  padding: 1rem clamp(1.05rem, 3cqi, 2rem);
  border: var(--community-edge);
  border-radius: var(--community-radius);
  background: var(--surface);
  color: var(--ink);
  text-decoration: none;
}

.app-shell .paper-news-row:is(:hover, :focus-visible) {
  background: var(--paper-muted);
}

.paper-news-row time {
  padding-top: .2rem;
  font-variant-numeric: tabular-nums;
}

.app-shell .paper-news-list h3 {
  margin: 0;
  font-size: 1.4rem;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.paper-news-copy p {
  margin-top: .4rem;
  color: var(--body);
  overflow-wrap: anywhere;
}

.paper-news-read {
  display: inline-block;
  margin-top: .65rem;
  color: var(--forest);
  font-weight: 650;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.paper-news-row:hover h3 {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.paper-article-date {
  margin: .75rem 0 0;
  color: var(--quiet);
  font-size: .875rem;
  font-variant-numeric: tabular-nums;
}

.app-shell .paper-article .news-body {
  max-width: 65ch;
  font-size: 1.125rem;
  line-height: 1.75;
  overflow-wrap: anywhere;
}

@container (max-width: 650px) {
  .app-shell .paper-news-row {
    grid-template-columns: 1fr;
    gap: .3rem;
    padding-block: 1rem;
  }
}

@media (max-width: 700px) {
  .paper-news-search {
    width: 100%;
  }

  .app-shell .paper-article .news-body {
    font-size: 1rem;
  }
}

/* The Community portrait card pairs edge-to-edge photography with one clear action. */
.app-shell {
  --community-inset: clamp(1.05rem, 3vw, 2rem);
  --community-edge: 1px solid #d3d8cf;
  --community-radius: .6rem;
}
.app-shell :is(.app-welcome, .community-heading, .login-intro, .social-section) {
  background: var(--paper);
  border: var(--community-edge);
  border-radius: var(--community-radius);
}
.app-shell .app-welcome, .app-shell .social-section {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
  gap: 0;
  padding: 0;
  overflow: hidden;
  margin-block: 1.5rem;
}
.app-welcome .welcome-copy, .social-section > div { align-self: center; padding: var(--community-inset); }
.app-shell .welcome-copy h1 { font-size: clamp(2rem, 4.5vw, 3.8rem); margin-block: 0 .65rem; }
.app-shell .welcome-photo, .social-section figure { margin: 0; min-width: 0; }
.app-shell :is(.welcome-photo, .social-section figure) img {
  display: block; width: 100%; height: auto; aspect-ratio: 1.75; object-fit: cover; border-radius: 0;
}
.app-shell :is(.welcome-photo, .social-section figure) figcaption {
  padding: .35rem 1rem; margin: 0; font-size: .8125rem; color: var(--text-secondary);
}
.app-shell .community-heading {
  display: block; overflow: hidden; margin: 0 0 1.25rem; padding: 0; border: var(--community-edge);
}
.community-heading-copy { min-width: 0; padding: var(--community-inset); }
.app-shell .community-heading:not(.with-portrait) { background: #f0f4ee; }
.app-shell .community-heading h1 { margin: 0; font-weight: 650; font-size: clamp(1.85rem, 3.7vw, 3.1rem); }
.app-shell .community-heading .lead { font-size: 1rem; max-width: 60ch; margin: .55rem 0 0; }
.community-cover { min-width: 0; background: var(--mist); }
.community-cover img { display: block; width: 100%; height: 100%; max-height: 23rem; aspect-ratio: 1.8; object-fit: cover; }
.community-cover img[src$="campamento.webp"] { object-position: 50% 41%; }
.portal-heading .community-heading-copy { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem; }
.portal-heading .community-heading-copy > div { min-width: 0; }
.portal-heading .eyebrow { margin: 0 0 .45rem; }
.dashboard-primary { margin-top: .75rem; }
.app-shell .portal-heading .portal-actions { align-items: center; justify-content: flex-start; }
.app-shell .portal-heading .portal-actions :is(.button, .quiet-button) {
  background: var(--surface); color: var(--forest); border: var(--community-edge); margin: 0;
}
.app-shell .login-intro { overflow: hidden; align-self: start; padding: var(--community-inset); }
.app-shell .login-intro .login-portrait { display: block; width: calc(100% + 2 * var(--community-inset)); max-width: none; height: auto; aspect-ratio: 2.45; object-fit: cover; border-radius: 0; margin: calc(-1 * var(--community-inset)) calc(-1 * var(--community-inset)) 1rem; }
.app-shell .login-intro h1 { font-size: clamp(1.8rem, 3.6vw, 2.8rem); }
.app-shell .paper-directory { border-top: 0; gap: .55rem; }
.app-shell .paper-directory .directory-row {
  background: var(--surface); border: var(--community-edge); border-radius: var(--community-radius); padding: .7rem .85rem;
}
.app-shell .directory-symbol { background: transparent; width: 1.5rem; height: 1.5rem; }
.app-shell .directory-row:hover { background: var(--paper-muted); }
.app-shell .paper-news-read, .app-shell .open-detail { color: var(--forest); font-weight: 650; }
.app-shell :is(.activity-list > li, .activity-dialog, .portal-panel, .contact-form, .workspace-sections) {
  border: var(--community-edge); border-radius: var(--community-radius);
}
.app-shell .portal-panel h2, .app-shell .dialog-content h2 { font-weight: 650; letter-spacing: -.04em; }
.app-shell .association-portrait h2 { letter-spacing: -.055em; }
.app-shell :is(.form-disclosure, .portal .form-group, .stat) { background: var(--paper-muted); border-radius: var(--community-radius); }
.app-shell .portal .portal-form > .button { justify-self: start; }
@media (min-width: 48rem) {
  .app-shell .community-heading.with-portrait { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.25fr); align-items: stretch; }
  .with-portrait .community-heading-copy { align-self: center; }
  .portal-heading.with-portrait .community-heading-copy { display: grid; }
}
@media (max-width: 47.99rem) {
  .app-shell .app-welcome, .app-shell .social-section { grid-template-columns: minmax(0, 1fr); margin-block: 1rem; }
  .social-section figure { grid-row: 1; }
  .portal-heading .community-heading-copy { align-items: flex-start; }
  .portal-heading:not(.with-portrait) .community-heading-copy { padding-block: .85rem; }
  .app-shell .welcome-about { min-height: 44px; }
}
@media print {
  .app-shell .portal-heading, .app-shell .community-cover, .app-shell .workspace-directory { display: none; }
}

.home-updates {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.25rem;
  margin-block: 1.25rem;
}
.home-update-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0 .75rem;
  margin-bottom: .35rem;
}
.home-update-heading h2 { margin: 0; font-size: 1.35rem; letter-spacing: -.035em; }
.home-update-heading a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--forest);
  font-size: .9rem;
  font-weight: 650;
  text-underline-offset: .2em;
}
.home-event-list { display: grid; gap: .55rem; margin: 0; padding: 0; list-style: none; }
.home-event, .home-update-empty {
  border: var(--community-edge);
  border-radius: var(--community-radius);
  background: var(--surface);
}
.home-event {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: .8rem;
  padding: .8rem 1rem;
  color: var(--ink);
  text-decoration: none;
}
.home-event:hover { background: var(--paper-muted); }
.home-event:hover strong { text-decoration: underline; text-underline-offset: .18em; }
.home-event :is(time, strong, span) { display: block; overflow-wrap: anywhere; }
.home-event :is(time, span), .home-story time { color: var(--text-secondary); font-size: .875rem; }
.home-event strong { line-height: 1.35; }
.home-event svg { width: 1.1rem; height: 1.1rem; flex: none; }
.home-event svg { color: var(--forest); }
.home-update-empty { padding: .8rem 1rem; margin: 0; color: var(--text-secondary); }
.home-story h3 { margin: 0; font-size: 1rem; line-height: 1.35; overflow-wrap: anywhere; }
.home-event:hover h3 { text-decoration: underline; text-underline-offset: .18em; }
.home-page { display: grid; gap: clamp(1.25rem, 3vw, 2rem); padding-block: 1.5rem; }
.app-shell .home-page > :is(.app-welcome, .home-updates, .directory, .social-section) { margin-block: 0; }
.app-shell .home-page > .directory { padding-block: 0; }
.paper-news-row:focus-visible, .home-event:focus-visible { outline-offset: -3px; }

.help-grid > .association-portrait { grid-column: 1 / -1; }
.association-contact { border-top: 1px solid var(--paper-rule); }
.association-contact > h3:first-child { border-top: 0; padding-top: 0; }
.association-contact .paper-directory { margin-block: .35rem; }
@media (min-width: 48rem) {
  .help-grid > .association-portrait { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .association-contact { border-top: 0; border-inline-start: 1px solid var(--paper-rule); }
}
@media (min-width: 48rem) {
  .home-updates { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.push-settings fieldset { display: grid; justify-items: start; border: 0; padding: 0; margin: .75rem 0; }
.push-settings label { display: flex; align-items: center; gap: .6rem; min-height: 44px; cursor: pointer; }
.push-settings input { width: 1.15rem; height: 1.15rem; accent-color: var(--forest); }
.push-settings label[for="push-language"] { min-height: auto; margin: .75rem 0 .35rem; font-weight: 600; }
.push-settings select { min-height: 44px; width: min(100%, 16rem); padding: .5rem .75rem; font: inherit; color: var(--ink); background: var(--surface); border: 1px solid #819885; border-radius: var(--control-radius); }
.push-settings .button { margin-top: .5rem; }
.push-settings [data-push-retry][hidden] { display: none; }
/* Compact tab labels retain full-size touch targets. */
.app-shell .app-dock a{font-size:.75rem}
.app-shell .app-dock a>span:last-child{white-space:nowrap}
.feed-heading{flex-wrap:wrap;align-items:center}
.paper-news-search{max-width:100%;min-width:0}
.paper-news-search input{min-width:0;width:100%}
.app-shell main,.home-updates>section{min-width:0}
@media(max-width:600px){.app-shell .app-dock a{font-size:.6875rem}.feed-heading .paper-news-search{width:100%}}
