<?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_a632a5a0-1094-460a-b1f8-0deb3471db41">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2025-12-08</startDate>
            <endDate>2025-12-08</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:FormTp
      contextRef="C_a632a5a0-1094-460a-b1f8-0deb3471db41"
      id="F_e22b317f-3575-497f-9e36-56fded44ea3a">S-3</ffd:FormTp>
    <ffd:OfferingTableNa
      contextRef="C_a632a5a0-1094-460a-b1f8-0deb3471db41"
      id="F_5b171312-06dc-40c4-8bbb-415db578c337">N/A</ffd:OfferingTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_a632a5a0-1094-460a-b1f8-0deb3471db41"
      id="F_e03ed8af-ec60-41c2-a44a-1ef15be216dd">0000886982</dei:EntityCentralIndexKey>
    <ffd:FeeExhibitTp
      contextRef="C_a632a5a0-1094-460a-b1f8-0deb3471db41"
      id="F_6ae985ca-f760-4309-a0e7-08971db376c0">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityRegistrantName
      contextRef="C_a632a5a0-1094-460a-b1f8-0deb3471db41"
      id="F_72283ab8-996e-4953-ac9f-c88ea8e308c5">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:OffsetTableNa
      contextRef="C_a632a5a0-1094-460a-b1f8-0deb3471db41"
      id="F_5d6c4dbe-1b97-45be-8ad3-e50e909934d7">N/A</ffd:OffsetTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_a632a5a0-1094-460a-b1f8-0deb3471db41"
      id="F_47877ac2-e10a-4642-ad59-2cfe1efc15a7">N/A</ffd:CombinedProspectusTableNa>
    <ffd:SubmissnTp
      contextRef="C_a632a5a0-1094-460a-b1f8-0deb3471db41"
      id="F_846ed353-fc80-4f7a-a1a3-2e1b8c5e7118">424B2</ffd:SubmissnTp>
    <ffd:RegnFileNb
      contextRef="C_a632a5a0-1094-460a-b1f8-0deb3471db41"
      id="F_bb917086-c218-4ab5-8d72-c0d94de554eb">333-284538</ffd:RegnFileNb>
    <ffd:NrrtvDsclsr
      contextRef="C_a632a5a0-1094-460a-b1f8-0deb3471db41"
      id="F_c11a87d4-f352-47e6-b56a-9fc64269828c">&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;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_a632a5a0-1094-460a-b1f8-0deb3471db41"
      decimals="0"
      id="F_25d73b5b-22a3-418b-a44a-eca21adfb278"
      unitRef="U_USD">500000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
