/* American Freemasons Features v1.0.0 */
.aff-section{padding:0 0 8px}
.aff-section .aff-row{padding:12px 0}
.aff-module{font-family:'Lato',system-ui,sans-serif;color:#333;margin:28px 0}
.aff-module h2{font-family:'Playfair Display',Georgia,serif;font-size:15px;font-weight:700;letter-spacing:.14em;text-transform:uppercase;color:#1E3A5F;margin:0 0 14px;padding:0;line-height:1.4}
.aff-module p{font-size:16px;line-height:1.7;margin:0 0 12px;padding:0}
.aff-module a{color:#8B1E2F;text-decoration:underline;text-underline-offset:3px}
.aff-lead{max-width:72ch}
.aff-gl-cards{display:flex;flex-wrap:wrap;gap:18px;margin:16px 0}
.aff-gl{flex:1 1 280px;position:relative;background:#1E3A5F;color:#fff;padding:24px 22px 20px}
.aff-gl.aff-pha{background:#16304F}
.aff-gl:before{content:"";position:absolute;top:0;left:0;right:0;height:4px;background:#B8860B}
.aff-gl .aff-kicker{font-size:11px;letter-spacing:.18em;text-transform:uppercase;color:#D9B45B;margin:0 0 12px;font-weight:700;line-height:1.5}
.aff-gl dl{display:grid;grid-template-columns:minmax(110px,38%) 1fr;gap:8px 14px;margin:0 0 14px}
.aff-gl dt{font-size:12px;letter-spacing:.06em;text-transform:uppercase;color:#9FB4CC;margin:0}
.aff-gl .aff-unverified{font-size:15px;line-height:1.6;color:#D3DEEA;margin:0 0 14px}
.aff-gl dd{margin:0;font-size:15px;font-weight:700;color:#fff}
.aff-module .aff-gl a{color:#D9B45B}
.aff-module .aff-gl a.aff-go{display:inline-block;font-size:14px;text-decoration:none;border-bottom:1px solid rgba(217,180,91,.45);padding-bottom:2px}
.aff-module .aff-gl a.aff-go:hover{color:#fff;border-bottom-color:#fff}
.aff-module .aff-gl .aff-checked{color:#9FB4CC}
.aff-module .aff-checked{font-size:12.5px;line-height:1.5;color:#5A5A5A;margin:12px 0 0}
.aff-module .aff-note{font-size:15px}
.aff-module ol.aff-checks{list-style:none!important;margin:0 0 14px!important;padding:0!important;counter-reset:c;background:#F7F7F5;border-top:3px solid #B8860B;padding:18px 22px!important}
.aff-module ol.aff-checks li{list-style:none!important;counter-increment:c;position:relative;padding:6px 0 6px 40px;font-size:16px;line-height:1.55}
.aff-module ol.aff-checks li:before{content:counter(c);position:absolute;left:0;top:6px;width:26px;height:26px;border:2px solid #B8860B;border-radius:50%;text-align:center;font:700 12px/22px 'Lato',sans-serif;color:#1E3A5F}
.aff-module .aff-links{display:flex;flex-wrap:wrap;gap:6px 22px}
.aff-module .aff-links a{display:inline-flex;align-items:center;min-height:40px;font-weight:700;font-size:15px}
.aff-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin:4px 0 8px}
.aff-grid-2{grid-template-columns:repeat(2,minmax(0,1fr))}
.aff-card{background:#fff;border:1px solid #E3E7EA;border-top:3px solid #B8860B;border-radius:8px;padding:16px 18px;font-family:'Lato',system-ui,sans-serif}
.aff-card h3{font-family:'Playfair Display',Georgia,serif;font-size:19px;line-height:1.25;color:#1E3A5F;margin:4px 0 6px;padding:0}
.aff-card .aff-kind{font-size:10.5px;font-weight:700;letter-spacing:.12em;text-transform:uppercase;color:#8C6509;margin:0}
.aff-card .aff-meta{font-size:13.5px;color:#5A5A5A;margin:0 0 8px}
.aff-card p{font-size:15px;line-height:1.6;margin:0 0 8px;padding:0}
.aff-card .aff-open{font-size:11px;font-weight:700;color:#1f5a40;background:#E3F1EA;padding:2px 8px;border-radius:999px}
.aff-card .aff-links{display:flex;flex-wrap:wrap;gap:4px 18px;margin:6px 0 0}
.aff-card .aff-links a{font-size:13.5px;font-weight:700;color:#8B1E2F;text-decoration:none;min-height:36px;display:inline-flex;align-items:center}
.aff-card .aff-checked{font-size:12px;color:#5A5A5A;margin:4px 0 0}
.aff-records{display:flex;flex-wrap:wrap;gap:12px 24px;align-items:center;justify-content:space-between;background:#F7F7F5;border-left:4px solid #8B1E2F;padding:18px 22px}
.aff-records p{margin:0 0 4px}
.aff-module a.aff-btn{display:inline-flex;align-items:center;min-height:44px;padding:10px 18px;background:#1E3A5F;color:#fff;border-radius:3px;font-weight:700;font-size:14px;text-decoration:none}
.aff-module a.aff-btn:hover{background:#16304F}
.aff-browse{font-family:'Lato',system-ui,sans-serif}
.aff-filter{display:flex;flex-wrap:wrap;gap:8px 10px;align-items:center;margin:8px 0 12px}
.aff-filter label{font-weight:700;color:#1E3A5F;font-size:14px}
.aff-filter select{min-height:44px;font-size:16px;padding:8px 10px;border:1px solid #8793A0;border-radius:4px;background:#fff;color:#1A2744;min-width:220px}
.aff-filter button{min-height:44px;padding:8px 18px;background:#1E3A5F;color:#fff;border:0;border-radius:4px;font-weight:700;cursor:pointer}
.aff-chips{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 18px}
.aff-chips a{display:inline-flex;align-items:center;min-height:40px;padding:6px 14px;border:1px solid #C9CED2;border-radius:999px;font-size:13px;font-weight:700;color:#1E3A5F;text-decoration:none;background:#fff}
.aff-chips a[aria-current]{background:#1E3A5F;color:#fff;border-color:#1E3A5F}
.aff-empty{background:#F7F7F5;padding:18px;border-radius:6px;color:#5A5A5A}
.aff-inline{margin-top:24px}
.aff-module :is(a,button,select):focus-visible,.aff-browse :is(a,button,select):focus-visible{outline:3px solid #8B1E2F;outline-offset:2px}
@media(max-width:900px){.aff-grid{grid-template-columns:1fr 1fr}}
@media(max-width:640px){.aff-grid,.aff-grid-2{grid-template-columns:1fr}.aff-gl dl{grid-template-columns:1fr;gap:2px 0}.aff-gl dd{margin:0 0 8px}}
/* Listing profiles (profile.php): full width, theme post chrome hidden, lodge profile styles do the rest */
body.aff-profile-page #main-content>.container{width:90%;max-width:1180px;padding-top:24px;padding-bottom:56px}
body.aff-profile-page #main-content>.container:before,body.aff-profile-page #sidebar,body.aff-profile-page .et_post_meta_wrapper,body.aff-profile-page .entry-title,body.aff-profile-page .post-meta,body.aff-profile-page #comment-wrap{display:none}
body.aff-profile-page #main-content #left-area{width:100%;float:none;padding-right:0}
body.aff-profile-page article.et_pb_post{margin-bottom:0}
.aff-profile .aff-related .aff-grid{margin-top:12px}
.aff-card h3 a{color:inherit;text-decoration:none;border-bottom:1px solid transparent}
.aff-card h3 a:hover,.aff-card h3 a:focus-visible{border-bottom-color:currentColor}
.aff-count{font-family:'Lato',system-ui,sans-serif;font-size:14px;color:#46535d;margin:6px 0 14px}

/* 1.2.0: profile fixes and additions */
body.aff-profile-page #main-content .container{padding-top:20px!important}
body.aff-profile-page .entry-content{padding-top:0!important}
.aff-profile .aff-answer{font-family:'Lato',system-ui,sans-serif;font-size:15px;font-weight:700;color:#1f3a4d;margin:6px 0 0}
.aff-profile .aff-significance{border-left:4px solid #b08d3c}
.aff-profile .aff-note{font-size:14px;color:#46535d;margin:10px 0 0}
.aff-profile #aff-save-slot:empty{display:none}
.aff-profile #aff-save-slot .af-reader-control{display:block!important;margin:0}
.aff-group{font-size:22px;margin:28px 0 12px;padding-bottom:6px;border-bottom:1px solid #d9d2c3}
.aff-filter input[type=search]{min-width:200px;padding:8px 10px;border:1px solid #b9b3a6;border-radius:4px;font-size:15px}
.aff-map{margin:6px 0 20px;border:1px solid #d9d2c3;border-radius:6px;background:#fffdf8}
.aff-map>summary{cursor:pointer;padding:12px 16px;font-family:'Lato',system-ui,sans-serif;font-weight:700;color:#1f3a4d}
.aff-map-canvas{height:420px;border-top:1px solid #d9d2c3}
.aff-map-note{font-size:13px;color:#46535d;margin:8px 16px 12px}
.aff-pin span{display:block;width:22px;height:22px;border-radius:50% 50% 50% 0;background:#1f3a4d;border:2px solid #fff;transform:rotate(-45deg);box-shadow:0 1px 3px rgba(0,0,0,.4)}
@media (max-width:640px){.aff-map-canvas{height:320px}.aff-filter input[type=search]{min-width:0;width:100%}}

/* Lodge profile: real historic-site photography with accessible source credit. */
.aff-related .aff-photo-card{display:flex;flex-direction:column;min-width:0;padding:0;overflow:hidden;border-top:0;box-shadow:0 2px 10px rgba(22,39,56,.07)}
.aff-related .aff-card-figure{margin:0;min-width:0;background:#f2f0ea}
.aff-related .aff-card-image{display:block;aspect-ratio:16/10;overflow:hidden;background:#ebe7de}
.aff-related .aff-card-photo{display:block;width:100%;height:100%;aspect-ratio:16/10;object-fit:cover;object-position:center}
.aff-related .aff-card-image:focus-visible{outline:3px solid #8B1E2F;outline-offset:-3px}
.aff-related .aff-card-body{padding:16px 18px 18px;flex:1}
.aff-related .aff-card-credit{padding:2px 12px 8px;background:#f2f0ea;color:#44545f;font-size:12px;line-height:1.4}
.aff-related .aff-card-credit summary{display:list-item;cursor:pointer;padding:2px 0;font:600 12px/1.4 'Lato',system-ui,sans-serif}
.aff-related .aff-card-credit details[open]{padding-bottom:5px}
.aff-related .aff-card-credit span{display:block;margin:3px 0}
.aff-related .aff-card-credit a{color:#25475c;text-decoration:underline;text-underline-offset:2px}
.aff-related .aff-card h3 a{color:#1E3A5F}
