/* 1.6.15 — Four portal destinations. Preserve form controls, submissions, validation and course details. */
@media screen {
body.tifam-one.tifam-one-unified.tifam-membership-destination :is(.tifam-unified-page-main,.tifam-one-page) {min-width:0;}
body.tifam-one.tifam-one-unified.tifam-membership-destination :is(.tifam-unified-page-main,.tifam-one-page):has(>.tifam-membership-hero,>.wp-block-post-content .tifam-membership-hero)>.wp-block-post-title {display:none!important;}
body.tifam-one.tifam-one-unified.tifam-membership-destination .tifam-membership-hero {display:grid!important;grid-template-columns:minmax(0,1fr) minmax(100px,26%);align-items:center;gap:clamp(16px,2.5vw,30px);box-sizing:border-box;width:100%!important;max-width:100%!important;padding:clamp(22px,3vw,40px)!important;margin:0 0 16px!important;border:1px solid var(--one-gold,#c9a968);border-radius:12px;background:var(--tifam-unified-hero,linear-gradient(120deg,#18212d,#381954))!important;color:#fff;overflow:hidden;}
body.tifam-one.tifam-one-unified.tifam-membership-destination .tifam-membership-hero__copy {min-width:0;}
body.tifam-one.tifam-one-unified.tifam-membership-destination .tifam-membership-hero__kicker {color:var(--tifam-dark-text-gold,#f4d995)!important;text-transform:uppercase;font-weight:750;letter-spacing:.12em;font-size:.72rem;line-height:1.5;margin:0 0 10px!important;}
body.tifam-one.tifam-one-unified.tifam-membership-destination .tifam-membership-hero h1 {font-family:var(--one-heading-font,Georgia,serif);font-size:clamp(1.65rem,3vw,2.85rem)!important;line-height:1.12!important;color:#fff!important;margin:0 0 10px!important;max-width:100%!important;word-break:normal!important;overflow-wrap:normal!important;hyphens:none!important;text-wrap:balance;}
body.tifam-one.tifam-one-unified.tifam-membership-destination .tifam-membership-hero__subtitle {color:#f7f2e5!important;font-size:clamp(.9rem,1.5vw,1.05rem);line-height:1.55;margin:0!important;}
body.tifam-one.tifam-one-unified.tifam-membership-destination .tifam-membership-hero__logo {display:block;max-width:210px!important;width:100%;height:auto;object-fit:contain;margin:auto;}
body.tifam-one.tifam-one-unified.tifam-membership-destination .tifam-membership-back {margin:0 0 22px!important;font-size:.9rem;font-weight:650;}
body.tifam-one.tifam-one-unified.tifam-membership-destination .tifam-membership-back a {color:var(--one-accent,#0e604c)!important;text-decoration:none;}
/* Original login heading is redundant; its explanatory text remains. */
body.tifam-one.tifam-one-unified.tifam-membership-destination:has(.tifam-membership-hero) .tifam-login-intro>h1 {display:none!important;}
/* Outer plugin wrappers: same paper surface and full available reading width. */
body.tifam-one.tifam-one-unified.tifam-membership-destination :is(.tifam-login-page,.tifam-membership-wrap,.tifam-club-wrap,.tifam-learning-centre) {width:100%!important;max-width:100%!important;min-width:0!important;box-sizing:border-box!important;margin:0 auto 22px!important;padding:0!important;background:transparent!important;box-shadow:none!important;color:var(--one-ink,#17212b);font-family:var(--one-body-font,system-ui,sans-serif);container:membership-service / inline-size;}
body.tifam-one.tifam-one-unified.tifam-membership-destination :is(.tifam-membership-panel,.tifam-club-card,.tifam-learning-vision,.tifam-learning-card,.tifam-publication-group,.tifam-publication-empty,.tifam-role-fieldset,.tifam-consent-box,.tifam-declaration) {box-sizing:border-box!important;background:var(--one-paper,#f8f6ef)!important;color:var(--one-ink,#17212b);border:1px solid var(--one-line,#d5dde2)!important;border-radius:12px!important;box-shadow:none!important;min-width:0!important;max-width:100%!important;}
body.tifam-one.tifam-one-unified.tifam-membership-destination :is(.tifam-membership-panel,.tifam-club-card,.tifam-learning-vision) {padding:clamp(18px,3cqi,32px)!important;margin:0 0 22px!important;width:100%!important;}
body.tifam-one.tifam-one-unified.tifam-membership-destination .tifam-login-page .tifam-dedicated-login-panel {max-width:600px!important;margin:0 auto 24px!important;}
body.tifam-one.tifam-one-unified.tifam-membership-destination .tifam-login-intro {max-width:600px!important;margin:0 auto 18px!important;padding:0!important;background:transparent!important;}
body.tifam-one.tifam-one-unified.tifam-membership-destination :is(.tifam-login-intro,.tifam-membership-intro,.tifam-club-intro) p {margin:0 0 12px;line-height:1.6;}
body.tifam-one.tifam-one-unified.tifam-membership-destination :is(.tifam-membership-panel,.tifam-club-card,.tifam-learning-centre) :is(h2,h3,h4) {font-family:var(--one-heading-font,Georgia,serif);color:var(--tifam-unified-title,#381954)!important;line-height:1.23!important;word-break:normal;overflow-wrap:normal;hyphens:none;}
body.tifam-one.tifam-one-unified.tifam-membership-destination :is(.tifam-membership-panel,.tifam-club-card)>h2 {font-size:clamp(1.4rem,3cqi,2rem)!important;margin:0 0 16px!important;}
/* The club guidance has legacy orange/green headings. Preserve content and use the editorial palette. */
body.tifam-one.tifam-one-unified.tifam-membership-destination .wp-block-post-content :is(h1,h2,h3).wp-block-heading {color:var(--tifam-unified-title,#381954)!important;font-family:var(--one-heading-font,Georgia,serif);line-height:1.25!important;word-break:normal!important;overflow-wrap:normal!important;hyphens:none!important;}
body.tifam-one.tifam-one-unified.tifam-membership-destination .wp-block-post-content h1.wp-block-heading {font-size:clamp(1.5rem,2.5vw,2.1rem)!important;}
/* Forms — field names, inputs and validation are unmodified. Only text-like controls receive full-width styling. */
body.tifam-one.tifam-one-unified.tifam-membership-destination :is(.tifam-membership-panel,.tifam-club-card) .tifam-grid {display:grid!important;grid-template-columns:minmax(0,1fr)!important;gap:18px!important;align-items:start!important;}
@container membership-service (min-width:600px){body.tifam-one.tifam-one-unified.tifam-membership-destination :is(.tifam-membership-panel,.tifam-club-card) .tifam-grid {grid-template-columns:repeat(2,minmax(0,1fr))!important;}}
body.tifam-one.tifam-one-unified.tifam-membership-destination :is(.tifam-field-wide,.tifam-field-full) {grid-column:1/-1!important;}
body.tifam-one.tifam-one-unified.tifam-membership-destination .tifam-field {min-width:0!important;max-width:100%!important;}
body.tifam-one.tifam-one-unified.tifam-membership-destination .tifam-field>label {color:var(--one-ink,#17212b)!important;font-weight:650;line-height:1.45;}
body.tifam-one.tifam-one-unified.tifam-membership-destination .tifam-field :is(input:not([type=checkbox]):not([type=radio]):not([type=hidden]):not([type=submit]):not([type=button]),select,textarea) {box-sizing:border-box!important;width:100%!important;max-width:100%!important;min-width:0!important;min-height:44px;padding:10px 12px;border:1px solid #a8b5b7;border-radius:8px;background:var(--one-paper,#f8f6ef)!important;color:var(--one-ink,#17212b)!important;font:inherit;}
body.tifam-one.tifam-one-unified.tifam-membership-destination .tifam-field textarea {min-height:100px;resize:vertical;}
body.tifam-one.tifam-one-unified.tifam-membership-destination .tifam-field input[type=file] {padding:8px!important;overflow:hidden;}
body.tifam-one.tifam-one-unified.tifam-membership-destination .tifam-field small {display:block;line-height:1.5;overflow-wrap:anywhere;}
body.tifam-one.tifam-one-unified.tifam-membership-destination :is(.tifam-role-fieldset,.tifam-consent-box,.tifam-declaration) {padding:16px!important;margin-block:12px;}
body.tifam-one.tifam-one-unified.tifam-membership-destination :is(.tifam-role-choice,.tifam-remember-choice,.tifam-confirm-grid label,.tifam-consent-box label) {background:transparent!important;min-width:0;overflow-wrap:break-word;}
body.tifam-one.tifam-one-unified.tifam-membership-destination :is(.tifam-role-fieldset,.tifam-consent-box,.tifam-declaration,.tifam-login-page,.tifam-club-card,.tifam-membership-panel) input:is([type=checkbox],[type=radio]) {accent-color:var(--one-accent,#0e604c);flex:0 0 auto;}
body.tifam-one.tifam-one-unified.tifam-membership-destination :is(.tifam-actions button,.tifam-actions input[type=submit],.tifam-learning-action) {display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;min-height:44px;max-width:100%;padding:11px 18px!important;background:var(--one-accent,#0e604c)!important;color:var(--tifam-dark-text-gold,#f4d995)!important;border:1px solid var(--one-accent,#0e604c)!important;border-radius:8px!important;text-decoration:none!important;white-space:normal!important;text-align:center;font-weight:750;line-height:1.35;}
body.tifam-one.tifam-one-unified.tifam-membership-destination .tifam-login-page .tifam-actions button {width:100%;}
/* AERC: consistent publication and course cards, no forced aspect ratio for expandable content. */
body.tifam-one.tifam-one-unified.tifam-membership-destination .tifam-learning-section {background:transparent!important;border:0!important;box-shadow:none!important;padding:0!important;margin:0 0 28px!important;}
body.tifam-one.tifam-one-unified.tifam-membership-destination :is(.tifam-learning-section-head,.tifam-publication-group-head) {background:var(--tifam-unified-hero,linear-gradient(120deg,#18212d,#381954))!important;border-radius:9px!important;padding:14px 18px!important;margin:0 0 14px!important;}
body.tifam-one.tifam-one-unified.tifam-membership-destination :is(.tifam-learning-section-head,.tifam-publication-group-head) :is(h2,h3,h4,p,span) {color:var(--tifam-dark-text-gold,#f4d995)!important;margin:0!important;}
body.tifam-one.tifam-one-unified.tifam-membership-destination :is(.tifam-learning-grid,.tifam-publication-groups,.tifam-publication-items) {display:grid!important;grid-template-columns:minmax(0,1fr)!important;gap:14px!important;align-items:stretch!important;min-width:0!important;}
@container membership-service (min-width:500px){body.tifam-one.tifam-one-unified.tifam-membership-destination :is(.tifam-learning-grid,.tifam-publication-groups,.tifam-publication-items) {grid-template-columns:repeat(2,minmax(0,1fr))!important;}}
body.tifam-one.tifam-one-unified.tifam-membership-destination .tifam-learning-card {display:flex!important;flex-direction:column!important;justify-content:flex-start!important;align-items:stretch!important;height:auto!important;min-height:0!important;max-height:none!important;padding:18px!important;gap:12px!important;overflow:visible!important;}
body.tifam-one.tifam-one-unified.tifam-membership-destination .tifam-learning-card h3 {margin:0!important;font-size:clamp(1.05rem,2.4cqi,1.35rem)!important;}
body.tifam-one.tifam-one-unified.tifam-membership-destination .tifam-learning-card .tifam-learning-meta:empty {display:none;}
body.tifam-one.tifam-one-unified.tifam-membership-destination .tifam-learning-card .tifam-learning-action {margin-top:auto;}
body.tifam-one.tifam-one-unified.tifam-membership-destination .tifam-learning-card details {background:transparent!important;border:1px solid var(--one-line,#d5dde2);border-radius:7px;padding:10px;}
body.tifam-one.tifam-one-unified.tifam-membership-destination .tifam-learning-card summary {cursor:pointer;color:var(--one-accent,#0e604c);font-weight:650;}
body.tifam-one.tifam-one-unified.tifam-membership-destination .tifam-learning-card img {display:block;width:auto;max-width:100%!important;height:auto!important;border-radius:6px;}
body.tifam-one.tifam-one-unified.tifam-membership-destination .tifam-publication-group {padding:14px!important;}
body.tifam-one.tifam-one-unified.tifam-membership-destination .tifam-publication-group .tifam-publication-items {grid-template-columns:minmax(0,1fr)!important;}
@media(max-width:600px){body.tifam-one.tifam-one-unified.tifam-membership-destination .tifam-membership-hero {grid-template-columns:1fr;gap:14px;padding:22px!important;}body.tifam-one.tifam-one-unified.tifam-membership-destination .tifam-membership-hero__logo {max-width:155px!important;justify-self:start;margin:0;}body.tifam-one.tifam-one-unified.tifam-membership-destination .tifam-membership-hero h1{font-size:clamp(1.45rem,6.6vw,2rem)!important;}}
/* Narrow desktop content caused by a wide sidebar: keep the logo below the copy. */
body.tifam-one.tifam-one-unified.tifam-membership-destination .tifam-membership-hero {grid-template-columns:minmax(0,1fr);}
@media(min-width:601px){body.tifam-one.tifam-one-unified.tifam-membership-destination .tifam-membership-hero {grid-template-columns:minmax(0,1fr) minmax(90px,25%);}}
}
@media print {body.tifam-membership-destination .tifam-membership-hero {background:none!important;color:#000!important;}body.tifam-membership-destination .tifam-membership-back {display:none!important;}}
@media screen {
body.tifam-one.tifam-one-unified.tifam-membership-destination .tifam-unified-page-main {container:membership-main / inline-size;}
@container membership-main (max-width:530px){
 body.tifam-one.tifam-one-unified.tifam-membership-destination .tifam-membership-hero {grid-template-columns:minmax(0,1fr)!important;padding:22px!important;}
 body.tifam-one.tifam-one-unified.tifam-membership-destination .tifam-membership-hero h1 {font-size:clamp(1.45rem,6.3cqi,2rem)!important;}
 body.tifam-one.tifam-one-unified.tifam-membership-destination .tifam-membership-hero__logo {max-width:155px!important;margin:0;justify-self:start;}
}
body.tifam-one.tifam-one-unified.tifam-membership-destination .tifam-confirm-grid {min-width:0;max-width:100%;}
@container membership-service (max-width:599px){body.tifam-one.tifam-one-unified.tifam-membership-destination .tifam-confirm-grid {grid-template-columns:minmax(0,1fr)!important;}}
}
