.tmfcm{--mp-navy:#102d4c;--mp-gold:#e9ba57;--mp-edge:#9fbad2;color:var(--mp-navy);background:#e7f0f9;border:1px solid var(--mp-edge);margin:20px 0;font:16px/1.55 Arial,sans-serif}
.tmfcm *{box-sizing:border-box}
.tmfcm [hidden]{display:none!important}
.tmfcm .mp-header{padding:20px;background:var(--mp-navy);color:#fff8e5;border-top:4px solid var(--mp-gold)}
.entry-content .tmfcm .mp-header :is(h2,p,span){color:#fff8e5!important}
.tmfcm .mp-header span{font:12px/1.5 ui-monospace,monospace;letter-spacing:1px}
.entry-content .tmfcm .mp-header h2{font-size:28px!important;margin:8px 0!important}
.tmfcm .mp-nav,.tmfcm .mp-actions,.tmfcm .mp-pagination,.tmfcm .mp-heading-row{display:flex;align-items:center;flex-wrap:wrap;gap:10px}
.tmfcm .mp-nav{padding:16px 20px;border-bottom:1px solid var(--mp-edge)}
.tmfcm .mp-content{padding:20px}
.entry-content .tmfcm .mp-button,.tmfcm .mp-button{display:inline-grid;justify-items:center;align-content:center;gap:5px;min-height:44px;padding:8px 12px;border:2px solid #6a8095;border-bottom-color:#435567;border-radius:4px;background:linear-gradient(#263b50,#111e2c);color:#fff0c4!important;box-shadow:inset 0 0 0 2px #0c1620,inset 0 4px #ffffff13,0 2px #0c1620;font:700 12px/1.4 ui-monospace,monospace!important;letter-spacing:.03em;text-decoration:none!important;text-align:center;cursor:pointer}
.tmfcm .mp-button::before{content:"";width:26px;height:3px;background:#ffc866;box-shadow:0 0 5px #ffc86670}
.tmfcm .mp-button:hover{background:#30485f}
.tmfcm .mp-button:focus-visible{outline:3px solid #d59c2d;outline-offset:3px}
.tmfcm .mp-nav a[aria-current]{outline:2px solid #d59c2d;outline-offset:2px}
.tmfcm .mp-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
.tmfcm label{display:grid;gap:6px;font-weight:700;min-width:0}
.tmfcm :is(input,textarea,select){width:100%;min-width:0;max-width:100%;padding:10px;border:1px solid #91b0cd;background:#fff;color:#102d4c;font:16px/1.4 Arial,sans-serif}
.tmfcm input[type=checkbox]{width:auto}
.tmfcm .mp-wide{grid-column:1/-1}
.tmfcm .mp-actions{margin-top:14px}
.tmfcm .mp-form{margin:16px 0}
.tmfcm .mp-heading-row .mp-form{margin:0 0 0 auto}
.tmfcm .mp-filters{display:flex;align-items:end;gap:12px;flex-wrap:wrap;margin:0 0 22px}
.tmfcm .mp-filters label{flex:1;min-width:150px}
.tmfcm .mp-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}
.tmfcm .mp-card{display:flex;flex-direction:column;background:#17334f;border-top:3px solid var(--mp-gold);border-radius:4px;overflow:hidden;box-shadow:0 2px 5px #102d4c40;color:#f7f4e6;min-width:0}
.tmfcm .mp-card-photo{display:flex;align-items:center;justify-content:center;aspect-ratio:4/3;background:#dae7f2;color:#102d4c!important;text-align:center;border-bottom:1px solid var(--mp-gold)}
.tmfcm .mp-card-photo img{width:100%!important;height:100%!important;object-fit:contain;margin:0!important}
.tmfcm .mp-card-copy{padding:12px;display:flex;flex-direction:column;flex:1;overflow-wrap:anywhere}
.entry-content .tmfcm .mp-card-copy :is(h3,p,strong,span,summary){color:#fff5da!important}
.entry-content .tmfcm .mp-card h3{font-size:19px!important;margin:5px 0!important;line-height:1.3!important}
.entry-content .tmfcm .mp-card p{font-size:14px!important;margin:6px 0!important}
.entry-content .tmfcm .mp-card .mp-price{font-size:19px!important;color:#ffdc8b!important}
.tmfcm .mp-kind{font:700 12px/1.5 ui-monospace,monospace;text-transform:uppercase;color:#96660b}
.tmfcm .mp-card .mp-kind{color:#ffdc8b!important}
.tmfcm .mp-small{font-size:12px}
.tmfcm .mp-card .mp-actions{gap:8px}
.tmfcm .mp-card .mp-button{font-size:10px!important;padding:6px 8px}
.tmfcm .mp-share{margin-top:14px}
.tmfcm summary{cursor:pointer;text-decoration:underline}
.tmfcm .mp-share-actions{display:flex;flex-wrap:wrap;gap:8px;padding:10px 0}
.tmfcm .mp-share-url{font-size:12px}
.tmfcm .mp-share-status{font-size:13px}
.tmfcm .mp-description{white-space:normal;overflow-wrap:anywhere}
.tmfcm .mp-gallery{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.tmfcm .mp-gallery a:first-child{grid-column:1/-1}
.tmfcm .mp-gallery img{display:block;width:100%;height:auto;max-height:560px;object-fit:contain;background:#dce8f2}
.tmfcm .mp-edit-photos{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-top:16px}
.tmfcm .mp-edit-photos img{width:100%;height:120px;object-fit:contain}
.tmfcm .mp-edit-photos span{display:flex;gap:8px;align-items:center}
.tmfcm .mp-notice{padding:14px 20px;border-left:4px solid var(--mp-gold);background:#dce8f2;overflow-wrap:anywhere}
.tmfcm .mp-footer{padding:14px 20px;border-top:1px solid var(--mp-edge);font-size:13px}
.tmfcm .mp-help,.tmfcm .mp-review{padding:16px 0;border-top:1px solid var(--mp-edge);margin-top:24px}
.tmfcm .mp-pagination{margin-top:20px}
@media(max-width:1100px){.tmfcm .mp-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:800px){.tmfcm .mp-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:520px){.tmfcm .mp-grid,.tmfcm .mp-fields{grid-template-columns:1fr}.tmfcm .mp-gallery{grid-template-columns:repeat(2,minmax(0,1fr))}.tmfcm .mp-content,.tmfcm .mp-header,.tmfcm .mp-nav{padding:14px}.tmfcm .mp-edit-photos{grid-template-columns:repeat(2,minmax(0,1fr))}}

/* Override legacy content link rules for cockpit buttons in every state. */
.entry-content section.tmfcm :is(a,button).mp-button,
.entry-content section.tmfcm :is(a,button).mp-button:visited{
 color:#fff0c4!important;
 background:linear-gradient(180deg,#263b50,#111e2c)!important;
 font:700 12px/1.4 ui-monospace,monospace!important;
 text-decoration:none!important;
 text-transform:uppercase;
 letter-spacing:.04em!important;
 border:2px solid #6a8095;
 border-bottom-color:#435567;
 border-radius:4px;
}
.entry-content section.tmfcm :is(a,button).mp-button:hover,
.entry-content section.tmfcm :is(a,button).mp-button:focus-visible{
 color:#fff8e7!important;
 background:#30485f!important;
}
.entry-content section.tmfcm .mp-nav .mp-button{
 min-height:52px;
 padding:8px 16px;
}
.entry-content section.tmfcm .mp-header>span{
 color:#ffdc8b!important;
 font:700 12px/1.5 ui-monospace,monospace!important;
 letter-spacing:1.5px!important;
}
.entry-content section.tmfcm .mp-header>p{
 color:#f1f6fb!important;
 margin:8px 0 0!important;
 font:400 16px/1.5 Arial,sans-serif!important;
}
.entry-content section.tmfcm .mp-card .mp-button{
 font-size:11px!important;
 letter-spacing:0!important;
}

.tmfcm .mp-entry-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;margin:20px 0}
.tmfcm .mp-entry-card{display:flex;flex-direction:column;padding:20px;border:1px solid #9fbad2;border-top:3px solid #e9ba57;border-radius:4px;background:#f3f7fb}
.entry-content section.tmfcm .mp-entry-card h4{margin:0 0 10px!important;font-size:20px!important;line-height:1.3!important}
.tmfcm .mp-verify-prompt{padding:20px;border-left:4px solid #d6a442;background:#f2f7fc}
.tmfcm .mp-steps{display:flex;flex-wrap:wrap;gap:12px 30px;margin:16px 0;padding-left:24px}
.entry-content section.tmfcm .mp-instructions h4{font-size:20px!important;margin:24px 0 10px!important;line-height:1.4!important}
.entry-content section.tmfcm .mp-instructions :is(p,li){line-height:1.7!important}
@media(max-width:600px){.tmfcm .mp-entry-options{grid-template-columns:1fr}.tmfcm .mp-entry-card,.tmfcm .mp-verify-prompt{padding:16px}}
/* Prominent terms notice, with contrast protected from legacy page styles. */
.tmfcm .mp-content .mp-disclaimer-notice{background:#f9e3ad!important;color:#102d4c!important;border:1px solid #d4a548;border-left:4px solid #d4a548;border-radius:4px;padding:18px 22px;margin:0 0 24px}
.tmfcm .mp-content .mp-disclaimer-notice h3{font:700 21px/1.35 Arial,Helvetica,sans-serif!important;color:#102d4c!important;background:transparent!important;margin:0 0 8px!important;letter-spacing:normal!important;text-transform:none!important}
.tmfcm .mp-content .mp-disclaimer-notice p{background:transparent!important;color:#102d4c!important;margin:0 0 8px!important;line-height:1.6!important}
.tmfcm .mp-content .mp-disclaimer-notice a{color:#102d4c!important;font-weight:700!important;text-decoration:underline!important;background:transparent!important}
.tmfcm .mp-content .mp-disclaimer-acceptance{margin:22px 0 18px;padding-top:16px;border-top:1px solid #a9bfd3}
.tmfcm .mp-content .mp-disclaimer-acceptance label{display:flex!important;align-items:flex-start;gap:12px;line-height:1.6!important;font-weight:700}
.tmfcm .mp-content .mp-disclaimer-acceptance input[type=checkbox]{width:20px!important;height:20px!important;min-width:20px;margin:3px 0 0!important;padding:0;accent-color:#12395e;flex:0 0 20px}
.tmfcm .mp-content .mp-disclaimer-acceptance p{margin:8px 0 0!important;font-size:14px!important}
.tmfcm .mp-content .mp-disclaimer-full p{line-height:1.75!important;margin-bottom:18px!important}
@media(max-width:540px){.tmfcm .mp-content .mp-disclaimer-notice{padding:15px}.tmfcm .mp-content .mp-disclaimer-acceptance label{gap:10px}}

.tmfcm .mp-disclaimer-full{scroll-margin-top:24px}.tmfcm .mp-disclaimer-full:focus-visible{outline:2px solid #b47a00;outline-offset:-3px}

.tmfcm :is(#tmfcm-content,#tmfcm-results){scroll-margin-top:24px;min-width:0}.tmfcm :is(#tmfcm-content,#tmfcm-results):focus-visible{outline:2px solid #b47a00;outline-offset:-3px}

/* Keep advertiser actions aligned when descriptions wrap. */
.tmfcm .mp-entry-card > .mp-button{margin-top:auto;align-self:flex-start}

/* Frame marketplace photographs in the TMFC aviation accent. */
.tmfcm .mp-card-photo img,.tmfcm .mp-gallery img,.tmfcm .mp-edit-photos img{box-sizing:border-box;border:2px solid var(--mp-gold)}

/* Marketplace-inspired compact advert with TMFC flight-deck styling. */
.tmfcm .mp-detail{margin-top:12px;border:1px solid var(--mp-edge);border-top:3px solid var(--mp-gold);background:#f6f9fc;border-radius:5px;overflow:hidden}
.tmfcm .mp-ad-layout{display:grid;grid-template-columns:minmax(0,1.9fr) minmax(260px,1fr);gap:18px;padding:16px;align-items:start}
.tmfcm .mp-ad-photos,.tmfcm .mp-ad-info{min-width:0}
.tmfcm .mp-ad-photos .mp-gallery{grid-template-columns:repeat(5,minmax(0,1fr));gap:6px}
.tmfcm .mp-ad-photos .mp-gallery a{display:block;min-width:0}
.tmfcm .mp-ad-photos .mp-gallery img{height:58px;object-fit:contain;margin:0!important;border-radius:3px;background:#dce8f2}
.tmfcm .mp-ad-photos .mp-gallery a:first-child img{height:370px;background:#dce8f2}
.tmfcm .mp-photo-hint{font-size:12px!important;line-height:1.4!important;margin:6px 0 0!important;color:#405d77}
.tmfcm .mp-photo-placeholder{padding:60px 16px;border:2px solid var(--mp-gold);text-align:center;background:#dce8f2;border-radius:3px}
.tmfcm .mp-ad-heading{display:block;padding:14px 16px;margin:0 0 14px;background:var(--mp-navy);border-left:3px solid var(--mp-gold);border-radius:3px}
.entry-content .tmfcm .mp-ad-heading h2{color:#fff5da!important;font-size:23px!important;line-height:1.25!important;margin:4px 0 8px!important;overflow-wrap:anywhere}
.tmfcm .mp-ad-heading .mp-kind{color:#ffdc8b!important;font-size:11px}
.tmfcm .mp-ad-price{display:flex;flex-wrap:wrap;gap:8px 14px;align-items:center;min-width:0}
.entry-content .tmfcm .mp-ad-heading .mp-price{color:#ffdc8b!important;font-size:23px!important;line-height:1.3!important;font-weight:700;margin:0!important}
.tmfcm .mp-ad-status{display:inline-block;padding:3px 7px;border:1px solid var(--mp-gold);border-radius:3px;color:#fff5da!important;font-size:11px;line-height:1.4}
.entry-content .tmfcm .mp-ad-info h3{font-size:16px!important;color:var(--mp-navy)!important;margin:0 0 8px!important;padding-bottom:5px;border-bottom:1px solid #cbdbea}
.tmfcm .mp-ad-facts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px 14px;margin:0 0 14px}
.tmfcm .mp-ad-facts > div{min-width:0;padding:0 0 7px;border-bottom:1px solid #d7e3ef}
.tmfcm .mp-ad-facts dt{font-size:11px;font-weight:700;color:#405d77}
.tmfcm .mp-ad-facts dd{font-size:14px;line-height:1.4;margin:2px 0 0;overflow-wrap:anywhere}
.tmfcm .mp-ad-info .mp-description{font-size:14px;line-height:1.5;margin-bottom:14px}
.entry-content .tmfcm .mp-ad-info .mp-description p{font-size:14px!important;line-height:1.5!important;margin:0 0 8px!important}
.tmfcm .mp-ad-info .mp-actions{margin-top:10px;gap:8px}
.tmfcm .mp-ad-info .mp-share{margin-top:10px;font-size:14px}
/* Smaller browsing cards, with full photos preserved rather than cropped. */
.tmfcm .mp-card-photo{aspect-ratio:auto;height:150px}
.tmfcm .mp-card-copy{padding:10px}
.entry-content .tmfcm .mp-card h3{font-size:17px!important}
.tmfcm .mp-card .mp-actions{margin-top:10px}
@media(max-width:760px){.tmfcm .mp-ad-layout{grid-template-columns:1fr;padding:12px;gap:14px}.tmfcm .mp-ad-photos .mp-gallery a:first-child img{height:240px}.tmfcm .mp-ad-heading{padding:12px 14px}.entry-content .tmfcm .mp-ad-heading h2{font-size:21px!important}}
@media(max-width:520px){.tmfcm .mp-card-photo{height:180px}.tmfcm .mp-ad-photos .mp-gallery a:first-child img{height:220px}.tmfcm .mp-ad-photos .mp-gallery img{height:48px}}

.tmfcm .mp-committee-email{margin:10px 0;font-size:13px;color:#fff5da}
.tmfcm .mp-committee-email input{font-size:13px;padding:8px}

/* Aviation-style sharing control and compact action panel. */
.tmfcm .mp-share-toggle{display:inline-grid!important;grid-template-columns:1fr auto;column-gap:10px;list-style:none;text-decoration:none!important;min-width:124px}
.tmfcm .mp-share-toggle::before{grid-column:1/-1}
.tmfcm .mp-share-toggle::marker{content:""}
.tmfcm .mp-share-toggle::-webkit-details-marker{display:none}
.tmfcm .mp-share-chevron{font-size:16px;line-height:1;color:#ffdc8b!important}
.tmfcm .mp-share[open] .mp-share-chevron{transform:rotate(180deg)}
.tmfcm .mp-share-actions{margin-top:10px;padding:12px;background:#dce8f2;border:1px solid var(--mp-edge);border-top:2px solid var(--mp-gold);border-radius:4px}
.tmfcm .mp-card .mp-share-actions{background:#10283e;border-color:#6a8095;border-top-color:var(--mp-gold)}
.tmfcm .mp-share-actions .mp-share-url{flex:1 0 100%;width:100%;min-width:0;background:#fff;color:#102d4c}
.tmfcm .mp-share-actions .mp-share-status{flex-basis:100%}
.tmfcm .mp-gallery a[data-mp-photo]{cursor:zoom-in}
/* Native modal stays above site navigation and preserves focus/scroll on close. */
dialog.tmfcm.mp-lightbox{position:fixed;inset:0;margin:auto!important;padding:12px;width:min(1120px,94vw);max-width:94vw;max-height:94vh;max-height:94dvh;border:2px solid #e9ba57;border-radius:6px;background:#0d1d2d;color:#fff5da;box-shadow:0 20px 80px #0008;overflow:auto}
dialog.mp-lightbox::backdrop{background:rgba(4,13,22,.88)}
.mp-lightbox .mp-lightbox-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:10px}
.mp-lightbox .mp-lightbox-count{font:700 13px/1.4 ui-monospace,monospace;color:#ffdc8b}
.mp-lightbox .mp-lightbox-stage{display:flex;align-items:center;justify-content:center;min-height:100px;background:#071321;border:1px solid #405a72;border-radius:3px}
.mp-lightbox .mp-lightbox-image{display:block;margin:0!important;width:auto!important;max-width:100%!important;height:auto!important;max-height:66vh;max-height:66dvh;object-fit:contain}
.mp-lightbox .mp-lightbox-controls{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:10px}
.mp-lightbox .mp-lightbox-caption{flex:1;text-align:center;font-size:13px;overflow-wrap:anywhere}
@media(max-width:540px){dialog.tmfcm.mp-lightbox{padding:8px}.mp-lightbox .mp-lightbox-caption{display:none}.mp-lightbox .mp-lightbox-image{max-height:65vh;max-height:65dvh}.mp-lightbox .mp-lightbox-controls{gap:8px}}

/* Equal-sized card actions share a single row; sharing choices expand below. */
.tmfcm .mp-card-actionbar{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-top:12px;align-items:stretch}
.tmfcm .mp-card-actionbar > .mp-button{width:100%;min-width:0;min-height:48px;margin:0;align-self:stretch;white-space:normal}
.tmfcm .mp-card-actionbar > .mp-share-actions{grid-column:1/-1;margin:0;min-width:0}

@media(min-width:761px) and (max-width:980px){.tmfcm .mp-ad-layout{grid-template-columns:minmax(0,1.5fr) minmax(240px,1fr)}}

/* Image-first listing cards: larger full-photo area, concise details underneath. */
.tmfcm .mp-card-photo{height:auto;aspect-ratio:1/1;overflow:hidden}
.tmfcm .mp-card-photo img{min-height:0;max-height:100%;object-fit:contain}
.tmfcm .mp-card-copy{padding:8px}
.entry-content .tmfcm .mp-card .mp-card-copy p{font-size:12px!important;line-height:1.35!important;margin:4px 0!important}
.entry-content .tmfcm .mp-card .mp-card-copy h3{font-size:15px!important;line-height:1.3!important;margin:3px 0!important}
.entry-content .tmfcm .mp-card .mp-card-copy .mp-kind{font-size:10px!important;line-height:1.3!important}
.entry-content .tmfcm .mp-card .mp-card-copy .mp-price{font-size:18px!important;margin:5px 0!important}
.entry-content .tmfcm .mp-card .mp-card-copy .mp-small{font-size:11px!important}
.tmfcm .mp-card-actionbar{margin-top:8px;gap:6px}
.tmfcm .mp-card-actionbar > .mp-button{min-height:44px;padding:6px}

/* Discreet disclaimer notice; keep the full terms easy to reach. */
.tmfcm .mp-content .mp-disclaimer-notice{display:flex;align-items:baseline;flex-wrap:wrap;gap:4px 12px;padding:9px 12px!important;margin:0 0 16px!important;background:#edf3f8!important;border:1px solid #c2d2e1!important;border-left:3px solid #d4a548!important;border-radius:3px}
.tmfcm .mp-content .mp-disclaimer-notice h3{font-size:13px!important;line-height:1.4!important;margin:0!important;padding:0!important;flex:0 0 auto}
.tmfcm .mp-content .mp-disclaimer-notice p{font-size:12px!important;line-height:1.45!important;margin:0!important;flex:1 1 320px}
.tmfcm .mp-content .mp-disclaimer-notice a{font-size:12px!important;line-height:1.45!important;white-space:nowrap}
.entry-content .tmfcm > .mp-footer,.tmfcm > .mp-footer{font-size:11px!important;line-height:1.5!important;text-align:center!important;padding:10px 16px!important;margin:0!important;color:#405d77!important}

/* Edge-to-edge card previews; the enlarged viewer retains the original image. */
.tmfcm .mp-card-photo img{display:block;width:100%!important;height:100%!important;object-fit:cover!important;object-position:center}

.tmfcm .mp-content .mp-disclaimer-notice h3,.tmfcm .mp-content .mp-disclaimer-notice a{font-size:13px!important;line-height:1.4!important}

/* View Ad: centred half-width desktop panel, full-width photograph above details. */
.tmfcm .mp-detail{width:50%;margin:12px auto 0}
.tmfcm .mp-detail .mp-ad-layout{display:flex;flex-direction:column;gap:12px;padding:0}
.tmfcm .mp-detail .mp-ad-photos,.tmfcm .mp-detail .mp-ad-info{width:100%;min-width:0}
.tmfcm .mp-detail .mp-ad-photos .mp-gallery{gap:6px}
.tmfcm .mp-detail .mp-ad-photos .mp-gallery a:first-child img{width:100%!important;height:auto!important;max-height:none;object-fit:contain;border-radius:0}
.tmfcm .mp-detail .mp-photo-hint{padding:0 12px}
.tmfcm .mp-detail .mp-ad-info{padding:0 12px 12px}
.tmfcm .mp-detail .mp-ad-heading{margin-bottom:12px}
.tmfcm .mp-detail .mp-photo-placeholder{margin:0}
@media(max-width:760px){.tmfcm .mp-detail{width:100%}}

.tmfcm .mp-share-toggle{align-items:center!important}
.tmfcm .mp-share-toggle .mp-share-label{grid-column:1;grid-row:2;line-height:1.4}
.tmfcm .mp-share-toggle .mp-share-chevron{grid-column:2;grid-row:2;display:block;width:7px;height:7px;border-right:2px solid #ffdc8b;border-bottom:2px solid #ffdc8b;transform:rotate(45deg);margin:-3px 2px 0 0;align-self:center}
.tmfcm .mp-share[open] .mp-share-chevron{transform:rotate(225deg);margin-top:3px}

/* Bound portrait previews so half-page adverts stay compact. */
.tmfcm .mp-detail .mp-ad-photos .mp-gallery a:first-child{overflow:hidden}
.tmfcm .mp-detail .mp-ad-photos .mp-gallery a:first-child img{width:100%!important;height:clamp(220px,28vw,340px)!important;object-fit:cover!important;object-position:center;max-height:340px}
@media(max-width:760px){.tmfcm .mp-detail .mp-ad-photos .mp-gallery a:first-child img{height:260px!important;max-height:260px}}

/* Keep the navigation focus frame inside its panel boundary. */
.tmfcm :is(#tmfcm-content,#tmfcm-results,.mp-disclaimer-full):focus{outline:2px solid #b47a00;outline-offset:-3px}

/* Selected advert: centred, scrollable overlay with full-width photograph. */
dialog.tmfcm.mp-ad-overlay{position:fixed;inset:0;width:min(600px,92vw);max-width:92vw;max-height:90vh;max-height:90dvh;margin:auto!important;padding:0;border:1px solid #d4a548;border-radius:5px;background:#e7f0f9;color:#102d4c;box-shadow:0 16px 64px #0006;overflow:auto;overscroll-behavior:contain}
dialog.mp-ad-overlay::backdrop{background:rgba(4,13,22,.7)}
.tmfcm.mp-ad-overlay .mp-ad-overlay-toolbar{position:sticky;top:0;z-index:2;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:8px 12px;background:#e7f0f9;border-bottom:1px solid #c2d2e1;font-size:14px;font-weight:700}
.tmfcm.mp-ad-overlay .mp-ad-overlay-toolbar .mp-button{min-width:90px;margin:0}
.tmfcm.mp-ad-overlay .mp-detail{width:100%;margin:0;border:0;border-radius:0}
@media(max-width:600px){dialog.tmfcm.mp-ad-overlay{width:96vw;max-width:96vw;max-height:94vh;max-height:94dvh}}

/* Full disclaimer: inset reading panel with its own heading, body and footer. */
.tmfcm .mp-content .mp-disclaimer-full{display:block!important;float:none!important;clear:both;width:100%!important;max-width:900px!important;min-width:0;margin:0 auto!important;padding:0!important;background:#f7fafd!important;border:1px solid #9fbad2;border-top:3px solid #e9ba57;border-radius:4px;overflow:hidden;text-align:left!important;box-sizing:border-box}
.tmfcm .mp-disclaimer-full .mp-disclaimer-heading{padding:20px 24px!important;margin:0!important;background:#102d4c!important;color:#fff8e5!important}
.tmfcm .mp-disclaimer-full .mp-disclaimer-heading > span{display:block!important;color:#ffdc8b!important;background:transparent!important;font:700 11px/1.5 ui-monospace,monospace!important;letter-spacing:1px!important;margin:0 0 8px!important}
.tmfcm .mp-content .mp-disclaimer-full .mp-disclaimer-heading h3{font:700 23px/1.35 Arial,Helvetica,sans-serif!important;letter-spacing:normal!important;text-transform:none!important;color:#fff8e5!important;background:transparent!important;margin:0!important;padding:0!important;border:0!important}
.tmfcm .mp-disclaimer-full .mp-disclaimer-body{padding:24px!important;margin:0!important;background:#f7fafd!important;min-width:0}
.tmfcm .mp-content .mp-disclaimer-full .mp-disclaimer-body p{font:15px/1.8 Arial,Helvetica,sans-serif!important;color:#18334e!important;background:transparent!important;text-align:left!important;text-indent:0!important;padding:0!important;margin:0 0 18px!important;overflow-wrap:anywhere}
.tmfcm .mp-content .mp-disclaimer-full .mp-disclaimer-body p:last-child{margin-bottom:0!important}
.tmfcm .mp-content .mp-disclaimer-full .mp-disclaimer-body strong{color:inherit!important;background:transparent!important;font:inherit!important;font-weight:700!important}
.tmfcm .mp-disclaimer-full .mp-disclaimer-end{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:14px;padding:16px 24px!important;border-top:1px solid #c2d2e1;background:#e7f0f9!important}
.tmfcm .mp-content .mp-disclaimer-full p.mp-disclaimer-version{font:12px/1.5 Arial,Helvetica,sans-serif!important;color:#405d77!important;background:transparent!important;padding:0!important;margin:0!important}
.tmfcm .mp-disclaimer-full .mp-disclaimer-end .mp-button{margin:0!important;max-width:100%;white-space:normal}
@media(max-width:600px){.tmfcm .mp-disclaimer-full .mp-disclaimer-heading,.tmfcm .mp-disclaimer-full .mp-disclaimer-body,.tmfcm .mp-disclaimer-full .mp-disclaimer-end{padding:18px!important}.tmfcm .mp-content .mp-disclaimer-full .mp-disclaimer-heading h3{font-size:21px!important}.tmfcm .mp-disclaimer-full .mp-disclaimer-end{align-items:flex-start;flex-direction:column}}
