<?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_84207227-2df9-4f62-9dd1-7f366ade6ce7">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-08-18</startDate>
            <endDate>2026-08-18</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:OfferingTableNa
      contextRef="C_84207227-2df9-4f62-9dd1-7f366ade6ce7"
      id="F_0bc1f9f3-87f9-4f42-a4c2-5efa0a6d6942">N/A</ffd:OfferingTableNa>
    <ffd:SubmissnTp
      contextRef="C_84207227-2df9-4f62-9dd1-7f366ade6ce7"
      id="F_d26e1937-0acf-493f-93b0-3076b99b518e">424B2</ffd:SubmissnTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_84207227-2df9-4f62-9dd1-7f366ade6ce7"
      id="F_7a988965-eb90-43b3-86e4-4d5d990500ee">N/A</ffd:CombinedProspectusTableNa>
    <ffd:FormTp
      contextRef="C_84207227-2df9-4f62-9dd1-7f366ade6ce7"
      id="F_aa6a22f5-540e-46be-8abd-709da146d6b7">S-3</ffd:FormTp>
    <dei:EntityRegistrantName
      contextRef="C_84207227-2df9-4f62-9dd1-7f366ade6ce7"
      id="F_4ca493b8-1ae3-47ae-8b5f-ea141eeeb847">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <dei:EntityCentralIndexKey
      contextRef="C_84207227-2df9-4f62-9dd1-7f366ade6ce7"
      id="F_c6ad7c0f-57e0-41a0-832b-e06b578a4dc9">0000886982</dei:EntityCentralIndexKey>
    <ffd:OffsetTableNa
      contextRef="C_84207227-2df9-4f62-9dd1-7f366ade6ce7"
      id="F_eeef5802-5d01-468b-9e13-38635af5fc6d">N/A</ffd:OffsetTableNa>
    <ffd:RegnFileNb
      contextRef="C_84207227-2df9-4f62-9dd1-7f366ade6ce7"
      id="F_b34ca656-9c23-4996-a801-f71a85964e95">333-284538</ffd:RegnFileNb>
    <ffd:FeeExhibitTp
      contextRef="C_84207227-2df9-4f62-9dd1-7f366ade6ce7"
      id="F_19b50c99-9c78-4266-a63e-a9f930c9fd98">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:NrrtvDsclsr
      contextRef="C_84207227-2df9-4f62-9dd1-7f366ade6ce7"
      id="F_68d1653f-6a9b-42bb-a8ed-a54bacd69cfa">&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;12,477,350&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_84207227-2df9-4f62-9dd1-7f366ade6ce7"
      decimals="0"
      id="F_a6751c49-438d-41d7-8f96-1c81382e29a5"
      unitRef="U_USD">12477350</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
