<?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_cf1507d4-f775-4257-bb06-78aa0f3efcca">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-05-18</startDate>
            <endDate>2026-05-18</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:RegnFileNb
      contextRef="C_cf1507d4-f775-4257-bb06-78aa0f3efcca"
      id="F_dd194deb-bce8-4fb6-b488-0019709c759f">333-284538</ffd:RegnFileNb>
    <ffd:OfferingTableNa
      contextRef="C_cf1507d4-f775-4257-bb06-78aa0f3efcca"
      id="F_85624bd3-3fc0-4a01-8d22-3f47e45a707c">N/A</ffd:OfferingTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_cf1507d4-f775-4257-bb06-78aa0f3efcca"
      id="F_c7fd34ae-40bd-4f2a-839d-d16575561f8a">0000886982</dei:EntityCentralIndexKey>
    <dei:EntityRegistrantName
      contextRef="C_cf1507d4-f775-4257-bb06-78aa0f3efcca"
      id="F_66b7fb00-9d6a-4c2e-b705-4e72523f2aa3">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:CombinedProspectusTableNa
      contextRef="C_cf1507d4-f775-4257-bb06-78aa0f3efcca"
      id="F_9e9fa432-9164-4207-a6de-fb0f6f5bd90c">N/A</ffd:CombinedProspectusTableNa>
    <ffd:SubmissnTp
      contextRef="C_cf1507d4-f775-4257-bb06-78aa0f3efcca"
      id="F_6ce7dcfa-1a4f-445f-921f-b906ffde9166">424B2</ffd:SubmissnTp>
    <ffd:FeeExhibitTp
      contextRef="C_cf1507d4-f775-4257-bb06-78aa0f3efcca"
      id="F_31b1d27a-a793-4a63-8ec1-3877c2ace986">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OffsetTableNa
      contextRef="C_cf1507d4-f775-4257-bb06-78aa0f3efcca"
      id="F_0cf2e64f-1946-4c89-ae34-b7b6e4cd2507">N/A</ffd:OffsetTableNa>
    <ffd:FormTp
      contextRef="C_cf1507d4-f775-4257-bb06-78aa0f3efcca"
      id="F_266e7dc1-6fda-49a3-9e38-f788d3b17b13">S-3</ffd:FormTp>
    <ffd:NrrtvDsclsr
      contextRef="C_cf1507d4-f775-4257-bb06-78aa0f3efcca"
      id="F_af448117-2778-48db-a240-27246ab87303">&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;3,967,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_cf1507d4-f775-4257-bb06-78aa0f3efcca"
      decimals="0"
      id="F_10f5fd5c-5555-4a61-b741-5f10347f67a7"
      unitRef="U_USD">3967000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
