<?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_4fe1e4ba-5642-4695-9635-9bdf51d4c288">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-09-28</startDate>
            <endDate>2026-09-28</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:OfferingTableNa
      contextRef="C_4fe1e4ba-5642-4695-9635-9bdf51d4c288"
      id="F_2e676ac6-ac3d-4630-add2-3068ce7fc6e7">N/A</ffd:OfferingTableNa>
    <ffd:SubmissnTp
      contextRef="C_4fe1e4ba-5642-4695-9635-9bdf51d4c288"
      id="F_1461e164-0fde-46a9-8e8d-c2ca5c8e942d">424B2</ffd:SubmissnTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_4fe1e4ba-5642-4695-9635-9bdf51d4c288"
      id="F_190da03c-6795-4ade-ac73-270047283f5a">N/A</ffd:CombinedProspectusTableNa>
    <ffd:OffsetTableNa
      contextRef="C_4fe1e4ba-5642-4695-9635-9bdf51d4c288"
      id="F_4fe7300a-7e46-43ad-a5ab-c2bf0ab16c55">N/A</ffd:OffsetTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_4fe1e4ba-5642-4695-9635-9bdf51d4c288"
      id="F_8f6ded24-bb2d-4bc6-acee-caa21e69815f">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityRegistrantName
      contextRef="C_4fe1e4ba-5642-4695-9635-9bdf51d4c288"
      id="F_90d61fb7-8d79-4c30-a3a2-3059a636be2c">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FormTp
      contextRef="C_4fe1e4ba-5642-4695-9635-9bdf51d4c288"
      id="F_d2b4aab6-52c2-4c00-8d94-245795fa226b">S-3</ffd:FormTp>
    <ffd:RegnFileNb
      contextRef="C_4fe1e4ba-5642-4695-9635-9bdf51d4c288"
      id="F_7279da20-b72a-4cdf-877b-05c3e5a3823c">333-284538</ffd:RegnFileNb>
    <dei:EntityCentralIndexKey
      contextRef="C_4fe1e4ba-5642-4695-9635-9bdf51d4c288"
      id="F_786e6ffd-7620-497a-85f9-cba55ec19d13">0000886982</dei:EntityCentralIndexKey>
    <ffd:NrrtvDsclsr
      contextRef="C_4fe1e4ba-5642-4695-9635-9bdf51d4c288"
      id="F_2f074f4f-2b48-4152-b17b-eec0f70e1118">&lt;p style="tab-size:26.66px;font-size:12pt;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;2,440,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_4fe1e4ba-5642-4695-9635-9bdf51d4c288"
      decimals="-3"
      id="F_5c8e0e9c-0810-4351-9c18-00f0b9f92d01"
      unitRef="U_USD">2440000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
