/* MIDMOD MAG v0.1 beta – tylko to, czego nie ma w mm-archives.css.
 * Wspólne klasy (.mma, .mma-w, .mma-h1, .mma-h2, .mma-card, .mma-btn …) pochodzą z motywu,
 * rozmiary tekstu z mm-typo.css (zmienne --mm-*). Jedna czcionka: Jost.
 */
.mma{--mmag-col:760px}

/* okruszki: separator */
.mmag-crumbs span[aria-hidden]{margin:0 6px;color:var(--mma-faint,#a8a39a)}
.mmag-crumbs [aria-current]{color:var(--mma-text,#1a1a1a)}

/* ===== Artykuł ===== */
.mmag-ahead{max-width:var(--mmag-col);margin:0 auto;padding:44px 0 36px;text-align:center}
.mmag-ahead .mma-eyebrow a{color:inherit;text-decoration:none}
.mmag-ahead .mma-lead{margin:0 auto 18px}
.mmag-byline{display:flex;flex-wrap:wrap;justify-content:center;gap:4px 0}
.mmag-byline span+span::before{content:"·";margin:0 10px}
.mmag-byline a{text-decoration:underline;text-underline-offset:3px}

.mmag-article figure{margin:0}
.mmag-article figcaption{margin-top:8px;font-size:12px;letter-spacing:.02em;color:var(--mma-soft,#77726a);text-align:left}
.mmag-article img{display:block;max-width:100%;height:auto!important}
.mmag-hero{margin:0 0 72px!important}
.mmag-hero img{width:100%}
.mmag-hero.is-v{max-width:640px;margin-left:auto!important;margin-right:auto!important}

.mmag-body{max-width:var(--mmag-col);margin:0 auto 56px}
.mmag-body p:last-child{margin-bottom:0}
.mmag-body h2,.mmag-body h3{font-weight:400;margin:32px 0 12px}
.mmag-body a{text-decoration:underline}

/* zdjęcia: naturalne proporcje, bez kadrowania */
.mmag-photos{display:flex;flex-direction:column;gap:56px;margin:0 0 72px}
.mmag-row{display:grid;grid-template-columns:repeat(12,minmax(0,1fr));gap:24px;align-items:start}
.mmag-row--wide figure{grid-column:1/-1}
.mmag-row--pair figure{grid-column:span 6}
.mmag-row--pair figure:nth-child(2){margin-top:72px}
.mmag-row--solo.is-l figure{grid-column:2/span 6}
.mmag-row--solo.is-r figure{grid-column:6/span 6}
.mmag-row img{width:100%;background:var(--mma-beige2,#ebe7df)}

/* cytat – Jost, bez ozdobników */
.mmag-quote{max-width:var(--mmag-col);margin:0 auto 72px;padding:0;border:0;text-align:center}
.mmag-quote p{font-size:var(--mm-h2,28px);line-height:1.35;font-weight:400;color:var(--mma-text,#1a1a1a);margin:0}
.mmag-quote cite{display:block;margin-top:14px;font-style:normal;font-size:14px;color:var(--mma-soft,#77726a)}

/* vintage w tym wnętrzu */
.mmag-vintage{max-width:var(--mmag-col);margin:0 auto 72px;padding-top:40px;border-top:1px solid var(--mma-line,#e6e3dc)}
.mmag-vintage .mma-h2{margin-bottom:20px}
.mmag-vintage ul{list-style:none;margin:0;padding:0}
.mmag-vintage li{display:flex;flex-wrap:wrap;justify-content:space-between;gap:4px 16px;padding:14px 0;border-bottom:1px solid var(--mma-line2,#ebe8e2);font-size:16px}
.mmag-v-item{font-weight:500}
.mmag-v-meta{color:var(--mma-muted,#5f5a52)}
.mmag-v-meta a{text-decoration:underline;text-underline-offset:3px}

/* pracownia + kredyty */
.mmag-about{display:grid;grid-template-columns:minmax(0,7fr) minmax(0,5fr);gap:56px;padding:40px 0 0;border-top:1px solid var(--mma-line,#e6e3dc);margin:0 0 8px}
.mmag-about__studio{display:flex;flex-direction:column;align-items:flex-start;gap:12px}
.mmag-about__studio .mma-eyebrow{margin:0}
.mmag-about__logo img{max-width:120px;max-height:80px;width:auto;object-fit:contain}
.mmag-about__bio{font-size:var(--mm-text,16px);line-height:var(--mm-lh,1.75);color:var(--mma-muted,#5f5a52);max-width:560px}
.mmag-about__studio .mma-btn-o{margin-top:8px}
.mmag-credits{display:grid;grid-template-columns:auto 1fr;gap:10px 20px;font-size:14px;line-height:1.5;align-content:start}
.mmag-credits dt{color:var(--mma-soft,#77726a)}
.mmag-credits a,.mmag-links a{text-decoration:underline;text-underline-offset:3px}
.mmag-links{display:flex;flex-wrap:wrap;gap:4px 14px}

/* ===== Karty / siatki ===== */
.mmag-ph--logo{background:#fff!important;border:1px solid var(--mma-line,#e6e3dc)}
.mmag-ph--logo .mmag-logo-img{position:absolute;inset:0;margin:auto;max-width:60%;max-height:50%;width:auto;height:auto;object-fit:contain}
.mmag-featured .mma-feat{margin-top:0}
.mmag-band{margin-top:64px}
.mmag-chips{margin-bottom:40px}
.mmag-in .mma-pt{font-size:var(--mm-h3,18px)}

/* profil pracowni */
.mmag-studio-hero{align-items:start}
.mmag-studio-side{display:flex;flex-direction:column;gap:20px;padding-top:28px}
.mmag-studio-logo img{max-width:140px;max-height:90px;width:auto;height:auto;object-fit:contain}
.mmag-studio-grid{border-top:1px solid var(--mma-line,#e6e3dc);padding-top:40px}

/* ===== Strona „Zgłoś projekt” ===== */
.mmag-intro .mma-sec{margin-top:24px}
.mmag-crit{margin:0}
.mmag-crit>div{padding:18px 0;border-bottom:1px solid var(--mma-line2,#ebe8e2)}
.mmag-crit>div:first-child{padding-top:0}
.mmag-crit dt{display:flex;align-items:center;gap:12px;font-size:var(--mm-h3,18px);font-weight:500;margin:0 0 6px}
.mmag-crit dd{margin:0 0 0 40px;font-size:var(--mm-text,16px);line-height:var(--mm-lh,1.75);color:var(--mma-muted,#5f5a52)}
.mmag-num{display:inline-flex;align-items:center;justify-content:center;flex:none;width:28px;height:28px;border-radius:50%;background:var(--mma-beige,#f4f2ee);font-size:13px;font-weight:500;color:var(--mma-text,#1a1a1a)}
.mma-txt .mmag-intro__note{margin:20px 0 0 40px;font-size:15px}
.mmag-steps{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}
.mmag-steps li{display:flex;flex-direction:column;gap:12px;padding:22px;border:1px solid var(--mma-line,#e6e3dc);border-radius:var(--mma-r,5px)}
.mmag-steps p{margin:0;font-size:15px;line-height:1.6;color:var(--mma-body,#3d3a35)}
.mmag-intro__cta{display:flex;flex-wrap:wrap;align-items:center;gap:16px 24px;margin:32px 0 0}
.mmag-intro__cta a:not(.mma-btn){text-underline-offset:3px}

.mmag-formsec{display:grid;grid-template-columns:minmax(0,4fr) minmax(0,8fr);gap:56px;padding:64px 0 0;margin-top:64px;border-top:1px solid var(--mma-line,#e6e3dc);scroll-margin-top:120px}
.mmag-formsec__head{position:sticky;top:120px;align-self:start;display:flex;flex-direction:column;gap:12px}
.mmag-formsec__head .mma-eyebrow{margin:0}
.mmag-formsec__head p:last-child{font-size:15px;line-height:1.6;color:var(--mma-muted,#5f5a52)}

/* formularz */
.mmag-form{max-width:var(--mmag-col)}
.mmag-form fieldset{border:0;border-top:1px solid var(--mma-line,#e6e3dc);margin:0;padding:28px 0 12px;min-width:0}
.mmag-form fieldset:first-of-type{border-top:0;padding-top:0}
.mmag-form legend{float:left;width:100%;padding:0;margin:0 0 18px;font-size:var(--mm-h3,18px);font-weight:500;color:var(--mma-text,#1a1a1a)}
.mmag-form legend+*{clear:both}
.mmag-subhead{font-size:15px;font-weight:500;margin:20px 0 12px;color:var(--mma-soft,#77726a)}
.mmag-f{margin:0 0 16px}
.mmag-f>label{display:block;font-size:14px;font-weight:500;margin:0 0 6px;color:var(--mma-text,#1a1a1a)}
.mmag-req{color:var(--mma-soft,#77726a);font-weight:400}
.mma .mmag-form :is(input[type=text],input[type=email],input[type=url],input[type=tel],input[type=number],select,textarea){
	width:100%;height:48px;padding:0 14px;border:1px solid var(--mma-field,#d3cfc5);border-radius:var(--mma-r,5px);background:#fff;box-shadow:none;
	font:inherit;font-size:16px;color:var(--mma-text,#1a1a1a)}
.mma .mmag-form textarea{height:auto;min-height:96px;padding:12px 14px;line-height:1.6;resize:vertical}
.mma .mmag-form :is(input,select,textarea):focus{border-color:var(--mma-text,#1a1a1a);outline:0}
.mma .mmag-form .is-invalid{border-color:#b3261e!important}
.mmag-hint{font-size:13px;line-height:1.5;color:var(--mma-soft,#77726a);margin:6px 0 0}
.mmag-hint--top{margin:-8px 0 14px}
.mmag-counter{font-size:13px;color:var(--mma-soft,#77726a);margin:-10px 0 16px;text-align:right}
.mmag-counter.is-ok{color:var(--mma-text,#1a1a1a)}
.mmag-cols{display:grid;grid-template-columns:1fr 1fr;gap:0 16px}
.mmag-cols--3{grid-template-columns:repeat(3,1fr)}
.mmag-rep-row{position:relative;padding:18px 44px 2px 18px;margin:0 0 12px;border-radius:var(--mma-r,5px);background:var(--mma-beige,#f4f2ee)}
.mmag-rep-x{position:absolute;top:10px;right:10px;width:28px;height:28px;padding:0;border:0;background:none;font-size:20px;line-height:1;color:var(--mma-soft,#77726a);cursor:pointer}
.mma .mmag-small{height:40px;padding:0 16px;font-size:14px;cursor:pointer}
.mmag-file{position:relative;overflow:hidden;cursor:pointer}
.mmag-file input{position:absolute;inset:0;opacity:0;cursor:pointer}
.mmag-upload-status{font-size:13px;color:var(--mma-soft,#77726a);min-height:1em;margin:10px 0}
.mmag-upload-errors,.mmag-form__errors{list-style:none;padding:0;margin:8px 0;color:#b3261e;font-size:14px;line-height:1.5}
.mmag-form__errors:not(:empty){padding:14px 18px;margin:16px 0;border:1px solid #b3261e;border-radius:var(--mma-r,5px)}
.mmag-photos-list{display:grid;grid-template-columns:repeat(auto-fill,minmax(96px,1fr));gap:8px;list-style:none;padding:0;margin:12px 0}
.mmag-ph{position:relative}
.mmag-ph img{display:block;width:100%;aspect-ratio:1;object-fit:cover;border-radius:var(--mma-r,5px)}
.mmag-ph__n{position:absolute;left:6px;top:6px;min-width:22px;padding:2px 6px;border-radius:3px;background:#fff;font-size:12px;font-weight:500;text-align:center}
.mmag-ph__x{position:absolute;right:6px;top:6px;width:22px;height:22px;padding:0;border:0;border-radius:3px;background:#fff;line-height:1;cursor:pointer}
.mmag-logo-preview img{max-width:120px;height:auto;margin-top:10px}
.mmag-check{display:flex;gap:12px;align-items:flex-start;font-size:14px;line-height:1.55;margin:0 0 12px;cursor:pointer;color:var(--mma-body,#3d3a35)}
.mmag-check input{margin-top:3px;flex:none;width:18px;height:18px;accent-color:#111}
.mmag-hp{position:absolute!important;left:-9999px!important;width:1px;height:1px;overflow:hidden}
.mma .mmag-submit{margin-top:12px;cursor:pointer}
.mmag-thanks{padding:24px 0;display:flex;flex-direction:column;gap:12px}
.mmag-thanks p{font-size:16px;line-height:1.7;color:var(--mma-muted,#5f5a52)}

/* ===== Tablet / telefon ===== */
@media (max-width:1199px){
	.mmag-steps{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media (max-width:991px){
	.mmag-ahead{padding:24px 0 24px;text-align:left}
	.mmag-ahead .mma-lead{margin-left:0}
	.mmag-byline{justify-content:flex-start}
	.mmag-hero{margin-bottom:40px!important}
	.mmag-photos{gap:16px;margin-bottom:48px}
	.mmag-row{grid-template-columns:minmax(0,1fr);gap:16px}
	.mmag-row figure{grid-column:1/-1!important;margin-top:0!important}
	.mmag-body{margin-bottom:40px}
	.mmag-quote{text-align:left;margin-bottom:48px}
	.mmag-quote p{font-size:var(--mm-h2-m,24px)}
	.mmag-about{grid-template-columns:1fr;gap:32px}
	.mmag-studio-side{padding-top:0}
	.mmag-formsec{grid-template-columns:1fr;gap:24px;padding-top:44px;margin-top:44px}
	.mmag-formsec__head{position:static}
}
@media (max-width:600px){
	.mmag-cols,.mmag-cols--3{grid-template-columns:1fr}
	.mmag-steps{grid-template-columns:1fr}
	.mmag-crit dd,.mma-txt .mmag-intro__note{margin-left:0}
}

/* poprawki po teście */
.mmag-featured .mma-feat{border-top:0;padding-top:0;margin-top:0}
.mmag-intro__cta .mma-btn span{margin-left:8px}
.mmag-cols+.mmag-hint--top{margin:-6px 0 18px}
.mmag-subhead{margin-top:28px}
.mmag-f input[type=file]{font:inherit;font-size:14px;color:var(--mma-muted,#5f5a52)}
@media (max-width:600px){.mmag-intro .mma-trust{grid-template-columns:1fr}}

/* v0.3: zdjęcie główne pracowni */
.mmag-studio-cover{margin:0 0 56px}
.mmag-studio-cover img{display:block;width:100%;height:auto;max-height:80vh;object-fit:contain;object-position:left center;border-radius:var(--mma-r,5px)}
.mmag-studio-cover+.mmag-studio-grid{border-top:0;padding-top:0}

/* v0.3: Moje konto → MIDMOD MAG */
.mmag-account{font-family:Jost,sans-serif}
.mmag-acc-sec{margin:0 0 48px}
.mmag-acc-head{display:flex;justify-content:space-between;align-items:baseline;gap:16px;margin:0 0 16px}
.mmag-acc-head h2{margin:0;font-size:var(--mm-h3,18px);font-weight:500}
.mmag-acc-head a:not(.button){text-decoration:underline;text-underline-offset:3px;font-size:14px}
.mmag-acc-note{padding:12px 16px;border-radius:5px;background:#f4f2ee;font-size:14px}
.mmag-acc-form{max-width:none}
.mmag-acc-form :is(input[type=text],input[type=url],textarea){width:100%;height:48px;padding:0 14px;border:1px solid #d3cfc5;border-radius:5px;background:#fff;font:inherit;font-size:16px;box-shadow:none}
.mmag-acc-form textarea{height:auto;padding:12px 14px;line-height:1.6}
.mmag-acc-img img{display:block;max-width:220px;max-height:160px;width:auto;height:auto;object-fit:contain;margin:0 0 10px;border-radius:5px;background:#f4f2ee}
.mmag-acc-table small{color:#77726a}
.mmag-account *,.mmag-account *::before,.mmag-account *::after{box-sizing:border-box}
.mmag-account .mmag-cols{gap:0 16px}

/* v0.3.1: sekcje MAG doklejane pod listą wpisów Minimoga */
.mmag-auto{clear:both;padding-top:24px}
.mmag-auto .mma-w{padding-bottom:64px}

/* v0.3.4: zdjęcia wyrównane – pary o równej wysokości, bez przesunięć */
.mmag-article .mmag-row{display:flex;gap:24px;align-items:flex-start;grid-template-columns:none}
.mmag-article .mmag-row figure{grid-column:auto!important;margin:0!important;min-width:0}
.mmag-article .mmag-row--wide figure{flex:1 1 100%}
.mmag-article .mmag-row--pair figure{flex:var(--r,1) 1 0}
.mmag-article .mmag-row--solo{justify-content:center}
.mmag-article .mmag-row--solo figure{flex:0 1 auto;width:min(620px,100%)}
.mmag-article .mmag-photos{gap:24px}
.mmag-quote--top{margin:0 auto 72px}
@media (max-width:991px){
	.mmag-article .mmag-row{flex-direction:column;gap:16px}
	.mmag-article .mmag-row figure{width:100%;flex:none}
	.mmag-article .mmag-photos{gap:16px}
	.mmag-quote--top{margin-bottom:48px}
}
.mmag-ph__mv{position:absolute;left:4px;right:4px;bottom:4px;display:flex;justify-content:space-between}
.mmag-ph__mv button{width:24px;height:24px;padding:0;border:0;border-radius:3px;background:#fff;font-size:16px;line-height:1;cursor:pointer}

/* v0.4.2: motyw (.mma p, .woocommerce form fieldset, mm-typo .mma-band) nadpisywał style formularza */
.mma .mmag-intro__cta{margin:40px 0 0}
.mma .mmag-form fieldset{border:0;border-top:1px solid var(--mma-line,#e6e3dc);border-radius:0;margin:0;padding:44px 0 28px;background:none}
.mma .mmag-form fieldset:first-of-type{border-top:0;padding-top:0}
.mma .mmag-form legend{float:left;width:100%;padding:0;margin:0 0 24px;font-size:var(--mm-h3,18px);font-weight:500}
.mma .mmag-f{margin:0 0 22px}
.mma .mmag-f>label{margin:0 0 8px}
.mma .mmag-cols{gap:0 20px}
.mma .mmag-hint{margin:8px 0 0}
.mma .mmag-hint--top{margin:-4px 0 20px}
.mma .mmag-cols+.mmag-hint--top{margin:-8px 0 24px}
.mma .mmag-subhead{margin:36px 0 16px;padding-top:28px;border-top:1px solid var(--mma-line2,#ebe8e2);font-size:15px;font-weight:500;color:var(--mma-text,#1a1a1a)}
.mma .mmag-counter{margin:-12px 0 0}
.mma .mmag-rep-row{padding:20px 52px 0 20px;margin:0 0 14px}
.mma .mmag-rep-row .mmag-f{margin-bottom:20px}
.mma .mmag-file{display:inline-flex;align-items:center}
.mma .mmag-logo-preview:not(:empty){margin-top:12px;font-size:13px;color:var(--mma-soft,#77726a)}
.mma .mmag-upload-status:empty{display:none}
.mma .mmag-photos-list:empty{display:none}
.mma .mmag-photos-list{margin:16px 0 8px}
.mma .mmag-check{margin:0 0 16px}
.mma .mmag-submit{margin-top:20px}
html body .mma-band.mmag-band{background:var(--mma-beige,#f4f2ee)!important;border:0!important}
.mma .mmag-f>label+.mmag-hint--top{margin:-2px 0 16px}
.mmag-check a{text-decoration:underline;text-underline-offset:3px;color:inherit}

/* v0.6.3: podpowiedzi projektanta / producenta */
.mma .mmag-f{position:relative}
.mma .mmag-ac{position:absolute;z-index:20;left:0;right:0;top:100%;margin:4px 0 0;padding:4px 0;list-style:none;background:#fff;border:1px solid var(--mma-field,#d3cfc5);border-radius:var(--mma-r,5px);box-shadow:0 8px 24px rgba(0,0,0,.08);max-height:280px;overflow:auto}
.mma .mmag-ac li{display:flex;justify-content:space-between;gap:12px;padding:9px 14px;font-size:15px;cursor:pointer}
.mma .mmag-ac li small{font-size:12px;color:var(--mma-soft,#77726a);white-space:nowrap}
.mma .mmag-ac li:hover,.mma .mmag-ac li.is-on{background:var(--mma-beige,#f4f2ee)}
.mma .mmag-ac-hint{display:flex;flex-wrap:wrap;align-items:center;gap:6px 12px;margin:8px 0 0;font-size:13px;color:var(--mma-body,#3d3a35)}
.mma .mmag-ac-hint button{padding:0;border:0;background:none;font:inherit;font-size:13px;text-decoration:underline;text-underline-offset:3px;cursor:pointer;color:var(--mma-text,#1a1a1a)}

/* v0.7: Moje konto – tabela projektów w stylu zakładek produktu, przyciski plików */
.mmag-account table.mmag-acc-table{width:100%;border:0!important;border-collapse:collapse;margin:0;border-radius:0}
.mmag-account .mmag-acc-table th,.mmag-account .mmag-acc-table td{border:0!important;border-bottom:1px solid #ebe8e2!important;padding:14px 16px 14px 0!important;text-align:left!important;vertical-align:top;background:none!important}
.mmag-account .mmag-acc-table th{padding-top:0!important;font-size:12px;font-weight:500;letter-spacing:.06em;text-transform:uppercase;color:#77726a}
.mmag-account .mmag-acc-table td{font-size:15px;color:#3d3a35}
.mmag-account .mmag-acc-table td:first-child{color:#1a1a1a;font-weight:500}
.mmag-account .mmag-acc-table td:last-child,.mmag-account .mmag-acc-table th:last-child{text-align:right!important;padding-right:0!important}
.mmag-account .mmag-acc-table a{color:inherit;text-decoration:underline;text-underline-offset:3px}
.mmag-acc-st{display:inline-block;padding:3px 10px;border-radius:999px;font-size:12px;line-height:1.5;background:#f4f2ee;color:#3d3a35;white-space:nowrap}
.mmag-acc-st--pub{background:#1a1a1a;color:#fff}
.mmag-acc-st--rej{background:#fbeceb;color:#8a1f17}
.mmag-acc-file{position:relative;display:inline-flex;align-items:center;height:40px;padding:0 16px;border:1px solid #1a1a1a;border-radius:5px;font-size:14px;cursor:pointer;background:#fff}
.mmag-acc-file input{position:absolute;inset:0;opacity:0;cursor:pointer}
.mmag-acc-fname{margin-left:10px;font-size:13px;color:#77726a}
@media (max-width:600px){.mmag-account .mmag-acc-table th:nth-child(2),.mmag-account .mmag-acc-table td:nth-child(2){display:none}}
.mma .mmag-login-note{margin:0 0 32px;padding:14px 18px;border-radius:var(--mma-r,5px);background:var(--mma-beige,#f4f2ee);font-size:14px;line-height:1.6;color:var(--mma-body,#3d3a35)}
.mma .mmag-login-note a,.mma .mmag-owned a{color:var(--mma-text,#1a1a1a);text-decoration:underline;text-underline-offset:3px}
.mma .mmag-owned{margin:8px 0 0;padding:10px 14px;border-left:2px solid #1a1a1a;background:var(--mma-beige,#f4f2ee);font-size:13px;line-height:1.55;color:var(--mma-body,#3d3a35)}

/* v0.8: Selected by przy pracowniach */
.mmag-about__studio .mmag-sb-link{font-size:14px;text-decoration:underline;text-underline-offset:3px;color:var(--mma-text,#1a1a1a)}
.mmag-sb-list{display:flex;flex-direction:column;gap:32px}
.mmag-sb-list .mmag-sb-card{display:grid;grid-template-columns:minmax(0,7fr) minmax(0,5fr);gap:40px;align-items:center}
.mma .mmag-sb-list .mmag-sb-card .mma-tx{padding:0}
.mma .mmag-sb-list .mmag-sb-card .mma-pt{font-size:var(--mm-h2,28px);line-height:1.25;margin:6px 0 12px}
.mmag-sb-studio{padding:56px 0 24px}
.mmag-sb-studio .mma-w{max-width:1120px;margin:0 auto}
.mmag-sb-studio .mmag-about{grid-template-columns:1fr}
@media (max-width:767px){.mmag-sb-list .mmag-sb-card{grid-template-columns:1fr;gap:16px}.mmag-sb-list .mmag-sb-card .mma-pt{font-size:var(--mm-h2-m,24px)}}
