<?xml version="1.0" encoding="utf-8"?>
<xbrl
  xmlns="http://www.xbrl.org/2003/instance"
  xmlns:dei="http://xbrl.sec.gov/dei/2026"
  xmlns:ffd="http://xbrl.sec.gov/ffd/2026"
  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/2026/ffd-2026.xsd"
      xlink:type="simple"/>
    <context id="C_1f5b4c7f-0174-407e-8cc6-2395c0dc2c3b">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-06-16</startDate>
            <endDate>2026-06-16</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:OffsetTableNa
      contextRef="C_1f5b4c7f-0174-407e-8cc6-2395c0dc2c3b"
      id="F_fdb91fac-c9be-4e1a-9dc4-a680ec4280d6">N/A</ffd:OffsetTableNa>
    <ffd:FormTp
      contextRef="C_1f5b4c7f-0174-407e-8cc6-2395c0dc2c3b"
      id="F_9958dc22-0a92-42b7-8288-16c1a79a8dcd">S-3</ffd:FormTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_1f5b4c7f-0174-407e-8cc6-2395c0dc2c3b"
      id="F_c8e12756-f09d-42ce-90d5-0a5a0c53f21b">N/A</ffd:CombinedProspectusTableNa>
    <ffd:RegnFileNb
      contextRef="C_1f5b4c7f-0174-407e-8cc6-2395c0dc2c3b"
      id="F_bdb90c63-b833-405d-8b58-bd50b5961bd3">333-284538</ffd:RegnFileNb>
    <ffd:FeeExhibitTp
      contextRef="C_1f5b4c7f-0174-407e-8cc6-2395c0dc2c3b"
      id="F_9b2af8ff-5793-4de0-bcd2-1ae967fadf90">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OfferingTableNa
      contextRef="C_1f5b4c7f-0174-407e-8cc6-2395c0dc2c3b"
      id="F_3adb1e76-e7b2-4b6a-8aaa-432c68fef8bc">N/A</ffd:OfferingTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_1f5b4c7f-0174-407e-8cc6-2395c0dc2c3b"
      id="F_a4428576-bef6-4c65-8935-82eaed1c5427">0000886982</dei:EntityCentralIndexKey>
    <dei:EntityRegistrantName
      contextRef="C_1f5b4c7f-0174-407e-8cc6-2395c0dc2c3b"
      id="F_76144df5-d64a-4c19-9cd4-7544a10906f3">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:SubmissnTp
      contextRef="C_1f5b4c7f-0174-407e-8cc6-2395c0dc2c3b"
      id="F_d6ae96bc-cd5b-42ea-b637-d0038b2d2c5e">424B2</ffd:SubmissnTp>
    <ffd:NrrtvDsclsr
      contextRef="C_1f5b4c7f-0174-407e-8cc6-2395c0dc2c3b"
      id="F_91064af3-bcc2-4315-aca9-0ee29bf8f75b">&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;6,718,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_1f5b4c7f-0174-407e-8cc6-2395c0dc2c3b"
      decimals="-3"
      id="F_4599d4a8-c5a8-4fcd-9afa-1ea6bfafe317"
      unitRef="U_USD">6718000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
