/* AL.MK 2.6: consistent frames, quieter surfaces, comfortable controls. */
:root{--image-pad:10px;--image-surface:#f2f3f5;--section-gap:24px}html[data-theme="light"] body,html:not([data-theme="dark"]) body{background:#f3f4f6}html[data-theme="dark"]{--image-surface:#1e222a}.module-home .page-shell{--card-width:calc((min(100vw,1600px) - 116px)/6)}
.btn,.news-action{border-radius:10px;min-height:40px;padding:10px 17px;font-size:15px;font-weight:650;line-height:1.35;display:inline-flex;align-items:center;justify-content:center;gap:7px;cursor:pointer;transition:background .15s,box-shadow .15s}.btn:focus-visible,a:focus-visible,button:focus-visible,summary:focus-visible{outline:3px solid #2587df;outline-offset:3px}.btn-soft{background:var(--surface2,#eef0f4);border:1px solid var(--line,#dfe3e9)}.btn:hover{box-shadow:0 3px 10px #18203212}.form-actions{gap:12px;flex-wrap:wrap;align-items:center}.form-actions form{margin:0}.field{margin-bottom:18px}.input,.select,.textarea{font-size:16px}.panel{min-width:0}.muted{color:var(--muted)}
/* The same contained image frame is used by upload preview, listing cards and detail gallery. */
.listing-card26{min-width:0;overflow:hidden;border:1px solid var(--line,#dce1e8);border-radius:12px;background:var(--surface,#fff);box-shadow:0 3px 12px #121c2b06;display:flex;flex-direction:column;scroll-snap-align:start}
.listing-card26-media{position:relative;aspect-ratio:4/3;flex-shrink:0;background:var(--image-surface);padding:var(--image-pad)}.listing-card26-media>a:first-child{position:absolute;inset:var(--image-pad);display:block;min-width:0;min-height:0}.listing-card26-media img{position:absolute;inset:0;display:block;width:100%;height:100%;object-fit:contain!important;background:transparent}.listing-card26-placeholder{height:100%;width:100%;display:grid;place-items:center;color:#8a96a8}.listing-card26-placeholder svg{width:48px!important;height:48px!important}.listing-card26-media .favorite-form,.listing-card26-media>a.favorite-star{position:absolute;right:10px;top:10px}.listing-card26-media .favorite-star{height:34px;width:34px;display:grid;place-items:center;background:#fff;color:#222;border:1px solid #dde1e7;box-shadow:0 2px 7px #0001}.promotion-label{position:absolute;left:10px;bottom:10px;border-radius:5px;background:#fffdf2;color:#815b0b;font-size:11px;font-weight:650;padding:3px 6px;box-shadow:0 1px 4px #0001}.listing-card26-body{padding:12px 13px;display:flex;flex-direction:column;gap:6px;height:209px}.listing-card26-rating{height:22px;display:flex;align-items:center;font-size:12px;color:var(--muted)}.listing-card26-title h3{font-size:18px;line-height:1.28;letter-spacing:-.3px;color:var(--text);margin:0;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;height:46px}.listing-card26-subtitle{margin:0;font-size:14px;color:var(--muted);white-space:nowrap;text-overflow:ellipsis;overflow:hidden;min-height:20px}.listing-card26-price{font-size:17px;line-height:22px;min-height:22px;color:#ed1635;white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.listing-card26-location{display:flex;align-items:flex-start;gap:5px;margin:auto 0 0;color:var(--muted);font-size:13px;line-height:1.4;min-height:36px}.listing-card26-location svg{width:13px;height:15px;margin-top:2px;flex-shrink:0}.listing-card26-location span{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.home-card-track,.home-promoted-track{display:grid!important;grid-template-columns:none!important;grid-auto-flow:column;grid-auto-columns:var(--card-width);gap:16px!important;overflow-x:auto;scroll-snap-type:x mandatory;scrollbar-width:thin;align-items:start;padding-bottom:8px}.home-pair-row,.home-bottom-row{gap:24px;margin-bottom:24px}.home-promoted,.home-category-strip{margin:24px 0}.home-ref-head{margin:0 0 12px}.home-ref-head h2,.home-promoted h2{font-size:23px;line-height:1.2}.home-ref-head>a{font-size:13px}.home-category-strip{gap:10px}.home-category-strip a{height:76px}.home-category-strip b{font-size:13px}.home-category-strip .almk-icon{width:29px;height:29px}.home-bottom-row{display:grid;grid-template-columns:1fr 1fr}.home-pair-row .home-block{overflow:hidden}
.rating-inline{display:inline-flex!important;align-items:center!important;gap:6px!important;flex-wrap:nowrap!important;white-space:nowrap;margin:0!important;line-height:1!important}.rating-inline .stars{display:inline-flex;gap:2px!important;flex-wrap:nowrap}.rating-inline .star-box{display:inline-flex!important;align-items:center;justify-content:center;width:15px!important;height:15px!important;background:#00ae82!important;color:#fff!important;font-size:12px!important;line-height:15px!important;border-radius:1px}.rating-inline .star-box.off{background:#d7e2dd!important}.rating-inline small{font-size:12px!important;display:inline!important;color:var(--text)}.rating-inline small span{color:var(--muted)}
.directory-media,.vehicle-media,.property-media,.modern-media,.event-media,.offer-media{aspect-ratio:4/3!important;height:auto!important;padding:var(--image-pad)!important;background:var(--image-surface)!important;box-sizing:border-box}.directory-media,.vehicle-media,.property-media,.modern-media,.event-media,.offer-media{position:relative}.directory-media>a:first-child,.vehicle-media>a:first-child,.property-media>a:first-child,.modern-media>a:first-child,.event-media>a:first-child,.offer-media>a:first-child{position:absolute;inset:var(--image-pad);display:block}.directory-media img,.vehicle-media img,.property-media img,.modern-media img,.event-media img,.offer-media img{width:100%!important;height:100%!important;object-fit:contain!important;background:transparent!important}.detail-cover,.detail-gallery{aspect-ratio:4/3!important;height:auto!important;max-height:none!important;padding:var(--image-pad)!important;background:var(--image-surface)!important;overflow:hidden;box-sizing:border-box;border-radius:12px;position:relative}.detail-cover{max-width:960px;margin:20px auto}.article-hero img{object-fit:contain;max-height:700px;width:100%;background:var(--image-surface);padding:10px;box-sizing:border-box}.upload-preview-frame{aspect-ratio:4/3;width:100%;padding:10px;box-sizing:border-box;background:var(--image-surface);position:relative;overflow:hidden}.upload-preview-frame img{position:absolute;inset:10px;height:calc(100% - 20px)!important;width:calc(100% - 20px)!important;object-fit:contain;background:transparent}.upload-preview{padding:0;overflow:hidden;border:1px solid var(--line)}.upload-preview>button,.upload-preview>small{margin:0 10px 8px}.upload-preview>small{font-size:12px;color:var(--muted)}.image-editor canvas{height:auto;max-height:44vh;object-fit:contain;border-radius:8px}.image-editor p{font-size:14px;line-height:1.5}.crop-controls{margin:12px 0}.crop-controls input[type=range]{min-height:30px}
.trust-review{display:flex;flex-direction:column;gap:10px;align-self:start}.trust-review h3{margin:0!important;font-size:19px!important;line-height:1.35;overflow-wrap:anywhere;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.trust-review p.review-excerpt{font-size:16px!important;line-height:1.6!important;margin:0!important;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden;overflow-wrap:anywhere}.trust-review p.review-excerpt.expanded{display:block;-webkit-line-clamp:unset}.review-expand{align-self:flex-start;border:0;background:none;color:#096eaa;padding:5px 0;font-size:14px;font-weight:650;cursor:pointer}.review-expand[hidden]{display:none!important}.trust-review .review-foot{display:flex;flex-wrap:wrap;gap:8px!important;padding-top:12px;border-top:1px solid var(--line);margin-top:auto}.trust-review .review-foot button,.trust-review .review-foot>a{font-size:13px!important;background:var(--surface2,#f3f4f6)!important;border:1px solid var(--line,#e0e4eb)!important;border-radius:8px;min-height:36px;padding:7px 10px;color:var(--text)!important;display:inline-flex;align-items:center;gap:5px;cursor:pointer}.review-tags:empty{display:none}.review-stars{margin:0!important}.review-carousel-controls{flex-wrap:wrap}
/* Compact editorial opening, still swipeable on a phone. */
.home-editorial{margin:16px 0 24px!important;gap:16px;min-height:0}.home-news-track .editorial-card,.home-editorial-side>.editorial-card{height:260px!important;min-height:0!important}.home-editorial .editorial-image{height:100%!important}.home-editorial .editorial-copy h2{font-size:clamp(20px,1.55vw,28px);line-height:1.12}.home-editorial .editorial-copy{padding:16px!important}.home-editorial .editorial-kicker{font-size:12px}.home-editorial .editorial-copy small,.home-editorial .news-comment-count{display:none}.home-editorial-side .poll-widget{height:260px;min-height:0;box-sizing:border-box;margin:0!important;padding:14px!important;overflow:auto}.home-editorial-side .poll-question{font-size:19px!important}.home-editorial-side .poll-option{padding:7px!important}.home-editorial-side .poll-option img{width:40px!important;height:40px!important}.home-editorial-side .poll-options{gap:7px}.home-editorial-side .poll-widget h3{margin:6px 0 10px;font-size:19px}.home-editorial-side .poll-widget .btn{min-height:34px;padding:7px 12px}.news-magazine-grid{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:20px;margin:24px 0}.news-magazine-item{min-width:0;grid-column:span 2}.news-magazine-item.news-wide{grid-column:span 3}.news-magazine-grid .editorial-card{height:100%;border-radius:0;box-shadow:none}.news-magazine-grid .editorial-image{height:auto;aspect-ratio:16/9;background:var(--image-surface);padding:10px}.news-magazine-grid .editorial-image img{width:100%;height:100%;object-fit:contain}.news-magazine-grid .editorial-copy{padding:12px 14px 18px}.news-magazine-grid h2{font-size:24px;line-height:1.22}.news-magazine-grid .news-small h2{font-size:20px}.news-comment-count{display:block;text-align:right;font-size:12px;color:var(--muted);margin-top:8px}.pagination{display:flex;justify-content:center;flex-wrap:wrap;gap:8px;margin:26px 0}.news-comments{margin:26px 0}.news-comments textarea{margin:10px 0}.news-comment{padding:20px 0;border-bottom:1px solid var(--line);overflow-wrap:anywhere}.news-comment header{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}.news-comment time{font-size:12px;color:var(--muted)}.news-comment p{white-space:normal}.news-article .article-body{overflow-wrap:anywhere}
.account-menu{position:relative}.account-menu>summary{cursor:pointer;list-style:none}.account-menu>summary::-webkit-details-marker{display:none}.account-menu-panel{position:absolute;top:55px;right:0;width:270px;max-width:calc(100vw - 24px);border:1px solid var(--line);border-radius:14px;padding:10px;background:var(--surface,#fff);color:var(--text);box-shadow:0 12px 45px #101a3030;z-index:2000;display:grid;gap:2px}.account-menu-panel a,.account-menu-panel>b,.account-menu-panel button{padding:10px 12px;border-radius:7px;display:flex;justify-content:space-between;gap:10px;font-size:15px}.account-menu-panel a:hover{background:var(--surface2)}.account-menu-panel button{border:0;background:none;color:var(--text);width:100%;cursor:pointer}.account-menu-panel>b{border-bottom:1px solid var(--line);margin-bottom:4px}.admin-count{background:#e9193b!important;color:#fff!important;border-radius:999px;min-width:23px;height:23px;display:inline-flex!important;align-items:center;justify-content:center;font-size:12px!important;font-weight:750;padding:0 6px;flex-shrink:0}.admin-side nav a>.admin-count{margin-left:auto;width:auto}.admin-inbox{margin-bottom:24px}.admin-inbox-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:12px 0}.admin-inbox-grid a{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:18px;font-size:14px}.listing-extra-actions{display:flex;flex-wrap:wrap;gap:8px;margin:10px 0}.listing-extra-actions form{margin:0}.draft-toolbar{display:flex;align-items:center;flex-wrap:wrap;gap:12px;background:var(--surface2);border-radius:10px;padding:14px;margin-bottom:20px}.draft-toolbar span{flex:1;min-width:180px;font-size:13px}.draft-row{display:flex;flex-wrap:wrap;align-items:center;gap:12px;padding:16px 0;border-bottom:1px solid var(--line)}.draft-row>div{flex:1;min-width:180px}.draft-row h3{margin:0 0 6px}.preference-row{display:flex;align-items:center;gap:12px;padding:14px 0;border-bottom:1px solid var(--line);font-size:16px}.preference-row input{width:20px;height:20px;accent-color:#eb1740}.completion-steps{display:flex;flex-wrap:wrap;gap:14px;margin:12px 0 20px}.profile-completion progress{width:100%;height:12px;accent-color:#00a880}.analytics-table-wrap{overflow-x:auto}.analytics-table{width:100%;border-collapse:collapse;font-size:14px}.analytics-table th,.analytics-table td{padding:14px 10px;border-bottom:1px solid var(--line);text-align:left}.promotion-dashboard{margin:26px 0}.promotion-dashboard p{font-size:14px;color:var(--muted)}.invoice-sheet{max-width:900px;margin:24px auto}.invoice-parties{display:grid;grid-template-columns:1fr 1fr;gap:24px;margin:30px 0}.invoice-table td,.invoice-table th{padding:16px 0;border-bottom:1px solid var(--line)}.invoice-actions{max-width:900px;margin:auto}
@media(min-width:901px){.module-chat .hamburger{display:none}.home-editorial{grid-template-columns:minmax(0,2fr) minmax(260px,1fr)}.home-news-track{height:260px!important}.home-news-track .editorial-card{flex:0 0 calc((100% - 16px)/2)!important}.home-news-track{gap:16px!important}.home-editorial-side{height:260px!important}.home-editorial-side .poll-widget{max-height:260px}.home-news-track .editorial-card:nth-child(n+3){display:none}}
@media(max-width:1200px) and (min-width:901px){.module-home .page-shell{--card-width:calc((100vw - 100px)/5)}.home-pair-row,.home-bottom-row{grid-template-columns:1fr}.admin-inbox-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:900px){.module-home .page-shell{--card-width:260px;padding:0 14px 26px}.home-pair-row,.home-bottom-row{grid-template-columns:1fr;gap:24px}.home-editorial{display:grid;grid-template-columns:1fr;gap:12px;margin-top:12px!important}.home-news-track{padding:0!important;gap:12px!important;height:250px!important}.home-news-track>.editorial-card{height:250px!important;flex:0 0 100%!important}.home-editorial .editorial-copy{padding:18px 18px 36px!important}.home-editorial-side{height:auto!important}.home-editorial-side .poll-widget{height:auto;max-height:300px}.news-slide-shell .news-overlay-controls{right:12px!important;bottom:10px!important}.home-category-strip{margin:24px 0;grid-template-columns:repeat(4,minmax(0,1fr))}.home-category-strip b{font-size:12px}.home-ref-head h2{font-size:22px}.news-magazine-grid{grid-template-columns:1fr;gap:18px}.news-magazine-item,.news-magazine-item.news-wide{grid-column:1}.news-magazine-grid h2,.news-magazine-grid .news-small h2{font-size:23px}.admin-inbox-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.admin-inbox-grid a{padding:14px;font-size:13px}.invoice-parties{grid-template-columns:1fr}.invoice-table{font-size:13px}.draft-row .btn{padding:10px}.review-carousel-track>.trust-review{flex-basis:min(330px,90%)}.detail-cover{margin:16px auto}.crop-controls{grid-template-columns:1fr 1fr}.image-editor{max-height:94dvh}.image-editor canvas{max-height:34dvh}.image-editor .form-actions{position:sticky;bottom:-14px;background:var(--surface);padding:12px 0;margin-bottom:0}.account-menu-panel{top:49px}.trust-review .review-foot button{min-height:40px}}
@media print{.topbar,.site-footer,.drawer,.mobile-bottom-nav,.mobile-postbar,.invoice-actions,.ad-slot{display:none!important}body{background:#fff!important}.page-shell{max-width:none!important;padding:0!important}.invoice-sheet{border:0;box-shadow:none;margin:0}.invoice-document{color:#111!important}}
/* Chat follows the site theme; operator numbers are confined to the profile sheet. */
html:not([data-theme="dark"]) .irc{background:#fff;color:#253141;border-color:#dfe5eb;box-shadow:0 12px 35px #1826370b}html:not([data-theme="dark"]) .irc-header,html:not([data-theme="dark"]) .irc-compose,html:not([data-theme="dark"]) .irc-silent-notice{background:#fafbfd;border-color:#e2e7ec;color:#253141}html:not([data-theme="dark"]) .irc-title b{color:#151a23}html:not([data-theme="dark"]) .irc-members,html:not([data-theme="dark"]) .members-mobile-head{background:#f7f8fa;color:#253141;border-color:#e2e7ec}html:not([data-theme="dark"]) .irc-compose input{background:#fff;color:#192433;border-color:#d7e0e8}html:not([data-theme="dark"]) .chat-msg-body{color:#202b38}html:not([data-theme="dark"]) .chat-nick{color:#0966a8}html:not([data-theme="dark"]) .chat-msg:hover,html:not([data-theme="dark"]) .member:hover{background:#f0f5f9}html:not([data-theme="dark"]) .member{color:#273341}html:not([data-theme="dark"]) .chat-back,html:not([data-theme="dark"]) .chat-icon-btn{background:#fff;color:#273341;border-color:#dbe2e9}html:not([data-theme="dark"]) .chat-avatar,html:not([data-theme="dark"]) .member-avatar{background:#e4ecf2;color:#33485c}.member-copy{border:0;padding:0;background:transparent;color:inherit;cursor:pointer;text-align:left}.member-avatar{padding:0;border:0;cursor:pointer}.chat-msg-body{font-size:14px}.chat-nick,.member-copy b{font-size:13px}.chat-system{display:flex;gap:12px;align-items:flex-start;font-size:12px;padding:8px 10px;color:#7b8b99;border-radius:6px;font-family:inherit}.chat-system time{min-width:38px}.chat-msg-delete{border:0;background:transparent;font-size:19px;color:#c53a4d;cursor:pointer;margin-left:auto;padding:4px}.chat-msg-meta:has(.chat-msg-delete) .chat-msg-report{margin-left:0}.chat-msg-meta time{font-size:11px}.irc-silent-notice{padding:16px;text-align:center;font-size:14px;color:#ccd8e3;background:#151d27}.silent-entry{padding:0 12px 12px}.channel-entry{background:var(--surface);border:1px solid var(--line);border-radius:14px;overflow:hidden}.channel-entry .channel{border:0;box-shadow:none}.chat-silent-toggle{font-size:12px!important;min-height:34px!important;padding:7px 10px!important}.irc-head-actions form{margin:0}.irc .staff-badge{font-size:9px;padding:2px 4px}.irc .user-badges{gap:3px}.irc .member-copy b{display:flex;align-items:center;gap:3px}.irc .chat-nick{display:inline-flex;align-items:center;gap:3px}.irc-members-btn{display:none}
@media(max-width:1000px){.irc-members-btn{display:grid}.irc{min-height:0}.irc-header{gap:6px}.irc-head-actions{gap:4px}.irc-head-actions .btn{min-height:34px;padding:7px 9px;font-size:12px}.irc-head-actions .chat-icon-btn{width:32px;height:34px}.irc-title-line{display:block}.irc-title span{display:block;font-size:10px}.irc-title b{max-width:130px;display:block}.irc{height:calc(100dvh - 100px);min-height:350px}.irc-silent-notice{font-size:12px;padding:12px}.module-chat .page-shell:has(.irc){padding-bottom:0}.irc .member-copy b{font-size:13px}}

@media(max-width:380px){.almk-top-actions [data-theme-toggle]{display:inline-flex}}

.image-editor{margin:auto;max-width:calc(100vw - 24px);overflow-x:hidden}.crop-controls{grid-template-columns:repeat(2,minmax(0,1fr))}.crop-controls label,.crop-controls select{min-width:0;width:100%}
.home-editorial-side .poll-widget h3{font-size:18px!important;line-height:1.2;margin:5px 0 8px}.home-editorial-side .poll-widget form{gap:6px}.home-editorial-side .poll-option{margin:0!important;padding:6px 8px!important}.home-editorial-side .poll-option-copy b{font-size:16px;line-height:1.15}.home-editorial-side .poll-options-2 .poll-option-copy b{font-size:19px}.home-editorial-side .poll-options-3 .poll-option-copy b{font-size:17px}.home-editorial-side .poll-option-copy small{font-size:12px;line-height:1.2}.home-editorial-side .poll-options-2 .poll-avatar{width:44px!important;height:44px!important}.home-editorial-side .poll-options-3 .poll-avatar{width:34px!important;height:34px!important}.home-editorial-side .poll-options-4 .poll-avatar{width:26px!important;height:26px!important}.home-editorial-side .poll-options-4 .poll-option-copy small{display:none}.home-editorial-side .poll-options-4 .poll-option{padding:4px 6px!important}

.news-front-lead .editorial-image{background:var(--image-surface);padding:10px}.news-front-lead .editorial-image img{object-fit:contain;width:100%;height:100%}.news-front-lead{grid-column:auto;min-width:0}

/* AL.MK 2.6 CSS correction — full images and compact forum replies. */
/* A frame owns its dimensions. Neither the link nor the bitmap may enlarge it. */
.listing-card26-media,
.directory-media,.vehicle-media,.property-media,.modern-media,.event-media,.offer-media,
.home-card-media,.home-event-media {
  position:relative!important;
  overflow:hidden;
  min-width:0;
  min-height:0;
  box-sizing:border-box;
}
.listing-card26-media>a:first-child,
.directory-media>a:first-child,.vehicle-media>a:first-child,
.property-media>a:first-child,.modern-media>a:first-child,
.event-media>a:first-child,.offer-media>a:first-child {
  position:absolute!important;
  inset:var(--image-pad,10px)!important;
  width:auto!important;
  height:auto!important;
  min-width:0!important;
  min-height:0!important;
  max-width:none!important;
  max-height:none!important;
  margin:0!important;
  padding:0!important;
  display:block!important;
  overflow:hidden;
  transform:none!important;
}
.listing-card26-media>a:first-child>img,
.directory-media>a:first-child>img,.vehicle-media>a:first-child>img,
.property-media>a:first-child>img,.modern-media>a:first-child>img,
.event-media>a:first-child>img,.offer-media>a:first-child>img,
.home-card-media img,.home-event-media img {
  position:absolute!important;
  inset:0!important;
  display:block!important;
  width:100%!important;
  height:100%!important;
  min-width:0!important;
  min-height:0!important;
  max-width:100%!important;
  max-height:100%!important;
  margin:0!important;
  padding:0!important;
  object-fit:contain!important;
  object-position:50% 50%!important;
  transform:none!important;
  clip-path:none!important;
  background:transparent!important;
}
/* News cards, including the homepage overlay and Diaspora news. */
.editorial-card,.editorial-card>a {min-width:0}
.editorial-image {
  position:relative!important;
  width:100%!important;
  height:auto!important;
  aspect-ratio:16/9;
  min-width:0!important;
  min-height:0!important;
  padding:0!important;
  overflow:hidden;
  box-sizing:border-box;
  background:var(--image-surface,#f2f3f5)!important;
}
.editorial-image>img {
  position:absolute!important;
  inset:var(--image-pad,10px)!important;
  width:calc(100% - 2 * var(--image-pad,10px))!important;
  height:calc(100% - 2 * var(--image-pad,10px))!important;
  max-width:none!important;
  max-height:none!important;
  min-width:0!important;
  min-height:0!important;
  margin:0!important;
  padding:0!important;
  display:block!important;
  object-fit:contain!important;
  object-position:center!important;
  transform:none!important;
  clip-path:none!important;
}
.overlay-card .editorial-image {
  position:absolute!important;
  inset:0!important;
  width:100%!important;
  height:100%!important;
  aspect-ratio:auto;
}
.detail-cover,.detail-gallery {position:relative!important;overflow:hidden}

.article-hero>img,.article-gallery-main>img {
  display:block;
  width:100%!important;
  height:auto!important;
  max-height:none!important;
  object-fit:contain!important;
  object-position:center!important;
  margin:0 auto!important;
  transform:none!important;
}
/* Match the preview to the published frame; never squeeze the crop canvas. */
.upload-preview-frame {position:relative!important;min-width:0;min-height:0;overflow:hidden}
.upload-preview-frame>img {
  position:absolute!important;
  inset:10px!important;
  width:calc(100% - 20px)!important;
  height:calc(100% - 20px)!important;
  min-width:0!important;
  min-height:0!important;
  max-width:none!important;
  max-height:none!important;
  margin:0!important;
  padding:0!important;
  object-fit:contain!important;
  object-position:center!important;
  transform:none!important;
}
.image-editor {
  width:min(720px,calc(100vw - 24px));
  max-width:calc(100vw - 24px);
  max-height:calc(100dvh - 24px);
  margin:auto;
  padding:20px;
  overflow:auto;
  overscroll-behavior:contain;
  box-sizing:border-box;
}
.image-editor canvas {
  display:block!important;
  width:100%!important;
  height:auto!important;
  min-height:0!important;
  max-width:100%!important;
  max-height:none!important;
  aspect-ratio:auto;
  margin:0 auto;
  padding:0;
  object-fit:contain;
  border-radius:8px;
  box-sizing:content-box;
}
.image-editor .crop-controls {grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.image-editor .crop-controls label,.image-editor .crop-controls select {min-width:0;max-width:100%}
.image-editor .crop-controls select {width:100%;border:1px solid var(--line);border-radius:8px;background:var(--surface);color:var(--text);min-height:40px}
.image-editor .form-actions {position:sticky;bottom:-20px;z-index:2;gap:10px;padding:12px 0;background:var(--surface,#fff);border-top:1px solid var(--line);margin:14px 0 0}
/* Keep the author in the side column, with only the time above a reply. */
.forum-topic,.forum-post {grid-template-columns:130px minmax(0,1fr)!important}
.forum-author {padding:14px 10px;gap:5px}
.forum-author .forum-user-avatar {width:52px;height:52px;font-size:23px}
.forum-author b {font-size:14px;line-height:1.35;overflow-wrap:anywhere}
.forum-author small,.forum-author>small {font-size:12px}
.forum-topic-content,.forum-post-main {
  display:grid;
  grid-template-columns:auto minmax(0,1fr);
  grid-template-rows:auto 1fr auto;
  padding:12px 16px;
  min-width:0;
  align-content:start;
}
.forum-topic-content>header,.forum-post-main>header {
  grid-column:1/-1;
  grid-row:1;
  padding:0 0 8px;
  margin:0;
  min-height:0;
  gap:8px;
  border-bottom:1px solid var(--line);
  font-size:12px;
  color:var(--muted);
}
.forum-post-main>header>b {display:none!important}
.forum-topic-content>.forum-body,.forum-post-main>.forum-body {
  grid-column:1/-1;
  grid-row:2;
  min-height:0;
  margin:12px 0;
  padding:0;
  font-size:15px;
  line-height:1.55;
  overflow-wrap:anywhere;
}
.forum-body>p {margin:0 0 10px}
.forum-body>p:last-child {margin-bottom:0}
.forum-body blockquote {margin:0 0 12px;padding:10px 13px;border-left-width:3px;font-size:14px;line-height:1.5}
.forum-body blockquote b,.forum-body blockquote strong {font-size:14px}
.forum-body blockquote p {margin:6px 0 0}
/* Both controls share the row below the divider; quote remains a real button. */
.forum-topic-content>footer,.forum-post-main>footer {
  grid-column:1/-1;
  grid-row:3;
  min-width:0;
  min-height:38px;
  margin:0;
  padding:8px 0 0 58px;
  border-top:1px solid var(--line);
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  justify-content:flex-end;
  gap:6px 12px;
}
.forum-topic-content>[data-quote-text],.forum-post-main>[data-quote-text] {
  grid-column:1;
  grid-row:3;
  align-self:start;
  justify-self:start;
  position:relative;
  z-index:1;
  margin:8px 0 0;
  padding:5px 0;
  min-height:30px;
  border:0;
  border-radius:0;
  background:transparent!important;
  box-shadow:none!important;
  color:#0878b5;
  font-size:14px;
  font-weight:600;
  line-height:20px;
  text-decoration:underline;
  text-underline-offset:3px;
  transform:none;
}
.forum-topic-content>footer .text-btn,.forum-post-main>footer .text-btn {padding:5px 0;font-size:13px;min-height:30px}
.forum-reply {padding:16px;margin-top:14px}
.forum-reply h3 {font-size:19px;margin:0 0 10px}
.forum-reply textarea[name=body] {height:96px;min-height:96px;max-height:420px;resize:vertical;font-size:15px;line-height:1.5;margin:8px 0 12px}
.forum-reply .forum-toolbar {gap:6px;flex-wrap:wrap}
.forum-reply .forum-toolbar .btn {min-height:32px;padding:5px 10px;font-size:13px}
@media(max-width:760px) {
  .forum-topic,.forum-post {grid-template-columns:minmax(0,1fr)!important}
  .forum-author {padding:9px 12px;gap:8px;flex-direction:row;align-items:center;justify-content:flex-start}
  .forum-author .forum-user-avatar {width:34px;height:34px;font-size:16px}
  .forum-author .user-identity,.forum-author .user-badges {justify-content:flex-start}
  .forum-topic-content,.forum-post-main {padding:10px 12px}
  .forum-body blockquote {padding:8px 10px}
  .forum-reply {padding:12px}
  .image-editor {padding:14px}
  .image-editor .form-actions {bottom:-14px;flex-wrap:wrap}
  .image-editor .crop-controls {gap:10px}
}

/* The formatter adds line breaks around block quotes; avoid double spacing. */
.forum-body blockquote+br,.forum-body blockquote+br+br {display:none}
/* Organization and help cards use direct image children instead of image links. */
.diaspora-org-media,.diaspora-directory-media,.diaspora-directory-media.portrait,.help-photo {
  position:relative!important;
  display:block;
  width:100%;
  height:auto!important;
  min-height:0!important;
  aspect-ratio:4/3!important;
  padding:0!important;
  overflow:hidden;
  background:var(--image-surface,#f2f3f5);
}
.diaspora-org-media>img,.diaspora-directory-media>img,.help-photo>img,
.diaspora-org-hero>.detail-main-image {
  position:absolute!important;
  inset:10px!important;
  width:calc(100% - 20px)!important;
  height:calc(100% - 20px)!important;
  min-height:0!important;
  min-width:0!important;
  max-width:none!important;
  max-height:none!important;
  margin:0!important;
  padding:0!important;
  object-fit:contain!important;
  object-position:center!important;
  transform:none!important;
}
.diaspora-org-hero {
  position:relative;
  width:100%;
  max-width:960px;
  margin:20px auto;
  aspect-ratio:4/3;
  height:auto;
  min-height:0;
  background:var(--image-surface,#f2f3f5);
}

/* 2.6 image correction: natural detail proportions; no fixed-height clipping. */
.detail-cover,.detail-gallery,.diaspora-org-hero,.article-hero,.article-gallery-main {
  aspect-ratio:auto!important;height:auto!important;min-height:0!important;
  max-height:none!important;position:relative;padding:0!important;
}
.detail-cover>img,.detail-cover>img.detail-main-image,
.detail-gallery>img,.detail-gallery>img.detail-main-image,
.diaspora-org-hero>img.detail-main-image,.article-hero>img,.article-gallery-main>img {
  position:static!important;inset:auto!important;display:block!important;
  width:100%!important;height:auto!important;min-width:0!important;min-height:0!important;
  max-width:100%!important;max-height:none!important;margin:0!important;padding:0!important;
  aspect-ratio:auto!important;object-fit:contain!important;object-position:center!important;
  transform:none!important;clip-path:none!important;
}
/* Only the controls intercept taps over a full-width photo. */
.detail-floating {pointer-events:none}
.detail-floating>* {pointer-events:auto}
.photo-zoom-host26 {position:relative}
.photo-open26 {
  position:absolute!important;left:10px!important;top:10px!important;right:auto!important;bottom:auto!important;
  z-index:5;width:38px!important;height:38px!important;min-height:38px!important;
  padding:0!important;display:grid!important;place-items:center;border:1px solid #fff9!important;
  border-radius:50%!important;background:#111b!important;color:#fff!important;
  font:26px/1 system-ui!important;box-shadow:0 2px 8px #0002;cursor:zoom-in;
}
.detail-cover>.photo-open26,.detail-gallery>.photo-open26,.diaspora-org-hero>.photo-open26 {
  top:76px!important;
}
.upload-preview-frame {
  aspect-ratio:auto!important;height:auto!important;padding:0!important;
}
.upload-preview-frame>img {
  position:static!important;inset:auto!important;width:100%!important;height:auto!important;
  max-width:100%!important;max-height:none!important;margin:0!important;padding:0!important;
}
.upload-preview-frame>.photo-open26 {margin:0!important}
.crop-stage26 {display:flex;align-items:center;justify-content:center;background:var(--image-surface);border-radius:10px;overflow:hidden}
.image-editor .crop-stage26 canvas {
  /* Both dimensions are computed from the same ratio, including portrait phones. */
  width:min(100%,calc(48dvh * var(--crop-ratio26,1.333333)))!important;
  height:auto!important;max-height:none!important;max-width:100%!important;
  border-radius:0;touch-action:none;user-select:none;cursor:default;
}
.image-editor canvas.is-zoomed {cursor:grab}
.image-editor canvas.is-dragging {cursor:grabbing}
.image-editor output {font-size:12px;color:var(--muted);font-variant-numeric:tabular-nums}
.image-editor input:disabled {opacity:.4}
/* A top-layer native dialog stays above the mobile Posto bar. */
.photo-viewer26 {
  position:fixed;inset:0;width:100vw;height:100dvh;max-width:none;max-height:none;
  margin:0;padding:0;border:0;border-radius:0;box-sizing:border-box;
  background:#101114;color:#fff;overflow:hidden;
}
.photo-viewer26[open] {display:grid;grid-template-rows:auto minmax(0,1fr) auto}
.photo-viewer26::backdrop {background:#101114}
.photo-viewer26-toolbar,.photo-viewer26-footer {
  display:flex;align-items:center;justify-content:space-between;gap:12px;
  padding:12px max(12px,env(safe-area-inset-right)) 12px max(12px,env(safe-area-inset-left));
  background:#191b20;min-width:0;font:14px/1.4 system-ui;
}
.photo-viewer26-toolbar {padding-top:max(12px,env(safe-area-inset-top))}
.photo-viewer26-footer {padding-bottom:max(12px,env(safe-area-inset-bottom));font-size:12px;color:#e0e3ea}
.photo-viewer26 [data-photo-tools],.photo-viewer26 [data-photo-navigation] {display:flex;gap:7px;flex-shrink:0}
.photo-viewer26 button {
  display:grid;place-items:center;min-width:44px;height:44px;padding:0 10px;
  border:1px solid #5d6270;border-radius:9px;background:#292c34;color:#fff;
  font:22px/1 system-ui;cursor:pointer;
}
.photo-viewer26 button[aria-label="Shfaq fotografinë e plotë"] {font-size:14px}
.photo-viewer26 button:disabled {opacity:.4;cursor:default}
.photo-viewer26-stage {position:relative;min-width:0;min-height:0;overflow:hidden;touch-action:none;user-select:none}
.photo-viewer26-stage.is-zoomed {cursor:grab}
.photo-viewer26-stage.is-dragging {cursor:grabbing}
.photo-viewer26-stage>img {
  position:absolute;left:50%;top:50%;max-width:none!important;max-height:none!important;
  margin:0!important;padding:0!important;object-fit:contain;transform-origin:center;
  pointer-events:none;user-select:none;-webkit-user-drag:none;
}
.photo-viewer26-stage>img[hidden] {display:none!important}
@media(max-width:480px) {
  .photo-viewer26-toolbar {gap:6px;font-size:12px}
  .photo-viewer26 [data-photo-tools] {gap:5px}
  .photo-viewer26 button {min-width:40px;height:44px;padding:0 8px}
  .photo-open26 {width:36px!important;height:36px!important}
}
@media(max-width:480px) {
  .image-editor .form-actions {display:flex;flex-wrap:nowrap;gap:8px}
  .image-editor .form-actions>.btn {flex:1;min-width:0;padding:10px 8px;font-size:13px}
}

/* Media controls must overlay the photo rather than add an empty row below it. */
:is(.listing-card26-media,.directory-media,.vehicle-media,.property-media,
    .modern-media,.event-media,.offer-media)>.card-fav {
  position:absolute;right:10px;top:10px;z-index:6;
}
.event-media>.event-cat {top:auto;bottom:10px;left:10px;max-width:calc(100% - 75px)}
.event-media>.gallery-arrow {
  position:absolute;top:50%;transform:translateY(-50%);z-index:4;
  width:32px;height:40px;border:0;border-radius:6px;background:#111b;color:#fff;
  font-size:26px;cursor:pointer;
}
.event-media>.gallery-arrow.prev {left:8px;right:auto}
.event-media>.gallery-arrow.next {right:8px;left:auto}
.event-media>.gallery-counter {
  position:absolute;right:10px;bottom:10px;z-index:4;
  padding:4px 7px;border-radius:12px;background:#111b;color:#fff;font-size:12px;
}

/* R4: uniform card previews. Original files and detail photos are not cropped. */
:is(.listing-card26-media,.directory-media,.vehicle-media,.property-media,
    .modern-media,.event-media,.offer-media,.home-card-media,.home-event-media,
    .diaspora-org-media,.diaspora-directory-media,.diaspora-directory-media.portrait,
    .help-photo) {
  --image-pad:0px;
  position:relative!important;display:block!important;
  width:100%!important;height:auto!important;aspect-ratio:4/3!important;
  min-width:0!important;min-height:0!important;max-height:none!important;
  margin:0!important;padding:0!important;overflow:hidden;flex:none;
  box-sizing:border-box;
}
:is(.listing-card26-media,.directory-media,.vehicle-media,.property-media,
    .modern-media,.event-media,.offer-media,.home-card-media,.home-event-media,
    .diaspora-directory-media)>a:first-child {
  position:absolute!important;inset:0!important;
  display:block!important;width:100%!important;height:100%!important;
  min-width:0!important;min-height:0!important;max-width:none!important;max-height:none!important;
  margin:0!important;padding:0!important;aspect-ratio:auto!important;
}
:is(.listing-card26-media,.directory-media,.vehicle-media,.property-media,
    .modern-media,.event-media,.offer-media,.home-card-media,.home-event-media,
    .diaspora-directory-media)>a:first-child>img,
:is(.listing-card26-media,.directory-media,.vehicle-media,.property-media,
    .modern-media,.event-media,.offer-media,.home-card-media,.home-event-media,
    .diaspora-org-media,.diaspora-directory-media,.diaspora-directory-media.portrait,
    .help-photo)>img {
  position:absolute!important;inset:0!important;display:block!important;
  width:100%!important;height:100%!important;
  min-width:0!important;min-height:0!important;max-width:100%!important;max-height:100%!important;
  margin:0!important;padding:0!important;aspect-ratio:auto!important;
  object-fit:cover!important;object-position:center!important;
  transform:none!important;clip-path:none!important;
}
/* Uniform image frames plus consistent text slots keep cards aligned. */
.home-card-track,.home-promoted-track {align-items:stretch!important}
.listing-card26 {height:100%;box-sizing:border-box}
.listing-card26-body {height:209px;min-height:209px;max-height:209px;flex:none;box-sizing:border-box}
:is(.directory-grid,.vehicle-grid,.modern-listing-grid,.event-grid,.offer-grid,
    .property-grid,.diaspora-org-grid,.help-grid) {align-items:stretch;grid-auto-rows:1fr}
:is(.directory-card,.vehicle-card,.modern-listing-card,.event-card,.offer-card,.property-card) {
  display:flex!important;flex-direction:column!important;
  min-width:0;min-height:0;height:100%;box-sizing:border-box;overflow:hidden;
}
:is(.directory-card,.vehicle-card,.modern-listing-card,.event-card,.offer-card,.property-card)>
:is(.directory-body,.vehicle-body,.modern-card-body,.event-body,.offer-body,.property-body) {
  flex:1;min-width:0;box-sizing:border-box;
}
.directory-card>.directory-rating {min-height:36px;height:36px;flex:none;box-sizing:border-box}
.directory-card>.directory-body {min-height:148px}
:is(.directory-body,.vehicle-body,.modern-card-body,.event-body,.offer-body,.property-body) h2 {
  font-size:18px;line-height:1.3!important;
  height:2.6em;min-height:2.6em;max-height:2.6em;
  display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;
  white-space:normal!important;overflow:hidden;overflow-wrap:anywhere;
}
:is(.directory-body,.modern-card-body,.event-body,.offer-body,.property-body) p {
  display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;
  line-height:1.4;max-height:2.8em;overflow:hidden;overflow-wrap:anywhere;
}
.directory-body small {
  display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;
  line-height:1.4;max-height:2.8em;overflow:hidden;overflow-wrap:anywhere;
}
:is(.directory-card,.vehicle-card,.modern-listing-card,.event-card,.offer-card,.property-card)>.listing-seller {
  flex:none;min-height:88px;margin-top:auto;box-sizing:border-box;
}
@media(max-width:720px) {
  :is(.directory-body,.vehicle-body,.modern-card-body,.event-body,.offer-body,.property-body) h2 {font-size:17px}
}

/* R5: compact previews. Cover fills cards; the original remains in the zoom viewer. */
.editorial-image {--image-pad:0px;padding:0!important;aspect-ratio:16/9!important}
.editorial-image>img {inset:0!important;width:100%!important;height:100%!important;object-fit:cover!important}
.overlay-card .editorial-image {aspect-ratio:auto!important}
.editorial-summary {font-size:14px;line-height:1.4;margin:6px 0 0;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;overflow-wrap:anywhere}
.overlay-card .editorial-summary {color:#fff;max-width:65ch;text-shadow:0 1px 3px #0008}
.editorial-copy h2 {overflow-wrap:anywhere}
.listing-card26-body {height:155px!important;min-height:155px!important;max-height:155px!important;padding:10px 12px!important;gap:4px!important;overflow:hidden}
.listing-card26-title {display:block;min-width:0}
.listing-card26-title h3 {display:block!important;height:23px!important;min-height:23px!important;max-height:23px!important;line-height:23px!important;white-space:nowrap!important;text-overflow:ellipsis;overflow:hidden;font-size:17px!important}
.listing-card26-location {min-height:19px!important;height:19px!important;line-height:19px!important;margin-top:auto!important;align-items:center}
.listing-card26-location span {display:block!important;white-space:nowrap!important;text-overflow:ellipsis;overflow:hidden;min-width:0}
.listing-card26-price:empty {visibility:hidden}
.listing-card26-rating {flex:none;height:20px!important;min-height:20px!important}
:is(.directory-body,.vehicle-body,.modern-card-body,.event-body,.offer-body,.property-body,.property-info) {padding:12px!important;min-height:0!important}
:is(.directory-body,.vehicle-body,.modern-card-body,.event-body,.offer-body,.property-body,.property-info) :is(h2,h3,p,small) {
 display:block!important;white-space:nowrap!important;text-overflow:ellipsis;overflow:hidden;
 height:auto!important;min-height:0!important;max-height:none!important;line-height:1.4!important;
 margin-top:0;margin-bottom:6px;min-width:0;
}
:is(.directory-body,.vehicle-body,.modern-card-body,.event-body,.offer-body,.property-body,.property-info) :is(h2,h3) {font-size:18px!important}
.directory-card>.directory-rating {height:32px!important;min-height:32px!important;padding:10px 12px 0!important}
:is(.directory-card,.vehicle-card,.modern-listing-card,.event-card,.offer-card,.property-card,.listing-card26)>.listing-seller {
 min-height:70px!important;height:70px;max-height:70px;padding:8px 12px!important;margin-top:auto;overflow:hidden;flex:none;
}
.listing-seller .identity-name {white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:0}
.diaspora-cards-grid {display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:18px;align-items:stretch;grid-auto-rows:1fr}
.diaspora-cards-grid>.listing-card26 {width:100%;max-width:none;min-width:0}
.diaspora-section {margin:24px 0}
.diaspora-add-event {margin-bottom:12px}
.diaspora-add-event svg {width:18px;height:18px}
.home-ref-head,.home-promoted .section-head {gap:10px;align-items:center}
.home-ref-head h2,.home-promoted h2 {font-size:21px;min-width:0;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
.home-ref-head>a {flex:none;white-space:nowrap}
.drawer-account {margin-top:32px!important;padding-top:24px!important;border-top:1px solid var(--line);display:grid;grid-template-columns:1fr;gap:8px!important}
.drawer-account>a:not(.btn) {display:flex!important;align-items:center;gap:12px;padding:12px 14px!important;border-radius:10px;min-height:46px;box-sizing:border-box;background:var(--surface2,#f3f4f6);font-size:15px}
.drawer-account .almk-icon {width:21px;height:21px;flex:none}
.drawer-account>a:hover {background:var(--line)}
@media(max-width:1100px){.diaspora-cards-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:720px){
 .module-home .page-shell {--card-width:min(260px,78vw)}
 :is(.directory-grid,.vehicle-grid,.modern-listing-grid,.event-grid,.offer-grid,.property-grid,.property-list,.diaspora-org-grid,.help-grid,.diaspora-cards-grid) {
  display:grid!important;grid-template-columns:minmax(0,1fr)!important;gap:16px!important;
 }
 .home-pair-row,.home-bottom-row {margin-bottom:20px;gap:20px}
 .home-ref-head h2,.home-promoted h2 {font-size:20px}
 .home-ref-head>a {font-size:12px}
 .news-front {display:block!important;margin-bottom:16px!important}
 .news-front .news-latest {display:none!important}
 .news-magazine-grid {display:grid!important;grid-template-columns:minmax(0,1fr)!important;gap:16px!important;margin:0 0 24px!important}
 .news-magazine-item,.news-magazine-item.news-wide,.news-magazine-item.news-small {grid-column:1!important}
 .news-magazine-item .editorial-card {border-radius:12px;overflow:hidden}
 .news-magazine-item .editorial-copy {padding:12px!important;text-align:left}
 .news-magazine-item .editorial-copy h2 {font-size:21px!important;line-height:1.2!important;margin:5px 0!important}
 .news-mobile-feature .editorial-card {position:relative;height:260px!important;background:#17191d}
 .news-mobile-feature .editorial-card>a {display:block;position:relative;height:100%;color:#fff}
 .news-mobile-feature .editorial-image {position:absolute!important;inset:0!important;height:100%!important;aspect-ratio:auto!important}
 .news-mobile-feature .editorial-card>a::after {content:"";position:absolute;inset:0;background:linear-gradient(transparent 10%,rgba(0,0,0,.84));pointer-events:none}
 .news-mobile-feature .editorial-copy {position:absolute;left:0;right:0;bottom:0;z-index:2;padding:16px!important;color:#fff}
 .news-mobile-feature .editorial-copy h2,.news-mobile-feature .editorial-summary {color:#fff!important}
 .news-mobile-feature .editorial-kicker {display:inline-block;background:#ed1234;color:#fff;padding:4px 7px;font-size:12px}
 .news-mobile-feature .editorial-copy small,.news-mobile-feature .news-comment-count {display:none}
 .news-mobile-feature .photo-open26 {z-index:4}
 .news-mobile-feature .editorial-copy h2 {display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
 .diaspora-section .section-head {gap:10px}
 .diaspora-section .section-head h2 {font-size:21px;min-width:0}
 .diaspora-section .section-head>a {flex:none;font-size:13px}
}

.property-list{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;align-items:stretch;grid-auto-rows:1fr}
@media(max-width:1000px){.property-list{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:720px){.property-list{grid-template-columns:minmax(0,1fr)!important}}
/* Keep long preview text to one line; full text remains on the detail page. */
.editorial-copy h2,.news-mobile-feature .editorial-copy h2 {
 display:block!important;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;
}
.help-card {display:flex;flex-direction:column;min-width:0;height:100%;overflow:hidden}
.help-card>.panel {padding:12px;min-width:0}
.help-card>.panel :is(h2,h3,p) {display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;line-height:1.4;margin:0 0 6px}
.property-info {flex:1;min-width:0}
.property-location {white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.journalist-create {margin-bottom:18px}
.journalist-create>summary {cursor:pointer;font-weight:700;min-height:36px;padding:6px 0}

/* R6: community, editorial layout, accessible controls. */
.home-card-track,.home-promoted-track{scrollbar-width:none!important;-ms-overflow-style:none}
.home-card-track::-webkit-scrollbar,.home-promoted-track::-webkit-scrollbar{display:none;width:0;height:0}
.btn{display:inline-flex;align-items:center;justify-content:center;gap:.5rem;min-height:42px;padding:.65rem 1rem;border-radius:12px;font-weight:650;line-height:1.35;transition:background-color .16s,box-shadow .16s;cursor:pointer;text-align:center}
.btn:focus-visible,button:focus-visible,a:focus-visible,summary:focus-visible{outline:3px solid #288cd8;outline-offset:3px}
.btn:hover{box-shadow:0 3px 10px #00000012}.btn:disabled{opacity:.6;cursor:wait}.btn-soft{border:1px solid var(--border,#dfe3ea)}
.menu-count{display:inline-flex;align-items:center;justify-content:center;min-width:22px;height:22px;padding:0 6px;border-radius:99px;background:#e60b30;color:#fff;font-size:12px;font-weight:750;margin-left:auto;flex-shrink:0}
.menu-count[hidden]{display:none!important}.account-menu-panel a{display:flex;align-items:center;gap:12px}.account-menu-panel a small{margin-left:auto;color:#737b89;font-size:12px}
.star-box{background:#ef1637!important;color:#08090b!important;border-radius:3px;display:inline-flex;align-items:center;justify-content:center;padding:2px}.star-box.off{background:#e2e5e9!important;color:#89919c!important}
.rating-eagle{display:block;width:100%;height:100%;min-width:0}.stars .star-box{width:20px;height:20px}.review-stars .star-box{width:25px;height:25px}
.review-picker label span{padding:5px;background:#e2e5e9;color:#818894}.review-picker label:has(input:checked) span,.review-picker label:has(input:checked)~label span{background:#ef1637!important;color:#08090b!important}.review-picker input:focus-visible+span{outline:3px solid #288cd8;outline-offset:3px}
.verified-badge{display:inline-grid!important;place-items:center;width:18px;height:18px;min-width:18px;padding:0;background:#199beb;color:white;font-size:12px;line-height:1;vertical-align:middle;clip-path:polygon(50% 0,61% 8%,75% 7%,82% 19%,94% 25%,93% 39%,100% 50%,92% 61%,93% 75%,81% 82%,75% 94%,61% 93%,50% 100%,39% 92%,25% 93%,18% 81%,6% 75%,7% 61%,0 50%,8% 39%,7% 25%,19% 18%,25% 6%,39% 7%)}
.listing-card26-title{display:flex!important;align-items:flex-start;gap:6px;min-width:0}.listing-card26-title h3{flex:1;min-width:0}.listing-card26-title .verified-badge{margin-top:3px;flex-shrink:0}.verified-float{background:transparent!important;padding:0!important;bottom:10px;left:10px}.directory-body h2 .verified-badge{margin-left:4px}
.listing-event-date{position:absolute;left:10px;bottom:10px;z-index:2}.listing-event-date .event-date{display:flex;flex-direction:column;align-items:center;justify-content:center;min-width:52px;background:#fff;color:#15181d;border-radius:10px;padding:6px;box-shadow:0 3px 12px #0002}.event-date b{color:#e0092b;font-size:11px;letter-spacing:.05em}.event-date strong{font-size:23px;line-height:1.1}
.linked-card-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px;align-items:stretch}.linked-card-grid .listing-card26{width:100%!important;min-width:0!important;max-width:none!important;height:100%!important}.linked-card-grid .listing-card26-media{height:auto!important;aspect-ratio:4/3;flex:none!important}.linked-card-grid .listing-card26-body{flex:1}
.ad-builder{max-width:1000px;margin-inline:auto}.ad-builder h1{font-size:clamp(26px,4vw,42px);letter-spacing:-.025em}.ad-builder form{margin-top:28px}.ad-builder .field{margin-bottom:20px}.ad-builder .form-grid{gap:24px}.ad-builder .ad-placement-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.ad-placement-options label{display:flex!important;align-items:flex-start;gap:12px!important;padding:16px!important;border:1px solid var(--border,#dfe3ea);border-radius:12px;background:var(--surface,#fff);font-size:14px!important;line-height:1.55;cursor:pointer;margin:0!important}.ad-placement-options label:has(input:checked){border-color:#e40b2f;background:#e40b2f0a;box-shadow:0 0 0 1px #e40b2f}.ad-placement-options input{width:20px!important;height:20px!important;flex:0 0 20px;margin:1px 0 0!important;accent-color:#e40b2f}.ad-builder [data-ad-total]{display:block;padding:16px;border-radius:12px;background:var(--surface2,#f2f4f7);margin-top:12px;font-weight:700}.promotion-packages{gap:20px}.promotion-packages>section{border:1px solid var(--border,#e1e5eb);border-radius:18px}.promotion-choice{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:14px 0;border-top:1px solid var(--border,#e1e5eb)}.promotion-choice>span{font-weight:650}.promotion-choice .btn{min-width:115px}
.chat-bans{max-width:1000px;margin:20px auto}.chat-ban-row{display:flex;justify-content:space-between;align-items:center;gap:24px;border-top:1px solid var(--border,#e1e5eb);padding:22px 0}.chat-ban-row h2{font-size:19px;margin:0 0 6px}.chat-ban-row p{margin:6px 0;overflow-wrap:anywhere}.chat-ban-row small{color:var(--muted,#748090);line-height:1.5}.chat-bans-link{font-size:12px;white-space:nowrap;padding:7px 9px;min-height:34px}.chat-bans-link span{font-size:11px;padding:2px 5px;border-radius:99px;background:#e40b2f;color:#fff}
.location-choice{position:relative;margin:0 0 16px;max-width:650px;font-size:14px}.location-choice summary{display:flex;align-items:center;gap:8px;cursor:pointer;min-height:36px;width:fit-content;max-width:100%;list-style:none}.location-choice summary .ui-icon{width:18px;height:18px}.location-choice summary>span{color:#c90729;font-weight:650;margin-left:8px}.location-choice form{position:absolute;top:100%;left:0;z-index:30;padding:20px;border:1px solid var(--border,#e1e5eb);border-radius:16px;background:var(--surface,#fff);box-shadow:0 12px 40px #0002;width:min(540px,90vw)}.location-choice p{font-size:13px;line-height:1.5;color:var(--muted,#748090)}.nearby-filter{font-size:12px;display:flex;flex-direction:column;gap:4px;min-width:170px}.nearby-filter .select{width:100%}
.home-news-feature{display:grid;grid-template-columns:minmax(0,2fr) minmax(0,1fr);gap:20px;margin-bottom:22px}.home-news-lead,.home-news-side{min-width:0}.home-news-side{display:grid;grid-template-rows:repeat(2,minmax(0,1fr));gap:20px}.home-news-feature .editorial-card{margin:0!important;width:100%!important;min-width:0!important;height:100%!important;border-radius:16px;overflow:hidden}.home-news-feature .editorial-card>a{height:100%!important;position:relative;display:block!important}.home-news-feature .home-news-lead{height:480px}.home-news-feature .home-news-side{height:480px}.home-news-feature .editorial-image{position:absolute!important;inset:0;width:100%!important;height:100%!important;min-height:0!important;aspect-ratio:auto!important;padding:0!important}.home-news-feature .editorial-image img{width:100%!important;height:100%!important;object-fit:cover!important;padding:0!important}.home-news-feature .editorial-copy{position:absolute!important;inset:auto 0 0!important;padding:75px 24px 24px!important;background:linear-gradient(transparent,#000d)!important;color:#fff!important;text-align:left!important}.home-news-feature .editorial-copy h2{color:#fff!important;font-size:clamp(24px,2.4vw,38px)!important;line-height:1.15!important;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}.home-news-feature .home-news-side h2{font-size:clamp(18px,1.6vw,24px)!important}.home-news-feature .editorial-summary{display:none!important}.home-news-feature .editorial-kicker{color:white!important;background:#e4092d;padding:4px 8px;border-radius:3px;width:fit-content;font-size:12px}.home-news-feature .editorial-copy small{display:block!important;color:#e9ebef!important;font-size:12px;margin-top:8px}.home-news-feature .news-comment-count{color:white!important}.home-news-feature .editorial-empty{height:100%;padding:30px;background:var(--surface,#fff);border-radius:16px}
.poll-popup{position:fixed;inset:0;margin:auto;width:min(520px,calc(100vw - 28px));max-width:520px;max-height:calc(100dvh - 40px);border:1px solid var(--border,#e1e5eb);border-radius:24px;padding:30px;background:var(--surface,#fff);color:var(--text,#12151b);box-shadow:0 24px 100px #0004;overflow-y:auto;overscroll-behavior:contain}.poll-popup::backdrop{background:#0c1220a6;backdrop-filter:blur(4px)}.poll-popup h2{font-size:26px;line-height:1.2;margin:16px 24px 12px 0;overflow-wrap:anywhere}.poll-popup-close{position:absolute;right:14px;top:12px;width:38px;height:38px;display:grid;place-items:center;border:0;border-radius:50%;font-size:28px;background:var(--surface2,#f0f2f6);color:inherit;cursor:pointer}.poll-intro{font-size:14px;color:var(--muted,#748090);margin-bottom:20px}.poll-popup-options{display:grid;gap:10px}.poll-popup .poll-option{display:flex!important;align-items:center;gap:12px;padding:14px;border:1px solid var(--border,#dfe3e9);border-radius:14px;cursor:pointer;margin:0;min-height:60px;background:transparent}.poll-popup .poll-option:has(input:checked){border-color:#e3092e;background:#e3092e09;box-shadow:0 0 0 1px #e3092e}.poll-popup input[type=radio]{width:20px;height:20px;flex:0 0 20px;accent-color:#e3092e;margin:0}.poll-popup .poll-avatar{width:56px;height:56px;object-fit:cover;border-radius:10px;flex:0 0 56px}.poll-popup .poll-option-copy{min-width:0;overflow-wrap:anywhere;display:flex;flex-direction:column;gap:4px}.poll-popup .poll-option-copy b{font-size:15px}.poll-popup .poll-option-copy small{font-size:12px;color:var(--muted,#748090);line-height:1.4}.poll-feedback{min-height:20px;font-size:14px}.poll-popup .btn{margin-top:6px;min-height:44px}
@media(min-width:1200px){.desktop-nav{gap:clamp(8px,.9vw,18px)!important}.desktop-nav a{font-size:clamp(13px,.95vw,16px)!important;white-space:nowrap}.header-inner{gap:clamp(12px,1.4vw,24px)!important}}
@media(max-width:1199px){.desktop-nav{display:none!important}}
@media(max-width:760px){.home-news-feature{grid-template-columns:1fr;gap:12px}.home-news-feature .home-news-lead{height:340px}.home-news-feature .home-news-side{height:auto;grid-template-columns:repeat(2,minmax(0,1fr));grid-template-rows:220px;gap:12px}.home-news-feature .editorial-copy{padding:60px 16px 18px!important}.home-news-feature .home-news-side .editorial-copy{padding:45px 12px 14px!important}.home-news-feature .home-news-side h2{font-size:18px!important}.home-news-feature .home-news-side .editorial-kicker{font-size:10px}.home-news-feature .home-news-side .editorial-copy small{font-size:10px}.linked-card-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.ad-builder .ad-placement-options{grid-template-columns:1fr}.ad-builder .form-grid{grid-template-columns:1fr;gap:8px}.chat-ban-row{align-items:flex-start;flex-direction:column;gap:12px}.chat-bans .section-head{flex-wrap:wrap}.irc-head-actions{gap:4px;flex-wrap:wrap}.poll-popup{padding:24px 18px;max-height:calc(100dvh - 28px)}.poll-popup h2{font-size:23px}.location-choice .location-typeahead{grid-template-columns:1fr}.stars .star-box{width:17px;height:17px}.rating-inline{gap:6px!important}.rating-inline small{font-size:12px!important}.nearby-filter{min-width:0}}
@media(max-width:420px){.home-news-feature .home-news-side{grid-template-columns:1fr;grid-template-rows:repeat(2,180px)}.linked-card-grid{grid-template-columns:1fr}}
@media(prefers-reduced-motion:reduce){.btn{transition:none}}
/* Override legacy fixed minimum heights and rating colors with matching specificity. */
.home-news-feature .editorial-card,.home-news-feature .editorial-card>a,.home-news-feature .editorial-image{min-height:0!important;max-height:100%!important}
.home-news-feature .home-news-side>.editorial-card{align-self:stretch}
.rating-inline .star-box,.stars .star-box,.review-picker label:has(input:checked) span{background:#ef1637!important;color:#08090b!important}.rating-inline .star-box.off,.stars .star-box.off{background:#e2e5e9!important;color:#89919c!important}
.location-choice summary .almk-icon{width:18px;height:18px;flex-shrink:0}
.home-news-feature .editorial-copy h2{white-space:normal!important;text-overflow:clip!important;max-height:none!important}
.review-picker label:hover span,.review-picker label:hover~label span{background:#ef1637!important;color:#08090b!important}.review-picker span{border-radius:6px}
.ad-builder .form-grid{align-items:start}.ad-builder .field{align-content:start}.ad-campaign-basics .field-full{grid-column:1/-1}.ad-placement-options label>span{display:grid;gap:5px;min-width:0}.ad-placement-options label strong{font-size:14px;font-weight:650}.ad-placement-options label small{font-size:13px;font-weight:500;color:var(--muted)}.ad-builder input:not([type=checkbox]):not([type=radio]):not([type=file]){height:46px}.ad-builder .ad-campaign-basics{margin-bottom:12px}

/* Provider diagnostics use saved server-side settings. */
.integration-health{margin:0 0 24px}.integration-health-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.integration-health-grid>.card{padding:20px;display:flex;flex-direction:column;gap:10px;min-width:0;overflow-wrap:anywhere}.integration-health-grid h3,.integration-health-grid p{margin:0}.integration-health-grid form{margin-top:auto}.integration-health-grid small{color:var(--muted)}@media(max-width:640px){.integration-health-grid{grid-template-columns:1fr}}
