<?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_ca34ec61-3fb6-4702-b28e-18bbcd704228">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-06-23</startDate>
            <endDate>2026-06-23</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:CombinedProspectusTableNa
      contextRef="C_ca34ec61-3fb6-4702-b28e-18bbcd704228"
      id="F_74ce1762-0f21-45ce-b7ff-bcf4f5cf7b7c">N/A</ffd:CombinedProspectusTableNa>
    <ffd:FormTp
      contextRef="C_ca34ec61-3fb6-4702-b28e-18bbcd704228"
      id="F_8d659908-7249-4e6c-abbb-16927ab9f460">S-3</ffd:FormTp>
    <ffd:OffsetTableNa
      contextRef="C_ca34ec61-3fb6-4702-b28e-18bbcd704228"
      id="F_d43b06b2-eeda-4f2c-8328-54635f998a63">N/A</ffd:OffsetTableNa>
    <ffd:SubmissnTp
      contextRef="C_ca34ec61-3fb6-4702-b28e-18bbcd704228"
      id="F_13a2c834-0652-436e-bfd4-fb1edac3fa12">424B2</ffd:SubmissnTp>
    <ffd:OfferingTableNa
      contextRef="C_ca34ec61-3fb6-4702-b28e-18bbcd704228"
      id="F_d37b7d50-086a-4b61-b4ee-d8dd28c4b390">N/A</ffd:OfferingTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_ca34ec61-3fb6-4702-b28e-18bbcd704228"
      id="F_b6b2d1c3-736f-4f5f-88fd-e3eabbd7fc94">0000886982</dei:EntityCentralIndexKey>
    <ffd:FeeExhibitTp
      contextRef="C_ca34ec61-3fb6-4702-b28e-18bbcd704228"
      id="F_3357a38d-28f1-493d-b57a-3db85b6e2d58">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityRegistrantName
      contextRef="C_ca34ec61-3fb6-4702-b28e-18bbcd704228"
      id="F_f2043c53-7312-4823-83fb-6871cd9cb05b">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:RegnFileNb
      contextRef="C_ca34ec61-3fb6-4702-b28e-18bbcd704228"
      id="F_e4c7fa88-b5d6-4b43-a7ae-e9a749e80890">333-284538</ffd:RegnFileNb>
    <ffd:NrrtvDsclsr
      contextRef="C_ca34ec61-3fb6-4702-b28e-18bbcd704228"
      id="F_e212e249-b67b-4bff-88b1-f6feb2ade248">&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;6,003,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_ca34ec61-3fb6-4702-b28e-18bbcd704228"
      decimals="-3"
      id="F_bf52919c-55cc-4fd4-9690-6d37e93c547c"
      unitRef="U_USD">6003000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
