<?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_12c2caa3-f632-48bf-b955-73dd1a40e639">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-04-21</startDate>
            <endDate>2026-04-21</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:FeeExhibitTp
      contextRef="C_12c2caa3-f632-48bf-b955-73dd1a40e639"
      id="F_411666f3-e280-4a5c-81a0-1b717bb1f5c2">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:FormTp
      contextRef="C_12c2caa3-f632-48bf-b955-73dd1a40e639"
      id="F_2a2b5cab-2421-4296-b7d0-01b6b493bf69">S-3</ffd:FormTp>
    <ffd:RegnFileNb
      contextRef="C_12c2caa3-f632-48bf-b955-73dd1a40e639"
      id="F_5d5c2416-2929-4f57-ac54-24c789cc37dc">333-284538</ffd:RegnFileNb>
    <ffd:SubmissnTp
      contextRef="C_12c2caa3-f632-48bf-b955-73dd1a40e639"
      id="F_0e48b381-7c3c-47a4-a8e4-7dd0da3a9716">424B2</ffd:SubmissnTp>
    <ffd:OfferingTableNa
      contextRef="C_12c2caa3-f632-48bf-b955-73dd1a40e639"
      id="F_85037b6f-44c8-40d6-b83a-437b022c950b">N/A</ffd:OfferingTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_12c2caa3-f632-48bf-b955-73dd1a40e639"
      id="F_acf14abf-a03f-4c5f-9625-34998a6b7124">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityRegistrantName
      contextRef="C_12c2caa3-f632-48bf-b955-73dd1a40e639"
      id="F_94c78c9b-87f7-4ba2-93e0-0a4ff1266051">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <dei:EntityCentralIndexKey
      contextRef="C_12c2caa3-f632-48bf-b955-73dd1a40e639"
      id="F_4b5291ab-75ed-4660-af7b-b2624967709e">0000886982</dei:EntityCentralIndexKey>
    <ffd:OffsetTableNa
      contextRef="C_12c2caa3-f632-48bf-b955-73dd1a40e639"
      id="F_8d9aab38-cfcb-454e-9afe-9843ed5ca7c5">N/A</ffd:OffsetTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_12c2caa3-f632-48bf-b955-73dd1a40e639"
      id="F_04f45d93-d3d6-43dd-992a-ca1bdac1ab48">&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;2,501,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_12c2caa3-f632-48bf-b955-73dd1a40e639"
      decimals="0"
      id="F_b895d55d-bf96-45bd-be6d-0d5981c6b9bc"
      unitRef="U_USD">2501000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
