<?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_83e4fe08-6761-4293-8db6-8fdde3650df5">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-03-02</startDate>
            <endDate>2026-03-02</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:SubmissnTp
      contextRef="C_83e4fe08-6761-4293-8db6-8fdde3650df5"
      id="F_9d8a4cbd-2ecc-4df1-accb-ca02bf9031bb">424B2</ffd:SubmissnTp>
    <ffd:FormTp
      contextRef="C_83e4fe08-6761-4293-8db6-8fdde3650df5"
      id="F_e8b409de-6f9d-4fac-ad70-9e8f6e25d000">S-3</ffd:FormTp>
    <dei:EntityRegistrantName
      contextRef="C_83e4fe08-6761-4293-8db6-8fdde3650df5"
      id="F_05704246-4d6f-4956-a40e-89e614de945f">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:RegnFileNb
      contextRef="C_83e4fe08-6761-4293-8db6-8fdde3650df5"
      id="F_6d26d581-2eb5-4423-9de4-1ff3bfa90086">333-284538</ffd:RegnFileNb>
    <ffd:OfferingTableNa
      contextRef="C_83e4fe08-6761-4293-8db6-8fdde3650df5"
      id="F_0c55d5fb-6a89-47b6-b0ab-bae93a614ef0">N/A</ffd:OfferingTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_83e4fe08-6761-4293-8db6-8fdde3650df5"
      id="F_9bacece0-f0f9-44be-bef5-951b04842aa2">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityCentralIndexKey
      contextRef="C_83e4fe08-6761-4293-8db6-8fdde3650df5"
      id="F_02655c2d-71a2-49b2-a19f-7c1789906bf2">0000886982</dei:EntityCentralIndexKey>
    <ffd:OffsetTableNa
      contextRef="C_83e4fe08-6761-4293-8db6-8fdde3650df5"
      id="F_789cf6fd-d72b-4983-8778-705807e1b3a3">N/A</ffd:OffsetTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_83e4fe08-6761-4293-8db6-8fdde3650df5"
      id="F_c8badb4f-d689-4e71-b47b-e981fe952cfc">N/A</ffd:CombinedProspectusTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_83e4fe08-6761-4293-8db6-8fdde3650df5"
      id="F_c62f93a6-d8c7-42f4-9da2-408d4ed32f23">&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,833,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_83e4fe08-6761-4293-8db6-8fdde3650df5"
      decimals="0"
      id="F_f0605e5e-2f1d-4a89-aeaa-be38473d036c"
      unitRef="U_USD">3833000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
