<?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_d1cf5db6-8db6-426d-ab90-c6fc88b3a69b">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-04-01</startDate>
            <endDate>2026-04-01</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:RegnFileNb
      contextRef="C_d1cf5db6-8db6-426d-ab90-c6fc88b3a69b"
      id="F_d841fd62-32de-47e8-942d-38e64a719fc2">333-284538</ffd:RegnFileNb>
    <dei:EntityRegistrantName
      contextRef="C_d1cf5db6-8db6-426d-ab90-c6fc88b3a69b"
      id="F_2da79a94-c915-4bbd-8c92-f2f4677bb4d8">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FormTp
      contextRef="C_d1cf5db6-8db6-426d-ab90-c6fc88b3a69b"
      id="F_53bd3d7d-3983-4c2b-b408-44ef5aff6cac">S-3</ffd:FormTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_d1cf5db6-8db6-426d-ab90-c6fc88b3a69b"
      id="F_4f224066-aced-4159-ad78-c76a1feaf6d7">N/A</ffd:CombinedProspectusTableNa>
    <ffd:SubmissnTp
      contextRef="C_d1cf5db6-8db6-426d-ab90-c6fc88b3a69b"
      id="F_5a8deb3c-a85d-4e8e-a755-f021b1b1b4ca">424B2</ffd:SubmissnTp>
    <ffd:FeeExhibitTp
      contextRef="C_d1cf5db6-8db6-426d-ab90-c6fc88b3a69b"
      id="F_ed5cfe0a-124f-4ea1-b149-ba1e85f67ee2">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityCentralIndexKey
      contextRef="C_d1cf5db6-8db6-426d-ab90-c6fc88b3a69b"
      id="F_a5817009-b1b0-44fd-a2de-ff6c8691bb75">0000886982</dei:EntityCentralIndexKey>
    <ffd:OffsetTableNa
      contextRef="C_d1cf5db6-8db6-426d-ab90-c6fc88b3a69b"
      id="F_822e1465-29f0-4f0c-9cd9-42de24ae074c">N/A</ffd:OffsetTableNa>
    <ffd:OfferingTableNa
      contextRef="C_d1cf5db6-8db6-426d-ab90-c6fc88b3a69b"
      id="F_47fc6b02-7b19-4992-b235-8345593f899c">N/A</ffd:OfferingTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_d1cf5db6-8db6-426d-ab90-c6fc88b3a69b"
      id="F_eaece490-530c-4928-9f83-f5114cc2a474">&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,500,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_d1cf5db6-8db6-426d-ab90-c6fc88b3a69b"
      decimals="0"
      id="F_0b3c9770-a6b1-44ca-a2c4-a6bea6cd2e3b"
      unitRef="U_USD">1500000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
