<?xml version="1.0" encoding="utf-8"?>
<xbrl
  xmlns="http://www.xbrl.org/2003/instance"
  xmlns:dei="http://xbrl.sec.gov/dei/2026"
  xmlns:ffd="http://xbrl.sec.gov/ffd/2026"
  xmlns:iso4217="http://www.xbrl.org/2003/iso4217"
  xmlns:link="http://www.xbrl.org/2003/linkbase"
  xmlns:xlink="http://www.w3.org/1999/xlink">
    <link:schemaRef
      xlink:href="https://xbrl.sec.gov/ffd/2026/ffd-2026.xsd"
      xlink:type="simple"/>
    <context id="C_44388c81-a8dd-4672-be75-ad453ef129a2">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-06-22</startDate>
            <endDate>2026-06-22</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:OffsetTableNa
      contextRef="C_44388c81-a8dd-4672-be75-ad453ef129a2"
      id="F_df6572ca-fe78-4ac4-80e8-1691cce5db37">N/A</ffd:OffsetTableNa>
    <ffd:SubmissnTp
      contextRef="C_44388c81-a8dd-4672-be75-ad453ef129a2"
      id="F_bbf4f10c-b7db-4774-9df5-e61bcec9b070">424B2</ffd:SubmissnTp>
    <ffd:FeeExhibitTp
      contextRef="C_44388c81-a8dd-4672-be75-ad453ef129a2"
      id="F_ef32f10e-f918-4d2e-a868-682ce814ebdb">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OfferingTableNa
      contextRef="C_44388c81-a8dd-4672-be75-ad453ef129a2"
      id="F_24eab8d4-2c7c-417d-a95d-673f655c873a">N/A</ffd:OfferingTableNa>
    <ffd:FormTp
      contextRef="C_44388c81-a8dd-4672-be75-ad453ef129a2"
      id="F_bc0a7dfa-a831-4307-8d74-fd0d067ba051">S-3</ffd:FormTp>
    <dei:EntityCentralIndexKey
      contextRef="C_44388c81-a8dd-4672-be75-ad453ef129a2"
      id="F_9c4b3779-6637-417d-bf01-e0859e1ba91f">0000886982</dei:EntityCentralIndexKey>
    <ffd:RegnFileNb
      contextRef="C_44388c81-a8dd-4672-be75-ad453ef129a2"
      id="F_c69b0b7e-1b95-459d-84f1-e0000c7c115c">333-284538</ffd:RegnFileNb>
    <dei:EntityRegistrantName
      contextRef="C_44388c81-a8dd-4672-be75-ad453ef129a2"
      id="F_814c4f5b-2205-4f4f-8004-311ce6e063ec">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:CombinedProspectusTableNa
      contextRef="C_44388c81-a8dd-4672-be75-ad453ef129a2"
      id="F_0ae95eb8-e07c-4666-bb3d-6a1b7c65affe">N/A</ffd:CombinedProspectusTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_44388c81-a8dd-4672-be75-ad453ef129a2"
      id="F_d798164a-e877-4899-93b1-0c2629d16a58">&lt;p style="font-size:10pt;margin-top:0;font-family:Times New Roman;margin-bottom:12pt;text-align:left;"&gt;&lt;span style="color:#000000;white-space:pre-wrap;font-size:12pt;font-family:Times New Roman;font-kerning:none;min-width:fit-content;"&gt;The prospectus to which this Exhibit is attached is a final prospectus for the related offering.  The maximum aggregate offering price for such offering is $&lt;/span&gt;&lt;span style="font-size:12pt;font-family:Times New Roman;color:#000000;white-space:pre-wrap;font-kerning:none;min-width:fit-content;"&gt;17,455,000&lt;/span&gt;&lt;span style="color:#000000;white-space:pre-wrap;font-size:12pt;font-family:Times New Roman;font-kerning:none;min-width:fit-content;"&gt;.&lt;/span&gt;&lt;/p&gt;</ffd:NrrtvDsclsr>
    <ffd:NrrtvMaxAggtOfferingPric
      contextRef="C_44388c81-a8dd-4672-be75-ad453ef129a2"
      decimals="-3"
      id="F_e9b5d71b-8fda-4d32-8f17-5c7dda651741"
      unitRef="U_USD">17455000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
