<?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_9aadcd98-e2a2-4c33-8025-f0211c874fa6">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-03-23</startDate>
            <endDate>2026-03-23</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:SubmissnTp
      contextRef="C_9aadcd98-e2a2-4c33-8025-f0211c874fa6"
      id="F_30b361ac-b04d-4492-88ef-89d8afd5e540">424B2</ffd:SubmissnTp>
    <ffd:OffsetTableNa
      contextRef="C_9aadcd98-e2a2-4c33-8025-f0211c874fa6"
      id="F_f7f34e49-0d79-458c-af0f-07c5d5297ad3">N/A</ffd:OffsetTableNa>
    <ffd:OfferingTableNa
      contextRef="C_9aadcd98-e2a2-4c33-8025-f0211c874fa6"
      id="F_dbe24e0b-e75b-4c12-82d7-baa95e136060">N/A</ffd:OfferingTableNa>
    <ffd:RegnFileNb
      contextRef="C_9aadcd98-e2a2-4c33-8025-f0211c874fa6"
      id="F_8306f1e9-ea92-4087-a6eb-224f91ad9a9e">333-284538</ffd:RegnFileNb>
    <dei:EntityRegistrantName
      contextRef="C_9aadcd98-e2a2-4c33-8025-f0211c874fa6"
      id="F_4033d105-23ac-4cc5-8200-dbbe3e908c61">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FormTp
      contextRef="C_9aadcd98-e2a2-4c33-8025-f0211c874fa6"
      id="F_6b599fd3-8bbe-4230-b7ec-bc3589ca71e3">S-3</ffd:FormTp>
    <dei:EntityCentralIndexKey
      contextRef="C_9aadcd98-e2a2-4c33-8025-f0211c874fa6"
      id="F_a23d27ff-0688-41f0-8b61-a9cec85400c3">0000886982</dei:EntityCentralIndexKey>
    <ffd:FeeExhibitTp
      contextRef="C_9aadcd98-e2a2-4c33-8025-f0211c874fa6"
      id="F_c676630f-c2a2-45e6-b7f9-2b0eb29ad290">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_9aadcd98-e2a2-4c33-8025-f0211c874fa6"
      id="F_2bcd2208-275f-4fe3-9a63-67cf8a4e3474">N/A</ffd:CombinedProspectusTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_9aadcd98-e2a2-4c33-8025-f0211c874fa6"
      id="F_ec5051c9-62ff-40b8-886f-9a6b38c3ac92">&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;250,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_9aadcd98-e2a2-4c33-8025-f0211c874fa6"
      decimals="0"
      id="F_5ba9d7c0-907e-4483-8aa0-2ee1c54f144b"
      unitRef="U_USD">250000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
