<?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_544c00e1-2c2d-4de8-8573-9c3510cf35d8">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-05-05</startDate>
            <endDate>2026-05-05</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:FeeExhibitTp
      contextRef="C_544c00e1-2c2d-4de8-8573-9c3510cf35d8"
      id="F_c373582d-ad17-407e-a1e1-77118cdda839">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OfferingTableNa
      contextRef="C_544c00e1-2c2d-4de8-8573-9c3510cf35d8"
      id="F_4d55e63c-e5fc-4483-9acd-1d3f8926f939">N/A</ffd:OfferingTableNa>
    <dei:EntityRegistrantName
      contextRef="C_544c00e1-2c2d-4de8-8573-9c3510cf35d8"
      id="F_203dbd1c-bcab-4c5d-b276-4ec29a4967dc">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:CombinedProspectusTableNa
      contextRef="C_544c00e1-2c2d-4de8-8573-9c3510cf35d8"
      id="F_04530311-a118-4272-a599-e1af3a09a75e">N/A</ffd:CombinedProspectusTableNa>
    <ffd:SubmissnTp
      contextRef="C_544c00e1-2c2d-4de8-8573-9c3510cf35d8"
      id="F_30130283-1f3b-4d3d-b33b-6e044fae24a2">424B2</ffd:SubmissnTp>
    <ffd:FormTp
      contextRef="C_544c00e1-2c2d-4de8-8573-9c3510cf35d8"
      id="F_6bb49a25-621f-4b60-84f8-23207da1eca1">S-3</ffd:FormTp>
    <ffd:RegnFileNb
      contextRef="C_544c00e1-2c2d-4de8-8573-9c3510cf35d8"
      id="F_5659191b-8225-428c-a74a-d7b579546d83">333-284538</ffd:RegnFileNb>
    <ffd:OffsetTableNa
      contextRef="C_544c00e1-2c2d-4de8-8573-9c3510cf35d8"
      id="F_ee107f73-3bea-4e1b-8e5f-22b24415aa2e">N/A</ffd:OffsetTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_544c00e1-2c2d-4de8-8573-9c3510cf35d8"
      id="F_2c79b027-6c5b-427b-af1b-00f977a3a4ea">0000886982</dei:EntityCentralIndexKey>
    <ffd:NrrtvDsclsr
      contextRef="C_544c00e1-2c2d-4de8-8573-9c3510cf35d8"
      id="F_091699cd-6a72-4d8f-aaec-598930e7a0ef">&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;1,536,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_544c00e1-2c2d-4de8-8573-9c3510cf35d8"
      decimals="0"
      id="F_a8be47cd-618f-43c0-89ee-943061a106e9"
      unitRef="U_USD">1536000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
