<?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_90e4a879-a67b-4946-bf26-327a405279b5">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2025-09-16</startDate>
            <endDate>2025-09-16</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:FeeExhibitTp
      contextRef="C_90e4a879-a67b-4946-bf26-327a405279b5"
      id="F_a725b006-937e-47d6-ac16-9d13063ed78a">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OfferingTableNa
      contextRef="C_90e4a879-a67b-4946-bf26-327a405279b5"
      id="F_249a7f4b-c751-41bb-8a19-ebeda4dffbf2">N/A</ffd:OfferingTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_90e4a879-a67b-4946-bf26-327a405279b5"
      id="F_1b3014e5-b499-4f1f-aab9-2b50a274ee8c">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_90e4a879-a67b-4946-bf26-327a405279b5"
      id="F_1b919531-7a6a-4624-9b0b-bb29431f9cd0">0000886982</dei:EntityCentralIndexKey>
    <ffd:RegnFileNb
      contextRef="C_90e4a879-a67b-4946-bf26-327a405279b5"
      id="F_bd2e0cdd-5aef-486a-ac2a-c60b9725e697">333-284538</ffd:RegnFileNb>
    <ffd:SubmissnTp
      contextRef="C_90e4a879-a67b-4946-bf26-327a405279b5"
      id="F_0c11480b-5dde-410d-974c-e72d3fbb9370">424B2</ffd:SubmissnTp>
    <ffd:OffsetTableNa
      contextRef="C_90e4a879-a67b-4946-bf26-327a405279b5"
      id="F_a31a3287-3b96-4055-ad31-d345b1f1079f">N/A</ffd:OffsetTableNa>
    <dei:EntityRegistrantName
      contextRef="C_90e4a879-a67b-4946-bf26-327a405279b5"
      id="F_78567869-c7e8-4aeb-bfcc-2ee8f6cf78d9">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FormTp
      contextRef="C_90e4a879-a67b-4946-bf26-327a405279b5"
      id="F_f467dacd-d1b7-4256-8d3e-99b2d3237a71">S-3</ffd:FormTp>
    <ffd:NrrtvDsclsr
      contextRef="C_90e4a879-a67b-4946-bf26-327a405279b5"
      id="F_34a1abfd-a721-4f2a-9a2f-eb759a77bf1b">&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,875,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_90e4a879-a67b-4946-bf26-327a405279b5"
      decimals="0"
      id="F_cd5332f0-e62b-4af0-b5dd-2dc218a3a2bd"
      unitRef="U_USD">6875000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
