@charset "utf-8";
/* ==========================================================================
   사과사랑동호회 테마 스타일

   · 그누보드 베이직 테마의 default.css 는 건드리지 않습니다. 이 파일이 뒤에서
     덮어씁니다. 콘텐츠 레이아웃(#wrapper · #container_wr · #container)은
     베이직 기본 구조를 그대로 씁니다.
   · 여기 담긴 것은 상단 유틸바 · 헤더 · 주메뉴(메가메뉴) · 서랍 입니다.
   · 글자 크기는 rem 으로 씁니다. html 의 글자 크기를 바꾸면 전체가 따라옵니다.
   · 색은 --al-* 토큰만 씁니다.
   ========================================================================== */

/* --------------------------------------------------------------------------
   글자 크기 단계 — 이 값들만 씁니다 (px · em 으로 적지 마세요)

     0.5625rem  10.4px  아이콘 안 글자 (새글 N 같은 것)
     0.75rem    13.8px  아주 작은 글자
     0.8125rem  14.9px  뱃지
     0.9375rem  17.2px  보조 — 작성자 · 날짜 · 표 · 설명문
     1rem       18.4px  ★ 본문 (사이트 · 게시판 · 콘텐츠 페이지 모두 같은 값)
     1.125rem   20.7px  작은 제목
     1.25rem 이상       제목

   px 은 상단 "글자크기" 버튼을 안 따르고,
   em 은 부모 크기에 곱해져서 같은 값이라도 자리마다 다르게 나옵니다.
   -------------------------------------------------------------------------- */

/* 글자 크게/작게 버튼은 이 값만 바꾸면 됩니다 (보통 16 · 크게 18 · 아주 크게 20) */
/* 글자 크기의 기준.

   rem 은 html 의 글자 크기를 기준으로 합니다. 여기가 고정이면
   상단 "글자크기" 버튼(--al-scale)을 눌러도 rem 으로 적은 곳은 꿈쩍하지 않습니다.
   그래서 기준 자체에 배율을 곱합니다. (html 안에서 1rem 은 브라우저 기본 16px)
   --al-scale 은 :root(=html)에 있으므로 여기서 바로 쓸 수 있습니다. */
html{ font-size:calc(1rem * var(--al-scale-base, 1.15) * var(--al-scale, 1)); scroll-behavior:smooth; }

/* --------------------------------------------------------------------------
   1. 디자인 토큰
   -------------------------------------------------------------------------- */
:root{
    --al-font:"Pretendard Variable",Pretendard,"Noto Sans KR","Malgun Gothic",sans-serif;

    --al-red:#d9363d;
    --al-deep:#a91f2a;          /* 흰 배경 위 텍스트용 (명도대비 7.2:1) */
    --al-green:#236b55;
    --al-green-deep:#17503f;
    --al-gold:#f4a261;
    --al-ink:#212326;
    --al-sub:#6b7075;           /* 보조 텍스트 최소 한계 */
    --al-bg:#f5f7f3;
    --al-surface:#ffffff;
    --al-line:#dce1d9;
    --al-line-soft:#edf0eb;
    --al-shadow:20 48 32;
    --al-focus:#1769e0;

    /* 퀵메뉴 아이콘 타일 (4칸 각각 다른 색조) */
    --al-tile1-a:#fdf2e8;  --al-tile1-b:#f4ddc4;
    --al-tile2-a:#eaf5ef;  --al-tile2-b:#cfe6d9;
    --al-tile3-a:#fdf5e5;  --al-tile3-b:#f5e4bf;
    --al-tile4-a:#fdeded;  --al-tile4-b:#f7d8d8;
    --al-card-a:#ffffff;   --al-card-b:#f9fbf7;

    /* 게시판·회원 스킨용 (skin/board, skin/member 에서 함께 씁니다) */
    --al-red-soft:#fdecec;      /* 아주 연한 빨강 - 선택된 탭 배경 등 */
    --al-red-mid:#f2b4b7;       /* 중간 빨강 - 테두리·구분선 */
    --al-danger:#c9252d;        /* 삭제·경고 */
    --al-line-dark:#c2cabd;     /* 진한 구분선 - 표 머리글 아래 */
    --al-sub-light:#6d746c;     /* 가장 연한 글자 (명도대비 하한) */
    --al-shadow-sm:0 2px 8px rgb(20 48 32 / .07);
    --al-shadow-md:0 10px 26px rgb(20 48 32 / .12);
    --al-ease:.22s cubic-bezier(.22,.8,.3,1);

    --al-base:1rem;             /* 본문 18.4px — 콘텐츠 페이지 · 게시판과 같은 값입니다 */
    --al-scale-base:1.15;       /* 표준 글자 크기. 브라우저 기본 16px 의 1.15배 = 18.4px
                                   (어르신이 보기 편한 크기를 "보통" 으로 잡았습니다) */
    --al-scale:1;               /* 상단 - / 보통 / + 버튼이 바꾸는 값 */
    --al-btn-radius:8px;    /* 버튼·입력칸 모서리 (select 상자와 같은 값) */
    --al-radius:16px;
    --al-radius-sm:10px;
    --al-radius-lg:20px;
    --al-radius-xl:26px;
    --al-wrap:1200px;       /* 헤더·본문·푸터·히어로 공통 읽는 폭 (여기 한 줄만 고치면 전부 따라옵니다) */
    --al-head-h:92px;
    --al-quick-lift:52px;   /* 퀵메뉴가 비주얼 위로 올라가 겹치는 높이 */
    --al-hero-shadow:70 70 70;  /* 비주얼 글자 테두리(후광) 색 - 회색 */
}

[data-theme="dark"]{
    --al-red:#ff6b6f;
    --al-deep:#ff9a9d;
    --al-green:#6fc9a6;
    --al-green-deep:#8fdcbc;
    --al-gold:#ffc078;
    --al-ink:#eef2ec;
    --al-sub:#b6bfb5;
    --al-bg:#161a16;
    --al-surface:#1e231e;
    --al-line:#333b33;
    --al-line-soft:#2a312a;
    --al-shadow:0 0 0;

    --al-red-soft:#3a2323;
    --al-red-mid:#6a3a3d;
    --al-danger:#ff7b80;
    --al-line-dark:#454f45;
    --al-sub-light:#98a297;
    --al-shadow-sm:0 2px 8px rgb(0 0 0 / .35);
    --al-shadow-md:0 10px 26px rgb(0 0 0 / .45);

    --al-tile1-a:#332a20;  --al-tile1-b:#2a2018;
    --al-tile2-a:#1f2f28;  --al-tile2-b:#182620;
    --al-tile3-a:#332c1d;  --al-tile3-b:#292317;
    --al-tile4-a:#332222;  --al-tile4-b:#291b1b;
    --al-card-a:#232823;   --al-card-b:#1c211c;
}

/* --------------------------------------------------------------------------
   2. 기본 요소
   -------------------------------------------------------------------------- */
body#al-body{
    margin:0;
    background-color:var(--al-surface);
    color:var(--al-ink);
    font-family:var(--al-font);
    font-size:var(--al-base);   /* rem 이라 html 의 배율이 이미 반영됩니다 */
    line-height:1.7;
    word-break:keep-all;
    -webkit-text-size-adjust:100%;
}
body#al-body *{box-sizing:border-box}

/* 기본 리셋은 반드시 "요소 선택자"로만 쓴다.
   #al-body a / #al-body img 처럼 id를 붙이면 우선순위가 (1,0,1)이 되어
   아래에서 정의하는 컴포넌트 클래스 규칙(0,1,x)을 전부 눌러버린다. */
a{color:inherit;text-decoration:none}
/* 작성자 이름은 그누보드가 <a class="sv_member"> 로 감싸 내보냅니다.
   default.css 가 여기에 #333 을 직접 박아 두어, 어두운 화면에서 이름이 묻힙니다.
   주변 글자색을 따르게 되돌립니다. */
.sv_member,.sv_wrap > a{color:inherit}
img{max-width:100%}
button,input,select,textarea{font-family:inherit;font-size:inherit}
/* default.css 가 h1~h6 에 맑은고딕을 직접 지정하므로 여기서 되돌립니다.
   (본문 글꼴은 body 에서 상속받게 합니다) */
h1,h2,h3,h4,h5,h6{font-family:inherit}
h1,h2,h3,h4{margin:0;letter-spacing:-.045em;line-height:1.3}
p{margin:0}

#al-body a:focus-visible,
#al-body button:focus-visible,
#al-body input:focus-visible,
#al-body select:focus-visible,
#al-body textarea:focus-visible,
#al-body summary:focus-visible{outline:4px solid var(--al-focus);outline-offset:3px}

