/* =====================================================================
   Damfrost Studio · WordPress integration
   Studio look for the plugin's bag, checkout, account and tracking,
   WordPress content inside .prose, forms and small header additions.
   ===================================================================== */

/* header additions */
body.admin-bar .hd { top: 32px; }
@media (max-width: 782px) { body.admin-bar .hd { top: 46px; } }
.hd-act { display: flex; align-items: center; gap: 10px; }
.acct { display: inline-grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; color: #fff; box-shadow: inset 0 0 0 1.5px var(--on-line); }
.acct:hover { box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .6); }
@media (max-width: 420px) { .acct { display: none; } }
.nav-list a[aria-current="page"] { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: .35em; }

/* footer additions */
.ft-ck { display: inline-flex; align-items: center; min-height: 44px; background: none; border: 0; padding: 0; font: inherit; font-size: var(--f1); color: var(--on-2); cursor: pointer; }
.ft-ck:hover { color: #fff; text-decoration: underline; }

/* forms */
.hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.cform-status:empty { display: none; }
.cform-status.is-ok { color: #1F6B45; }
.cform-status.is-error { color: #A12C2C; }
.wform { margin-top: 28px; }
.prose .wform h3 { font-size: var(--f4); }
.prose .wform .flds { grid-template-columns: 1fr 1fr; }
@media (max-width: 760px) { .prose .wform .flds { grid-template-columns: 1fr; } }
.prose .wform input[type="date"] { min-height: 54px; }
.nf-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }

/* journal lists */
.posts-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 1000px) { .posts-3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .posts-3 { grid-template-columns: 1fr; } }
.post article { position: relative; }
.posts-3 .post-t { font-size: var(--f4); font-weight: 700; letter-spacing: -.015em; line-height: 1.2; }
.post-photo .frame img { width: 100%; height: 100%; object-fit: cover; }
.more-all { margin-top: 48px; }
.btn-ghost { box-shadow: inset 0 0 0 1.5px rgba(21, 23, 27, .3); color: var(--ink); text-decoration: none; }
.btn-ghost:hover { box-shadow: inset 0 0 0 1.5px var(--ink); }
.pager { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 56px; }
.pager .page-numbers { display: inline-grid; place-items: center; min-width: 46px; height: 46px; padding: 0 12px; border-radius: 999px; background: var(--paper); text-decoration: none; font-weight: 700; font-size: var(--f2); }
.pager .page-numbers.current { background: var(--field); color: #fff; }

/* WordPress content inside .prose (legal pages and articles) */
.prose img { border-radius: var(--r-s); height: auto; }
.prose figure { margin: 36px 0; }
.prose figcaption, .prose .wp-element-caption { font-size: var(--f1); color: var(--mid); margin-top: 10px; }
.prose h3 { font-size: var(--f4); font-weight: 700; margin-top: 1.8em; }
.prose h2 + h3 { margin-top: 1em; }
.prose strong { font-weight: 700; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 40px 0; }
.prose .wp-block-table { overflow-x: auto; }
.prose details { background: var(--paper); border-radius: var(--r-s); padding: 16px 20px; }
.prose summary { font-weight: 700; cursor: pointer; }
.prose .alignwide, .prose .alignfull { max-width: none; }
.prose iframe { max-width: 100%; }
.prose .wp-block-button__link { display: inline-flex; min-height: 50px; align-items: center; padding: 0 24px; border-radius: 999px; background: var(--field); color: #fff; text-decoration: none; font-weight: 700; }
.legal-grid.no-toc { grid-template-columns: minmax(0, 1fr); }
.sec-art .prose > h1:first-child { display: none; } /* the article title is already in the hero */

/* ------------------------------------------------ commerce pages */
.df-commerce-sec { padding-top: clamp(40px, 6vw, 80px); }
.df-commerce { max-width: 1180px; }
.df-commerce .df-store-heading { margin-bottom: 36px; }
.df-commerce .df-store-heading > span { font-size: var(--f1); font-weight: 700; letter-spacing: .08em; color: var(--mid); }
.df-commerce .df-store-heading h1, .df-commerce h1 { font-size: var(--f7); font-weight: 300; letter-spacing: -.05em; line-height: .94; margin: 10px 0 14px; }
.df-commerce .df-store-heading p, .df-commerce p.df-store-heading { color: var(--mid); font-size: var(--f3); }
.df-commerce p.df-store-heading a, .df-commerce .df-store-heading a { color: var(--ink); font-weight: 700; }
.df-commerce .df-commerce-wrap { max-width: none; margin: 0; padding: 0; }
.df-store-panel { background: var(--paper); border: 0; border-radius: var(--r); padding: clamp(22px, 3vw, 36px); color: var(--ink); font-family: inherit; }
.df-store-panel h2 { font-size: var(--f5); font-weight: 700; letter-spacing: -.025em; margin: 0 0 20px; color: var(--ink); }
.df-store-panel label { font-size: var(--f2); font-weight: 700; color: var(--ink); }
.df-store-panel input:not([type=checkbox]):not([type=radio]), .df-store-panel select { min-height: 54px; border-radius: var(--r-s); border: 1.5px solid rgba(21, 23, 27, .22); background: var(--paper); color: var(--ink); padding: 12px 16px; font: inherit; font-size: var(--f3); font-weight: 400; }
.df-store-panel input:focus-visible, .df-store-panel select:focus-visible { outline: 3px solid var(--ice); outline-offset: 2px; border-color: var(--ink); }
.df-store-panel input[type=checkbox] { accent-color: var(--field); }
.df-store-panel p, .df-store-panel > a { color: var(--mid); font-size: var(--f2); }
.df-store-panel a { color: var(--ink); font-weight: 600; }
.df-store-button { display: flex; align-items: center; justify-content: center; min-height: 58px; border-radius: 999px; background: var(--field); color: #fff !important; font: 700 var(--f3)/1.2 "Hanken Grotesk", "Helvetica Neue", Arial, sans-serif; letter-spacing: 0; border: 0; text-decoration: none; cursor: pointer; width: 100%; margin: 16px 0; }
.df-store-button:hover:not(:disabled) { background: var(--field-lo); }
.df-store-button:disabled { opacity: .45; }
.df-store-total { font-size: var(--f2); color: var(--ink); }
.df-store-total.grand { font-size: var(--f4); font-weight: 700; border-top: 1.5px solid var(--ink); }
.df-code-row button { min-height: 54px; border-radius: 999px; border: 0; box-shadow: inset 0 0 0 1.5px rgba(21, 23, 27, .3); background: transparent; padding: 0 22px; font-weight: 700; color: var(--ink); }
.df-code-row button:hover { box-shadow: inset 0 0 0 1.5px var(--ink); }
.df-store-notice { background: rgba(47, 123, 255, .08); border: 1.5px dashed rgba(47, 123, 255, .55); border-radius: var(--r-s); color: var(--ink); padding: 14px 18px; font-size: var(--f2); }
.df-checkout-layout { gap: clamp(20px, 3vw, 36px); }
@media (max-width: 760px) { .df-checkout-layout { grid-template-columns: 1fr; } }
.df-account-grid { gap: clamp(20px, 3vw, 36px); }
.df-account .df-store-heading { margin-bottom: 28px; }
.df-account-nav { display: flex; gap: 10px; flex-wrap: wrap; margin: 0 0 28px; }
.df-account-nav a { display: inline-flex; align-items: center; min-height: 46px; padding: 0 20px; border-radius: 999px; background: var(--paper); text-decoration: none; font-weight: 700; font-size: var(--f2); color: var(--ink); }
.df-account input[type=submit], .df-account .button { min-height: 54px; border-radius: 999px; background: var(--field); color: #fff; border: 0; padding: 0 28px; font-weight: 700; cursor: pointer; }
.df-account a { color: var(--ink); }
.df-account-order { border-top: 1px solid var(--line); padding: 18px 0; }
.df-account-order h3 { color: var(--ink); font-size: var(--f3); }
.df-account-order small { color: var(--mid); }
.df-account-clear { color: var(--mid); background: none; border: 0; text-decoration: underline; cursor: pointer; }
.df-account #loginform p { margin: 0 0 16px; }
.df-account #loginform label { display: block; font-weight: 700; font-size: var(--f2); margin-bottom: 8px; }
.df-account #loginform .forgetmenot label { display: inline; font-weight: 400; }
.df-cart-page .df-store-panel { max-width: 720px; }
#df-theme-tracking { max-width: 640px; }
#df-theme-tracking-status { font-weight: 600; color: var(--ink); }

/* ------------------------------------------------ the bag (plugin dialog) */
.df-bag, .df-confirmation { font-family: "Hanken Grotesk", "Helvetica Neue", Arial, sans-serif; color: var(--ink); background: var(--paper); }
.df-bag { width: min(460px, 100vw); }
.df-bag::backdrop, .df-confirmation::backdrop { background: rgba(21, 23, 27, .45); backdrop-filter: blur(2px); }
.df-bag header { background: var(--field); color: #fff; border: 0; padding: 14px 14px 14px 28px; }
.df-bag header span { display: none; }
.df-bag header h2 { color: #fff; font-size: var(--f5); font-weight: 300; letter-spacing: -.03em; margin: 0; }
.df-bag header button { width: 48px; height: 48px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .12); color: #fff; font-size: 26px; line-height: 1; }
.df-bag header button:hover { background: rgba(255, 255, 255, .22); }
.df-bag #df-bag-items { padding: 8px 28px; }
.df-bag-item { border-color: var(--line); gap: 16px; }
.df-bag-item img { width: 84px; height: 100px; border-radius: var(--r-s); }
.df-bag-item h3 { font-size: var(--f2); font-weight: 700; color: var(--ink); }
.df-bag-item p { color: var(--mid); font-size: var(--f1); }
.df-bag-item strong { font-size: var(--f3); font-weight: 700; }
.df-bag-controls button { width: 44px; height: 44px; border-radius: 50%; border: 0; box-shadow: inset 0 0 0 1.5px rgba(21, 23, 27, .25); background: var(--paper); color: var(--ink); font-size: 18px; }
.df-bag-controls button:hover { box-shadow: inset 0 0 0 1.5px var(--ink); }
.df-bag-controls button:last-child { box-shadow: none; border-radius: 0; width: auto; color: var(--mid); font-size: var(--f1); }
.df-bag-empty h3 { font-size: var(--f4); color: var(--ink); }
.df-bag-empty p { color: var(--mid); }
.df-bag footer { background: var(--paper); border-top: 1px solid var(--line); padding: 20px 28px 24px; }
.df-bag footer .grand { font-size: var(--f2); font-weight: 700; border: 0; }
.df-bag footer .grand strong { font-size: var(--f5); letter-spacing: -.02em; }
.df-bag footer p { color: var(--mid); font-size: var(--f2); }
.df-bag footer > a:last-child { color: var(--ink); font-weight: 600; font-size: var(--f2); }
.df-bag :focus-visible, .df-confirmation :focus-visible { outline: 3px solid var(--ice); outline-offset: 3px; }
.df-confirmation { border-radius: var(--r); padding: 32px; }
.df-confirmation > span { font-size: var(--f1); font-weight: 700; letter-spacing: .08em; color: var(--mid); }
.df-confirmation h2 { font-size: var(--f5); font-weight: 300; letter-spacing: -.03em; color: var(--ink); }
.df-confirmation > [data-df-close]:first-child { width: 44px; height: 44px; border-radius: 50%; border: 0; box-shadow: inset 0 0 0 1.5px rgba(21, 23, 27, .25); background: var(--paper); }
.df-confirmation { overflow-x: hidden; }
.df-confirmation > .df-store-button[data-df-close] { float: none; display: flex; width: 100%; height: auto; min-height: 58px; border-radius: 999px; border: 0; box-shadow: none; background: var(--field); color: #fff; font-size: var(--f3); margin: 24px 0 0; }
.df-confirmation > .df-store-button[data-df-close]:hover { background: var(--field-lo); }
@media (max-width: 760px) { .df-bag { width: 100%; border-radius: var(--r) var(--r) 0 0; } .df-bag header { border-radius: var(--r) var(--r) 0 0; } }

/* plugin's optional analytics banner is replaced by the theme's cookie banner */
#df-consent-banner, #df-privacy-choice { display: none !important; }
