<?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_a91e3e7d-bc0e-423e-ab6b-346bd7d11586">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-03-10</startDate>
            <endDate>2026-03-10</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityCentralIndexKey
      contextRef="C_a91e3e7d-bc0e-423e-ab6b-346bd7d11586"
      id="F_04518e3e-4fba-4975-ac84-abf72eb730c2">0000886982</dei:EntityCentralIndexKey>
    <ffd:FeeExhibitTp
      contextRef="C_a91e3e7d-bc0e-423e-ab6b-346bd7d11586"
      id="F_0414ad48-aa47-422c-83a7-3921e6f78aca">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OfferingTableNa
      contextRef="C_a91e3e7d-bc0e-423e-ab6b-346bd7d11586"
      id="F_ccdc73d3-e8f4-44c8-a6cb-09b2488d75ab">N/A</ffd:OfferingTableNa>
    <dei:EntityRegistrantName
      contextRef="C_a91e3e7d-bc0e-423e-ab6b-346bd7d11586"
      id="F_15c61638-66db-473d-818d-02dc284be385">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:RegnFileNb
      contextRef="C_a91e3e7d-bc0e-423e-ab6b-346bd7d11586"
      id="F_77580de6-a27a-46e3-8efe-3e4aeb134d2d">333-284538</ffd:RegnFileNb>
    <ffd:CombinedProspectusTableNa
      contextRef="C_a91e3e7d-bc0e-423e-ab6b-346bd7d11586"
      id="F_47726f10-cfee-49ca-9c7e-34f609500b31">N/A</ffd:CombinedProspectusTableNa>
    <ffd:FormTp
      contextRef="C_a91e3e7d-bc0e-423e-ab6b-346bd7d11586"
      id="F_aa029808-73e4-4d39-bdfc-73fb29f5a291">S-3</ffd:FormTp>
    <ffd:OffsetTableNa
      contextRef="C_a91e3e7d-bc0e-423e-ab6b-346bd7d11586"
      id="F_547ab44d-241f-423c-a6dc-ee10af13124b">N/A</ffd:OffsetTableNa>
    <ffd:SubmissnTp
      contextRef="C_a91e3e7d-bc0e-423e-ab6b-346bd7d11586"
      id="F_da7860bc-c33e-4258-b923-331bff1d3412">424B2</ffd:SubmissnTp>
    <ffd:NrrtvDsclsr
      contextRef="C_a91e3e7d-bc0e-423e-ab6b-346bd7d11586"
      id="F_851e767b-9087-4a83-b8f1-714b132b1560">&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;500,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_a91e3e7d-bc0e-423e-ab6b-346bd7d11586"
      decimals="0"
      id="F_e45cb599-2119-49b4-ae40-12982270583b"
      unitRef="U_USD">500000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
