<?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_24035393-110a-4d47-9a3f-1726b6322c14">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-03-17</startDate>
            <endDate>2026-03-17</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:OffsetTableNa
      contextRef="C_24035393-110a-4d47-9a3f-1726b6322c14"
      id="F_bbdd0264-99e4-43a7-b153-06e9316d38ee">N/A</ffd:OffsetTableNa>
    <ffd:SubmissnTp
      contextRef="C_24035393-110a-4d47-9a3f-1726b6322c14"
      id="F_aa04fadf-d5fa-4a8e-b7c2-85ad3beae26b">424B2</ffd:SubmissnTp>
    <ffd:FormTp
      contextRef="C_24035393-110a-4d47-9a3f-1726b6322c14"
      id="F_2e9605a0-351a-4b75-95a3-a08588459720">S-3</ffd:FormTp>
    <ffd:RegnFileNb
      contextRef="C_24035393-110a-4d47-9a3f-1726b6322c14"
      id="F_6978f29c-6dfa-4619-a3b0-1b37b1e11a96">333-284538</ffd:RegnFileNb>
    <dei:EntityRegistrantName
      contextRef="C_24035393-110a-4d47-9a3f-1726b6322c14"
      id="F_c83fbba1-f8fe-4f3e-a7a6-1f398e2de36d">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <dei:EntityCentralIndexKey
      contextRef="C_24035393-110a-4d47-9a3f-1726b6322c14"
      id="F_bf91741c-133e-48fa-a401-e91506187d71">0000886982</dei:EntityCentralIndexKey>
    <ffd:CombinedProspectusTableNa
      contextRef="C_24035393-110a-4d47-9a3f-1726b6322c14"
      id="F_3bd72e20-bf6e-4990-a88a-4cf2ae830464">N/A</ffd:CombinedProspectusTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_24035393-110a-4d47-9a3f-1726b6322c14"
      id="F_36032599-fe26-44c5-aa47-e2e6bab6e222">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OfferingTableNa
      contextRef="C_24035393-110a-4d47-9a3f-1726b6322c14"
      id="F_54145899-6a12-4b47-b22f-bc394aee4545">N/A</ffd:OfferingTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_24035393-110a-4d47-9a3f-1726b6322c14"
      id="F_3ae7f563-739a-49b3-8908-07ec6c2c1f1c">&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,688,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_24035393-110a-4d47-9a3f-1726b6322c14"
      decimals="0"
      id="F_5d574f0e-4f0f-4d3d-847b-2cb436dcb83c"
      unitRef="U_USD">6688000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
