<?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_54eeda73-431f-4590-bcf0-f7149b5f2e2b">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-05-04</startDate>
            <endDate>2026-05-04</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:SubmissnTp
      contextRef="C_54eeda73-431f-4590-bcf0-f7149b5f2e2b"
      id="F_2850c805-0d21-4093-9911-20ce569ff3a0">424B2</ffd:SubmissnTp>
    <dei:EntityCentralIndexKey
      contextRef="C_54eeda73-431f-4590-bcf0-f7149b5f2e2b"
      id="F_707f1ca6-ee56-4235-9bf8-340ffa82de58">0000886982</dei:EntityCentralIndexKey>
    <ffd:RegnFileNb
      contextRef="C_54eeda73-431f-4590-bcf0-f7149b5f2e2b"
      id="F_745e46ac-8edf-42fd-8a57-fd56c95192f8">333-284538</ffd:RegnFileNb>
    <ffd:OfferingTableNa
      contextRef="C_54eeda73-431f-4590-bcf0-f7149b5f2e2b"
      id="F_7b3f7f7b-70d9-437d-a690-8872f89bac2e">N/A</ffd:OfferingTableNa>
    <ffd:FormTp
      contextRef="C_54eeda73-431f-4590-bcf0-f7149b5f2e2b"
      id="F_e7f81a20-6ceb-427c-a739-af17584bd1e6">S-3</ffd:FormTp>
    <ffd:OffsetTableNa
      contextRef="C_54eeda73-431f-4590-bcf0-f7149b5f2e2b"
      id="F_cd7ac25f-6231-4354-95c9-3039b4205b3f">N/A</ffd:OffsetTableNa>
    <dei:EntityRegistrantName
      contextRef="C_54eeda73-431f-4590-bcf0-f7149b5f2e2b"
      id="F_a17a7e22-04b8-467b-b7a8-9b6cde1a68b3">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:CombinedProspectusTableNa
      contextRef="C_54eeda73-431f-4590-bcf0-f7149b5f2e2b"
      id="F_451695e0-7ef3-49f8-af08-87e83211a5d5">N/A</ffd:CombinedProspectusTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_54eeda73-431f-4590-bcf0-f7149b5f2e2b"
      id="F_d36c3f27-360d-445d-a9ef-6ad825ddf472">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:NrrtvDsclsr
      contextRef="C_54eeda73-431f-4590-bcf0-f7149b5f2e2b"
      id="F_1d05225e-5ea1-4f7c-8942-58bbfdb7cee8">&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;100,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_54eeda73-431f-4590-bcf0-f7149b5f2e2b"
      decimals="0"
      id="F_bf912396-fe07-46d5-b459-d3b0dff75fab"
      unitRef="U_USD">100000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
