<?xml version="1.0" encoding="utf-8"?>
<xbrl
  xmlns="http://www.xbrl.org/2003/instance"
  xmlns:dei="http://xbrl.sec.gov/dei/2025"
  xmlns:ffd="http://xbrl.sec.gov/ffd/2025"
  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/2025/ffd-2025.xsd"
      xlink:type="simple"/>
    <context id="C_6ecff9df-7ee9-45ba-8417-213d32007673">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-05-28</startDate>
            <endDate>2026-05-28</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:FormTp
      contextRef="C_6ecff9df-7ee9-45ba-8417-213d32007673"
      id="F_622c1093-32f5-45ae-bbda-41ca4af09059">S-3</ffd:FormTp>
    <dei:EntityCentralIndexKey
      contextRef="C_6ecff9df-7ee9-45ba-8417-213d32007673"
      id="F_45f379aa-030f-4125-8b08-0de618782722">0000886982</dei:EntityCentralIndexKey>
    <dei:EntityRegistrantName
      contextRef="C_6ecff9df-7ee9-45ba-8417-213d32007673"
      id="F_e221d0bd-6eb0-4d04-bc8f-05052151bc7c">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:SubmissnTp
      contextRef="C_6ecff9df-7ee9-45ba-8417-213d32007673"
      id="F_33cfa1c2-0027-4c59-aa08-2f00a9318fc6">424B2</ffd:SubmissnTp>
    <ffd:FeeExhibitTp
      contextRef="C_6ecff9df-7ee9-45ba-8417-213d32007673"
      id="F_d23b48ee-3f06-4d98-b375-08937327c835">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_6ecff9df-7ee9-45ba-8417-213d32007673"
      id="F_2aea1133-ce7e-42f1-bb65-eceb6c4d69cf">N/A</ffd:CombinedProspectusTableNa>
    <ffd:RegnFileNb
      contextRef="C_6ecff9df-7ee9-45ba-8417-213d32007673"
      id="F_70d26f59-8f4d-4e46-b8a9-5874b6fa7c12">333-284538</ffd:RegnFileNb>
    <ffd:OfferingTableNa
      contextRef="C_6ecff9df-7ee9-45ba-8417-213d32007673"
      id="F_d2459fa6-8910-4de7-ad8a-5bad31f9d2e7">N/A</ffd:OfferingTableNa>
    <ffd:OffsetTableNa
      contextRef="C_6ecff9df-7ee9-45ba-8417-213d32007673"
      id="F_bc797d48-8f24-4d38-b330-f33a660eca92">N/A</ffd:OffsetTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_6ecff9df-7ee9-45ba-8417-213d32007673"
      id="F_11bd938e-5629-4973-b6cc-885bc2fde606">&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;2,678,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_6ecff9df-7ee9-45ba-8417-213d32007673"
      decimals="0"
      id="F_06310cfa-021b-49cf-9cf7-e130a1545c32"
      unitRef="U_USD">2678000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
