<?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_49a3fa9e-2b8d-4b63-8bdc-a1c1edfd0d0b">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-05-28</startDate>
            <endDate>2026-05-28</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:RegnFileNb
      contextRef="C_49a3fa9e-2b8d-4b63-8bdc-a1c1edfd0d0b"
      id="F_e30210f3-959b-46b9-97b9-4ffaff30b750">333-284538</ffd:RegnFileNb>
    <ffd:OffsetTableNa
      contextRef="C_49a3fa9e-2b8d-4b63-8bdc-a1c1edfd0d0b"
      id="F_5997f2ff-623c-441b-aee0-f287bf13b91c">N/A</ffd:OffsetTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_49a3fa9e-2b8d-4b63-8bdc-a1c1edfd0d0b"
      id="F_a3d28e6b-c122-4eaf-b69c-6455c737d8cc">N/A</ffd:CombinedProspectusTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_49a3fa9e-2b8d-4b63-8bdc-a1c1edfd0d0b"
      id="F_598aa9b9-9f47-430e-aa8c-ba54ae7253a6">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OfferingTableNa
      contextRef="C_49a3fa9e-2b8d-4b63-8bdc-a1c1edfd0d0b"
      id="F_729c1fc9-e4fc-4dad-889e-b4ee2bc46c7a">N/A</ffd:OfferingTableNa>
    <dei:EntityRegistrantName
      contextRef="C_49a3fa9e-2b8d-4b63-8bdc-a1c1edfd0d0b"
      id="F_9d88154f-b053-4803-8b18-846c12ef4418">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FormTp
      contextRef="C_49a3fa9e-2b8d-4b63-8bdc-a1c1edfd0d0b"
      id="F_a80d3dbc-b26a-4e37-a6a7-d50cc4c26b05">S-3</ffd:FormTp>
    <ffd:SubmissnTp
      contextRef="C_49a3fa9e-2b8d-4b63-8bdc-a1c1edfd0d0b"
      id="F_360e6442-11e4-40f0-9fce-b35ff18c90cc">424B2</ffd:SubmissnTp>
    <dei:EntityCentralIndexKey
      contextRef="C_49a3fa9e-2b8d-4b63-8bdc-a1c1edfd0d0b"
      id="F_856713b8-01b3-4001-a4ba-6ca10f7c1664">0000886982</dei:EntityCentralIndexKey>
    <ffd:NrrtvDsclsr
      contextRef="C_49a3fa9e-2b8d-4b63-8bdc-a1c1edfd0d0b"
      id="F_315fd50b-afc4-426e-bd41-e531fe75d5e2">&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;17,277,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_49a3fa9e-2b8d-4b63-8bdc-a1c1edfd0d0b"
      decimals="0"
      id="F_9defcac9-fbef-40e1-97a6-db0b901b9d64"
      unitRef="U_USD">17277000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