.al-wrap{width:min(var(--al-wrap),calc(100% - 48px));margin:0 auto}
.al-skip{position:fixed;top:-100px;left:16px;z-index:9999;padding:14px 22px;background-color:#111;color:#fff;font-weight:700}
.al-skip:focus{top:16px}
.al-blind{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}

.al-ico{width:22px;height:1.375rem;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;flex:none}

/* animate.css 연동 (css/animate.css)
   화면에 들어오기 전에는 감춰 두었다가 그 순간 효과를 재생한다.
   스크립트가 꺼져 있으면 html 에 al-anim-on 이 붙지 않아 그냥 다 보인다. */
.al-anim-on [data-anim]{opacity:0}
.al-anim-on [data-anim].is-anim{opacity:1}
[data-anim]{will-change:opacity,transform}

/* 스크롤 등장 애니메이션 */
.al-reveal{opacity:0;transform:translateY(24px)}
.al-reveal.is-in{opacity:1;transform:none;transition:opacity .7s ease,transform .7s cubic-bezier(.22,.8,.3,1);transition-delay:var(--al-delay,0s)}

/* --------------------------------------------------------------------------
   3. 상단 유틸리티 바
   -------------------------------------------------------------------------- */
.al-top{
    background-color:var(--al-bg);
    border-bottom:1px solid var(--al-line);
    font-size:0.9375rem;
    color:var(--al-sub);
}
.al-top .al-wrap{min-height:2.875rem;display:flex;align-items:center;justify-content:space-between;gap:16px}
/* 인삿말이 길어도 오른쪽 글자크기·밝기 단추를 밀지 않게 합니다 */
.al-top-msg{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.al-top-tools{display:flex;align-items:center;gap:6px;flex-shrink:0}
.al-top-tools > span{margin-right:2px;font-weight:600}
.al-fontbtn,.al-themebtn{
    min-width:2.75rem;min-height:2.125rem;padding:0 10px;
    border:1px solid var(--al-line);border-radius:8px;
    background-color:var(--al-surface);color:var(--al-ink);
    font-weight:700;cursor:pointer;
}
/* 글자크기 3버튼을 하나로 묶은 컨트롤   − │ 보통 │ ＋ */
.al-fontset{
    display:inline-flex;align-items:stretch;overflow:hidden;
    border:1px solid var(--al-line);border-radius:9px;
    background-color:var(--al-surface);
}
.al-fontset .al-fontbtn{min-width:2.75rem;border:0;border-radius:0;background-color:transparent}
.al-fontset .al-fontbtn + .al-fontbtn{border-left:1px solid var(--al-line)}
.al-fontset .al-fontbtn-reset{min-width:3.625rem}
.al-fontset .al-fontbtn:enabled:hover{background-color:var(--al-bg);color:var(--al-deep)}
.al-fontset .al-fontbtn:disabled{opacity:.35;cursor:default}
.al-themebtn{margin-left:8px}

/* --------------------------------------------------------------------------
   4. 헤더 / 주요 메뉴
   -------------------------------------------------------------------------- */
.al-header{
    position:sticky;top:0;z-index:60;
    background-color:color-mix(in srgb,var(--al-surface) 96%,transparent);
    border-bottom:1px solid var(--al-line);
    backdrop-filter:blur(14px);
}
@supports not (background-color:color-mix(in srgb,#fff 96%,transparent)){
    .al-header{background-color:var(--al-surface)}
}
.al-head{min-height:var(--al-head-h);display:flex;align-items:center;gap:18px}
/* 로고도 같은 칸 안입니다. 여기가 커지면 가장 먼저 가로로 밀려나갑니다. */
.al-logo{display:flex;align-items:center;gap:12px;flex:none;min-height:64px}
.al-logo img{width:68px;height:58px;object-fit:contain}
.al-logo b{display:block;font-size:23px;line-height:1.15;letter-spacing:-.05em}
/* 로고 : 앞은 사과 빨강, 뒤는 잉크색 (기존 로고 이미지와 같은 배색) */
.al-logo-a{font-style:normal;color:var(--al-red)}
.al-logo small{display:block;margin-top:3px;color:var(--al-green);font-size:12px;font-weight:700;letter-spacing:.12em}

.al-gnb{flex:1;align-self:stretch;position:relative;display:flex;justify-content:center}
.al-gnb-list{display:flex;align-items:stretch;list-style:none;margin:0;padding:0;width:100%}
.al-gnb-list > li{flex:1;display:flex}
.al-gnb-list > li > a{
    position:relative;flex:1;
    display:flex;align-items:center;justify-content:center;
    padding:0 6px;text-align:center;
    font-size:1.125rem;font-weight:500;line-height:1.25;
}
.al-gnb-list > li > a::after{
    content:"";position:absolute;left:10px;right:10px;bottom:0;height:3px;
    background-color:var(--al-red);transform:scaleX(0);transition:transform .2s;
}
/* is-open : 부메뉴 위에 마우스가 있을 때도 해당 주메뉴 밑줄을 유지한다 (js/theme.js) */
.al-gnb-list > li:hover > a::after,
.al-gnb-list > li:focus-within > a::after,
.al-gnb-list > li.is-open > a::after{transform:scaleX(1)}

/* 메가메뉴는 주메뉴(.al-gnb)와 정확히 같은 폭·같은 시작점을 쓴다.
   .al-wrap(전체폭) 기준으로 그리면 주메뉴 6칸과 부메뉴 6칸의 세로줄이 어긋난다. */
.al-mega{
    /* 좌우 -1px : 테두리 두께만큼 밀어내야 안쪽 컬럼이 주메뉴와 정확히 일치한다 */
    position:absolute;top:100%;left:-1px;right:-1px;
    padding:20px 0 24px;
    background-color:var(--al-surface);
    border:1px solid var(--al-line);
    border-top:0;                      /* 주메뉴와 부메뉴 사이 빨간 구분선 제거 */
    border-radius:0 0 14px 14px;
    box-shadow:0 20px 45px rgb(var(--al-shadow) / .15);
    opacity:0;visibility:hidden;transform:translateY(8px);
    transition:opacity .22s,transform .22s,visibility .22s;
}
.al-gnb:hover .al-mega,.al-gnb:focus-within .al-mega{opacity:1;visibility:visible;transform:none}
.al-mega-grid{display:grid;gap:0;width:100%}
.al-mega-grid > div{min-width:0;padding:0 10px;border-right:1px solid var(--al-line-soft)}
.al-mega-grid > div:last-child{border-right:0}
/* 두 줄로 접히는 항목이 있어도 각 줄의 높이를 고정해
   컬럼끼리 가로줄까지 맞춘다 (48px = 2줄이 들어가는 높이) */
.al-mega-grid a{
    display:flex;align-items:center;justify-content:center;
    height:3rem;padding:0 6px;
    color:var(--al-ink);font-size:1rem;font-weight:400;line-height:1.3;
    text-align:center;
    border-radius:8px;
    transition:color .15s,background-color .15s;
}
.al-mega-grid a:hover{color:var(--al-deep);background-color:var(--al-bg)}

.al-actions{display:flex;align-items:center;flex:none}
/* ★ 여기는 rem 이 아니라 px 입니다.
   머리띄는 높이가 정해진 칸이라, 상단 "글자크기 +" 를 누를 때
   안의 글자까지 커지면 검색·메뉴가 칸을 넘어 화면 밖으로 밀려납니다.
   본문을 키우려고 누르는 단추이지 메뉴를 키우려는 것이 아니므로 고정합니다. */
.al-actions button,.al-actions a{
    min-width:56px;min-height:56px;padding:0 6px;
    display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;
    border:0;background-color:transparent;color:var(--al-ink);
    font-size:15px;font-weight:700;line-height:1.2;cursor:pointer;
}
.al-actions .al-ico{width:24px;height:24px;flex:none}
.al-actions .al-act-login{color:var(--al-deep)}
.al-act-menu{display:none !important}

/* --------------------------------------------------------------------------
   5. 우측 슬라이드 서랍 (메뉴 / 검색)
   -------------------------------------------------------------------------- */
.al-backdrop{position:fixed;inset:0;z-index:200;display:none;justify-content:flex-end;background-color:rgb(0 0 0 / .55)}
.al-backdrop.is-open{display:flex}
.al-drawer{
    width:min(560px,94vw);height:100%;overflow-y:auto;
    padding:20px 28px 28px;
    display:flex;flex-direction:column;
    background-color:var(--al-surface);
    animation:al-slide-in .25s ease;
}
/* 첫 줄 : 로고(왼쪽) · 닫기(오른쪽). 높이를 맞춰 나란히 둡니다.

   머리 부분은 서랍 양쪽 끝까지 색이 차야 합니다.
   .al-drawer 가 좌우 28px 안여백을 가지고 있어, 그만큼 밖으로 내보낸 뒤
   같은 만큼 안여백을 다시 줍니다. (이러면 가로로 꽉 차는 띄가 됩니다)
   ★ background 단축을 쓰면 background-repeat 이 되돌아가 무늬이 반복됩니다. */
.al-drawer-top{
    display:flex;align-items:center;justify-content:space-between;gap:12px;
    margin:-20px -28px 0;
    padding:16px 28px;
    border-bottom:1px solid var(--al-line);
    background-color:var(--al-surface);
    background-image:linear-gradient(180deg, var(--al-bg), var(--al-surface));
    background-repeat:no-repeat;
}
/* 서랍 안에서 머리 바로 아래 칸은 띄와 붙지 않게 띄웁니다 */
.al-drawer-top + *{margin-top:1.25rem}
/* 머리에 아랫줄이 생겼으므로 바로 다음 칸의 윗줄은 뺀니다.
   그대로 두면 선이 두 개로 보입니다. */
.al-drawer-top + .al-drawer-acc{border-top:0;padding-top:0}
/* 검색 서랍의 첫 줄 제목은 조금 크게 */
.al-drawer-top .al-eyeb{font-size:1.25rem}
/* 닫기 버튼과 높이를 정확히 맞춥니다(둘 다 3rem).
   min-height 만으로는 안쪽 글줄 높이 때문에 더 커집니다. */
.al-drawer-top .al-logo{min-height:2.75rem;height:2.75rem;line-height:1}
.al-drawer-top .al-logo img{width:2.5rem;height:2.5rem}
.al-drawer-top .al-logo b{font-size:1.125rem}
.al-drawer-top .al-logo small{margin-top:2px}

/* 둘째 줄 : 회원가입 · 로그인  (로그인 중이면 내 정보 · 로그아웃)
   버튼 두 개를 반반씩 나눠 가운데 정렬합니다. */
.al-drawer-acc{
    display:grid;grid-template-columns:1fr 1fr;gap:.625rem;
    margin-top:1rem;padding-top:1rem;
    border-top:1px solid var(--al-line);
}
.al-drawer-acc a{
    display:flex;align-items:center;justify-content:center;
    min-height:3rem;padding:0 .75rem;
    border:1px solid var(--al-line);border-radius:var(--al-btn-radius);
    background-color:var(--al-surface);
    color:var(--al-ink);font-size:1rem;font-weight:600;
    transition:color .15s,border-color .15s,background-color .15s;
}
.al-drawer-acc a:hover{border-color:var(--al-red);background-color:var(--al-red);color:#fff}
/* 사이 구분 기호는 버튼으로 바뀌어 필요 없습니다 */
.al-drawer-acc i{display:none}

/* details 마다 위쪽에만 선이 있어 마지막 메뉴 아래는 비어 있습니다.
   메뉴 묶음이 끝났다는 표시로 아래쪽 선을 하나 더 둡니다. */
.al-drawer-menu{margin-top:.5rem;border-bottom:1px solid var(--al-line)}
@keyframes al-slide-in{from{transform:translateX(100%)}}
/* 닫기 : 글자 없이 X 아이콘만. 정사각형으로 작게 둡니다.
   테두리와 ╳ 를 사과빛 빨강으로. 누르면 빨강이 채워집니다.
   ★ 안에 아이콘 태그를 또 넣지 마세요. ╳ 는 아래 ::before 가 그립니다. */
.al-drawer-close{
    flex:none;
    display:inline-flex;align-items:center;justify-content:center;
    width:2.75rem;height:2.75rem;min-width:2.75rem;min-height:2.75rem;padding:0;
    border:1px solid var(--al-red);border-radius:var(--al-btn-radius);
    background-color:var(--al-surface);color:var(--al-red);
    transition:background-color .2s,color .2s;
    font-weight:700;cursor:pointer;
}
.al-drawer-close:hover,
.al-drawer-close:focus{background-color:var(--al-red);color:#fff}
.al-drawer-close::before{content:"\2573";font-size:1rem;line-height:1}
.al-drawer h2{margin:6px 0 18px;font-size:clamp(26px,4vw,34px)}
/* 마지막 줄 : 글자크기(왼쪽) · 화면 밝기(오른쪽).
   메뉴가 끝난 자리에서 30px 띄우고 바로 이어집니다(바닥에 붙이지 않습니다). */
.al-drawer-fonts{
    flex:none;display:flex;align-items:center;gap:10px;
    margin-top:1.875rem;padding:12px;
    background-color:var(--al-bg);border-radius:10px;font-weight:600;
}
/* 글자크기 버튼과 밝기 버튼의 높이·너비를 똑같이 맞춥니다.
   제목을 없앤 만큼 버튼이 남는 자리를 고르게 나눠 씁니다. */
.al-drawer-fonts .al-fontset{flex:1 1 auto;display:flex}
.al-drawer-fonts .al-fontbtn,
.al-drawer-fonts .al-themebtn{
    flex:1 1 0;min-width:0;min-height:3rem;
    padding:0 .5rem;
    font-size:1rem;line-height:1;white-space:nowrap;
}
.al-drawer-fonts .al-themebtn{flex:0 0 auto;min-width:4.5rem;margin-left:.625rem}
.al-drawer details{border-top:1px solid var(--al-line)}
.al-drawer summary{display:flex;align-items:center;justify-content:space-between;min-height:3.75rem;font-size:1.125rem;font-weight:700;cursor:pointer;list-style:none}
.al-drawer summary::-webkit-details-marker{display:none}
.al-drawer summary span{color:var(--al-deep);font-size:1.375rem}
.al-drawer details[open] summary span{transform:rotate(45deg)}
.al-drawer details > a{display:flex;align-items:center;min-height:3.25rem;padding:0 16px;border-top:1px solid var(--al-line-soft);color:var(--al-sub);font-weight:600}
.al-search-box{display:flex;gap:8px}
.al-search-box input{flex:1;min-width:0;min-height:3.75rem;padding:0 16px;border:2px solid var(--al-ink);border-radius:var(--al-btn-radius);background-color:var(--al-surface);color:var(--al-ink);font-size:1.125rem}
.al-search-box button{min-width:6.875rem;min-height:3.75rem;display:flex;align-items:center;justify-content:center;gap:6px;border:0;border-radius:var(--al-btn-radius);background-color:var(--al-red);color:#fff;font-weight:700;cursor:pointer}
/* 추천 검색어 : 제목은 가운데, 위로 살짝 띄웁니다 */
.al-drawer .al-form-help{margin-top:1.75rem;text-align:center}
.al-chips{display:flex;flex-wrap:wrap;justify-content:center;gap:8px;margin-top:12px}
.al-chips a{display:inline-flex;align-items:center;min-height:2.75rem;padding:0 16px;border:1px solid var(--al-line);border-radius:24px;font-weight:600}
.al-chips a:hover{border-color:var(--al-red);color:var(--al-deep)}

/* --------------------------------------------------------------------------
   본문 타이포 (참고 사이트 기준 : 큰제목 80 / 섹션제목 40 / 본문 16)
   어르신 이용이 많아 본문만 18px 로 올리고 줄 높이를 넉넉하게 둡니다.
   줄 높이는 배수로 써야 글자를 키워도 줄이 겹치지 않습니다.
   -------------------------------------------------------------------------- */
.al-tit-xl{ font-size:clamp(2.25rem,5vw,4rem); font-weight:700; line-height:1.2; letter-spacing:-.03em; }
.al-tit-lg{ font-size:clamp(1.625rem,3.2vw,2.5rem); font-weight:600; line-height:1.3; letter-spacing:-.02em; color:var(--al-ink); }
.al-txt{ font-size:1.125rem; font-weight:400; line-height:1.8; color:var(--al-ink); word-break:keep-all; }
.al-txt + .al-txt{ margin-top:1.125rem; }
.al-txt-sub{ color:var(--al-sub); }

@media (max-width:768px){
    .al-txt{ font-size:1rem; }
    .al-gnb-list > li > a{ font-size:1rem; }
}

/* --------------------------------------------------------------------------
   푸터 / 모바일 고정 메뉴 / 맨 위로
   -------------------------------------------------------------------------- */
/* 푸터 바로 위 : 법적 안내 링크 한 줄 (푸터보다 한 톤 밝게) */
/* ==========================================================================
   유용한 사이트 — 푸터 위 관계 기관 링크 띠 (tail.php)

   ★ 개수가 바뀌어도 손댈 것이 없습니다
     칸 수를 세지 않고 격자에 맡깁니다. 넓은 화면 5칸,
     태블릿 3칸, 휴대폰 2칸으로 접히고 남으면 아랫줄로 넘어갑니다.
   ========================================================================== */
.al-gov{padding:2.25rem 0;background-color:var(--al-bg);border-top:1px solid var(--al-line-soft)}
.al-gov-tit{
    display:block;margin-bottom:1rem;
    color:var(--al-ink);font-size:1rem;font-weight:700;letter-spacing:-.01em;
}
.al-gov-list{
    display:grid;grid-template-columns:repeat(6,1fr);gap:.625rem;
    margin:0;padding:0;list-style:none;
}
.al-gov-list > li{margin:0;padding:0;list-style:none}
.al-gov-list a{
    position:relative;
    display:flex;flex-direction:column;justify-content:center;
    box-sizing:border-box;
    width:100%;height:100%;min-height:3.75rem;
    padding:.75rem 1.625rem .75rem .75rem;
    overflow:hidden;
    border:1px solid rgb(var(--al-gov-c) / .28);border-radius:var(--al-radius-sm);
    /* ★ 카드마다 색이 다릅니다. 아래 nth-child 에서 --al-gov-c 하나만 바꿉니다.
         그러데이션 식은 여기 한 번만 적으므로 중복 정의가 없습니다.
         일곱째부터는 기본 초록을 그대로 씁니다(링크가 늘어도 안전). */
    --al-gov-c:31 122 76;
    color:rgb(var(--al-gov-c));
    /* ★ background 단축을 쓰면 background-repeat 이 되살아나 무늬가 깔립니다.
         색과 그러데이션을 따로 적습니다. */
    background-color:var(--al-surface);
    background-image:linear-gradient(135deg,
        rgb(var(--al-gov-c) / .16) 0%,
        rgb(var(--al-gov-c) / .03) 62%);
    background-repeat:no-repeat;
    transition:border-color .2s,transform .2s,box-shadow .2s,background-image .2s;
}
/* 카드별 바탕색 — 기관 성격에 맞춰 서로 구분되되 한 계열로 묶었습니다 */
.al-gov-list > li:nth-child(1) a{--al-gov-c:31 122 76}    /* 초록 : 원예특작 */
.al-gov-list > li:nth-child(2) a{--al-gov-c:20 110 125}   /* 청록 : 농약안전 */
.al-gov-list > li:nth-child(3) a{--al-gov-c:42 80 150}    /* 남색 : 병해충 */
.al-gov-list > li:nth-child(4) a{--al-gov-c:100 70 150}   /* 보라 : 작물보호협회 */
.al-gov-list > li:nth-child(5) a{--al-gov-c:190 105 30}   /* 호박 : 농사로 */
.al-gov-list > li:nth-child(6) a{--al-gov-c:25 120 170}   /* 하늘 : 기상자료 */

.al-gov-list a:hover{
    transform:translateY(-2px);
    box-shadow:0 8px 18px rgb(0 0 0 / .10);
    border-color:rgb(var(--al-gov-c) / .6);
    background-image:linear-gradient(135deg,
        rgb(var(--al-gov-c) / .26) 0%,
        rgb(var(--al-gov-c) / .05) 62%);
}
.al-gov-list a:focus-visible{outline:2px solid rgb(var(--al-gov-c));outline-offset:2px}
/* 글자는 장식 위로 올립니다 */
.al-gov-name{
    font-size:0.875rem;font-weight:700;word-break:keep-all;line-height:1.35;
}
.al-gov-list small{
    margin-top:.1875rem;color:var(--al-sub);font-size:0.8125rem;
    word-break:keep-all;line-height:1.35;
}
/* 어절 하나가 칸보다 길면(예: 국가농작물병해충관리시스템) 칸을 넘칩니다.
   그때만 글자 사이에서 끊습니다. 보통 낱말은 그대로 붙어 있습니다. */
.al-gov-name,
.al-gov-list small{overflow-wrap:anywhere}
/* 바깥으로 나가는 표시 — 오른쪽 위 */
.al-gov-ico{
    position:absolute;right:.5rem;top:.75rem;
    width:12px;height:12px;
    fill:none;stroke:rgb(var(--al-gov-c) / .7);stroke-width:1.8;
    stroke-linecap:round;stroke-linejoin:round;
}
.al-gov-list a:hover .al-gov-ico{stroke:rgb(var(--al-gov-c))}

@media (max-width:1024px){
    .al-gov-list{grid-template-columns:repeat(3,1fr)}
}
@media (max-width:768px){
    .al-gov{padding:1.5rem 0}
    .al-gov-list{grid-template-columns:repeat(2,1fr);gap:.5rem}
    .al-gov-list a{min-height:3.25rem;padding:.625rem 1.5rem .625rem .625rem}
    .al-gov-ico{right:.4375rem;top:.75rem;width:12px;height:12px}
    .al-gov-name{font-size:0.8125rem}
    .al-gov-list small{font-size:0.75rem}
}

/* ==========================================================================
   푸터 — 붉은 한 덩어리 (tail.php)

   ★ 예전에는 어두운 푸터 위에 붉은 회원가입 띠가 따로 있었습니다.
     계좌번호가 두 곳에 나오고 화면도 길어져 하나로 합쳤습니다.

   위 : 약관 안내 6줄   가운데 : 왼쪽 소개 · 오른쪽 회비 계좌
   아래 : 저작권 (관리자에게는 방문자 수도)
   ========================================================================== */
/* 바탕은 짙은 먹빛 초록. 아래 저작권 띠(#1a1c1a)와 이어지고,
   위 AD 배너 띠의 초록과도 한 계열입니다. */
.al-footer{padding:2rem 0 0;background-color:#232a24;color:#fff}
[data-theme="dark"] .al-footer{background-color:#1b201c}

/* 위 — 약관 안내 */
.al-foot-law{
    display:flex;flex-wrap:wrap;align-items:center;gap:0 1.5rem;
    padding-bottom:.75rem;
    border-bottom:1px solid rgb(255 255 255 / .14);
}
.al-foot-law a{
    position:relative;
    display:inline-flex;align-items:center;min-height:2.75rem;
    color:#d6ddd5;font-size:0.9375rem;font-weight:500;
}
.al-foot-law a + a::before{
    content:"";position:absolute;left:-0.75rem;top:50%;
    width:1px;height:0.75rem;margin-top:-0.375rem;
    background-color:rgb(255 255 255 / .24);
}
.al-foot-law a:hover{color:#fff;text-decoration:underline}

/* 가운데 — 왼쪽 소개 · 오른쪽 회비 계좌 */
.al-foot-main{
    display:flex;align-items:center;justify-content:space-between;
    gap:2.5rem;padding:1.75rem 0 2rem;
}
.al-foot-brand{min-width:0}
.al-foot-brand .al-logo b,
.al-foot-brand .al-logo small{color:#fff}
/* 붉은 바탕에서는 원래 분홍 글자가 묻힙니다. 밝은 쪽으로 올립니다. */
.al-foot-brand .al-logo-a{color:#ff8f93}
.al-foot-brand p{
    margin-top:0.75rem;color:#b3bcb2;font-size:0.9375rem;line-height:1.7;
    word-break:keep-all;
}
.al-foot-tel{
    display:inline-flex;align-items:center;
    margin-top:0.875rem;min-height:2.75rem;
    color:#fff;font-size:1.25rem;font-weight:700;letter-spacing:-.01em;
    white-space:nowrap;
}
.al-foot-tel:hover{text-decoration:underline}

/* 아래 — 저작권 · 방문자 수 */
/* 저작권 띠 — 화면 폭을 꽉 채우는 어두운 줄.
   ★ 붉은 푸터가 화면 끝까지 이어지면 눈이 쉬지 못합니다.
     저작권 줄은 대개 가장 어두운 색으로 깔아 마무리합니다. */
.al-foot-bottom{background-color:#1a1c1a;padding:1.0625rem 0}
.al-foot-bottom > .al-wrap{
    display:flex;align-items:center;justify-content:space-between;
    flex-wrap:wrap;gap:.75rem 1.5rem;
}
.al-copy{color:#9aa199;font-size:0.9375rem}

.al-foot-last{display:flex;align-items:center;gap:.75rem;flex-wrap:wrap}
.al-foot-gear{
    display:inline-flex;align-items:center;justify-content:center;
    width:2.25rem;height:2.25rem;
    border:1px solid #3a3f3a;border-radius:50%;
    background-color:transparent;color:#9aa199;
    transition:color .15s,background-color .15s,border-color .15s;
}
.al-foot-gear:hover{border-color:#fff;background-color:#fff;color:#1a1c1a}

.al-mobilebar{display:none}

/* 맨 위로 */
#top_btn{
    position:fixed;right:20px;bottom:20px;z-index:56;
    width:3rem;height:3rem;
    border:1px solid var(--al-line);border-radius:50%;
    background-color:var(--al-surface);color:var(--al-ink);
    font-size:1.125rem;cursor:pointer;
    box-shadow:0 6px 18px rgb(0 0 0 / .14);
}
#top_btn:hover{background-color:var(--al-bg);color:var(--al-red)}

@media (max-width:768px){
    /* 아래 고정바(72px)에 가리지 않도록 넉넉히 띄웁니다 */
    .al-footer{padding:1.25rem 0 0}
    /* 아래 고정바(72px)에 가리지 않도록 저작권 띠 아래를 넉넉히 띄웁니다 */
    .al-foot-bottom{padding:.875rem 0 5.625rem}
    /* 약관 안내 : 3개씩 두 줄 */
    .al-foot-law{display:grid;grid-template-columns:repeat(3,1fr);gap:0;padding-bottom:.25rem}
    .al-foot-law a{justify-content:center;min-height:2.5rem;font-size:0.8125rem;text-align:center;word-break:keep-all}
    .al-foot-law a + a::before{display:none}
    .al-foot-law a:nth-child(-n+3){border-bottom:1px solid rgb(255 255 255 / .18)}
    /* 소개와 회비 상자를 위아래로 쌓습니다 */
    .al-foot-main{flex-direction:column;align-items:stretch;gap:1.5rem;padding:1.375rem 0}
    .al-foot-tel{font-size:1.125rem}
    .al-foot-bottom > .al-wrap{flex-direction:column;align-items:flex-start}
    /* ★ 아래 고정바도 px 입니다.
       네 칸이 화면 폭을 또같이 나누어 쓰므로 글자가 커지면
       "행복쉰터" 같은 네 글자가 칸을 넘어 줄바꿈되거나 잘립니다. */
    .al-mobilebar{
        position:fixed;left:0;right:0;bottom:0;z-index:55;
        height:72px;display:grid;grid-template-columns:repeat(4,1fr);
        background-color:var(--al-surface);border-top:1px solid var(--al-line);
        box-shadow:0 -8px 24px rgb(0 0 0 / .1);
    }
    .al-mobilebar a{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;font-size:22px;color:var(--al-ink)}
    .al-mobilebar span{font-size:13px;font-weight:600}
    /* 모바일에는 아래 고정바가 있어 "맨 위로" 버튼과 겹칩니다.
       손가락으로 위로 쓸어 올리면 되므로 숨깁니다. */
    #top_btn{display:none}

}

/* --------------------------------------------------------------------------
   6. 메인 히어로 슬라이더
   -------------------------------------------------------------------------- */
.al-hero{position:relative;height:720px;overflow:hidden;background-color:#203321;color:#fff}
.al-slide{position:absolute;inset:0;isolation:isolate;opacity:0;visibility:hidden;transition:opacity 1s ease;background-position:center;background-size:cover;background-repeat:no-repeat}
.al-slide.is-active{opacity:1;visibility:visible}
/* 1번 사진은 좌우를 뒤집어 씁니다.
   글자까지 뒤집히면 안 되므로, 사진만 ::before 로 따로 깔고 그 층만 뒤집습니다.
   z-index:-1 은 .al-slide 의 isolation 안에 갇혀 다른 요소를 가리지 않습니다. */
.al-slide-1{background-image:none}
.al-slide-1::before{
    content:"";position:absolute;inset:0;z-index:-1;
    background-image:url("../img/apple-hero.jpg");
    background-position:center;background-size:cover;background-repeat:no-repeat;
    transform:scaleX(-1);
}
.al-slide-2{background-image:url("../img/apple-community.jpg");background-position:center 40%}
.al-slide-3{background-image:url("../img/apple-market.jpg");background-position:center 56%}
/* 글자 뒤에 별도 상자를 두면 그 상자의 경계가 "투명 사각형"으로 보인다.
   그래서 슬라이드 전체를 덮는 가로 그라데이션 하나로만 처리한다.
   글자가 놓인 왼쪽 60% 는 어둡게, 오른쪽은 0 까지 떨어뜨려 사진이 그대로 보이게 한다. */
.al-shade{position:absolute;z-index:1;inset:0;background-image:linear-gradient(90deg,rgb(12 18 12 / .34) 0%,rgb(12 18 12 / .26) 38%,rgb(12 18 12 / .08) 74%,rgb(12 18 12 / 0) 100%)}

/* 2번 슬라이드 유튜브 배경 영상
   화면비가 어떻든 빈 공간 없이 꽉 차도록 16:9 를 넘치게 잡아 가운데 정렬한다.
   영상 위에는 .al-shade 가 덮이므로 흰 글자의 명도대비가 유지된다. */
.al-video-stage{
    position:absolute;z-index:0;inset:0;overflow:hidden;
    /* 영상이 준비되기 전(또는 재생이 막힌 환경)에 보여줄 사진 */
    background-image:url("../img/apple-community.jpg");
    background-position:center 40%;
    background-size:cover;
    background-repeat:no-repeat;
}
.al-video-stage iframe{
    position:absolute;top:50%;left:50%;
    width:177.78vh;min-width:100%;
    height:56.25vw;min-height:100%;
    /* 1.12배 확대 : 유튜브가 가장자리에 그리는 로고·진행바를 화면 밖으로 밀어낸다 */
    transform:translate(-50%,-50%) scale(1.12);
    border:0;pointer-events:none;
    opacity:0;transition:opacity .9s ease;
}
.al-video-stage.is-ready iframe{opacity:1}
.al-slide-video .al-shade{background-image:linear-gradient(90deg,rgb(8 14 8 / .32) 0%,rgb(8 14 8 / .24) 38%,rgb(8 14 8 / .07) 74%,rgb(8 14 8 / 0) 100%)}
.al-slide-3 .al-shade{background-image:linear-gradient(90deg,rgb(40 12 6 / .38) 0%,rgb(38 14 8 / .28) 38%,rgb(20 16 12 / .08) 74%,rgb(20 16 12 / 0) 100%)}
.al-hero-in{position:relative;z-index:2;height:100%;display:flex;flex-direction:column;justify-content:center;padding:60px 0 120px}
/* 오버레이를 밝힌 만큼 글자에 입체감을 줘서 가독성을 지킨다.
   테두리(스트로크) 대신 겹겹의 그림자를 써야 글자가 뭉개지지 않는다. */
/* 배경을 어둡게 덮는 대신 글자에 바짝 붙는 그림자(후광)를 준다.
   번짐 반경을 작게 여러 겹 쌓아야 사진을 가리지 않으면서 글자가 또렷해진다. */
.al-hero .al-eyebrow,
.al-hero-lead,
.al-hero-stats{
    text-shadow:
        0 0 2px rgb(var(--al-hero-shadow) / .70),
        0 1px 3px rgb(var(--al-hero-shadow) / .55),
        0 3px 10px rgb(var(--al-hero-shadow) / .32);
}
.al-hero h2{
    text-shadow:
        0 0 2px rgb(var(--al-hero-shadow) / .76),
        0 0 6px rgb(var(--al-hero-shadow) / .45),
        0 2px 4px rgb(var(--al-hero-shadow) / .58),
        0 6px 18px rgb(var(--al-hero-shadow) / .32);
}
.al-eyebrow{color:#ffd6b4;font-size:1rem;font-weight:700;letter-spacing:.12em}
.al-hero h2{margin:18px 0;font-size:clamp(40px,4.6vw,68px);line-height:1.18}
.al-hero h2 em{color:#ff8c71;font-style:normal}
.al-hero-lead{font-size:1.125rem;line-height:1.75;color:#f2f6f1}
.al-hero-btns{display:flex;gap:12px;margin-top:32px}
.al-hero-btns a{min-height:60px;padding:0 28px;display:flex;align-items:center;gap:9px;border-radius:var(--al-btn-radius);font-size:1.125rem;font-weight:700;transition:transform .2s,background-color .2s}
.al-hero-btns a:first-child{background-color:var(--al-red);color:#fff;box-shadow:0 10px 28px rgb(176 24 35 / .4);animation:al-pulse 2.8s infinite}
.al-hero-btns a:first-child:hover{transform:translateY(-3px);background-color:#b6242c}
.al-hero-btns a:last-child{border:2px solid #fff;background-color:rgb(16 24 16 / .35);color:#fff}
.al-hero-stats{display:flex;flex-wrap:wrap;gap:36px;margin-top:46px}
.al-hero-stats span{padding-left:16px;border-left:2px solid rgb(255 255 255 / .45);font-size:0.9375rem}
/* 숫자가 올라가는 동안 폭이 자꾸 바뀌어 글자가 출렁거립니다.
   Pretendard 에 들어 있는 "가지런히 줄 맞춘 숫자"를 씁니다.
   글꼴을 바꾸는 것이 아니라 같은 글꼴 안의 다른 숫자모양을 쓰는 것이라
   생김새는 그대로고 폭만 모두 같아집니다.
   (뚜뚜한 글꼴로 바꾸면 안의 한글과 가족이 안 맞습니다) */
.al-hero-stats b{
    display:block;font-size:1.5rem;
    font-variant-numeric:tabular-nums;
    font-feature-settings:"tnum" 1;   /* 예전 브라우저용 */
}

/* 좌우 이동 : 정사각형 반투명 버튼 + 큰 화살표 */
.al-hero-nav{
    position:absolute;z-index:5;top:50%;
    width:68px;height:68px;margin-top:-34px;
    display:grid;place-items:center;
    border:1px solid rgb(255 255 255 / .55);border-radius:0;   /* 정사각형 */
    background-color:rgb(16 26 16 / .30);
    backdrop-filter:blur(3px);
    color:#fff;cursor:pointer;
    transition:background-color .2s,transform .2s,border-color .2s;
}
.al-hero-nav svg{width:38px;height:38px;fill:none;stroke:currentColor;stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round}
.al-hero-nav:hover{background-color:rgb(217 54 61 / .85);border-color:#fff;transform:scale(1.06)}
.al-hero-prev{left:16px}
.al-hero-next{right:16px}

/* 화살표(68px)가 세로 가운데에 있으므로, 좌우 여백이 모자란 폭에서는
   히어로 글자를 안쪽으로 들여 버튼이 글자·버튼을 덮지 않게 한다.
   화면이 아주 넓으면(1501px~) 원래 여백만으로 충분해 들여쓰지 않는다. */
@media (min-width:761px) and (max-width:1500px){
    .al-hero-in{padding-left:96px;padding-right:96px}
}

/* 슬라이드 번호 + 정지/재생 토글을 한 줄에 */
.al-hero-controls{
    /* left:0;right:0 으로 두면 이 투명 상자가 전폭을 덮어 좌우 버튼 클릭을 먹어버린다 */
    position:absolute;z-index:5;left:50%;bottom:74px;
    transform:translateX(-50%);
    display:flex;align-items:center;gap:14px;
}
.al-hero-dots{display:flex;align-items:center;gap:11px}
.al-hero-dots button{width:18px;height:18px;padding:0;border:2px solid #fff;border-radius:10px;background-color:transparent;cursor:pointer;transition:width .25s}
.al-hero-dots button[aria-current="true"]{width:50px;background-color:#fff}
.al-hero-play{
    width:34px;height:34px;padding:0;
    display:grid;place-items:center;
    border:1px solid rgb(255 255 255 / .55);border-radius:50%;
    background-color:rgb(16 26 16 / .35);
    color:#fff;cursor:pointer;
    transition:background-color .2s;
}
.al-hero-play:hover{background-color:rgb(217 54 61 / .85)}
.al-hero-play svg{width:15px;height:15px;fill:none;stroke:currentColor;stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round}
.al-hero-play .al-ico-play{display:none;fill:currentColor;stroke:none}
.al-hero-play[aria-pressed="false"] .al-ico-pause{display:none}
.al-hero-play[aria-pressed="false"] .al-ico-play{display:block}

/* 자동넘김 버튼이 있던 자리에 외부 바로가기 두 개 */
.al-hero-links{
    position:absolute;z-index:5;right:24px;bottom:70px;
    display:flex;align-items:center;gap:10px;
}
.al-hero-link{
    display:inline-flex;align-items:center;gap:9px;
    min-height:54px;padding:0 20px;
    border:1px solid rgb(255 255 255 / .55);border-radius:var(--al-btn-radius);
    background-color:rgb(16 26 16 / .42);
    backdrop-filter:blur(3px);
    color:#fff;font-size:1rem;font-weight:700;white-space:nowrap;
    transition:background-color .2s,border-color .2s;
}
.al-hero-link svg{width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.al-hero-link:hover{background-color:var(--al-green);border-color:var(--al-green);color:#fff}
.al-hero-link-band:hover{background-color:#03c75a;border-color:#03c75a}
.al-float{position:absolute;z-index:1;color:rgb(232 50 59 / .6);font-size:4.375rem;line-height:1;filter:drop-shadow(0 10px 20px rgb(0 0 0 / .4));animation:al-float 5s ease-in-out infinite}
.al-float-a{right:10%;top:20%}
.al-float-b{right:23%;bottom:18%;font-size:2.5rem;animation-delay:-2s}

/* --------------------------------------------------------------------------
   7. 퀵 바로가기
   -------------------------------------------------------------------------- */
/* 카드는 비주얼 위로 걸치게 두고, 겹치는 높이(--al-quick-lift)만큼만 투명하게 비운다.
   그 아래(카드 좌우 포함)는 다음 섹션과 같은 배경색으로 채워 색이 이어지게 한다. */
.al-quick{
    position:relative;z-index:10;
    margin-top:calc(-1 * var(--al-quick-lift));
    padding-bottom:8px;
    background-image:linear-gradient(180deg,
        transparent 0,
        transparent var(--al-quick-lift),
        var(--al-bg) var(--al-quick-lift));
}
/* overflow:hidden 을 쓰면 hover 로 떠오르는 칸이 잘린다.
   대신 양 끝 칸에만 모서리를 둥글려 같은 모양을 만든다. */
.al-quick-grid{
    display:grid;grid-template-columns:repeat(4,1fr);
    border-radius:20px;
    background-color:var(--al-surface);
    background-image:linear-gradient(180deg,var(--al-card-a),var(--al-card-b));
    box-shadow:
        0 1px 0 rgb(255 255 255 / .7) inset,
        0 2px 6px rgb(var(--al-shadow) / .05),
        0 20px 48px rgb(var(--al-shadow) / .13);
}
.al-quick-grid > a:first-child{border-radius:20px 0 0 20px}
.al-quick-grid > a:last-child{border-radius:0 20px 20px 0}
.al-quick-grid > a{
    position:relative;
    min-height:132px;padding:24px 22px;
    display:flex;align-items:center;gap:16px;
    transition:transform .28s cubic-bezier(.22,.8,.3,1),background-color .28s;
}
/* 칸 사이 구분선 : 위아래로 흐려지는 가는 선 */
.al-quick-grid > a::before{
    content:"";position:absolute;right:0;top:22px;bottom:22px;width:1px;
    background-image:linear-gradient(180deg,transparent,var(--al-line),transparent);
}
.al-quick-grid > a:last-child::before{display:none}
/* 마우스를 올리면 아래쪽에 가는 강조선 */
.al-quick-grid > a::after{
    content:"";position:absolute;left:24px;right:24px;bottom:14px;height:3px;
    border-radius:2px;background-color:var(--al-red);
    transform:scaleX(0);transform-origin:left;transition:transform .28s;
}
.al-quick-grid > a:hover{transform:translateY(-6px)}
.al-quick-grid > a:hover::after{transform:scaleX(1)}

.al-quick-grid i{
    width:58px;height:58px;flex:none;
    display:grid;place-items:center;
    border-radius:19px;
    background-image:linear-gradient(145deg,var(--al-tile1-a),var(--al-tile1-b));
    box-shadow:0 1px 0 rgb(255 255 255 / .8) inset,0 6px 14px rgb(var(--al-shadow) / .10);
    font-size:1.75rem;font-style:normal;
    transition:transform .3s,box-shadow .3s;
}
.al-quick-grid > a:nth-child(2) i{background-image:linear-gradient(145deg,var(--al-tile2-a),var(--al-tile2-b))}
.al-quick-grid > a:nth-child(3) i{background-image:linear-gradient(145deg,var(--al-tile3-a),var(--al-tile3-b))}
.al-quick-grid > a:nth-child(4) i{background-image:linear-gradient(145deg,var(--al-tile4-a),var(--al-tile4-b))}
.al-quick-grid > a:hover i{transform:translateY(-2px) scale(1.06);box-shadow:0 1px 0 rgb(255 255 255 / .8) inset,0 10px 20px rgb(var(--al-shadow) / .16)}

.al-quick-grid b{display:block;font-size:1.125rem;letter-spacing:-.02em}
.al-quick-grid small{display:block;margin-top:3px;color:var(--al-sub);font-size:0.9375rem}
.al-quick-grid .al-ico{
    width:34px;height:34px;padding:6px;margin-left:auto;flex:none;
    border-radius:50%;color:var(--al-deep);
    background-color:transparent;
    transition:background-color .25s,transform .25s,color .25s;
}
.al-quick-grid > a:hover .al-ico{background-color:var(--al-red);color:#fff;transform:translateX(3px)}

/* --------------------------------------------------------------------------
   8. 섹션 공통
   -------------------------------------------------------------------------- */
.al-section{padding:104px 0}
.al-section-bg{background-color:var(--al-bg)}
.al-eyeb{display:block;color:var(--al-deep);font-size:1rem;font-weight:700;letter-spacing:.06em}
.al-section h2{margin-top:8px;font-size:clamp(30px,3.2vw,46px)}
.al-shead{position:relative;display:flex;align-items:flex-end;justify-content:space-between;gap:28px;margin-bottom:38px}
.al-shead p{margin-top:10px;color:var(--al-sub)}

/* 제목 오른쪽 장식 도형 (내용 없음). 좁은 화면에서는 자리를 차지하지 않도록 숨긴다 */
/* 제목줄 오른쪽 장식 (사과).
   섹션 배경처럼 크고 은은하게 깔리도록 키우고, 글자와 겹치지 않게
   자리는 차지하지 않으면서(absolute) 뒤로 보냅니다. */
.al-deco{
    position:absolute;right:-1.5rem;top:50%;transform:translateY(-50%);
    z-index:0;pointer-events:none;
    width:17.5rem;height:11.25rem;flex:none;overflow:visible;opacity:.7;
}
.al-shead > div{position:relative;z-index:1}
.al-deco-ring{fill:none;stroke:var(--al-line);stroke-width:1.5}
.al-deco-ring-2{stroke-dasharray:5 7;opacity:.9}
.al-deco-apple{fill:var(--al-red);opacity:.14}
.al-deco-stem{fill:none;stroke:var(--al-green);stroke-width:2.4;stroke-linecap:round;opacity:.5}
.al-deco-leaf{fill:var(--al-green);opacity:.3}
.al-more{display:inline-flex;align-items:center;min-height:48px;color:var(--al-deep);font-weight:700;white-space:nowrap}
.al-more-btn{padding:0 20px;border:1px solid var(--al-line);border-radius:var(--al-btn-radius)}
.al-more-btn:hover{border-color:var(--al-red)}

/* --------------------------------------------------------------------------
   9. 이달의 과수원 작업
   -------------------------------------------------------------------------- */
.al-month-grid{display:grid;grid-template-columns:.85fr 1.5fr;gap:60px;align-items:center}
.al-month-intro p{max-width:440px;margin:18px 0 22px;color:var(--al-sub);font-size:1rem;line-height:1.85}
.al-tasks{overflow:hidden;border:1px solid var(--al-line);border-radius:var(--al-radius);background-color:var(--al-surface);box-shadow:0 15px 40px rgb(var(--al-shadow) / .08)}
.al-task-head{min-height:70px;padding:14px 26px;display:flex;align-items:center;justify-content:space-between;gap:12px;background-color:var(--al-green);color:#fff;font-weight:700}
.al-tasks article{min-height:126px;padding:22px 26px;display:grid;grid-template-columns:46px 1fr auto;gap:18px;align-items:center;border-bottom:1px solid var(--al-line);transition:padding .3s,background-color .3s}
.al-tasks article:last-child{border-bottom:0}
.al-tasks article:hover{padding-left:34px;background-color:var(--al-bg)}
.al-tasks article > i{color:#aeb5aa;font-size:1.375rem;font-style:normal;font-weight:700}
.al-tasks article b{font-size:1.125rem}
.al-tasks article p{margin-top:5px;color:var(--al-sub);font-size:1rem}
.al-tag{padding:5px 12px;border-radius:20px;background-color:#fff0dc;color:#7a4b00;font-size:0.9375rem;font-weight:700;white-space:nowrap}
[data-theme="dark"] .al-tag{background-color:#3a2f18;color:#ffd79a}

/* --------------------------------------------------------------------------
   10. 인기 이야기 (가로 스크롤)
   -------------------------------------------------------------------------- */
.al-swipe-guide{color:var(--al-sub);font-size:0.9375rem;font-weight:600}
/* 가로 스크롤 영역은 세로도 함께 잘라낸다(overflow-x:auto → y도 auto).
   hover 로 카드가 떠오를 때 위가 잘리므로 위·아래 여백을 주고 그만큼 끌어올린다. */
.al-hot-track{display:grid;grid-auto-flow:column;grid-auto-columns:minmax(310px,38%);gap:20px;padding:16px 2px 28px;margin:-12px 0 -8px;overflow-x:auto;scroll-snap-type:x mandatory}
.al-hot-card{position:relative;min-height:390px;overflow:hidden;border-radius:20px;background-color:#31402f;background-position:center;background-size:cover;color:#fff;scroll-snap-align:start;transition:transform .3s,box-shadow .3s}
/* 사진 위 흰 글자의 명도대비를 항상 확보하기 위한 어두운 그라데이션 */
.al-hot-card::before{content:"";position:absolute;inset:0;background-image:linear-gradient(rgb(14 20 14 / .22) 0%,rgb(14 20 14 / .62) 42%,rgb(14 20 14 / .95) 100%)}

/* 사진이 없는 글 : 가짜 사진 대신 색상 카드로 보여준다 */
.al-hot-text::before{display:none}
.al-hot-text{display:flex;flex-direction:column;justify-content:flex-end}
.al-hot-text > div{position:static;padding:28px}
.al-hot-text h3{font-size:1.625rem;line-height:1.35;margin:16px 0 10px}
/* 인기 순위 배지 */
.al-hot-rank{
    position:absolute;z-index:2;top:16px;left:16px;
    width:38px;height:38px;
    display:grid;place-items:center;
    border-radius:50%;
    background-color:var(--al-red);
    color:#fff;font-size:1.125rem;font-weight:700;font-style:normal;
    box-shadow:0 4px 12px rgb(0 0 0 / .35);
}
.al-hot-mark{
    position:absolute;top:2px;right:22px;
    font-size:9.375rem;line-height:1;font-style:normal;font-weight:700;
    color:rgb(255 255 255 / .18);
    pointer-events:none;
}
.al-hot-g1{background-image:linear-gradient(150deg,#1d4c3a,#2f8560)}
.al-hot-g2{background-image:linear-gradient(150deg,#8e1f27,#d0454b)}
.al-hot-g3{background-image:linear-gradient(150deg,#8a4a12,#d98b32)}
.al-hot-g4{background-image:linear-gradient(150deg,#1f3a52,#3c6d94)}
.al-hot-card:hover{transform:translateY(-8px);box-shadow:0 20px 40px rgb(var(--al-shadow) / .2)}
.al-hot-card > div{position:absolute;z-index:1;left:0;right:0;bottom:0;padding:90px 26px 26px}
.al-hot-card span{display:inline-flex;align-items:center;min-height:32px;padding:0 12px;border-radius:20px;background-color:#fff;color:var(--al-deep);font-size:0.9375rem;font-weight:700}
.al-hot-card h3{margin:13px 0 6px;font-size:1.375rem;line-height:1.42;text-shadow:0 2px 10px rgb(0 0 0 / .55)}
.al-hot-card p{color:#eff3ed;font-size:1rem}

/* --------------------------------------------------------------------------
   11. 커뮤니티 피드
   -------------------------------------------------------------------------- */
.al-feed-grid{display:grid;grid-template-columns:.8fr 1.2fr;gap:38px}
/* 커뮤니티 소식 왼쪽 큰 카드.

   사진은 ::before 에 깔고, 어둡게 덮는 층은 ::after 로 따로 둡니다.
   그래야 hover 로 사진만 서서히 커지고 글자는 그대로 있습니다.
   (배경 한 장에 background-size 를 키우면 세로가 짧아져 사진이 잘리거나 반복됩니다)

   background-repeat:no-repeat 을 반드시 적어 둡니다. 확대 중 세로가 모자라면
   기본값(repeat)이라 사진이 위아래로 이어붙어 보입니다. */
.al-feed-thumb{
    position:relative;overflow:hidden;isolation:isolate;
    min-height:500px;padding:38px;
    display:flex;flex-direction:column;justify-content:flex-end;
    border-radius:20px;color:#fff;
}
.al-feed-thumb::before{
    content:"";position:absolute;inset:0;z-index:-2;
    background-image:url("../img/apple-market.jpg");
    background-position:center;background-size:cover;background-repeat:no-repeat;
    transform:scale(1);
    transition:transform 6s ease-out;
}
/* 아래쪽만 살짝 어둡게 — 글자가 읽히는 정도까지만 */
.al-feed-thumb::after{
    content:"";position:absolute;inset:0;z-index:-1;
    background-image:linear-gradient(180deg,rgb(32 14 8 / 0) 45%,rgb(32 14 8 / .5) 76%,rgb(32 14 8 / .8) 100%);
}
.al-feed-thumb:hover::before{transform:scale(1.12)}
.al-feed-thumb span{font-size:1rem;font-weight:700}
.al-feed-thumb h3{margin:10px 0;font-size:clamp(26px,2.6vw,38px);line-height:1.35;text-shadow:0 2px 10px rgb(0 0 0 / .5)}
.al-feed-list{border-top:2px solid var(--al-ink)}
.al-feed-list > a{min-height:150px;display:grid;grid-template-columns:46px 1fr 26px;gap:16px;align-items:center;border-bottom:1px solid var(--al-line);transition:padding .3s,background-color .3s}
.al-feed-list > a:hover{padding-left:10px;background-color:var(--al-surface)}
.al-feed-list > a > i{color:#aab0a8;font-size:1.25rem;font-style:normal;font-weight:700}
.al-feed-list small{color:var(--al-deep);font-weight:700;font-size:0.9375rem}
.al-feed-list h3{margin:6px 0;font-size:1.125rem;line-height:1.45}
.al-feed-list p{color:var(--al-sub);font-size:0.9375rem}

/* 탭으로 보는 최신글 */
.al-tabs{position:relative;display:flex;flex-direction:column}

/* 탭 오른쪽 끝 더보기
   보이는 탭 안에만 두므로, 탭을 바꾸면 링크도 함께 바뀝니다.
   (숨은 탭은 display:none 이라 그 안의 더보기도 같이 숨습니다) */
.al-tab-more{
    position:absolute;top:0;right:0;
    display:inline-flex;align-items:center;gap:.375rem;
    height:3.5rem;padding:0 .25rem;
    color:var(--al-sub);font-size:0.9375rem;font-weight:600;
    transition:color .15s;
}
.al-tab-more:hover{color:var(--al-red)}
.al-tab-more span{transition:transform .15s}
.al-tab-more:hover span{transform:translateX(.1875rem)}

.al-tab-btns{
    display:flex;align-items:center;gap:6px;
    border-bottom:2px solid var(--al-ink);
}
.al-tab-btns button{
    position:relative;
    min-height:56px;padding:0 22px;
    border:0;border-radius:10px 10px 0 0;
    background-color:transparent;color:var(--al-sub);
    font-size:1.125rem;font-weight:700;cursor:pointer;
    transition:color .2s,background-color .2s;
}
.al-tab-btns button:hover{color:var(--al-ink);background-color:var(--al-bg)}
.al-tab-btns button[aria-selected="true"]{
    background-color:var(--al-ink);color:var(--al-surface);
}
.al-tab-panel{display:none}
.al-tab-panel.is-on{display:block}
/* 탭 안에서는 목록 위 검은 선이 중복되므로 뺀다 */
.al-tab-panel .al-feed-list{border-top:0}

/* 많이 보는 이야기 — 순위 목록 (PC 2열 : 1~5위 왼쪽, 6~10위 오른쪽) */
.al-best{padding-top:26px}
.al-best-list{
    margin:0;padding:0;list-style:none;
    column-count:2;column-gap:48px;
}
.al-best-list li{break-inside:avoid;-webkit-column-break-inside:avoid}
.al-best-list a{
    min-height:62px;padding:12px 6px;
    display:grid;grid-template-columns:38px auto minmax(0,1fr);gap:12px;align-items:center;
    border-bottom:1px solid var(--al-line);
    transition:padding var(--al-ease),background-color var(--al-ease);
}
.al-best-list a:hover{padding-left:14px;background-color:var(--al-surface)}
.al-best-no{
    justify-self:start;
    width:30px;height:30px;display:grid;place-items:center;
    border-radius:9px;
    background-color:var(--al-line-soft);color:var(--al-sub);
    font-style:normal;font-size:0.9375rem;font-weight:800;
}
.al-best-no.is-top{background-color:var(--al-red);color:#fff}
.al-best-bo{
    min-height:26px;padding:0 10px;display:inline-flex;align-items:center;
    border:1px solid var(--al-line);border-radius:999px;
    background-color:var(--al-surface);color:var(--al-deep);
    font-size:0.8125rem;font-weight:700;white-space:nowrap;
}
.al-best-tit{
    overflow:hidden;text-overflow:ellipsis;white-space:nowrap;
    color:var(--al-ink);font-size:1rem;font-weight:600;
}
.al-best-list a:hover .al-best-tit{color:var(--al-red)}
.al-best-cmt{color:var(--al-red);font-style:normal;font-weight:700;font-size:0.9375rem}
.al-best-heart{margin-left:6px;color:var(--al-red);font-style:normal;font-size:0.9375rem}
.al-best-none{padding:44px 4px;color:var(--al-sub);text-align:center}

/* 그룹 최신글 한 줄 — 게시판명 / 제목 / 작성자·날짜 */
.al-feed-rows > a{
    min-height:112px;padding:18px 4px;
    display:grid;grid-template-columns:1fr;gap:7px;align-content:center;
    border-bottom:1px solid var(--al-line);
    transition:padding .28s,background-color .28s;
}
.al-feed-rows > a:last-child{border-bottom:0}
.al-feed-rows > a:hover,.al-feed-rows > a:focus-visible{padding-left:14px;background-color:var(--al-surface)}
.al-frow-bo{
    justify-self:start;
    min-height:30px;padding:0 12px;display:inline-flex;align-items:center;
    /* 섹션 배경이 연한 회색(--al-bg)이라 같은 색을 쓰면 알약이 안 보인다 */
    border:1px solid var(--al-line);border-radius:999px;
    background-color:var(--al-surface);color:var(--al-deep);
    font-size:0.9375rem;font-weight:700;letter-spacing:-.01em;
}
.al-frow-tit{
    color:var(--al-ink);
    font-size:1.125rem;font-weight:600;line-height:1.45;
    word-break:keep-all;
}
.al-feed-rows > a:hover .al-frow-tit{color:var(--al-red)}
.al-frow-cmt{color:var(--al-red);font-style:normal;font-weight:700;font-size:0.9375rem}
.al-frow-meta{color:var(--al-sub);font-size:0.9375rem;white-space:nowrap}
.al-frow-meta b{font-weight:600}
.al-frow-meta i{margin:0 7px;font-style:normal;color:var(--al-line)}
.al-frow-none{padding:44px 4px;color:var(--al-sub);text-align:center}

/* --------------------------------------------------------------------------
   12. 광고 띠
   -------------------------------------------------------------------------- */
.al-adband{position:relative;overflow:hidden;padding:44px 0 52px;background-image:linear-gradient(120deg,#152e22,#214d37 52%,#163325);color:#fff}
.al-adband-head{display:flex;align-items:flex-end;justify-content:space-between;gap:24px;margin-bottom:22px}
.al-adband-head small{display:block;color:#bce7ca;font-size:0.9375rem;font-weight:700;letter-spacing:.1em}
.al-adband-head b{font-size:1.5rem}
.al-adband-head > a{display:inline-flex;align-items:center;min-height:48px;padding:0 16px;border:1px solid rgb(255 255 255 / .5);border-radius:var(--al-btn-radius);font-weight:700}
.al-adband-head > a:hover{background-color:#fff;color:#183d2b}
/* 배너 띠 스타일은 skin/latest/applelove_banner/style.css 에 있습니다 */

/* --------------------------------------------------------------------------
   13. 병해충 도감 (사진 카드)
   -------------------------------------------------------------------------- */
.al-alerts{background-color:#fff8ed}
[data-theme="dark"] .al-alerts{background-color:#241d14}
.al-pic-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:24px;padding-top:28px}
.al-pic-card{display:flex;flex-direction:column;gap:14px}

/* 사진 : 4:3 고정. 글마다 사진 비율이 달라도 카드 높이가 흔들리지 않는다 */
.al-pic-pic{
    position:relative;display:block;overflow:hidden;
    aspect-ratio:4 / 3;
    border:1px solid #e8ddca;border-radius:16px;
    background-color:var(--al-surface);
    transition:transform .3s,box-shadow .3s;
}
[data-theme="dark"] .al-pic-pic{border-color:#3d3527}
/* 사진은 카드 전체를 채운다.
   목록에서 오는 썸네일이 작을 수도 있으므로 반드시 늘려 채운다.
   (선택자를 .al-pic-card 까지 붙여 예전 규칙이 남아 있어도 이쪽이 이기게 한다) */
.al-pic-pic img{
    /* 부모를 절대배치로 꽉 채운다.
       height:100% 는 부모 높이가 aspect-ratio 로만 정해진 경우
       브라우저에 따라 auto 로 해석돼 원본 크기로 나올 수 있다. */
    position:absolute;
    top:0;left:0;right:0;bottom:0;
    z-index:1;
    width:100%;height:100%;
    max-width:none;max-height:none;
    /* 카드를 꽉 채운다(cover). 원본이 작으면 늘어나 조금 흐려지지만
       카드 크기가 들쭉날쭉하지 않고 여백도 생기지 않는다.
       (작은 원본은 스킨에서 서버 썸네일을 만들지 않고 원본을 그대로 넘겨준다) */
    object-fit:cover;object-position:center;
    background-color:var(--al-surface);
    display:block;
}
.al-pic-card:hover .al-pic-pic,
.al-pic-card:focus-visible .al-pic-pic{transform:translateY(-8px);box-shadow:0 18px 38px rgb(103 58 24 / .22)}

/* 사진이 없는 글 */
.al-pic-noimg{
    position:absolute;inset:0;display:grid;place-items:center;
    background-image:linear-gradient(140deg,var(--al-tile1-a),var(--al-tile1-b));
    font-size:2.875rem;
}

/* 분류 : 사진 위 오른쪽 위 */
.al-pic-ca{
    position:absolute;top:12px;right:12px;
    min-height:30px;padding:0 13px;display:inline-flex;align-items:center;
    border-radius:999px;
    background-color:rgb(24 12 6 / .78);color:#fff;
    font-style:normal;font-size:0.9375rem;font-weight:700;letter-spacing:-.01em;
    backdrop-filter:blur(4px);
}

/* 제목 : 사진 아래 */
.al-pic-tit{
    color:var(--al-ink);
    font-size:1.125rem;font-weight:600;line-height:1.45;
    word-break:keep-all;
}
.al-pic-card:hover .al-pic-tit{color:var(--al-red)}
.al-pic-none{grid-column:1 / -1;padding:44px 4px;color:var(--al-sub);text-align:center}

/* --------------------------------------------------------------------------
   14. 가입 유도 배너
   -------------------------------------------------------------------------- */
.al-join-side{display:flex;flex-direction:column;align-items:stretch;gap:16px;flex:none}
.al-join-fee{
    padding:18px 22px;
    border:1px solid rgb(255 255 255 / .38);border-radius:14px;
    background-color:rgb(255 255 255 / .10);
}
.al-join-fee > b{display:block;margin-bottom:8px;color:#bce7ca;font-size:0.9375rem;letter-spacing:.06em}
.al-join-acc{display:flex;align-items:center;flex-wrap:wrap;gap:10px;font-size:1.25rem;font-weight:700}
.al-join-fee small{display:block;margin-top:8px;color:#c9d2c8;font-size:0.9375rem}
.al-join-money{
    display:flex;align-items:center;justify-content:center;
    min-height:2.75rem;margin-top:.875rem;padding:0 1rem;
    border:1px solid rgb(255 255 255 / .55);border-radius:var(--al-btn-radius);
    color:#fff;font-size:0.9375rem;font-weight:600;
    transition:background-color .15s,color .15s;
}
.al-join-money:hover{background-color:#fff;color:#232a24}
.al-copy-btn{
    min-height:38px;padding:0 14px;
    border:1px solid rgb(255 255 255 / .55);border-radius:8px;
    background-color:transparent;color:#fff;
    font-size:0.9375rem;font-weight:700;cursor:pointer;
    transition:background-color .2s,color .2s;
}
.al-copy-btn:hover{background-color:#fff;color:#232a24}

/* --------------------------------------------------------------------------
   18. 반응형
   -------------------------------------------------------------------------- */
@media (max-width:1400px){
}
@media (max-width:1260px){
    .al-gnb-list > li > a{padding:0 4px;font-size:1rem}
    .al-logo b{font-size:18px}
    .al-mega-grid > div{padding:0 9px}
    .al-mega-grid a{font-size:0.9375rem}
}
@media (max-width:1160px){
    /* 아래 한 줄에 화살표·번호·바로가기를 모두 두기엔 폭이 부족하다.
       바로가기를 아래 줄로 내리고 본문 여백을 그만큼 늘린다. */
    .al-hero-in{padding-bottom:212px}
    .al-hero-controls{bottom:142px}
    .al-hero-links{bottom:70px}
    .al-gnb{display:none}
    .al-actions{margin-left:auto}
    .al-act-menu{display:flex !important}
    .al-quick-grid{grid-template-columns:repeat(2,1fr)}
    .al-quick-grid > a:nth-child(2)::before{display:none}
    .al-quick-grid > a:nth-child(-n+2){border-bottom:1px solid var(--al-line-soft)}
    /* 2×2 배치에서는 네 모서리 칸이 달라진다 */
    .al-quick-grid > a{border-radius:0}
    .al-quick-grid > a:nth-child(1){border-top-left-radius:20px}
    .al-quick-grid > a:nth-child(2){border-top-right-radius:20px}
    .al-quick-grid > a:nth-child(3){border-bottom-left-radius:20px}
    .al-quick-grid > a:nth-child(4){border-bottom-right-radius:20px}
    .al-month-grid,.al-feed-grid{grid-template-columns:1fr;gap:34px}
    .al-pic-grid{grid-template-columns:1fr 1fr;gap:20px}
}
@media (max-width:760px){
    :root{--al-head-h:74px}   /* 본문 크기는 넓은 화면과 같습니다(1rem). 머리 높이만 낮춥니다 */
    body#al-body{padding-bottom:72px}
    .al-wrap{width:calc(100% - 32px)}
    .al-top{display:none}
    .al-logo img{width:50px;height:44px}
    .al-logo b{font-size:18px}
    .al-logo small{font-size:9px}
    .al-actions .al-act-login{display:none}

    /* 좌우 여백이 짧아 말이 빽빽해 보입니다.
       글자와 단추를 한 단계씩 줄이고 비주얼 높이도 같이 낮춥니다.
       아래쪽에 붙는 것들(이동 단추 · 점 · 바로가기)은
       모두 bottom 기준이므로 서로 걹치지 않게 한 번에 옮겼습니다. */
    .al-hero{height:620px}
    .al-slide-1::before{background-image:url("../img/apple-hero-m.jpg")}
    .al-slide-2{background-image:url("../img/apple-community-m.jpg")}
    .al-slide-3{background-image:url("../img/apple-market-m.jpg")}
    .al-shade{background-image:linear-gradient(90deg,rgb(12 18 12 / .42),rgb(12 18 12 / .28))}
    /* 아래 여백을 줄이면 글덩어리가 내려와 이전·다음 단추와의 틈이 즐어듭니다.
       (가운데 정렬이라 줄인 값의 절반만큼 내려갑니다) */
    .al-hero-in{padding:20px 0 184px}
    .al-eyebrow{font-size:0.8125rem;letter-spacing:.08em}
    /* 가운데 값(7.6vw)이 실제 크기를 정하므로 거기에 2px 을 더합니다.
       양 끝값만 고쳐서는 화면에서 안 바뀝니다. */
    .al-hero h2{margin:12px 0;font-size:clamp(28px,calc(7.6vw + 2px),36px);line-height:1.24}
    .al-hero-lead{font-size:1rem;line-height:1.65}   /* 16.1 -> 18.4px */
    .al-hero-btns{flex-direction:column;gap:8px;margin-top:20px}
    .al-hero-btns a{min-height:46px;padding:0 18px;font-size:0.9375rem}
    .al-hero-stats{gap:12px;margin-top:22px;flex-wrap:nowrap}
    .al-hero-stats span{padding-left:9px;font-size:0.75rem}
    .al-hero-stats b{font-size:1rem}
    /* 넷을 다 넣으면 줄바꿈되어 좌우 이동 버튼에 가립니다.
       "31년 이어온 사과 사랑" 은 바로 위 문구(SINCE 1995 · 함께 가꾸어 온 31년)와
       같은 내용이라 좁은 화면에서는 뺍니다. */
    .al-hero-stats span:nth-child(4){display:none}
    /* 좁은 화면에서는 글자와 겹치지 않게 아래쪽으로 내린다 */
    .al-hero-nav{top:auto;margin-top:0;bottom:140px;width:46px;height:46px;border-radius:0}
    .al-hero-nav svg{width:24px;height:24px}
    /* 두 버튼을 한쪽에 몰면 다음(>)이 페이징 점과 겹쳐 눌리지 않습니다.
       화면 양쪽 끝으로 갈라 둡니다. */
    .al-hero-prev{left:14px;right:auto}
    .al-hero-next{right:14px;left:auto}
    .al-hero-controls{bottom:149px;gap:10px}
    .al-hero-dots button{width:14px;height:14px}
    .al-hero-dots button[aria-current="true"]{width:34px}
    .al-hero-play{width:28px;height:28px}
    /* 위로는 이전·다음 단추와, 아래로는 흰 카드(--al-quick-lift:58px)와
       각각 띄우기 위해 위치를 올렸습니다. */
    .al-hero-links{left:14px;right:14px;bottom:76px;gap:8px}
    .al-hero-link{flex:1;justify-content:center;min-height:46px;padding:0 10px;gap:6px;font-size:0.875rem}
    .al-hero-link svg{width:18px;height:18px}
    .al-float{display:none}

    :root{--al-quick-lift:58px}
    .al-quick-grid > a{min-height:136px;padding:16px 12px;flex-direction:column;justify-content:center;gap:8px;text-align:center}
    .al-quick-grid > a::after{left:30%;right:30%;bottom:10px}
    .al-quick-grid .al-ico{display:none}
    .al-quick-grid i{width:52px;height:52px;border-radius:17px;font-size:1.5625rem}
    .al-quick-grid small{font-size:0.8125rem}

    .al-section{padding:66px 0}
    .al-shead{flex-direction:column;align-items:flex-start;gap:12px}
    .al-deco{display:none}
    .al-shero-in{grid-template-columns:1fr;gap:0;min-height:0;padding:36px 0 30px}
    .al-shero-deco{display:none}
    .al-snav-list a{min-height:56px;min-width:120px;font-size:0.9375rem}
    .al-tasks article{grid-template-columns:34px 1fr;padding:18px 15px;gap:10px}
    .al-tasks article > .al-tag{grid-column:2;width:max-content}
    .al-hot-track{grid-auto-columns:86%}
    .al-hot-card{min-height:340px}
    .al-hot-text h3{font-size:1.375rem}
    .al-hot-mark{font-size:6.875rem;right:16px}
    .al-feed-thumb{min-height:380px;padding:24px}
    .al-tab-btns button{flex:1;min-height:52px;padding:0 10px;font-size:1rem}
    .al-tab-btns{flex-wrap:wrap}
    /* 로그인·로그아웃·내 정보는 전체메뉴 서랍 안에 있으므로 헤더에서는 뺍니다 */
    .al-actions .al-act-login,
    .al-actions > a{display:none}
    /* 탭이 줄바꿈되면 오른쪽 위에 겹치므로 목록 아래로 내립니다 */
    .al-tab-more{position:static;display:flex;justify-content:flex-end;height:2.75rem;margin-top:.25rem}
    .al-feed-list > a{min-height:136px;grid-template-columns:32px 1fr 22px;gap:10px}
    .al-best-list{column-count:1}
    .al-best-list a{grid-template-columns:30px minmax(0,1fr);gap:9px;min-height:56px}
    .al-best-bo{display:none}
    .al-best-tit{font-size:0.9375rem}
    .al-feed-rows > a{min-height:100px;padding:15px 2px;gap:6px}
    .al-frow-tit{font-size:1rem}
    .al-frow-bo,.al-frow-meta{font-size:0.8125rem}
    .al-pic-grid{grid-template-columns:1fr 1fr;gap:14px;padding-top:20px}
    .al-pic-tit{font-size:0.9375rem}
    .al-pic-ca{min-height:26px;padding:0 10px;font-size:0.75rem}
    .al-adband-head{flex-direction:column;align-items:flex-start;gap:12px}
    .al-join-side{width:100%}
    .al-join-acc{font-size:1.125rem}
    .al-drawer{padding:16px 20px 20px}
    .al-search-box{flex-direction:column}

    .al-mobilebar a{font-size:22px}
    .al-mobilebar span{font-size:13px;font-weight:700}
}

@media (prefers-reduced-motion:reduce){
    #al-body *{animation:none !important;transition:none !important;scroll-behavior:auto !important}
    .al-reveal{opacity:1;transform:none}
}

.apple-intro{--red:#d92f3a;--green:#183d24;--cream:#fff8f0;--line:#e8e5df;--text:#1f241f;--muted:#697069;color:var(--text);background:#fff;overflow:hidden}.apple-intro *{box-sizing:border-box}.apple-intro a{text-decoration:none;color:inherit}.apple-intro .wrap{width:min(1280px,calc(100% - 40px));margin:auto}.apple-intro .section{padding:110px 0}.apple-intro .kicker{display:inline-flex;align-items:center;gap:10px;margin-bottom:22px;color:var(--red);font-size:0.9375rem;font-weight:700;letter-spacing:.16em;text-transform:uppercase}.apple-intro .kicker:before{content:"";width:34px;height:2px;background:currentColor}.apple-intro h2{margin:0 0 18px;font-size:clamp(34px,4vw,58px);line-height:1.12;letter-spacing:-.04em}.apple-intro .desc{max-width:720px;margin:0;color:var(--muted);font-size:1.125rem;line-height:1.8}.apple-intro .hero{min-height:760px;display:flex;align-items:center;background:linear-gradient(90deg,rgba(13,30,18,.8),rgba(13,30,18,.28) 58%,transparent),url("<?php echo G5_THEME_URL; ?>/img/apple-hero.jpg") center/cover no-repeat}.apple-intro .hero-box{max-width:760px;padding:100px 0 130px;color:#fff}.apple-intro .badge{display:inline-flex;padding:10px 16px;margin-bottom:28px;border:1px solid rgba(255,255,255,.35);border-radius:999px;background:rgba(255,255,255,.12);backdrop-filter:blur(10px);font-weight:600}.apple-intro h1{margin:0;font-size:clamp(46px,6.5vw,88px);line-height:1.04;letter-spacing:-.055em;text-shadow:0 6px 24px rgba(0,0,0,.28)}.apple-intro h1 strong{color:#ff8b7b}.apple-intro .hero p{max-width:650px;margin:30px 0 0;font-size:clamp(18px,2vw,23px);line-height:1.7;color:rgba(255,255,255,.92)}.apple-intro .actions{display:flex;flex-wrap:wrap;gap:14px;margin-top:42px}.apple-intro .btn{display:inline-flex;align-items:center;justify-content:center;min-height:56px;padding:0 26px;border-radius:14px;font-size:1rem;font-weight:700;transition:.25s}.apple-intro .btn:hover{transform:translateY(-3px)}.apple-intro .btn-red{color:#fff;background:var(--red);box-shadow:0 14px 30px rgba(217,47,58,.28)}.apple-intro .btn-ghost{color:#fff;border:1px solid rgba(255,255,255,.5);background:rgba(255,255,255,.08)}.apple-intro .stats{margin-top:-70px;position:relative;z-index:3}.apple-intro .stats-grid{display:grid;grid-template-columns:repeat(4,1fr);border-radius:24px;background:#fff;box-shadow:0 20px 60px rgba(28,42,30,.14);overflow:hidden}.apple-intro .stat{padding:34px 28px;text-align:center;border-right:1px solid var(--line)}.apple-intro .stat:last-child{border-right:0}.apple-intro .stat strong{display:block;color:var(--red);font-size:2.375rem;font-weight:800}.apple-intro .stat span{display:block;margin-top:12px;color:var(--muted);font-weight:600}.apple-intro .story{background:linear-gradient(180deg,#fff,#fffaf5)}.apple-intro .story-grid{display:grid;grid-template-columns:1.05fr .95fr;gap:80px;align-items:center}.apple-intro .story-visual{position:relative;min-height:580px}.apple-intro .story-main{position:absolute;inset:0 90px 70px 0;border-radius:30px;background:url("<?php echo G5_THEME_URL; ?>/img/apple-community.jpg") center/cover no-repeat;box-shadow:0 30px 60px rgba(37,59,40,.18)}.apple-intro .story-card{position:absolute;right:0;bottom:0;width:290px;padding:28px;border-radius:22px;color:#fff;background:var(--green);box-shadow:0 18px 45px rgba(22,54,31,.28)}.apple-intro .story-card strong{font-size:1.75rem;line-height:1.2}.apple-intro .story-card p{color:rgba(255,255,255,.76);line-height:1.7}.apple-intro .cards{display:grid;grid-template-columns:repeat(3,1fr);gap:24px;margin-top:52px}.apple-intro .card{min-height:300px;padding:34px;border:1px solid var(--line);border-radius:24px;background:#fff;transition:.25s}.apple-intro .card:hover{transform:translateY(-8px);box-shadow:0 24px 55px rgba(34,45,35,.1)}.apple-intro .icon{width:64px;height:64px;display:grid;place-items:center;margin-bottom:28px;border-radius:18px;background:var(--cream);font-size:2rem}.apple-intro .card h3{margin:0;font-size:1.5625rem}.apple-intro .card p{color:var(--muted);line-height:1.75}.apple-intro .activities{background:#f5f7f3}.apple-intro .activity-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:24px;margin-top:54px}.apple-intro .activity{display:grid;grid-template-columns:170px 1fr;min-height:220px;overflow:hidden;border-radius:24px;background:#fff;box-shadow:0 14px 36px rgba(26,41,29,.07)}.apple-intro .visual{background-position:center;background-size:cover}.apple-intro .activity-body{padding:30px}.apple-intro .activity-body small{color:var(--red);font-weight:700}.apple-intro .activity-body h3{margin:10px 0 0;font-size:1.4375rem}.apple-intro .activity-body p{color:var(--muted);line-height:1.7}.apple-intro .timeline{background:var(--green);color:#fff}.apple-intro .timeline .desc{color:rgba(255,255,255,.72)}.apple-intro .timeline-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:22px;margin-top:58px}.apple-intro .time{padding:30px 26px;border:1px solid rgba(255,255,255,.16);border-radius:22px;background:rgba(255,255,255,.06)}.apple-intro .time strong{color:#ff9b8d;font-size:1.75rem}.apple-intro .time h3{font-size:1.25rem}.apple-intro .time p{color:rgba(255,255,255,.68);line-height:1.7}.apple-intro .join{background:linear-gradient(135deg,#fff6ef,#f6fbf5)}.apple-intro .join-box{display:grid;grid-template-columns:1fr auto;gap:40px;align-items:center;padding:56px;border-radius:30px;background:#fff;box-shadow:0 24px 70px rgba(30,47,32,.1)}.apple-intro .join-box h2{font-size:clamp(34px,4vw,54px)}.apple-intro .join-box p{color:var(--muted);font-size:1.125rem;line-height:1.7}.apple-intro .reveal{opacity:0;transform:translateY(28px);transition:.7s}.apple-intro .reveal.on{opacity:1;transform:none}@media(max-width:1024px){.apple-intro .story-grid{grid-template-columns:1fr}.apple-intro .cards{grid-template-columns:1fr 1fr}.apple-intro .activity-grid{grid-template-columns:1fr}.apple-intro .timeline-grid{grid-template-columns:1fr 1fr}.apple-intro .join-box{grid-template-columns:1fr}}@media(max-width:768px){.apple-intro .wrap{width:min(100% - 28px,1280px)}.apple-intro .section{padding:78px 0}.apple-intro .hero{min-height:620px;background:linear-gradient(180deg,rgba(13,30,18,.4),rgba(13,30,18,.78)),url("<?php echo G5_THEME_URL; ?>/img/apple-hero.jpg") center/cover no-repeat}.apple-intro .stats-grid{grid-template-columns:1fr 1fr}.apple-intro .story-visual{min-height:430px}.apple-intro .story-main{inset:0 35px 70px 0}.apple-intro .cards,.apple-intro .timeline-grid{grid-template-columns:1fr}.apple-intro .activity{grid-template-columns:1fr}.apple-intro .visual{min-height:190px}.apple-intro .join-box{padding:36px 26px}}

/* --------------------------------------------------------------------------
   콘텐츠 폭

   베이직 테마는 #container_wr 를 1200px, #container 를 930px 로 묶고
   오른쪽 235px 을 #aside 자리로 비워 둡니다.
   메인은 비주얼·섹션이 화면 전체를 써야 하므로 그 제한을 풉니다.
   (서브 페이지는 베이직 기본 폭을 그대로 씁니다)
   -------------------------------------------------------------------------- */
/* default.css 는 PC 고정폭을 전제로 #hd,#wrapper,#ft 에 min-width:1200px 을 겁니다.
   반응형에서는 이 값이 휴대폰 화면을 1200px 로 벌려 가로 스크롤을 만듭니다.
   폭 제한은 .al-wrap 이 맡으므로 여기서 풀어 줍니다. */
#hd,#wrapper,#ft{min-width:0}

/* ★ 폭 고정(width:1200px)도 함께 풉니다.
     default.css:56  #gnb .gnb_wrap, #container_wr, #ft_wr
     default.css:206 #ft_copy
     min-width 만 풀고 width 를 두면 화면이 그대로 1200px 로 벌어집니다.
     그러면 브라우저가 한 화면에 넣으려고 통째로 줄여 버립니다. */
#gnb .gnb_wrap,
#ft_wr,
#ft_copy{width:auto;max-width:100%}

/* 바깥 상자의 1200px 고정은 메인·서브 모두에서 풉니다.
   서브(게시판 등)에만 남겨 두면 휴대폰에서 게시판 화면이 1200px 로 벌어집니다.
   실제 읽는 폭은 아래에서 다시 잡습니다. */
#container_wr{width:100%;max-width:none;margin:0}
#container{float:none;width:100%;margin:0;min-height:0}
#aside{display:none}

/* 메인 안쪽 내용의 폭은 위쪽 .al-wrap 규칙이 잡습니다.
   서브 페이지는 본문이 화면 끝에 붙지 않도록 여기서 폭을 줍니다. */
.al-sub #container{width:min(var(--al-wrap),calc(100% - 48px));margin:20px auto}
@media (max-width:760px){
    .al-sub #container{width:calc(100% - 32px)}
}

/* --------------------------------------------------------------------------
   서브 페이지 머리 : 히어로 + 메뉴 띠

   높이는 모바일에서 답답하지 않도록 눌러 둡니다(PC 240 / 모바일 160).
   배경 사진이 없으면 초록 바탕만 나오고 화면은 그대로 유지됩니다.
   -------------------------------------------------------------------------- */

/* 메뉴 띠 */
.al-subnav{border-bottom:1px solid var(--al-line);background-color:var(--al-surface)}
.al-subnav-in{display:flex;align-items:stretch}

/* 넓은 화면 : 부메뉴를 칸으로 */
.al-subnav-tabs{display:flex;margin:0;padding:0;list-style:none}
.al-subnav-tabs li{display:flex}
.al-subnav-tabs a{
    position:relative;
    display:flex;align-items:center;justify-content:center;
    min-height:3.75rem;padding:0 1.75rem;
    border-left:1px solid var(--al-line);
    color:var(--al-sub);font-size:1rem;font-weight:600;

    /* 안쪽을 아래에서 위로 서서히 채웁니다.
       배경 "그림"의 높이를 0 → 100% 로 늘리는 방식이라
       글자가 가려지지 않고 별도 요소도 필요 없습니다.
       background 단축을 쓰면 background-repeat 이 초기화되므로 따로 적습니다. */
    background-image:linear-gradient(var(--al-bg),var(--al-bg));
    background-repeat:no-repeat;
    background-position:0 100%;
    background-size:100% 0;
    transition:color .2s,background-size .25s ease;
}
.al-subnav-tabs li:last-child a{border-right:1px solid var(--al-line)}
.al-subnav-tabs a:hover,
.al-subnav-tabs a:focus-visible{color:var(--al-ink);background-size:100% 100%}
.al-subnav-tabs a.is-on{color:var(--al-ink);font-weight:700}

/* 아래쪽 빨간 밑줄 — 마우스를 올렸을 때와 지금 보고 있는 메뉴에 같이 나옵니다.
   띠 아래 1px 선을 덮도록 bottom:-1px 에 둡니다. */
.al-subnav-tabs a::after{
    content:"";position:absolute;left:0;right:0;bottom:-1px;height:3px;
    background-color:var(--al-red);
    transform:scaleX(0);transition:transform .2s;
}
.al-subnav-tabs a:hover::after,
.al-subnav-tabs a:focus-visible::after,
.al-subnav-tabs a.is-on::after{transform:scaleX(1)}

/* 좁은 화면용 선택상자 — PC 에서는 감춥니다 */
.al-subnav-sel{display:none}
.al-subnav-home{
    display:inline-flex;align-items:center;justify-content:center;
    flex:none;width:2.75rem;min-height:2.75rem;
    border:1px solid var(--al-line);border-radius:var(--al-btn-radius);
    color:var(--al-ink);font-size:1.125rem;
}
.al-subnav-sel select{
    flex:1 1 0;min-width:0;min-height:2.75rem;
    padding:0 .625rem;
    border:1px solid var(--al-line);border-radius:var(--al-btn-radius);
    background-color:var(--al-surface);color:var(--al-ink);
    font-size:0.9375rem;font-weight:600;
}
.al-subnav-sel select:disabled{color:var(--al-sub);background-color:var(--al-bg)}

/* 본문 맨 위 제목 — 가운데 정렬 */
.al-sub #container_title{
    margin:2rem 0;              /* 위아래 여백을 같게 */
    font-size:clamp(24px,2.6vw,34px);line-height:1.3;letter-spacing:-.04em;
    text-align:center;color:var(--al-ink);
}
/* default.css 가 안쪽 span 에 아래 여백 10px 을 줍니다. 아래만 벌어지므로 지웁니다. */
.al-sub #container_title span{margin:0;line-height:1.3}

@media (max-width:760px){
    .al-subnav-tabs{display:none}
    .al-subnav-sel{display:flex;align-items:center;gap:.5rem;width:100%;padding:.625rem 0}
    .al-sub #container_title{margin:1.5rem 0}
}

/* --------------------------------------------------------------------------
   서브 페이지 히어로

     .al-shero        화면 전체를 쓰는 바탕 (사과빛 그러데이션)
       .al-shero-in   가운데 1200 짜리 상자 (.al-wrap 이 폭을 잡습니다)
         .al-shero-txt   왼쪽 : 제목 · 설명
         .al-shero-img   오른쪽 : 그림 (없으면 .al-shero-deco 장식)
   -------------------------------------------------------------------------- */
.al-shero{
    background-image:linear-gradient(115deg,#fff7ec 0%,#ffeadf 42%,#ffe0e2 78%,#fdf1df 100%);
    background-repeat:no-repeat;
    color:var(--al-ink);
}
[data-theme="dark"] .al-shero{
    background-image:linear-gradient(115deg,#2a2320 0%,#332624 45%,#2e2422 100%);
}
.al-shero-in{
    display:flex;align-items:center;justify-content:space-between;gap:2rem;
    min-height:8.5625rem;
}
/* 그림은 위아래로 꽉 차게 두고, 여백은 글 쪽에만 줍니다 */
.al-shero-txt{flex:1 1 auto;min-width:0;padding:1rem 0}
.al-shero h1{margin:0;font-size:clamp(28px,3.4vw,44px);line-height:1.25;letter-spacing:-.04em}
.al-shero p{margin-top:.75rem;max-width:36rem;color:var(--al-sub);font-size:1rem;line-height:1.7}

/* 오른쪽 그림 — 비율 그대로, 상자 높이에 맞춥니다 */
.al-shero-img{flex:none;align-self:center;height:6.5rem;width:auto;max-width:52%;object-fit:contain}

/* 그림이 없는 메뉴에 두는 장식 */
.al-shero-deco{flex:none;height:12rem;width:auto;max-width:42%;opacity:.85}
.al-shero-deco .d-ring{fill:none;stroke:var(--al-line);stroke-width:1.5}
.al-shero-deco .d-dash{fill:none;stroke:var(--al-line);stroke-width:1.5;stroke-dasharray:6 9;opacity:.9}
.al-shero-deco .d-apple{fill:var(--al-red);opacity:.16}
.al-shero-deco .d-stem{fill:none;stroke:var(--al-green);stroke-width:3;stroke-linecap:round;opacity:.5}
.al-shero-deco .d-leaf{fill:var(--al-green);opacity:.3}

/* 태블릿 — 그림이 21rem 높이를 채우려 들면 글칸을 밀어냅니다.
   폭 한도를 낮춰 제목·설명이 눌리지 않게 합니다. */
@media (min-width:761px) and (max-width:1120px){
    .al-shero-img{max-width:44%}
}

@media (max-width:760px){
    .al-shero-in{min-height:7.5625rem;gap:1rem}
    .al-shero-txt{padding:.875rem 0}
    .al-shero p{margin-top:.5rem;font-size:0.9375rem}
    .al-shero-img{height:5.25rem;max-width:42%}
    .al-shero-deco{display:none}
}

/* ==========================================================================
   앱 설치 단추 — 첫 화면 오른쪽 아래

   ★ 색은 사이트 강조색(--al-red)을 씁니다. 흰 글자와 대비가 넉넉합니다.
   ★ 동작을 줄이기로 해 두신 분께는 흔들지 않습니다.
   ========================================================================== */
.al-pwa-btn{
    position:fixed;
    right:20px;
    bottom:84px;        /* 맨위로 단추(3rem + 20px) 위에 놓습니다 */
    z-index:57;         /* #top_btn 이 56 입니다 */

    display:inline-flex;
    align-items:center;
    justify-content:center;
    gap:7px;

    min-width:46px;
    height:46px;
    padding:0 17px;
    box-sizing:border-box;

    border:0;
    border-radius:999px;
    background-color:var(--al-red);
    background-image:linear-gradient(140deg,#e04a50 0%,#d9363d 52%,#b8242b 100%);
    background-repeat:no-repeat;
    color:#fff;

    font-family:inherit;
    font-size:14px;
    font-weight:700;
    letter-spacing:-.02em;
    white-space:nowrap;
    cursor:pointer;

    box-shadow:
        0 6px 18px rgba(120,20,26,.30),
        0 2px 5px rgba(120,20,26,.20),
        inset 0 1px 0 rgba(255,255,255,.28);

    opacity:0;
    transform:translateY(18px) scale(.92);
    transition:opacity .32s ease, transform .32s cubic-bezier(.34,1.4,.64,1);
}
.al-pwa-btn.is-on{
    opacity:1;
    transform:translateY(0) scale(1);
    animation:alPwaFloat 3.6s ease-in-out .6s infinite;
}
.al-pwa-btn.is-out{
    opacity:0;
    transform:translateY(14px) scale(.9);
    animation:none;
}
.al-pwa-btn:hover,
.al-pwa-btn:focus{
    background-image:linear-gradient(140deg,#e85b61 0%,#c92e35 52%,#a91f2a 100%);
    box-shadow:
        0 12px 28px rgba(120,20,26,.38),
        0 3px 8px rgba(120,20,26,.24),
        inset 0 1px 0 rgba(255,255,255,.34);
    animation-play-state:paused;
}
.al-pwa-btn:active{transform:translateY(1px) scale(.98)}

/* 둥둥 — 아주 조금만. 크게 흔들면 눈에 거슬립니다. */
@keyframes alPwaFloat{
      0%{transform:translateY(0)    rotate(0)}
     25%{transform:translateY(-6px) rotate(-.6deg)}
     50%{transform:translateY(-2px) rotate(0)}
     75%{transform:translateY(-7px) rotate(.6deg)}
    100%{transform:translateY(0)    rotate(0)}
}

/* 뒤에서 은은하게 번지는 테 */
.al-pwa-btn::before{
    content:"";
    position:absolute;
    inset:-6px;
    border-radius:999px;
    background-color:rgba(217,54,61,.30);
    z-index:-1;
    animation:alPwaHalo 3.6s ease-out .6s infinite;
}
@keyframes alPwaHalo{
      0%{opacity:.5; transform:scale(.92)}
     70%{opacity:0;  transform:scale(1.22)}
    100%{opacity:0;  transform:scale(1.22)}
}

/* 휴대폰 아이콘 — 그림 파일 없이 테두리로 그립니다 */
.al-pwa-ico{
    position:relative;
    display:block;
    box-sizing:border-box;
    width:13px;
    height:19px;
    flex:0 0 auto;
    border:1.5px solid currentColor;
    border-radius:3px;
}
.al-pwa-ico::before,
.al-pwa-ico::after{
    content:"";
    position:absolute;
    left:50%;
    width:5px;
    height:1.5px;
    margin-left:-2.5px;
    background-color:currentColor;
    border-radius:1px;
    opacity:.75;
}
.al-pwa-ico::before{top:1.5px}
.al-pwa-ico::after{bottom:1.5px}
.al-pwa-txt{line-height:1}

/* 닫기 — 오른쪽 위 귀퉁이에 작게 */
.al-pwa-x{
    position:absolute;
    top:-4px;
    right:-4px;
    display:flex;
    align-items:center;
    justify-content:center;
    width:19px;
    height:19px;
    border-radius:50%;
    background-color:#7d1219;
    color:rgba(255,255,255,.9);
    font-size:11px;
    line-height:1;
    box-shadow:0 2px 6px rgba(120,20,26,.3);
}
.al-pwa-x:hover{background-color:#5c0c11;color:#fff}

/* 맨위로 단추가 숨는 폭(768px)부터는 앱 설치 단추가 그 자리로 내려옵니다.
   ★ theme.css 601줄 : @media (max-width:768px){ #top_btn{display:none} } */
@media (max-width:768px){
    .al-pwa-btn{
        right:20px;
        bottom:20px;
    }
}

/* 더 좁아지면 글자를 빼고 동그란 단추만 */
@media (max-width:560px){
    .al-pwa-btn{
        right:16px;
        bottom:16px;
        min-width:46px;
        width:46px;
        padding:0;
    }
    .al-pwa-txt{display:none}
    .al-pwa-ico{width:14px;height:20px}
}

@media (prefers-reduced-motion:reduce){
    .al-pwa-btn,
    .al-pwa-btn.is-on{animation:none;transition:opacity .2s ease}
    .al-pwa-btn::before{animation:none;opacity:0}
}

/* ---------- 아이폰 안내 ---------- */
.al-pwa-ios{
    position:fixed;
    inset:0;
    z-index:950;
    display:none;
}
.al-pwa-ios.is-on{display:block}
.al-pwa-ios-dim{
    position:absolute;
    inset:0;
    background-color:rgba(33,35,38,.5);
}
.al-pwa-ios-box{
    position:absolute;
    left:50%;
    bottom:24px;
    transform:translateX(-50%);
    width:20rem;
    max-width:calc(100% - 32px);
    box-sizing:border-box;
    padding:20px;
    border-radius:16px;
    background-color:var(--al-surface);
    box-shadow:0 16px 40px rgba(33,35,38,.32);
}
.al-pwa-ios-tit{
    margin:0 0 12px;
    color:var(--al-ink);
    font-size:17px;
    font-weight:800;
}
.al-pwa-ios-steps{
    margin:0;
    padding-left:20px;
    color:var(--al-sub);
    font-size:15px;
    line-height:1.9;
    word-break:keep-all;
}
.al-pwa-ios-steps b{color:var(--al-ink)}
.al-pwa-ios-ok{
    display:block;
    width:100%;
    min-height:46px;
    margin-top:16px;
    border:0;
    border-radius:10px;
    background-color:var(--al-red);
    background-repeat:no-repeat;
    color:#fff;
    font-family:inherit;
    font-size:15px;
    font-weight:700;
    cursor:pointer;
}

@media screen and (max-device-width: 480px) {
    .hd_pops_con {
        width: 94vw !important;
		height: auto !important;
    }
}

/* ==========================================================================
   글자 끌어 고르기 막기 (복사 방지)

   ★ 자바스크립트(theme.js)와 함께 둡니다.
     스크립트가 늦게 뜨거나 막혀도 이 규칙이 먼저 막아 줍니다.
   ★ 글 쓰는 칸은 풀어 둡니다.
     거기서 못 고르면 글을 쓰거나 고칠 수 없습니다.
   ========================================================================== */
body{
    -webkit-user-select:none;
    -moz-user-select:none;
    -ms-user-select:none;
    user-select:none;
}
input,
textarea,
select,
[contenteditable="true"],
#smart_editor2,
#smart_editor2 *,
.se2_inputarea,
.se2_inputarea *{
    -webkit-user-select:text !important;
    -moz-user-select:text !important;
    -ms-user-select:text !important;
    user-select:text !important;
}
